THRIFT-5712 - Added Dart 3 Compatibility

Known issues:

removed 2 tests from serializer_test.dart
t_framed_transport_test is not passing

[x] Did you create an Apache Jira ticket?  (Request account here, not required for trivial changes)
[x] If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
[x] Did you squash your changes to a single commit?  (not required, but preferred)
[x] Did you do your best to avoid breaking changes?  If one was needed, did you label the Jira ticket with "Breaking-Change"?
[x] If your change does not involve any code, include [skip ci] anywhere in the commit message to free up build resources.

Hi,
First of all great work on the Dart 3 Compatibility !
I am trying to use thrift in a Dart/Flutter project but both my own Thrift files and Tutorial files provide a bunch of errors for example. I don't know if this is the right place to post this but as it's connected to Dart 3 maybe somebody here could assists ?

Missing concrete implementations of 'TBase.getFieldValue', 'TBase.isSet', and 'TBase.setFieldValue'. Try implementing the missing methods, or make the class abstract. ( This is almost on every class generated by Thrift)

It assumes that everything is package : import 'package:shared/shared.dart' as t_shared;. Am i doing this wrong maybe ? I am currently having the Thrift generated files in the lib folder as part of the project ?

Undefined class 'Uint8List'. Try changing the name to the name of an existing class, or creating a class with the name 'Uint8List

Hi @baller-paul  Any update on this?


Zerg and zergbw supply is not updated when worker is morphed to building

Updated currentSupply function to handle drones morphing to buildings.


Make render loop wait for model updates

Previously, the render loop was running on every animation frame in the browser. Now, then render loop waits until there has been at least one update to the model before re-starting the render cycle.

Thanks @armanbilge, that is what we talked about.
I'm thinking about this in terms of https://github.com/PurpleKingdomGames/tyrian/issues/201 and wondering if this is the right strategy though. I'll try and mull it over on an up-coming dog walk or something. :smile:

@armanbilge, as it stands this PR doesn't quite work (the page never re-renders), but if you remove resetModelUpdateCount i.e. lines 41 and 90, then it appears to work perfectly.
I imagine what you were trying to do there is avoid a situation when you end up with an overabundance of permits available to avoid multiple renders?

Quite. :confused: emoji is my general feeling in that bit of code. Which is odd because it's barely 60 lines of not terribly complicated looking code. :smile:
I'm in the middle of something at the moment, but I think when I get the chance, I'd like to see if there's some way to reformulate it that makes it easier to follow.

Closing as this issue has been resolved by another PR.


Move @types/tunnel to devDependencies, not required for building

@types/tunnel is not required for building, creates unnecessary dependencies when consumed

Thanks for sending PR. I see that one of the CI steps is failing, it is because it requires a version bump. You can run npm version patch and it will bump the patch version.
Would you mind updating the changelog as well for the new 2.2.1: https://github.com/Azure/ms-rest-js/blob/master/Changelog.md you can set UNRELEASED instead of the date and I'll update once we release

please also update the version in https://github.com/Azure/ms-rest-js/blob/43a03bc7581dcf811447fd96ef9bc091dba0fdf0/lib/util/constants.ts#L10

Version bumped.

We actually had to revert a similar change in core-http because it broke consumer's typescript code https://github.com/Azure/azure-sdk-for-js/pull/9276.
https://github.com/Azure/azure-sdk-for-js/issues/9278 is logged to track a better fix.

We probably should keep @types/node-fetch in dependencies @joheredi?

We actually had to revert a similar change in core-http because it broke consumer's typescript code Azure/azure-sdk-for-js#9276.
Azure/azure-sdk-for-js#9278 is logged to track a better fix.

While I understand the issue, out of curiosity: if this package on its own doesn't require the dependency for building, how come the consumer couldn't define their own dependency on types/node?

@jeremymeng I thought that issue was specific to @types/node. Didnt realize it applied to types for other packages as well

@jeremymeng I thought that issue was specific to @types/node. Didnt realize it applied to types for other packages as well

Yes it's because @types/node-fetch has a dependency on @types/node so the latter gets installed transitively when @types/node-fetch is in the dependencies section.  The issue does not affect other packages.

if this package on its own doesn't require the dependency for building

I think devDependencies are still required for building this package.

Similar change actually broke ms-rest-azure-js in v1.x #431

@jeremymeng What is the latest status on this?

@ramya-rao-a/@xirzec this is ready to merge. Please review and approve.


Postgres Daterange Query

Is it possible to use Postgres' daterange query in KnexJS? I haven't figured a solution.
http://www.postgresql.org/docs/current/interactive/rangetypes.html

For those looking to parse and use range types, check out https://github.com/WhoopInc/node-pg-range.


How to use dataCollector - kount or capture device data

How to pass dataCollector?
Braintree wants to capture device data
Since you are not capturing device data, your fraud tools are not working. Please make sure you are properly capturing this data. Please reach out to our Support team for assistance: https://www.braintreepayments.com/en-gb/contact.

@Taracque, Can we update drop-in plugin....

@Taracque Anything we can capture this data....


APM: Skip flaky trace config hostname test

What does this PR do?
Skip this flaky test to avoid flaking main while we investigate. I also saw that we were reading a file from testdata manually which slows the test down (possibly contributing to the flakes?) So I moved the template data to a go:embed so the reading happens at build time.
Motivation
Flakes slow us down
Describe how you validated your changes

Possible Drawbacks / Trade-offs
Additional Notes

/merge


webpack doesn't reload module in the watch mode after a file reported as a dependency by a loader gets renamed or removed from the file system

Consider the following loader:
var path = require('path');
var fs = require('fs');

module.exports = function(input) {
    this.cacheable();

    var footerPath = path.resolve('./footer.txt'):
    this.addDependency(footerPath);
    if (fs.existsSync(footerPath))
        input += fs.readFileSync(footerPath);

    return input;
};

This loader appends constents of footer.txt, but only if it exists.
In the watch mode the user expects that when she renames footer.txt or deletes it from the file system, the bundle gets repacked with no footer included. Instead, webpack ignores renaming and deletion of dependencies, and doesn't repack the bundle, so, the bundle becomes out of sync with the sources.
Of course, my actual use case is more complex, and relates to my TypeScript loader. For example, the problem is that webpack doesn't repack the bundle when the extension of a dependency is changed from .tsx to .ts, even if contents of the file is changed after renaming.

Any plans for the issue?

👍


gen_syscalls.py fixes

Multiple fixes, cleanups, etc. Details are in commit logs, especially the 3rd one.

I guess I'd rather see the 2-3 liner to fix the bug and then a big cleanup,
but that's more of a style thing.

I tried. But the fix involves using unions rather than casts. That
implied local union declarations. I don't think I could have done it in
2-3 lines. It seemed easier to refactor the existing code for generating
supplement arguments into a common stream upfront.


enhancement: Indicate loading  in some way when open a stream.

This issue mainly relates to one's with a slow internet connection. There is no indicator to indicate that the stream is loading after a click, so it becomes inconvenient/irritating, and sometimes, users click multiple times on stream/or otherwise. Below is a screen capture of the problem. There is some delay in stream-opening but nothing to indicate that.

@zulipbot add  "enhancement"

@zulipbot add "feedback wanted"


Broken links in luigi sample angular documentation

Some links in documentation reference to 404 page. For example extendedConfiguration.js and basicConfiguration.js.

The issue has been resolved withing another ticket https://github.com/kyma-project/luigi/issues/515


Table does not add new page automatically anymore

I have noticed that the table doesn't create a new page if the content is long. I found an option called addPage but setting this to true throws an error.
ReferenceError: Cannot access 'onFirePageAdded' before initialization

I'm facing the same issue.
After a small investigation, this line seems to be the source of the problem.
Removing lockAddPage = true; resolved the issue for me.
@natancabral Could you please verify this is the correct fix, and publish it ?

I'm facing the same issue, Thanks @ELIONET!, it solved the problem.

I am seeing the same issue. I have a for-loop that renders tables. The cursor just gets reset to the top of the same page. I have tried removing lockAddPage = true but see no changes. I am running "pdfkit-table": "^0.1.99" on node v14.17.0.

i'm still having this problem<EMAIL_ADDRESS>that the table continues at the top of the page instead of adding a new page. solved it by setting lockAddPage = false;  on line 486.

@issogood I tried this and it's still showing the Cannot access 'onFirePageAdded' before initialization error. Did you change anything else? Thanks

i'm still having this problem<EMAIL_ADDRESS>that the table continues at the top of the page instead of adding a new page. solved it by setting lockAddPage = false;  on line 486.

@issogood I tried this and it's still showing the Cannot access 'onFirePageAdded' before initialization error. Did you change anything else? Thanks

Ah nevermind I just remove the addPage option and it worked :D

i'm still having this problem<EMAIL_ADDRESS>that the table continues at the top of the page instead of adding a new page. solved it by setting lockAddPage = false;  on line 486.

@issogood I tried this and it's still showing the Cannot access 'onFirePageAdded' before initialization error. Did you change anything else? Thanks

Just adding that I have the same issue, can't use the addPage option because of Cannot access 'onFirePageAdded' before initialization


Sample that shows multi-tenant client_creds + cache with eviction

@bgavrilMS for this sample, we need to include a minimal set of instructions on how to get started - what to install, what commands to run, etc.
If you want to, I can help adding that to the README?

@bgavrilMS for this sample, we need to include a minimal set of instructions on how to get started - what to install, what commands to run, etc.
If you want to, I can help adding that to the README?

Do you want me to copy back the instructions from the basic sample?


No link to GitHub releases

Short description: With the new layout of GitHub there does not seem to be an easy way to reach the releases page.
Possible solution: As far as I can tell, you are creating tags, but you also want to create a release.
Elaborate description: Compare the side-bar of aws-sdk-cpp with the side-bar of aws-c-common.

As you can see, there is no link to any of the releases for aws-sdk-cpp while they are visible for aws-c-common. As such, it is difficult to check for new releases.
Also, when watching the repository, i.e., Watch [button] -> Releases only, I am newer notified about a new release.

As of today, tags are listed as releases. This leaves the problem of receiving notifications about new releases/tags.

Hi @markus289 ,
Hmmm yea I can kind of see the value in starting to do that, will bring it up and update on how we'll approach this.
Thanks for bringing it up to us!


Hue [CDPD-35379] Enable HTTP_X_FORWARDED header detection

What changes were proposed in this pull request?

(Please fill in changes proposed in this fix)

How was this patch tested?

(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)

Please review Hue Contributing Guide before opening a pull request.

LGTM, just some linting issue on settings.py..

The linter is failing on changes unrelated to mine.


Scenario about Azure VM without public IP address and not in the backend of load balance.

Hi colleagues,
For the following articles:
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-deploy-static-pip-arm-cli
Our customers are interesting to the first note section about using ephemeral IP to configure outbound internet connection in images 1.
Image 1:

The customer select the second link(https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-outbound-connections) and did not find the following scenario in the content of the corresponding link.
Scenario: Virtual Machine without public IP address, and this VM did not located in the backend of load balance.
Is there any possibility to enhance this scenario or provider any reference link?
Looking forward to your early reply!
Best Regards,
Edward Chen

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

ID: 3ef31aaf-4c07-3ba6-afdf-3e527935f8fb
Version Independent ID: 182d3037-bb4c-4d5d-9637-46ba051207c7
Content: Create a VM with a static public IP address - Azure CLI
Content Source: articles/virtual-network/virtual-network-deploy-static-pip-arm-cli.md
Service: virtual-network
Sub-service: ip-services
GitHub Login: @KumudD
Microsoft Alias: kumud

@KumudD Can you please look into this?

@KumudD  could you assign this to me? Thx

#reassign: @anavinahar

@rockboyfor - this is mentioned in #5 in the table - also mentioned here:

Will update to make it more clear

Changes to make it more clear checked in - should be live within 24 hours
#please-close


Allow access to typers programmatically

By exporting typers in the TyperSetup() method to the window object, created typers can be access elsewhere in JavaScript. I think this would be a beneficial and minor edit that will allow typers to be activated based on scroll position and other developer-created optimizations.

Just wondering if you've seen this.

Now I've seen it! I'm revisiting this repo after quite a while.
I've actually been experimenting lately with combining Typer, Cursor, and TyperSetup into a single Typer global object. So I'm in support of revealing the Typers globally, but through an object that can consolidate the other stuff.


Bold text is not fully extracted

Bold text is not fully extracted.
Logseq version: v0.7.5
Plugin version: v1.1.0

Could you copy the markdown text here so I can investigate further pls?

Could you copy the markdown text here so I can investigate further pls?

心理学家加里•克莱因在他的经典决策书《权力的来源》中，正是提出了这一点，他指出了八种对专家来说看得见却对其他人来说看不见的知识：

新手没有注意到的模式。
异常事件或没有发生的事或违反预期的事件。
大局观。
事情的运作方式。
机会和即兴发挥。
已经发生（过去）或将要发生（未来）的事件。
新手无法察觉的细小差异。
自身的局限。

Hmm, I cannot seem to replicate:
https://user-images.githubusercontent.com/47936793/175809124-b04daf82-9ca7-444b-839a-622c5c54b03f.mov

https://user-images.githubusercontent.com/22638687/175842550-e8bddc6e-05d5-4063-8afc-8d7086f63b62.mov
Well, it doesn't look good to locate the reason.

Is your Logseq version 0.7.5?

Can you try using the icon instead (at the top, looks like a U with an underline)?

Can you try using the icon instead (at the top, looks like a U with an underline)?

Tried it, same result

Apologies, am still not able to replicate this issue.


Navigate Event Handler does not catch latest URL

Describe the bug
The navigate event handler does not catch the latest URL but the previous URL. It is always exactly one click behind. Sometimes this leads to push the wrong submission to GitHub. It seems that the event handler is called before the actual link is changed 🤔
https://github.com/raphaelheinz/LeetHub-3.0/blob/1c4ed8af50c4bfb7f1f3a1487e26f79adaa21c28/scripts/leetcode.js#L1021-L1031
To Reproduce
Steps to reproduce the behavior:

Add console.log() to track the window.location.href value.
Switch between different tabs, submissions, ...
Check console.log() messages. They will be exactly one click behind.

Expected behavior
The event listener should somehow access the latest URL instead of the previous URL.
Additional
This issue may be responsible for #29.

@itsluminous Do you have an idea what we could try?

The UrlChangeListener will always be one step behind, but that is exactly what makes it work.
When submission happens, then url will change to submission id. Then when someone clicks submit button, url changes to the generic problem url, and this is when the listener first reads the old url, and then proceeds with submission.
Perhaps we can add a second delay when someone does manual submit so that UrlChangeListener can read and save url.

OK I understand. Thanks for your clarification! I have checked your last commit again :)
I am not yet sure how we could implement a check for the manual push button. We either have the problem that the submission id in the url is lost (when button is clicked) or listener is called too late. Periodically polling is also not be the preferred way I think....
But, do we need an additional check for manual push button? Currently I cannot reproduce my issues anymore - currently it looks good. I will test for possible issues in the next days.

I tested in the last days and found an issue with the new approach. If we submit a solution to Leetcode after we have already submitted successfully, the checkmark will turn green immediately and push the previous solution (not the current) to GitHub because the listener is not called yet. Therefore, the solutions on GitHub will be exactly one step behind. Do you know what I mean?

Weird, In my case it submits latest code when I click submit button.
My usual process is like this:

Write code in C#
Submit code
Press manual git push button
Write code in Java
Submit code
Press manual git push button

In my case, I always see two different files being pushed.
Also, I have tried submitting different code in same language also, and it would work fine.
@raphaelheinz  can you tell step by step how you could replicate issue?

@itsluminous In my daily routine I update and optimize my solutions several times after I have already submitted successfully. Can you check following steps:

Write code in Python
Submit code
Update previous code in Python
Submit code

In the above case step 4) does not upload code 3) but code 1) a second time.
It is because at step 4) the listener is called instantly because the successful submit from step 2) is recognized.
In the previous approach the URL was parsed at that time - now the issue is that the url changed listener is not called yet 🤔

@raphaelheinz  I tried the steps you mentioned multiple times. I tried doing same in python as well, still I am not able to replicate.
I am wondering if Edge and Chrome have different behaviour.
I am using Edge.

@itsluminous Thanks for your feedback! Hmm, I will check on Edge and Chrome later. Btw I am using Brave on Mac


BUG: Keyboard Shortcut for Bookmark Query on MacOS closes VS Code

Issue Type

[X] Bugfix/Errors

Prerequisites (For bugfixes)

[X] Are you running the latest version?
[N/A] Did you check the logs?
[N/A] Did you check the Setup?

Description
⌘Q on the Mac is the global command to close the current application. Using the configured Bookmark create keyboard shortcut results in VS Code closing.
Steps to Reproduce (For bugfixes)

Press [command]E [command]Q

Expected behavior: Perform the Bookmark Query function
Actual behavior: Exits the application
Workaround: [shift][command]P → Type: "book" → Click "SQLTools Bookmarks: Create from selection"
Requested fix: Exclude [command] on the second keypress ([command]E Q)

Will be fixed on next release.

FIxed


[Enhancement] Creating an Animated Testimonial section in Home page

Reason/Context
Why we need this improvement?
In this current version of the page, there is no testimonials, hence the users visiting the page doesn't get the credibility of the webpage.
How will this change help?

It will ensure users to dive into feedbacks and responses from other users.
It shall also improve the UI of the page, hence giving a better user-experience.

Description
What changes have to be introduced?
I will be adding an animated testimonial section below the Contact Form.
Will this be a breaking change?
No, it will just add another section between the Contact Form and the footer.
How could it be implemented/designed?
I will using Tailwind CSS for the creating the animated testimonial section.
Would be glad if you'd assign me this issue under GSSoC'23 😄  @anmode

I would like to work on this as well using Bootstrap. @anmode Could you please assign it to both of us?

@pooranjoyb request firstly! I have to assign him. Please could you look at other issues @rishitachail


changing xml url to v2

Slideslive has changed the slides URL (e.g., "https://d2ygwrecguqg66.cloudfront.net/data/presentations/38938928/v2/38938928.xml?1604598345" )

This is not working at the moment

Hi, Any chance to get the new server ?
Actually, @Chandrahasd , how do we can update locally the downloading base server URL ? How did you know where the resources are available ?


Race condition in k_delayed_work_submit_to_queue()

From k_delayed_work_submit_to_queue():
        /* Submit work directly if no delay.  Note that this is a
         * blocking operation, so release the lock first.
         */
        if (!delay) {
                k_spin_unlock(&work_q->lock, key);
                k_work_submit_to_queue(work_q, &work->work);
                return 0;
        }

The lock is released before submitting work to the queue. As result the k_delayed_work_cancel() called in the very moment between  k_spin_unlock() and k_work_submit_to_queue() will return 0 signalling that the work was cancelled, but the work will be eventually submitted to the queue and executed.

FYI: @nashif, @carlescufi, @pdunaj

How is that a bug?  Calling cancel() before submit() has returned is a clear error, no?

The k_delayed_work_*() API is locked, so concurrent calls to submit and cancel are serialized. This means that you either get 0 or -EINVAL from cancel informing that the work was cancelled or not.
In the mentioned case, the cancel return value of 0 indicating that the work was cancelled, but it will be submitted and executed.
If you think that concurrent submit and cancel is something we should not care about, feel free to remove locking which only occupies space and consumes CPU resources in such case.

The locking strategy is (modulo the one other bug you found where in SMP we have one lock trying to cover two queues because the original lock was global) the same as it's always been.  It could surely be improved.
But no, you can't cancel something until the submit function has returned.

Please either remove locking and specify in the docs that this needs external locking or eliminate race condition.

How is that a bug? Calling cancel() before submit() has returned is a clear error, no?

I think this depends on whether we consider the API to be thread-safe. If it is, I would expect calls to be atomic and sequential in effect, meaning that cancelling while we are still submitting should cancel the current submission or error out as described here. i.e. I want to be able to  submit() and cancel() at will from different contexts and the last one called will take effect.
@ioannisg thoughts?

FYI: @pdunaj

you can't cancel something until the submit function has returned

I agree with @andyross here. The other (similar) race would be when concurrent cancel executes just before submission does anything. The end effect would be exactly the same - cancel succeeded while work is submitted. This is just a race.

I  want to be able to submit() and cancel() at will from different contexts and the last one called will take effect.

@carlescufi true. The common case may be when I have work that periodically resubmits itself while at the same time I have some code that cancels it. And for that I have a comment.
According to k_delayed_work_cancel documentation it returns -EINPROGRESS to inform that work is already pending (I guess author meant actually being executed) and so cannot be canceled. The problem is that this error code is not used in the implementation, meaning caller will have no idea anyway if work was correctly canceled or not. And so will have to use other means to make sure work should not execute anymore. Our application does that.

btw; documentation states

A delayed work item can only be canceled while its countdown is still underway.

Meaning that once timeout is done you cannot do anything with the work. In some point of view submitting a delayed work with 0 delay could be seen as submitting something that cannot be canceled anyway.

@pdunaj: There is no issue with the fact that at certain states work is not cancelled.
The problem is that k_delayed_work_cancel() says that work was cancelled, which is not true in the presented case.

OMG.  Are we really going to do this?  I'll add a line to the docs.
It's not a threadsafety issue, it's just a state bug.  A work item that has not returned from a submit call is, well, unsubmitted.  The cancel operation is allowed to assume (again, remember Zephyr doesn't typically do defensive coding and this isn't a userspace API that needs checking) that the item passed to it is in a valid state.  Are there seriously any real world circumstances where we'd see wrong behavior that isn't trivially fixed by "don't do that"?


StreamingResponse and async def with infinite streaming expected behavior

I modified this  StreamingResponse example code from the docs to use an infinite stream instead of a finite one.
import asyncio
from fastapi import FastAPI
from fastapi.responses import StreamingResponse

app = FastAPI()

async def fake_video_streamer():
    while True:
        await asyncio.sleep(0.01)
        yield b"some fake video bytes"

@app.get("/")
async def main():
    return StreamingResponse(fake_video_streamer())

if __name__ == "__main__":
    import uvicorn
    uvicorn.run(app, host="<IP_ADDRESS>", port=8000)

Description

Open the browser and call the endpoint /.  Repeat this 7 times so that you have 7 tabs open with the endpoint /.
The last tab (the 7th) won´t load until you close one of the other tabs.
But I expected it to load the streaming data since the entrypoint  and fake_video_streamer() are async.

It feels like we exhaust the thread pool (containing 6? threads ), but that should not be the case since we have defined the entrypoint async and should not involve a thread pool.
When removing the await asyncio.sleep(0.01) in the async generator, we get expected behavior, namely some blocking. If running the code below where await asyncio.sleep(0.01) is removed and we try to reach / on two tabs, only the first one will succeed since we are blocking.
import asyncio
from fastapi import FastAPI
from fastapi.responses import StreamingResponse

app = FastAPI()

async def fake_video_streamer():
    while True:
        yield b"some fake video bytes"

@app.get("/")
async def main():
    return StreamingResponse(fake_video_streamer())

if __name__ == "__main__":
    import uvicorn
    uvicorn.run(app, host="<IP_ADDRESS>", port=8000)

I do not understand why the first scenario seems to run synchronously while scenario 2 seems to run run asynchronously. What should be the expected behavior in the first scenario? Shouldn't we be able to open multiple tabs before facing any issues (more than 6 at least)?
Environment

OS: Linux (wsl2)
FastAPI Version [0.63.0]:
Python version: 3.8.2

HAHAHAHA it exactly happened at the seventh tab LOL, but when i opened more than +10 CLI sessions it worked fine, so i think this is some kind of limitation of the Browser.

I couldn't even reproduce the 7th tab thing (Firefox). Both versions w/ & w/o the sleep worked fine for me.

Then I at least learned something new!
Thanks, @ycd  and, @falkben  for looking into it. It is browser related, closing!

Thanks for the help here @ycd and @falkben ! 👏  🙇
Thanks for reporting back and closing the issue @mile95  👍

Sorry for the long delay! 🙈  I wanted to personally address each issue/PR and they piled up through time, but now I'm checking each one in order.


Add a Global Shortcut

We should add a global shortcut like cmd + opt + V  to toggle on and off the pasta window
Resources: https://tauri.app/v1/api/js/globalshortcut/
Resources: https://stackoverflow.com/questions/78056795/how-to-re-open-a-minimized-tauri-application-with-keyboard-shortcuts#:~:text=2 Answers&text=Since the document no longer,(); }%2C []);

Exactly what I was looking for.
I thought I was the one doing the wrong thing. I see on the project readme you have Shift Cmd V as well. Is there something I am not getting right?

The new release V0.1.2 comes with a Global shortcut "Cms+Shift+V".
Caveat - the app needs to be launched first and running on the background.


add option to darken past weeks

Hi!  I love this tool - I just found it and printed a calendar for myself.  But since I plan to fill in the weeks as they pass, I wanted the past weeks to be filled-in.  For we-the-lazy, it seems the generate script should have an option to do this for you.
I tested this by creating a calendar without and with the new flag.  Resulting PDFs are below, respectively.
no_flag.pdf
flag.pdf

Thanks so much for doing this! Exactly what I was looking for. Had to look in the code to find the switch to use which is "-d" for anyone else looking. Probably should update the README.md to mention this.

@allibell thanks for adding this, I like it!
also, sorry it took me soooo long to respond, I must have missed the email when you made this PR initially. But, @sjbotha 's comment today alerted me, I did see the email for that :)
If you're still willing to fix the conflicts, I will test it out on my end and merge it in (much quicker this time, I promise!)

no worries!  been there.
just fixed the conflicts and tested again.  looks good to me!  apologies for the force-push, I made a commit to format with black but it made a bunch of other changes irrelevant to this PR so I removed that commit.  I'll let you format as you wish :)

tested out here, looks good to me. ship it!


Unsigned Byte

Is there a way to specify an unsigned byte?  (I am fairly sure that you can, but I haven't found any documentation on doing so.)
I use a lot of byte and short values, with the bytes being unsigned so that I can always use the smallest data type possible to keep things efficient on memory and network usage.  But every time I set an integer at one byte, the code generated is for an sbyte.

Hi @JamesMac64!
Currently there is no way to specify unsigned integers. For smallest network footprint use Message Pack game data format and gzip compression. This format has build-in small integer encoding. As for runtime memory footprint I think 2 bytes instead of 1 is not big deal considering .NET could layout class field as he like. For example with 4 bytes alignment is used by default.

Thanks for the response. I considered using a short (2 bytes) and it doesn't seem like much of an overhead using 2 bytes vice 1, but in an MMO game design it does add up on the server.  Besides, the guys that I am working with are still more of an intern level developer and I want them to learn things the right way first, then learn to adapt when required.  I retired back in 2006 and I do this as a volunteer to help these guys, and to have something productive to do.  I'm not dead yet.  It is an experience for me though, as this project is Unity based and c#, vice c++ and either build our own engine or mostly I worked with UE2 until I retired.  Unity has been a learning experience, just having the Unity editor is a huge change for me.  When I joined the project, everything was a 4 byte int, a float, or mostly strings, the worst thing to use in an MMO at 4 bytes per character and using them as an index or key value.  Just in an accountID a string used 68 bytes vice 8 bytes as a ulong.
The asset is quite nice by the way, and testing it the overhead isn't bad at all, and it does a great job.  I still have to spend time changing the localization system over, which I am changing from using a string key value to a short and using your asset for xml storage vice the bunch of flat text files, but I am not quite ready to rebuild that system yet.  Too much else to do.  I've gutted the entire core and rebuilt it from the ground up.
For the Localized message system, I am only going to be sending the short key value over the network instead of the strings.  That will reduce the load it places on the network system the most effectively.  For chat, I am open to suggestions.
The current project goal is 1000 concurrent players, and until I rebuilt it the server side could not handle more than about 60 before it was peaking out server memory usage.  The servers are commercial rigs in a datacenter with a high end connection to the backbone, so we haven't pushed that limit yet.
For now I will stick with editing the generated class to use bytes instead of sbytes.  The kid who designed the game is still figuring things out, so needless to say I keep having to go back and make changes to things like the item and stat effect systems, and thus I have to also go back and edit the generated class.  I've sped that up by using a find/replace on the sbytes with case sensitive, and then manually fix the 6 errors that creates for what should have remained sbytes.

If you need deep customization of generated code, you could export T4 Templates and run them with VS or Rider or Xamarin Studio (Unity Code Editor). This is better way, but complex. Also good luck with your journey into optimization of MMO and thanks for your feedback!


How to use multichain target?

Hello.
I am trying to work with a multichain target.
I tried generating the msa of the target complex (2 chains) and supply it as custom msa and just run the AF2 step (no GA).
--input_dir input
--output_dir AFmult/predictions
--params_dir /home/amin/softwares/Protein-Design/params-2022-12-06/
--compress_output
--use_ptm
--msa_mode single_sequence
--custom_msa_path /home/amin/Work/Project_42/msas_complex
--max_recycle 4
--save_timing
--num_models 5
--num_seeds 5

But this doesn't seem to work as the target is unfolded. If I use a polyglycine linker to link the two chains and use the msa of the joint construct, it works well, but I would like to use multimer to model the complex as it might be more accurate.
I see there is an example in the dev branch.
https://github.com/Kuhlman-Lab/evopro/blob/dev/evopro/examples/example/af2_flags.txt
From the example, it seems like I should provide templates.
Could you please tell me what format the msa should be in and how to specify the multi chain templates?
I would be  really grateful for any suggestions.
Best,
Amin.

Hi,
Yes, sometimes just the MSA is not enough information for AF2 to fold the target correctly, so you can use a template to supplement information here. The MSA should be in .a3m file format and it should be within the directory which you specify in custom_msa_path.
To provide templates, you can use the custom template feature in our version of AF2. To use this, add flags in your af2.flags as below:
--use_templates
--custom_template_path templates

Then, create a directory called templates within your run directory and add PDB files into it with your correctly predicted complex. Since AF2 treats each subunit individually during template parsing, you can have a PDB file for each subunit or have them all within the same PDB. Finally, since we have modified the original AF2 code to allow for custom templates, you will have to make sure each .pdb file within that folder has a name consisting of 4 letters and numbers, essentially mimicking a file from the PDB database with a PDB code (although the file name does not actually have to be a real PDB code). Some examples could be “temp.pdb”, “1uzg.pdb”, “PPPP.pdb”, etc.
Thanks,
Amrita

Thanks @amritan1707 , this is very helpful.
I have understood a part of the problem. I thought I was doing something wrong because when I was just predicting the structure of the protein using colabfold (local), I was getting well folded models which agreed very nicely with the crystal structure. Then, I gave the same msa to evopro/your alphafold and the protein was unfolded.
I then tried to let your version of alphafold generate msa and model the target and then supplied that msa as custom msa for modelling the target+peptide in single sequence mode. Now, everything works perfectly. So, it seems I can't use the colabfold generated msa with your version of alphafold, which is not a problem but I didn't realize that.
What I am trying to do is as follows.
Model ~ 1000 peptides with the multi-chain target with your version of alphafold > Find the best 10 candidates > refine them with EVOPRO.
This is not really an EVOPRO question and if you like, I can raise an issue in the alphafold repo, but I would really appreciate your help.
Are there some example scripts to run such batch modelling problem on multiple GPUs using your version of AlphaFold? If I just run your version of AlphaFold using
python ./EVOPRO/alphafold/run/run_af2.py @af2_flags.txt

It uses a single GPU.
I would be really grateful for your help.

Hi,
I have just added our script that uses the runtime optimized multi-GPU AF2 from EvoPro, to just run AF2. Please see evopro/run/run_af2_dist.py for flag options and details!

Please use --design_run flag in your af2.flags file, that should fix the problem. It tells the run_af2 function to return the results rather than write out the results and return a NoneType object.

Thanks a lot @amritan1707 . This works. One last question, I promise.
Where can I find the generated files while the modelling is running?
It seems the output folder appears only after the run is completed, so the files must be getting saved in a temporary folder somewhere.
I am concerned that if the job runs out of time or crashes or I fill up the disk space, I won't know where to find the files.

Yes, you can only get the files after the whole run is completed. The files are only written out after all the sequences have been processed through - since the information has to come back from the GPU to the CPU for writing to disk, this cannot be done until the end.


Add single step

Codecov Report

Merging #170 (58aa170) into main (82fb0d4) will increase coverage by 0.21%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #170      +/-   ##
==========================================
+ Coverage   81.97%   82.18%   +0.21%
==========================================
  Files          42       42
  Lines        1842     1864      +22
  Branches      270      271       +1
==========================================
+ Hits         1510     1532      +22
  Misses        187      187
  Partials      145      145

Impacted Files
Coverage Δ

...vanyo/composelife/model/TemporalGameOfLifeState.kt
95.07% <100.00%> (+0.33%)
:arrow_up:

...lexvanyo/composelife/ui/InteractiveCellUniverse.kt
85.93% <100.00%> (+3.58%)
:arrow_up:

Continue to review full report at Codecov.

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


Support nested package.json detection for npm modules

I have a project that looks like this:
.eslintrc
package.json
node_modules/.bin/eslint
sub-project
- package.json
- some-js-file.js

The general idea is that sub-projects share the parent repository and linting settings to ensure they stay consistent across the major project.
The existing logic to detect node binaries stops at the first package.json it finds. Could it be expanded to continue upwards when looking for a binary?

Hmm, I've never seen this kind of setup before, and I'm not sure whether it's common enough to justify the added complexity. @skj3gg, what do you think?

I'd be willing to see this implemented, but I think for the sake of the system, you would have to be in a .sublime-project so that we would stop searching in the root of the project. @malandrew may have a better idea for this than I.

@glenjamin, shouldn't the subproject's package.json include the eslint dependency? Why split your project into subprojects unless each subproject can operate independently of the superproject?

They can all run independently, but the build / lint stuff is done as a package.
It's not a great system, but has been working quite well.
I'm open to hearing good suggestions for keeping multiple projects in-sync!

On 9 Apr 2015, at 15:29, Josh Hagins<EMAIL_ADDRESS>wrote:
@glenjamin, shouldn't the subproject's package.json include the eslint dependency? Why split your project into subprojects unless each subproject can operate independently of the superproject?
—
Reply to this email directly or view it on GitHub.

So each subproject's package.json has its own dependencies, but only the superproject has devDependencies?

Test dependencies are per-project, but linting & building a deployable is
global.
On 9 April 2015 at 16:18, Josh Hagins<EMAIL_ADDRESS>wrote:

So each subproject's package.json has its own dependencies, but only the
superproject has devDependencies?
—
Reply to this email directly or view it on GitHub
https://github.com/SublimeLinter/SublimeLinter3/issues/229#issuecomment-91261902
.

Gotcha. I'd be inclined to keep all dependencies local to each subproject, be they for linting, building or testing, but it's not my project :wink:
I like @skj3gg's suggestion of supporting this kind of setup only within a .sublime-project.

+1

:+1: I'm up for attempting a PR if the powers that be (i.e. whomever has the power to merge) agrees that the behavior can change from:

search for the nearest package.json

to

search for the nearest package.json with the linter as a dependency, up to the root of the .sublime-project

where 'nearest' is defined as closest ancestor, starting with siblings.

+1 for the proposed fix.
I would agree that it might not be the most common project configuration, but I personally expected the linter to follow node-like module loading such that it moves up a level if it can't find a particular package. Is there any reason Sublime Linter wouldn't adhere to node-like conventions? Most of the linter packages I've seen are installed using npm.

@benmosher I'm not against that pull request. :beers:

Sweet, I'll take a stab at it. I'm hoping there might be a simple way to outsource finding the right executable to npm-which.
Or at least emulate the same behavior.

@benmosher ah that would save me a lot of time!

PR'd!
It was not clear to me how to know where the project file was located, so I just replicated the same ancestor search that the package.json-finder used. If some can direct me to that, I can amend the PR. Seemed to work pretty well for me as-is, though.

@benmosher , that's great.
i don't know python. but i could understand what yours code does.
is there one little point missing -- searching for the global installed node_modules?

BTW, @groteworld , could you review this issue and take a look at benmosher's PR?
Expecting a release ASAP! :smile:

I believe I left the parts that normally handle looking in the system bin untouched. I could be wrong, though. 😅


Automatic deletion of old extensions not happening

Issue Type: Bug
Issues #31175 and #32647  suggests that old extensions should be automatically deleted on restart. That is not what I an seeing. As you can see from the listing of my extensions directory below there are multiple versions of the same library. The python extension has 9 versions! Restarting vscode doesn't make any difference.
The space available on my home directory is very limited, so the ~/.vscode directory is a symbolic link to another drive.
Is it safe for me to manually delete all the older versions ?
$ ls ~/.vscode/extensions/
af4jm.vscode-m3u-1.0.0/
alefragnani.bookmarks-13.0.3/
alefragnani.project-manager-12.0.1/
arturock.gitstash-3.3.1/
astallinger.sourcetrail-0.0.2/
atlassian.atlascode-2.8.2/
atlassian.atlascode-2.8.5/
austin.code-gnu-global-0.2.2/
bbenoist.togglehs-0.1.2/
donjayamanne.githistory-0.6.14/
donjayamanne.python-0.6.5/
eamodio.gitlens-11.2.1/
eamodio.gitlens-9.8.2/
hbenl.vscode-test-explorer-2.19.5/
humao.rest-client-0.24.2/
humao.rest-client-0.24.4/
lextudio.restructuredtext-146.0.0/
littlefoxteam.vscode-python-test-adapter-0.5.0/
littlefoxteam.vscode-python-test-adapter-0.6.6/
mike-lischke.vscode-antlr4-2.2.4/
mkloubert.vscode-remote-workspace-0.44.0/
mortenhenriksen.perl-debug-0.6.3/
mshdinsight.azure-hdinsight-1.1.13/
ms-python.python-2019.10.44104/
ms-python.python-2019.11.50794/
ms-python.python-2020.1.57204/
ms-python.python-2020.1.58038/
ms-python.python-2020.3.71659/
ms-python.python-2020.4.76186/
ms-python.python-2020.9.112786/
ms-python.python-2021.2.582707922/
ms-python.python-2021.2.625869727/
ms-python.vscode-pylance-2021.3.0/
ms-toolsai.jupyter-2021.2.576440691/
ms-vscode.azure-account-0.9.6/
ms-vscode.azure-account-0.9.7/
ms-vscode.cpptools-0.20.1/
ms-vscode.cpptools-0.26.1/
ms-vscode.cpptools-0.26.2/
ms-vscode.cpptools-0.27.0/
ms-vscode.cpptools-1.2.2/
ms-vscode.hexeditor-1.4.0/
ms-vscode.vscode-js-profile-flame-0.0.14/
mtxr.sqltools-0.23.0/
mtxr.sqltools-driver-mysql-0.2.0/
peterj.proto-0.0.2/
redhat.java-0.76.0/
redhat.vscode-xml-0.15.0/
redhat.vscode-xml-0.3.0/
redhat.vscode-xml-0.5.1/
redhat.vscode-xml-0.9.1/
redhat.vscode-yaml-0.16.0/
tht13.html-preview-vscode-0.2.5/
tyriar.sort-lines-1.9.0/
visualstudioexptteam.vscodeintellicode-1.2.11/
vscjava.vscode-java-debug-0.31.0/
vscjava.vscode-java-dependency-0.18.0/
vscjava.vscode-java-pack-0.12.1/
vscjava.vscode-java-test-0.28.0/
vscjava.vscode-maven-0.27.1/
webfreak.debug-0.25.0/

VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:32:10.090Z)
OS version: Linux x64 3.10.0-1062.12.1.el7.x86_64

System Info

Item
Value

CPUs
Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz (8 x 2394)

GPU Status
2d_canvas: unavailable_softwareflash_3d: disabled_softwareflash_stage3d: disabled_softwareflash_stage3d_baseline: disabled_softwaregpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: disabled_offprotected_video_decode: disabled_offrasterization: disabled_softwareskia_renderer: enabled_onvideo_decode: disabled_softwarevulkan: disabled_offwebgl: unavailable_softwarewebgl2: unavailable_software

Load (avg)
5, 3, 2

Memory (System)
15.51GB (0.40GB free)

Process Argv
--no-xshm --no-sandbox --crash-reporter-id afe92206-de78-492a-9505-318567db6511

Screen Reader
no

VM
100%

DESKTOP_SESSION
undefined

XDG_CURRENT_DESKTOP
undefined

XDG_SESSION_DESKTOP
undefined

XDG_SESSION_TYPE
undefined

Extensions (40)

Extension
Author (truncated)
Version

vscode-m3u
af4
1.0.0

Bookmarks
ale
13.0.3

project-manager
ale
12.0.1

gitstash
art
3.3.1

sourcetrail
ast
0.0.2

atlascode
atl
2.8.5

code-gnu-global
aus
0.2.2

togglehs
bbe
0.1.2

githistory
don
0.6.14

gitlens
eam
11.2.1

vscode-test-explorer
hbe
2.19.5

rest-client
hum
0.24.4

restructuredtext
lex
146.0.0

vscode-python-test-adapter
lit
0.6.6

vscode-antlr4
mik
2.2.4

vscode-remote-workspace
mkl
0.44.0

perl-debug
mor
0.6.3

python
ms-
2021.2.625869727

vscode-pylance
ms-
2021.3.0

jupyter
ms-
2021.2.576440691

azure-account
ms-
0.9.7

cpptools
ms-
1.2.2

hexeditor
ms-
1.4.0

vscode-js-profile-flame
ms-
0.0.14

azure-hdinsight
msh
1.1.13

sqltools
mtx
0.23.0

sqltools-driver-mysql
mtx
0.2.0

proto
pet
0.0.2

java
red
0.76.0

vscode-xml
red
0.15.0

vscode-yaml
red
0.16.0

html-preview-vscode
tht
0.2.5

sort-lines
Tyr
1.9.0

vscodeintellicode
Vis
1.2.11

vscode-java-debug
vsc
0.31.0

vscode-java-dependency
vsc
0.18.0

vscode-java-pack
vsc
0.12.1

vscode-java-test
vsc
0.28.0

vscode-maven
vsc
0.27.1

debug
web
0.25.0

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
pythonvspyt617cf:30253240
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30256636
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30259475
dockersubsetcf:30265999
pythontbcf:30265426
vspre833cf:30267465

Can you please restart vscode from command line in verbose mode eg: code --verbose and provide us the shared process log available via F1 > Open View > Log (Shared) ?

Can you please restart vscode from command line in verbose mode eg: code --verbose and provide us the shared process log available via F1 > Open View > Log (Shared) ?

Sure.


Replace AppVeyor with GitHub Actions

I force-pushed master again to undo this so that I could squash and merge this instead.


refactoring of EVM semantics in order to prepare for running KEVM in an Ethereum client

@dwightguth not sure why the tests are not passing on Jenkins (and only some of them aren't). They pass on both Buildbot and on my own dev server. I will re-trigger a build, but am going to bed now.
Please review the changes I propose to the PR (marked with sss).

Jenkins: test this please

@dwightguth I added a commit (marked !!!) which you should review, also proposed a change for commit (marked sss) which should be squashed.

looks good.

Jenkins: test this please

Jenkins: test this please

Jenkins: test this please


Tailwind styles not overwriting default  styles

Currently, the inline styles default to the Text component take precedence over tailwind styles that I'm passing to it.
My workaround
<Text
  style={{
  margin : undefined,
  fontSize: undefined,
  lineHeight: undefined,
 }}
 className="m-0 text-sm"
>

I did some more investigating because I noticed that there were tests for this situation.
I looks like there may be 2 issues:

when a div has a responsive tailwind class (ex. sm:w-1), all classes get hoisted to the <head> instead of being inline.
when no responsive classes are used on non email components, then responsive styles are not applied.

   <div className="w-1.5" />
   <Text className="text-sm sm:text-md" />

This seems to be fixed, not sure as of when it was fixed, but the latest versions definitely have it fixed.


Proper way to handle database connections ?

Hey there,
So, I realize this might fall outside the scope of this crate, but Rust + Lambda isn't exactly a common thing yet, anyways :
From the AWS Lamba Python doc :

We recommend that pymysql.connect() is executed outside the [lambda] handler, as shown, for better performance.

My question is, is there any way to do this in Rust, and if not, what would you recommend ?

Hmm.
I'm pretty sure the current crowbar interface doesn't have a way of doing this at all, to directly answer your question. I suppose it's also very difficult to create a database connection in Python and hand it off to a Rust module, so perhaps that's not worth investigating either.
I'd like to see if there's a way to run code on import of a rust-cpython module. Then I'd need to make the return value of that code accessible to the handler.

After further investigation, the lazy_static crate solves this problem nicely !
lazy_static! {
    static ref CONN: Mutex<Connection> = Mutex::new(Connection::connect("postgres:/your_connection_string", TlsMode::None).unwrap());
}

lambda!(|_, _| {
    let conn = CONN.lock().unwrap();
    your_service(&conn)
});

Lambda seems to effectively re-use existing processes and keep connections open.
When opening connections directly in the lambda! closure, I'm seeing 20-30ms execution times, but with this, it drops to 2-3ms.
An equivalent (warm) function in Node is also in the 2-3ms range, so this is very good.
Cold starts are also way more efficient than with Node : I'm getting random cold starts between 200-600ms in Node, but nothing above 100ms in Rust yet.
Great job on this crate @ilianaw :)

Nice!
(Yeah, my understanding is that the Python interpreter stays running, with your code imported, until Lambda kills that process for inactivity.)


Adds key-composer to support import and export to pem

Working on bringing https://github.com/ipfs-shipyard/js-crypto-key-composer into libp2p-crypto to support import and export in non-RSA keys like ed25519 and secp256k1.
This is the latter, and necessary for the work happening here: https://github.com/AlbertoElias/js-libp2p-crypto/tree/use-key-composer
This is part of the work done for this issue: https://github.com/libp2p/js-libp2p-crypto/issues/145
cc @satazor @dignifiedquire @hugomrdias

Hey, there's a linting error due to too many callbacks in the tests. Should I structure tests differently to avoid this? That would mean that the tests would be less clean

You can do a block disable for now in the tests because we will change to async await shortly

@satazor @hugomrdias done!


fix: allow empty values

I'm currently using this library to parse dotenv files and noticed that I had no way of specifying variables that have an empty string as a value. Specifically:
# this result in a parsing error:
MY_VAR=
...
# this results in the value ''''
MY_VAR=''
...
# this results in the value '""'
MY_VAR=""

To solve this, I expanded the grammar to allow 0 sized strings and added tests for that.

Thanks for the contribution @xyder! I'll release a new version shortly.

Done, released v0.1.3! Thanks!


Zero volatile GPU-Util but high GPU Memory Usage

Hi I am running a model implemented by tensorflow with only one GPU, the GPU usage is 95% while the volatile GPU-Util is 0.
Specifically I have Tesla k40m with cuda 7.0 and cudnn 6.5v2 installed on Centos 7.0. There are three files: data_loader.py, model.py and train.py in my project. In the train.py I firstly declared
" with tf.device('/gpu:0'):" and then sess.run([train_op]). When I run the code, errors raised:
"tensorflow/core/common_runtime/gpu/gpu_init.cc:45] cannot enable peer access from device ordinal 0 to device ordinal 2"
On the other hand, I installed tensorflow with Pip.
Any help are more than welcome.

cannot enable peer access from device ordinal 0 to device ordinal 2"

@lglhuada, This is not an error, just log. It just means there is no efficient way to transfer data from gpu:0 to gpu:2. You can exclude either one of them through CUDA_VISIBLE_DEVICES

the GPU usage is 95% while the volatile GPU-Util is 0.

This is also expected. TensorFlow always reserves most the GPU memory when it initializes, even before the first GPU kernels are received. So you will see a high memory usage at the beginning. But the fact GPU is not actually utilized means none of the kernels are running on GPU.
Could you try to run the tutorials and see if you can get any GPU utilized?

bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer
bazel-bin/tensorflow/cc/tutorials_example_trainer --use_gpu

If you still have problems after that, please provide more information about your machine set up.

@zheng-xq Thanks for your answers. I have been trying to run the tutorial to check whether GPU are utilized. However, there are a lot errors. I will add comments if errors were still available.

@zheng-xq hi, I have checked that I can use GPU with bazel-example and the GPU-util is 21%. So now I need bazel to build my project, right? thanks

In this case, it is okay to use bazel to build your project, although it
shouldn't be necessary.
Please make sure you installed the GPU-enabled TensorFlow binaries. If you
built from source, please use:
bazel build -c opt --config=cuda
//tensorflow/tools/pip_package:build_pip_package
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
pip install /tmp/tensorflow_pkg/tensorflow-0.6.0-cp27-none-linux_x86_64.whl
On Mon, Dec 28, 2015 at 1:21 AM, Guangliang Liu<EMAIL_ADDRESS>wrote:

@zheng-xq https://github.com/zheng-xq hi, I have checked that I can use
GPU with bazel-example and the GPU-util is 21%. So now I need bazel to
build my project, right? thanks
—
Reply to this email directly or view it on GitHub
https://github.com/tensorflow/tensorflow/issues/543#issuecomment-167519968
.

hi @zheng-xq  thanks for your quick feedback. Actually I tried to run my code without bazel-build and GPU-util is 0 with  command " with tf.device('/gpu:0') " , and I am sure I have installed GPU-enabled tensorflow binaries, cudatoolkit 7.0 and cudnn 6.5. What might lead to this issue?

Hi I have solved my problem without bazel-build, and I modified codes following the code example of cifar10_multi_gpu_train. Thanks.

@lglhuada I encountered the same problem. How did you make the code run in GPU? What's the key code?

@OswinGuai If your computation is not as much as possible( such as add or plus operation), the GPU util is not obvious, try implement large models. ；）

@lglhuada  Hi, recently I have the same issue, I  tried  three different types of  neural network : 1.the simple feedforward network ,2.the pixelcnn 3.GAN. And weird things happened, 1 uses very low usage of the gpu, and that project has very large training data. 2 uses almost 100% of gpu .3 the usage of gpu is preodic , sometimes up to 50% sometimes down to 0%.  After exiperiment, I finally found the reason, it's the code is to blame, actually the code was written by someone who has no gpu on his laptop,so it's totally unfriendly with gpu,most operations do run on the gpu,but there still some operations are run on the cpu,and when the code running on the cpu,the gpu has to wait,that causes the gap. there are some solutions for it , change the type of variables and constants to tf.float32. but that would not change a lot , so if the code is not friendly with gpu ,you should use tensorflow-cpu version,that might be faster than gpu-version. So  In conclusion, if your gpu does running on some codes and not running on some codes,it probably the code's problem.

When I train the faster-rcnn-resnet101 model with object-detection repo, no matter how many GPUs I used, the train.py will consume all of the GPUs. e.g. when I use 1, 2 or 4 GPUs, train.py occupy all the memory of them, but only one GPU 'Volatile GPU-Util ' is 100%, the others are 0%.

%.

so what you did? ... actually i am also facing same issue can u please help

I had this problem when the .record files were invalid.
cc @Kirancgi

thanks buddy will try it out
@turowicz


Failed to find module: "nativescript-admob", relative to: app/tns_modules/

i try you plugin , but not work

This plugin is not part of the Preview app, so that's to be expected.

I follow this link , it didnot work
https://github.com/EddyVerbruggen/nativescript-admob-demo


[docker] openssh-client provide ssh-keygen.

GOGS needs that binary to add a ssh key to a user

thanks a lot!


Implement router static checks

I notice that the code was also reformatted.  Did you use clang-tidy with no args?  Its not enforced with a pre-submit check, but code in pistache should be formatted w/ "clang-tidy" (default args).

@dennisjenkins75 Do you mean clang-format, right? :) I used clang-format-9 and applied it to the lines I changed without any extra args. I can execute it on the whole header file, but I'm a bit confused by the result, diff's here: https://pastebin.com/kR7Djcmj
Command: clang-format-9 -i include/pistache/router.h
There's no .clang-format config or smth related, just default clang-format-9.
It looks like the header file is not properly formatted or newer clang-tools have updated default format style. BTW, which version of clang do you use? Would clang-format-9 applied to the header file be acceptable?

LOL, you are correct.  "clang-format", not "clang-tidy".  Need more coffee before I get email in the morning. :)
I have not ran a cleanup run of "clang-format" in a while.  I should.  I've been wanting to make compliance a presubmit, and to create a .clang-format config, but have been too busy with regular work/life to focus on it.
I do not know which version of clang-format I used the last time I did a big cleanup, and am surprised to learn that the defaults have changed.  My version version is "9.0.1".  If you have experience in setting up a stable clang-format and github presubm check for it, I would welcome the PR.
As for this PR, I'll merge it since it passes all unit tests.  Thank you very much for your contribution!


Project name is not validated

The project name specified in pyproject.toml is not validate. Accordingly to https://packaging.python.org/en/latest/specifications/core-metadata/#name it should

I've set this as a 0.9 feature. Don't want to ship this right in the 0.8 rc cycle, and there are questions like where to validate (all other validation is done on the pyproject.toml read), whether to combine the validation errors (would need ExceptionGroups to do properly). I'd be okay with #109 as is though if it gets to sit in main for a bit while these things are worked on.

I was also unsure about where the best place for validation is. Ideally, an invalid project name would be the first thing reported. However, with the validation as in #109 it gets reported last. I think I added it to the class initialization because it was the easiest thing to do when I implemented it in a subclass downstream in meson-python. Most likely, moving the validation to the from_pyproject() constructor is the way to go.


Fix literals class for translations

I'm fairly certain this is all that needs changing. This will fix the class added to literals post-translation (#172) which should make them the right color.

Looks good--thanks very much!


Fix SPI clocks and rtc_watchdog example

This PR should resolve the issues marked as clock issues here in SPI examples and should fix (at least now is closer to 5secs than before) the rtc_watchdog delay in BL mode.

Never mind, I have some other cleanup to do after this is merged anyway so I'll just take care of it myself. Thanks!


Support spacy 3.x

I am using spacy 3.x and when I wanted to test with tmtoolkit it was installing version 2.x of spacy.

Hi, I'm currently working on a new version of tmtoolkit which will support SpaCy 3.x. However, it's still in development and will sure take some weeks to complete.

Thanks for the quick reply! Looking forward to it!

New version v0.11.0 has been released with support for SpaCy 3.2. See https://tmtoolkit.readthedocs.io/en/latest/version_history.html for details.


Create list of articles on home page

I still have to fix the featured image path and the linking so that the article list is replaced by the article when an article is clicked.

It looks like you need to make some kind of IssueController, that fetches all the articles for an issue. Then we render that with an  and then this is ready to merge right?


Add crossguard guide

Add "CrossGuard" to docs to align with branding
Add CrossGuard guide with PREVIEW badge

Closes https://github.com/pulumi/pulumi-service/issues/3729

The broken link here is AWS Guard since the repo is not public yet.. 🤔


kedro-telemetry failing to send telemetry when project UUID not found

Description
Short description of the problem here.
Context
How has this bug affected you? What were you trying to accomplish?
Steps to Reproduce
$ mkdir kedro-telemetry-test && cd kedro-telemetry-test
$ uv init
$ git init && git add . && git commit -m 'First commit'
$ cat pyproject.toml
[project]
name = "kedro-telemetry-test"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = []

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
$ uv add kedro

Expected Result
I didn't expect a successful Kedro run, because this reproducer doesn't create a valid Kedro project, but at least I expected an error an that's it.
Actual Result
Tell us what happens instead.
$ uv run kedro registry list
[08/23/24 08:53:47] INFO     Using                                                                     __init__.py:249
                             '/private/tmp/kedro-telemetry-test/.venv/lib/python3.12/site-packages/ked
                             ro/framework/project/rich_logging.yml' as logging configuration.
[08/23/24 08:53:49] ERROR    Failed to retrieve UUID: badly formed hexadecimal UUID string                plugin.py:81
Usage: kedro [OPTIONS] COMMAND [ARGS]...
Try 'kedro -h' for help.

Error: No such command 'registry'.
                    INFO     Kedro is sending anonymous usage data with the sole purpose of improving    plugin.py:233
                             the product. No personal data or IP addresses are stored on our side. If
                             you want to opt out, set the `KEDRO_DISABLE_TELEMETRY` or `DO_NOT_TRACK`
                             environment variables, or create a `.telemetry` file in the current working
                             directory with the contents `consent: false`. Read more at
                             https://docs.kedro.org/en/stable/configuration/telemetry.html
                    WARNING  Failed to send data to Heap. Response code returned: 400, Response reason:  plugin.py:336
                             Bad Request

Kedro project not found in this directory. Project specific commands such as 'run' or 'jupyter' are only available within a project directory.

Hint: Kedro is looking for a file called 'pyproject.toml, is one present in your current working directory?

This issue is about finding out why the Heap request fails. Several things not specifically related to it:

Having the INFO and WARNING messages after the error make it more difficult to spot.

Maybe the INFO should be on top?
And, if the request to Heap ever fails, I'm not sure the user cares. Maybe we should make it DEBUG

It was surprising to read "is there a pyproject.toml in your cwd?" message when there was indeed one. Maybe we could tweak the hint so it says "is there a pyproject.toml with a [tool.kedro] table there?"


new blocks always introduce new scope

Here value are two different variable declarations (due to declaredInScope)... This forces the user to declare any re-usable variable in init.
sample:
    value = 0.0
    for i in 0..10:
        value = value + i

init:
    value sig

sample:
    value = 0.0
    for i in 0..10:
        value = value + i

Things to solve regarding this:
declared would also not allow to name variables after names of functions OR the name of the top level module that's compiled (the other ones are imported with the _module appended thanks to require)
init:
    gamma = 0.5

fourses.nim:
init:
    fourses = 0.0

The solution for the second case would be to know the name of the compiled file at compile time.

fixed in #99
Both cases work now. Simply used a seq[string] to keep track of all variables declared in a block


Create Small Dataset

Create small USPTO dataset using 10,000 records.

Skipping right to the Enron Dataset with 500K emails. Can create a subset of that if needed. Closing


add a copy code snippet button

Add a button that lets user copy the snippet to the clipboard in the GitHub commands page.

This is an awesome idea @saimaheshtaduri go ahead.

This issue is solved so closing this issue. @saimaheshtaduri


Enable Profiler with Node 14 and later versions of Node 12 once memory leak is fixed.

See https://github.com/googleapis/cloud-profiler-nodejs/issues/697 for more information on memory leak.

Hello. Should this be closed? From the last commits it seems that the support for node 14 has been enabled again, but this issue leave me with a doubt

Yes, sorry for the delay in closing this issue. This was fixed with release of Node 14.


Can't turn on Exposure notifications or Bluetooth

I'm seeing an issue with production iOS and Android builds. TEST_MODE is set to false, and MOCK_SERVER is set to false. I'm running on real hardware. iOS version is 13.5, and Android is version 9, and google play services is the latest, as suggested in your readme. The app is talking to a deployed instance of CovidShield server, which appears to be functioning. This is what I'm seeing:
When getting to the app's home page, COVID Shield is in the "OFF" state. Both the Exposure notifications and Bluetooth tiles are red. When I try to turn on either of those two settings, I'm redirected to the app's settings page, but no permissions are granted, and both tiles remain red.
Enabling Push notifications works, however.
Below are screenshots of the experience on iOS and Android. This might be related to an issue #104 raised yesterday.
Android pics:

iOS pics:

Any ideas?

On the iOS side, you need a provisioning profile with the Exposure notification entitlement. You then need to update the CovidShield.entitlements file with the correct entitlements. Then when you run the app and go through onboarding you will get prompted to enable exposure notifications.

Thanks for response, @jason-whelan-vgh, you are right. For others reading this, to get provisioning profile with Exposure notification entitlement go here

FYI, on Android, it needs APPLICATION_ID to be whitelisted by Google. You can also use APPLICATION_ID from Google Sample app for testing com.google.android.apps.exposurenotification https://github.com/google/exposure-notifications-android/blob/master/app/build.gradle#L33.
However, the native bridge is missing some code to show consent dialog. PR is up soon https://github.com/CovidShield/mobile/issues/115.


Add tests for funky enum values

This adds a couple of tests based on the open_writer passing invalid MeshType and DataType values.
These were the easiest to test, just because they could be based upon the existing test.
This is part of checking whether the panics/Error cases in the TryFrom implementation of PR #6 are actually reachable.
With these tests producing errors and null writers, it appears that these two might not be reachable.
Let me know if you would like me to continue trying to come up with tests for the rest of the enums.

Thanks!

Let me know if you would like me to continue trying to come up with tests for the rest of the enums.

Definitely go for it. These tests are really valuable, especially in the context of #6 where things are being reworked.


MainThreadNotebooks does not dispose everything in its dispose method

Launch vscode and use notebooks
Kill the extension host via terminal / task manager.
Observe that not all resources associated with the crashed extension host are disposed
(Restart the extension host. Perhaps some problems will appear in the UI due to forgotten registrations, etc.)

e.g. problematic forgotten IDisposables: _notebookProviders, _notebookKernelProviders, _toDisposeOnEditorRemove, etc.

fyi - I am addressing some of this (maybe all) in https://github.com/microsoft/vscode/pull/116443/files#diff-6b66ff05127abe5d554680a1d009788668f8b22257cb8b7ae09b9e1c3d0e7f17


docs: Steps for migrating to Envoy Gateway

What type of PR is this?
docs: Add a doc that can help users who want to migrate to Envoy Gateway
What this PR does / why we need it:
This PR highlights the ingress2gateway tool that can facilitate the migration to envoy gateway
Which issue(s) this PR fixes:

Fixes #3742

Should we mention that we need to configure the gatewayclass?

Yes , we can . Could you please mention in which step, I will add this.

hey @Manoramsharma will the generated output be good enough or does the user need to also create a GatewayClass to link to the Envoy Gateway controller to ensure that the generated `HTTPRoutes`` get programmed in the data plane ?

hey @Manoramsharma will the generated output be good enough or does the user need to also create a GatewayClass to link to the Envoy Gateway controller to ensure that the generated `HTTPRoutes`` get programmed in the data plane ?

Hi @arkodg you are right, GatewayClass defines the controller responsible for managing Gateways and programming the data plane. Without this linkage, the Gateway controller won't know which resources it should handle, and the generated HTTPRoutes won't be programmed correctly.
Let me just update the PR mentioning the steps to configure the Gateway class.


Added Functionality for Terminal Plugin & Bug Fix

-Increase/Decrease Font across open terminals
-Toggle Theme (Switch black background/white font --> white background/black font) across open terminals
-Closing All Terminals functionality seems to be working as of this morning.
-bug fix in isDisposed() check

Very nice, ready to remove the WIP from the title?

Can we merge this? I need the bug fix for something I am working on :P

Yep, thanks @charnpreetsingh185!


docs: add missing indexes in quickstart guide

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


Keeps crashing

Is this still being worked on? The game keep crashing whenever I try to spawn an item in the inventory.

Is this still being worked on? The game keep crashing whenever I try to spawn an item in the inventory.

Sounds like you don't have the requirements from the README

Hmm. I actually don't see the c++ req in there for some reason. I will have to look into what version it requires, but, generally crashing when spawning an item is due to not having the C++ requirements

https://www.microsoft.com/en-us/download/details.aspx?id=30679
Should be the x64 version of this.

Actually I've figured it out. Turns out I need to enable the "give item silently" option. Everything seems to be working fine now

Close the issue

Close the issue

This issue was never solved.
Mind our own repos, dude.


how use ConCurrentMap<CustomJavaClass, CustomJavaClass> in db.hashMap("string")

hi
I want to use :
ConcurrentMap<CustomJavaClass1, CustomJavaClass2> obj = m_db.hashMap("myStr");
but I don't know how use Serializer for second and third arguments in hashMap().
please clarify me
thanks

I'm using:
ConcurrentMap<UUID, myClass> map = db
.hashMap("response", Serializer.UUID, Serializer.JAVA)
.createOrOpen();

but Eclipse gives a warning:

Type safety: The expression of type HTreeMap needs unchecked conversion to conform to
ConcurrentMap<UUID,myClass>


Standard Logic Apps: Why is a Storage Account Required for "Stateless" workflows for Logic Apps?

In the documentation, it mentions that a Storage Account is required for "Stateless" workflows for Standard Logic Apps.  Shouldn't it instead state required for "Stateful" workflows for Standard Logic Apps?  The documentation doesn't line up with the purpose of having a stateless workflow.
Can someone help provide some feedback as to why we'd need a storage account for a "Stateless" workflow?

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

ID: d7f2322a-037c-aceb-a596-c96d4bc2e5f8
Version Independent ID: 0dbec0cc-7575-a8af-c3a5-708bc64906ec
Content: Set up DevOps for single-tenant Azure Logic Apps - Azure Logic Apps
Content Source: articles/logic-apps/set-up-devops-deployment-single-tenant-azure-logic-apps.md
Service: logic-apps
GitHub Login: @ecfan
Microsoft Alias: estfan

Thanks for the feedback! We are currently investigating and will update you shortly.

Hello @gcmlpfaltaher, Yes we need storage for stateless workflows , mainly for storing keys for the functions runtime. The logic apps engine in standard runs on the azure functions runtime. When the functions runtime is hosted on azure it needs a storage account to store its various keys for access control, this is why even when we run logic apps in stateless mode we need a storage account even though the inputs and outputs per action are not stored there.
Hope this helps.
We will now proceed to close this thread as there is no documentation enhancement required. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

If that's the case, the documentation is misleading since it indicates that it's needed only for stateless workflows.  According to your response, a storage account is needed for both stateless and stateful workflows since they both run on the azure functions runtime.  Can it be updated to reflect that?

Hi @gcmlpfaltaher & @JayaChatterjee-MSFT, the doc will be updated on 08/10/2021 after 11 AM Pacific Time. Thanks!


Fix failure to generate worker_id when xdist is not present

Fixes #4798.
xdist is optional, so we cannot rely on the typical worker_id fixture to identify the worker ID.  This uses a try-to-import approach to leverage an xdist API to retrieve the worker_id from the pytest config, using a static string for the worker ID if xdist fails to import.

build


adding a pop up toast for "your link has been copied"

@AkhilJ321
You are more than welcome to create a PR for it!

okay i will be making it soon!


Builds the plugin using dune

Since BAP switched the default build system to dune, we should do the same for our plugins.

There are conflicts now. Any updates to get this merged, by the way?


api: remove command controller

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#129  👈
#128
#127
#126
#125
#124
#123
#122
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @isaacharrisholt and the rest of your teammates on  Graphite


Ignoring flow type exports

resolve #484

Coverage increased (+0.003%) to 94.907% when pulling cd378906be1322c9e85c04a54c55e1702b428830 on jakubsta:feature/flow_type_exports into edbb57060a141332d5b86fa6debad2d807a83ff3 on benmosher:master.

Coverage increased (+0.003%) to 94.907% when pulling cd378906be1322c9e85c04a54c55e1702b428830 on jakubsta:feature/flow_type_exports into edbb57060a141332d5b86fa6debad2d807a83ff3 on benmosher:master.

Coverage increased (+0.003%) to 94.907% when pulling cd378906be1322c9e85c04a54c55e1702b428830 on jakubsta:feature/flow_type_exports into edbb57060a141332d5b86fa6debad2d807a83ff3 on benmosher:master.

Coverage increased (+0.003%) to 94.907% when pulling cd378906be1322c9e85c04a54c55e1702b428830 on jakubsta:feature/flow_type_exports into edbb57060a141332d5b86fa6debad2d807a83ff3 on benmosher:master.

@jfmengels Could you have a look once again?

Coverage increased (+0.003%) to 94.907% when pulling 4c54e9e1a398f343c041f0cda41b3d31bc4ca4e6 on jakubsta:feature/flow_type_exports into edbb57060a141332d5b86fa6debad2d807a83ff3 on benmosher:master.


[Improve][Manager] Implement the APIs of cluster management

Description
Implement the APIs of cluster management.
InLong Component
InLong Manager
Are you willing to submit PR?

[ ] Yes, I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I will deal with this problem.


Create a new standard exception for mismatch of document/id types

It's pretty common in the codebase, and I've been using InvalidOperationException so far w/ some copy/paste messages like this:
                throw new InvalidOperationException(
                    $"Id/Document type mismatch. The id type for the included document type {typeof(TInclude).FullNameInCode()} is {storage.IdType.FullNameInCode()}");

Done in a branch.


feat: loading directive support Promise

Please make sure these boxes are checked before submitting your PR, thank you!

[ ] Make sure you follow Element's contributing guide (中文 | English | Español | Français).
[ ] Make sure you are merging your commits to dev branch.
[ ] Add some descriptions and refer relative issues for you PR.

主要解决 v-loading="promise" 不能结束loading的问题，传入boolean可以，传入promise可以在then和catch中自定结束loading


@W-16375915 : Fixing migration tool vulnerabilities

What does this PR do?
@W-16375915 : Fixing migration tool vulnerabilities
What issues does this PR fix or reference?

/suggest


Do not print FlowDurabilityHint to build log

I suspect few people ever override this setting, or even know what it means, so printing
Running in Durability level: MAX_SURVIVABILITY

at the start of every build log is just noise. (Also it is using a Java enum name, which is not very friendly.)

otherwise I don't think there is an easy way for them to see what setting is being used in a particular build

Maybe it should print a message only when the setting differs from the global default? Of course the global default may be changed over time etc.
I feel like this is something better left to system logs, not the build log.

Maybe it should print a message only when the setting differs from the global default? Of course the global default may be changed over time etc.

Yeah IDK. I was thinking maybe something like an Action on WorkflowRun with a summary.jelly to show the durability level used for the build on the main build page, but that's still a bit much.


DDL is not run when the specified database exists

The setup code does not run DDL when the specified database exists.
https://github.com/lestrrat-go/spanner-emulator-driver/blob/810a79f84889aa1ebee3f8b9ffb597edee442226/driver.go#L253-L257
What is expected:

DDLs are always run.

Actual Behavior:

DDLs were not run, resulting in an empty database.

I thought the database would be dropped first if there was a database already.


Automatically generated labels for the biopsy terms

The definitions of the biopsy terms should be revised. Firstly, those terms that contain "tissue" in the item label sound funny.
Removal of tissue from the adipose tissue.
Also, and more importantly, "Removal of tissue from X" is wrong. It should be
Removal and examination of tissue, cells, or fluids from X for the purpose of detecting or characterizing disease.

Will change after critical release. I think changing the text definition will change all the issues, but once I do, we can look to see if labels or definitions need to be overridden.


Trouble while running Tensorflow after installing TensorFlow-metal

I followed the instructions, but afterwards I get the errorcode
Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.
every time I run something with Tensorflow. The program runs as otherwise expected, and the programs does not stop but continues to run, only very slow (far slower than using CPU).
Besides that errorcode I also get
Plugin optimizer for device_type GPU is enabled.
every time.
I am using a regular M1, and have followed the instructions, and also tested the "list physical devices" which works just fine.
TensorFlow 2.7

Im having the same issue when compiling a model on my M2pro.
I tensorflow[/core/common_runtime/pluggable_device/pluggable_device_factory.cc:306](https://file+.vscode-resource.vscode-cdn.net/core/common_runtime/pluggable_device/pluggable_device_factory.cc:306)] Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.

I had the same error as well. But I fixed it through this Apple Developer post.
Dropping back to versions: tensorflow-macos==2.9 and tensorflow-metal==0.5.0 fixed the issue for me.
https://developer.apple.com/forums/thread/721619


chore(jvm): bump jmh plugin to v0.7.2

https://github.com/melix/jmh-gradle-plugin/compare/RELEASE_0_7_1...8ffa0f1095dafb25a873ff197a4d33fa6e10d79e

Okay, I need to get to this eventually, and automate the benchmark suite too. Totally forgot about releasing Round 1 now that both latest JDK and .NET are widely available.


[Bug] : When we visit profile page it have some errors

Describe the bug
A clear and concise description of what the bug is.
@thestarsahil
check this out,
when i try to visit /profile route
i got

Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Done


Better "about dialog" for In App Purchases

Perhaps the about function in the app could tell you what licence you have in future?

Originally posted by @DavidFW1960 in https://github.com/isontheline/pro.webssh.net/discussions/320#discussioncomment-867615

For 15.x I will try another business model : pay what you want

If you have already bought WebSSH PRO or STARTER you will have all functionalities
If you haven't already bought WebSSH PRO or STARTER you will be able to choose any "thanks" purchase inside the app and you will have all functionalities

Why this change ? In order to let everyone to access all functionalities and to pay what you want (or what you can).


Feature Request: code action to toggle math equation inline/block

Short description
I think it would be nice to have a "code action" that toggles a math equation from inline to block.
The request
Implement code action support in the LSP, and add a code action to toggle math equations from inline to block.
Inspiration could be drawn from rust analyzer code (they call it "code assists" internally).
It should only appear when the cursor is inside a math equation.
Motivation
I often find myself writing an equation inline and then halfway through realizing that it will be too long (or that I need multiple lines), and should be turned into a block equation. It is then a little bit annoying to convert the equation to a block equation. The code action could make the transition smoother.
Example
For example, if the cursor is in the math equation, and the code action is triggered, then
We thus find that $sum_(i=0)^oo x^n / (n!)$ converges absolutely.

gets converted to
We thus find that
$
sum_(i=0)^oo x^n / (n!)
$
converges absolutely.

Questions
I tried having a look at how to implement this myself, but it seems that the lsp doesn't support any code actions yet, so it is not so simple to add for someone who doesn't know the code base. If you could give some hints I might be able to do it myself.
There is no consensus at the moment on how block math equations should be formatted. I know of three different styles:
Inline with spaces before and after.
We thus find that $ sum_(i=0)^oo x^n / (n!) $ converges absolutely.

On a newline with no indent.
We thus find that
$
sum_(i=0)^oo x^n / (n!)
$
converges absolutely.

On a newline with indent.
We thus find that
$
  sum_(i=0)^oo x^n / (n!)
$
converges absolutely.

I personally don't like the first one, because it makes it hard to see the difference between block and inline equations. Another problem with it, is that it doesn't allow you to write multiline equations easily. I therefore think that the code action should either go for the second or the third one. The code formatter can then decide whether there should be an indent or not.

It is a smart code action imo. Actually, I proposed some similar code actions to @Enter-tainer, the author of the typstyle formatter. The code actions are named flavor toggling actions.
To know about flavor toggling, I explain a technique named flavor detection here. A formatter with flavor detection will try to keep code flavor in your code. For example, there are three different flavor of array formatting:
// single-line array
#(0xdeadbeef, 0xdeadbeef, 0xdeadbeef, 0xdeadbeef, 0xdeadbeef)
// compact multiple-line array
#(
  0xdeadbeef, 0xdeadbeef, 0xdeadbeef, 0xdeadbeef, 0xdeadbeef
)
// loosed multiple-line array
#(
  0xdeadbeef,
  0xdeadbeef,
  0xdeadbeef,
  0xdeadbeef,
  0xdeadbeef
)

People may have different preference to these flavor of array formatting. However, they may also want to use different flavors in a document interchangeably. For example, if the formatter is configured to prefer to expand arrays in best efforts, the following code will become:
#f((  1,     2))
// is formatted as
#f(
  (
    1,
    2,
  ),
)

, which is a bad and undesired formatted result.
But it is also hard to make a rather complex configuration to make a formatter fit your owned code flavor everywhere. Therefore, a formatter with flavor detection will identify #f((  1,     2)) as a function with a single-line array, and keep the code flavor of "single-line array", and format it as #f((1, 2)).
The problem is that we may also want to change the flavor easily, so I proposed the flavor toggling actions to @Enter-tainer, implemented by professional formatters, and exposed these code actions by lsp to your all users. For example:

change an array's flavor from/to single / compacted multiple-lined / loosed multiple-lined flavor.
change a dictionary or function call's flavor in similar ways.

Coming back to the topic of this issue. the inline/block equation could change to the other kind of equation by code actions provided by formatters from my perspective. The formatters are dedicated to change your code's shape and can provide a nice output more directly. These functions will be exposed by lsp's code actions.

I personally don't like the first one, because it makes it hard to see the difference between block and inline equations.

I also follow your sense, and I prefer the code action produces second one and the finally result is determined by the formatter.

i can provide lower level interface that allows customizing the format flavor of each ast node. I think this can be helpful for this case

BTW, inline/block conversion is beyond flavor detection: it changes the rendering output.

I discussed with @Myriad-Dreamin offline and i propose range rewrite in https://github.com/Enter-tainer/typstyle/issues/47

The code action function is introduced in https://github.com/Myriad-Dreamin/tinymist/pull/240


Add "bird's eye view" button

Requested Changes

[ ] Add a button, which, upon hold, shows all three boards on top of each other.

Additional context
The reasoning behind this request is that players continuously switch between boards on their turn to view the general situation of the game. It will be a lot easier to see the game situation with a button like this.

This issue needs to either be removed or rephrased because displaying all three boards on top of each would destroy the users' eyes and is bad UX

Perhaps a better solution would be to present a smaller version of each of the three boards side by side. What do you think @Monkey-bored?

I agree. It would be more useful.


JSON-based configuration (probably v2.0)

Introduction
This is a huge refactoring of punch.py to migrate to JSON-based configuration, instead of Python files (punch_config.py and punch_version.py). Migration is supported via CLI command:
punch --migrate

Motivation
Simplify configuration format and don't use Python-based files which require more complex logic to support.
JSON format description
JSON file with default name punch.json is almost the same as punch_config.py file format, but with included current version (look at key version.values). Version file punch_version.py is not used anymore.
{
    "format": 1,
    "globals": {
        "serializer": "{{year}}.{{month}}.{{build}}"
    },
    "files": [
        "README.md"
    ],
    "actions": {
        "mbuild": {
            "type": "conditional_reset",
            "field": "build",
            "update_fields": [
                "year",
                "month"
            ]
        }
    },
    "version": {
        "variables": [
            {
                "name": "year",
                "type": "date",
                "fmt": "%Y"
            },
            {
                "name": "month",
                "type": "date",
                "fmt": "%m"
            },
            "build"
        ],
        "values": [
            "2016",
            "04",
            "1"
        ]
    }
}

Also, difference is lowercased names of first-level keys. And rename of __config_version__ to format.
Changes

Migrate from class methods from_dict to factory (kwargs-based) (except VCSConfiguration.from_dict yet)
All actions is inherited from Action class
Add RefreshAction with not-implemented process_version method
PunchConfig instance use properly converted values of configuration inside
Add dump method to PunchConfig to save configuration with custom version and to custom target file
Version class is inherited from OrderedDict, because it's used the same interface and was almost identical
Move punch.vcs_repositories and punch.vcs_use_cases modules to punch.vcs package modules (punch.vcs.configuration, punch.vcs.exceptions, punch.vcs.repositories, punch.vcs.use_cases)
VersionPart class and it's inherits use kwargs-based initialization
Replacer and FileUpdater use __call__ method to work, instead of confusing named methods
All version values is serialized to strings, and properly converted back with each of VersionPart.set method
Refactor import of all punch parts (e.g. from punch import file_configuration as fc is changed to from punch.file_configuration import FileConfiguration)
Add Python 3.6 support
All tests is updated and passed
No tests for CLI migration operation yet

@lgiordani Any thoughts about it?

Hi, apologies for the late reply, it's a busy period. Well, having configuration files written in Python is one of the main features of Punch, and I am not willing to drop it. I think that the possibility to write Python code in a configuration file is very useful, for example to read environment variables, or to perform calculations.
I would gladly accept a PR with your code if you add the JSON configuration files, instead of replacing the Python ones. We could support both, JSON files for simple cases and Python ones for more complex scenarios.
I see that you also worked on Actions. Can you perhaps split the PR and submit simpler changes? That way it is easier to review and discuss about the new code. For the moment I'll close this, as in this form I'm not willing to merge it.
Thanks!


Release 2.0.1 not on Dockerhub

Summary
Hi guys, looking to start shipping with 2.0.1, could someone please push 2.0.1 to dockerhub, currently not present on https://hub.docker.com/_/kong

Please be patient, 2.0.1 was just released, getting the images available usually takes a day or so


⚠ Jenkins Plugins Artifactory has degraded performance

In 5460bf8, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1233 ms

Resolved: Jenkins Plugins Artifactory performance has improved in fe66eea after 3 hours, 24 minutes.


npm version outdated

The version of the JS library on https://www.npmjs.com/package/i18n-js is very outdated (3 years old), please consider updating it.

It's different from this project
Look at it's project URL

Yeah, I noticed that. But under the project url it says

Note The NPM package is no longer maintain by us but by fnando.

Also, when I call npm owner ls i18n-js it states that @fnando is the owner.
Installing a npm package via a GitHub release URL (like described in your doc) is far from ideal because it conflicts with the own version handling of npm/yarn, makes it harder to setup an npm registry cache etc.

I can update the version on package.json
But I am not one of the owners, I cannot publish it as i18n-js
What can I do? :S

@PikachuEXE
You can also contact<EMAIL_ADDRESS>and I suppose they will figure out a solution.
See also https://www.npmjs.com/policies/disputes.

Email sent (cc to npm support)
I will send again if no response
But I expect @fnando to be AFK most of the time lol

Should we publish a new package on npm?

@hnq90
As I said earlier
This will be resolved in a few weeks since my email sent (so should be 1-2 weeks from now)
It's better to use the same name for the npm package

@PikachuEXE Really? Did you get reply from NPM Staff?

They replied soon after I sent the email to package owner (which is actually @fnando)

@PikachuEXE I think it's better to publish a this package under new name...

@fkoester
Can you help check what should be done before publish a new version?
Like missing dependency
I am noob in this field

3.0.1 published on npm

Nice, thank you :+1:

@PikachuEXE Sorry for the late response, I was quite busy lately... But glad you figured it out by yourself and this issue is closed. Thank you very much!

@fkoester Do let me know if you got any issue for the npm released version
Because I don't use it :P


CDS hook calls as part of a FHIR-based workflow

Hi!
I'm working on a CDS service that will provide so-called "CarePlan templates". What this means is:

A patient has a CarePlan, which describes his or her entire interaction with my country's healthcare system.
When using different services, this patient may be put on individual "sub-plans". An example would be if the patient is diagnosed with heart disease, at which point some heart disease-related protocol is activated for him, containing some predefined set of steps.
Some of these steps may be conditional, i.e. the sub-plan may contain forks. My CDS will be used at these forks to read the relevant patient data (most often some fresh measurement data), calculate which path to take next, and return the next steps in the plan. In practice this means that our medical professionals define a complete PlanDefinition for the entire sub-plan, out of which fragments are handed out to the patient in question, one piece at a time, depending on measurement results.

Hopefully my use-case is clear. What I am wondering is: when returning a "plan fragment", say, "perform steps A, B and C and then call decision support", what would actually be a good way to encode this action of calling the CDS? We are naturally using CDS hooks. Is there some obvious resource to do this in? Usually, for other actions, we only return ActivityDefinitions, since the actions will be further "enriched" by the calling service before the actions get turned into more precise FHIR resources.
The simplest way would be to just have an ActivityDefinition with a code containing the hook name. However, we also need to pass in the "fork ID" so the CDS knows which fork we are at. Creating one hook per fork seems a bit counterproductive, I'd rather have one hook, e.g. evaluate-template-fork and a parameter forkId with some unique string. Where would I put this parameter in a CDS hook call?

Since it looks like both context and prefetch are described by FHIR search strings, should there be some place to place a Parameters resource?

If I'm understanding correctly, the use case requires that you be able to indicate which points in the PlanDefinition should trigger an evaluation. We have typically used the triggerDefinition element to indicate this, and you could define the hook to accept an actionId with the id of the action. Would that work?