Support format on paste

We should add support for format on paste. Idea is to simply invoke selection formatters when paste has happened.

related to https://github.com/Microsoft/vscode/issues/4039

On OS X, could this be mapped to "Paste and Match Style"? ⌥⇧⌘V

@rebornix Do you want me to get started on this? We already have the concept for formatting a range so, my plan is to do the following:

detect paste range
invoke range formatter

@jrieken previously I implemented it in another way but we think that's not good, I'll follow your suggestions and do this again :)

Like @coreh I'm also interested to know whether this can be a command separate from paste so the user can choose which to use on demand (i.e. one keyboard shortcut for paste, one for paste + format)

Firstly, thanks for adding this, it's been the one feature I really missed from Sublime Text.
Having a play around with it, it seems to create two entries into undo history per single paste. I can't decide if that's a bug or a feature.

@jakearchibald It's not a bug but I can't say it's a feature :( The behavior is consistent with FormatOnType or Save as we hook the formatting handler to Type/Save/Paste event, which makes it two entries in undo/redo stack. cc @jrieken

Another "is this a bug or not?"
If I paste:
self.addEventListener('fetch', function(event) {
  event.respondWith(
    promiseAny([
      caches.match(event.request),
      fetch(event.request)
    ])
  );
});

It adds a space between function and (event). I didn't expect it to do that.

@mjbvz I suppose what @jakearchibald mentioned is actually TypeScript formatter's default behavior, right?

Yes, you can disable this formatting using "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false or "typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false


xdg-icon-resource install: cannot touch '/homeless-shelter/.local/share/icons/hicolor/.xdg-icon-resource-dummy'

I'm packaging phoronix-test-suite.
I get this error in the install process:
mkdir: cannot create directory '/homeless-shelter': Permission denied
mkdir: cannot create directory '/homeless-shelter': Permission denied
touch: cannot touch '/homeless-shelter/.local/share/icons/hicolor/.xdg-icon-resource-dummy': No such file or directory

It's probably caused by this command: xdg-icon-resource install --context mimetypes --size 64 pts-core/static/images/openbenchmarking.png application-x-openbenchmarking
https://github.com/phoronix-test-suite/phoronix-test-suite/blob/8ef44f39baf65e7473ce4670189ff64cd09113e9/install-sh#L106
Any idea why /homeless-shelter is used here?
Do i have to do something like this to fix the error? https://github.com/NixOS/nixpkgs/blob/32767d139f28fd3c00d687c04ec406258f7341e7/pkgs/applications/version-management/smartgithg/install_freedesktop_items.sh#L7

HOME=/homeless-shelter by default. You can try to set HOME=$TEMPDIR or XDG_DATA_HOME=$TEMPDIR to avoid this issue.

You can also use DESTDIR=/. or not provide xdg tools to use the chroot branch: https://github.com/phoronix-test-suite/phoronix-test-suite/blob/8ef44f39baf65e7473ce4670189ff64cd09113e9/install-sh#L102

@jtojnar thanks! Does the chroot branch has any disadvantages in this case?

Mostly that the cp command, unlike the xdg-tools will not rebuild relevant caches:
https://github.com/phoronix-test-suite/phoronix-test-suite/blob/8ef44f39baf65e7473ce4670189ff64cd09113e9/install-sh#L123-L124
But we have setup hooks that would clean them up anyway.

I understand. Thanks!


Downloadable .zip version of VSTS CLI for Windows

Create efficient (< 15 MB) standalone VSTS CLI .zip for Windows. This will make it easier to use the VSTS CLI from other build tools and services that don't allow installing MSIs.

A chocolatey package would be awesome!

I've created a Chocolatey package here - https://chocolatey.org/packages/vsts-cli
Let me know if you'd like to take it over, for publishing it directly from your CI/CD pipeline

@willsmythe - out of curiosity, do you have an example of a build system that does not allow msi install?

I don't recall the scenario that triggered this issue. It's probably safe to say this hasn't been a major problem or else we would have seen more asks for it. The other motivation here was to improve install time during CI since a regular user waiting a few minutes for the CLI to install on their local machine isn't a huge deal (since it's a one-time thing), but a 2-3 minute "tax" every build adds up.

Right, makes sense. To counter the build set up time, we are working on adding the Azure DevOps extension in all hosted pool images. This should cut down the build times as the extension would be pre-baked. However, for users trying to target Azure DevOps from external build systems, the problem is that they now need to install Azure CLI which is ~347 MB. There is an issue https://github.com/Azure/azure-cli/issues/7387 the team is monitoring to reduce package size.


typo: manufest -> manifest

📝 Description
typo: manufest -> manifest
❓ Context

Impacted projects: iOS
Linked resource(s): N/A

✅ Checklist

[x] Test coverage
[x] Atomic delivery
[x] No breaking changes

📸 Demo

🚀 Expectations to reach
Please make sure you follow these Important Steps.
Pull Requests must pass the CI and be internally validated in order to be merged.

Hey @sandvige could you rebase your PR on develop to make the tests pass?

Hey @sandvige,
Thank you for your contribution.
Could you add the changesets (use pnpm changeset) to your PR ?
Best regards.

Hey @sandvige ,
Thank you for your contribution.
Regarding the conflict:
With the file apps/ledger-live-mobile/src/screens/Settings/Developer/CustomManifest.js, could you merge the develop branch in your branch?


Language Server doesn't update intellisense/warnings after pip installing modules

Environment data

VS Code version: 1.25.0
Extension version (available under the Extensions sidebar): 2018.7.0-alpha
OS and version: Windows 10
Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.5
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv

Actual behavior
With the Python language server enabled and in an empty virtual environment

Type import requests notice how a warning appears that this module is not available:
Unable to resolve 'requests'. IntelliSense may be missing for this module.
Go to the terminal and run pip install requests into the virtual environment
The warning in the editor is still available

Expected  behavior
The import warning goes away
Steps to reproduce:
Steps in actual behavior as above
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

/cc @MikhailArkhipov

Need to watch package directories (search paths) and tell LS to reload modules when they change.

This should be fixed by https://github.com/Microsoft/PTVS/pull/4543

I've verified this works for me, thanks!


Feature Request: Find/Replace

It would be nice to have a find/replace option

Yes, I am not sure why I don't do find/replace.  Should not be too hard.  I need to do some work there anyway, the existing find is not, IMHO, satisfactory anyway, from memory it has a switch to reverse search direction that does not work.
I will take 'Replace' on notice !
Thanks for the suggestion.


phantomjs crashes when snapping the whole site

Crash happened on OS X (Yosemite). I was using the spider feature so I can compare the whole site.
Sorry I don't have access to Linux box...
I can't attach the dump file. It doesn't like the .dmp file format. I tried renaming it to .txt but same issue. Let me know how i can upload the .dmp file please.

We really need to stop telling people to give us .dmp files: Github doesn't like them and 99% of the time they turn out to be useless anyway.
What we actually need is a minimal, complete, self-contained test case.  The smallest possible website -- ideally just one HTML file with no external resources -- that causes PhantomJS to crash, plus precise instructions for how to apply PhantomJS to the test case to make it crash.
Additionally, are you using PhantomJS 2.0?  Almost all crash bugs are Webkit's fault, and 2.0 has a much newer Webkit.

Unfortunately I am on phantomjs version 2.

Best Regards,
Asif
From: Zack Weinberg <notifications<EMAIL_ADDRESS>Reply-To: ariya/phantomjs <reply<EMAIL_ADDRESS>Date: Friday, 9 October 2015 02:10
To: ariya/phantomjs <phantomjs<EMAIL_ADDRESS>Cc: Burberry Burberry <asif.ansari<EMAIL_ADDRESS>Subject: Re: [phantomjs] phantomjs crashes when snapping the whole site (#13630)
We really need to stop telling people to give us .dmp files: Github doesn't like them and 99% of the time they turn out to be useless anyway.
What we actually need is a minimal, complete, self-contained test case. The smallest possible website -- ideally just one HTML file with no external resources -- that causes PhantomJS to crash, plus precise instructions for how to apply PhantomJS to the test case to make it crash.
Additionally, are you using PhantomJS 2.0? Almost all crash bugs are Webkit's fault, and 2.0 has a much newer Webkit.

Reply to this email directly or view it on GitHubhttps://github.com/ariya/phantomjs/issues/13630#issuecomment-146729623.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the addressee of this e-mail please do not copy or forward it or otherwise use it or any part of it in any form whatsoever. If you have received this email in error please notify the system manager on Information.Security<EMAIL_ADDRESS>.
References in this Data to "Burberry" are references to Burberry Group plc, a company incorporated in England and Wales with registered number 03458224 whose registered office is at Horseferry House, Horseferry Road, London, SW1P 2AW and where the context requires, includes its subsidiaries and associated undertakings.

OK.  We still need a minimal, complete, self-contained test case to be able to do anything about this.


[WIP] Why oh why?

#1959
TODO:

[ ] recognize github dependencies
[ ] show dependencies up to the top level
[ ] display version and depending packages constraints

Feedback welcome!

This will become very useful, thanks! Could it also provide some info on why a particular version is used, if applicable?

When a package dependency is shown, do we show all dependencies up the dependency tree up to the top-level, only top level or only to the next level?
Could also be a command switch like --full

@theimowski please keep posting screenshots if you change something. This is awesome

will do, I'll also let know whenever I get to the point where it could be merged - possibly with not yet all features implemented

Would it be worth making package id optional - so that it shows why all packages are in the lock file for a given group (although this might be a bit verbose)?

@Stift I think it makes sense to show all deps up to the top level by default.
What I'm wondering is whether it makes sense to print all paths from the top level package, or just choose a shortest one? (see below e.g. Microsoft.Bcl.Build)

Maybe show the shortest and say "and x more paths"?

Maybe (as a 2nd step) we couln't just ask for package id's, but also for artefacts - i.e. why is the dll/js/whatever in my output. In case I've overlooked that just ignore the comment.

That would be brilliant
Am 14.10.2016 09:27 schrieb "Thomas Koch"<EMAIL_ADDRESS>
Maybe (as a 2nd step) we couln't just ask for package id's, but also for
artefacts - i.e. why is the dll/js/whatever in my output. In case I've
overlooked that just ignore the comment.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/fsprojects/Paket/pull/1960#issuecomment-253728733,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADgNNqWsjTTQN3r1hG2igLDMaTj3jFyks5qzy7JgaJpZM4KUnL8
.

@tommes but it's probably hard to decide without reimplementing MSBuild logic

I think by package Id would be sufficient for the most use case.
If there are more than one path then, I'd like to have an option like -full or -all, if possible.
If a tree notation would be too complex I would recommend sth like ´Package1 >> Package2 >> Package3´
@theimowski Would it make sense to merge the trees, so that the output is more compact?

If we merge the trees then we will get the lock file back
Am 14.10.2016 17:05 schrieb "Christian Fiebrig"<EMAIL_ADDRESS>
I think by package Id would be sufficient for the most use case.
If there are more than one path then, I'd like to have an option like
-full or -all, if possible.
If a tree notation would be too complex I would recommend sth like
´Package1 >> Package2 >> Package3´
@theimowski https://github.com/theimowski Would it make sense to merge
the trees, so that the output is more compact?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/fsprojects/Paket/pull/1960#issuecomment-253827527,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADgNKInm4QJfXA1ySiysueDfyEI7exUks5qz5otgaJpZM4KUnL8
.

Can NuGets have cyclic dependencies? And if so does it resolve to paket.lock?

How about this? I've grouped the paths by the top level dependency and if from a specific top level dep there are >1 paths, we show shortest by default.
This way we won't ignore multiple top-level deps

I released it in alpha. please create new PRs to keep it going ;-)

Alright! Can one continue work on  the same branch and reopen PR in github or do i have to create new PRs?

You can try to reopen. Not sure if this works.
Am 22.10.2016 17:51 schrieb "Tomasz Heimowski"<EMAIL_ADDRESS>
Alright! Can one continue work on the same branch and reopen PR in github
or do i have to create new PRs?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/fsprojects/Paket/pull/1960#issuecomment-255536105,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADgNB4iTKN8Yg9uhKtq4re1_beW-mO2ks5q2jEAgaJpZM4KUnL8
.


Color pattern

Is there any way to load color.pattern after I generated chart?
I know I can do it when generating chart or I can use data.colors(), but then I need to know all columns ids (which I don't).

Bumping this question ^^
The pattern is only assigned once when the chart is generated but I need it be reassigned on reload,
(column ids are dynamic)
HALP!


Notification framework

need a system for receiving and sending notifications from an event-emitter for handling worldstate alerts

Perhaps you could subscribe to updates from this, it's a lot smaller than the worldState feed and it only shows alerts and Invasions.

Only problem there is we can't notify about everything else.


Merge transaction sender and cosigner

close #9
improve syncing speed when the local chain is ~in sync with the remote node. Previously the C# nodes broadcasted new blocks faster, now we can lag behind 2-3 seconds. Added a service in node manager to ping remote nodes on a interval to be aware of their new heights faster.

Codecov Report

Merging #19 into preview3-parity will decrease coverage by 0.08%.
The diff coverage is 89.42%.

@@                 Coverage Diff                 @@
##           preview3-parity      #19      +/-   ##
===================================================
- Coverage            96.10%   96.01%   -0.09%
===================================================
  Files                   42       42
  Lines                 3520     3592      +72
===================================================
+ Hits                  3383     3449      +66
- Misses                 137      143       +6

Impacted Files
Coverage Δ

neo3/network/node.py
76.72% <9.09%> (-1.93%)
:arrow_down:

neo3/network/convenience/nodemanager.py
99.05% <80.00%> (-0.47%)
:arrow_down:

neo3/network/payloads/__init__.py
100.00% <100.00%> (ø)

neo3/network/payloads/consensus.py
90.69% <100.00%> (ø)

neo3/network/payloads/transaction.py
100.00% <100.00%> (+1.53%)
:arrow_up:

neo3/network/payloads/verification.py
100.00% <100.00%> (ø)

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 42d6afd...deeaf3c. Read the comment docs.


Download error

Hi, I'm trying to download occurrence data and run into an exception. Here is my code:
`   from pygbif import occurrences as occ
key = 2473421
download_info = occ.download(
    user=my_user_name,
    pwd=my_pwd,
    email=my_email,
    queries=["taxonKey = {}".format(key)]
)

if len(download_info) > 0:
    occ.download_get(key=download_info[0])`

And the error :
File "/home/leguilln/workspace/python3.7-env/lib/python3.7/site-packages/pygbif/occurrences/download.py", line 384, in download_get     raise Exception('download "%s" not of status SUCCEEDED' % key) Exception: download "0014929-191105090559680" not of status SUCCEEDED
Thank you for your help.

thanks for your question @nleguillarme
if you pass the key to download_meta you can get the status: occ.download_meta(key=download_info[0])
The GBIF download service is not like the search service (e.g., occ.search). The search service returns data right away, whereas the download service kicks off a background job, and only after it finishes running can you then request the data.
You can add another line of code to check the status of the job and then only run download_get when the job is of status SUCCEEDED

Thank you @sckott for these explanations.

Do you need any further help on this?

So I have a loop to regularly check if the status of the job has changed, but even after receiving the mail from GBIF saying my data download is ready, the status is still "RUNNING", so I have no idea when I can start downloading the archive.

thanks, i'll have a look - what is the download ID?

I didn't have an issue creating a download then checking with download_meta - maybe it's a problem with that one download -


Why is debian apt install so much larger than the JDK release binary?

Inspecting eclipse-temurin:17.0.11_9-jdk-jammy for example, the size of the layer that installs the JDK is 281 MB. This technique downloads the release binary.
I'm switching my FROM to be a different base image, so I originally wrote my Dockerfile to use apt to install the JDK, using the debian instructions, like this:
RUN wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null && \
    chmod o+r /etc/apt/trusted.gpg.d/adoptium.gpg && \
    echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list && \
    apt-get update && \
    apt-get install -y temurin-${TEMURIN_TAG} && \
    apt-get clean

The issue is that this style adds 353 MB of space (an extra 72 MB). Is there a better way to use apt to install the JDK that will result in a layer size closer to the binary download style? Or would I need to switch to downloading the binary like the eclipse-temurin image does?
Thanks for any advice.

Good question. I don't think anyone on the team is investigated that but I expect it's pulling in a larger set of prerequisite packages form the system package repositories than our images have. For example you're probably getting at least the X11 (GUI) packages that are typically not required in a container (and aren't in our images). Related: https://github.com/adoptium/installer/issues/917
Also bear in mind that depending on your use case, if space is an issue then using a jlinked runtime to reduce the size further may also be appropriate (but again that would not be for use with our dpkg install).

Closing based on the explanation above.


Definitions inside Hyper Schema fail validation if missing Hyper Schema attributes

I have a Hyper Schema file which contains some internal definitions for commonly used property values. I have these definitions collected in a standard json schema object in the definitions list of the main Hyper Schema. Running prmd verify on this file works in v0.7.0 but not v1.1.
Here's example output:
$ prmd verify prmd-bug-test-case.json
prmd-bug-test-case.json: Missing `schemata/some_definitions#/description`
prmd-bug-test-case.json: Missing `schemata/some_definitions#/links`
prmd-bug-test-case.json: Missing `schemata/some_definitions#/properties`
prmd-bug-test-case.json: Missing `schemata/some_definitions#/title`
prmd-bug-test-case.json: Missing `schemata/some_definitions#/type`
prmd-bug-test-case.json: Missing `schemata/some_definitions#/definitions/identity`
prmd-bug-test-case.json: Missing `schemata/some_definitions/links`

I'm including the file that generates theses messages below.
I haven't pinpointed the source of this behavior change yet. Is this expected behavior?
Test case file:
{
  "$schema": "http://json-schema.org/draft-04/hyper-schema",
  "definitions": {
    "my_resource": {
      "id": "schemata/my_resource",
      "$schema": "http://json-schema.org/draft-04/hyper-schema",
      "title": "#My API - # My Resource",
      "description": "Just a resource.",
      "type": [
        "object"
      ],
      "definitions": {
        "id": {
          "description": "An id.",
          "example": "01234567-89ab-cdef-0123-456789abcdef",
          "format": "uuid",
          "type": [
            "string"
          ]
        },
        "attribute": {
          "description": "Just an attribute",
          "example": "an attribute value",
          "type": ["string"]
        },
        "identity": {
          "$ref": "#/definitions/my_resource/definitions/id"
        }
      },
      "links": [
        {
          "description": "Create a new my resource",
          "href": "/my-resources",
          "method": "POST",
          "rel": "create",
          "title": "Create",
          "schema": {
            "properties": {
              "id": {
                "$ref": "#/definitions/my_resource/definitions/id"
              }
            },
            "type": [
              "object"
            ]
          }
        }
      ],
      "properties": {
        "id": {
          "$ref": "#/definitions/my_resource/definitions/id"
        },
        "attribute": {
          "$ref": "#/definitions/my_resource/definitions/attribute"
        }
      }
    },
    "some_definitions": {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "id": "schemata/some_definitions",
      "definitions": {
        "something": {
          "description": "a something.",
          "type": [
            "integer"
          ],
          "example": 122
        }
      }
    }
  },
  "properties": {
    "a_hyper_schema": {
      "$ref": "#/definitions/my_resource"
    }
  },
  "type": [
    "object"
  ],
  "description": "An API that provides a resource.",
  "id": "my-api",
  "links": [
    {
      "href": "http://myapi.com",
      "rel": "self"
    }
  ],
  "title": "An API"
}

I do think it is expected, though perhaps it shouldn't be (or should be something you can opt-out of). I think each key within the top level definitions of a combined schema is expected to represent a particular resource in the overall API (and a particular resource is expected to have the properties you see the warnings about). Does that make sense?
I can certainly see how having top level things would be handy though, so perhaps we should figure out a way for the verifier to better distinguish between resource things (where these warnings are helpful) and not-resource things. What do you think?

Being an external user of this library and someone who has just become familiar with the JSON Schema specifications in the last couple months I probably have a somewhat narrow view on the problem.
I do have clear use cases where defining a block of definitions which are not hyper schema resources at the root schema level makes for a much nicer set of source schema files. If that doesn't clearly go against some part of Hyper-Schema or the prmd approach, then I think it would prove to be a very useful feature. In general being flexible and forgiving with validation where it doesn't clearly violate the specification is helpful for usability but I realize there are always cases where that flexibility can cost complexity.
I would think that simply reading the "$schema" property of each internal schema and only trying to validate (and generate docs for in the case of doc) those schemas independently could still result in the desired functionality. As stated, this worked in version 0.7.0 but I haven't tracked down which feature broke it for 1.0.

Yeah, for clarity, what would you suggest the schema values be for resources or non-resources? Overall I definitely understand the use case and imagine we can figure something out to accommodate. We started overlly strict in some of these and have been working to figure out how to loosen them to a reasonable level without being too lax. Thanks!


fix: Correct misc helm issues

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


Using Basis Set Exchange as a backend service

Dear Basis Set Exchange developers,
I am developing a library (named basisbase) using Dart programming language that will be used in a WebApp. The library will be released under Mozilla Public License Version 2.0. Currently, Basis Set Exchange (BSE) is the only backend service for this library.
When users query Gaussian basis sets for some elements, basisbase will first look up its local database and return results to users if the basis sets are found. Otherwise, it will call BSE's REST APIs (https://molssi-bse.github.io/basis_set_exchange/web_api.html) to fetch the required basis sets and save them into the local database for later use.
The library basisbase is in a private repository at https://github.com/bingao/basisbase. If you need access to it, please let me know. I am writing an issue here to inquire about your preference regarding the above use of BSE as a backend service. If it is OK with you, except for acknowledgment of the BSE library, do you think a license should be used for those basis sets obtained from BSE and stored in the users' local database? If yes, is the same license as the BSE library?
Thank you.
Bin Gao

Glad you are finding the API useful!
I think using the BSE this way should be ok with acknowledgement. The license of the basis sets themselves are a tricky (and likely unsettled) subject. For the most part, I would consider them free to use, but acknowledgement of the authors of the basis sets would certainly be appreciated by them in any publications (ie, that your users publish).
I would certainly be interested in your project, if only for my own curiosity.

Thank you @bennybp I will write the acknowledgment of BSE clearly in my project.
I just changed my project https://github.com/bingao/basisbase public so that everyone can access it. But it is an ongoing project and may be released in the next 1-2 months. So the whole library does not work for now.

The license of the basis sets themselves are a tricky (and likely unsettled) subject. For the most part, I would consider them free to use, but acknowledgement of the authors of the basis sets would certainly be appreciated by them in any publications (ie, that your users publish).

AFAIK the basis set data is public domain. I believe MolSSI's stance was that basis set data can't be copyrighted since it is data that is public material needed to reproduce scientific results...


Add Interpolation Search in Javascript

Hi, please assign this issue to me. This is for the Hacktoberfest.

Hi, please assign this issue to me. This is for the Hacktoberfest.

Hi, @Audacity21  please assign this issue to me. This is for the Hacktoberfest.

Created the PR #62
Kindly review & merge.


docs layout: add support for page bundles

Requires modifying the docs menu system which is currently automated based on dir name of the docs page.

Looking forward for this new feature.


DNSStateTask setting default TTL

By setting DNSStateTask.setDefaultTTL(newDefaultTTLValue) a new default TTL can be set.
But in the code the value of the constant is still used.
It would be helpful if at least in the DNSQuestion class in the method addAnswersForServiceInfo the "DNSConstants.DNS_TTL" value is replaced by "DNSStateTask.defaultTTL()".
With these changes the answer of an DNS question uses the new default TTL value.
As mentioned above their exists similar methods still using the constant value. But I am not sure if all occurrences should be replaced.
Regards
Frank

Could you create a PR with the suggested changes?

As discussed in https://github.com/jmdns/jmdns/pull/83#issuecomment-236016010, this isn't the right approach to tackle the problem, so I am closing this issue.


Update the security_control profile to include access control check semantics, and firewall profile semantics.

Related Issue:
Firewall profile can be removed from 1.1-dev in lieu of this updated profile.
Authorization Information should be deprecated from the Actor object in lieu of this updated profile.
The Web Resource Access Activity class can be deprecated and this profile should be registered with Web Resource Activity to include the access control semantics.
Description of changes:
Per weekly call 11/14/2023 Updated the dictionary descriptions of disposition_id, firewall_rule, attacks, malware to include usage with security_control as well as finding.
Updated security_control profile to combine the disposition list with the firewall profile list, and for use with access control checks.  Added the firewall_rule attribute.  Added the Authorization Information attribute.

The change looks like a good start, I was under the impression firewall rules would live under an optional firewall object inside the profile. Then we can have an object for each of different tools in that profile: firewall, DLP, IDS/IPS,Proxy, compliance etc?

As we make this change do we want to remove/deprecate the Authorization Result object ?

Yes, we will deprecate Authorization Result from Actor and point to this profile.
As for adding other control specific policies, I had done that in my previous PR that I pulled (sec_ctrl) but I think it is better to add them when we have those objects fleshed out and have use cases behind them.  There is a Policy object already, also within Authorization Result and Account Change but not sure if it covers the other areas sufficiently.

After composing up this schema server I see that the security_control profile only apply across 2 categories. Network Activity and System Activity. Do we want to expand that to include more classes and categories?

After composing up this schema server I see that the security_control profile only apply across 2 categories. Network Activity and System Activity. Do we want to expand that to include more classes and categories?

Yes, we need to do that, for example for the Web Resource Activity in Application Activity, in order to be able to deprecate Web Resource Access Activity.  There are a number of other changes after this PR is merged - I just wanted to keep things more focused.

We need to solve for a question like this:
boss: "hi, security analyst. Tell me how the attacker got into our network and make it snappy."
analyst: "ok boss."
index=* ip = <IP_ADDRESS> OR actor.user=zzzz OR hostname = xxxx disposition_action = success
If we have to write: index=* ip = <IP_ADDRESS> OR actor.user=zzzz OR hostname = xxxx disposition= (Logged OR Allowed OR Tagged OR .....)  to answer this question it is not efficient.
A new field in the profile like disposition_action were the result is allowed or blocked would allow us to fit all of those dispostion_id's into a simple binary result.
The other option is to slim down the dispostion_id into 3-6 fields(allowed, blocked, other...) .  Place the dispotion_id attributes into the connected object in the profile like "firewall_rule" and get the disposition action detail from that object.


Create Documentation with jupyter

Explore Documentation like - https://ipyleaflet.readthedocs.io/en/latest/

Implemented in #69 and #70


Mod Support: Legacy4j

Is your compatibility request related to a problem? Please describe.
Midnight controls work mostly pretty good without any flaws using the legacy4j mod (specifically the RE-console modpack), Although there is one problem i encountered with it and that is scrolling through The crafting menu/Most menus the mod provides.
You might be asking why would i use midnight control over the mod's native controller support because me and my cousin play splitscreen and want to experience legacy minecraft again, But the native controller support doesn't support unfocused input and 2 controllers connected at the same time
Describe the way of compatibility you'd imagine
I would like to be able to switch between the tabs in the menu using RB LB RT LT like the way the native controller support does moving through the crafting tabs by using these buttons
Describe alternatives you've considered
I wanted to try controllify but Every version crashes with the re-console Modpack/legacy4j with only midnight controls working, Although the menu support is jarring with us using the virtual mouse

you actually can do that in newer legacy4j versions when enabling this option in Game Options

btw u should probably use SDL3 controller handler in the controller settings as well

you actually can do that in newer legacy4j versions when enabling this option in Game Options
btw u should probably use SDL3 controller handler in the controller settings as well

Ah Thank you!!, That seemed to have fixed my problem, Although i will keep using the GLFW controller handler because SDL3 breaks after connecting 2 controller to the same system which makes me restart the game as a whole
Again thank you!


Don't hide utils from the API docs generator

Utils contains types/ and since the API generator now supports type annotation with links, it will be good to link off to the type pages.

Would it make sense to import that utils.types in the root init.py so you don't document the rest of utils too?
Or switch to that explicit package thing and add import tensorflow_addons.utils.types to utils?
Can you post a diff of the output TOC either way?

Maybe you'd need to bump the version for the CI to pass? See https://github.com/tensorflow/addons/blob/master/tools/install_deps/doc_requirements.txt

I think utils module is hidden intentionally, because we don't want to guarantee its backward compatibility.

Should be done in https://github.com/tensorflow/addons/pull/2162


Fast memory allocation and zero initialisation

Fast memory allocation and zero initialisation
Is there a fast way to allocate and zero initialise a large block of memory using .Net Core?
Looking for a solution that works on both Windows and Linux platforms.
It seems the fastest method on Windows is to call kernel32 HeapAlloc function via PInvoke, this allocates and zeros a 1GB block of memory in less than 2 milliseconds.
However, I haven't found a way to achieve similar results on Linux whilst only using .Net Core.
I've tried the Marshal.AllocHGlobal method which does not zero the memory, and then zeroing the memory using Marshal.Copy to copy an array of zero bytes into the memory, but this gives poor performance i.e. 800 milliseconds compared to the 2 milliseconds above.
Does .Net Core provide a cross platform API that would give similar performance as Windows HeapAlloc or something like the C function calloc?
Code example below:
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;

namespace MemoryApp
{
    class Program
    {
        static void Main(string[] args)
        {
            const int sizeBytes = 1_000_000_000;

            Console.WriteLine($"Allocating memory of size: {sizeBytes} bytes.");

            const int totalAttempts = 20;

            for (int i = 0; i < totalAttempts; i++)
            {
                var stopwatch = Stopwatch.StartNew();

                var allocatedMemory = new AllocatedMemory(sizeBytes);

                stopwatch.Stop();

                Console.WriteLine($"Allocated memory in {stopwatch.ElapsedTicks} ticks ({stopwatch.ElapsedMilliseconds} milliseconds).");

                allocatedMemory.Dispose();
            }

            Console.ReadLine();
        }
    }

    public unsafe class AllocatedMemory : IDisposable
    {
        public byte* MemoryAddress { get; }

#if USE_WINDOWS_HEAP
        private IntPtr _heapPtr;
#else
        private IntPtr _memoryPtr;
#endif

        public AllocatedMemory(int sizeInBytes)
        {
#if USE_WINDOWS_HEAP
            var heapFlags = HeapFlags.HEAP_GENERATE_EXCEPTIONS | HeapFlags.HEAP_ZERO_MEMORY;

            _heapPtr = Heap.HeapCreate(heapFlags, 0, 0);
            MemoryAddress = (byte*)Heap.HeapAlloc(_heapPtr, heapFlags, (uint)sizeInBytes);
#else
            // Memory allocated but not zeroed
            _memoryPtr = Marshal.AllocHGlobal((IntPtr)sizeInBytes);

            // Zero the memory
            Marshal.Copy(new byte[sizeInBytes], 0, _memoryPtr, sizeInBytes);
            MemoryAddress = (byte*)_memoryPtr;
#endif
        }

        ~AllocatedMemory()
        {
            Dispose(false);
        }

        public void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }

        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (MemoryAddress != null)
                {
#if USE_WINDOWS_HEAP
                    Heap.HeapDestroy(_heapPtr);
#else
                    Marshal.FreeHGlobal(_memoryPtr);
#endif
                }
            }
        }
    }

#if USE_WINDOWS_HEAP
    public class Heap
    {
        [DllImport("kernel32.dll", SetLastError = true)]
        public static extern IntPtr HeapCreate(HeapFlags flOptions, uint dwInitialsize, uint dwMaximumSize);

        [DllImport("kernel32.dll", SetLastError = true)]
        public static extern IntPtr HeapAlloc(IntPtr hHeap, HeapFlags dwFlags, uint dwSize);

        [DllImport("kernel32.dll", SetLastError = true)]
        public static extern bool HeapDestroy(IntPtr hHeap);
    }

    [Flags]
    public enum HeapFlags
    {
        HEAP_NO_SERIALIZE = 0x1,
        HEAP_GENERATE_EXCEPTIONS = 0x4,
        HEAP_ZERO_MEMORY = 0x8
    }
#endif
}

@Maoni0 , could you please help redirect?


fixfix array_with_const with larger than max_array_size

Proposed changes
backport: https://github.com/apache/doris/pull/37495/
Issue Number: close #xxx

run buildall

run buildall


In the chat example, how to read responses from all of the providers?

With provider.Push() I am able to broadcast messages to clients. But how I read the responses?

The responses can be read from the stream returned by provider.Push, which exposes an io.Reader. Let me know if that works for you.

ok, thanks for your reply.


Messaging: Sales Tax notifications

Messaging
Context
For https://github.com/PostHog/company-internal/issues/1055
We need to tell users about sales tax requirements. Charges start on 17th December.
There's no action required for users.
Goal
No goal.
Format
2x emails to all users in the impacted orgs.
First message on Friday 8th. Reminder on Friday 15th
Audience / Targeting
@fraserhopper @simfish85 this is one area where I'm still confused after reading the issues and threads.
Basically: How do we plan to identify the customers which need to receive these emails, and do we need to email the NY, UK, and EU users separately or can we use one set of messages for all of them?

So as far as identifying them, I believe we can pull these from stripe.
I think we can do a different messaging for NY & then for Uk/Eu(these can be the same message).
We only need to message the billing contact provided to Stripe. No need to contact every user.

OK, great. If someone can give me a list of users (don't share emails here) when they're ready, I can set this up along those lines.

Draft of the UK & EU notifications based on what I understand of the requirements here. Happy to take any feedback!

OK, we've elsewhere decided to drop the UK email and only need to send the NYC variant to a bunch of users in the US.
Content is unchanged, segment is created, and these emails are now scheduled to send.


[all] Usage in beta.observablehq.com?

Discussion based on this tweet by @den1k:

do you think umbrella would play well in https://beta.observablehq.com/ ? since it has a reactive (but I think promise based) update model straightforward interpolation of HTML / svg, e.g. htmlfoo

I'm simultaneously exploring umbrella, observablehq and getting back into javascript, where many es6 features are still opaque to me. Here's why I'm curious to combine umbrella and observable:

[hiccup/hiccup-svg/hdom] it's possible but not common to use react on observable. most html is built stringing HTML strings together by hand. maybe hdom could capture some attention there experiment

I couldn't get updates to work yet

observable's reactive bindings to vars and umbrella's various data display / viz abilities seem like a great fit. only caveat, I couldn't figure out how to get observable to update when not the entire value of the var is reset but only, say, a key on an object.

I'd love to see a small HTML app using hiccup with resolve-map or hdom / rstream is necessary.

Thanks @den1k for this initial example. Until tonight, I'd not yet used Observable myself, but your example really helped me to get started and I've created a little notebook based on your attempt.
I still have yet to figure how to actually do DOM diffing in their setup, but this might not be possible until we know how to get a handle on the actual DOM element. At the moment, I can only recreate the DOM completely using hdom.createDOM(), but it'd be nice to figure out how to get a cell's DOM element directly. Once we know, we should then be able to just use the transducers-hdom package to plug in the reactive/on-demand UI diffing.

I cracked it: The trick was to define a cell which just pre-creates a blank DOM element and then use this cell's value for the updateUI() transducer. I've created another fork of that notebook and added more comments there...

Just added a more minimal scaffolding notebook: https://beta.observablehq.com/@postspectacular/thi-ng-umbrella-scaffold

Here’s another approach to diffing using this (the previous value returned by a cell):
{
  const tree = hdom.normalizeTree(root);
  const element = this ? (hdom.diffElement(this.parentNode, this._tree, tree), this) : hdom.createDOM(null, tree);
  element._tree = tree;
  return element;
}

Or, as a reusable function:
function hdomify(element, root) {
  const tree = hdom.normalizeTree(root);
  if (element) hdom.diffElement(element.parentNode, element._tree, tree);
  else element = hdom.createDOM(null, tree);
  element._tree = tree;
  return element;
}

And then to use:
hdomify(this, root)

Nice one & thank, @mbostock! - this was too trivial for me to consider :) Will update the notebook later today...

Yeah, I don't know how to get this work either, but am sure it's possible. Need to study @jashkenas' input widgets. Anyhow, forked your latest and made some interim updates:
https://beta.observablehq.com/d/4589669c6171caa8

Okay, one hack later and I've got a version which kinda works (incl. undo/redo history of user interactions). Didn't fork, just updated the same notebook:
https://beta.observablehq.com/@postspectacular/thi-ng-umbrella-scaffold-w-hdom-context

nice hack @postspectacular


Added links to readme.md and fixed other stuff.

@ruth-mapr were you going to respond to @DarinJ comments?

I really didn't work on this docker/readme.md file and I'm not familiar with docker. But I can make the changes.

oops

Made the 3 changes: 1. yml file link correction, 2. Grammar re: connecting to Zookeeper, 3. Sentence about placing the file in $HADOOP_HOME/etc/hadoop/.

This PR is old but looks good. I have reviewed it and it is necessary to correct:

README.md, [Sample: yarn-site.xml] (sample-yarn-site.md) by [Sample: yarn-site.xml] (docs / sample-yarn-site.md)
docs / vagrant.md, there are two characters that can be removed from the Mesos Master example.

It would be necessary to resolve the conflicts also before merging it. I do not have access, I would have to fix it from my repo and make a new PR by keeping a comment to the original author.
It would be correct??

May you create an new PR with the changes? We can close this PR and add you and @ruth-mapr as co-authors.

@jpgilaberte Anyway let @ruth-mapr update the PR whether she have time. Let's wait for a few days to let her do it.


[spec] Fix missing legacy.html

Also fix missing/wrong Previous/Next items.
Fix empty paragraphs.

Thanks! There still seems to be a stray ) (see doc tester).


connectors: slack bot use file API for attachments

Description
Move to using the file API when creating an attachment to upload the slack thread content when interacting with the slack bot.
Code tested locally
Risk
Breaking the slack bot.
Deploy Plan

deploy front
deploy connectors

(still working on it)

Now fully tested e2e in dev


missing symbol

vim: 8.1
using hacker nerd font but missing hamburger symbol and maybe one more to the right of the arrow

well, I guess your terminal or your font does not have a symbol for that particular glyph. You may need to set this tom something else

I've tried a few other fonts ( CaskaydiaCove, Monoid, and inconsolata) all nerd fonts
am I missing something else here?

Weirdly enough if i use simsun-ExtB that is the only symbol that shows up so i dont think its the terminal not supporting it.

That looks more like the symbol missing in the font


Git

If there are issues with the module, start with checking out the common issues section in the docs.
And, if you do submit an issue ticket do not forget to include logs.

Please


TS does not support resolving paths with colons

🔎 Search Terms
https://github.com/microsoft/TypeScript/issues?q=is%3Aissue+colon+exports+is%3Aclosed
colon, exports
🕗 Version & Regression Information

This is the behavior in every version I tried

⏯ Playground Link
https://stackblitz.com/edit/stackblitz-starters-d2rfdx?description=Starter project for Node.js, a JavaScript runtime built on Chrome's V8 JavaScript engine&file=package.json&title=node.new Starter
💻 Code
Consumer module:
import a from 'my-library';
import b from 'my-library/foo';
import c from 'my-library/foo:virtual';
import d from 'my-library/bar';
import e from 'my-library/colon:here';

console.log({ a, b, c, d, e });

package.json for my-library:
{
  "name": "my-library",
  "version": "0.0.1",
  "type": "module",
  "exports": {
    ".": {
      "types": "./foo.d.ts",
      "default": "./foo.js"
    },
    "./foo": {
      "types": "./foo.d.ts",
      "import": "./foo.js"
    },
    "./foo:virtual": {
      "types": "./foo.d.ts",
      "default": "./foo.js"
    },
    "./*": {
      "types": "./*.d.ts",
      "default": "./*.js"
    }
  },
  "scripts": {
    "lint": "attw --pack; pnpm publint"
  },
  "dependencies": {
    "@arethetypeswrong/cli": "^0.14.1",
    "publint": "^0.2.7"
  }
}

every imported module is supposed to resolve, and then print:
{ a: 2, b: 2, c: 2, d: 2, e: 'two' }

(pnpm start in the consumer package in the repro link shows this)
🙁 Actual behavior
Errors, cannot find module

🙂 Expected behavior
align with JS, resolve the module
Additional information about the issue
No response

FWIW colons are not legal in filenames on Windows, so I don't think you actually want to publish a package using this pattern.
(There may be a way to do this solely using mappings such that the colons never appear on disk and maybe that's okay, but your example appears to have dts files with colons.)

Seems using colons is common in Vite tooling: https://github.com/patak-dev/vite-plugin-virtual

Hm gotcha. In my real code, i just have a virtual file provided by build plugin, and i was trying to come up with declarations for it. Filesystem not even relevant.

Sure thing; I was mainly commenting on your stackblitz assuming it was accurate.

Node built ins have colons

Yes, though those are schemes, and all Node built-ins are ambiently declared via declare module "node:fs", not on disk as individual declaration files.

Sure thing; I was mainly commenting on your stackblitz assuming it was accurate.

thanks, I should have been more clear with what I was trying to show / prove with each of those files.

Yes, though those are schemes, and all Node built-ins are ambiently declared via declare module "node:fs", not on disk as individual declaration files.

I did try this, but I couldn't get it to work
here is my real situation:

gonna try the same thing in the stackblitz

To be clear, I think there may still be a bug here in that export/import maps should probably still resolve even with the colon present (it did work at runtime in your stackblitz, after all). Just that the filenames on disk themselves can't have colons.

ah ok, I'll re-open then

I think there may be a fast-fail for things that look like a URL, and it’s probably not accounting for the case where there is a slash before the colon.


RenderBody became blocking (it never returns) after PR #232

In one of my applications, I've been using vecty's API roughly as follows:
vecty.RenderBody(body)
for {
    // sleep or wait for event ...
    vecty.Rerender(body)
}

It's possible I'm not using vecty API correctly, but that's what I came up with based on reading the documentation and experimenting (a while ago). It worked without noticeable issues until PR #232.
According to https://github.com/gopherjs/vecty/blob/master/doc/CHANGELOG.md#june-30-2019-pr-232-major-breaking-change, there have not been changes to vecty.RenderBody behavior.
The documentation of vecty.RenderBody says:

RenderBody renders the given component as the document body. The given Component's Render method must return a "body" element.

I don't see anything that suggests that vecty.RenderBody would block execution and never return.
However, as of PR #232, that's what it does:
https://github.com/gopherjs/vecty/blob/2b6fc20f8913c7dadc6a67786be15c8c92bbd16a/dom.go#L1194-L1195
Which means my application never proceeds past the vecty.RenderBody(body) call.
Am I doing something wrong, or is this a bug/regression?

Maybe, due to support for WASM.
If returned function of "main", WASM instances will all dispose.

I understand it's likely related to WebAssembly, but it doesn't tell me if this was intentional or not. The user program can arrange for the main function not to return, vecty doesn't necessarily have to take on that responsibility.
If it's meant to be intentional, I believe it should be documented. The user shouldn't have to look into the source code to know a function will never return.
Further, how is a vecty app that needs to re-render the main body after the initial render expected to do so? I looked at the examples and the most informative one seems to be todomvc:
https://github.com/gopherjs/vecty/blob/2b6fc20f8913c7dadc6a67786be15c8c92bbd16a/example/todomvc/example.go#L22-L26
It sets up some listeners in advance of calling vecty.RenderBody. Is that the only supported approach, or are other approaches okay too?
/cc @slimsag

Apologies for the delayed response here!
Yes, this change was intentional -- but I clearly should've thought out the consequences more than I did.
Why did we change anything?
When investigating WebAssembly support, it became clear we needed to do something here because of the fact that WebAssembly and GopherJS differ in how they handle goroutines that are executing after the main goroutine returns.
In GopherJS, background goroutines (such as ones that would run on a click event, for example) continue execution even after main returns. That is, in GopherJS once RenderBody returns other goroutines in the application still continue to execute.
By contrast, in WebAssembly with the Go compiler, once main returns all other goroutine execution is halted. This gave us two choices (which you noted above):

Make the user application responsible for keeping other goroutines alive. In practice, this would be the following change to hellovecty and other applications:

...

func main() {
	vecty.SetTitle("Hello Vecty!")
	vecty.RenderBody(&PageView{})
	select{} // keep Go alive (you can just ignore this for now, but it is needed)
}

...

Handle it as part of vecty.RenderBody which is the "entrypoint" of sorts to any application using Vecty. This was the option I went with.

Forethought / decision making
The main reason for going with #2 above instead of #1 was that #1 introduces an additional complexity that beginners would need to understand and reason about. In my experience, when learning something, seeing somewhat magical lines of code that are dire to an application working is not super friendly.
Initially, I had just planned to use select{} when compiling under WebAssembly only in order to preserve complete compatibility for GopherJS applications. After thinking about this further, I came to the conclusion that it would be weird if the behavior changed under the compilation target and I would like to hide that complexity from users instead.
This is, clearly, when I dropped the ball a bit. Thinking of existing Vecty applications, I couldn't think of any case where someone would not be calling vecty.RenderBody last because (in my mind) I thought anyone doing so would be relying on some very weird behavior which also wouldn't be compatible in the WebAssembly world. This was wrong.
I also incorrectly thought that this part of the description would communicate no guarantee about how quickly rendering occurs:

RenderBody renders the given component as the document body. [...]

Should async usages be supported?

[...] It sets up some listeners in advance of calling vecty.RenderBody. Is that the only supported approach, or are other approaches okay too?

This is a good, but also difficult, question.
One possibility I had considered was that if there was a compelling reason to keep this functionality (users owning the 'main loop'), we could retain it via a new method like RenderBodyAsync or something similar.
The main reason I thought of when thinking about why we would support this was to allow for Go WebAssembly applications which already do some work on their own and own a main goroutine (e.g. a WebGL video game written in Go) to make use of Vecty. I remain convinced this is a compelling reason to add this.
What I hadn't considered was that this could also be useful in applications such as yours where there is an existing scheduler and Vecty is being integrated more ad-hoc. In other words, I don't think of this as the canonical / most correct way to write a Vecty app but at the same time I don't have enough knowledge of the G-P-S codebase in order to say for certain which changes I would make. I'll try to find some time to investigate from this angle.
Next steps

I completely agree this should be documented, both in the function docstring and in the breaking changes section of the changelog in light of this.
I will add RenderBodyAsync (or perhaps just RenderInto i.e. https://github.com/gopherjs/vecty/issues/81 which would be async) which would support this scenario.

I'll do my best to land both of the above this weekend
Apologies for the trouble this caused and for my not considering this case! I want Vecty to be the go-to web frontend for Go, and clearly need to do better here in order to get there! I consider G-P-S to be a shining star of sorts as far as Vecty real-world use cases go, so I also want to support you better there :)

Thank you very much for such a thoughtful and detailed answer @slimsag!
I don't mind making changes in my codebase to update to a new/different API, but I couldn't do that without first understanding whether this was an intentional change or not. Your reply has helped clarify that.
I want to confirm my understanding of another question. If I were to consider using the current API like this:
go func() {
	for {
		// sleep or wait for event ...
		vecty.Rerender(body)
	}
}()
vecty.RenderBody(body)

But my current understanding is that it's not safe to do that, because there's a race condition. If the event arrives too quickly, vecty.Rerender(body) can be called before vecty.RenderBody(body) has completed running. Is that right?

I'm not near a computer at the moment, so I cant reply in full, but thats
correct and Rerender would panic in particular because we cannot rerender
components that haven't been rendered once before
On Fri, Aug 16, 2019, 6:59 PM Dmitri Shuralyov<EMAIL_ADDRESS>wrote:

Thank you very much for such a thoughtful and detailed answer @slimsag
https://github.com/slimsag!
I don't mind making changes in my codebase to update to a new/different
API, but I couldn't do that without first understanding whether this was an
intentional change or not. Your reply has helped clarify that.
I want to confirm my understanding of another question. If I were to
consider using the current API like this:
go func() {
for {
// sleep or wait for event ...
vecty.Rerender(body)
}
}()
vecty.RenderBody(body)
But my current understanding is that it's not safe to do that, because
there's a race condition. If the event arrives too quickly,
vecty.Rerender(body) can be called before vecty.RenderBody(body) has
completed running. Is that right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gopherjs/vecty/issues/247?email_source=notifications&email_token=AAYGWODXUUO3C4CRNX2WAF3QE5LRXA5CNFSM4IKYQ3LKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4QBBJI#issuecomment-522195109,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAYGWOHTQ6KP2UIVJ2OE5ITQE5LRXANCNFSM4IKYQ3LA
.

Friendly ping on this issue to indicate I'm still interested in this (with full understanding this is open source, so there are no expectations of work).
This is blocking me from making updates to Go Package Store, so I may end up making a temporary fork to work around this. (It's not a problem if I have to do that; thanks for all your work so far that I could benefit from.)

Thanks for the ping and apologies for the massive delay! I've just merged the fix now: #249
To fix G-P-S, you can simply replace all current blocking calls of vecty.RenderBody(comp) with the non-blocking form:
if err := vecty.RenderInto("body", comp); err != nil {
    panic(err)
}

Documentation is of course available on godoc:

https://godoc.org/github.com/gopherjs/vecty#RenderInto
https://godoc.org/github.com/gopherjs/vecty#RenderIntoNode

If this works, or doesn't and gives you trouble, please let me know! :)

Thank you very much Stephen!


Update if_gen

This PR adds ROM and RAM interfaces to if_gen
Respective get_mem_[read/write/]_ports() functions are updated.
To review I suggest comparing the output of the get_[ram/rom]_... functions to the existing interfaces in the lib/hardware/memories. (The directions will be reversed)
This PR  should help with the implementation of automatic memory instantiation.

is there an example to run and see the memory interfaces brought to the top?

is there an example to run and see the memory interfaces brought to the top?

Not on this PR, I wanted to separate the changes since this can be used for other purposes


Some useful functions

Hello Danilo,
in my AndroWish project I've added some image manipulation functions (crop, mirror, rotate, put) to the package, as well as handling of dict arguments to various functions. See the source tree in AndroWish. Please take over all things you find useful.
All the best,
Christian

Hello Danilo,
I forgot an error message in the new put command, see this change.
All the best,
Christian


HandCoach HandFlip_L anim is not wokring

Describe the bug
HandCoach HandFlip_L anim is not wokring.
HandFlip_R is work as expected.
To reproduce
Steps to reproduce the behavior:
it's happend even in MRTK demo scene

Unity Version [e.g. 2020.3.33f1]
MRTK Version [e.g. v2.7.3]

We appreciate your feedback and thank you for reporting this issue.
Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.
Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.
Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.
Thank you for your continued support of the Mixed Reality Toolkit!


Hot reloading fails with no recovery after any source file deletion even if the file is not needed anymore

How to reproduce:

create a component and import it into page. See the server is up and running and the page with the component works just fine.
delete the component. See there's an error, which is okay.
delete component import from the page. See the error didn't go away, while it sorta should.

This seems to be resolved now. Closing. Reopen if still happens.


0.2.0-alpha35: DefaultWebSocketClient closes every hour

On the close event handler of the DefaultWebSocketClient object I log the event and then attempt to reopen the socket. I am creating an instance of DefaultWebSocketClient which is then used on the BinanceWebSocketStream which is then used to initialise the BinanceWebSocketStreamController and so on as listed on the following code:
        'initialise Stream  & loggers
        Dim UserSocketStreamClientLogger As New Logger(Of DefaultWebSocketClient)(UserSocketLoggerFactory)
        Dim UserWebSocketStreamLogger As New Logger(Of BinanceWebSocketStream)(UserSocketLoggerFactory)

        Me.m_BinanceUserSocketClient = New DefaultWebSocketClient(UserSocketStreamClientLogger)
        Me.m_BinanceUserSocketStream = New BinanceWebSocketStream(m_BinanceUserSocketClient, UserWebSocketStreamLogger)

        Me.m_BinanceUserClient = New UserDataClient(BinanceUserClientLogger)
        Me.m_BinanceUserStreamController = New BinanceWebSocketStreamController(Me.m_BinanceApi, m_BinanceUserSocketStream, AddressOf BinanceUserStreamControllerExceptionHandler)
        Me.m_BinanceUseStreamControl = New UserDataWebSocketStreamControl(Me.m_BinanceApi, BinanceUseStreamControlLogger)
        Me.m_BinanceUserSocketManager = New UserDataWebSocketClientManager(m_BinanceUserClient, m_BinanceUserStreamController, m_BinanceUseStreamControl, BinanceUserSocketManagerLogger)

        AddHandler Me.m_BinanceUserSocketClient.Close, AddressOf Me.m_BinanceUserSocket_Close
        AddHandler Me.m_BinanceUserSocketClient.Open, AddressOf Me.m_BinanceUserSocketStreamClient_Open

I end up being able to capture the Open and Close events of the DefaultWebSocketClient as seen on the AddHandler lines.
With alpha35 I seem to be getting very regular disconnections. I was on alpha30 and I usually got about 1 or 2 disconnects per 24 hours. As you can see from my log the disconnection occurs precisely every hour to the second:
2018-02-25 16:30:34,999 INFO 1 ActivityLog - USER Socket Closed..
2018-02-25 16:30:34,999 INFO 1 ActivityLog - Attempting to reconnect..
2018-02-25 17:30:35,562 INFO 1 ActivityLog - USER Socket Closed..
2018-02-25 17:30:35,562 INFO 1 ActivityLog - Attempting to reconnect..
2018-02-25 18:30:36,896 INFO 1 ActivityLog - USER Socket Closed..
2018-02-25 18:30:36,896 INFO 1 ActivityLog - Attempting to reconnect..
2018-02-25 19:30:38,065 INFO 1 ActivityLog - USER Socket Closed..
2018-02-25 19:30:38,065 INFO 1 ActivityLog - Attempting to reconnect..
2018-02-25 20:30:39,344 INFO 1 ActivityLog - USER Socket Closed..
2018-02-25 20:30:39,345 INFO 1 ActivityLog - Attempting to reconnect..

here is the debug log from the user socket:

[dbug] 25/02/2018 6:30:36 PM +11:00
       UserDataClient.Unsubscribe: "8sofVugIvZoLgml0tZvoQYMo7uwpeQJts75AiP04l9dNwhQZdxeFza4xBEhA" (callback: no).  [thread: 63]
[dbug] 25/02/2018 6:30:36 PM +11:00
       JsonClient.UnsubscribeStream: Removing stream ("8sofVugIvZoLgml0tZvoQYMo7uwpeQJts75AiP04l9dNwhQZdxeFza4xBEhA").  [thread: 63]
[dbug] 25/02/2018 6:30:36 PM +11:00
       JsonClient.UnsubscribeStream: Removing stream ("8sofVugIvZoLgml0tZvoQYMo7uwpeQJts75AiP04l9dNwhQZdxeFza4xBEhA").  [thread: 63]
[dbug] 25/02/2018 6:30:36 PM +11:00
       JsonClient.UnsubscribeStream: Removing stream ("8sofVugIvZoLgml0tZvoQYMo7uwpeQJts75AiP04l9dNwhQZdxeFza4xBEhA").  [thread: 63]
[dbug] 25/02/2018 6:30:36 PM +11:00
       JsonClient.UnsubscribeStream: Removing stream ("8sofVugIvZoLgml0tZvoQYMo7uwpeQJts75AiP04l9dNwhQZdxeFza4xBEhA").  [thread: 63]
[dbug] 25/02/2018 6:30:36 PM +11:00
       BinanceWebSocketStream.Unsubscribe: "8sofVugIvZoLgml0tZvoQYMo7uwpeQJts75AiP04l9dNwhQZdxeFza4xBEhA"  [thread: 63]
[dbug] 25/02/2018 6:30:36 PM +11:00
       BinanceWebSocketStream.Unsubscribe: Removing callback for stream: "8sofVugIvZoLgml0tZvoQYMo7uwpeQJts75AiP04l9dNwhQZdxeFza4xBEhA"  [thread: 63]
[dbug] 25/02/2018 6:30:36 PM +11:00
       BinanceWebSocketStream.StreamAsync: Task complete.  [thread: 11]
[dbug] 25/02/2018 6:30:36 PM +11:00
       BinanceWebSocketStream.RemoveStream: Removing stream: "8sofVugIvZoLgml0tZvoQYMo7uwpeQJts75AiP04l9dNwhQZdxeFza4xBEhA"  [thread: 63]
[dbug] 25/02/2018 6:30:36 PM +11:00
       UserDataWebSocketClientManager.HandleUnsubscribe: Cancel streaming...  [thread: 63]
[dbug] 25/02/2018 6:30:37 PM +11:00
       UserDataClient.Subscribe: "lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL" (callback: no).  [thread: 53]
[dbug] 25/02/2018 6:30:37 PM +11:00
       JsonClient.SubscribeStream: Adding stream ("lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL").  [thread: 53]
[dbug] 25/02/2018 6:30:37 PM +11:00
       BinanceWebSocketStream.Subscribe: "lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL"  [thread: 53]
[dbug] 25/02/2018 6:30:37 PM +11:00
       BinanceWebSocketStream.Subscribe: Adding stream: "lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL"  [thread: 53]
[dbug] 25/02/2018 6:30:37 PM +11:00
       BinanceWebSocketStream.Subscribe: Adding observer of stream: "lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL"  [thread: 53]
[dbug] 25/02/2018 6:30:37 PM +11:00
       UserDataWebSocketClientManager.HandleSubscribe: Begin streaming...  [thread: 53]
[info] 25/02/2018 6:30:38 PM +11:00
       BinanceWebSocketStream.StreamAsync: "wss://stream.binance.com:9443/ws/lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL"
[dbug] 25/02/2018 6:32:05 PM +11:00
       UserDataWebSocketStreamControl.HandleTimer: Keep-alive user stream ("lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL").  [thread: 43]
[dbug] 25/02/2018 7:02:05 PM +11:00
       UserDataWebSocketStreamControl.HandleTimer: Keep-alive user stream ("lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL").  [thread: 12]
[dbug] 25/02/2018 7:30:38 PM +11:00
       DefaultWebSocketClient.StreamAsync: Task complete.  [thread: 21]
[dbug] 25/02/2018 7:30:38 PM +11:00
       UserDataClient.Unsubscribe: "lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL" (callback: no).  [thread: 62]
[dbug] 25/02/2018 7:30:38 PM +11:00
       JsonClient.UnsubscribeStream: Removing stream ("lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL").  [thread: 62]
[dbug] 25/02/2018 7:30:38 PM +11:00
       JsonClient.UnsubscribeStream: Removing stream ("lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL").  [thread: 62]
[dbug] 25/02/2018 7:30:38 PM +11:00
       JsonClient.UnsubscribeStream: Removing stream ("lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL").  [thread: 62]
[dbug] 25/02/2018 7:30:38 PM +11:00
       JsonClient.UnsubscribeStream: Removing stream ("lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL").  [thread: 62]
[dbug] 25/02/2018 7:30:38 PM +11:00
       BinanceWebSocketStream.Unsubscribe: "lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL"  [thread: 62]
[dbug] 25/02/2018 7:30:38 PM +11:00
       BinanceWebSocketStream.StreamAsync: Task complete.  [thread: 21]
[dbug] 25/02/2018 7:30:38 PM +11:00
       BinanceWebSocketStream.Unsubscribe: Removing callback for stream: "lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL"  [thread: 62]
[dbug] 25/02/2018 7:30:38 PM +11:00
       BinanceWebSocketStream.RemoveStream: Removing stream: "lOrF3734UqePv1q5mrjYCCWSPvIgnEUAVjMKoPt35NrsHlVgbDow08ggcgLL"  [thread: 62]
[dbug] 25/02/2018 7:30:38 PM +11:00
       UserDataWebSocketClientManager.HandleUnsubscribe: Cancel streaming...  [thread: 62]
[dbug] 25/02/2018 7:30:39 PM +11:00
       UserDataClient.Subscribe: "dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw" (callback: no).  [thread: 8]
[dbug] 25/02/2018 7:30:39 PM +11:00
       JsonClient.SubscribeStream: Adding stream ("dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw").  [thread: 8]
[dbug] 25/02/2018 7:30:39 PM +11:00
       BinanceWebSocketStream.Subscribe: "dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw"  [thread: 8]
[dbug] 25/02/2018 7:30:39 PM +11:00
       BinanceWebSocketStream.Subscribe: Adding stream: "dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw"  [thread: 8]
[dbug] 25/02/2018 7:30:39 PM +11:00
       BinanceWebSocketStream.Subscribe: Adding observer of stream: "dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw"  [thread: 8]
[dbug] 25/02/2018 7:30:39 PM +11:00
       UserDataWebSocketClientManager.HandleSubscribe: Begin streaming...  [thread: 8]
[info] 25/02/2018 7:30:39 PM +11:00
       BinanceWebSocketStream.StreamAsync: "wss://stream.binance.com:9443/ws/dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw"
[dbug] 25/02/2018 7:32:05 PM +11:00
       UserDataWebSocketStreamControl.HandleTimer: Keep-alive user stream ("dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw").  [thread: 74]
[dbug] 25/02/2018 8:02:05 PM +11:00
       UserDataWebSocketStreamControl.HandleTimer: Keep-alive user stream ("dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw").  [thread: 76]
[dbug] 25/02/2018 8:30:39 PM +11:00
       DefaultWebSocketClient.StreamAsync: Task complete.  [thread: 82]
[dbug] 25/02/2018 8:30:39 PM +11:00
       UserDataClient.Unsubscribe: "dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw" (callback: no).  [thread: 58]
[dbug] 25/02/2018 8:30:39 PM +11:00
       JsonClient.UnsubscribeStream: Removing stream ("dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw").  [thread: 58]
[dbug] 25/02/2018 8:30:39 PM +11:00
       JsonClient.UnsubscribeStream: Removing stream ("dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw").  [thread: 58]
[dbug] 25/02/2018 8:30:39 PM +11:00
       JsonClient.UnsubscribeStream: Removing stream ("dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw").  [thread: 58]
[dbug] 25/02/2018 8:30:39 PM +11:00
       JsonClient.UnsubscribeStream: Removing stream ("dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw").  [thread: 58]
[dbug] 25/02/2018 8:30:39 PM +11:00
       BinanceWebSocketStream.Unsubscribe: "dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw"  [thread: 58]
[dbug] 25/02/2018 8:30:39 PM +11:00
       BinanceWebSocketStream.Unsubscribe: Removing callback for stream: "dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw"  [thread: 58]
[dbug] 25/02/2018 8:30:39 PM +11:00
       BinanceWebSocketStream.StreamAsync: Task complete.  [thread: 82]
[dbug] 25/02/2018 8:30:39 PM +11:00
       BinanceWebSocketStream.RemoveStream: Removing stream: "dQJovrOue8Cj3KCHZk0LvT5IA6Ee5DK0k3WfUWzxHRDHuOFJJrCGXQAy2rvw"  [thread: 58]
[dbug] 25/02/2018 8:30:39 PM +11:00
       UserDataWebSocketClientManager.HandleUnsubscribe: Cancel streaming...  [thread: 58]
[dbug] 25/02/2018 8:30:40 PM +11:00
       UserDataClient.Subscribe: "kQADgqDG4fVyQnRyPafEnjplAEJAr2bF7ziJCAQxZiRDl9U11ZlGq0qhWc4U" (callback: no).  [thread: 21]
[dbug] 25/02/2018 8:30:40 PM +11:00
       JsonClient.SubscribeStream: Adding stream ("kQADgqDG4fVyQnRyPafEnjplAEJAr2bF7ziJCAQxZiRDl9U11ZlGq0qhWc4U").  [thread: 21]
[dbug] 25/02/2018 8:30:40 PM +11:00
       BinanceWebSocketStream.Subscribe: "kQADgqDG4fVyQnRyPafEnjplAEJAr2bF7ziJCAQxZiRDl9U11ZlGq0qhWc4U"  [thread: 21]
[dbug] 25/02/2018 8:30:40 PM +11:00
       BinanceWebSocketStream.Subscribe: Adding stream: "kQADgqDG4fVyQnRyPafEnjplAEJAr2bF7ziJCAQxZiRDl9U11ZlGq0qhWc4U"  [thread: 21]
[dbug] 25/02/2018 8:30:40 PM +11:00
       BinanceWebSocketStream.Subscribe: Adding observer of stream: "kQADgqDG4fVyQnRyPafEnjplAEJAr2bF7ziJCAQxZiRDl9U11ZlGq0qhWc4U"  [thread: 21]
[dbug] 25/02/2018 8:30:40 PM +11:00
       UserDataWebSocketClientManager.HandleSubscribe: Begin streaming...  [thread: 21]
[info] 25/02/2018 8:30:40 PM +11:00
       BinanceWebSocketStream.StreamAsync: "wss://stream.binance.com:9443/ws/kQADgqDG4fVyQnRyPafEnjplAEJAr2bF7ziJCAQxZiRDl9U11ZlGq0qhWc4U"
[dbug] 25/02/2018 8:32:05 PM +11:00
       UserDataWebSocketStreamControl.HandleTimer: Keep-alive user stream ("kQADgqDG4fVyQnRyPafEnjplAEJAr2bF7ziJCAQxZiRDl9U11ZlGq0qhWc4U").  [thread: 56]

I am also using an AggregateTradeSocket but the connection seems to be more stable.

@rakewell... "A watchdog timer is added to abort streaming if data has not been received for a configurable time interval (default 1 hour)."

thanks @sonvister , I changed it to a time span of 24 hours and the hourly disconnects have stopped.


Implement --oem-string N

       --oem-string N
          Only display the value of the OEM string number N. The first OEM
          string has number 1. With special value "count", return the
          number of OEM strings instead.

Investigate how it is implemented here: https://github.com/mirror/dmidecode/blob/master/dmidecode.c

@jrgerber, looking at the spec, this is OEM Strings (Type 11) struct. Wondering if the right approach would be to get this type and then handle whether is N or count?

@jrgerber, looking at the spec, this is OEM Strings (Type 11) struct. Wondering if the right approach would be to get this type and then handle whether is N or count?

That sounds correct.  I imagine this might be used at large companies, for example they have devices like HP or Dell and then they know what will be at OEM string 3 and they collect from all the devices?


Simplified

Coverage decreased (-2.9%) to 95.051% when pulling ea10caad0acc1adafca417745ad651c15375a844 on simplified into a658d74fc859dceb30964d519d89d20fb933943c on master.

The core of this gem has been simplified and moved into the praxis main repo


Feature request: mount directories containing archive files

Use case
I have a directory tree containing both a large number of bare files, and a large number of archives. I would like to mount a FUSE filesystem that gives a read-only view of this directory tree, but wherein all archives are instead exposed as directories, as if each had been separately mounted via fuse-archive.
For example, if I have the following tree:
dir/archive1.tar.gz  # contains contents1.txt and contents2.txt
dir/file1.txt
dir/inner/archive2.tar.gz  # contains contents3.txt and contents4.txt
dir/inner/file2.txt

and I mount it with fuse-archive dir mnt, I expect to see the following in the mount point:
mnt/archive1.tar.gz/contents1.txt
mnt/archive1.tar.gz/contents2.txt
mnt/file1.txt
mnt/inner/archive2.tar.gz/contents3.txt
mnt/inner/archive2.tar.gz/contents4.txt
mnt/inner/file2.txt

Performance and limitations
I imagine that when the contents of a directory are listed, each file in the backing directory will need at least some inspection to determine whether it is an unpackable archive, and this necessarily incurs some performance penalty (which I'm willing to accept). I expect the most effective solution to this problem is for users to avoid large, flat directories.
Provided that users exercise reasonable restraint in making parallel accesses, it should be possible to mount and use a directory tree containing, say, a million archives. For example, it should be possible to run find on the mount point, with performance at least equal to (and ideally much better than) finding all files, checking which ones are archives, sequentially mounting each archive individually, and running find on the resulting mount points.
Access to each of the archives should be lazy, and the initial mounting process should not require recursively scanning the entire directory tree. In particular, even if the directory tree contains a million archives, there should be no appreciable difference in performance between:

mounting a single archive deep in the directory tree, and then accessing a single file within it, or
mounting the top of a large directory tree, and then accessing a single file within a single archive deep in that tree

Recursive unpacking is not required for my use case; however, I can imagine other users may want this option.
Considered alternatives
For a small number of archives, it might be possible to use overlayfs, unionfs, or similar with a startup script that simply enumerates archives in the backing directory and mounts them individually. However, as the number of archives increases, this solution would probably also incur linear growth in startup time, in number of processes, in number of mounts, and in memory usage.
It might also be possible for this script to use autofs mounts for each archive, allowing the fuse-archive processes to be created lazily. Unfortunately, this probably doesn't solve the issue with startup time nor number of mounts, and I expect that it would be quite difficult to get auto-unmounting right.
Prior art

ratarmount supports this use case, though I believe only for a subset of the archive types that fuse-archive supports.
rar2fs supports this use case for rar files specifically.
#5 touches on this use case, but IMHO the discussion there seemed a bit more focused on some gzip-specific questions that aren't really on-topic for this feature request (though some may come up when considering edge cases).

@wlritchi I didn't see it in your considered alternatives, but ratarmount supports such --lazy --recursive mounting options. It is written (by me) in Python though, I'm not sure whether that matches your intended use case.

@wlritchi I didn't see it in your considered alternatives, but ratarmount supports such --lazy --recursive mounting options. It is written (by me) in Python though, I'm not sure whether that matches your intended use case. Try ratarmount --recursive --lazy dir mnt; ls -la mnt.

Nice! That looks like it'll work for me. Added it to the Prior Art section.
I'll leave this feature request open in case there's still interest in fuse-archive supporting the same.

I believe only for a subset of the archive types that fuse-archive supports.

That is true for now. There is an open pull request for libarchive support. I hope to get that polished and merged soon. Then, it should support the same amount of compression types as fuse-archive with hopefully similar performance. The real performance benefits over other solutions will then be the seekable parallel bzip2 backend and the hopefully the very soon-to-be-integrated seekable parallelized gzip decoder, pragzip.

Thanks for the request.
We aren't planning to implement this feature in fuse-archive for the time being.


Create desired features list

A list of all the desired features must be made, and from there, it should be divided into a list of features that need to be in the initial release and features that can be added later.
After that, they should be prioritised

Not needed at the moment


Build failure in osx 1.20

The build problem occurs starting with build #1025:
dyld: Library not loaded: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/librustc_driver-62abc69f.dylib

  Referenced from: /Users/travis/rust/bin/rustc

  Reason: image not found

I looked at the build logs. The only thing the logs reveal is a changed pip version (messages are slightly different), though that probably has nothing to do with this error.

Does this have something to do with alexcrichton/gcc-rs#111?

This stopped working between builds 1024 and 1025:
https://travis-ci.org/nix-rust/nix/jobs/164470714 (2016-10-02T18:43:19Z)
https://travis-ci.org/nix-rust/nix/jobs/165123419 (2016-10-05T02:22:39Z)
The logs differ in no significant way till the error occurs.

#444 makes it unnecessary to look at this.


#150 Search text color

Before
After

@max-programming Please Check

@malik-vishu Instead of neutral, can you use one of the brighter colors from the tailwind config? Thanks!

@max-programming Please check

@max-programming Files are same why is it showing conflict?

@max-programming Files are same why is it showing conflict?


thermald: 2.2 -> 2.3

Motivation for this change
Supports DPTF, which works in conjunction with the patches in kernel 5.8.
Also cleanup the derivation.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

I ran:
$ nix-shell -p nixpkgs-fmt --run "nixpkgs-fmt pkgs/tools/system/thermald/default.nix"
these paths will be fetched (0.90 MiB download, 3.64 MiB unpacked):
  /nix/store/2yv66xci59v5pjl56zmhv5i1rrv1fizb-nixpkgs-fmt-1.0.0
  /nix/store/bgdqr36i8csfda3yfq5asbcnsdkwrklc-bash-interactive-4.4-p23-dev
copying path '/nix/store/bgdqr36i8csfda3yfq5asbcnsdkwrklc-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/2yv66xci59v5pjl56zmhv5i1rrv1fizb-nixpkgs-fmt-1.0.0' from 'https://cache.nixos.org'...
0 / 1 have been reformatted

I don't know why no reformatting was applied. Fixed up the sorting and all other issues manually.

I don't know why no reformatting was applied. Fixed up the sorting and all other issues manually.

Strange. Honestly, it's been a while since I've used nixpkgs-fmt, can't tell you what'd be causing that.

According to the changelog version 2.3 requires Linux 5.8 or later, so we shouldn't merge it yet IMHO as we use 5.4 as default. Alternatively we could expose this as thermald_2_3 in our package set.

According to the changelog version 2.3 requires Linux 5.8 or later, so we shouldn't merge it yet IMHO as we use 5.4 as default. Alternatively we could expose this as thermald_2_3 in our package set.

I think this is a mistake in the config file, thermald will work fine for older kernels, however the adaptive DPTF policy will not be supported:
$ uname -a
Linux dibooki 5.4.62 #1-NixOS SMP Thu Sep 3 09:27:11 UTC 2020 x86_64 GNU/Linux
$ systemctl status thermald
● thermald.service - Thermal Daemon Service
     Loaded: loaded (/nix/store/ax4g6pyj1psgp158xvj6qcvllcmdf4pq-unit-thermald.service/thermald.service; enabled; vend>
     Active: active (running) since Thu 2020-09-10 06:46:16 CEST; 26s ago
   Main PID: 1197 (thermald)
         IP: 0B in, 0B out
      Tasks: 2 (limit: 4915)
     Memory: 6.9M
        CPU: 46ms
     CGroup: /system.slice/thermald.service
             └─1197 /nix/store/6l8v8k8al8bdvwnw4wyfrikvriij0h7c-thermald-2.3/sbin/thermald --no-daemon --dbus-enable

Sep 10 06:46:16 dibooki systemd[1]: Started Thermal Daemon Service.
Sep 10 06:46:16 dibooki thermald[1197]: [1599713176][MSG]22 CPUID levels; family:model:stepping 0x6:4e:3 (6:78:3)
Sep 10 06:46:16 dibooki thermald[1197]: [1599713176][MSG]Polling mode is enabled: 4
Sep 10 06:46:16 dibooki thermald[1197]: [1599713176][MSG]sensor id 11 : No temp sysfs for reading raw temp
Sep 10 06:46:16 dibooki thermald[1197]: [1599713176][MSG]sensor id 11 : No temp sysfs for reading raw temp
Sep 10 06:46:16 dibooki thermald[1197]: [1599713176][MSG]sensor id 11 : No temp sysfs for reading raw temp
Sep 10 06:46:16 dibooki thermald[1197]: [1599713176][MSG]Using generated /var/run/thermald/thermal-conf.xml.auto
Sep 10 06:46:16 dibooki thermald[1197]: [1599713176][MSG]Using config file /var/run/thermald/thermal-conf.xml.auto

What's the reason to update the module in another PR?

Right, I've pushed the module change into this PR as well.

@Ma27 Is there something missing to push this forward?

Thanks for the reviews, I learned a lot and collected bookmarks for guides to adhere to for future PRs :+1:

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/235


individual voucher details

Hi @dhananjay1405
Could you please help me figure out how to export or extract complete details of the vouchers? For example, for a sales voucher, all item details are needed.
Best regards,
J

Refer this video series, where I have explained it in Excel. I you want to do via SQL, then you simply need to join tables.
01 - How data is arranged into tables
02 - Creating Sales Dashboard
03 - Stock Items based reports
These videos would give you a nice understanding


EnitityMapping overide to exclude columns not working as expected

I followed this guide: https://github.com/MoonStorm/FastCrud/wiki/Multiple-entity-mappings for excluding columns from my update. Since I have several cases where I want to omit the same columns I created an overloaded method in my data access layer like this:
public virtual bool Update(T entity, IDbTransaction transaction = null, string[] excludeColumns = null) {
            using (var conn = GetConnection()) {
                //note, I also have some multi-database requirements so I override for that first.
                //so in this case DefaultMapping is used to set the dialect for all default calls, like this
                // OrmConfiguration.GetDefaultEntityMapping<T>().Clone().SetDialect(dialect);
                var updateMapping = DefaultMapping.Clone();
                if (excludeColumns != null) {
                    updateMapping.UpdatePropertiesExcluding(prop => prop.IsExcludedFromUpdates = true, excludeColumns);
                }

                return conn.Update<T>(entity, statement => statement.WithTimeout(GetTimeout())
                    .AttachToTransaction(transaction)
                    .WithEntityMappingOverride(updateMapping));
            }
        }

I would expect from how the methods are named that UpdatePropertiesExcluding would leave all existing property mappings intact with the exception of whatever you pass in, but its the opposite behavior, it keeps the mappings that you pass into the UpdatePropertiesExcluding method and excludes everything else. I tried changing that line to this:
updateMapping.UpdatePropertiesExcluding(prop => prop.IsExcludedFromUpdates = false, excludeColumns);
but that resulted in no properties being omitted from the update
I was able to workaround it by using a different method:
updateMapping.UpdateProperties(prop => prop.IncludeInUpdates(!excludeColumns.Contains(prop.PropertyName)));
but you may want to consider renaming UpdatePropertiesExcluding

You're right. The name of that method is a bit confusing.
Ideally you'd have the list of columns to exclude from the update at the beginning of the list of arguments, so it would read something like "Update all the properties, excluding 'Prop1', 'Prop2', with the following settings", unfortunately the variable list of params can only be added  at the end of the method in C#.
Sorry about the confusion.


Prevent unused import warning for imports used only for union types

The goal is to make DartAnalyzer not complain about "unused import" for imports whose only purpose is to be used as a type annotation. Presently, if those type annotations are part of a union type, since union types get transpiled to dynamic, the import is never actually used.
Example:
import {Params} from './params';

export class MyService {
  constructor(params:Params | Object) {
    ...
  }
}

Would log something like this:
[INFO] Unused import
import "package:params" show Params;

There is a related TODO in core/annotations_impl/view.ts
  // TODO(tbosch): use Type | Binding | List<any> when Dart supports union types,
  // as otherwise we would need to import Binding type and Dart would warn
  // for an unused import.
  directives: List<Type | any | List<any>>;

This has been a bit annoying in multiple cases. Maybe we should just remove unused imports from the Dart code mechanically?
@kevmoo is there an unused import fixer that could do this?

@mprobst sadly, no. One would have to do full analysis to determine which imports weren't used.

Okay so our other option is to drop something into the dart code which references all the union'ed types, but does not affect the program in any other way. And it would have to work for all the places in the syntax where a type expression is allowed. Perhaps we could accumulate them throughout a file and then print something at the end of the file that harmlessly references all the union'ed types.
@yjbanov @kevmoo any ideas what dart expression could fit that bill?

@alexeagle there is likely no harmless way to do this. We could create a throw-away const list of all of the types or something. If it's not referenced, I don't think it'll affect dart2js output size.
...feels like a code smell, though.

Create an unused var with the type of each of those?

Create an unused var with the type of each of those?

won't the analyzer complain about the unused vars then ?

sigh, yes, probably will.

Really, a remove-unused-imports tool would be great for this, and probably
also very useful for actual Dart developers...

@Used(Params) is another option and analyzer shouldn't complain. That said, the proposed constructor is an anti-pattern in Dart. The idiomatic way is to use named constructors, e.g.:
class MyService {
  MyService(params: Params) {
    ...
  }

  MyService.fromMap(params: Map) {
    ...
  }
}

Specifically for your case though, it seems to be non-idiomatic in TypeScript as well. I think what you should do is make Params an interface, letting TypeScript structurally check both object literals and classes.

I think there is/was some work to do this as a quick-fix within the analyzer. It may be accessible via the linter - https://github.com/dart-lang/linter/issues/114


Two jobs with same destination will cause ambiguous dependency resolution

The current database model doesn't properly resolve if two jobs within a project choose a single destination and will cause ambiguity during dependency resolution. The destination should also support taking the type of destination and not just name to handle a variety of destinations like buckets/databases/tables/etc

Closing this as a duplicate


Fixing SLP.Utils.tokenUtxoDetails() for mint transactions

SLP UTXOs for mint transactions were not being interpreted correctly. This PR fixes the issue and adds a unit test case to ensure the fix stays in place.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


In Dashboard Configuration provide the ability to copy the Dashboard URL

If a dashboard is configured with Visibility "hidden" it will not be shown in any navigation and can only be accessed by accessing its URL. This URL can be constructed by adding the already displayed dashboard id to the following URL:
/apps/app-builder/index.html#/application//dashboard/
As a convenience method it would be great if the table of dashboards in Configuration contained a "Copy URL" button which copied the URL into the clipboard.

In Application Builder 2.0 onwards, you have option to copy dashboard Id into clipboard in dashboard configuration table.


MRTK3 TTS should support configuration options

Things such as:

read speed
voice selection
etc

@srinjoym  Are there missing features from MRTK2?

This was supported in the MixedReality.Toolkit.Audio package in MRTK 2: https://learn.microsoft.com/en-us/dotnet/api/microsoft.mixedreality.toolkit.audio.texttospeech?view=mixed-reality-toolkit-unity-2020-dotnet-2.8.0. We will need to port the functionality to MRTK3

Added support for custom voices with https://github.com/microsoft/MixedRealityToolkit-Unity/pull/11458


Dev to main sync

Date: 19-10-2024

Developer Name: Suvidh Kaushik

Issue Ticket Number

#874

PR going in this sync

#879

Screenshots

Screenshot

fix the format of the dev to main PR

Fixed it.please check and approve


Rewrite directive_normalizer.dart to use angular_ast

This is a large source of syntax related bugs, because instead of getting very nice errors from the AST package, we receive the older/uglier error messages of the type:
NoSuchMethodError: The setter 'endSourceSpan=' was called on null.
I've narrowed this down to here:
https://github.com/dart-lang/angular/blob/41624e89a4613317de67d000b8947bf500b18497/angular/lib/src/compiler/directive_normalizer.dart#L132
We'd need to rewrite this function/bit to use angular_ast instead.

From what I can tell, this basically extracts <style> tags.

I'm going to take a shot.

Blocked by https://github.com/dart-lang/angular/issues/1109.

We closed #1109 as WAI - will try to see the impact of this internally. Every other test in our repository is passing with this change 🙏


Fitbit data in Google Fit

Checklist

[X] I have filled out the template to the best of my ability.
[X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
[X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.
Not sure if you have any information on this, however I would appreciate any insights you might have.
I've converted a Fitbit account over to Google, using their method. However, I was expecting the Fitbit data to automagically appear in the Google Fit world.  But no. I've tried a bit of 'googling' however, other than using an Android app to connect the two (not an option as user is an iOS Fitbit user), I have found no information on how Fitbit data will appear in the Google world after converting the account.
Thanks for info and your work on this Home Assistant useful addon.
Describe the solution you'd like
.....
Describe alternatives you've considered
.....
Additional context
.....

Hi @deepcoder, sorry I don't have much experience with either iOS data conversion or Fitbit. I do know there's a good app called Health Sync (for Android) which can sync data across different health data providers, but I'm not sure that would be much use in your case.
There's a native Fitbit integration in Home Assistant if you just want your health data in HA though?


exatn-config executable

I'd like to create an executable called exatn-config that downstream users can leverage in standard Makefile builds. For downstream CMake users, we will have them just use exatn::exatn targets, but for Makefile users we need to be able to provide the include headers and link line that they can integrate in their makefiles. My inspiration for this is the llvm-config executable.
Users should be able to run commands like this
$ exatn-config --libs (to return the link line)
$ exatn-config --includes (to get the include paths)
$ exatn-config --ldflags (to get any linker flags)
$ exatn-config --cxxflags (to get all cxx flags)

I think we could do this pretty easily with a python script. We could reference necessary CMake variables in that script and use CMake configure_command() to write those concrete variables.

Great idea.

I'll try and take a look at this sometime this week.

We need to document in README how to use exatn-config and how user applications are supposed to include exatn headers and libraries.


What's the working principle of FESCAR isolation level "READ-COMMITTED"

I'd like to know how FESCAR implements "READ-COMMITTED". Here are some questions about this issue that I wonder most:
1.how to make the local committed data invisible while global tx is not committed?
2.If there are some other services using the same DB without management of FESCAR, will an operation of  local commit and global rollback lead DIRTY READ to other services?
3.What are the implementions of the core classes?

@rtj599

If all the modifications are left to the fescar management, then use select for update to RC
If not managed by fescar then unmanaged transactions will read uncommited
SelectForUpdateExecutor?

thanks


FIRMessaging receiving notification in invalid state 2

Hi! I'm Ignacio
I don't know if i Have to care about this message:
FIRMessaging receiving notification in invalid state 2
That is send by <FIRMessaging/WARNING> in the Xcode debbuger

See this Stack overflow question and #21.

Yeah, I think we need to do #37 more clearly in samples, that should resolve it.


Can't suggest themes

When I try, I get a "Please wait..." message, which stays there for at least 5 minutes. When I refresh, I still have 3 suggestions left. Recent Firefox/Chromium, Linux, and from Japan, in case that matters.

Ah shoot. I might have messed this up last night before bed. Investigating...

Okay, this should be fixed now. Sorry about that. Late night. My bad.

Yup, can confirm! :) Thanks, and take care!