[Feature request]: show pre-break warning

Version

[X] I'm using version 1.12.0

Existing requests

[X] I've checked Existing requests

What operating system are you using?
Windows
Operating System Version
Windows 11
Problem description
When using stretchly, I notice that I'm getting professional and fast in breaks postponing and skipping.
Prior to Stretchly I've been using Workrave. By analysing my behavior I noticed, that user not always able to synchronize his breaks with stretchly scheduler.  Sometime (often) stretchly pops up when I'm typing, or when I'm in the middle of something very important. In this case I'm postponing breaks.
Workrave has ability to warn user that break is coming, so he can finish his work slack or pospone slack in favor of health.
Possible solution
Add the functionality of non-intrusive warning that break is coming. Either with non-disturbing auto-closing popup or with tray countdown timer (like Workrave do).
Alternative solutions
Have no ideas :(
Additional information
No response
Code of Conduct

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

Hi, there is a system notification 10 seconds before Mini and 30 seconds before Long break. You can configure that : https://github.com/hovancik/stretchly#editing-break-notification-interval-
You can also customize the postponement behavior: https://github.com/hovancik/stretchly#editing-postpone-functionality-

Hi @hovancik,
I've got breakNotification and microbreakNotification turned off, but I still get those system notifications.
Is there a way to turn them off completely?
Thanks in advance.

Could you please screenshot what you mean?

I find the system-notification not intrusive enough. WorkRave is really bold, an small box that cannot be dismissed, but if the cursor moves to it, it moves to another spot on the screen so that it never blocks where you need to see. It gets a bit more naggy if you keep working but actually doesn't force-start full break. Instead, the break starts after a few seconds of no input activity.
So, this is really a remarkable balance. Bold-enough and naggy-enough prompt, but I still have to stop working for the break to go ahead. However, WorkRave has a setting for how long it will let you postpone the break before it does force it.
That one aspect of WorkRave is really superior for me, though I prefer everything else about Stretchly. It's worth trying so you can see how it works.

With WorkRave, if he keeps playing, it will get more naggy and then give up and postpone and do it again after a set time, and if he skips the prompt too many times, it will force the break anyway.

you can also make more postpones with Stretchly https://github.com/hovancik/stretchly#editing-postpone-functionality-
I prefer not to make custom notifications, as with electron, positioning windows is basically painful and I value my mental health


Add get tender id by uaid

This change is

Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from the review on Reviewable.io


Unable to get sirula id

https://0x0.st/oja0.log
Normally, you can get any window's id with hyprctl clients but with sirula, you can't.
You can't move it either.
https://github.com/DorianRudolph/sirula

maybe, apps written in rust behave very weirdly. It's a known issue

is this still an issue? Also, are you sure it's a window? It seems like a layersurface to me

Nope, I might thought it was a window... 2 month ago


Fix test restarting with secondary page

Some of our test cases have secondary pages, currently TestSetupHelper only takes one test page name so it's not aware of the secondary page when restarting the test app, which causes the process to fail.
Updated TestSetupHelper to take multiple test names so it can correctly recover multiple pages during restarting.
Closes #101

This issue is tracked by #101, so I added that to the PR description.

This issue is tracked by #101, so I added that to the PR description.

Thanks!


Drop RXJava and CompletableFuture support from azure-spring-integration module

Since spring and sdk both have moved to reactive model , it is time to end this rxjava and CompletableFuture support from our code base

Close this issue for the related pr has been merged.


Filters : BandPass issue

Hi,
I'm using Band filters and example from here https://github.com/swharden/FftSharp/issues/23
However I'm not getting clear frequency filtering like I would do in e.g. Audacity Low/High Pass filters. Any idea why is this and how to fix/avoid it?
From picture is clear where filtering was done, but there are still some values present which I need to remove.
https://i.gyazo.com/ca6107a6336f9222fe9017f9d5b0f0ee.png
Thanks

Hi @fpavlic thanks for sharing your spectrogram

Can you share some of the data and the C# code you used to generate this so I can try to reproduce the issue?
Do you have a similar spectrogram showing the spectrogram using Audacity's lowpass filter?
Without seeing the data I can't know for sure, but two ideas are (1) the input signal is extremely loud and the inverse FFT is clipping, and clipped sine waves produce higher frequency components or (2) mixing two sine waves together produces mixing products at the sum and difference of their frequencies, so maybe some of the remaining low frequencies are mixing to produce the higher frequencies we see here?

I tried this with FFTSharp and another package, same result. I'm using PCM values, transforming to FFT with FFTSharp, doing BandPass, then inverting fft to pcm and feeding back to get recording. When doing this process without modifying FFT sound is correct. But with filtering I'm getting hum/clicking sound, like it is in spectogram.
I've also tried (1) to do clipping myself, there is not much above 1, I've dropped to 1, and finally I've divided amplitudes by 2 so inverting shouldn't have loud sounds. (2) any suggestions for this ?
This is one example:
Filtered = FftSharp.Filter.BandPass(buffer, 44100, 50, 3000);
Another usage is from this https://github.com/swharden/FftSharp/issues/23


Added support for \v char with tests

According to https://www.json.com/json-object#object-with-strings valid json can contains '\v' char. It was discussed on SO on link: http://stackoverflow.com/questions/19176024/how-to-escape-special-characters-in-building-a-json-string
That is why I added support for this char :)
I hope You will agree with me

I don't know why json.com includes it because it is not part of the spec: http://json.org/


Configure: make 'enable-buildtest-c++' work (not be a regexp)

OpenSSL 1.1.1's Configure treats the strings in @disablables as regexps,
which means that the 'buildtest-c++' option needs a bit of escaping to
be interpreted as intended.

Merged.
87f533c9f622d5f44170fc2aed0d341187d10878 Configure: make 'enable-buildtest-c++' work (not be a regexp)


Integration with Web Components  standard ?

https://elements.polymer-project.org/
http://webcomponents.org/
Might give flexx free widgets.

Certainly interesting ... poor support on IE though, but surely that will get better.

How do web components work? You specify specific DOM elements and add some CSS? I imagine that integrating them is possible as is.  But are they still a thing?


Chat update

Since the last update, the chat no longer updates unless the page is refreshed. I know I had a problem with chat in a previous issue report, but not sure where the settings lie now that chat.php has been mostly commented out.

All of the SSE streams have been moved to application/controllers/Sse.php.  There is now a single stream, so if you previously modified the Chat.php controller, I think that's where you'd look.


Add support to be installed via CocoaPods and Carthage

I made a pull request (#8) to add CocoaPods support

I would love this.

+1

I apologize for the lack of progress on this library. I have been really busy this whole past time and I'm currently waiting for WWDC to see if Apple will make any changes to the API. Hopefully, I'll rewrite it from scratch with UserNotifications, CocoaPods support, and backwards compatibility.


arm-ttk support for powershell core

We have a growing presence of linux build agents. It would be beneficial if we this was available for powershell core in addition to Desktop

ttk will run on PS Core (that's what we run it on in our pipelines but most are windows)...  Are you running into a particular error on nix?

this is likely a cart before the horse scenario. Just saw the module only show desk version when I did a get-module against it. We have not tested this on our azure devops ubuntu containers yet. But thank you for the information.

ok, thanks for confirming...  I'll close this one out, feel free to open another if you run into any issues...


feat: remember previous trade in swap tool

What is the purpose of the change:
When users complete a trade, the app currently resets to the default trading pair (ATOM and OSMO), which can be inconvenient for those who trade frequently. A better approach would be to save the details of users' last trades, allowing them to pick up where they left off as they navigate the app. Additionally, this change could help us enhance how we manage search parameters, which currently clutter the search experience and complicate the process of returning to previous pages.
Linear Task
Linear Task URL
Testing and Verifying

[ ] Swap page should be unaffected
[ ] If there are no previous trades, display ATOM <> OSMO as the default tokens
[ ] If there is a previous trade, display the previous trade pairs and update the search query params.

Summary by CodeRabbit

New Features

Introduced a new "gettingStarted" key in localization files to enhance initial user guidance across multiple languages.
Added new functionalities in the swap tool interface, including handling of token selections and successful swap operations.
Enhanced user analytics with the addition of "Pool Details Page" tracking.

Bug Fixes

Streamlined import paths and updated component prop names for consistency and clarity in the user interface.

Documentation

Updated localization files to include guidance for new users in multiple languages.

Tests

Expanded test coverage including homepage functionality, swap operations, and query parameter state management.

Chores

Updated package dependencies to improve functionality and development workflow.

Refactor

Refined the component tree structure and updated routing methods for better performance and user experience.

Was the requirement to remember the last traded tokens? Or the last selected tokens? I imagine it would be similarly useful to be able to go to/from the swap page and have the last tokens you selected still selected

@jonator  The initial requirement was to keep track of the last traded tokens. We can plan to implement tracking the last selected tokens in a future PR. I wouldn't want to delay this feature


[Content block card static]: DDS consulting for development of new AEM Product template component behind a feature flag

User Story

As a [user role below]:
IBM.com Library developer

I need to:
create/change the Content block card static

so that I can:
provide the ibm.com adopter developers components they can use to build ibm.com web pages

Additional information

Story within Storybook with corresponding knobs
Utilize Carbon
Create with Shadow DOM and Custom Elements standards
See the Epic for the Design and Functional specs information
Feature flag documentation: https://github.com/carbon-design-system/ibm-dotcom-library/blob/master/packages/react/docs/feature-flags.md
This development will be done by Hybrid Cloud.  Sizing 5 story points
Create as a root level component in storybook
Card - static, dev issue (#5962 ) must be finished before this component development can begin.  Tentative date to begin dev is Monday, May 24.  Ignacio will Slack Putra if the dev is done sooner.
Web Components limited Prod QA testing issue (#6056 )

AEM Assignments:
Designer:  Kirby Evans
Developer:  TBD

Acceptance criteria

[ ] Build behind a feature flag
[ ] Include README for the web component and corresponding styles
[ ] Add any necessary stable selectors
[ ] A comment is posted in the Prod QA issue, tagging Praveen, when development is finished

@RobertaJHahn @kirbyevans Can you provide a link to the design and technical specs of this new "Content Block Card Static" layout component? Thanks!

@proeung There are no functional specs on this component as it will be developed behind a feature flag.  Here is the design info:
Designer:  Kerby Evans
Design specs Box link: https://ibm.box.com/s/bu6ksttoozynfkvpm3mogzov0t8hdzsy

@RobertaJHahn Thanks!
Here's a direct link to the JIRA ticket (https://jsw.ibm.com/browse/HC-1936) that we're using on our side to track the work. This particular ticket is currently assigned to Dennis Dolliver.


The Vaccinator

i have a suggestion for the ESP
Please add a detection if the enemy is sheilded by the vaccinator
and if possible detect how many available charges the medic has
this will be so useful and thanks!


Allow override of User-Agent

Because, y'know, the web is a better place for the existence of sites that key their responses based on this strongly typed header field. @mwotton

wait... what happens currently if I setHeader "User-Agent" "foo/0.1"? :confused:

@hvr Ah. Hm. You're right. We used to set the User-Agent, then someone asked us to stop. So yes, that will work.


add auto ticket purchase fuctionality

Fix #702

ticket buyer config modal

ticket buyer confirmation modal.

ticket buyer running.

Requires https://github.com/planetdecred/dcrlibwallet/pull/215

There is a crash with regular ticket purchase relating to vsp.ctx not being set in dcrlibwallet.
Also, the passphrase error that prevents ticket purchases is caused by https://github.com/planetdecred/dcrlibwallet/pull/215/files#r793030710.


Support build targets for job type docker

Is your feature request related to a problem? Please describe.
I have a large Dockerfile with lots of stages, and I would like to build only a specific one.
Describe the solution you'd like
I would like to be able to tell IB which one to target (ie. equivalent of docker build --target=…).
Describe alternatives you've considered
Templating, but that does not work well with our internal build infrastructure
Additional context
n/a

supported in https://github.com/SAP/InfraBox/pull/454


Settings - first implementation of saving settings changes to DB

Brief description
This logs all changes in Settings to separate collection ('setting_log') to help debug/trace changes. This functionality is pretty basic as it will be replaced by Ayon implementation in the future.
Description
It saves only 'changes' (like diffs) not old values as resolution of that could get tricky (in complex dictionaries).
No UI implemented, accessible only through Compass or other IDE.
Additional info
It produces documents like this:

Changes to system/anatomy/project settings could be filtered by value in settings_type.
It would be theoretically possible to apply list of these changes on barebone Settings to create state at specific point in time. Not sure if we want to investigate this for v3 though.
Testing notes:

Try to change something in settings, save, check settings_log

Added additional workstation info:


Welder fuel tanks blow up if wideattacked/attacked with an unlit welder

Description
How to replicate:

Have a welder that is unlit
Wideattack near a fuel tank (or attack the fuel tank directly)
The fuel tank will explode even though the welder is not lit.

This makes trying to get kudzu out of Packed's maint nearly impossible without Plant-B-Gone.

Welders need a way of modifying the melee weapon component's damage value depending on whether they are lit or not.
I guess you could do this via a modify-damage event that gets raised by the MeleeWeapon system to allow other systems to modify the damage. But I'm not sure whether that even would even ever be used by anything other than welders.


v2 versions missing

What is the URL of the page with the issue?
https://pkg.go.dev/github.com/karl-cardenas-coding/go-lambda-cleanup
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
Screenshot

What did you do?
I followed the steps in Go Mod publish blog. I also search other similar issues and stumbled upon #57677  Our issues seem very similar as the latest v1 version was also using Go 1.18
What did you expect to see?
All the newer versions since v1.0.16
What did you see instead?
I only see the v1 versions.

@rittneje that's so strange. An hour ago it was not working. Oh well, indeed it is now. Thank you so much for looking into it. Feel free to close this issue 🙏


Applying blur to RGB frames

Hi,
First thank you for your excellent job, it gives me plenty of insights!
I am working on getting depth data from Galaxy S20+ and finally succeeds to get it.
I am interesting, if you can, to get your sample code for the final stage of your app, which is to apply the depth map on RGB frame to get what you called the privacy mode, because I am facing two issues when linking the depth map to the RGB data on my side. As the camera2 API is only giving DEPTH16 for the depth camera, i need to use another camera to get RGB data. The issue then is that the two camera are not well synchronized, and as the two sensors are not located at the same location on the back side of Galaxy S20+, there is a little shift between depth and RGB frames. Did you succeed to cope with these two issues?

Hi, I am very confused about how to modify the camera ID to make the code work, my device is also S20 +,  I would appreciate it if you could offer me any help， thanks a lot！


GAST-Skeleton Dataset Download

First of all, Thanks you for great work.
Can you please upload the GAST-skeleton to google drive?

Hi~
We will upload the NTU-GAST skeleton to google drive next week. After uploading, I will remind you again.

Thank you very much!

Hi~
I have uploaded NTU-GAST Skeleton in Google drive. Please check it in README.md.


fixed & added translations in examples

I'm a native portuguese speaker, so I found some inconsistencies and fixed them. Nothing major. Also noticed the examples weren't translated so I changed that too.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉


Set default namespace

fixes #711 .
How to test:

[ ] Choose a namespaced resource config, like the ConfigMap without setting a namespace in its definition, and apply it from the + button in the UI: it should succeed

@illume ,

With kubectl there is a default namespace, but also a namespace context. So someone copy/pasting might also have their context set to something else than the default. https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/#setting-the-namespace-preference
I wonder if we can make the namespace that will be applied more obvious in the UI?

We use the namespace as a filter in the UI only, though it persists when changing views.
Maybe we should indeed make it a more evidently global setting. Quick thought: I think we'll change/move the cluster chooser button when we have the global overview, so in its place we could have a namespace selector.

Will people be able to apply under a different namespace? So if they're browsing in a different namespace perhaps, then apply? What happens then if they remove the namespace and apply? In this case, I expect a mistake will be made.

I think that right now it's not evident that a namespace is selected, since it's only in table views where it's set up.
So I don't expect users to select a namespace in a table view, and then click the + icon in a different area but expect the namespace to stick.
Maybe we can make this evident in the edit dialog, but this PR is about avoiding failure.

Not all objects are in a namespace. https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/#not-all-objects-are-in-a-namespace In this case, adding a default namespace will break things when trying to apply to things not in any namespace. It is possible to query which resources aren't in a namespace, so maybe we can use that (see the URL for how to do this query).

Right. My patch only adds the namespace if we know that the resource we're applying needs one (if we don't know the resource, or the resource has no namespace, like ClusterRole, then it will not set one).


Refactor

Move private methods to url.py
Add support to extract tar
Add test compressed files (tar, zip)
Check extracted filename matches archive

I rewrote it all from scratch - let me know if you think any of your proposed changes are still needed.


unstructured-api-tools: Add ability to return JSON responses for multiple files

Summary
Currently, when multiple files are passed to an unstructured-api-tools (auto-generated) Pipeline API, the resulting payload is always Content-Type: multipart/mixed.
However, the caller should have the ability to specify a JSON  list result, where each item is the result of a call to the underlying pipeline_api. See the spec for details (only the parts pertaining to the JSON response, not compressed file support).
Definition of Done

unstructured-api-tools API's handle anAccept header for application/json or `multipart/mixed' appropriately per the spec.
If an Accept header of applicaton/json is specified and a value other than application/json is provided for output_format, an error is thrown.
Unittests are added, including for a request that includes an input with both text_files and files. (the testing framework is lacking to be addressed soon)
Test instructions demonstrate json payloads being returned for a multi-file requests in a locally running pipeline-sec-filings API.
Test instructions demonstrate json payloads being returned for a multi-file request in a locally running pipeline API that accepts files (in contrast to the text_files input in the sections API of pipeline-sec-filings). In addition a piplene_api that accepts both text and file params should be tested.

Multiple Text Files,  Json response
curl -X 'POST' 'http://<IP_ADDRESS>:8000/sec-filings/v0.2.0/section'
    -H 'accept: application/json'
    -H 'Content-Type: multipart/form-data'
    -F<EMAIL_ADDRESS>
    -F<EMAIL_ADDRESS>
    -F section=RISK_FACTORS

The result will be:
        [
	  {
	    "RISK_FACTORS": [
	      {
	        "text": "The necessity for ongoing physical and technological security has resulted, and may continue to result, in increased operating costs.",
	        "type": "NarrativeText"
	      },
	      ...
	    ]
	  },
	  {
	    "RISK_FACTORS": [
	      {
	        "text": "The Company is subject to risks related to public health crises such as the global pandemic associated with the coronavirus (COVID-19).",
	        "type": "ListItem"
	      },
	      ...
	    ]
	  }
	]

Multiple Files,  Json response
curl -X 'POST' 'http://<IP_ADDRESS>:8000/sec-filings/v0.2.0/section'
    -H 'accept: application/json'
    -H 'Content-Type: multipart/form-data'
    -F<EMAIL_ADDRESS>    -F<EMAIL_ADDRESS>
The result will be:
        [
	  "my-cool-file.pdf",
	  "my-other-cool-file.pdf"
	]

Multiple Text Files and Files as inputs,  Json response
curl -X 'POST' 'http://<IP_ADDRESS>:8000/sec-filings/v0.2.0/section'
    -H 'accept: application/json'
    -H 'Content-Type: multipart/form-data'
    -F<EMAIL_ADDRESS>    -F<EMAIL_ADDRESS>
    -F section=RISK_FACTORS

The result will be:
        [
	  {
	    "RISK_FACTORS": [
	      {
	        "text": "The necessity for ongoing physical and technological security has resulted, and may continue to result, in increased operating costs.",
	        "type": "NarrativeText"
	      },
	      ...
	    ]
	  },
	  "my-cool-file.pdf"
	]

Completed with https://github.com/Unstructured-IO/unstructured-api-tools/pull/98


[591] Redirect traffic to the old service hostname

Trello card URL:
https://trello.com/c/EMDwIScy
Changes in this PR:

Both HTTP and HTTPS
Permanent solution part of the core infrastructure rather than using another service for redirection. This change is designed to be permanent since teaching-jobs.service.gov.uk has been seen, used and linked to by users in public beta
More reliable than using a redirection service hosted somewhere
Can turn it on/off per environment via environment variable so it can the redirect will only be running in production where more than 1 domain exists

Screenshots of UI changes:
Before
After
Next steps:

[x] Terraform deployment required?

[ ] New development configuration to be shared?

 Redirect all old traffic to the new service domain


Codesign application

Figure out a way to codesign application for distribution.

Relevant documentation: https://github.com/electron-userland/electron-builder/wiki/Code-Signing


Wrong proposals in incomplete if expression

In the following code:
shared actual Image image => if (declaration.<caret here>);

the completion proposals contain toplevel declarations instead of members of declaration, I suppose it's because the if expression is incomplete.

Looks to me like the code is getting parsed correctly, and the right type is assigned to the BaseMemberExpression. So this does not appear to be a bug in the typechecker.

I get the correct proposals if the if expression is complete, i.e.
shared actual Image image => if (declaration.<caret here>) then true else false;

This is probably simple to fix.

Actually I have the same kind of problem in function declarations:
    shared actual void newProposal(IdeaQuickFixData data, String desc, Tree.<caret here>)
            => makeAvailable(desc);

I expect inner classes of Tree to be shown, but instead I see toplevel declarations.

It turns out that when the if expression is incomplete, the CompilationUnit's endIndex is wrong (it looks like it contains the endIndex of the if keyword). As a result, FindNodeVisitor doesn't work as expected, and the completion manager is told that the current node is the compilation unit.
@gavinking any idea how to fix that?

Look in Ceylon.g.
On Fri, Feb 26, 2016 at 4:06 PM, Bastien Jansen<EMAIL_ADDRESS>wrote:

It turns out that when the if expression is incomplete, the
CompilationUnit's endIndex is wrong (it looks like it contains the
endIndex of the if keyword). As a result, FindNodeVisitor doesn't work as
expected, and the completion manager is told that the current node is the
compilation unit.
@gavinking https://github.com/gavinking any idea how to fix that?
—
Reply to this email directly or view it on GitHub
https://github.com/ceylon/ceylon-ide-common/issues/29#issuecomment-189316036
.

--
Gavin King
<EMAIL_ADDRESS>http://profiles.google.com/gavin.king
http://ceylon-lang.org
http://hibernate.org
http://seamframework.org

Should be fixed now.


Problem with EasyBuild installed ReFrame and a user settings.py without a 'logging' section

Installed ReFrame/3.4 with EasyBuild (but since my system only have Python3.5 I've modified the original easyconfig to depend on GCCcore/9.3.0 and Python/3.8.2)
Add a $HOME/.reframe/settings.py with only a 'systems' and a 'environments' section, i.e. 'logging' is missing.
Running
reframe -c $EBROOTREFRAME/tutorials/basics/hello/hello1.py -r

I get
/home/a/ake/Public/easybuild/software/Compiler/GCCcore/9.3.0/ReFrame/3.4-Python-3.8.2/bin/reframe: failed to load configuration: could not validate configuration file: '/home/a/ake/.reframe/settings.py': 'logging' is a required property

@vkarak asked me to submit an issue on this.

Should we remove the logging from the required sections?

I think we can close this, since it is expected because logging is required. Is it ok for you @akesandgren ?


feat: upgrade @sentry/node to v7

This PR upgrades just @sentry/node to v7 to help clear downstream audit failures related to https://github.com/advisories/GHSA-pxg6-pf52-xh8x. I'm only jumping to @sentry/node v7 as it's still maintained, and supports down to Node.js v8 so this doesn't need to be a breaking change for @probot/pino.
cc @gr2m

hmmm unfortunately the CI is failing anyway, with a cryptic error. I don't have time to look into it myself I'm afraid, but happy to merge when we get the tests to green

Thanks @gr2m. Tests passed locally, so I'll dig into the cryptic CI failures.

@gr2m, this should be ready to run CI again. I think the cryptic issue was an npm bug (I'm using 10.8.2) - it updated the lockfile to add fsevents as a dep for chokidar (it's an optional dependency in that version) but it didn't add fsevents itself to the lockfile. I manually removed the added fsevents line it added since it shouldn't be touching existing dependencies anyway. Ran npm ci locally which repro'd the issue and now runs successfully after that change.

Outstanding work @dsanders11. Thank you so much for digging into it, and for figuring it out, and for fixing it! Much appreciated!


Context clean up?

There seems to be some extraneous context on this page.  The title states the intended scope is private IP addressing, but step 2 has the user create a public IP which is never used.  It is referred to in step 4 description but not used in the associated CLI code.  Subsequent testing in the example shows no public address.  I propose step 2 and the addition public IP reference in step 4 be removed from this page.
{
"IPVer": "IPv4",
"IpAllocMethod": "Static",
"PrivateAddress": "<IP_ADDRESS>",
"PublicAddress": null
}

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

ID: 0b5d91ee-d2c3-5023-855b-4c2e0986ef86
Version Independent ID: 9fee6d41-db5d-1dc8-1602-e097346044d8
Content: Configure private IP addresses for VMs - Azure CLI
Content Source: articles/virtual-network/virtual-networks-static-private-ip-arm-cli.md
Service: virtual-network
GitHub Login: @KumudD
Microsoft Alias: kumud

@PishPoshery Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

#reassign: asudbring

Removed public IP part as it's not needed in the tutorial.
#please-close


docs: readme badges

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 65.10%. Comparing base (e3068ec) to head (f82e0ca).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #14   +/-   ##
=======================================
  Coverage   65.10%   65.10%
=======================================
  Files           4        4
  Lines         192      192
=======================================
  Hits          125      125
  Misses         49       49
  Partials       18       18

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Allow more levels of logging

Uses the approach described here: http://stackoverflow.com/a/20663028
Alternatively, I can switch to this one if you prefer: http://stackoverflow.com/a/28611921

Is this a satisfactory alternative? https://github.com/braedon/prometheus-es-exporter/commit/20ad6f703f5dcdac83fdda6fb92b1223d7028576

Yep, thanks for implementing it!


When leaving VisIt running for several days, eventually his system freezes

Jose Milovich reported that he leaves his VisIt sessions running for multiple days and around once every 2 weeks his screen hangs on his Linux system. He said that when he calls the desktop support they aren't even able to login to the system. This also happens on Windows, except there he can bring up the control panel and that unfreezes it.
-----------------------REDMINE MIGRATION-----------------------
This ticket was migrated from Redmine. As such, not all
information was able to be captured in the transition. Below is
a complete record of the original redmine ticket.
Ticket number: 3011
Status: Pending
Project: VisIt
Tracker: Bug
Priority: Normal
Subject: When leaving VisIt running for several days, eventually his system freezes
Assigned to: -
Category: -
Target version: -
Author: Eric Brugger
Start: 02/09/2018
Due date:
% Done: 0%
Estimated time:
Created: 02/09/2018 03:04 pm
Updated: 02/20/2018 06:57 pm
Likelihood: 3 - Occasional
Severity: 3 - Major Irritation
Found in version: 2.12.3
Impact:
Expected Use:
OS: All
Support Group: Any
Description:
Jose Milovich reported that he leaves his VisIt sessions running for multiple days and around once every 2 weeks his screen hangs on his Linux system. He said that when he calls the desktop support they aren't even able to login to the system. This also happens on Windows, except there he can bring up the control panel and that unfreezes it.
Comments:

Closing. Not actionable.


Lexer usage

What's the API for traversing tokens (instead of producing an AST)?

Figured it out. The following function is very similar to the postcss tokenizer.
const eof = 1048576;
function tokenize(source) {
  const parser = cherow.Parser.createParser(source);
  return {
    next() {
      if (cherow.nextToken(parser) == eof) {
        return null;
      }
      return [
        cherow.tokenDesc(parser.token),
        source.slice(parser.startIndex, parser.index),
        parser.startLine,
        parser.startColumn,
        parser.line,
        parser.column,
      ];
    }
  };
}

const {next} = tokenize('let a = 1');
let t; while (t = next()) console.log(t);

Something like acorn's tokTypes object would be useful (eg: tokTypes.eof == 1048576), so I don't have to use tokenDesc to know what the token is.

Hi. Thanx for trying cherow.  I'm working on  improving cherow this days and a tokenizer will land in v. 2.0.
The tokenizer will output each token with a value, name, and location..
For v. 1.6x I think you found the best way to deal with tokenizing.
Hope that answers your question?

What are your thoughts on exposing a tokTypes object like acorn does?

I may think that will kill performance and one of the reasons I didn't implement tokenizing before, but in
v. 2.0 there will be a new option - tokenize - that will allow either a callback or an array.
Each token will be equal to what you find in the specs.
It will be an improved implementations over Acorns tokenizing.
The API for this isn't set yet, but I'm thinking of something like this:
cherow.parse('var i = 0;', { tokenize: function(name, value, start, end) {
// tokens...
}}

The name parameter (in the tokenize function you mention) is a string, right?
Isn't number comparison faster than string comparison?
parser.token === tokTypes.eof vs tokenDesc(parser.token) === 'end of source'

What's fastest depends on the context. If you make a perfect hash e.g in a switch statement it should be faster with numbers, but V8's optimizations are very good so in your example a string comparison is the fastest if this is only a "one time" comparison not multiple comparisons done in a sequence as in a benchmark.

@aleclarson Should we close this issue now? And I will let you know when v. 2.0 are published?

Will it only be the tokenize option in v2? I think cherow.tokenizer(): {next: () => token} should also be included, because I don't always need the AST. The tokenizer object should be an iterable, too.

I haven't thought about that, but it make sense to export a separate tokenizer method. Same thing as I'm working on right now for regular expressions - internal and exported.
I will add it on my TODO and add it as soon as I get around to it.


Remove the incorrect lines

[ ] Changeset added

Features
Fixes

Remove lines that don't describe best practices.

Breaking changes

When i remember it right this was written in a google docs or jira. So most likely a copy/paste error


[HELP] multi router guard

I can not make router with 2 guard user and admin in the same routes.js
it always return to the default guard from router/index.js
What I need to do:

I have directory like so:
-- aaaa/bbbb/cccc => stand for admin page
-- aaaa/dddd/eeee => stand for user page
When I access aaaa/dddd/eeee without login, it always check auth from aaaa/bbbb/cccc
I had tried to separate router and user_router but it said $nextTick was null.
This is just a half of my project, it requires 4 types of users to login using different path.
Path 1: aaaa/bbbb/cccc => auth user type 1
Path 2: aaaa/dddd/eeee => auth user type 2
Path 3: ffff/bbbb/cccc => auth user type 3
Path 4: ffff/dddd/eeee => auth user type 4

Could you please help me a guide to make this type of router?

Nested guards won't work because only the last one will apply.
Instead create a new admin guard that also checks if the user is authenticated:
import store from '~/store'

function adminGuard (routes) {
  return routes.map(route => {
    return {
      ...route,
      beforeEnter (to, from, next) {
        if (!store.getters.authCheck) {
          next({ name: 'login' })
        } else {
          if (store.getters.authUser.role !== 'admin') {
            next({ name: 'home' })
          } else {
            next()
          }
        }
      }
    }
  })
}

Then just add your routes:
...adminGuard([
  { path: '/admin', name: 'admin', component: require('~/pages/admin.vue') }
]),

With the latest update you can have multiple middleware (guards) per route.
https://github.com/cretueusebiu/laravel-vue-spa/blob/master/resources/assets/js/router/routes.js

@cretueusebiu thank you so much


Allow Extensions to contribute User Profile Templates

Seems that currently all User Profile Templates shown here are built-in predefined templates.

It would be better if a vscode extension can contribute some custom user profile templates. This feature can also combine with "extension pack" that not only shares extensions but also some useful settings, tasks, etc.
Btw this could be an alternative suggestion to #181553 . Because we can now install extensions by CLI and if we allow a extension to provide profile template, it will be easier to deploy profiles in those scenario.

CC @isidorn

Fair request, but not something we have on the immediate plan.
The open question is how would those extensions "ship" the profile. Would it come with the extension, or would it have to be hosted somewhere.

The open question is how would those extensions "ship" the profile.

I would expect to have them shipped with the extension.


[HOTFIX] The last letter is duplicated

branch: /inputs
Sometimes, the last letter is duplicated.

When enters with external keyboard when length is max -1.
When starts repeating the same letter, f.e: aa  (screen keyboard only).

phx-disable-with
https://hexdocs.pm/phoenix_live_view/bindings.html


Pep518 build system specification

Resolves #33.
As far as possible, PCU now handles the installation of its own build-time dependencies (it cannot handle git or the C++ compiler). This means that users of PCU can install their whole environment with one pip command.

Thanks so much for this PR. It's great to only require a c++ compiler as a dependency! There was an issue with the Windows build that is now fixed. Do you mind rebasing your changes onto the latest commit so the Windows CI will work, then I can merge it.


Same issue as issue 13319 - Cant find the follow up issue

@Jacob-Stevens-Haas ~Please can you create a new issue, your scenario could be different.~
Never mind, I'e created a new issue.
In the future, please create new issues instead of commenting on old closed issues, this ensures we do not miss out on such comments.

Originally posted by @DonJayamanne in #13319
Sorry if I just have overseen it: I am facing the exact problem mentioned in the Issue 13319 and it is said at the end that there will be a follow-up issue. I cant find it though... can anyone help?

Please could you enable logging as follows:

Open settings & go into Jupyter->Logging
Change the value to trace
Reload VS Code,
Attempt to repro the issue & then copy the output from the Jupyter output panel (use the command Jupyter: Show Output to get to the logs).

Hi DonJaymanne,
thank you for your quick reply. Unfortunately I dont know, where exactly I can start with "Open Settings & go into Jupyter -> Logging. Maybe I should have mentioned, that I am Using Linux Manjaro as OS, so I am not sure where I can look that up.
When I run jupyter -h I get this output in my terminal:
`usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir] [--paths] [--json]
[--debug]
[subcommand]
Jupyter: Interactive Computing
positional arguments:
subcommand     the subcommand to launch
options:
-h, --help     show this help message and exit
--version      show the versions of core jupyter packages and exit
--config-dir   show Jupyter config dir
--data-dir     show Jupyter data dir
--runtime-dir  show Jupyter runtime dir
--paths        show all Jupyter paths. Add --json for machine-readable format.
--json         output paths as machine-readable json
--debug        output debug information about paths
Available subcommands: kernel kernelspec migrate run troubleshoot
Andjupyter --paths`
config:     /home/<USER>/.jupyter     /home/<USER>/.local/etc/jupyter     /usr/etc/jupyter     /usr/local/etc/jupyter     /etc/jupyter data:     /home/<USER>/.local/share/jupyter     /usr/share/jupyter runtime:     /home/<USER>/.local/share/jupyter/runtime

Please can you describe the exact problem
Please capture screenshots of the issue
know, where exactly I can start with "Open Settings & go into Jupyter -> Logging".

Open VS Code then go into the command palette and search for Open Settings (UI)
Enter the text Jupyter Logging
Select the value trace
Save and reload VS Code

Replicate the issue
Open your command palette again and select Jupyter: Show Output
Copy all of the output from the output panel and paste it here.

Of course, sorry.
My problem is, that I can not run ".ipynb"-Files on my Linux Manjaro Laptop, becase every time, when I press the Button "Select Kernel", I dont get any suggestions of which Kernel I can Pick.
Picture:

And the Log I get looks like this: (Sorry, this is quite a mess...)
Code - OSS (1.93.1, undefined, desktop)
Jupyter Extension Version: 2024.8.1.
Python Extension Version: 2024.14.1.
Pylance Extension not installed.
Platform: linux (x64).
Temp Storage folder ~/.config/Code - OSS/User/globalStorage/ms-toolsai.jupyter/version-2024.8.1
Workspace folder ~/PythonProjects/WB_KI_Oktober2024, Home = /home/raydrake
08:40:46.672 [debug] Start refreshing Kernel Picker<PHONE_NUMBER>672)
08:40:46.673 [error] Error in activating extension, failed in gy [Error: Extension 'ms-toolsai.jupyter' CANNOT use API proposal: notebookKernelSource.
Its package.json#enabledApiProposals-property declares:  but NOT notebookKernelSource.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-toolsai.jupyter
	at P (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:149:59064)
	at Object.createNotebookControllerDetectionTask (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:171:54611)
	at i (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:299:6231)
	at gy.startRefreshWithPython (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:299:6454)
	at gy.activate (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:299:4678)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:373:28494
	at Array.map (<anonymous>)
	at nI.activate (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:373:28480)
	at _G (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:436:2110)
	at async the (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:438:454)]
08:40:46.679 [error] Error in activating extension, failed in Qy [Error: Extension 'ms-toolsai.jupyter' CANNOT use API proposal: notebookKernelSource.
Its package.json#enabledApiProposals-property declares:  but NOT notebookKernelSource.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-toolsai.jupyter
	at P (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:149:59064)
	at Object.registerKernelSourceActionProvider (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:171:54746)
	at Qy.activate (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:116342)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:373:28494
	at Array.map (<anonymous>)
	at nI.activate (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:373:28480)
	at _G (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:436:2110)
	at async the (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:438:454)]
08:40:46.995 [trace] Search for KernelSpecs in Interpreter /bin/python
08:40:46.996 [trace] Search for KernelSpecs in Interpreter /sbin/python
08:40:46.997 [trace] Search for KernelSpecs in Interpreter /usr/bin/python
08:40:46.998 [trace] Search for KernelSpecs in Interpreter /usr/sbin/python
08:40:46.999 [trace] Kernel Spec for 'Python 3 (ipykernel)' (/usr/share/jupyter/kernels/python3/kernel.json) is hidden. (isDefaultKernelSpec = true, language = python, registrationInfo = undefined)
08:40:47.002 [debug] Get Custom Env Variables, Class name = Cm, completed in 330ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
08:40:47.002 [debug] Jupyter Paths /kernels:
08:40:47.003 [debug] Kernel Spec Root Paths, /usr/share/jupyter/kernels, /usr/local/share/jupyter/kernels, ~/.local/share/jupyter/kernels
08:40:47.008 [warn] Failed to attach variable provider [Error: Extension 'ms-toolsai.jupyter' CANNOT use API proposal: notebookVariableProvider.
Its package.json#enabledApiProposals-property declares:  but NOT notebookVariableProvider.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-toolsai.jupyter
	at P (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:149:59064)
	at set variableProvider (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:161:237136)
	at n.create (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:86445)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101040
	at Array.forEach (<anonymous>)
	at By.addImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101013)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99999
	at Array.forEach (<anonymous>)
	at By.batchAdd (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99969)
	at By.createNotebookControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98791)
	at By.loadControllersImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98251)
	at By.loadControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:97901)
	at By.<anonymous> (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:96781)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:949)
	at i.value (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:285:19835)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.C (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:802)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:1018)
	at Zy.buildDummyEnvironment (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:145257)]
08:40:47.009 [warn] Failed to attach variable provider [Error: Extension 'ms-toolsai.jupyter' CANNOT use API proposal: notebookVariableProvider.
Its package.json#enabledApiProposals-property declares:  but NOT notebookVariableProvider.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-toolsai.jupyter
	at P (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:149:59064)
	at set variableProvider (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:161:237136)
	at n.create (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:86445)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101040
	at Array.forEach (<anonymous>)
	at By.addImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101013)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99999
	at Array.forEach (<anonymous>)
	at By.batchAdd (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99969)
	at By.createNotebookControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98791)
	at By.loadControllersImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98251)
	at By.loadControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:97901)
	at By.<anonymous> (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:96781)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:949)
	at i.value (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:285:19835)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.C (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:802)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:1018)
	at Zy.buildDummyEnvironment (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:145257)]
08:40:47.012 [warn] Failed to attach variable provider [Error: Extension 'ms-toolsai.jupyter' CANNOT use API proposal: notebookVariableProvider.
Its package.json#enabledApiProposals-property declares:  but NOT notebookVariableProvider.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-toolsai.jupyter
	at P (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:149:59064)
	at set variableProvider (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:161:237136)
	at n.create (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:86445)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101040
	at Array.forEach (<anonymous>)
	at By.addImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101013)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99999
	at Array.forEach (<anonymous>)
	at By.batchAdd (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99969)
	at By.createNotebookControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98791)
	at By.loadControllersImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98251)
	at By.loadControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:97901)
	at By.<anonymous> (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:96781)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:949)
	at i.value (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:285:19835)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.C (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:802)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:1018)
	at Zy.buildDummyEnvironment (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:145257)]
08:40:47.013 [warn] Failed to attach variable provider [Error: Extension 'ms-toolsai.jupyter' CANNOT use API proposal: notebookVariableProvider.
Its package.json#enabledApiProposals-property declares:  but NOT notebookVariableProvider.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-toolsai.jupyter
	at P (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:149:59064)
	at set variableProvider (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:161:237136)
	at n.create (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:86445)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101040
	at Array.forEach (<anonymous>)
	at By.addImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101013)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99999
	at Array.forEach (<anonymous>)
	at By.batchAdd (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99969)
	at By.createNotebookControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98791)
	at By.loadControllersImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98251)
	at By.loadControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:97901)
	at By.<anonymous> (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:96781)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:949)
	at i.value (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:285:19835)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.C (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:802)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:1018)
	at Zy.buildDummyEnvironment (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:145257)]
08:40:47.016 [warn] Failed to attach variable provider [Error: Extension 'ms-toolsai.jupyter' CANNOT use API proposal: notebookVariableProvider.
Its package.json#enabledApiProposals-property declares:  but NOT notebookVariableProvider.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-toolsai.jupyter
	at P (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:149:59064)
	at set variableProvider (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:161:237136)
	at n.create (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:86445)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101040
	at Array.forEach (<anonymous>)
	at By.addImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101013)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99999
	at Array.forEach (<anonymous>)
	at By.batchAdd (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99969)
	at By.createNotebookControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98791)
	at By.loadControllersImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98251)
	at By.loadControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:97901)
	at By.<anonymous> (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:96781)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:949)
	at i.value (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:285:19835)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.C (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:802)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:1018)
	at Zy.buildDummyEnvironment (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:145257)]
08:40:47.017 [warn] Failed to attach variable provider [Error: Extension 'ms-toolsai.jupyter' CANNOT use API proposal: notebookVariableProvider.
Its package.json#enabledApiProposals-property declares:  but NOT notebookVariableProvider.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-toolsai.jupyter
	at P (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:149:59064)
	at set variableProvider (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:161:237136)
	at n.create (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:86445)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101040
	at Array.forEach (<anonymous>)
	at By.addImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101013)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99999
	at Array.forEach (<anonymous>)
	at By.batchAdd (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99969)
	at By.createNotebookControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98791)
	at By.loadControllersImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98251)
	at By.loadControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:97901)
	at By.<anonymous> (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:96781)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:949)
	at i.value (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:285:19835)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.C (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:802)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:1018)
	at Zy.buildDummyEnvironment (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:145257)]
08:40:47.020 [warn] Failed to attach variable provider [Error: Extension 'ms-toolsai.jupyter' CANNOT use API proposal: notebookVariableProvider.
Its package.json#enabledApiProposals-property declares:  but NOT notebookVariableProvider.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-toolsai.jupyter
	at P (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:149:59064)
	at set variableProvider (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:161:237136)
	at n.create (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:86445)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101040
	at Array.forEach (<anonymous>)
	at By.addImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101013)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99999
	at Array.forEach (<anonymous>)
	at By.batchAdd (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99969)
	at By.createNotebookControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98791)
	at By.loadControllersImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98251)
	at By.loadControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:97901)
	at By.<anonymous> (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:96781)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:949)
	at i.value (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:285:19835)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.C (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:802)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:1018)
	at Zy.buildDummyEnvironment (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:145257)]
08:40:47.021 [warn] Failed to attach variable provider [Error: Extension 'ms-toolsai.jupyter' CANNOT use API proposal: notebookVariableProvider.
Its package.json#enabledApiProposals-property declares:  but NOT notebookVariableProvider.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ms-toolsai.jupyter
	at P (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:149:59064)
	at set variableProvider (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:161:237136)
	at n.create (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:86445)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101040
	at Array.forEach (<anonymous>)
	at By.addImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:101013)
	at /home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99999
	at Array.forEach (<anonymous>)
	at By.batchAdd (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:99969)
	at By.createNotebookControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98791)
	at By.loadControllersImpl (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:98251)
	at By.loadControllers (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:97901)
	at By.<anonymous> (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:96781)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:949)
	at i.value (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:285:19835)
	at r.B (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:732)
	at r.C (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:802)
	at r.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:90:1018)
	at Zy.buildDummyEnvironment (/home/~/.vscode-oss/extensions/ms-toolsai.jupyter-2024.8.1-universal/dist/extension.node.js:304:145257)]
08:40:47.098 [trace] Conda file is conda

The missing proposal MUST be ad

You are running into this issue because you aren’t using the official version of vscode
You need to install the official version of vscode

extra/code 1.93.1-1 (14.9 MiB 87.0 MiB) (Installed)
    The Open Source build of Visual Studio Code (vscode) editor

This is unfortunately the only version of vscode I am able to install on Linux Manjaro... Not sure how I can install "the official version of vscode".
Or does this mean in other words, that I cannot use vscode properly from my Linux-Distribution?

Thank you for the logs

The missing proposal MUST be ad

You are running into this issue because you aren’t using the official version of vscode You need to install the official version of vscode
I find it kinda sad, that this issue got closed before I even got the chance to reply...
Can you at least answer me before you close the issue?


tknMode=11

Changing mist's tknMode=15 into tknMode=11 so it supports being served from behind CDN
Discord

11 sets bits 0(=1), 1(=2), and 3(=8). Those meaning reading+writing token from/to cookie, and reading from GET param (but not writing/setting to GET param - bit 2(=4)). As long as that bit isn't set, CDN mode is activated (since most CDNs usually ignore cookies, so they don't affect anything).

https://github.com/livepeer/livepeer-infra/pull/1782


Update and clean up project

This is pretty much a full project overhaul and clean up. See individual commits for more details. Let me know if you want me to break it up into several PRs.

@friederbluemle thanks for the update!


Unable to Read EEPROM using k5prog or CHIRP

I apologize to use this repo to report, as I am not sure if it happens here, but for @joaquimorg repo (which has no option to post issues):
There seems to be an issue where reading eeprom with k5prog or chirp does not work. In CHIRP, it manifests as error
Header Short Read

It is not an issue with cable loose, because after receiving this error, I can flash egzumer firmware and read its eeprom in chirp all without touching the cable. And I have reproduced this many times.
I tried to debug why, but I was not able to figure it out. I have a feeling it has to do with "SerialConfigInProgress()"

Hi, you can add the issue to my repo, thanks.


Confusing on using the payment_method_token

Hi, I want to use a payment method token to do a new transaction, but I got errors as follow.
[{
  code: '91564',
  attribute: 'payment_method_nonce',
  message: 'Cannot use a payment_method_nonce more than once.'
}]

Steps for a reproducing.

server side: use the payment_method_token to create a nonce
client side: use the nonce to do 3D verification and then got a new nonce
server side: use the new nonce to create a sale transaction

Is there anything that I have missed?

Hi @justqyx,
The overall process as you've described it is correct.
I'm looking through the logs for the second payment method nonce, and I'm seeing a GET request that seems to be fetching the payment method nonce details. This is consuming the payment method nonce before the transaction is created.
Do you have any code on the client or server that might be causing this?

Hi @skunkworks Thanks for your reply.
I forgot to declare that all of my code is running in the Braintree sandbox environment. And the JS SDK is v3.5.0
The server side code is work with a simple front-end demo in the past few weeks. But now I'm developing a production UI, and getting the error I've got above. So I use the simple front-end demo which I've used to test before and unfortunately I got the some error in splite of the credit card part is work.
Here is some simple code of my front-end demo.
function invokeWithSavedToken(clientInstance, paymentToken) {
    console.debug("Request a nonce from backend");
    $.post(nonceUrl, { token: paymentToken }, function(data) {
        console.debug(`Got: ${data.nonce}`);
        start3DVerify(clientInstance, data.nonce);
    }, 'json');
};

function invokeWithUsingNewCreditCard(clientInstance) {
    $('#new-credit-card-wrapper').removeClass('hidden');

    braintree.hostedFields.create({
        client: clientInstance,
        styles: window.creditCardStyles,
        fields: window.creditCardFields
    }, function(hostedFieldsErr, hostedFieldsInstance) {
        if (hostedFieldsErr) {
            console.dir(hostedFieldsErr);
            return;
        }

        console.debug('Loading Braintree iframe success');

        $submit.removeAttr('disabled');

        form.addEventListener('submit', function(event) {
            event.preventDefault();
            invoke3DFlowByNewCreditCard(hostedFieldsInstance, clientInstance);
        });
    });
};

function start3DVerify(clientInstance, paymentTokenNonce) {
    braintree.threeDSecure.create({ client: clientInstance }, function(_, threeDSecure) {
        var $container = $('#three-d-iframe');
        console.log('before 3d: ', paymentTokenNonce);

        threeDSecure.verifyCard({
            nonce: paymentTokenNonce,
            amount: parseFloat(amount),
            addFrame: function(err, iframe) {
                $container.append(iframe);
            },
            removeFrame: function() {
                $container.empty();
            }
        }, function(err, payload) {
            if (!err) {
                console.log('after 3d: ', payload.nonce);
                $('input[name="payment_method_nonce"]').val(payload.nonce);
                form.submit();
            } else {
                console.error(err);
            }
        });
    });
};

Hi,
Your client-side code looks correct, so it's likely that the issue is in the server code that occurs after the form is submitted.
Can you check whether your server code calls CreditCard#from_nonce before creating the transaction? This method consumes the nonce before you can transact with it.

@skunkworks  Hi,
I found that there are another two steps using the new nonce before I use the new nonce to create a new transaction from Braintree.

get the 3d secure info by the new_nonce
get the token by the new_nonce

The first one is the common flow for the online business. And the second step is used to checked token which can be fetched by the new nonce whether belongs to the customer.
def check_nonce_owner
  return true if paypal_nonce?(@payment_method_nonce_type)

  # Try to get the token by the `new nonce`
  @credit_card = @braintree_gateway.credit_card.from_nonce(params[:payment_method_nonce])

  # I have store the user's token into db, so I could confirm whether the new nonce is belongs to
  # the current customer or not.
  if current_platform_customer.tokens.braintree_platform.exists?(token: @credit_card.token)
    @ignore_three_d_secure = false
  else
    render_code_422('order.transaction.void_payment_token_nonce')
    return false
  end
rescue Braintree::NotFoundError
  # the nonce is not created by token, so skip
  return true
end

Will the new nonce be consumed if I call the from_nonce interface which provided by the CreditCardGateway instance?

Hi @skunkworks
After a debugger, the line code as follow will cause the new nonce to be consumed.
@credit_card = @braintree_gateway.credit_card.from_nonce(params[:payment_method_nonce])

So I may have to found an another way to check the nonce owner. Thanks for your reply and time.


Move settings to lib

So that we don't need to have user put those two lines in their rake file
-  app.development do
-    app.info_plist["ProjectRootPath"] = File.dirname(__FILE__)
-  end

Why did this get closed?

Zhigang this is a good PR, I think we just need to tweak it some. For example, we'll need to eval ApplicationStylesheet first, then any stylesheet that changed that is not the stylesheet of the current controller. Then the current controller.

@twerth silly me, I was sending out three separate PR. Should have sent them all in one pull request. :sob:

@twerth and also, I don't think we need to worry about the order. It's now restyling after all the classes are loaded in. So, shouldn't matter which ones got loaded first. right?
https://github.com/infinitered/rmq/blob/2ac7dff1753e1b17e10fa3617621d67a189609b3/motion/ext.rb#L88-L101

And also I'm thinking about reloading all the files while we are at it, why only stylesheets, let's reload the view controller and models as well.
def rmq_reload_all(debug=false)
  return unless root_path = RubyMotionQuery::RMQ.project_path

  path_query = "#{root_path}/**/*.rb"
  puts path_query if debug

  @files_modified_date ||= {}
  Dir.glob(path_query).each do |file_path|
    modified_date = @files_modified_date[file_path]
    modified_date = RubyMotionQuery::RMQ.build_time if modified_date == nil
    if File.mtime(file_path) > modified_date
      eval(File.read(file_path))
      puts "Reloaded #{file_path}" if debug
      @files_modified_date[file_path] = File.mtime(file_path)
    end
  end

  "Reloaded"
end

What do you think?

I think non stylesheets present many problems, which we can address later, but we should focus on making stylesheets super solid first.

I just assumed that order matters, I really don't know.

@twerth yeah, you're right... Then we should just merge #243 , it should be pretty solid :smile:

@twerth holdon, let me just fix this PR. Two seconds :)

Zhigang, my only concern here is it has to check a lot of stylesheets every second (or whatever) interval, even ones that aren't applicable, such as stylesheets for other controllers. What are your thoughts about that?
If it doesn't make a difference, with say 100 stylesheets, then that's fine. The most efficient, IMO, would be check:

The ApplicationStylesheet
Any module stylesheets that are included in the current controller's stylesheet
The current controller's stylesheet

If any of those are new, then eval just those and reapply the styles.
Your thoughts please.

@twerth Ideally, in my opinion. We should do it only when user wants to. Like the rmq_reload_all method I paste above.
Let user type reload in the REPL to trigger or better yet, we can bind a hotkey like Cmd+R in the simulator to see the changes.
Doing it automatically regardless of the interval or files to check, it's going to have a performance cost.

Other than that, I'm not too concerned about the performance. it's on Mac, and development only~~~ :smile:

There is another issue which I think is even more important. Exception Catching

Ok, I'll merge this in, test performance, and change it if I find it's not as performant as I'd like. I want to make sure you get credit for your changes.
And yes, exception catching, we've had trouble with that so far, it would be awesome if you could figure out how to do that.

Especially with live reloading in place, it's easier to make typos or unfinished changes. If it got pickup by the 0.5 seconds interval. It might crashes the app.

@twerth thx :beers:

Hey @zhigang1992 I'm fixing some bugs in here, I have a question, why are you setting the date of the file to build_time, rather when the file was modified. Would that cause all files the be re-evaled the first time that's run?

@twerth no, it shouldn't. it only eval those files whoes file system modified date is older than the record we have, which by default is the build time.
:)


README: remove getChildContext in child example

I think the getChildContext is extra when you are trying to use the context.

Thanks!


Add guidelines for new algorithms (docs and skeletons)

Rough draft of the developer docs, closes #235.
I've put some design principles on writing. The idea is to not only write the developer documentation but at the same time evaluate our current API, specify the main objectives of the library and where we want it to be in the future, so that we can think about [if, when and how] we want to restructure.
Opinions, comments, critiques, things I've not considered, etc. are appreciated!

Found this guide to be very helpful! I really like the skeleton template code for new samplers!

I saw a small, possible mistake in the VIAlgorithm class documentation that may be relevant here. I described it in #700 .
I also still really like this helpful doc.

Will this be merged and is it still up to date?

Will this be merged and is it still up to date?

It should be up to date, but if you find anything outdated, just push a commit (or let me know)!


Delete this repo

Is the code in this repo used anywhere? Did it get superseded by https://github.com/kubernetes/csi-translation-lib ? If so, we should delete this repo.
CC @davidz627 @msau42

supersceded by: https://github.com/kubernetes/kubernetes/tree/master/staging/src/k8s.io/csi-translation-lib
kubernetes-csi/kubernetes-csi-migration-library should be deleted.
/approve


Caching in nested derivations

Since in Autonomic we want granuralize the cache by solution, I trying to build in my extended makes a main.nix file that allow me from a main derivation collect multiple lazy derivations

Get all .lobster files from my repo (pathsMatching)
Create the lazy makeDerivations
Collect all created lazy makeDerivations

So I made this based on some builtins
{ makeDerivation
, path
, inputs
, makeSearchPaths
, pathsMatching
, ...
}:
let

  ## Get lobster solutions
  solutionNames = pathsMatching {
    regex = ".*\\.lobster";
    target = "/code";
  };

  lib = inputs.nixpkgs.lib;

  ## Build a single solution file
  makeSolution = name: { src }: {
    name = "/solution/lobster/${name}";
    value = makeDerivation {
      env = {
        envTargets = path src;
      };
      name = "build-solutions-lobster-${name}";
      searchPaths = {
        bin = [
          inputs.nixpkgs.lobster
        ];
      };
      builder = ./entrypoint.sh;
    };
  };

  ## Lazy functions
  solutions = builtins.map
    (solutionName: {
      name = "/solution/dirOfSolution/lobster/${solutionName}";
      value = (makeSolution solutionName {
        src = "${solutionName}";
      }).value;
    })
    solutionNames;

in
## Collect lazy functions
makeDerivation {
  env = {
    envSolutions = lib.attrsets.catAttrs "value" solutions;
  };
  builder = "echo $envSolutions > $out";
  name = "solution-dir-of-solutions-for-lobster";
}

Initially, I thought that since a single derivation was created for each file these derivations will be cached, however, seems it wasn't like that, I made the following:
I run this test once to build all derivations, after that, I modified only the file code-codeabbey-002-alejotru3012.lobster and I run again my test, but, I notice that all derivations were re-built and not only the derivation for the file that I modified
I got this output
these derivations will be built:
  /nix/store/0llv41qzl5qm5l1c3hax7hj1431w25nv-build-solutions-lobster--code-codeabbey-002-alejotru3012.lobster.drv
  /nix/store/0ym4c8hk55c8c9add8hlsq0as8jrjfxv-build-solutions-lobster--code-codeabbey-100-alejotru3012.lobster.drv
  /nix/store/572hjp4iiysfn4h1rk7bnhhphsv6nxah-build-solutions-lobster--code-codeabbey-120-alejotru3012.lobster.drv
  /nix/store/7ygd265h0xsvpp8rdhbqq7kqphrbrrik-build-solutions-lobster--code-codeabbey-023-alejotru3012.lobster.drv
  /nix/store/9nyr7y4zg44nqhwwn0d6f31qvqi0zvyg-build-solutions-lobster--code-codeabbey-102-alejotru3012.lobster.drv
  /nix/store/b9sin6417g6636y50ig1fnx93cd97797-build-solutions-lobster--code-codeabbey-015-alejotru3012.lobster.drv
  /nix/store/bldsbih8kzq9ajnwpbm2jz2nrv6gsjca-build-solutions-lobster--code-codeabbey-101-alejotru3012.lobster.drv
  /nix/store/czvgd8awqgqjblb1100cm1rw00aq1kq7-build-solutions-lobster--code-codeabbey-044-alejotru3012.lobster.drv
  /nix/store/dhm16pcffyy6czi6bd6ldvzh0kxavm95-build-solutions-lobster--code-codeabbey-038-alejotru3012.lobster.drv
  /nix/store/djyhj53xdpz0lfclwdbk2isz3p42iwnq-build-solutions-lobster--code-codeabbey-006-alejotru3012.lobster.drv
  /nix/store/gj1pabpzykpr6lh58cmhwj5ppv8vzw5p-build-solutions-lobster--code-codeabbey-043-alejotru3012.lobster.drv
  /nix/store/ikfjj6y6g0437sw4wak0qzz0a317yw9a-build-solutions-lobster--code-codeabbey-011-alejotru3012.lobster.drv
  /nix/store/kqpcl2bci0wam75fhf2g92qjz0gig7kz-build-solutions-lobster--code-codeabbey-003-alejotru3012.lobster.drv
  /nix/store/n4aznc7h9alz4h33k302i7j6xxiibyzz-build-solutions-lobster--code-codeabbey-085-alejotru3012.lobster.drv
  /nix/store/rjh21wsa8dqy5aw9pbrq97nnxcj6lf7k-build-solutions-lobster--code-codeabbey-016-alejotru3012.lobster.drv
  /nix/store/s52lmcb28akfh6i82vq1h0nfrhxnxfad-build-solutions-lobster--code-codeabbey-031-alejotru3012.lobster.drv
  /nix/store/v2f98dc5m3n33nkyvfkjf9q3njvqqidj-build-solutions-lobster--code-codeabbey-080-alejotru3012.lobster.drv
  /nix/store/ynpww3cy6kzppmlwyx2hwq1kxq0cbr2x-build-solutions-lobster--code-codeabbey-053-alejotru3012.lobster.drv
  /nix/store/p60pkp1g1wzvhs6c8xm7h2vdzvzpq9mh-solution-dir-of-solutions-for-lobster.drv
building '/nix/store/0llv41qzl5qm5l1c3hax7hj1431w25nv-build-solutions-lobster--code-codeabbey-002-alejotru3012.lobster.drv'...
building '/nix/store/kqpcl2bci0wam75fhf2g92qjz0gig7kz-build-solutions-lobster--code-codeabbey-003-alejotru3012.lobster.drv'...
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/002/alejotru3012.lobster
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/003/alejotru3012.lobster
building '/nix/store/djyhj53xdpz0lfclwdbk2isz3p42iwnq-build-solutions-lobster--code-codeabbey-006-alejotru3012.lobster.drv'...
building '/nix/store/ikfjj6y6g0437sw4wak0qzz0a317yw9a-build-solutions-lobster--code-codeabbey-011-alejotru3012.lobster.drv'...
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/006/alejotru3012.lobster
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/011/alejotru3012.lobster
building '/nix/store/b9sin6417g6636y50ig1fnx93cd97797-build-solutions-lobster--code-codeabbey-015-alejotru3012.lobster.drv'...
building '/nix/store/rjh21wsa8dqy5aw9pbrq97nnxcj6lf7k-build-solutions-lobster--code-codeabbey-016-alejotru3012.lobster.drv'...
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/015/alejotru3012.lobster
building '/nix/store/7ygd265h0xsvpp8rdhbqq7kqphrbrrik-build-solutions-lobster--code-codeabbey-023-alejotru3012.lobster.drv'...
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/016/alejotru3012.lobster
building '/nix/store/s52lmcb28akfh6i82vq1h0nfrhxnxfad-build-solutions-lobster--code-codeabbey-031-alejotru3012.lobster.drv'...
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/023/alejotru3012.lobster
building '/nix/store/dhm16pcffyy6czi6bd6ldvzh0kxavm95-build-solutions-lobster--code-codeabbey-038-alejotru3012.lobster.drv'...
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/031/alejotru3012.lobster
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/038/alejotru3012.lobster
building '/nix/store/gj1pabpzykpr6lh58cmhwj5ppv8vzw5p-build-solutions-lobster--code-codeabbey-043-alejotru3012.lobster.drv'...
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/043/alejotru3012.lobster
building '/nix/store/czvgd8awqgqjblb1100cm1rw00aq1kq7-build-solutions-lobster--code-codeabbey-044-alejotru3012.lobster.drv'...
building '/nix/store/ynpww3cy6kzppmlwyx2hwq1kxq0cbr2x-build-solutions-lobster--code-codeabbey-053-alejotru3012.lobster.drv'...
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/044/alejotru3012.lobster
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/053/alejotru3012.lobster
building '/nix/store/v2f98dc5m3n33nkyvfkjf9q3njvqqidj-build-solutions-lobster--code-codeabbey-080-alejotru3012.lobster.drv'...
building '/nix/store/n4aznc7h9alz4h33k302i7j6xxiibyzz-build-solutions-lobster--code-codeabbey-085-alejotru3012.lobster.drv'...
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/080/alejotru3012.lobster
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/085/alejotru3012.lobster
building '/nix/store/0ym4c8hk55c8c9add8hlsq0as8jrjfxv-build-solutions-lobster--code-codeabbey-100-alejotru3012.lobster.drv'...
building '/nix/store/bldsbih8kzq9ajnwpbm2jz2nrv6gsjca-build-solutions-lobster--code-codeabbey-101-alejotru3012.lobster.drv'...
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/101/alejotru3012.lobster
building '/nix/store/9nyr7y4zg44nqhwwn0d6f31qvqi0zvyg-build-solutions-lobster--code-codeabbey-102-alejotru3012.lobster.drv'...
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/100/alejotru3012.lobster
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/102/alejotru3012.lobster
building '/nix/store/572hjp4iiysfn4h1rk7bnhhphsv6nxah-build-solutions-lobster--code-codeabbey-120-alejotru3012.lobster.drv'...
I'm building for this file /nix/store/y4bhzlcjidzd0id5gg3lcsrv0sy784ks-head/code/codeabbey/120/alejotru3012.lobster
building '/nix/store/p60pkp1g1wzvhs6c8xm7h2vdzvzpq9mh-solution-dir-of-solutions-for-lobster.drv'...
/nix/store/bxsjkisbd3bf70j9z6vpwmnyl9caxwvn-solution-dir-of-solutions-for-lobster

so I have these questions
Is this the expected behavior? maybe I'm misunderstanding the cache? or am I forgetting something to get a solution for my problem?.
Is it possible to have a granular cache using the approach that I propose?
Finally, I know that I can use an approach like /lintWithLizard to get a single derivation by solution, so at this moment, I'm looking for a method to call all that individuals outputs /lintWithLizard/ at the same time.

Perfect, now it's clear for me
Thx

this solves your problem, I just tested it:
diff --git a/makes/solutions/lobster/main.nix b/makes/solutions/lobster/main.nix
index abe254c77..8268b9ecc 100644
--- a/makes/solutions/lobster/main.nix
+++ b/makes/solutions/lobster/main.nix
@@ -1,5 +1,5 @@
 { makeDerivation
-, path
+, pathCopy
 , inputs
 , makeSearchPaths
 , pathsMatching
@@ -20,11 +20,12 @@ let
     name = "/solution/lobster/${name}";
     value = makeDerivation {
       env = {
-        envTargets = path src;
+        envTargets = pathCopy src;
       };
       name = "build-solutions-lobster-${name}";
       searchPaths = {
         bin = [
+          inputs.nixpkgs.findutils
           inputs.nixpkgs.lobster
         ];
       };

diff --git a/code/codeabbey/120/alejotru3012.lobster b/code/codeabbey/120/alejotru3012.lobster
index f815a500e..d6a6d64e0 100644
--- a/code/codeabbey/120/alejotru3012.lobster
+++ b/code/codeabbey/120/alejotru3012.lobster
@@ -4,6 +4,7 @@ lobster --pak alejotru3012.lobster

 import std

+# aasdf
 def input_data():
     let size = string_to_int(get_line(""))
     let data = get_line("")

these derivations will be built:
  /nix/store/cw5g8pr88crimymyn5jm2bkjsykh8dvn-build-solutions-lobster--code-codeabbey-120-alejotru3012.lobster.drv
  /nix/store/pg03lp8i26facg5kdfv7rchn6ii5kivr-solution-dir-of-solutions-for-lobster.drv
building '/nix/store/cw5g8pr88crimymyn5jm2bkjsykh8dvn-build-solutions-lobster--code-codeabbey-120-alejotru3012.lobster.drv'...

nice!!! thx


Write then read of VDP vram should return previously written value

According to this hardware deep-dive VDP hardware uses a read-ahead buffer for speed and other reasons. This results in some interesting behavior if you mix reads and writes. Most obviously:

write a value to the data port (mode=0)
read from the data port (mode=0)

Due to the read-ahead buffer, you will get back the written value, you will not get the value advanced by the pointer. There are other behavioral oddities here as well regarding how read and write deals with the vram pointer.
When reading:

value in read-ahead buffer is returned
read-ahead buffer is updated with value pointed at by current vram address
vram address is incremented

When writing:

vram pointed at by vram address is updated with new value
read-ahead buffer is set to new value as well
vram address is incremented

I have verified this with my own hardware but worth checking on yours as well. I'm using TMS9128.

Oh! another oddity: the initial vram pointer is setup differently depending on whether the vram write mask (0x40) is set or not. if write is set, then behavior as written is correct: vram pointer is just set to the passed in values. but if read is set (or write is not set i guess is a better way to put it), then it follows above read conventions: read-ahead buffer is primed with value pointed at by the passed-in values, and the pointer is incremented.
So, if you set vram address as a "read", then immediately write a value, it will be at the passed in values + 1. ex:

write 0x00 to register port (mode=1)
write 0x10 to register port (mode=1)
write 0xAA to data port (mode=0)

then 0xAA will be at 0x1001, not 0x1000.

Thanks for this. I'll take a look.

I have written a solution to this and my other ticket starting around here. I also wrote tests to verify this behavior here if you can utilize them (they're in swift bc my ultimate aim here is to have a C-based swift package but the actual usecases can be ported).

Also, thanks for writing this! 😄

Closing as fixed with commit ae1e404


Parsing 'TIMESTAMP WITH TIME ZONE'

Hi !
I have a bug while migration with alembic. I try to add column to table:
class Events(db.Base):
tablename = 'events'
id = sqlalchemy.Column(sqlalchemy.INTEGER(), primary_key=True)
type_ = sqlalchemy.Column(sqlalchemy.TEXT(), index=True, nullable=False)
timestamp = sqlalchemy.Column(sqlalchemy.TIMESTAMP(timezone=True), index=True, nullable=False)
data = sqlalchemy.Column(sqlalchemy.JSON())
__table_args__ = (sqlalchemy.Index('ix_events_data', data, postgresql_using="gin"),)

and Traceback:
File "/usr/local/bin/alembic", line 11, in
load_entry_point('alembic==0.9.10', 'console_scripts', 'alembic')()
File "/usr/local/lib/python3.6/site-packages/alembic/config.py", line 486, in main
CommandLine(prog=prog).main(argv=argv)
File "/usr/local/lib/python3.6/site-packages/alembic/config.py", line 480, in main
self.run_cmd(cfg, options)
File "/usr/local/lib/python3.6/site-packages/alembic/config.py", line 463, in run_cmd
**dict((k, getattr(options, k, None)) for k in kwarg)
File "/usr/local/lib/python3.6/site-packages/alembic/command.py", line 176, in revision
script_directory.run_env()
File "/usr/local/lib/python3.6/site-packages/alembic/script/base.py", line 427, in run_env
util.load_python_file(self.dir, 'env.py')
File "/usr/local/lib/python3.6/site-packages/alembic/util/pyfiles.py", line 81, in load_python_file
module = load_module_py(module_id, path)
File "/usr/local/lib/python3.6/site-packages/alembic/util/compat.py", line 83, in load_module_py
spec.loader.exec_module(module)
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "dispatcher/alembic/env.py", line 44, in
run_migrations_online()
File "dispatcher/alembic/env.py", line 38, in run_migrations_online
context.run_migrations()
File "", line 8, in run_migrations
File "/usr/local/lib/python3.6/site-packages/alembic/runtime/environment.py", line 836, in run_migrations
self.get_context().run_migrations(**kw)
File "/usr/local/lib/python3.6/site-packages/alembic/runtime/migration.py", line 321, in run_migrations
for step in self._migrations_fn(heads, self):
File "/usr/local/lib/python3.6/site-packages/alembic/command.py", line 156, in retrieve_migrations
revision_context.run_autogenerate(rev, context)
File "/usr/local/lib/python3.6/site-packages/alembic/autogenerate/api.py", line 415, in run_autogenerate
self._run_environment(rev, migration_context, True)
File "/usr/local/lib/python3.6/site-packages/alembic/autogenerate/api.py", line 451, in _run_environment
autogen_context, migration_script)
File "/usr/local/lib/python3.6/site-packages/alembic/autogenerate/compare.py", line 22, in _populate_migration_script
_produce_net_changes(autogen_context, upgrade_ops)
File "/usr/local/lib/python3.6/site-packages/alembic/autogenerate/compare.py", line 48, in _produce_net_changes
autogen_context, upgrade_ops, schemas
File "/usr/local/lib/python3.6/site-packages/alembic/util/langhelpers.py", line 313, in go
fn(*arg, **kw)
File "/usr/local/lib/python3.6/site-packages/alembic/autogenerate/compare.py", line 75, in _autogen_for_tables
inspector, upgrade_ops, autogen_context)
File "/usr/local/lib/python3.6/site-packages/alembic/autogenerate/compare.py", line 168, in _compare_tables
inspector.reflecttable(t, None)
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/reflection.py", line 618, in reflecttable
table_name, schema, **table.dialect_kwargs):
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/reflection.py", line 369, in get_columns
**kw)
File "/usr/local/lib/python3.6/site-packages/cockroachdb/sqlalchemy/dialect.py", line 113, in get_columns
typ = sqltypes.NULLTYPE()
TypeError: 'NullType' object is not callable
Warning is SAWarning: Could not parse type name 'TIMESTAMP WITH TIME ZONE'
The problem is while calling def get_columns  with regex  m = re.match(r'^(\w+)(?:(([0-9, ]*)))?$', type_str). Is it a bug and I can create PR ? Or is sm not yet supported ?

There's another PR #31 that fixes the NULLTYPE problem, although there are still some open questions about how TIMESTAMP WITH TIME ZONE should be handled. If changing the regex to allow spaces and adding TIMESTAMP WITH TIME ZONE (and its alias TIMESTAMPTZ) to the type map is all it takes, a PR (with tests) would be welcome.

@bdarnell I think the first order error is that we should not spell out the name timestamp with time zone in the introspection tables. I have seen other tools choke on this. pg reports timestamptz there and we should do the same.


Declare all variables as !default to allow easier theming

This change will allow users do things like:
@import 'myvars'
@import 'pathto/solid'

where myvars could be something like
$sans: "Gill Sans", Verdana, sans-serif;
$base-font-size: 12px;

Yaaaaaaaaa I am into this. Thanks @mshuster


Indy: Separate init-container for getting admin identity crypto in indy-ledger-txn

Description
As a user I want to be able to use other secret storage backends than Hashicorp Vault. A separate init container in indy-ledger-txn would separate the crypto obtaining code from crypto usage code.
That means:

The indy-ledger.sh input params should include just: $IDENTITY_DID, $IDENTITY_VERKEY, $IDENTITY_ROLE, $ADMIN_SEED, $POOL_GENESIS_PATH
The new init container should obtain just the ADMIN_SEED from Vault and pass it into the main container using e.g. a shared volume.
The $IDENTITY_DID, $IDENTITY_VERKEY and $IDENTITY_ROLE will be passed as values to the indy-ledger-txn Helm chart (as the admin identity and new identity might come from different orgs)

For simplicity, obtain also the ADMIN_DID in the init container and pass it as well to the shell cript.

@himanshulalarya @sownak I've had a look at PR #168, shouldn't have been merged yet:

The IDENTITY_PATH won't be needed
IDENTITY_SEED won't be passed from the AC (the AC has access just to public crypto => DID and verkey, we've talked about this already)
I don't see the indy-ledger.sh script modifed => there's Vault still being accessed in the script and also the input params in the Helm chart for this script are wrong
You use Values.organization.name.adminIdentity.did in the Helm chart, I don't see it in the Helm Release
...


Resource Plugins: Add doc and change helm variable

Description
This PR introduces references to the external plugins' git repository in the liqo documentation and changes the helm variable name from externalMonitorAddress to resourcePluginAddress.

/test


fixup spacing part 2

a couple of spacing issues missed out on the first pass

Looks like it's just style changes so if Jiten is happy, I'm happy.

Looks great, please merge


Update README.md

AngularJS is in LTS mode
We are no longer accepting changes that are not critical bug fixes into this project.
See https://blog.angular.io/stable-angularjs-and-long-term-support-7e077635ee9c for more detail.

Does this PR fix a regression since 1.7.0, a security flaw, or a problem caused by a new browser version?

What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change?
Please check if the PR fulfills these requirements

[ ] The commit message follows our guidelines
[ ] Fix/Feature: Docs have been added/updated
[ ] Fix/Feature: Tests have been added; existing tests pass

Other information:

@googlebot I signed it

Closing this PR spam/invalid. It seems superfluous or not a meaningful, relevant change.
As you it appears that you may have created this PR as part of your participation in Hacktoberfest, Please review their note regarding quality before making additional PRs: https://hacktoberfest.digitalocean.com/details#quality