Add detailed self-hosting instructions

Can anyone share me the steps to host this on my own domain? I am not very much familiar with docker and its deployments.

You can use Docker to deploy this. But you can also just deploy it without Docker. The front-end is a simple react app, and the backend is a simple FastAPI Python server. I deployed it on Render for https://screenshottocode.com
If someone wants to write up more detailed instructions, please do, and I'll add it to the README.

The server keeps crashing on Render

Would Google the error

Its not like that. It boots up and then stops the script
I'll share my configurations

==> Deploying...
==> Using Node version 20.10.0 (default)
==> Docs on specifying a Node version: https://render.com/docs/node-version
==> Running 'poetry run uvicorn main:app --reload --port 7001'
INFO:     Will watch for changes in these directories: ['/opt/render/project/src']
INFO:     Uvicorn running on http://<IP_ADDRESS>:7001/ (Press CTRL+C to quit)
INFO:     Started reloader process [41] using StatReload
ERROR:    Error loading ASGI app. Could not import module "main".
Deploy cancelled
==> Deploying...
==> Using Node version 20.10.0 (default)
==> Docs on specifying a Node version: https://render.com/docs/node-version
==> Running 'poetry run uvicorn main:app --reload --port 7001'
INFO:     Will watch for changes in these directories: ['/opt/render/project/src/backend']
INFO:     Uvicorn running on http://<IP_ADDRESS>:7001/ (Press CTRL+C to quit)
INFO:     Started reloader process [43] using StatReload
INFO:     Started server process [47]
INFO:     Waiting for application startup.
INFO:     Application startup complete.

ERROR: Error loading ASGI app. Could not import module "main".

This is my backend deployment on Render

env var

Why are you trying to deploy it on Render instead of just running it locally? The docker set up should be easy

This is my backend deployment on Render

env var

All other fields are default?

Yes. Make sure root dir is backend and then you'd deploy frontend separately.

Sure. I am trying it

==> Cloning from https://github.com/mritunjayagarwal/screenshot_to_code-be
==> Checking out commit bbad73fafc093683660519f8a5d2a5ed1662d726 in branch main
==> Using Node version 20.10.0 (default)
==> Docs on specifying a Node version: https://render.com/docs/node-version
==> Using Python version 3.10.9 via environment variable PYTHON_VERSION
==> Docs on specifying a Python version: https://render.com/docs/python-version
==> Using Poetry version 1.7.1 (default)
==> Docs on specifying a Poetry version: https://render.com/docs/poetry-version
==> Running build command './build.sh'...
bash: ./build.sh: No such file or directory
==> Build failed 😞

Build succeeded.
==> Build uploaded in 9s
==> Build successful 🎉
==> Using Node version 20.10.0 (default)
==> Docs on specifying a Node version: https://render.com/docs/node-version
==> Running 'poetry run uvicorn main:app --reload --port 7001'
INFO:     Will watch for changes in these directories: ['/opt/render/project/src']
INFO:     Uvicorn running on http://<IP_ADDRESS>:7001/ (Press CTRL+C to quit)
INFO:     Started reloader process [41] using StatReload
ERROR:    Error loading ASGI app. Could not import module "main".
I am having this ASGI missing error.

Everything worked find.  @abi
Only the timeout occurs  after 15mins and deployment is automatically cancelled.
Last log is application startup complete
Is there any other setting to stop this timeout

This issue is resolved

Going to leave it open so someone can add in a doc with more detailed instructions.
Glad it's solved for you!


Unexpected outputs on simple purely existential examples.

Consider the following programs / output pairs
P1:
{ a; b }.
_exists(1,a).
_exists(1,b).

The output is is fine and expected:
Running: clingo --output=smodels example4.lp | qasp2qbf.py --no-warnings | lp2normal2 | lp2acyc | lp2sat | qasp2qbf.py --cnf2qdimacs | caqe-linux --partial-assignments | qasp2qbf.py --interpret
V -4 -5 8 9 0
Answer:

SAT

P2, forcing either a or b.
{ a; b }. _exists(1,a). _exists(1,b).
:- not a, not b.

The output is fine too.
Running: clingo --output=smodels example4.lp | qasp2qbf.py --no-warnings | lp2normal2 | lp2acyc | lp2sat | qasp2qbf.py --cnf2qdimacs | caqe-linux --partial-assignments | qasp2qbf.py --interpret
V 4 -5 -8 9 0
Answer:
a
SAT

P3, forcing a.
{ a; b }. _exists(1,a). _exists(1,b).
:- not a.

The output is wrong, as far as I understand.
Running: clingo --output=smodels example4.lp | qasp2qbf.py --no-warnings | lp2normal2 | lp2acyc | lp2sat | qasp2qbf.py --cnf2qdimacs | caqe-linux --partial-assignments | qasp2qbf.py --interpret
V -5 9 0
Answer:

SAT

Explicitely listing #show a/0. and #show _exists/2 does not fix the problem.
P4, forcing a and b.
{ a; b }. _exists(1,a). _exists(1,b).
:- not a.
:- not b.

The output is incomplete: there is "answer" line, nor any "V..." line, and this is not fixed by adding --keep-facts to the clingo invocation.
Running: clingo --output=smodels example4.lp | qasp2qbf.py --no-warnings | lp2normal2 | lp2acyc | lp2sat | qasp2qbf.py --cnf2qdimacs | caqe-linux --partial-assignments | qasp2qbf.py --interpret
SAT

PS: the readme file has a typo. It states that the level for existential quantifiers is even and for univeral is odd, but this needs to be swapped so that existentials are odd and universals are even. See the example files and also the E X1 A X2 E X3 ... explanations in the readme itself.

Thank you @AbdallahS!
I will change now the readme.
With respect to the first issue on P3, the result is correct.
The quantified logic program is ''equivalent'' to the QBF exists a exists b ((b or -b) and a).
More formally, it says that there is a subset X of {a,b} such that there is some stable model of
{ a; b }.
:- not a.

that contains the atoms in X and no other atoms from {a,b}.
The set X={a} satisfies the condition, hence SAT is the right answer.
With respect to P4, the problem happens becuase the QBF solver does not return any assignment.
It seems to me that the problem is so simple that the preprocessor solves it,
and then the QBF solver does not return any assignment.
I would be very happy if you have any ideas on how to fix this :)

I agree that the set X={a} satisfies the condition and that the QASP is SAT. However, X is not returned/printed in the Answer: field, as if the empty set satisfied the condition. Compare to what happens with P2.

Oh man, sorry Abdallah, I had completely missed the point... Yes, you are right, this is the same issue as with the other example. The problem is that the QBF solver does not print any assignment with the input program, and then qasp2qbf is lost...
For example, with the following input:
$ cat in.qdimacs
p cnf 2 2
e 1 2
1 0
2 0

caqe-linux does not print the solution with 1 and 2:
$ cat in.qdimacs | caqe-linux
SAT

I will have to investigate more the QBF solvers to see what to do. I am very happy to take suggestions (or PRs :)


force sobject import --help shows nothing

Also, I tried
force sobject import metadata/objects/NameOfMyObject__c.object
but also nothing. It is possible to import one object?

you can use the push command for this.
On Sat, Oct 22, 2016 at 1:48 AM, Vitaly Zdanevich<EMAIL_ADDRESS>wrote:

Also, I tried
force sobject import metadata/objects/NameOfMyObject__c.object
but also nothing. It is possible to import one object?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/heroku/force/issues/320, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHGHosDvAYkYSa6ryDEzQNBNTkyO-b0ks5q2c3igaJpZM4Kdzhn
.

--
Thanks,
Dave


Admin should be able to see all volumes in Dashboard

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug
What happened:
Deployed using opensds-installer ansible with CSI and LVM backend. Created a volume by "kubectl create -f nginx.yml". Volume will be shown by "osdsctl volume list", but it is not shown in Volumes when logging in as Admin in Dashboard.
What you expected to happen:
It should show up in Volumes when logging in as Admin in Dashboard.  Also other volumes by tenants should be displayed as well.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

Hotpot(release/branch) version:
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

@jimccfun

resolved by https://github.com/opensds/opensds/pull/462


DocumentFragment HTML rendering and notebook style JS evaluation

It dawns on me that this will not work for notebook-preview because it won't support all browsers. Should we implement fallbacks or choose different behavior between browsers? There might be a polyfill for the document fragment stuff too.

Fallback added, let's see what Mr. T thinks....

Awesome!


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dependencies" workflow

AWS CodeBuild CI Report

CodeBuild project: GitHubPipelineAutoBuildProj-XK8ItpxnSow5
Commit ID: adfbce45d5b97b41e54e5f3dff400e8c269e5ade
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


configure code generation based on enabled lints

Where possible, code that is generated by assists, fixes, refactorings and snippets should be idiomatic with respect to enabled lints.  (For example, trailing commas should be inserted where appropriate, absolute imports preferred, var vs. final locals, etc.)

#49541
#49556

Agree! And double quotes for auto-added imports.


Bug Fixes

Added release keys for .NET 4.6.2 Preview
Fix Get.NET link on main page issue: https://github.com/shanselman/SmallestDotNet/issues/60

Cool! I found a link of those 6 digit numbers here https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx so maybe we can get a complete list and be totally up to date.

At a quick glance when I got the 4.6.2 preview keys it looked like the other keys in that link are already there.
I would be happy to take up an activity to cross reference all of them against the code and double check that we are up to date. How does that sound?
Also, any other things I can help with on this project?
On Thu, Apr 7, 2016 at 1:35 PM -0700, "Scott Hanselman" <notifications<EMAIL_ADDRESS>wrote:
Cool! I found a link of those 6 digit numbers here https://msdn.microsoft.com/en-us/library/hh925568(v=vs.110).aspx so maybe we can get a complete list and be totally up to date.

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com/shanselman/SmallestDotNet/pull/73#issuecomment-207077973

Just did a cross reference between what we have and the MSDN link, we are totally up to date for everything 4.5 and above. We also have 3 redundant keys now for .NET 4.6 Preview, RC1 & RC2 which no longer show on the site, I guess doesn't hurt to keep them.
Also found that on the latest RedStone build 14316 which I'm currently running, it is using release key 394757 which is currently not in the MSDN link still!
I can add that into the list and submit a new PR, sound good?

Sure

Hi Scott, thanks for that. Now done: https://github.com/shanselman/SmallestDotNet/pull/74


added functionality to buy now button

Fixes
#1130
Description
Created a checkout page. The buy now button redirects to it
Type of PR

[x] Bug fix
[x] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)
https://github.com/arghadipmanna101/Flipkart_Clone/assets/142666229/ee604021-030e-4aeb-beed-e33cd578b379
Checklist:

[x] I have performed a self-review of my code
[x] I have read and followed the Contribution Guidelines.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[x] I have commented my code, particularly in hard-to-understand areas.

Additional context:
GSSoC'24

Please review my pull request @arghadipmanna101

Please review my pull request against the issue #1130  @arghadipmanna101


Income vs Spending Discrepancy

Could I get information on how the income vs spending chart works? It appears to be inaccurate to me. It's a new month and I have only spent on a couple transactions. I haven't received my paycheck for the month yet, but these numbers seem off. The transactions total 131.29.
I also would like to start working on the toolkit and doing support so updating the documentation for this feature may be useful. (I also don't like people who only make pull requests for documentation / small edits, but I would like to share knowledge).

Are credit card payments (29 dollars) included in this spending?

I'd have to re-read the code and feature to be sure but I do think there was ...something? to do special with credit card transactions.
Best place to go to get involved is our Discord! There should be a link on the README page.

I see that this code in the display total monthly goals feature gets the "spent" amount as the cash outflows and credit outflows. I am not sure how to check the value of this "getAllMonthlyBudgetCalculations". I suspect that is where something is going weird.
`// addMonthlyGoalsOverview(element) {
//   const [income, budgeted, spent] = this.calculateTotalAssigned();
// }
calculateTotalAssigned() {
// Get current month and year
const currentBudgetDate = getCurrentBudgetDate();
const currentYear = parseInt(currentBudgetDate.year);
const currentMonth = parseInt(currentBudgetDate.month);
// Get all budget calculations from YNAB
const allBudgetCalculations = getEntityManager().getAllMonthlyBudgetCalculations();

// Find current month budget calculations
const budgetedCalculation = allBudgetCalculations.find((budgetItem) => {
  const budgetItemDate = budgetItem.monthlyBudgetId.split('/')[1].split('-');
  return (
    currentYear === parseInt(budgetItemDate[0]) && currentMonth === parseInt(budgetItemDate[1])
  );
});

return [
  budgetedCalculation?.immediateIncome || 0,
  budgetedCalculation?.budgeted || 0,
  budgetedCalculation?.cashOutflows + budgetedCalculation?.creditOutflows || 0,
];

}`

I am new to React apps and I am not quite sure how to debug them using VS Code or the browser tools. It looks like the total "spent" though is using only one account for that amount. The total if it was using the credit cards should be much more. So I think there is something weird going on here. The code clearly says its calculating with credit outflows but I wonder if something is going weird when it tries to split the date field.

I think I found the issue and I think it boils down to how ynab calculates these values. I just found that my spending in budget didn't match what the income vs spending report says (which was right) and started looking into this.
Since ynab only cares about activity, which is the default metric they give in the inspector, the numbers we get from the tools are mainly based on activity. It is easier for ynab to get the total activity which they know and substract credit spent, which they already know (they to have that number on the credit cards category), and derive the cash outflows as activity - credit.
The problem with this is that if you want to know your spent amount you cannot assume that what we get as cashOutflows is really cash spent. It already has credit factored in. If we say that the spent amount is cash + credit we are basically getting the activity, which is not the spent amount when using credit cards.
The spent amount is basically
    let realSpent =
      budgetedCalculation?.cashOutflows + 2 * (budgetedCalculation?.creditOutflows || 0);

The issue you have to account twice for credit is because cashOutflows + creditOutflows gives you your activie. But activity is the sum of everything in the activity column of budget, which includes the positive amount of creditOutflows.
I tried this in my local copy of the tool and the spent value in the inspector perfectly matches the income vs spent table.
Does this makes sense?

I guess I am confused if the Income vs. Spent box in YNAB is giving "accurate" information.
 budgetedCalculation?.cashOutflows + budgetedCalculation?.creditOutflows || 0,
This is what the "total spent" I see is from the code.
But you are saying that the "actual" spending includes credit card outflows? And I'm even more confused because if I total the outflows for that period of time --- excluding the transfers I still get a much higher number than the "spent" amount YNAB shows me.
And I am a bit confused --- you mean the income v expense table?

but if I look at the income v expense report in either ynab reports or the toolkit reports, "total expenses" is still - 1660.31 which doesn't match the "spent" on the income vs spending box.

I will try to explain better.
YNAB features, without the extension.
YNAB only reports activity, not total spending, on the budget page. The activity is just the sum of all the amounts in the activity page. This means that if you have spent $100 in a given category with credit card, the activity is $0 because you have -$100 in that category and +$100 in credit card. In the budget page YNAB does not keep track of spending.

Toolkit features, Add Total Monthly Goals
The total spent section in the budget page comes from the Add Total Monthly Goals feature. The total spent amount is implemented as
budgetedCalculation?.cashOutflows + budgetedCalculation?.creditOutflows || 0

This calculation makes sense, you want to add whatever you have spent in cash and what you have spent in credit, that should be your total spending.
What I am saying is that you spent in cash, reported by the YNAB budget calculations, is not what you actually spent in cash but rather the activity value they already have minus whatever you have spent in credit, which is known easily because it is available in the credit card payment category.
This still holds true in most cases but breaks when you have a mix of cash and credit payments because the cash outflows is not what outflow you have in cash but rather the result of doing (activity - credit).
If I have the previous $100 spent in credit and I spend then another $100 in cash, the activity reported by YNAB correctly states -$100 (spent on credit) +$100 (ready to pay the credit in the credit card section) -$100 spent in cash = -$100.
If we use that activity to calculate cash outflows as (activity - credit) we get that our cash outflows is -$100 +$100 = $0. But that is not true, our cash outflows should be -$200. Using the calculation above, our total spent is the $0 -$100 = -$100. This, agian, is not true, our total spent should be -$200.
I created a test budget to try this theory and that is what you see. I added a credit transaction of -$100 and a cash transaction of -$100 and as you can see the total spent is wrong by the same amount I mentioned.

The table in "Income vs Expense"
This is the source of true because does not rely on any information about activity as in the budget page. Here you can see how the expenses are actually calculated properly.

@joshmadewell I have created a PR in case you think this makes sense (I created one first with a messed up story that I closed). I have been using the fix in my personal budget and have seen that with this the expense reported actually matches what I am expecting to see.

I think I see. What YNAB says I "spent" is not all cash but cash and credit that is budgeted for payment. I'd have to go back and check my example but that sounds closer to what I was seeing.
Yes the income vs expense table is the accurate one and I'd kind of expect to see that on the total monthly goals. Or at least a better explanation of that calculation.

Yes I think that explains it. The "spent" amount I was originally seeing was any outflows (the two checking transactions) = 75 which is the amount shown on the spent amount in the total monthly goals. All the credit card spending was budgeted for so I guess it "canceled out" the activity from the categories. Thank you @AAraKKe that explanation was pretty good.

Never mind, this may not be quite solved, still seeing a discrepancy personally and in #2778.

Yes, I have had a fixe ready for several weeks now but I haven't been able to push a PR. Too busy at work. Since I imagine there is a new version with the latest updates of YNAB I will open a PR probably this week which should take care of this issue.

@AAraKKe I hadn't gone to look at what you may have changed but did this issue get resolved. Your last comment said there was still an issue with the total spent calculation.

This is still an issue and looks like the code to fix it was never put into the code? Can I see the commits AAraKKe was attempting to make at all? I can see his repo on his page but not the individual changes that might give me a clue to what to do.

Could someone confirm if this issue is still present?

Yes, it is, I am so sorry I forgot about this. Everything has been nuts in the last couple of years and I have not been able to open the PR. It has been so long that I do not remember the context anymore but I have af ix for it, I will open the PR and we can discuss in there.
If I use the current version in main the Total Spent value when using credit cards (caused by how credit cards expenses work in ynab) does not match the actual spent amount. If I use my branch the numbers match perfectly with what reports show.

No problem @AAraKKe. It's great you're still around :)

This seem to be fixed, so I'm going to close this


stdlib: silence a unused function warning (NFC)

Pre-process away the unused function on Darwin.  NFC.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@swift-ci please test and merge

I looked at this previously and I don't think it's the right answer. Why not always use the thunk?


No private key

Hi
I have opened an account with a wallett address. But I cant access my private key, any suggestions please.

I have paid a technician to try everything mentioned here but still no change. as mentioned the wallet file might be corrupt. Is there a tool you can recommend to run to repair a corrupt wallet file? Or can I export to a new file.

Is your wallet file a .DB3 or a .JSON?

Its a .JSON file

Can you open it in notepad?  I think it's safe to paste the contents here -- but I'm not 100% certain.  I looked at mine and compared my WIF and Private key, and neither are in the .json.  Only the public address, and some 'key' that isn't the private or WIF key.
If you can -- open the .json in notepad and post the contents of the .json here, but edit out some characters in the 'key' just in case that's secret ... but I can't imagine it would be super secret if it's in plain text in a text file.

{"name":null,"version":"1.0","scrypt":{"n":16384,"r":8,"p":8},"accounts":[{"address":"AXxi4sJBKRpyKG5usQa6SPFRJKED4524QS","label":null,"isDefault":false,"lock":false,"key":null,"contract":{"script":"210255e00a61bb823e19d6ac27781ba33cf10b21f67f3b770c78023a82fb08af7899ac","parameters":[{"name":"signature","type":"Signature"}],"deployed":false},"extra":null},{"address":"AH8a71E3pPLSmZRfZFMbqKqpLqMnA1ymAU","label":null,"isDefault":false,"lock":false,"key":"6PYQb893QNFVxYQRv4zYNBZTiSHpdMLCJFf4xdnHcGVKJVH6AGVqX5fvfa","contract":{"script":"2103c155bb96ff19b26f982eb0e2bf71240f5ae8b11f22e05c1ad3533eac519a0c59ac","parameters":[{"name":"signature","type":"Signature"}],"deployed":false},"extra":null},{"address":"ATVLv5Ap6RW6Mai15HD8ptTyMSqax9zTY7","label":null,"isDefault":false,"lock":false,"key":"6PYQaUe4fxesNAP6WtxrE6wSPWwX5YZkidJStFB5NH7jHuNbqwQkvYzRX9","contract":{"script":"21027fa9e32e443126e66a1c05c7b3c4668dba8414b1e9af8c6192f8ee58175571bdac","parameters":[{"name":"signature","type":"Signature"}],"deployed":false},"extra":null}],"extra":null}
I have changed some of the characters just in case.

It is safe. The key in NEP-6 standard is encrypted.

That being said @Kiqui  ... i think the only further assistance I can give you is if you copy/paste your entire .json contents and don't modify anything.
I know Erik will yell at me for this :smile: , but I'm out of ideas.... Have you tried loading the .json into NEON wallet or neotracker.io ?
It's hard to imagine your .json file is 'corrupt'... the text in the .json is pretty simple and straightforward.  Your problem doesn't make a whole lot of sense ... but if you copy the .json file, I can load it up and try a couple things.  Without your password (not asking, never give it), no one can do anything with the information in your .json.

the reason I want to see your whole .json file, unedited, is because there might be a way for me to identify any corrupt addresses in there, remove them, send you back the .json, and hopefully it works.
It looks like you have 3 addresses in your .json file... bolded below.  It's possible one of them has 0 NEO/gas and is corrupt.  If we can very carefully remove it from the .json file, it's possible it could load fine into NEO-GUI, NEON, or Neotracker.io
But without seeing the full contents of the file, I can't assist you.  So -- it's up to you.  If you want me to try that, please post the full contents... if you are nervous and want to wait for someone else to try to help, that's fine too.
{"name":null,"version":"1.0","scrypt":{"n":16384,"r":8,"p":8},"accounts":[{"address":"AXxi4sJBKRpyKG5usQa6SPFRJKED4524QS","label":null,"isDefault":false,"lock":false,"key":null,"contract":{"script":"210255e00a61bb823e19d6ac27781ba33cf10b21f67f3b770c78023a82fb08af7899ac","parameters":[{"name":"signature","type":"Signature"}],"deployed":false},"extra":null},{"address":"AH8a71E3pPLSmZRfZFMbqKqpLqMnA1ymAU","label":null,"isDefault":false,"lock":false,"key":"6PYQb893QNFVxYQRv4zYNBZTiSHpdMLCJFf4xdnHcGVKJVH6AGVqX5fvfa","contract":{"script":"2103c155bb96ff19b26f982eb0e2bf71240f5ae8b11f22e05c1ad3533eac519a0c59ac","parameters":[{"name":"signature","type":"Signature"}],"deployed":false},"extra":null},{"address":"ATVLv5Ap6RW6Mai15HD8ptTyMSqax9zTY7","label":null,"isDefault":false,"lock":false,"key":"6PYQaUe4fxesNAP6WtxrE6wSPWwX5YZkidJStFB5NH7jHuNbqwQkvYzRX9","contract":{"script":"21027fa9e32e443126e66a1c05c7b3c4668dba8414b1e9af8c6192f8ee58175571bdac","parameters":[{"name":"signature","type":"Signature"}],"deployed":false},"extra":null}],"extra":null}
I have changed some of the characters just in case.

I see that there is not as much information in the first address ,as there is in the other two. This is the one which contains my 9 Neo. I don't think this address was properly syncked .I did stop the scyncked process as It was taking a long time. Here is the real json file.
{"name":null,"version":"1.0","scrypt":{"n":16384,"r":8,"p":8},"accounts":[{"address":"AXxi4rJBKRpyKG5usWa6SPFRJKED4424QS","label":null,"isDefault":false,"lock":false,"key":null,"contract":{"script":"210255e00a81bb823e19d6ac27781ba33cf10b21f67f3b770c78023a82fb08af7899ac","parameters":[{"name":"signature","type":"Signature"}],"deployed":false},"extra":null},{"address":"AH6a71E3pPLSmZRfZFMbqKqyLqMnA1ymAU","label":null,"isDefault":false,"lock":false,"key":"6PYQb893QNFVxYQRv4zYNBZTiSHpdMLCJFf4xdnHcGVKJVH6AGVqX5fvfa","contract":{"script":"2103c155bb96ff19b26f982eb0e2bf72240f5ae8b11f22e05c1ad3533eac519a0c59ac","parameters":[{"name":"signature","type":"Signature"}],"deployed":false},"extra":null}],"extra":null}

So I think i see what's wrong with your AXxi4rJBKRpyKG5usWa6SPFRJKED4424QS address... the key is null.
[{"address":"AXxi4rJBKRpyKG5usWa6SPFRJKED4424QS","label":null,"isDefault":false,"lock":false**,"key":null,**"contract":{"script":"210255e00a81bb823e19d6ac27781ba33cf10b21f67f3b770c78023a82fb08af7899ac","parameters":[{"name":"signature","type":"Signature"}],"deployed":false},"extra":null
Your other address with 0 has a "key"
"address":"AH6a71E3pPLSmZRfZFMbqKqyLqMnA1ymAU","label":null,"isDefault":false,"lock":false,"key":"6PYQb893QNFVxYQRv4zYNBZTiSHpdMLCJFf4xdnHcGVKJVH6AGVqX5fvfa"
I am now 99% sure that's your problem... but unfortunately I don't have any idea on how to fix it / recover it.
You sure you don't have any old DB3 wallets or different versions of the .json file ?
You are basically missing the 'public key' for your public address...

correction .. the missing key is not the public key... i don't know where your 'missing key' comes from.  It's not the public key, HEX, or WIF.
Sorry man -- out of ideas unless you got an old db3 or .json that might have the 'missing key'

I have looked at all the version  json files. And they say the same thing key Null. Cant see any db3 files. The key is missing for some reason.As a last resort I did happen to see this file, it might help. The heading said Error:
System.NullReferenceException
Object reference not set to an instance of an object.
at Neo.Implementations.Blockchains.LevelDB.LevelDBBlockchain.GetBlockInternal(ReadOptions options, UInt256 hash)
at Neo.Wallets.WalletIndexer.ProcessBlocks()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()


Restore-SqlBackupFromDirectory NoRecovery

Is this a feature OR bug:
Bug

Powershell Version:  4.0
OS Version:  Windows 2012 R2

Steps to Reproduce
Restore-SqlBackupFromDirectory -SqlServer TestServer -Path '\UNCPath\Backups\TestServer$InstanceName' -Databases TestDatabase-NoRecovery
When trying to restore a database with and leaving it in NoRecovery by specifying the -NoRecovery parameter, the database is recovered.  When leaving off that option, it throws an error, but still recovers the database.  Also noticed that databases in full recovery mode with Differential backups and Log backups, do not get those restores.  It looks like from the output that just the full restore is being done.
Action Results
Expected Results
Additional comments

I think I figured out the issue.  In Ola's routine, the folder that would be created for a sql server named instance would be \UncPath\Backups\Server$NamedInstance.  That $NamedInstance seems to be the problem in the $Path variable.  How can you pass in the Server$NamedInstance path in powershell?

Maybe that's not it.  The full backup gets restored, just not the Diff and Logs, so it's probably not the $Path variable.

Maybe this is it.  If you restore the full database on line 240, but the database isn't restored with NoRecovery, then it won't be able to restore the Differential and Log backups either.  The thing is I don't know that its even getting into the If ($result -eq $true) or If ($diff) statements, because I don't get any message or error that it tries to restore the differential or log backups.
$result = Restore-Database $server $dbname $full "Database" $filestructure

@dczarny awesome thanks for looking this up. hopefully it'll be fixed by next week -- i want to show it in a demo next week!

I think that script would be handy in an emergency to get a bunch of databases restored in a hurry. I was actually testing it because I was trying to see if I could use it to setup log shipped.
Thank you,
Derek Czarny

From: Chrissy LeMaire<EMAIL_ADDRESS>Sent: Friday, January 13, 2017 5:44:49 PM
To: sqlcollaborative/dbatools
Cc: dczarny; Mention
Subject: Re: [sqlcollaborative/dbatools] Restore-SqlBackupFromDirectory NoRecovery (#516)
@dczarnyhttps://github.com/dczarny awesome thanks for looking this up. hopefully it'll be fixed by next week -- i want to show it in a demo next week!

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/sqlcollaborative/dbatools/issues/516#issuecomment-272578143, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AV1Ncta10PVSR3s9OhUAl3fSV1a9I0uAks5rSAxxgaJpZM4Lff8n.


runtime: optimization to reduce P churn

Background
The following is a fairly frequent pattern that appears in our code and others:
goroutine1:
ch1 <- data (1)
result = <-ch2 (2)

goroutine2:
data = <- ch1 (3)
// do work...
ch2 <- result (4)

The scheduler exhibits two different behaviors, depending on whether goroutine2 is busy and there are available Ps.

If goroutine2 is busy or there are no idle Ps, then the behavior is fine. The item will be enqueued in the channel, goroutine2 is marked as runnable if needed, and eventually goroutine1 will yield.
If goroutine2 is not busy and there are idle Ps, then the behavior is sub-optimal. The operation in (1) will mark goroutine2 as runnable, and wake up some idle P via a relatively expensive system call [1]. Ultimately the wake will likely result in an IPI to wake an idle core, if there are any. The next P will be scheduled and a race to (2) and (3) ensures.

In the second case, if the P wakes and successfully steals the now runnable goroutine2, i.e. (3) happens first, then it will start executing on the new P. Unfortunately, the whole dance will happen again with the result. If the P wakes but does not successfully steal the now runnable goroutine2, i.e. (4) happens first and goroutine2 is run locally, then a large number of cycles are wasted. Either way, this dance happens again with the result. In both cases, we spend a large number of cycles and interprocessor co-ordination costs for what should be a goroutine context switch.
These are further problems caused by this, as it will introduce unnecessary work stealing and bouncing of goroutines between system threads and cores. (Leading to locality inefficiencies.)
Ideal schedule
With an oracle, the ideal schedule after (1) would be:

If goroutine2 is running or there are no idle Ps, enqueue only (current behavior).
If goroutine1 will not block or has other goroutines in its runqueue, wake idle Ps (current behavior).
If goroutine1 will block immediately, and there are no other goroutines in P's local runqueue, do not wake up any other Ps. The goroutine2 will be executed by the current P immediately after goroutine1 blocks.

In essence, we want to yield the goroutine1's time to goroutine2 in this case, or at least avoid all the wasted signaling overhead. To put it another way: if goroutine1's P will block, then it fills the role of the "idle P" far more efficiently.
Proposal
It may be possible to specifically optimize for this case in the compiler, just as certain loop patterns are optimized.
In the case where a blocking channel send is immediately followed by a blocking channel receive, I propose an optimization that tries to avoid these scheduler round trips.
Here's a rough sketch of the idea:

runqput returns a bool that indicates whether the newly placed G is the only item on the queue. (Alternatively we could just check the runq length below.)
goready takes an additional parameter "deferwake" which skips the wake operation if true. By default this will be false everywhere, which implements current behavior.
chansend accepts a similar "deferwake" parameter. This is plumbed through to send, and will be AND'ed with the result of runqput. The deferwake parameter will be passed as true if the compiler detects a blocking receive immediately following the blocking send statement (or possibly in the same block, see below).
chanrecv also accepts a "deferwake" parameter, which will be set to true only when proceeded by a call to chansend with deferwake also set to true. If this is true AND the current goroutine will not yield as a result of the recv AND the current runqueue length > 0 AND there are idle Ps, at this point we can call wakeup.

Rejected alternatives
I thought about this problem a few years ago when it caused issues. In the past, I considered the possibility of a different channel operator. Something like:
ch1 <~ data
This operator would write to the channel and immediately yield to the other goroutine, if it was not already running (otherwise would fall back to the existing channel behavior). Using this operator in the above situation would make it much more efficient in general.
However, this is a language change, and confusing to users. When do you use which operator? It would be good to have the effect of this optimization out of the box.
Extensions

This optimization may apply to other kinds of wakes. I consider only channels today.
The optimization could be extended to cases where a blocking channel receive appears following the blocking send in the same block, not necessary the subsequent statement.

[1] https://github.com/golang/go/blob/master/src/runtime/proc.go#L665

What about just enforcing a minimum delay between when a G is created and when it can be stolen? That gives the local P time to finish the spawning G (finish = either done or block) and pick up the new G itself.
The delay would be on the order of the overhead to move a G between processors (sys calls, cache warmup, etc.)
The tricky part is to not even wake the remote P when the goroutine is queued. We want a timer somehow that can be cancelled if the G is started locally.

/cc @aclements @dvyukov @ianlancetaylor @cherrymui

Yes, most of the waste is generated by the wakeup call itself. Ensuring that the other P does not steal the G is probably a minor improvement, but you're still going to waste a ton of cycles (maybe even doing these wake ups twice -- on (1) and (4)).
I think using a timer gets much trickier. This is the reason I have limited the proposal to compiler-identified sequences of "chansend(block=true); chanrecv(block=true)" calls. It's possible that the system thread could be pre-empted between those calls, but if the system is busy (though Ps in this process may still be idle) it's probably even more valuable to not waste useless cycles.

(Totally open to a timer, but I'm concerned about replacing a P wakeup with a kick to sysmon in order to enforce the timer, which solves the locality issue but still burns cycles.)

Also see #8903 which was about a similar problem. I don't remember all details exactly now, but as far as I remember my proposal was somewhat more generic, but your wins in simplicity and most likely safer from potential negative effects for corner cases.

This has come up repeatedly. Obviously it is easy to recognize and fuse
ch1 <- data (1)
result = <-ch2 (2)

It's harder to see that in more complex code that would benefit from the optimization, though. We've fiddled with heuristics in the runtime to try to wait a little bit before stealing a G from a P, and so on. Probably more tuning is needed.
It's unclear this needs to be a proposal, unless you are proposing a language change, and it sounds like you've backed away from that.
The way forward with a suggestion like this is to try implementing it and see how much of an improvement (and how general of an improvement) it yields.

/cc @randall77 @aclements

test cc @golang/proposal-review

Related:
#27345 (start working on a new goroutine immediately, on the parent's stack)
#18237 (lots of time in findrunnable)
I also remember an issue related to ready goroutines ping-ponging around Ps, but I can't find it at the moment.

I backed away from a language change proposal based on the assumption that it would likely not be accepted. My personal preference would be to have an operation like <~ that immediately switches to the other goroutine if currently waiting. (And behaves like a normal channel operation if busy.) But I realize that the existence of this operator might be confusing.
I think it's unclear how much of a impact this would have in general. This is probably just be a tiny optimization that doesn't matter in the general case, but can help in a few very specific ones. For us, it might let us structure some goroutine interactions much more efficiently.
I hacked something together, and it seems like there's a decent effect on microbenchmarks at least (unless I screwed something up).
Code:
func BenchmarkPingPong(b *testing.B) {
	var wg sync.WaitGroup
	defer wg.Wait()

	ch1 := make(chan struct{}, 1)
	ch2 := make(chan struct{}, 1)
	wg.Add(2)
	go func() {
		defer wg.Done()
		for i := 0; i < b.N; i++ {
			ch1 <- struct{}{}
			<-ch2
		}
	}()
	go func() {
		defer wg.Done()
		<-ch1
		for i := 0; i < b.N-1; i++ {
			ch2 <- struct{}{}
			<-ch1
		}
		ch2 <- struct{}{}
	}()
}

Before:
/usr/bin/time /usr/bin/go test -bench=.* -benchtime=5s
goos: linux
goarch: amd64
BenchmarkPingPong-4   	20000000	       563 ns/op
PASS
ok  	_/home/amscanne/gotest/spin	11.805s
12.68user 1.00system 0:11.98elapsed 114%CPU (0avgtext+0avgdata 46036maxresident)k
0inputs+3816outputs (0major+19758minor)pagefaults 0swaps

After:
/usr/bin/time go test -bench=.* -benchtime=5s
goos: linux
goarch: amd64
BenchmarkPingPong-4   	20000000	       330 ns/op
PASS
ok  	_/home/amscanne/gotest/spin	6.949s
7.11user 0.05system 0:07.11elapsed 100%CPU (0avgtext+0avgdata 46460maxresident)k
0inputs+3824outputs (0major+19084minor)pagefaults 0swaps

The system time is telling @ 20x, and the extra 14% in CPU usage is indicative of an additional P waking up with nothing to do. (Or maybe it occasionally successfully steals the goroutine, which is also bad.)
Assuming this small optimization is readily acceptable -- what's the best way to group those operations and transform the channel calls? The runtime bits are straight-forward, but any up front guidance on the compiler side is appreciated. Otherwise, I'm just planning to call a specialized scan in walkstmt list, but maybe there's a better way.

Given that there is no language change here anymore, going to move this to being a regular issue.

I've started looking into this. I've got a very naive implementation (probably very similar to Adin's) to use with his microbenchmark.
Combined with perf stat, we can see higher-level system effects of the change.
Fixed time (-benchtime=1s):
name                   old time/op  new time/op  delta
ChanPingPong-12         467ns ± 2%   247ns ± 2%  -47.07%  (p=0.000 n=9+10)

name                   old iters    new iters    delta
ChanPingPong-iters-12   2.51M ± 5%   4.44M ±14%  +76.87%  (p=0.000 n=10+10)

name                   old msec     new msec     delta
Perf-task-clock         2.01k ± 2%   1.38k ± 5%  -31.43%  (p=0.000 n=10+8)

name                   old val      new val      delta
Perf-context-switches   44.1k ± 2%    0.7k ± 8%  -98.52%  (p=0.000 n=10+8)
Perf-cpu-migrations       182 ±19%      10 ±27%  -94.39%  (p=0.000 n=10+9)
Perf-page-faults          518 ± 8%     511 ± 8%     ~     (p=0.536 n=10+9)
Perf-cycles             4.58G ± 2%   5.54G ± 6%  +21.05%  (p=0.000 n=10+8)
Perf-instructions       8.21G ± 3%  11.22G ± 6%  +36.63%  (p=0.000 n=10+8)
Perf-branches           1.69G ± 3%   2.30G ± 6%  +35.76%  (p=0.000 n=10+8)
Perf-branch-misses      24.0M ± 3%   32.1M ± 6%  +33.90%  (p=0.000 n=10+8)

Fixed iterations (-benchtime=10000000x):
name                   old time/op  new time/op  delta
ChanPingPong-12         473ns ± 2%   241ns ± 3%  -49.00%  (p=0.000 n=10+10)

name                   old msec     new msec     delta
Perf-task-clock         5.68k ± 3%   2.43k ± 3%  -57.15%  (p=0.000 n=10+10)

name                   old val      new val      delta
Perf-context-switches    125k ± 3%      1k ± 9%  -99.54%  (p=0.000 n=10+9)
Perf-cpu-migrations       517 ±13%      11 ±51%  -97.95%  (p=0.000 n=10+10)
Perf-page-faults          469 ± 9%     473 ±11%     ~     (p=0.928 n=10+10)
Perf-cycles             13.1G ± 2%   10.4G ± 2%  -20.56%  (p=0.000 n=10+10)
Perf-instructions       23.2G ± 0%   21.0G ± 0%   -9.52%  (p=0.000 n=10+8)
Perf-branches           4.79G ± 0%   4.31G ± 0%  -10.11%  (p=0.000 n=10+8)
Perf-branch-misses      67.8M ± 0%   60.2M ± 0%  -11.30%  (p=0.000 n=10+10)

I've included both since the the different fixed dimensions change the interpretation. e.g., the first case has higher cycles after because it is simply able to do a lot more work. And it still does nearly double the iterations in 30% less CPU time (== far less time stalled)!
This certainly looks worthwhile from the micro-benchmark perspective. The questions remaining to me are if we can efficiently and reliably detect these scenarios, and if they affect many programs.

Here's @amscanne's prototype: https://github.com/amscanne/go/commit/eee812b594577f71894fd30a27d9a39ba99bf590
This is a bit more advanced than mine, as I haven't made any compiler changes yet.

For future reference, here's @amscanne's prototype: amscanne@eee812b
This is a bit more advanced than mine, as I haven't made any compiler changes yet.

@prattmic    Michael, I have one question,  amscanne@eee812b  need modify apis? and need user program  to perceive？
How  does compiler make the decision?

Neither @amscanne nor my prototype change any language syntax or APIs. Rather, the compiler detects channel send followed immediately by channel receive and rather than calling the typical runtime.chansend and runtime.chanrecv functions, it emits calls to alternative implementations (a single merged runtime.chansendrecv in my case).
Both prototypes are rudimentary and would probably hurt performance for many programs due to poor decisions and would need more refinement.


Merge SCSS files before injecting into HTML

Hi guys, it's me again :metal:. I noticed that Bootstrap SCSS and styles.scss are both included inside html.jsx. There's a few things here and I just wanted some clarification.
<style dangerouslySetInnerHTML={{ __html:
          require('../styles.scss')._getCss() +
          require('../bootstrap.scss')._getCss()
}}/>

The first thing that pops out to me is that styles.scss is loaded before bootstrap. I understand you might want to assign variables in styles.scss that bootstrap.scss would then use in place of their own, but any other css would likely be overridden by Bootstrap and that may be undesired for some developers.
You could leverage Sass imports and include bootstrap.scss internally at the top of the styles.scss file. If you're setting styles.scss to be before bootstrap.scss because you want to assign variables, a _variables.scss can be created. Note the underscore there, it allows variables to be scoped into the .scss file that imported it. Place bootstrap variable overrides in that and include as follows:

// styles.css
@import 'variables';
@import 'functions';
@import 'mixins';
@import 'bootstrap';

body {
  background: $gray-lightest;
}

Now my directory structure looks like this: (note: I added a styles directory because I plan on having quite a few modular files for Sass support)
style
├── _functions.scss
├── _mixins.scss
├── _variables.scss
├── bootstrap.scss
└── styles.scss

And now my html.jsx has the following:
<style dangerouslySetInnerHTML={{ __html:
          require('../styles.scss')._getCss()
}}/>

No rush on replying but I am curious about this. Thanks guys!

Hi Joe,
Yes, I think the order need to be changed vice versa, e.g. bootstrap.scss need to be loaded first, and styles.scss second.
The reason for separation is to speed up hot code reload for styles. Bootstrap styles are pretty big and we wanted to separate them out, so that they don't slow down reloading of custom styles.

Just following up here, it looks like splitting up the files like they are now increases build speed but one of the largest benefits of Bootstrap is being able to build with their variables available so developers can stick to a convention and not have to name things on their own. Running the project requesting a very popular variable returns in an  error:
// styles.scss
ERROR in ./~/css-loader!./~/sass-loader!./src/ui/styles.scss
Module build failed:
  background-color: $brand-primary;
                   ^
      Undefined variable: "$brand-primary".
      in /Users/jb/Sites/forks/apollo-fullstack-starter-kit/src/ui/styles.scss (line 10, column 21)
Error:
  background-color: $brand-primary;
                   ^
      Undefined variable: "$brand-primary".
      in /Users/jb/Sites/forks/apollo-fullstack-starter-kit/src/ui/styles.scss (line 10, column 21)
    at options.error (/Users/jb/Sites/forks/apollo-fullstack-starter-kit/node_modules/node-sass/lib/index.js:291:26)
 @ ./src/ui/styles.scss 2:18-127 19:6-27:8 20:18-127
webpack-for-backend Time: 82ms

Unfortunately the only way to solve this is to import the bootstrap file within styles.scss to get access to the variables that Bootstrap already defined. I think the average developer looking at this repo will probably figure that out, but maybe a note should be made about this in the README. I do understand some developers want Bootstrap basics and don't care about variable access.

@josephdburdick Let's maybe merge styles.scss with bootstrap.scss then. Incremental build speedup time seems not worth the trouble and confusion it creates...


[5.2][CS] Use getParameterType for KeyPath as function

Previously we were using getPlainType to match the parameter type against the key path's base type. This gave us the external parameter type, which would be the element type for a variadic parameter.  However the code we generate expects the internal parameter type, which is provided by getParameterType.
rdar://problem/59445486.

@swift-ci please test

Ok, I'm not crazy since this is for 5.2 :)


WiFi on (PoE) Ethernet boards

Added two options to is-cfg.json:

enable WiFi on (PoE) Ethernet boards as proposed in issue, closing #116
adjust LoRa receiver gain, closing #115

@df2jh thanks for the changes 👍


Poor multithreading performance when calling functions within a thread

Godot version
3.4.2-stable
System information
Windows 10, Intel Core i7 8700-K (6 cores, 12 threads)
Issue description
I've created a scene that tests the performance of Godot's multithreading:

Blue squares show the processing speeds of each thread.
The red square shows the combined processing speed of all threads.
Keys 1-6 start/stop threads. Use the mouse wheel to adjust the scale.
Speed is measured by looping some logic, and finding the number of iterations processed per microsecond.
(Exact speed values are not shown.)
Standard GDScript Operations Work Fine
If iteration logic of each thread uses standard GDScript operations:
while(true):
    some_val += 1

Then the performance seems fine.
Adding a thread does not slow down other threads, and the total processing speed increases.
(Shown above)
Calling Functions Works Poorly
If iteration logic of each thread uses some kind of function:
while(true):
    _increment(some_val)

Then the performance suffers:

Adding a thread slows down other threads, and the total processing speed does not increase.
This happens for:

GDScript functions
Standard Module C++ functions (such as OpenSimplexNoise.get_noise_2d())
Custom Module C++ functions (such as Summator.add() from the tutorial Module)

Calling a Unique Function Per Thread:
If the iteration logic of each thread calls a unique function:
while(true):
    call("_increment" + str(thread_index), some_val)

Then the performance does not suffer as much:

Adding a thread slows down other threads, but the total processing speed increases.
Steps to reproduce
Here are the game builds I used for testing:
(Use keys 1-6 and mouse scroll wheel)
Threading_Test_No_Function.zip
Threading_Test_GDScript_Function.zip
Threading_Test_Module_Function.zip
Threading_Test_Custom_Module_Function.zip
Threading_Test_Unique_GDScript_Functions.zip
Download the minimal reproduction project and comment/uncomment lines from the _thread_function() function.
Make sure to export the game as an .exe before testing.
If you want to test the Summator.add() function, you'll need to build the engine from the 3.4.2-stable source code with the Summator module included:
summator.zip
Minimal reproduction project
Multithreading_Test.zip

I think it's a duplicate (or at least related) of https://github.com/godotengine/godot/issues/7832.

wouldnt it be normal if 2 threads do the same thing that 1 has to do less

@Calinou
Just tested everything but the Summator Module function in 3.2.3. Getting the same results.
My concern is with how the use of functions can make the same logic run significantly slower.

@qdeanc You could look into using a C++ profiler to see where the bottleneck is located in the Godot source code. Note that this requires compiling a debug build as it needs debug symbols.

@Calinou Ok, I'll try that

@Calinou Ok, I think I did it correctly:

I'm not sure how to read this yet; hopefully someone more familiar with this can take a look

hi @qdeanc,
did you gather any insights on performance of the threads compared to the main thread? it seems like the main thread is "running" much faster, but I'm still debugging

@pseidemann I haven't had any issues where one thread ran noticeably faster than another.
My understanding is that GDScript concurrent function calling doesn't work very well at all.
Simultaneously calling a function across multiple threads appears to slow everything down; as if the function can only be called from one thread at a time.
I'm now using C++ in GDNative where this isn't an issue. Everything I've written this way runs super fast and multithreading works great.

I imported the original project @qdeanc created to Godot 4.0.2 (but ignored the modules) and reran the tests.
This yielded identical results - adding threads did not increase processing speed if concurrent function calling was used, and even calling a function unique to a thread resulted in weaker, rapidly diminishing speed gains.
In contrast, incrementing by using the + operator is about 100% efficient, i.e. adding 6 threads results in almost 6x speed gain.
Machine: 14× 12th Gen Intel® Core™ i7-12700H, 15.4 GiB memory
I won't be able to debug it myself as C++ is not my forte, but wanted to provide updated test results.

Discovered this issue separately while doing some things in Godot v4.1.1.stable.official [bd6af8e0e].
Here is how to reproduce the problem:

In an empty project, create a new 2D-scene.
Add the following script to the root Node2D: https://gist.github.com/Amegatron/00800d618cd5c9b5ef36b3995086a2e8
Launch the game and wait a bit so it fully loads.
Using keys 1-9 sets the corresponding number of threads. Adding Shift or Ctrl adds 10 to the amount.
Press Enter, and you'll see debug messages in the console, showing the time taken.

Note that no inter-process communication is happening there. All work is fully internal to a thread. Also note that there are even no function calls except for measurement invocations, which are totally not part of the load, but the time still significantly increases with more threads.


Android NDK arm64 & arm is added to path twice in .travis.yml

Forgot to remove the last two lines:
- PATH=$PATH:$NDK_STANDALONE/arm/bin
- PATH=$PATH:$NDK_STANDALONE/arm64/bin

Thanks :)


Youtube embed - Autoplay is not working in mobile and tablet (iphone / ipad)

Hello,
I am using colorbox in my magento shop to show product videos, it works perfect on my computer that the autoplay is functioning, but not at all in mobile (iPhone 5) and tablet (iPad-mini). Also in the script, I set the maxWidth and maxHeight of the overlay window and a fixed width and height in the youtube embed parameter, but in the mobile version, the screen of the video got cut off.
Here is my code:
<a href="javascript:void jQuery.colorbox({html:'',maxWidth:'95%', maxHeight:'95%', })">

How can I fix these issues - autoplay the video in mobile and tablet when the image is clicked and size of the video screen fit into the overlay window.
Thanks
Sharon

If you just add the iframe to your page, without using Colorbox, does it autoplay as you expect?
Some browsers do not like having an iframe moved around in the DOM after the src has been set, which Colorbox does do for any HTML it's passed in as part of measuring it's dimensions.  When Colorbox creates an iframe itself (by using the iframe property), it waits until after the iframe is in it's final location in the DOM before setting the src.  I would suggest waiting until the onComplete event fires to set the iframe's src, to see if that resolves the issue.  For example:
jQuery.colorbox({
	html:'',
	maxWidth:'95%',
	maxHeight:'95%',
	onComplete: function(){
		jQuery('#example')[0].src = "http://www.youtube.com/embed/QJmQGE53rdw?HD=1;autoplay=1;rel=0;showinfo=0;controls=0;";
	}});

Or maybe you can read contents of ColorBox via AJAX request (ColorBox already supports that).

Hello,
Thanks for a quick response.
I tried to use the script you gave it to me, then it turns to be playing the video when the page is onloading. Please check: http://au.reenbergs.com/
While the video screen still cut half in the overlay box. (but the video doesn't pop up right after the page is loaded like on desktop).
Here is my code:

It was just an example, not intended to be a copy-paste-solution to your problem. But is sounds like it resolved your playback issue?  For the exact HTML you are using, I don't see any reason not to just go ahead and use the iframe property that Colorbox provides.  Here is a another example that you should be able to copy-paste:

Autoplay is not supported in iphone and Android devices

swiftini your face is just perfect for your answer


Bug: OneDrive folder isn't loading the correct location

Description
If the Folder of Microsoft OneDrive is set to a different Location and is NOT set to the Default Location (C:\Users%username%\OneDrive) an error pops when click the "OneDrive" folder in your "Cloud Drives" Section!

Steps To Reproduce
See Description and Screenshot!
Requirements
See Description and Screenshot!
Files Version
3.0
Windows Version
Windows 11 Build 22621.2428
Log File
not needed

Can you upload the log file?

Can you upload the log file?

i can, logfile here:
debug.log
but now...
im very interested to hear what the log file change...
because it just say NOTHING
anyway...
the "proper" way to get the OneDrive folder is not to set it "hardcoded" as it is, because it is stored in the Windows Registry!
HKEY_CURRENT_USER\Software\Microsoft\OneDrive with the Value UserFolder

The reason we ask for the log is because we don't know what it says. The OneDrive folder also isn't hardcoded.

Thank you for uploading the log file, we indeed use the Registry to fetch location. We'll have to take a closer look to see why it's not working for you. Alternatively, if you're interested in debugging this from you side, the relevant code is in CloudDrivesDetector.cs line 152.

ah i see
my Registry (for whatever reason) contains 2 Accounts...
maybe because of Office 365 -> don't know?
one (the first) is called Business1 what contains C:\Users\****\OneDrive

and Personal what contains my actual UserFolder F:\OneDrive is not get listed

But your code looks correct as of you enum all subkeys...
very confusing!
maybe you can add a little debug code to write the contents of the list oneDriveAccounts to the debug file?
maybe i can try it by myself later but im sure you know your code better ^^

This might be related to #4966.

Yeah looks like that is the Problem!
But why enum all possible accounts into a list if only the first one can be displayed? 😕
This can cause performance issues in worst case i guess.
Anyway....
I've removed the Business1 as a workaround for now and the Personal OneDrive is now the only one in Files.

I think there is supposed to be support for multiple accounts, @gave92 do you know what's going on here?


First loading object mapping windows shows empty until data is loaded

First loading object mapping windows in ObjectMappingPage shows empty until data is loaded.
Spinner should be appeared when the data is being loaded instead of showing empty table.

Spinner is added. Fixed.


Change type definition of Object.keys and for..in loop

Search Terms
Object.keys, index signature
Suggestion
Currently the definition of Object.keys in lib.d.ts is
keys(o: {}): string[];
why not change to
keys<T extends Object>(o: T):  Array<keyof T>
and accordingly change for ... in loop
Use Cases
It is ridiculous that code like
const a = {}
Object.keys(a).forEach(key => a[key])
will raise a 'has no index signature' error
Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript / JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. new expression-level syntax)

Yep, that works out of the box:
const getKeys = <T extends {}>(o: T): Array<keyof T> => <Array<keyof T>>Object.keys(o)
var keys = getKeys({ first: "John", last: "Lennon" }) // => ("first" | "last")[]


Implement board.xml support

board.xml is a specification of the virtual game board. Effectively it is a layout tree that has stateful interactive components (so-called BoardObjects) as some of its terminal nodes.
When game is run, two separate entities specified by board.xml are generated:

initial board layout, which is how game appears to the end user
initial board state, which is a tree of the BoardObject components

Implemented as a tree of BoardObjects, the board state effectively encodes the game's information state and the list of available actions that can be performed on this state.
When the state is changed, there is a single definite way to generate the layout given the specification and the board state.
There are two ways of accessing the board state information via the board layout:

reactive properties (can read the state, but cannot modify it) — can be defined both on BoardObjects and ordinary UI components
BoardObject components themselves

The example implementation of a game would look like something like this https://gist.github.com/oevseev/0d7132ba8754c837bc95e84a5705122d


Handling of apartment numbers

I want to save the addresses of people in my obsidian notes. For sending post, the aparment numbers are also important.
In Austria, this is normally done via

Data
Explanation

Frau
Title

Michaela Sommer
Name

Grünwaldweg 16/3/25
Street, House/Staircase/Apartment Number

81671 MÜNCHEN
Post Code, City

DEUTSCHLAND
Country

I know that even the OpenStreetMap Nominatim does not support these apartment numbers in the search.
But is there a recommended way to keep the apartment numbers included in my obsidian files?
My workaround for now is to first just use an address which can be found by obsidian-map-view.
[Grünwaldweg 16, Bad Gleichenberg 8344, Austria](geo:46.860985400000004,15.91317099779346)
And after the generation of lat/lon I add additional details I need. For examples
[Grünwaldweg 16/3/4, Bad Gleichenberg 8344, Austria](geo:46.860985400000004,15.91317099779346)
I am totally fine with this, but I wonder if this is the best approach?

Sorry for the late reply, but I also don't have much better ideas than you do here :)
The only thing I have to add, is that at least for me, I sometimes take a more minimalistic approach to the geolink name, and put in there what I want to actually see in the map -- e.g. the person name. I then put other details like the address in a line below. Sometimes I do the same with bullets. This includes addresses, opening times, phone numbers and pretty much anything else I want to quickly access based on the location.


Allow thenProceed in preview providers

Is your feature request related to a problem? Please describe.
I want to use previews to view my FlowRepresentable as it'll appear in a workflow, even if that's just a single item workflow. However, right now thenProceed is not available.
Describe the solution you'd like
Either make thenProceed globally available so we quit having one-off "I need it added" or add it to PreviewProvider.
Describe alternatives you've considered
I could write my own extension for this, but it should just work out of the box. Additionally, I suppose we could wrap thenProceed in some new protocol? However, I don't like the idea that I have to conform to a protocol just to define a workflow. There may be something to investigating resultBuilders in a future version of Swift where they allow those scoped functions. I've seen proposals about it, but for now I don't think we should go that route.

Even hacky workarounds are proving difficult

For anybody who might also be stuck here's a horrible workaround:
struct HomeView_Previews: PreviewProvider {
    struct WF: View {
        var body: some View {
            WorkflowLauncher(isLaunched: .constant(true)) {
                thenProceed(with: HomeView.self)
                    .presentationType(.navigationLink)
            }.embedInNavigationView()
        }
    }

    static var previews: some View { WF() }
}

Closing because this is working and has been merged.

Please reopen. This was not merged to main. It isn't available for consumers because it was a breaking change

I'll reopen but I'm a little confused. I was able to see the ContentView in the SwiftUI sample rendering correctly while using the preview canvas. Unless you're saying that you can't write thenProceed in the previewprovider, but I'm not sure why that would be a thing we'd want to do. My impression was that you just put the view into the previewprovider and if that rendered then you're good.

I think the part about showing a view in context and also showing a view in multiple states makes sense to me. I've only used previews to visual the design of things as well as show views within other views. The views within other views sounds like what you're talking about here, albeit with views inside of workflows so I think this is a reasonable ask.
I don't normally mind using the simulator or clicking the play button on the canvas, but I could imagine that being heavier in some cases.

It sounds like making thenProceed static is likely the way to go, but there might be a fancier way to achieve that as well.

#179 invalidates this issue as a thing. The new SwiftUI API lends itself much better to all use-cases.


Recognition delay

how can use this package for recognition speech automatically?
now I'm using onSpeechRecognized to recognize automatically, but the delay is very short,
e.g. when I speak 107, I get only 1.
how can I solve this problem?

@devstar217 Did you solve your problem?


aws batch job analyze failing

Description
failing on extra fields not permitted (type=value_error.extra)
Steps to Reproduce
using batch branch
rastervision -p batch run batch building_detection.building_detection \
    -a raw_uri 's3://rastervisiontestp/' \
    -a processed_uri '/opt/data/processed/' \
    -a root_uri 's3://rastervisiontestp/output/' \
    -a test True

Actual Behaviour

Traceback (most recent call last):
--
File "/opt/conda/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/opt/conda/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/src/rastervision_pipeline/rastervision/pipeline/cli.py", line 248, in <module>
main()
File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/conda/lib/python3.6/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/opt/src/rastervision_pipeline/rastervision/pipeline/cli.py", line 240, in run_command
runner=runner)
File "/opt/src/rastervision_pipeline/rastervision/pipeline/cli.py", line 200, in _run_command
cfg = build_config(pipeline_cfg_dict)
File "/opt/src/rastervision_pipeline/rastervision/pipeline/config.py", line 147, in build_config
new_x[k] = build_config(v)
File "/opt/src/rastervision_pipeline/rastervision/pipeline/config.py", line 151, in build_config
new_x = config_cls(**new_x)
File "pydantic/main.py", line 274, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 2 validation errors for PyTorchSemanticSegmentationConfig
data
field required (type=value_error.missing)
augmentors
extra fields not permitted (type=value_error.extra)

Expected Behaviour
all operation succeed without error
System

Screenshots

Additional Context

migrating from CF to CDK solved this


merge 2 versions: EDF and SET

need to decide:

merging divergent UIs from set2bids and eeg2bids

maybe 1 week for an expert

design discussion : June 14

what needs to be done, june 14:

add Detection of format (just check the extension of the file, and/or Ask format)
add Back-end support for both edf/set

There seem to be no additions to the GUI from EEG2BIDS to set2bids, from discussion June 14


The requested module 'osu-classes' does not provide an export named 'LegacyReplayFrame'

When I ran the following command, I got the following warning:
C:\Users\user> npm install --force @kionell/osu-pp-calculator
npm WARN using --force Recommended protections disabled.
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving<EMAIL_ADDRESS>npm WARN Found<EMAIL_ADDRESS>npm WARN node_modules/osu-classes
npm WARN   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm WARN   node_modules/osu-catch-stable
npm WARN     peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm WARN     node_modules/@kionell/osu-pp-calculator
npm WARN   4 more (osu-mania-stable, osu-standard-stable, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm WARN node_modules/osu-parsers
npm WARN   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm WARN   node_modules/@kionell/osu-pp-calculator
npm WARN
npm WARN Conflicting peer dependency<EMAIL_ADDRESS>npm WARN node_modules/osu-classes
npm WARN   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm WARN   node_modules/osu-parsers
npm WARN     peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm WARN     node_modules/@kionell/osu-pp-calculator

added 7 packages, changed 1 package, and audited 35 packages in 8s

6 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Then I ran the following code and got the following error:
import { BeatmapCalculator } from "@kionell/osu-pp-calculator";

const mapCalculator = new BeatmapCalculator();

const result = await mapCalculator.calculate({
  beatmapId: 1632808,
  rulesetId: 2,
  accuracy: [98, 99, 100]
});

console.log(result);

file:///C:/Users/user/node_modules/osu-parsers/lib/node.mjs:1
import { Color4, EventType, StoryboardSample, StoryboardAnimation, Vector2, StoryboardSprite, LayerType, StoryboardVideo, CompoundType, CommandType, ParameterType, BlendingParameters, Origins, Anchor, LoopType, BeatmapBreakEvent, SampleSet, HitObject, SliderPath, CommandLoop, CommandTrigger, HitType, HitSound, PathType, EffectType, TimeSignature, ControlPointType, ReplayButtonState, LegacyReplayFrame, Storyboard, SampleBank, PathPoint, HitSample, TimingPoint, DifficultyPoint, EffectPoint, SamplePoint, LifeBarFrame, Beatmap, ScoreInfo, Replay, Score } from 'osu-classes';
                                                                                ^^^^^^^^^^^^^^^^^
SyntaxError: The requested module 'osu-classes' does not provide an export named 'LegacyReplayFrame'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

Node.js v18.17.1

C:\Users\user>npm version
{
  npm: '9.6.7',
  node: '18.17.1',
  acorn: '8.8.2',
  ada: '2.5.0',
  ares: '1.19.1',
  brotli: '1.0.9',
  cldr: '43.0',
  icu: '73.1',
  llhttp: '6.0.11',
  modules: '108',
  napi: '9',
  nghttp2: '1.52.0',
  nghttp3: '0.7.0',
  ngtcp2: '0.8.1',
  openssl: '3.0.10+quic',
  simdutf: '3.2.12',
  tz: '2023c',
  undici: '5.22.1',
  unicode: '15.0',
  uv: '1.44.2',
  uvwasi: '0.0.18',
  v8: '<IP_ADDRESS>-node.26',
  zlib: '<IP_ADDRESS>-motley'
}

Current dependencies are outdated. There are two possible solutions:

Wait for me to update it (It may take a couple of days).
Try to install peer dependencies manually:

npm i osu-classes
npm i osu-parsers
npm i @kionell/osu-pp-calculator

error occured🥲
C:\Users\user>npm i osu-classes
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving<EMAIL_ADDRESS>npm WARN Found<EMAIL_ADDRESS>npm WARN node_modules/osu-classes
npm WARN   osu-classes@"*" from the root project
npm WARN   5 more (@kionell/osu-pp-calculator, osu-catch-stable, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm WARN node_modules/osu-parsers
npm WARN   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm WARN   node_modules/@kionell/osu-pp-calculator
npm WARN
npm WARN Conflicting peer dependency<EMAIL_ADDRESS>npm WARN node_modules/osu-classes
npm WARN   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm WARN   node_modules/osu-parsers
npm WARN     peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm WARN     node_modules/@kionell/osu-pp-calculator

added 1 package, removed 12 packages, and audited 17 packages in 11s

5 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

C:\Users\user>npm i osu-parsers
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/osu-classes
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from osu-parsers
@4.1.3
npm ERR! node_modules/osu-parsers
npm ERR!   osu-parsers@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! C:\Users\user\AppData\Local\npm-cache\_logs\2023-09-06T16_46_35_040Z-eresolve-report.txt

npm ERR!


Docs: Fix link to community/tkdodos-blog

The links on https://tanstack.com/query/v5/docs/framework/react/typescript/#further-reading are broken.
Note: I did not check other places of the code, which should probably happen as well.

all links have been fixed with:

#7247


Scoped CSS

This PR add the functionality of 'Scoped CSS emulation' to Riot.js. See #381
<my-tag>
  <style scoped>
    :scope { display: block; border: 2px }
    h3 { color: blue }
  </style>
</my-tag>

The style part will translate into CSS below.
my-tag { display: block; border: 2px }
my-tag h3 { color: blue }

This includes test/compiler/style.scoped.tag as a fixture.
(But I couldn't put the expected js into test/compiler/js directory, because it is gitignored)

Looking good!
Any chance to add a test suite for the scopedCSS function only? Similar to this one. You can export it here.

OK, I'll try it :)
Thanks for reviewing!

And of course, documentation would be nice too :)
Pretty please...

@tipiirai Done. How about?

Looks great! Thank you so much.


managment resource package link is broken (404)

[Enter feedback here]
when clikc on the link for package "azure.mgmt.resource.resources", the page returned as 404. URL is listed below:
https://docs.microsoft.com/en-us/python/api/azure.mgmt.resource.resources

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

ID: e19ddc50-3cc0-eded-49ed-e1f2552a421c
Version Independent ID: 391c4753-337c-8a9f-fa58-2c6fc95cb6df
Content: Azure Resources libraries for Python
Content Source: docs-ref-services/latest/azure.mgmt.resource.md
Service: resources
Product: azure
Technology: azure
GitHub Login: @lisawong19
Microsoft Alias: routlaw

Thanks for the feedback, we’ll investigate asap.

Hello @SiweiWang Apologies for the delayed response. I see that this issue is opened a long time ago and no further activity had taken place. We are working on this to resolve asap.