graphics(devguide): new images for architecture guide

also note, airplane.png is on master, but commented out in jade because size/layout looked wrong.
Can you please note any changes needed on a conceptual level, as well as missing graphics?
I noticed that angular.io/public/resources/images/devguide/architecture/module.png and angular.io/public/resources/images/devguide/architecture/overview2.png need to be updated as well.
Any others?

Some thoughts on the technical aspects of the new diagrams:
databinding.png should be rethought as the {{}}, [], () are in confusingly different sizes and weights and the two-way databinding, [(ngModel)] isn't represented properly at all. Also, it must be ngModel, not ng-model.
dependency-injection.png doesn't make sense to me. The original attempts to convey the notion that the service requested by the constructor is injected ("flying") in.  That's now how I read the diagram now.
injector-injects.png has a similar problem. Where is that service going? Why is the word "component" so small?
overview.png  is based on an old overview diagram and is missing the module story in the upper left of the current diagram.
parent-child-binding.png confuses me. I'm not sure the original was all that hot either. But this one I didn't get at all.


Added working support for private storage

Description:
This is a fixed version of #16878. It adds support for marking Store objects objects as private to prevent data exposure.
Compared to the original PR it:

fixes the corruption bug in the original PR caused by not properly truncating the storage file when writing JSON files using utils.json.save_json()
Implements atomic file replacement in the helpers.storage.Store class to prevent file corruption if the system crashes while writing a storage file.
Ensures that the file permissions of existing storage files get updated if they are now marked as private and the contents is updated.
Adds test cases to test/helpers/test_storage.py to test that updating an existing storage file works correctly.

Related issue (if applicable): fixes #16349
Pull request in home-assistant.io with documentation (if applicable): N/A
Example entry for configuration.yaml (if applicable):
N/A
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox.

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.io N/A

If the code communicates with devices, web services, or third-party tools:

[x] New dependencies have been added to the REQUIREMENTS variable (example). N/A
[x] New dependencies are only imported inside functions that use them (example). N/A
[x] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py. N/A
[x] New files were added to .coveragerc. N/A

If the code does not interact with devices:

[x] Tests have been added to verify that the new code works. N/A

@amelchio I fixed the merge conflict but it seems that you also reverted a fix to a broken test file (tests/components/emulated_hue/test_init.py) and I don't know how to put it back without pushing a whole new pull request. Any suggestions?

OK, I just added the file back at my end and pushed it again. It seems to work now.

@nickovs Yes, fine to handle the revert like that 👍. You can push additional commits until the PR is merged, that will also work to address review comments.

OK. I wrote a test suite for the underlying util/json.py code, which was largely untested before. These tests of necessity do some I/O, since they are testing file system operations, but they take very little time to do so and it's good to have this code tested. There are still some pathways between the upper layers of the storage system and the low-level file representation but, as discussed above in the code comments, this would require some rather different test suites to be written.

Alright let's try again, great work! 👍


max_duration (of vehicles) is ignored in multi depot scenario

Describe the bug
First of all, thank you for all the work that goes into PyVRP. Highly appreciated.
I'm trying to work my way into modelling a locomotive scheduling problem as VRP with PyVRP. This is a multi-depot problem where the vehicles (=locomotives) have some maximum duration they are allowed to drive. However, I get very weird solutions...
Code sample
from pyvrp import Model
from pyvrp.plotting import plot_solution
from pyvrp.stop import MaxRuntime

COORDS = [
    (456, 320), # first depot
    (228, 0),  # second depot
    (912, 0),
    (0, 80),
    (114, 80),
    (570, 160),
    (798, 160),
    (342, 240),
    (684, 240),
    (570, 400),
    (912, 400),
    (114, 480),
    (228, 480),
    (342, 560),
    (684, 560),
    (0, 640),
    (798, 640),
]

m = Model()
depots = [m.add_depot(x=COORDS[idx][0], y=COORDS[idx][1]) for idx in range(2)]

for depot in depots:
    m.add_vehicle_type(2, depot=depot, max_duration=2000)

clients = [
    m.add_client(x=COORDS[idx][0], y=COORDS[idx][1], service_duration=500)
    for idx in range(2, len(COORDS))
]

locations = [depot, *clients]
for frm in locations:
    for to in locations:
        distance = abs(frm.x - to.x) + abs(frm.y - to.y)  # Manhattan
        m.add_edge(frm, to, distance=distance, duration=(distance/10))

res = m.solve(stop=MaxRuntime(5))
print(res)
plot_solution(res.best, m.data())

By setting the service duration to 500 this means each tour can maximally serve 4 (=2000/500) or rather 3 clients. However, I obtain lots of tours with five or more clients.
Note: the single depot case works better - all the tours have length at most 3 clients.

pyvrp 0.7.0
python 3.10.2
Linux (Ubuntu)

locations = [depot, *clients]

This is definitely wrong - see your previous issue in #507.

This solves the problem of infeasible routes.
However, I still get an objective: INFEASIBLE.
One may argue, that 22 vehicles is not enough, but even if I increase this to 210 I obtain a solution with infeasible objective where each tour is serving one client (hence 15 tours). And each of them should be feasible:
[route.duration() for route in res.best.get_routes()]
# [600, 554, 560, 592, 606, 638, 654, 616, 654, 570, 648, 742, 570, 596, 646]

Setting tw_early=0 and tw_late=2000 then returns a different solution, again with (6) timewise feasible routes and an objective value.
Maybe it is advisable to add some assertion statements about missing parameters or wrong parameter configurations to avoid that the users are shooting their own feet ;-)
Thanks for the help!

Setting tw_early=0 and tw_late=2000 then returns a different solution, again with (6) timewise feasible routes and an objective value.

Yes, the defaults for both these parameters used to be 0. The default for tw_late has been raised to MAX_INT in main due to #461, and will also be part of v0.8.0 in a few weeks.


Throttle seems to be global and not per request type

It seems I need to create a new api endpoint to query other methods, once a particular method has reached the rate limit.

I'm not sure I understand. The Twitter API is rate-limited per access token, not per request type: https://dev.twitter.com/rest/public/rate-limiting
What's the specific use case that's causing a problem?


Tests for ShuffleDataset

This PR adds tests for ShuffleDataset:

https://github.com/tensorflow/tensorflow/commit/481d6d75f6c792476b902d67b029a644eb7c94bf: add resource_mgr to op_kernel_ctx and iterator_ctx; resource_mgr is needed for ShuffleDataset to generate the random seed.

https://github.com/tensorflow/tensorflow/commit/54d862dbbf1b0469b5df1a8246ef743c29a6f66b: tests for ShuffleDataset.

cc: @jsimsa

@jsimsa Thanks for your review! The comments are addressed by the following commits:

https://github.com/tensorflow/tensorflow/pull/27969/commits/6238de4711c8a0e5d25394374a1a32e5f5a8755d: rename expect_items_equal to compare_order; also, enable ExpectEqual() return the error status if the input tensors are not equal.

https://github.com/tensorflow/tensorflow/pull/27969/commits/8ca3f0c2088e8c30d9c3236c98f053aa2e45c0d0: Improve the cardinality function and check the input count

https://github.com/tensorflow/tensorflow/pull/27969/commits/bccf25812b0dbe50aaa06d06b5c8c1c22dd9c371: add the reshuffle tests and tests for ShuffleAndRepeatDataset

@jsimsa 8 of the tests fail, but could not access the logs. I rebase my code to be the latest and run the tests for tf.data on my laptop using bazel test //tensorflow/core/kernels/data:*. They can run successfully.
I just added another commit (https://github.com/tensorflow/tensorflow/pull/27969/commits/9ea146a83b5ea9d2d1dceee54ff2994e36b1335b) to revise the docstring. Could you please reapprove it to trigger the tests?

@jsimsa Just a kindly reminder that this commit (https://github.com/tensorflow/tensorflow/commit/9ea146a83b5ea9d2d1dceee54ff2994e36b1335b) is submitted to address your comment. Could you help review the change when you get a chance?

Ubuntu Sanity test failed, but the log is not accessible. All the changed files have been checked by clang-format/buildifier command. Did not see any issue at my side.


handle the internal lzw bitmap format

port over from the c# / js code?
https://github.com/vpdb/vpx-js/blob/master/lib/gltf/lzw-reader.ts
https://github.com/freezy/VisualPinball.Engine/blob/master/VisualPinball.Engine/IO/LzwReader.cs
https://github.com/freezy/VisualPinball.Engine/blob/master/VisualPinball.Engine/IO/LzwWriter.cs

This has been implemented


Quote data not documented in  README

The /Data/equity/README.md file doesn't discuss quote file formats.  The documentation suggests that QuoteBars are built from tick data but neither the tick quote data files nor the second quote files are documented.  Examples of such files include:
Data/equity/usa/tick/spy/20131010_quote.zip
Data/equity/usa/second/spy/20131010_quote.zip
The format for the tick quote file is pretty obvious, but the second (bar) quote format is not.  It would be helpful if this format was documented in the README as the trade file format is.
Thanks!
Checklist

[x] I have completely filled out this template
[x] I have confirmed that this issue exists on the current master branch
[x] I have confirmed that this is not a duplicate issue by searching issues

[x] I have provided detailed steps to reproduce the issue

Duplicate of https://github.com/QuantConnect/Lean/issues/5135. Thanks for reporting though!


Stub out the FastCGI API

This code is copied from https://github.com/IBM-Swift/Kitura-net/tree/master/Sources/KituraNet/FastCGI
The stubs need to be replaced by proper SwiftNIO based implementations.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Verified by building locally


Support for adding annotations to service account

Fixes: https://github.com/cockroachdb/helm-charts/issues/49

@udnay @abhishekdwivedi3060 @prafull01 PTAL

@prafull01 can you triage this PR please

@junaid-ali Can you please rebase your branch with the latest changes in the master. I will merge this post that.

@prafull01 rebased, and also made a minor change to segregate the main service account annotations from self signer one.


Support for composite environment repos

Fixes #495

Current coverage is 61.87% (diff: 0.00%)

Merging #595 into master will decrease coverage by 8.59%

@@             master       #595   diff @@
==========================================
  Files            63         12     -51
  Lines          2073        383   -1690
  Methods           0          0
  Messages          0          0
  Branches        349         51    -298
==========================================
- Hits           1461        237   -1224
+ Misses          472        121    -351
+ Partials        140         25    -115

Powered by Codecov. Last update 47aa19f...214a5a0

Looking good. Some comments inline above.

👍


JumpStart HCI Box: unable to install the DataDog agent and getting error "system administrator has set the policies to prevent this installation"

Hi Team,
I am trying to install DataDog Agent on HCI node and unable to install. Getting error  "system administrator has set the policies to prevent this installation".
I have created a GPO for Windows Installer and set the settings as attached. GPO settings are also applied at Node level still no luck. Please help in installing the same in HCI Box Node if at all possible.

What user context are you using to attempt the install on the HCI node? Also, how are you accessing the node? Hyper-V console? PowerShell?

Hi Dale,
Thanks for your email.
I am using local admin account created as a part of Cluster deployment in jumpstart.local domain.
To connect to node, am using Hyper-V and then logging onto node.
Get Outlook for iOShttps://aka.ms/o0ukef

From: Dale Kirby @.>
Sent: Wednesday, July 24, 2024 11:14:19 PM
To: microsoft/azure_arc @.>
Cc: rohillalakhan @.>; Author @.>
Subject: Re: [microsoft/azure_arc] JumpStart HCI Box: unable to install the DataDog agent and getting error "system administrator has set the policies to prevent this installation" (Issue #2618)
What user context are you using to attempt the install on the HCI node? Also, how are you accessing the node? Hyper-V console? PowerShell?
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/azure_arc/issues/2618#issuecomment-2248818988, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQD37TNMDHJU5GWWPIWR2ITZOADJXAVCNFSM6AAAAABLD7MTAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBYHAYTQOJYHA.
You are receiving this because you authored the thread.Message ID: @.***>

It’s the wdac policy. You can’t install 3p solutions on ashci without making the wdac policy exception.
Get Outlook for iOShttps://aka.ms/o0ukef

From: rohillalakhan @.>
Sent: Wednesday, July 24, 2024 4:32:10 PM
To: microsoft/azure_arc @.>
Cc: Subscribed @.***>
Subject: Re: [microsoft/azure_arc] JumpStart HCI Box: unable to install the DataDog agent and getting error "system administrator has set the policies to prevent this installation" (Issue #2618)
Hi Dale,
Thanks for your email.
I am using local admin account created as a part of Cluster deployment in jumpstart.local domain.
To connect to node, am using Hyper-V and then logging onto node.
Get Outlook for iOShttps://aka.ms/o0ukef

—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/azure_arc/issues/2618#issuecomment-2248848456 or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGL5X3CWRSMWKMONZVVMFCTZOAFMXBFKMF2HI4TJMJ2XIZLTSWBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLAVFOZQWY5LFVIZTEOBQGUYDKNBYHCSG4YLNMWUWQYLTL5WGCYTFNSBKK5TBNR2WLKRUGY4DCMJZGY2TIN5ENZQW2ZNJNBQXGX3MMFRGK3FMON2WE2TFMN2F65DZOBS2YSLTON2WKQ3PNVWWK3TUUZ2G64DJMNZZJAVEOR4XAZNKOJSXA33TNF2G64TZUV3GC3DVMWUTENBRGIZDKMJSGKBKI5DZOBS2K2LTON2WLJLWMFWHKZNKGI2DCOBRGM3DAOJSQKSHI6LQMWSWYYLCMVWKK5TBNR2WLKRTGI4DANJQGU2DQOECUR2HS4DFUVWGCYTFNSSXMYLMOVS2UNBWHAYTCOJWGU2DPJ3UOJUWOZ3FOKTGG4TFMF2GK.
You are receiving this email because you are subscribed to this thread.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Shape deletion not possible due to parent NoneType

Hi,
I am currently facing an issue in which I am not able to delete a shape in the way suggested in issue #246 because  ._element.getparent() returns None in rare cases (it generally works). I am working off of an existing powerpoint, trying to remove shapes by name.
Is there an alternative method to delete a shape or do I happen to do something wrong?
 def remove_shape(self, shape):         shape._element.getparent().remove(shape._element)
Thank you.

A None return value from element.getparent() indicates that element is the root element, something that would never be true for a shape. So I would look elsewhere in your code for how the root element ends up there.


Introduce RPC class and start wiring up in Service

RFC=0002

@wally-the-cartographer merge

Merge requested by authorized user cschuet. Merge queue now has a length of 1.


Add reverting comment filter to label_reverted

Often a "reverting" edit gives a clue that it wasn't for damage.  E.g. in Wikidata a clientedit that deletes a sitelink will often look like a reverting edit, but we should be able to filter those out.

This is done.  We can now filter on both the edit comment of the reverted edit and the edit comment of the reverting edit.


Help: I can't get the example to work as described (or at all)

Help needed, not even documented examples will work for me

I have tried this on multiple sites, including my personal site. I gave up, and am redoing another person's site, and have run into the same problem - no matter what I try, I cannot get the text to be copied to the clipboard per the documentation's instructions (or any way for that matter)

Expected behavior

I would expect that the example, listed below, would work if you just added in the third party CDN version of clipboard.js (I tried 2 different CDN's, as well as locally linking it.)

<button class="btn" data-clipboard-text="Just because you can doesn't mean you should — clipboard.js">
    Copy to clipboard
</button>
<script<EMAIL_ADDRESS>
Actual behavior

Even when clicked, nothing is logged to console, nothing new is copied to my clipboard.

Browsers affected

Tested on latest version of Google Chrome for Ubuntu and Windows, Firefox for Ubuntu and Android.

I am also facing this issue

I am also facing this issue

This is the same issue I have. I wonder what is happening.

This is the same issue I have. I wonder what is happening.

Hey, I made it work with "data-clipboard-text". Not sure if there is some problem in copying text from an input file but if you put the text to be copied in data-clipboard-text, it works perfectly

Hey, I made it work with "data-clipboard-text". Not sure if there is some problem in copying text from an input file but if you put the text to be copied in data-clipboard-text, it works perfectly

Hmm. I will give that a try. Thanks.

Hmm. I will give that a try. Thanks.

Just a quick question @lucasburlingham, have you instantiate the button in your JS file?
in order to work you need to create a new instance of the Clipboard and pass your selector
this would be the minimum code required to get the button work
<html>
  <head>
    <script<EMAIL_ADDRESS>  </head>
  <body>
    <button
      class="btn"
      data-clipboard-text="Just because you can doesn't mean you should — clipboard.js"
    >
      Copy to clipboard
    </button>
  </body>
  <script>
	new ClipboardJS(".btn"); // note that here you need to instanciate the button
  </script>
</html>

Just a quick question @lucasburlingham, have you instantiate the button in your JS file?
in order to work you need to create a new instance of the Clipboard and pass your selector
this would be the minimum code required to get the button work
<html>
  <head>
    <script<EMAIL_ADDRESS>  </head>
  <body>
    <button
      class="btn"
      data-clipboard-text="Just because you can doesn't mean you should — clipboard.js"
    >
      Copy to clipboard
    </button>
  </body>
  <script>
	new ClipboardJS(".btn"); // note that here you need to instanciate the button
  </script>
</html>

I think so, met me check...

I think so, met me check...

I made this little gif showing the example that you provided working
I hope is visible =)

I made this little gif showing the example that you provided working
I hope is visible =)

Hmm. I tried a different framework, and don't know if I had initiated the button when I was still using clipboard.js. I know that I tried the example from the clipboard.js docs, and it had not worked. I will try again.
Thank you.

Hmm. I tried a different framework, and don't know if I had initiated the button when I was still using clipboard.js. I know that I tried the example from the clipboard.js docs, and it had not worked. I will try again.
Thank you.

No worries were happy to help =)
@lucasburlingham  and @nandinib1999 do you think we can close this Issue?
if you have problems again we can re-open

No worries were happy to help =)
@lucasburlingham  and @nandinib1999 do you think we can close this Issue?
if you have problems again we can re-open

I think we can close the issue, yes.
Thanks a bunch!

I think we can close the issue, yes.
Thanks a bunch!

@vitormalencar I just realized that I had put the <script<EMAIL_ADDRESS>at the bottom of my body element like one would usually do with scripts, but it works now that I put it in within the head tags per your GIF.

@vitormalencar I just realized that I had put the <script<EMAIL_ADDRESS>at the bottom of my body element like one would usually do with scripts, but it works now that I put it in within the head tags per your GIF.

Hi @lucasburlingham
I also tested putting the script tag in the bottom, and works normally,
it might be another problem or another scrip that was breaking the code that you tested =)

Hi @lucasburlingham
I also tested putting the script tag in the bottom, and works normally,
it might be another problem or another scrip that was breaking the code that you tested =)


config/llff.json

Hi,
Could you explain what the issue is here?
Thanks

The config is in opt/configs/llff.json

您好， 您能解释一下这里的问题吗？ 谢谢

I have found this file, maybe it was not closed successfully due to network reasons
Sorry to disturb you


ariang restart all the time when implemented it on raspberrypi4b

Due to there is no more log, so I can't provide more detail about it. if you know how to get more log from it, I'm glad to try it again, thanks!
The docker-compose.yaml come from your sample and no change for itself.

# AriaNg is just a static web page, usually you only need to deploy on a single host.
  AriaNg:
    container_name: ariang
    image: p3terx/ariang
    command: --port 6880 --ipv6
    network_mode: host
#    network_mode: bridge
#    ports:
#      - 6880:6880
    restart: unless-stopped
    logging:
      driver: json-file
      options:
        max-size: 1m

This Docker image won't work with the current Raspberry Pi OS because it uses Linux Alpine 3.13 as it's base.
https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.13.0#time64_requirements
To make it work, you can just fork this repo, and modify the dockerfile
This line FROM p3terx/s6-alpine -> FROM oznu/s6-alpine:3.12-armhf

Same issue on Raspberry 3B+
ariang exited with code 139
ariang exited with code 139

Without the logs I have no way to determine the cause of the problem and the solution


Add a New Animated Button .

Description
Add a new animated button ! I am attaching a video here ! Please assign me under JWOC 2024.
Screenshots
https://github.com/Rakesh9100/Beautiify/assets/124901633/99b7e4dc-1e27-40c0-8549-f15bedbecbc1
Checklist

[X] I have checked the existing issues.
[X] I follow Contributing Guidelines of this project.
[ ] I am a IWOC'24 contributor.
[X] I am a JWOC'24 contributor.
[ ] I am a SWOC'24 contributor.

Code of Conduct

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

What name you will provide to this button @SohanRC

@Rakesh9100  Glow Up Button

Proceed @SohanRC


Some websites could not load when the extension is installed.

Description

The extension will make some certain websites become a white page, such as https://www.three.com.hk
Steps to Reproduce

Install the extension via Chrome Store and login DuckDuckGo account.

Open the website: https://www.three.com.hk

The website could not be correctly loaded.

Disable the extension, refresh the website, it works.

Expected behavior:

The extension should not affect the website.
Actual behavior:

The website could not be loaded when the extension is installed.
Versions

Extension: 2023.4.11
Browser: Chrome
OS: Linux

Hey @Revincx!
Thanks for the detailed report here. I'm sorry you've encountered this!
I've created a simple fix to prevent this issue: https://github.com/duckduckgo/content-scope-scripts/pull/424 this will be within the next extension release. We're likely to address this in a more robust manner in the coming weeks
Annoyingly turning off our protections doesn't fix this, otherwise in the meantime I would suggest this for you. (we also can't remotely fix this with our config that we have to prevent breakage also)
Thanks again!


Describe side effects of Disable Login

There are few references to this internal locks. Getting this information into sql-docs will help other developers when searching for relatively undocumented locks.

@VanMSFT
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Checking with the Product Group.

Following-up with PG again.

The current proposed text states that disabling a login, which takes a SERVER_PRINCIPAL metadata lock, will "stop statements being run by the login on other connections." However, it's not entirely clear whether this refers to stopping new statements from starting, or halting currently executing statements.
For better clarity, I suggest we revise this to explicitly state that this lock prevents the initiation of new statements, but doesn't typically interfere with statements that are already running at the time of disabling the login. For example, we might say:
"Disabling a login in SQL Server acquires a SERVER_PRINCIPAL metadata lock. This lock specifically blocks new statements from being initiated by the login on other connections, but doesn't typically halt or interfere with statements that are already in execution at the time of disabling the login."
Ideas?

Thanks, @0x7FFFFFFFFFFFFFFF for the suggestion. We'll revise the text once we get more information and confirmation from the Product Team.

Hi @brettshearer, sorry for the delay! I confirmed with our Product Team that this metadata lock behavior is not something we will document. I apologize for the inconvenience.


Can't include custom anchors to headings

I tried something like this:
### A Heading in this SO entry!

from this answer.
It doesn't work - rustbook simply strips the custom anchor.
We need such functionality to fix anchor links to headings of some sub-sections (like glossary.html#abstract-syntax-tree). Currently we have # Abstract syntax tree translated to # Абстрактное синтаксическое дерево (Дерево абстрактного синтаксического анализа) and it goes totally nuts, since urlencode will turn such a link into glossary.html#%D0%90%D0%B1%D1%81%D1%82%D1%80%D0%B0%D0%BA%D1%82%D0%BD%D0%BE%D0%B5-%D1%81%D0%B8%D0%BD%D1%82%D0%B0%D0%BA%D1%81%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%BE%D0%B5-%D0%B4%D0%B5%D1%80%D0%B5%D0%B2%D0%BE-%28%D0%94%D0%B5%D1%80%D0%B5%D0%B2%D0%BE-%D0%B0%D0%B1%D1%81%D1%82%D1%80%D0%B0%D0%BA%D1%82%D0%BD%D0%BE%D0%B3%D0%BE-%D1%81%D0%B8%D0%BD%D1%82%D0%B0%D0%BA%D1%81%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%BE%D0%B3%D0%BE-%D0%B0%D0%BD%D0%B0%D0%BB%D0%B8%D0%B7%D0%B0%29 which is unbearable.
So we need a way to specify alternative anchor name for linking.

Can you file this against rust-lang/rust please? This is just a mirror.


Option for the default Explorer viewlet to open

VSCode has amazing folder/project support, but oftentimes it's only used as a powerful text editor. That is, drag files in, do some editing (maybe with the help of Outline), and close all. User focus is on the files, but the 2 big blue buttons, Open Folder, Clone Repository, look so distracting. It costs 2 clicks to hide Folder and expand Outline.
So why not:

Add an option for the default Explorer viewlet to open? "telemetry.experiments.showDefaultViewlet": false just hides the sidebar.
Or, remember the last global choice? This seems to work in simple cases, but fails after using a folder/project or a Remote connection.
Or, simply open the topmost viewlet in Explorer as default? This doesn't work by now.

This is a fair feature request, however we do not have it on our immediate plan. Thus assigning to backlog and we might add this in the future. Thanks
@bpasero didn't we have some setting to control what happens when a new window is opened?

@isidorn Thanks for your response!

Not sure, I don't think so.
For me the explorer is not visible when I open empty windows at least:

For me the explorer is not visible when I open empty windows at least

That's often because the sidebar was shut when you last quit VSCode. The sidebar remembers its last appearance in simple cases (like whether it's shut), but not very precisely (see my examples above), and not quite configurable.


In 3 column layout, adding content in the middle column in a list causes it to spill over into the 3rd column

Love the template but I've hit a problem straight way.  I'm adding simple list content  list content to the middle column, but it just overflows into the third dark grey code column.   There is no extra styling at play, I've not altered anything so far.
I've run over the styles I can see here but can't work out why it doesn't wrap.

Hello @arkid, could you link me a visual example of your problem ? maybe a jsfiddle or a screenshot ?
Maybe I can a find a solution for you.

I've attached a modified version of the index.html file in the package.   All I've done is add a standard list tag element within the initial paragraphs at the top of the page and you will see how these wrap.

index.txt

Hello @arkid,
I pushed a fix for your problem.
You can download latest version (1.0.3) and just change style.css file on your project.
Or you can see changes on the last commit here.
If you don't see any changes, don't forget to refresh your cache 😉
Please tell if I have fixed your issue 👍

Amazing thanks!!!


Documentation and audit of Guidance page

The guidance page contains some content/links that are no longer current. We should make sure to remove anything drastically outdated, while working on a consolidated set of documentation for the shared Jekyll theme.

Fixed (at least for now) by #21.


NX Access Token- not found

Report
For running this command, npx nx serve console, I get this error, NX Access token found. Where can I get the Access token, and how to see the UI page without getting the error.

Expected behavior
No response
Steps to reproduce the problem

Logs (if applicable)
example

Pezzo version
No response
How do you use Pezzo?
Local Development Setup

Same issue

@RohithPRK @dakshoza Not sure if you're still seeing it, but can you try to check a bit more into the logs of it?
The NX access token is a warning afaik, which means the errors you're seeing are probably about something else


fix: regenerate script toplevel resolution

Hi 👋🏻,
I wanted to check on #870. (EDIT: sorry for linking the issue without a real connection)
When loading the regenerate_test_rustdocs.sh script, it would just output Generating rustdoc with: cargo 1.80.1 (376290515 2024-07-16) and then exit promptly. Upon closer examination, the TOPLEVEL variable would end up having two values, thus silently crashing the rest of the program.
Though my bash knowledge is limited, I think this is what is happening:
git rev-parse --show-toplevel 2>/dev/null || cd -- "$(dirname -- "${BASH_SOURCE[0]}" )" &>/dev/null && cd -- .. &>/dev/null && pwd
# is either (in git repo)
true || true && true && true # execs both git and pwd
false || true && true && true # execs only pwd

Wrapping the second part of the logical OR resolves the issue.
It seems that #856, introduced this and was recently committed.

Yup, I definitely messed that up — thank you so much!


fix validation bottleneck;

An unnecessarily large batch_size in validation loader appears to create a bottle neck due to too many system calls. Setting a constant batch_size of 4 fixes it.


perlPackages.TclpTk: init at 1.09

Description of changes

Adds Tcl::pTk perl package, with necessary dependencies included as well. Builds on darwin and linux, though GUI functionality of Tcl::pTk only tested on darwin.
Note to @agbrooks -- as you noted in #122472, my previous snippet for perlPackages.Tcl didn't work on linux. I had to update the makeMakerFlags to include tclsh and disable stubs. I still struggled with the tk issue noted there, and opted instead to add Tcl::pTk instead of Tcl::Tk for now.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[X] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[X] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[X] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[X] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/linking-a-compiled-library-for-perlpackages/19465/1

Result of nixpkgs-review pr 175775 run on x86_64-linux 1

10 packages built:

perl532Packages.Tcl
perl532Packages.TclpTk
perl532Packages.TextLevenshteinXS
perl532Packages.TkToolBar
perl532Packages.WebServiceValidatorHTMLW3C
perl534Packages.Tcl
perl534Packages.TclpTk
perl534Packages.TextLevenshteinXS
perl534Packages.TkToolBar
perl534Packages.WebServiceValidatorHTMLW3C

Result of nixpkgs-review pr 175775 run on aarch64-darwin 1

11 packages built:

bwidget
perl532Packages.Tcl
perl532Packages.TclpTk
perl532Packages.TextLevenshteinXS
perl532Packages.TkToolBar
perl532Packages.WebServiceValidatorHTMLW3C
perl534Packages.Tcl
perl534Packages.TclpTk
perl534Packages.TextLevenshteinXS
perl534Packages.TkToolBar
perl534Packages.WebServiceValidatorHTMLW3C

@GrahamcOfBorg build perlPackages.TclpTk perlPackages.TkToolbar perlPackages.Tcl bwidget

@stigtsp the only consideration that's not fully resolved is the use of bwidget and tk in Tcl. Neither are actually hard dependencies of Tcl, but pTk projects may need both depending on the set of widgets they utilize (see #122472). Since this list could very well grow if/when more Tcl-dependent packages are added, an option might be to have just Tcl be vanilla with no additional tcl packages, and have something like TclFull be the growing list, since I'm not confident that these two additional packages are the only ones that might want to be added.
The reason I didn't go down this route already is since no one has to date had a use for such a vanilla Tcl package for perl, so it seemed like it might be a premature optimization.

@GrahamcOfBorg build perlPackages.TclpTk perlPackages.TkToolbar perlPackages.Tcl

Thank you very much!


Quasiconvex/concave programming problem with addition operator

Following on from the conversation in google groups:
https://groups.google.com/g/cvxpy/c/Ufz2dez8KnU
import cvxpy as cp
x1 = cp.Variable()
x2 = cp.Variable()
BC = [3 * x1 + x2 <= 100]
Consider the two rather standard quasi-convex programs in cvxpy:
The following QCP solves without much trouble:
objCD = cp.sqrt(x1) * cp.sqrt(x2)
probCD = cp.Problem(cp.Maximize(objCD), BC)
probCD.solve(qcp=True, verbose=True)
print("x1 = ", x1.value, "and x2 = ", x2.value)
Whereas the following fails:
objCES = (cp.sqrt(x1) + cp.sqrt(x2)) ** 2
probCES = cp.Problem(cp.Maximize(objCES), BC)
probCES.solve(qcp=True, verbose=True)
print("x1 = ", x1.value, "and x2 = ", x2.value)

I'm starting to think that the real problem is that the CES objective function involves the product of two posynomials. Might this be what's going on behind the scenes?

It's probably a numerical issue, rather than anything to do with the mathematical type of the problem.

Just to give you a bit of context, in case you were unaware, CD stands for Cobb-Douglas and CES stands for Constant Elasticity of Substitution. These functions feature very widely in economics: both as production and utility functions.
For the CES function, you would typically assume a form:
(a1 * x1 ** b + a2 * x2 ** b) ** ( 1 / b)
for some 0 < b < 1 and a1 + a2 = 1.
For b -> 0, the CES specialises to the CD function (x1 ** a1) * (x2 ** a2)
For b -> -infty, it specialises to the Leontief function min( x1 / a1 , x2 / a2).
See https://economics.stackexchange.com/questions/361/how-can-i-obtain-leontief-and-cobb-douglas-production-function-from-ces-function
The n-variable case for large n shows up a lot in Computable General Equilibrium modelling. I'm currently looking at your work on QCP/GeomP to generalise existing approaches by avoiding derivatives and providing fast solutions.

@SteveDiamond it's weird that regarding numerical issues, MOSEK, SCS, ECOS, and CVXOPT all fail more or less immediately. SCS complains about degenerate problem data (see below):
Preparing to bisect problem

minimize 0.0
subject to 3.0 @ var0 + var1 <= 100.0
           var3728 <= var3740 + var3752
           SOC(reshape(-param3712 + 1.0, (1,), F), Vstack(reshape(-param3712 + -1.0, (1, 1), F), reshape(2.0 @ var3728, (1, 1), F)))
           SOC(reshape(var0 + 1.0, (1,), F), Vstack(reshape(var0 + -1.0, (1, 1), F), reshape(2.0 @ var3740, (1, 1), F)))
           SOC(reshape(var1 + 1.0, (1,), F), Vstack(reshape(var1 + -1.0, (1, 1), F), reshape(2.0 @ var3752, (1, 1), F)))

WARN: m less than n, problem likely degenerate
Finding interval for bisection ...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/riley/Documents/Research/software/cvxpydev/cvxpy/cvxpy/problems/problem.py", line 394, in solve
    return solve_func(self, *args, **kwargs)
  File "/home/riley/Documents/Research/software/cvxpydev/cvxpy/cvxpy/problems/problem.py", line 821, in _solve
    chain.reduce(), solver=solver, verbose=verbose, **kwargs
  File "/home/riley/Documents/Research/software/cvxpydev/cvxpy/cvxpy/reductions/solvers/bisection.py", line 206, in bisect
    problem, t, solver, low, high, max_iters_interval_search
  File "/home/riley/Documents/Research/software/cvxpydev/cvxpy/cvxpy/reductions/solvers/bisection.py", line 95, in _find_bisection_interval
    raise error.SolverError("Unable to find suitable interval for bisection.")
cvxpy.error.SolverError: Unable to find suitable interval for bisection.

Only SCS reports a failure due to trying to find an interval. All other solvers return a generic solver failure. If the issue is in finding the interval for bisection, then maybe it would be helpful if QCP allowed users to pass in interval information. Pinging @akshayka.

@rileyjmurray Wich version of SCS are you on? I just ran the script above and while I get some Solution may be inaccurate warnings, eventually the solution x1 =  16.670182250645297 and x2 =  49.98943470319022 is found.
CPLEX also finds x1 =  16.666969934058425 and x2 =  49.99909009046979 with no inaccuracy warning.

Can you clarify that that result is for the CD problem, not the CES?
On Thu, May 27, 2021 at 9:30 AM phschiele @.***> wrote:

@rileyjmurray https://github.com/rileyjmurray Wich version of SCS are
you on? I just ran the script above and while I get some Solution may be
inaccurate warnings, eventually the solution x1 = 16.670182250645297 and
x2 = 49.98943470319022 is found.
CPLEX also finds x1 = 16.666969934058425 and x2 = 49.99909009046979 with
no inaccuracy warning.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cvxpy/cvxpy/issues/1397#issuecomment-849186739, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AKZONAESY3GB6PVLHEJDRZLTPWAA5ANCNFSM45OGX3DQ
.

@path-doc Thanks for clarifying, I'm getting the same error as @rileyjmurray for the CES function.

@riley, users can already specify the bisection interval, via the kwargs low and high. https://www.cvxpy.org/tutorial/dqcp/index.html#solving-dqcp-problems
The issue is numerical. Somehow the canonicalized problem becomes very poorly scaled.
When I multiply the objective by 1/1000, and solve with MOSEK, I get
x1 =  8.336601640499596 and x2 =  74.99013270688198

which appears to be correct.
This suggests that we should really come up with an automatic scaling strategy, as we've discussed on and off for a while.


Custom datasources

Add a config option pointing to a directory, containing spec files for data sources. These are little python files, defining a few parameters, and containing TF init avd TF.load statements. You can control which additional modules and which features will be loaded.

With the v7 release, this is taken care of, but in a slightly different way. Easier.


Mdx Support

Closes #26
Overview
This PR provides support for MDX (markdown react). It does not enable the support of customizable extensions, as mentioned in the issue. I imagine that would be better suited for a different, additional PR.
As there were no automated tests already in place, I manually tested and verified the change.

Just what I was after!
Can we have a release?


Lint warning fix

Checklist

[x] I have read and understand the contribution guide

[ ] A CHANGELOG entry is included

[ ] At least one test case is included for this feature or bug fix

[ ] Documentation was added or is not needed

[ ] This is an API breaking change

Issue Resolved / Feature Added
Lint warning fix for VoiceControlDecorator
Enact-DCO-1.0-Signed-off-by: Stephen Choi<EMAIL_ADDRESS>

There are some more linter errors in addition to this one.

unused config variable shouldn't be warned. there's something else going on. closing PR


noodle: Explain Code History command

This is a super experimental command which relies on the output of "git log". It uses git logs support to understand function boundaries such that we can give commit history only for commits which change a function's body.
I spent a little while working out how to use things like the git extension API/etc, but this doesn't really work along those lines. However, this sort of functionality is implementable in gitserver so this shouldn't limit us there.
Test Plan: right clicked on a few functions and eye balled the output.
Demo at https://www.loom.com/share/30df43f6170a4a85bfba3c176dc1a680

This is a test comment on a draft PR. Ignore.

Right I am having CI issues because I am importing node:child_process. I see we do this in other places (eg localcontext), so I likely need to work out how to make this behave properly.


Add sample demonstrating startup script

Add a sample that demonstrates how to create a VM
and install Apache and a custom homepage on startup.
Drive-by fix: Use lint config generated by repo-tools, do not use
Node 8 features like destructuring.

I'll add a commit to your branch to check the samples and then revert it back. Please do not merge until I say 'OK' :)

Oh, it's not a branch, it's your repo. Sad :)  I wanted to temporary remove the branch filter 'master' from the samples_test task in .circleci/config.yml to verify it works in Circle, then put it back. Can you do it?

Alternatively, we can just merge and see if it fails! :)

Should I squash and merge and we see if it fails? It's a lot of new tools/configs for me. I probably missed one 😬 .
Do you usually push to a branch in this repo instead of your own (so others can push changes and run the CI)?

I prefer developing in branch exactly for this reason: I can tweak the Circle configuration to run whatever I need in this current branch, and it will run system and samples tests for me. Then revert Circle config changes and merge to master.
But in this particular case I suggest that you just merge :)  (after you get a required approval on samples code - not sure if it's @jmdobry or anyone else who should give it, not me definitely!)  You merge, it either passes samples tests or fails, we fix then if needed. Not a huge problem.

I thought you're approval is enough, GitHub thinks it's enough 😄 Pinging @jmdobry 🙏

@fhinkel and you know what? All tests have passed! :)

https://circleci.com/workflow-run/34b268c2-caa4-4e44-a860-f1cf0ca6a687


The compiler does not allow validating for an error if it is impossible in Typescript to make that error

TypeScript Version:
4.0.0-dev.20200730 | 3.9.2
Search Terms:
TS2367, validate
Code
This...
function divideTwoBy(divider: 1 | 2 ): number {
  return (2 / divider);
}

...compiles to this:
"use strict";
function divideTwoBy(divider) {
    return (2 / divider);
}

The compiler won't let me use this:
function divideTwoBy(divider: 1 | 2 ): number {
  if (divider === 0) { // Error: This condition will always return 'false' since the types '1 | 2' and '0' have no overlap. (2367)
    // Handle the error
  }

  return (2 / divider);
}

Expected behavior:
It is specified that the divisor can only be 1 or 2. The code in JS will have that validation since the TS compiler does not allow me to validate that it is not 0.
Actual behavior:
The code in JS does not have that validation.
I know that if I generate the declarations, this error will be noticed when using JS. But the problem is not the fact that someone can skip that warning, but the compiler does not allow handling the error in JS because for TS that error could never occur.
Playground Link:
https://www.staging-typescript.org/play?ts=4.0.0-dev.20200730#code/GYVwdgxgLglg9mABAExgNxsgpgFQO5wBCAngBSobYBOAXIgIyIA+iATIgJR1ggC2ARliqIA3gFgAUIkQxgicukxDEAXjWIADB1GTp0qAAsqcPIgDkATTghEEAIZIwcKCkXZE-YprMBuXYgBfSX8qLCgQKiRSdgB6V0ohDj8JAKA

You'll need type guards for now I think:
function isOneOrTwo(input: number): input is 1 | 2 {
    return input === 1 || input === 2;
}

function divideTwoBy(divider: number): number {
    if (!isOneOrTwo(divider)) {
        throw new Error('input is not divisible');
    }

    return 2 / divider;
}

Don't think this can be done generically without specifying the output of the type guard

@Haroenv Many thanks. I was using the first alternative until I remembered that it is possible to specify available values (I need an integer number greater than or equal to 1 and less than or equal to 32). For now, as you mention, I will return to that first option.

If you want typing for ts and checks for js - just use overloads:
function divideTwoBy2(divider: 1 | 2): number;
function divideTwoBy2(divider: number): number {
  if (divider === 0) { // ok

  }

  return (2 / divider);
}

const a = divideTwoBy2(4); // Argument of type '4' is not assignable to parameter of type '1 | 2'.(2345)

@AjiTae Amazing! I didn't know about it.
One more question. In case you are dealing with interfaces, would this be the correct way to do it? I ask this because I am not getting code completion inside the function.
function divide(parameters: MyParameters): number;
function divide(parameters: any): number {
    if (parameters.divider === 0) {
        throw 'You can not divide by 0';
    }

    return (parameters.dividend / parameters.divider);
}

interface MyParameters {
    dividend: number;
    divider: 1 | 2;
}

Playground Link

"any" is for anything, you need to specify some narrower type, something like this, I think:
function isObject(value?: unknown): value is object { // use some lib
  const type = typeof value
  return value != null && (type === 'object' || type === 'function')
}

type Unknown<T> = undefined | (T extends object ? {
    [P in keyof T]: Unknown<T[P]>;
} : unknown);

function divide(parameters: MyParameters): number;
function divide(parameters: Unknown<MyParameters>): number {
  if (!isObject(parameters))
    throw new TypeError('not an object')

  if (!isInteger(parameters.divider)) {
    throw 'divider not integer';
  }
  if (!isInteger(parameters.dividend)) {
    throw 'dividend not integer';
  }
  if (parameters.divider === 0) {
    throw 'You can not divide by 0';
  }
  return (parameters.dividend / parameters.divider);
}

interface MyParameters {
  dividend: number;
  divider: 1 | 2;
}

Playground Link


Current babel-core version deprecated (Known issue)

I'm receiving the following message when installing jscs
npm WARN deprecated<EMAIL_ADDRESS>Babel 5 is no longer being maintained. Upgrade to Babel 6.

Babel 6.0.0 was released on October 29th, 2015. http://babeljs.io/blog/2015/10/29/6.0.0/
Updated based on comment from @hzoo

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28163743-current-babel-core-version-deprecated-known-issue?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).

There are breaking changes so it won't just work. JSCS only uses babel for the parser so its fine just using babel 5 for now. Also we are switching to using cst which will just use babylon.

@hzoo

Also we are switching to using cst which will just use babylon.

Yeah, this week i will start working on it, if you not beat me to it :-)

Similar to https://github.com/jscs-dev/babel-jscs/issues/24. We should be able to remove babel-core and replace it for now.

We should just inline the types again instead of var types = require('babel-core').types;


Replace dummy_lookup_value vector with a JointLookup

Change dummy_lookup_value from a Vec<F> to a JointLookup<F>.
The table_id can be set to 0, since we're not using it anywhere yet.
Where we call combine_table_entry manually on it, the code can be changed to dummy_lookup_value.evaluate(...)

I'll take this one


Enhance DatastoreTransaction to support insert/upsert with deferred allocation of keys

Enhance DatastoreTransaction to support insert/upsert with deferred allocation of keys. Change the signature of commit method to return any generated keys.

Added new methods to insert/upsert entities with deferred ID allocation. Commit method now returns DatastoreTransaction.Response, which in turn can be used to retrieve the list of generated keys.


Instance types are way too small

We need larger instance types for running more pods. Let's not constrict ourselves right now.
Also more pods, needs more ENI(s), especially for AWS VPC CNI, or we run into ContainerCreating issue where pods are stuck. Context:

https://github.com/aws/amazon-vpc-cni-k8s/blob/master/docs/troubleshooting.md
https://github.com/aws/amazon-vpc-cni-k8s/blob/master/docs/eni-and-ip-target.md
https://webera.blog/eks-aws-default-vpc-cni-tuning-for-small-networks-a81cbfc48549
https://github.com/aws/aws-eks-best-practices/blob/master/content/networking/vpc-cni/index.md
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html

Also see:

https://instances.vantage.sh/aws/ec2/r7g.4xlarge
https://instances.vantage.sh/aws/ec2/r5d.4xlarge


As a user I want to be able to select my major and view the classes required for my major

I want to select my major from a dropdown menu on the front page. I then want to view the classes and arrange them in an order that
is suited to my needs.
Is this a good user story?

Preferably a little more specific and associated with a story to maintain Kanban consistency and ordered progression.
Otherwise, it has the right idea of being consumer first in the way it's stated.


Adding PSM Gas Consumption script

Description
Adds a script to our tests that allows you to check out the PSM cost of ovmSSTORE and ovmSLOAD under various conditions.
Questions

should this be put somewhere else?

Metadata
Fixes

Partially addresses YAS-423

Contributing Agreement

[x] I have read and understood the Optimism Contributing Guide and Code of Conduct and am following those guidelines in this pull request.

Closing in favor of https://github.com/ethereum-optimism/contracts-v2/pull/71


Using X360CE / generic controllers with Glosc

Hi and thanks for the great project. I have some issues with the project, though. First of all, I am using a generic controller with steam using the generic settings on steam. This results in four controllers and I know that disabling the generic support would solve that but it means that the generic controller will not work. When I start the game of choice using the Glosc shortcut, steamtarget.exe crashes. Though, the controller continues working after the crash within the game.
I also tried using the VDX (X360CE support for ViGEm), this also results in the crash of steamtarget.exe. Though, the controller will not work. I have tried both the PS4 and Xbox360 options on VDX. I tested the VDX solution (with my generic controller) for a game that supports PS4/Xbox360 controllers and it showed both controllers based on the option I selected each time.
I wonder if you can add support to VDX if it is not too much to ask. That would be really great for the project and it will support every controller out there since it is based on X360CE, without having to select the generic option.
I am using Windows 7 x64 and using VDX the controller shows as both PS4 and Xbox360 controllers depending on the option selected. Regards and thanks.
P.S. I am willing to do any tests that you require or any debugging if needed.

generic controllers already work perfectly fine.
Just enable XBOX Controller rebinding support and GloSC will not create four controllers anymore...

Yeah, I have tried with and without the XBOX Controller rebinding support. steamtarget.exe crashes.

Can you try this https://github.com/Alia5/GloSC/releases/tag/<IP_ADDRESS> ?


Just need a small help

I want to run this in my localhost so I have to change the code but i can't program in c so please tell me what to change in it so I can run in localhost

Untested, but changing line 83 in vulnserver.c to specify the localhost address in the first parameter to getaddrinfo should do the job. Given that you will need to recompile to do this however, you probably will need to gain at least basic C proficiency to do this.
It will probably be easier to just use a local firewall to prevent remote access if thats what you're worried about.

Thank you for the help


Create Your Own Blog About Web5

Create Your Own Blog About Web5
🚀 Goal
Create your own blog post about Web5 on your website.
🤔 Background
This issue focuses specifically on spreading more awareness about Web5. Your contributions here will help you spread your knowledge across the web and to our community!
🤝 How You Can Contribute
We've broken it down into smaller tasks. Every contribution counts!
🔑 Tasks and Acceptance Criteria
❗You must only assign yourself one task at a time to give everyone a chance to participate.❗
You may assign yourself your next task after your current task is reviewed & accepted.

[ ] You must host your content on your own website or channel.
[ ] Submit your content in a new Content Submission issue to our External Contributions as a PR.
[ ] Link your submitted PR in a comment here to count towards Hacktoberfest.

You must include the following in your PR:

[ ] Thumbnail
[ ] Title
[ ] Link to content
[ ] Your name

🌟 Resources

[ ] Our Blogs
[ ] Our YouTube channel

Getting Started

Comment ".take" on this issue to get assigned
Fork the repository and create a new branch for this task
Follow the tasks outlined above
Submit a pull request with your changes
Respond to any feedback during the review process

Questions?
If you have any questions or need clarification, please comment on this issue or join our Discord community.
Happy coding! 🎉

.take

.take


houdini: init at 16.0.633

Motivation for this change
Things done

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

[X] NixOS
[ ] macOS
[ ] Linux

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

This is a build script for Houdini, a proprietary 3D animation program. It requires the user to download the installation file manually (using requireFile).

Also, this depends on the undaemonize tool which I've PR-ed separately.

I've added fixes. Sorry about all the --force pushes.

@canndrew no need to be sorry :)


Feature request: Turing Machine

Hi,
would isz be possible to add TMs using jFlap-Style with arrows labeled with read, write,, move? Also we would need possiblility to add ND-TMs.
Thanks, Max

Would you mind providing some more information and examples on what you would like to achieve?

Asuming you want a TM with q0, q1 and q2 as states. Alphabet is a,b,c. If you want to have:
old state – symbol - new state - new symbol - movement
q0  - a - q0 - a - L
q0 - b - q0 - b - R
q0 - c - q1 - a - L
q0 - c - q2 - b - R
…
If you include a; a; Land b; b; R on the same arrow from q0 to q0 the writing is inside the arrow.


no more gnome-keyring gpg daemon

I recently switched to gnome 3.16 under nixos. To do that, I changed my configuration.nix:
{
  services.xserver.desktopManager.gnome3.sessionPath = with pkgs.gnome3_16; [ gpaste ];
  environment.gnome3.packageSet = pkgs.gnome3_16;
  nixpkgs.config.packageOverrides = pkgs: {
    gtk3 = pkgs.gtk3_16;
    gnome3 = pkgs.gnome3_16;
  };
}

Unfortunately, the gnome terminal does not have the GPG_AGENT_INFO environment variable set anymore. As soon as I set it manually with
export GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1

things work fine.
It was working fine with Gnome 3.12.

@lethalman might be interesting for you

GNOME packaging drives people crazy... :P I'll see what's happening here,
thanks for testing it!
On Mon, May 18, 2015 at 6:55 PM, Damien Cassou<EMAIL_ADDRESS>wrote:

Assigned #7891 https://github.com/NixOS/nixpkgs/issues/7891 to
@lethalman https://github.com/lethalman.
—
Reply to this email directly or view it on GitHub
https://github.com/NixOS/nixpkgs/issues/7891#event-307590182.

--
NixOS Linux http://nixos.org

See http://lists.gnupg.org/pipermail/gnupg-devel/2014-August/028689.html . So it's upstream that has dropped support for gpg somehow. Closing.

$ pass show -c inria.fr
gpg: WARNING: The GNOME keyring manager hijacked the GnuPG agent.
gpg: WARNING: GnuPG will not work properly - please configure that tool to not interfere with the GnuPG system!
Copied inria.fr to clipboard. Will clear in 45 seconds.
cassou@luz3:~$ gnome-shell --version
GNOME Shell 3.16.1

It's weird. I was able to gpg2 -d something and pinentry showed... gpg itself started gpg-agent --server.  So gnome-keyring correctly is not involved but rather pinentry. What else do you have in your configuration? Like disabled ssh agent or such?
Do you have gpg-agent in your PATH?

$ which gpg-agent
/home/cassou/.nix-profile/bin/gpg-agent
cassou@luz3:~$ realpath /home/cassou/.nix-profile/bin/gpg-agent
/nix/store/ll4lz7ycs2cw9kki09wpxfr670jw0pa8-gnupg-2.0.27/bin/gpg-agent
$ gpg-agent --version
gpg-agent (GnuPG) 2.0.27
libgcrypt 1.6.3
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$

I have gnupg in my system.nix, openssh.enable=true in my configuration.nix

Do you also face the hijacking warnings?
$ gpg2 --decrypt /tmp/test.txt.gpg

You need a passphrase to unlock the secret key for
user: "Damien Cassou<EMAIL_ADDRESS>4096-bit RSA key, ID 0DB0F7D4, created 2015-04-17 (main key ID F5DCE914)

gpg: WARNING: The GNOME keyring manager hijacked the GnuPG agent.
gpg: WARNING: GnuPG will not work properly - please configure that tool to not interfere with the GnuPG system!
gpg: encrypted with 4096-bit RSA key, ID 0DB0F7D4, created 2015-04-17
      "Damien Cassou<EMAIL_ADDRESS>

No I don't. Maybe there's something with seahorse too, I don't know it's a complex world. We better look for similar problems on the internet.

Those hijacking warnings are the kind of inter-community headbutting, that makes everybody flock towards free software⸮
https://bbs.archlinux.org/viewtopic.php?id=182889
https://bugs.gnupg.org/gnupg/issue1656
It can be disabled pretty easily: https://gebner.org/how-to-get-rid-of-the-the-gnome-keyring-manager-hijacked-the-gnupg-agent-warning.html
Maybe it would be worthwhile to let nixos users chose between gnome's agent (while disabling the warning) and gpg's agent.

@bendlas if I knew how gnome-keyring worked :D As you see from the comments above, I don't have this problem, thought I have a similar system configuration to @DamienCassou

@lethalman do you have a file ~/.config/autostart/gnome-keyring-ssh.desktop? See http://askubuntu.com/questions/162850/how-to-disable-the-keyring-for-ssh-and-gpg

The information I'm adding here probably isn't relevant, but I came across this issue trying to troubleshoot a problem I'm having with gpg-agent.  I've been running my own expressions for lxqt for a long time, but since I updated the unstable channel a few weeks ago, GPG_AGENT_INFO and SSH_AUTH_SOCK are no longer automatically set for me either.  If I remember correctly, gpg-agent used to be started from the X startup scripts when the gpg-agent was enabled in configure.nix.

I don't care about this issue anymore. Should I close the issue or keep it open?


Performance implications of default "x" and multiple style props

Hi!
I wanted to ask about the potential performance implications when using the default "x", which has a full suite of system styles, compared to a custom "x" with only a few system styles. Also, same question about performance differences when using multiple style props on a component. I've seen an older question about this being already answered, but my findings led me to a different conclusion.
From my investigations with Profiler, it looked like rendering a component built with a custom "x", which had only a few system styles, had better performance than using the default "x". That performance difference was there even when no style props were actually used. At the same time, the more style props I used, the more performance impact it had. This actually prompted me to build components with custom "x" that supports fewer system styles and to also provide static styles as a CSS class, rather than additional style props. I'd then only use style props for dynamic styling.
Am I missing something here and using the library incorrectly, or could there actually be such performance implications in these two cases? :)

Hello @Makskow, the number of properties on x has no impact on performances. Utilities are indexed and we iterate over component props not utilities, so it should have no impact. Everything is detailed in dedicated page about performances.
Also to be clear, you should not worry about this, xstyled overhead has no significant impact on global app performance.


indentation problems

Issue Type: Bug
When I copy and paste, I get excessive indentation
VS Code version: Code 1.68.1 (30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-14T12:48:58.283Z)
OS version: Windows_NT x64 10.0.19041
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Xeon(R) Gold 6230R CPU @ 2.10GHz (2 x 2095)

GPU Status
2d_canvas: unavailable_softwarecanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: disabled_softwaremultiple_raster_threads: disabled_offoop_rasterization: disabled_offopengl: disabled_offrasterization: disabled_softwareraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: disabled_softwarevideo_encode: disabled_softwarevulkan: disabled_offwebgl: unavailable_softwarewebgl2: unavailable_software

Load (avg)
undefined

Memory (System)
8.00GB (5.24GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (1)

Extension
Author (truncated)
Version

python
ms-
2020.8.109390

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.89.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

How do I upgrade?

See here: https://code.visualstudio.com/docs/setup/setup-overview#_update-cadence. Also, can you show a screen recording?

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Use PrintTable instead of puts in validate_build action

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context
Old implementation was using puts to print out a table.
This wasn't inline with the rest of the code base and couldn't be tested easily either.
Description
This change will use Fastlane's helper to print out table, plus it adds tests to check that the output is correct.

Are we able to remove require 'terminal-table' at the top now? Or do we need that for something else?

I guess it's no longer needed, removed it 👍

@joshdholtz I still can't get used to the fact that force pushing to my branch makes review comments "invisible".
The update is that I've managed to create a completely fake, but properly signed ipa, which is using fake self-signed certificate and signing identity, fake team name, profile UUID and everything else.
I think I will just upload that whole fake signing identity as a fixture some time soon.
It will be essential for finally having tests for sigh resign action.
For this change, the app info looks like this:
        {
          "bundle_identifier" => "org.fastlane.very-capable-app",
          "team_identifier" => "TestFixture",
          "app_name" => "very-capable-app",
          "provisioning_uuid" => "12345678-1234-1234-1234-123456789012",
          "team_name" => "TestFixture"
        }


Grammarly(Character Counter)

🛠 Fixes Issue
Closes #

#237

👨💻 Changes proposed

It's a clone of Grammarly with some additional features. I have added the Character count feature into it which shows the typed and remaining characters on the screen and also here is a major feature is that we can copy Text with the button provided.

✔ Check List (Check all the applicable boxes)

[X] My code follows the code style of this project.
[X] This PR does not contain plagiarized content.
[X] The title of my pull request is a short description of the requested changes.

📷 Screenshots

Video Demo:
https://user-images.githubusercontent.com/77873383/161383612-fb4a8faf-4476-47ba-af35-2e6486c411af.mp4

Kindly Check...Hope for a better level this time please 🙃...it will be really motivating .

@Mrjoy832 buddy can you deploy this and if possible make responsive then it will goes to label3

@Mrjoy832 buddy can you deploy this and if possible make responsive then it will goes to label3

okay wait

@gurjeetsinghvirdee  updated deployed link in the readme and its already responsive please check


Add a Gitter chat badge to README.rst

Syncleus/apex now has a Chat Room on Gitter
@freemo has just created a chat room. You can visit it here: https://gitter.im/Syncleus/APEX.
This pull-request adds this badge to your README.rst:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

Current coverage is 53.67% (diff: 100%)

Merging #7 into master will not change coverage

@@             master         #7   diff @@
==========================================
  Files            26         26
  Lines          1347       1347
  Methods           0          0
  Messages          0          0
  Branches        196        196
==========================================
  Hits            723        723
  Misses          615        615
  Partials          9          9

Powered by Codecov. Last update e8b1e86...2af0b8e

Coverage remained the same at 54.269% when pulling 2af0b8e6e35daf2157be7aa289e693cd00ccb744 on gitter-badger:gitter-badge into e8b1e861a264d32c0b22187b9cd72a01dc2b0bb9 on Syncleus:master.

Coverage remained the same at 54.269% when pulling 2af0b8e6e35daf2157be7aa289e693cd00ccb744 on gitter-badger:gitter-badge into e8b1e861a264d32c0b22187b9cd72a01dc2b0bb9 on Syncleus:master.

Added this in a seperate PR


#14: IsRecordType behaves different if RecordType set or not

@noerremark I have reviewed the change and all looks okay to me. Thanks a lot for fixing this,


RubyLearning .org domain not set up for classes

The course material is no longer available on our former platform, classes link has been (temporarily) suspended for RubyLearning.  Regular content is available, and of course, I am still available for answers in regard to the RubyLearning.com site.

@iHiD @ErikSchierboom This has been rebased on origin/main.  Can be brought in.


New: Add Scatter Graph

What is the purpose of this pull request? (Check any that's applicable)
Adding the ability to draw Scatter graph

[x] Feature
[ ] Bug fix
[ ] Dependency updates
[ ] Documentation updates
[ ] Build related changes
[ ] Changes an existing functionality
[ ] Other, please explain:

Does this introduce a breaking change?

[ ] Yes
[x] No

What changes did you make? (Give an overview)
Added a new graph type, scatter graph.
Add any screenshots

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Fixes to minor do_delete_user bugs

https://chat.zulip.org/#narrow/stream/31-production-help/topic/delete_user for context on the first bag with is_active=True on the dummy user. The second bug is explained in the commit message.
Do we want to write a migration to fix older dummy users to switch their is_active=False?

@timabbott

Added RealmAuditLogs for the user deletion, with a backfill migration
I added date_joined preservation - I'm wondering whether we actually want to preserve the other details? I think it's just not clear to me what the reason for it would be - if a user is to be "removed" with information being preserved, there's user deactivation for that, while I was thinking of "delete user" as a hard-delete where generally everything gets purged :thinking:
Sadly we can't backfill date_joined for older dummy users I think. The issue is that modified_user (and acting_user and modified_stream which mean analogical potential issues) is a ForeignKey with on_delete=CASCADE - so these entries have been getting deleted during the user_profile.delete() call. I think we probably want to consider this a bug, because we'd like to preserve RealmAuditLog, no matter what happens with the modified/acting objects? This sounds more tricky to resolve, so I'm not sure if it's best to work on it in this PR or just open a follow-up issues.

I've added release goal to this PR so it doesn't get missed, since it looks likely to me that we'd want these bugs here addressed for the release (this was brought up by a user in https://chat.zulip.org/#narrow/stream/49-development-help/topic/Deleting.20users ) - feel free to drop the label if I'm wrong in my assumption :smiley:

Merged, thanks @mateuszmandera!  I agree we want this in 5.0; if it didn't require a migration I'd probably have aimed for backporting to 4.x, but I think it's not worth it given those complications.
I'll start a conversation about the remaining follow-up questions.


Shortcut to Toggle main window

Hello,
I couldn't find if this options is available already.
I would like some way to create a shortcut to Toggle main window to Show/Hide Ferdi quickly!
I use other Electron apps that I can configure it thought a keymap.cson:
'global':
  'ctrl-shift-x': 'application:toggle-main-window'

It minimizes to tray or restore.
This option would improve a lot the productivity. :smile:

I use this script to toggle ferdi and other applications (Qalculate for example), it could be done better but it works for me!

I use this script to toggle ferdi and other applications (Qalculate for example), it could be done better but it works for me!

Thanks @tubbadu
I installed here and I think it will help! :smile:
I would like to minimize to tray.. but anyway if I can restore it helps!

Minimize to tray works in my case with Ctrl+M on Ubuntu.
If you want to be able to restore the window with a shortcut, that functionality would need to be added.

Also, wouldn't that need to hook into the global keyboard shortcuts at the OS-level? To be clearer, if I have minimized Ferdi to the tray and am working on some other app, but then want Ferdi to open up, the shortcut key will need to be configured at the OS-level to be able to then trigger/open Ferdi. Is that not right?

Also, wouldn't that need to hook into the global keyboard shortcuts at the OS-level? To be clearer, if I have minimized Ferdi to the tray and am working on some other app, but then want Ferdi to open up, the shortcut key will need to be configured at the OS-level to be able to then trigger/open Ferdi. Is that not right?

yes you're right, but if only there was a ferdi shell command that rises ferdi (someting like ferdi --rise for istance) you will only have to assign it to a global shortcut and voilà

Also, wouldn't that need to hook into the global keyboard shortcuts at the OS-level? To be clearer, if I have minimized Ferdi to the tray and am working on some other app, but then want Ferdi to open up, the shortcut key will need to be configured at the OS-level to be able to then trigger/open Ferdi. Is that not right?

You are right, but Electron can register Global Shortcuts!
https://www.electronjs.org/docs/tutorial/keyboard-shortcuts#global-shortcuts


Subdivide label line segments on overzoomed tile

Referring to https://github.com/tangrams/tangram/pull/277

implemented by https://github.com/tangrams/tangram-es/pull/749


using attr value on input

Is something im missing?
{{> inputAutocomplete settings = settingsMentionsSearchInput id="searchMentions" class="pull-right" placeholder="Search" value="@{{this}}"}}

this return     @{{this}} as plain text on the autocomplete.

Have you just tried ... value=this}} ?

yes :s

Maybe it doesn't support reactive values then; I'm not sure. What happens with value="blah"?

value="e"

works great, so yeah i think reactive values are not supported

I defined my reactivevars like this:
Template.Calculator.onCreated(function CalculatorOnCreated() {
    // counter starts at 0
    this.parent1 = new ReactiveVar({"name": ""});
    this.parent2 = new ReactiveVar({"name": ""});
    this.results = new ReactiveVar("collapse");
});

then assigned them in events like this:
"autocompleteselect input#parent1": function(e, t, doc) {
        Template.instance().parent1.set(doc);
    },
"autocompleteselect input#parent2": function(e, t, doc) {
        Template.instance().parent2.set(doc);
    },


Add separator for command outputs

Is your feature request related to a problem? Please describe.
@-Redstoneboi- on Reddit:

success '--version' argument found!
whoami (GNU Coreutils) 9.1
Copyright info
License info
Written by author
checking sometool -h

kinda makes it look like halp was written by the author of whoami

Describe the solution you'd like

try this or something

success '--version' argument found!
---
whoami (GNU Coreutils) 9.1
Copyright info
License info
Written by author
---
checking sometool -h

Describe alternatives you've considered
None.
Additional context

https://www.reddit.com/r/rust/comments/11pc70n/comment/jbxwte8/?utm_source=share&utm_medium=web2x&context=3

Hey Orhun! Just started using halp and I love it.
I'd like to submit a PR for this one. This one should be trivial to implement.

Hey @i4o-dev, thanks! 🐻 I assigned the issue to you. Go for it!


Added getColumnSizeAndPositionManager & getRowSizeAndPositionManager …

There are situations I want to look at size and position information without the standard render callback. This allows for (public) access instead of accessing the underscored (protected) property's.

Hm...these helpers are an implementation detail of Grid that I feel a bit uncertain about exposing. Adding these getter methods basically implies that I'm willing to commit to not changing the method names and functionality of those inner classes. I'm not sure about that. Need to think it over.

I understand, bit of an edge case perhaps. I'll go for extending the Grid class for now. Thanks ;)

No problem.
I actually have plans (that I just haven't found the time to try out yet) that would heavily refactor the implementation of the size-and-position-managing logic.

Going to close this for now. If my idea doesn't pan out and it looks like the helper utils will stay around longer in their current form, I'll consider re-opening it. :)


Release version 1.3.4-0ubuntu4 to Groovy

Uploaded to Groovy. Thanks @tianon !

No problem, thank you!! :+1:


macOS-latest and macOS-12 MSBuild 17 update eta

Tool name
MSBuild 17
Tool license
na
Add or update?

[ ] Add
[X] Update

Desired version
17.x
Approximate size
No response
Brief description of tool
The Mac OS images have installs of MSBuild 16. Looking for eta of when MSBuild 17 will be the default so that tasks that use MSBuild instead of dotnet build will work with C# 10.
URL for tool's homepage
No response
Provide a basic test case to validate the tool's functionality.
No response
Platforms where you need the tool

[X] Azure DevOps
[X] GitHub Actions

Virtual environments where you need the tool

[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] macOS 10.15
[X] macOS 11
[X] macOS 12
[ ] Windows Server 2019
[ ] Windows Server 2022

Can this tool be installed during the build?
No response
Tool installation time in runtime
No response
Are you willing to submit a PR?
No response

hi @twofingerrightclick, MSBuild16 is the latest stable version at the moment.

@twofingerrightclick msbuild is a part of mono, which in turn is a part of xamarin bundle in macOS images (we are installing mono from xamarin), so there is no specific ETA, but it will be likely added as soon as new mono is added.


Time-consuming functions will block application responsiveness.

vue
   window.get_big_index().then((data) => {
                    state.data = data
   })

vlang
// block
fn get_big_index(event_id &char, raw_args &char, mut app App) {
        mut data := app.api.big_index() or { return }
	app.w.result(event_id, .value, json.encode(data))
}

// no block, but the frontend also won't receive the response data.
fn get_big_index(event_id &char, raw_args &char, mut app App) {
	spawn fn [mut app, event_id] () {
		mut data := app.api.big_index() or { return }

		app.w.result(event_id, .value, json.encode(data))
	}()
}

I'm sorry for posting a garbage question. After reviewing the cases, I realized that it was my own fault.

No worries.
I am glad you found a solution :+1: .


Feature request: automatically show all token (drop down list) on focus

I think it would be really really nice if there is an option to show all token when the user click on the token field. Right now, the user must enter at least one letter, then he can see the list

That is the standard behavior of NSTokenField. I am not sure if we can alter that behavior through an extension. You may have to subclass NSTokenField for that. If anyone would like to implement this, a PR is welcome.


Notifications username for slack is not really working

Describe the bug
I have provider with following
apiVersion: notification.toolkit.fluxcd.io/v1beta1
kind: Provider
metadata:
  name: slack
  namespace: flux-system
spec:
  type: slack
  channel: fluxcd-poc-alerts
  username: GCP
  secretRef:
    name: fluxcd-slack-url

It is also properly configured on cluster
$ kubectl get provider -n flux-system -oyaml
apiVersion: v1
items:
- apiVersion: notification.toolkit.fluxcd.io/v1beta1
  kind: Provider
  metadata:
    creationTimestamp: "2022-03-17T10:04:05Z"
    generation: 4
    labels:
      kustomize.toolkit.fluxcd.io/name: infrastructure
      kustomize.toolkit.fluxcd.io/namespace: flux-system
    name: slack
    namespace: flux-system
    resourceVersion: "24665183"
    uid: 11e98065-45f2-4830-8c1a-d15947d608f4
  spec:
    channel: fluxcd-poc-alerts
    secretRef:
      name: fluxcd-slack-url
    type: slack
    username: GCP
  status:
    conditions:
    - lastTransitionTime: "2022-03-17T10:25:56Z"
      message: Initialized
      observedGeneration: 1
      reason: Succeeded
      status: "True"
      type: Ready
    observedGeneration: 4

However when I changed something the Slack notification does not have the username from this Provider configuration  but uses default = Slack application name.
Steps to reproduce

Deploy provider based on above where you use app with different name than what you specified to username
Change something in code
Check slack and see that the notification is using the default app name and not the username from Provider config

Expected behavior
Username should overwrite default app name
Screenshots and recordings
No response
OS / Distro
GKE
Flux version
0.27.3
Flux check
flux check
► checking prerequisites
✗ flux 0.27.3 <0.27.4 (new version is available, please upgrade)
✔ Kubernetes 1.21.9-gke.1002 >=1.20.6-0
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v0.17.1
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v0.21.1
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v0.22.2
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v0.21.2
✔ all checks passed
Git provider
No response
Container Registry provider
No response
Additional context
No response
Code of Conduct

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

This is a Slack limitation that we've documented here: https://fluxcd.io/docs/components/notification/provider/#slack-app

All messages are posted with the app username, and not the name of the controller (e.g. helm-controller, source-controller`)

The username only works when using the Slack webhook method.


Add nopersistence mark for generic http tests

While this probably works, I would add this entire test to nopersistence. This test doesn't make sense to run with persistence as it relies on new application creation. It seems the other tests pass, but it must be from caching something that should not be cached.


fix vm-informant dbname: "neondb" -> "postgres"

Describe your changes
Changes the vm-informant's postgres connection string's dbname from "neondb" (which sometimes doesn't exist) to "postgres" (which hopefully should exist more often?).
Currently there are a handful of VMs in prod that aren't working with autoscaling because they don't have the "neondb" database.
The vm-informant doesn't require any database in particular; it's just connecting as cloud_admin to be able to adjust the file cache settings.

Double-checked that the API does not allow you to delete the "postgres" database, even though it does let you delete "neondb".


Fix reset_yes_i_am_sure not actually resetting db

Yay, nice work!  Thanks so much for this!

No problem, @cheerfulstoic  :smile:

Released as 0.0.9


Add Auth0 and GitHub Billing exporter

Add the Auth0 exporter (https://github.com/raynigon/auth0_exporter) and the GitHub billing exporter (https://github.com/raynigon/github_billing_exporter) to the APIs section on the Exporters and integrations page.
Auth0 expoter metrics
# HELP auth0_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which auth0_exporter was built.
# TYPE auth0_exporter_build_info gauge
auth0_exporter_build_info{branch="",goversion="go1.17.13",revision="",version=""} 1
# HELP auth0_stats_active_users The number of active users that logged in during the last 30 days.
# TYPE auth0_stats_active_users gauge
auth0_stats_active_users{domain="<PLACEHOLDER>.auth0.com",tenant="<PLACEHOLDER>"} 123
# HELP auth0_stats_leaked_passwords Number of breached-password detections in the interval. The interval is given in days.
# TYPE auth0_stats_leaked_passwords gauge
auth0_stats_leaked_passwords{domain="<PLACEHOLDER>.auth0.com",interval="1",tenant="<PLACEHOLDER>"} 0
auth0_stats_leaked_passwords{domain="<PLACEHOLDER>.auth0.com",interval="30",tenant="<PLACEHOLDER>"} 0
auth0_stats_leaked_passwords{domain="<PLACEHOLDER>.auth0.com",interval="7",tenant="<PLACEHOLDER>"} 0
# HELP auth0_stats_logins Number of logins in the interval. The interval is given in days.
# TYPE auth0_stats_logins gauge
auth0_stats_logins{domain="<PLACEHOLDER>.auth0.com",interval="1",tenant="<PLACEHOLDER>"} 1234
auth0_stats_logins{domain="<PLACEHOLDER>.auth0.com",interval="30",tenant="<PLACEHOLDER>"} 123
auth0_stats_logins{domain="<PLACEHOLDER>.auth0.com",interval="7",tenant="<PLACEHOLDER>"} 12
# HELP auth0_stats_signups Number of signups in the interval. The interval is given in days.
# TYPE auth0_stats_signups gauge
auth0_stats_signups{domain="<PLACEHOLDER>.auth0.com",interval="1",tenant="<PLACEHOLDER>"} 12345
auth0_stats_signups{domain="<PLACEHOLDER>.auth0.com",interval="30",tenant="<PLACEHOLDER>"} 1234
auth0_stats_signups{domain="<PLACEHOLDER>.auth0.com",interval="7",tenant="<PLACEHOLDER>"} 123
# HELP auth0_users_blocked The number of blocked users.
# TYPE auth0_users_blocked gauge
auth0_users_blocked{domain="<PLACEHOLDER>.auth0.com",tenant="<PLACEHOLDER>"} 123
# HELP auth0_users_email_verified The number of users which have a verified email address.
# TYPE auth0_users_email_verified gauge
auth0_users_email_verified{domain="<PLACEHOLDER>.auth0.com",tenant="<PLACEHOLDER>"} 12345
# HELP auth0_users_total The number of existing users.
# TYPE auth0_users_total gauge
auth0_users_total{domain="<PLACEHOLDER>.auth0.com",tenant="<PLACEHOLDER>"} 12345
# HELP promhttp_metric_handler_requests_in_flight Current number of scrapes being served.
# TYPE promhttp_metric_handler_requests_in_flight gauge
promhttp_metric_handler_requests_in_flight 1
# HELP promhttp_metric_handler_requests_total Total number of scrapes by HTTP status code.
# TYPE promhttp_metric_handler_requests_total counter
promhttp_metric_handler_requests_total{code="200"} 3160
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0

GitHub billing export metrics
# HELP github_billing_actions_org_minutes_billed_count GitHub actions used minutes with platform multipliers
# TYPE github_billing_actions_org_minutes_billed_count counter
github_billing_actions_org_minutes_billed_count{org="<PLACEHOLDER>",platform="linux"} 12345
github_billing_actions_org_minutes_billed_count{org="<PLACEHOLDER>",platform="macos"} 12345
github_billing_actions_org_minutes_billed_count{org="<PLACEHOLDER>",platform="windows"} 12345
# HELP github_billing_actions_org_minutes_inclusive GitHub actions inclusive budget minutes
# TYPE github_billing_actions_org_minutes_inclusive gauge
github_billing_actions_org_minutes_inclusive{org="<PLACEHOLDER>"} 5000
# HELP github_billing_actions_org_minutes_paid_count Total GitHub actions minutes paid for
# TYPE github_billing_actions_org_minutes_paid_count counter
github_billing_actions_org_minutes_paid_count{org="<PLACEHOLDER>"} 12345
# HELP github_billing_actions_org_minutes_real_count GitHub actions used minutes without platform multiplier
# TYPE github_billing_actions_org_minutes_real_count counter
github_billing_actions_org_minutes_real_count{org="<PLACEHOLDER>",platform="linux"} 12345
github_billing_actions_org_minutes_real_count{org="<PLACEHOLDER>",platform="macos"} 12345
github_billing_actions_org_minutes_real_count{org="<PLACEHOLDER>",platform="windows"} 12345
# HELP github_billing_actions_org_minutes_total_count Total GitHub actions minutes used
# TYPE github_billing_actions_org_minutes_total_count counter
github_billing_actions_org_minutes_total_count{org="<PLACEHOLDER>"} 12345
# HELP github_billing_actions_workflow_minutes_billed_count GitHub actions used minutes with platform multipliers
# TYPE github_billing_actions_workflow_minutes_billed_count counter
github_billing_actions_workflow_minutes_billed_count{org="<PLACEHOLDER>",platform="linux",repository="<PLACEHOLDER>",workflow_id="<PLACEHOLDER>",workflow_name="<PLACEHOLDER>"} 12345
# HELP github_billing_actions_workflow_minutes_real_count GitHub actions used minutes without platform multiplier
# TYPE github_billing_actions_workflow_minutes_real_count counter
github_billing_actions_workflow_minutes_real_count{org="<PLACEHOLDER>",platform="linux",repository="<PLACEHOLDER>",workflow_id="<PLACEHOLDER>",workflow_name="<PLACEHOLDER>"} 12345
# HELP github_billing_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which github_billing_exporter was built.
# TYPE github_billing_exporter_build_info gauge
github_billing_exporter_build_info{branch="",goversion="go1.17.13",revision="",version=""} 1
# HELP github_billing_packages_org_bandwith_inclusive GitHub packages inclusive budget bandwith in gigabytes
# TYPE github_billing_packages_org_bandwith_inclusive gauge
github_billing_packages_org_bandwith_inclusive{org="<PLACEHOLDER>"} 1234
# HELP github_billing_packages_org_bandwith_paid_count GitHub packages paid used bandwith in gigabytes
# TYPE github_billing_packages_org_bandwith_paid_count counter
github_billing_packages_org_bandwith_paid_count{org="<PLACEHOLDER>"} 1234
# HELP github_billing_packages_org_bandwith_total_count GitHub packages total used bandwith in gigabytes
# TYPE github_billing_packages_org_bandwith_total_count counter
github_billing_packages_org_bandwith_total_count{org="<PLACEHOLDER>"} 1234
# HELP github_billing_storage_org_billing_cycle_days Days left in the current billing cycle
# TYPE github_billing_storage_org_billing_cycle_days gauge
github_billing_storage_org_billing_cycle_days{org="<PLACEHOLDER>"} 1234
# HELP github_billing_storage_org_paid_count GitHub storage used paid in gigabytes
# TYPE github_billing_storage_org_paid_count counter
github_billing_storage_org_paid_count{org="<PLACEHOLDER>"} 123.45
# HELP github_billing_storage_org_total_count GitHub storage used total in gigabytes
# TYPE github_billing_storage_org_total_count counter
github_billing_storage_org_total_count{org="<PLACEHOLDER>"} 1234
# HELP promhttp_metric_handler_requests_in_flight Current number of scrapes being served.
# TYPE promhttp_metric_handler_requests_in_flight gauge
promhttp_metric_handler_requests_in_flight 1
# HELP promhttp_metric_handler_requests_total Total number of scrapes by HTTP status code.
# TYPE promhttp_metric_handler_requests_total counter
promhttp_metric_handler_requests_total{code="200"} 15631
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0

Thanks for this. Can you add /metrics output for both exporters here, please?

Hi @RichiH , I added the metrics output. I needed to hide the values in the placeholder fields to ensure no Information is leaked.


Material app not working

import 'package:flutter/materialapp';
not working
import 'package:flutter/materialapp';
import 'package:apple/screens/home/cough.dart';
import 'package:apple/screens/home/home.dart';
import 'package:apple/screens/wrapper.dart';
import 'package:apple/services/auth.dart';
import 'package:apple/models/user.dart';
import 'package:apple/screens/home/coughsounds.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return StreamProvider.value(
value: AuthService().user,
child: MaterialApp(
home: Wrapper(),
),
);
}
}

The import should be like this :
import 'package:flutter/material.dart';

Hi @Prateek26j
It seems you are asking for assistance on personal code. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you