Won't remember recent folders in the latest update

Issue Type: Bug

Open folder A.
Open folder B.
(Optional) Open file C outside of folders A and B.
Press Ctrl+r to open recents.

Actual result:
Folder B and file C are listed (with file C highlighted).
Expected result:
Folders A and B and file C are listed (with folder A highlighted)
VS Code version: Code 1.69.2 (3b889b090b5ad5793f524b5d1d39fda662b96a2a, 2022-07-18T16:12:52.460Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
Extensions: none

I think this has something to do with the "files.hotExit": "onExitAndWindowClose" which allows not having to save open files when opening another folder in the same window (the files are restored upon the next opening of the closed folder) - I like that setting because I have no use for having a bunch of VS Code windows open, as most of the time I work with a single folder.
The reason I think this may be the culprit is after opening the other folder in a second window (this having both folders open at once), they are now getting saved in recents, even after closing the second window and restarting VS Code.
The issue is I now have to do this "dance" with every new folder.
This was not the case before.
This is a fresh install using winget with the machine scope.

/gifPlease

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.
If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette).
Happy coding!

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!

@bpasero how do I reopen?
This is still an issue.
There used to be a Reopen button, did Github remove it?

The issue was closed because you did not answer to https://github.com/microsoft/vscode/issues/156407#issuecomment-1197629448 in 7 days.

How do you want me to answer it?
It keeps forgetting the folders.
It's impossible to show a gif for this unless I attach a camera to a tripod and record my monitor 24/7.

I cannot reproduce following your steps, at the end I see this:

Here's the gif:

I have a folder called "scripts" open, I close the folder, it gets forgotten from Recents immediately.
I've found out it's not consistent.
Sometimes it takes a computer reboot to be forgotten.
VS Code was installed via winget with the machine scope.

@bpasero following up.

@bpasero following up.

@github-account1111 can you do a recording that I can play back? Your video does not play for me, I suggest you use this tool: https://gifcap.dev/
(I was slow to respond because of vacation)

Btw this:

I've found out it's not consistent.
Sometimes it takes a computer reboot to be forgotten.

Means it will very likely be hard for me to understand the issue unless we find 100% reproducible steps that I can play back. If it depends on your machine being rebooted or not, I suspect an issue with your machine and not VSCode.

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!


fix bug

add update level and spot ws balance column(available)

@newgoo thanks for your feedback. Regarding your two changes:

We have add a new method SetLevel according to suggest way (https://github.com/uber-go/zap/issues/793#issuecomment-592110758) rather than create a new logger instance
We have added the missing field.

Please get from latest master branch.


Cannot read property 'kind' of undefined

I am not sure if this is a vscode issue or something with the integration with the language services in TypeScript.
When I have a project running off of TypeScript 1.6.2, the editor behaves as normal.  When I upgrade the project to TypeScript 1.7.3, in the editor I constantly am getting ERROR: Cannot read property 'kind' of undefined.  I am not sure how to get a stack trace of these errors.  Reverting the project back to 1.6.2, doing an npm install fixes the issue.

Also, this was both on 0.10.2 and 0.10.3.

@kitsonk did you configure VSCode to use the install typescript using typescript.tsdk. And is the code public somewhere so that I can try to reproduce?

did you configure VSCode to use the install typescript using typescript.tsdk

I am not sure what you are referring to.  In all cases I have been using npm to install TypeScript and exiting and launch VSCode before and after the install.  I have moved back and forth from 1.6.2 to 1.7.3 a few times.  I am on OSX.  I have installed the tslint plugin as well.  Other than that, it is a vanilla VSCode install.  My user settings are:
{
	"editor.fontFamily": "Hack",
	"editor.glyphMargin": true,
	"editor.tabSize": 4,
	"editor.formatOnType": true,
	"editor.renderWhitespace": true,
	"editor.wrappingColumn": 0
}

And is the code public somewhere so that I can try to reproduce?

Yes, it is available at kitsonk/actions.  It should be fairly straight forward:
git https://github.com/kitsonk/actions.git
cd actions
vi package.json
npm install
code .

Can you try to uninstall tslint and reproduce the problem, this helps us narrow down the issue.

Yup, that was it...  Removed tslint restarted VSC, migrated back to TypeScript 1.7.2 for the project, restarted VSC, no error...  Installed tslint 0.5.1, restarted VSC, issue returned.
How best to report issues with extensions?

Report the issue against microsoft/vscode-tslint please.
Am 02.12.2015 um 18:00 schrieb Kitson Kelly <notifications<EMAIL_ADDRESS>Yup, that was it... Removed tslint restarted VSC, migrated back to TypeScript 1.7.2 for the project, restarted VSC, no error... Installed tslint 0.5.1, restarted VSC, issue returned.
How best to report issues with extensions?

Reply to this email directly or view it on GitHubhttps://github.com/Microsoft/vscode/issues/921#issuecomment-161364633.

Ported, thanks.


Rename "Service Admin" to "Service Support Admin" per "Administrator role permissions in Azure Active Directory"

[Enter feedback here]
This page refers to the "Service Admin" role, however this role was renamed to "Service Support Admin" per https://docs.microsoft.com/en-us/azure/active-directory/users-groups-roles/directory-assign-admin-roles#service-support-administrator. Suggest to rename it here to align to this terminology.

Note
Previously, this role was called "Service Administrator" in Azure portal and Microsoft 365 admin center. We have renamed it to "Service Support Administrator" to align with the exsiting name in Microsoft Graph API, Azure AD Graph API, and Azure AD PowerShell.

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

ID: f18d8345-78f3-0b16-f585-1e53f49d138f
Version Independent ID: 015e98be-2db5-11a3-9abc-6f89b44c3f96
Content: About admin roles in the Microsoft 365 admin center - Microsoft 365 admin
Content Source: microsoft-365/admin/add-users/about-admin-roles.md
Service: o365-administration
GitHub Login: @KwekuA
Microsoft Alias: kwekua

@softwarecraft Thank you for your feedback. We have made changes to the document via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/pull/3095
Thanks
Sri

@msbemba Thank you very much for the contribution and updating the documentation with PR. @softwarecraft Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Rate test cases

Added test cases for Rate class.

Are you adding the test cases for the rate command and parser as well?


Can you please tell me what settings you have for this package, the file type and length. Also, if possible a Gist of an example where you experience slow downs.
Have you disabled this package (or setting) and this slow down does not happen?

Actually, highlight-selected is not the issue, minimap-highlight-selected is. I had previously always enabled/disabled them together, so I assumed highlight-selected was the problem. Sorry for the false report. This seems to be the correct issue thread relating to this.

@OmegaJak @richrace This issue should be closed then.


start pgo module

Questions

We probably need a shared type for pids.

Add a type to stdlib for processes. probably gleam/process.{Pid}

I've also update the workflow to run a db, in docker-compose.


iohk-nix: bump to master

adds useByronWallet flag for all environments
updates shelley_selfnode genesis
hides critical forge metrics in logs

bors r+


allow users to make their own childcontainers / readers

Ah I didn't see that. Yeah this is more obvious agreed. Thanks!


refactoring build so that ServiceAccountName is available in ack-generate controller process as well as ack-generate release process

Issue #, if available:

Fixes: aws-controllers-k8s/community#777

Description of changes:
The goal of this is to move away from using the default service account. It seems this might have been done with the helm charts/templates, but was not ported to the Kustomization files. This means each operator/controller would have its own service account. Things that changed are below:

Refactored build so that ServiceAccountName is available in ack-generate controller process as well as ack-generate release process
added in /rbac/service-account.yaml.tpl to create a service account, and then referece this account in the Deployment and ClusterRoleBinding
Refactored build/release sh files to add in ACK_GENERATE_SERVICE_ACCOUNT_NAME to be used in both build and release process
Reordered some of the variables in the sh files so that if there is an error in the build/release process the Default values are actually presented to the user (currently they show up as blank since the variables are not initilaized before the USAGE variable)
NOTE: This changes the service account name in the helm process as well. It changes it from ack-$SERVICE-controller to ack-$SERVICE-service-account. I am not sure if this is backwards compatible for when a controller is installed/updated via a helm deployment.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Signed-off-by: Adam D. Cornett<EMAIL_ADDRESS>

/ok-to-test

I prefer ack-$SERVICE-controller, since it's redundant to add service-account to the name of a service account. Especially since we are using the same values for the ClusterRole name.

I went with service-account since this is how operator-sdk works, even though I do agree it is redundant, it does provide clarity. I'll revert it back to controller though if that makes more sense in for these controllers.

Let's try these again with the new tests
/test all

/retest


How hard is the AWS Certified SysOps Administrator Associate?

The AWS-certified SysOps Administrator Associate Certification has a reputation for being the most difficult associate-level certificate in the Amazon Web Services Certification Programs. But how hard is it really?
The AWS SysOps Administrator exam is such that it focuses on test scenarios that cover aspects of the deployment and operation of AWS services. This means that it can be a little difficult for those with no work experience. There is also wider coverage of monitoring, audit, and resource management, as well as troubleshooting.
If you regularly work with AWS services, it simplifies testing. I also recommend that students first obtain at least one more associate-level certificate, either an AWS Certified Solution Architect Associate or an AWS Certificate Developer Associate.
As far as AWS certified SYS Ops Administrator Associate certification is concerned, we recommend you JustCerts AWS SysOps Practice Questions that are designed by experienced and certified AWS professionals. Good Luck!!!
For details visit the official site of AWS SysOps Associate Exam
https://aws.amazon.com/certification/certified-sysops-admin-associate/

Hi, we are investigating your issue and will update you shortly.


Investigate default zoom event on UI

resolves https://github.com/breadboard-ai/breadboard/issues/926

@alexandraM98 could you just double check that the diff is correct now I've dropped the other commits, please?

@alexandraM98 could you just double check that the diff is correct now I've dropped the other commits, please?

Yes, that looks correct.

@paullewis are you happy to merge this and https://github.com/breadboard-ai/breadboard/pull/965?


State transition support for generic states

This WIP PR adds the option to define methods that should be called when objects transition between states.
Missing:

[x] QoL improvements around developing classes
[x] sample plugin & unit tests

Can you provide some end-goal examples of how this transition management would be used?

@SchrodingersGat this would be ready for review; is the sample code added enough to understand the use case?
Without custom states #4969 this is not usable for full-state machines but still helpful to enhance the control flow via plugins.

@matmair this looks good to me. I would like to see this added to the BuildOrder and StockItem classes, but that can happen as a separate PR if you like. Happy to merge this now. thanks for the work!


tried to request a page version that was garbage collected in pageserver's walsender

Sometimes during the safekeeper->pageserver replication wal_receiver may fail with the following error (right after connection start usually):
WAL streaming connection failed (tried to request a page version that
was garbage collected. requested at 0/2981A90 gc cutoff 0/E7C5190)

Reason is not clear =/ Could problems in GC or wrong replication start lsn selection.

The reasons seems to be obvious: GC horizon is not somehow synchronized with safekeepers and even with disk consistent LSN which is not correct.
There is #1004 PR addressing last problem. But even with this PR there will be no warranty that safekeepers will not resend WAL record with LSN<=disk_consistent_lsn. And so pageserver doesn't know safe cutoff point for GC.
The obvious workaround is to make GC horizon=PiTR interval large enough, so that it never intersects with current replication position (making the most conservative assumption). Otherwise, I afraid that we should somehow extent replication protocol to report safe cutoff position.

If I understand it correctly pageserver tried to start replication from lsn that is < latest_gc_cutoff. But in walreceiver we start point is set to last_record lsn or zero if nothing was streamed before. This is confusing. I do not get it how it is possible. It seems that there is no need for pageserver to request WAL older than gc cutoff

Also this check might be too restrictive. Imagine if there is no newer version of a page, but due to activity on other pages/segments gc moved forward enough that this old image become older than current cutoff

Idea for reproducing this: Concurrently run pgbench or some other workload that requests pages, and in another thread call do_gc with 0 GC horizon in a loop. Might expose other interesting GC bugs too...

is regularly reproduced by the failing attempts to start the cluster on staging
timeline id 4cb7130ac08e2f2019fc919b4d9fe46b

I think this is a duplicate of https://github.com/zenithdb/zenith/issues/1047, closing this one

With checkpoint_cs locked in timeline_gc I was not able to reproduce the problem with  pgbench and 8kb GC horizon and 1 sec GC/checkpoint interval


rebrand

I'd like to rebrand this to be more general, to be used for extracellular electrophysiology more broadly

rename. Any ideas?
interface with SpikeInterface to provide access to spike sorters. Maybe via spikely

ephysVIS?

Too close to https://github.com/flatironinstitute/ephys-viz, though maybe it would make sense to build upon that project

@bendichter can we close this?


Can miopen specify the convolution algorithm for miopenConvolutionForward?

Can miopen specify the convolution algorithm for miopenConvolutionForward?
when I try algo = miopenConvolutionFwdAlgoGEMM;, A runtime error  occured：
MIOpen Error: /long_pathname_so_that_rpms_can_package_the_debug_info/data/driver/MLOpen/src/ocl/convolutionocl.cpp:635: No invoker was registered for convolution forward. Was find executed?
    Error occurred:

@Delta0307 Yes, but how this should be done depends on which API you are using (Find API or Immediate mode API). Please let us know so we can provide more specific assistance.

@Delta0307 I am assuming that you are using Find API.
In this case you have to call miopenConvolutionForwardGetWorkSpaceSize() and miopenFindConvolutionForwardAlgorithm() prior invoking convolution. Then you have to check that the output of miopenFindConvolutionForwardAlgorithm() (an array of miopenConvAlgoPerf_t) contains GEMM algo. If there is no GEMM there, then GEMM kernel is not ready to run, and you'll get the error shown in the topmost comment.
Possible reasons:

(1) GEMM algo is not applicable for the desired convolution.
(2) GEMM algo is globally disabled (this can be done during library build or in the environment)
(3) The library is operating in the one of the optimized Find Modes and the library "knows" that the GEMM algorithm is not the fastest one. Explanation:

Optimized Find modes: FAST, HYBRID, DYNAMIC_HYBRID (the latter is the current default).
In these modes, MIOpen attempts to reuse the results of previous Find calls in order to optimize host-side performance (see here for more info).
When find-db contains necessary information, MIOpen builds/prepares only the fastest kernel/algorithm during miopenFindConvolutionForwardAlgorithm().
For the majority of convolutions, the above means that GEMM is not prepared for use, because it is rarely the fastest solution.

The most likely reason is (3).
What you can do:

For reason (1) - nothing
For reason (2) - enable GEMM algo
For reason (3) - switch to the NORMAL Find mode. The library will always build all available algorithms during miopenFindConvolutionForwardAlgorithm(), so all the applicable algos (including GEMM) will be ready for use in miopenConvolutionForward().

⚠ The cost is hosts-side overhead.

@atamazov Thanks for your answer, I am now able to specify the algorithm I want to use by using the Immediate mode API. But for these algorithms provided by MIOpen:
typedef enum
{
    miopenConvolutionAlgoGEMM         = 0, /*!< GEMM variant */
    miopenConvolutionAlgoDirect       = 1, /*!< Direct convolutions */
    miopenConvolutionAlgoFFT          = 2, /*!< Fast Fourier Transform indirect convolutions */
    miopenConvolutionAlgoWinograd     = 3, /*!< Winograd indirect convolutions */
    miopenConvolutionAlgoImplicitGEMM = 5, /*!< Implicit GEMM convolutions */
} miopenConvAlgorithm_t;

What is the difference between miopenConvolutionAlgoGEMM and miopenConvolutionAlgoImplicitGEMM？

@Delta0307 This is a bit out of scope of this discussions in this repo. In short algorithms are different. We implement GEMM on top of BLAS primitives (rocBLAS). WRT iGemm I recommend beginning with googling "What is Implicit Gemm" 😄

@Delta0307 Also please feel free to look into the source code of MIOpen.


Improve setup instructions for setting up ipykernel for debugging Jupyter Notebooks

I was trying out the new debugging feature for notebooks (which is so awesome btw 🤩), and I got that modal notification saying I needed to set up ipykernel to debug cells.

When I clicked "setup" I was expecting something to happen automatically. I did not notice it opened the instructions on the browser. If it's a temporary solution feel free to completely disregard this comment, otherwise it might be worth adding a "Learn more" or something like that to the button instead of "setup" to set up expectations
When looking at the page on the wiki, I was thinking it might be worth be more descriptive on the troubleshooting section. For example ,to how verify the version of ipykernel that is installed, and how to verify the extensions and VS Code versions too. For users who are not as familiar with the ecosystem it might not be obvious how to verify it all. It might also be worth adding the command to upgrade ipykernel in case it's installed.

Made some changes based on what you suggested, @luabud. https://github.com/microsoft/vscode-jupyter/wiki/Setting-Up-Run-by-Line-and-Debugging-for-Notebooks

It looks great, thanks a lot! 🤩


Simplified certificate process

Main things done here:

Show only raw and pilot level questions until you have attained Pilot level, then show all questions.
Added/improved call-to-action messages after each stage of the process. With messages customised to your current level and what you need to do next.

There is probably more that could be done around this whole area, and I also discovered that Question#minimum_level which is used to mark questions with helper text like:

This is required for Raw level certification and above

is not correctly implemented. So I think this will be a continued area of improvement, but it's at a stage where enough has been done to get some feedback before we go further.

@tonymarklove looks like all the i18n changes have caused some merge issues mind rebasing?

probably should've merged and looked at it earlier.

Rebase done.

Coverage decreased (-0.3%) to 81.541% when pulling 2bce7aaea807b6a5d50849b3a100ae39e3023b22 on simplified-certificate-process into 6bf793fdf998bdf4371810e4468af1e1cd051e1c on staging.


How to implement the app to run on each startup on tray

Hi,
I run Tray app and it seems the app is on the task bar and also on tray.
How to implement the app to be just on the tray , minimize does not do so.
Thanks

Hi @Eldadc, the app minimizes to the tray as you close it from the x window button at the top right corner, but not from the Exit button on the toolbar.
I think it is possible to enforce the app not to appear in the taskbar even if the UI of the app is visible.
Would you be willing to contribute a pull request of this enhancement?

Thanks on your response


Crash when viewing a Forestry-related recipe

When I try to see a recipe related to Forestry, the game crashes : http://pastebin.com/yyXqv83P
NEIIntegration 1.0.8
Forestry <IP_ADDRESS>.
I didn't test to rollback Forestry version yet, but I will.
EDIT : tested without Forestry and any of its add-ons, NEI works again as intended

Try the new version 1.0.9. I can't reproduce the issue myself, but you can check if that version fixes it.

It fixes it, indeed ! Thanks a lot for your amazing work :D


Add a flattened method for SubscriptionAdminClient.seek (requires oneof support)

Requires https://github.com/googleapis/toolkit/issues/1057 .

This is codegen feature, reassigning back to Garrett


[COMMUNITY] High-res TVM logo

Much unlike the lowered computations, the TVM logo isn't vectorized (to my best knowledge). Is there a svg/eps version somewhere? Perhaps it would be helpful to have a "iconography guidelines" page with links to assets and usage requirements.
If there is no existing vector logo, if someone could say what the "tvm" font is, I'm sure one of us with Illustrator could whip something up.

Here it is https://tvm.ai/images/logo/tvm-logo.eps


Add internal iterator API for accessing relevant chain blocks

Motivation
The difficulty calculation logic needs the ability to access the last 28 blocks of a block's relevant chain. Before this PR the state internals have had APIs for getting individual blocks but no easy way to abstract over "the last n blocks of a chain starting at this block".
Solution
This PR adds a chain method to StateService in zebra-state. This function provides an iterator API that abstracts over the StateService. It will first attempt to find the given block from the non-finalized state, and if it doesn't exist there it falls back to the finalized state.
The code in this pull request has:

[x] Documentation Comments
[ ] Unit Tests and Property Tests

Review
@teor2345
Related Issues
Follow Up Work

@teor2345 I changed the API to sidestep the best chain caveats that were getting added. Since I expect this API will only ever be called by the block difficulty check and that check will have a block hash I went ahead and changed it to only take a block::Hash as the starting identifier for the relevant chain.

The API looks good!
Let's write tests that:
* iterate from the non-finalized to the finalized state

* start iterating in the finalized state

Sounds good, I'm going to hold off doing this until I finish the other things I was already working on. Is the current content of this PR enough to unblock your work on the block difficulty check?

actually, wait, I don't think we can write those tests. Doing a test for iteration over the non_finalized state runs into the same issue as every other test.

Since I expect this API will only ever be called by the block difficulty check and that check will have a block hash I went ahead and changed it to only take a block::Hash as the starting identifier for the relevant chain.

Just to clarify, I think that other contextual validation checks will use this API, but they'll all be supplying a hash for a specific chain. (Contextual checks will never iterate through the best chain by height.)

The API looks good!
Let's write tests that:
* iterate from the non-finalized to the finalized state

* start iterating in the finalized state

Sounds good, I'm going to hold off doing this until I finish the other things I was already working on. Is the current content of this PR enough to unblock your work on the block difficulty check?

Yes, I'll summarise the interface in this PR in the contextual validation RFC.

actually, wait, I don't think we can write those tests. Doing a test for iteration over the non_finalized state runs into the same issue as every other test, aka needing to first commit 500,000 blocks.

You're right, and we can't even fake a non-finalized state using a private interface, because these tests are at the state service level.
But we can do this test:

start iterating in the finalized state

Do we want to get the full blocks here?

Do we want to get the full blocks here?

Good question! Are there any other contextual validation checks that will use the full blocks?
For example, the miner subsidy check needs the amounts from all the UTXOs that are spent in the block. But we'll probably do those checks using AwaitUtxo rather than chain.
Are there any other contextual validation checks which need transaction data? Or can we just get away with using headers?

I need to merge this PR to start implementing the contextual difficulty RFC.
So I opened #1302 to follow up the tests and the potential refactor to use a Header iterator.

@teor2345 wrote:

Are there any other contextual validation checks which need transaction data? Or can we just get away with using headers?

There's the "height in coinbase" check.


Release b2

Some cleanup of the codebase, ready for next release

Coverage increased (+0.2%) to 78.864% when pulling ef7660391ffae638f8a5540c9353a08fbaefa24a on release-b2 into d9a0f44d96af173197a479d9149e0f35b91628db on master.

Coverage increased (+0.1%) to 78.781% when pulling 832081463d6ac9a455df24df0800a4def82596ef on release-b2 into d9a0f44d96af173197a479d9149e0f35b91628db on master.


Implement test case `test_volume_backup_and_restore_with_different_co…

…mpression_method`
ref : https://github.com/longhorn/longhorn/issues/5200
The test case results can be viewed here.
Furthermore, the outcomes of the coretest tests are available for review here.

@mergify backport v1.5.x


Dataloader save

temporary pr to address https://github.com/lucidrains/audiolm-pytorch/discussions/217#discussioncomment-6611113, although the fast-forward is really slow and will probably need some tweaking (so probably not merge just yet)

looks good! would simply add one more boolean (perhaps something like resume_from_last_seen_sample) so one can turn this off too, in the case they are already doing shuffled, multi-epoch training

looks good! would simply add one more boolean (perhaps something like resume_from_last_seen_sample) so one can turn this off too, in the case they are already doing shuffled, multi-epoch training

Oops just saw this comment after taking a bit of a different approach. My thought was that, because a sound sample can be cut in many places to create an appropriately-sized input, the effective full batch size is really large and it's not totally certain we get through a full epoch consisting of all possible valid inputs given the raw audio data.
In that case I think it'd be ok to set a random seed that's dependent on the number of steps we're saving/loading at, so runs are both reproducible, while not restarting at the start upon load. Thoughts on this approach?

for it to be reproducible, you would have to save the steps at which you reload training as a list somewhere

I think it is probably fine to forget about reproducibility, as we aren't really doing one epoch training as in LLMs

maybe just forget about reproducibility for now

my hot take is, if you need to worry about seeds and reproducibility, your network is so brittle as to be useless to the general public

Yeah, my thought process was mostly reproducibility as a debugging tool earlier on but I guess it's not as crucial now that the network actually trains (albeit with overfitting--I'll follow up in the original discussion)


Unable to connect tm1phy on IBM Cloud

Hi all,
Hope you are doing well!
I'm trying to connect to a tm1 database named "SKU" on cloud, so I have this code:
`from TM1py import TM1Service
params = {
"base_url": "https://XXXXXXX.planning-analytics.ibmcloud.com/tm1/api/SKU/",
"user": "zied.XXXXX",
"password": "%%%%%%%",
"async_requests_mode": True,
"ssl": True,
"verify": True
}
with TM1Service(**params) as tm1:
print(tm1.server.get_product_version())`
When I run the code I get this response:
TM1pyRestException: Text: '' - Status Code: 401 - Reason: 'Unauthorized'
Version
TM1py 3.12.2
TM1 Server Version: 2.0.94
Any ideas what I'm doing wrong?
Thank you in advance,
Zied

Are you using the non-interactive account?

Hi Marius,
Thank you for your reply, this is what the IBM support told me,
I'll try with the non-interactive account :)
best regards,
Zied

Hi Marius,
this me again, it works !!
Thanks
Zied


liblzma build failure

Operating system
Windows 11
Compiler
MSVC
Steps to reproduce the behavior
vcpkg install liblzma

Failure logs
Computing installation plan...
The following packages will be built and installed:
<EMAIL_ADDRESS>Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exeRestored 0 package(s) from C:\Users\Hafedh TRIMECHE\AppData\Local\vcpkg\archives in 68.5 us. Use --debug to see more details.
Installing 1/1<EMAIL_ADDRESS>Building<EMAIL_ADDRESS>-- Downloading https://github.com/tukaani-project/xz/archive/v5.4.4.tar.gz -> tukaani-project-xz-v5.4.4.tar.gz...
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Trying to load bundleconfig from D:\vcpkg\vcpkg-bundle.json
[DEBUG] Failed to open: D:\vcpkg\vcpkg-bundle.json
[DEBUG] Bundle config: readonly=false, usegitregistry=false, embeddedsha=nullopt, deployment=Git, vsversion=nullopt
[DEBUG] Metrics enabled.
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Feature flag 'dependencygraph' unset
Downloading https://github.com/tukaani-project/xz/archive/v5.4.4.tar.gz
error: Failed to download from mirror set
error: https://github.com/tukaani-project/xz/archive/v5.4.4.tar.gz: failed: status code 404
[DEBUG] D:\a_work\1\s\src\vcpkg\base\downloads.cpp(1031):
[DEBUG] Time in subprocesses: 0us
[DEBUG] Time in parsing JSON: 2us
[DEBUG] Time in JSON reader: 0us
[DEBUG] Time in filesystem: 592us
[DEBUG] Time in loading ports: 0us
[DEBUG] Exiting after 615 ms (605673us)
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:32 (message):
  Failed to download file with error: 1
  If you are using a proxy, please check your proxy setting. Possible causes are:

  1. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable
     to `https://address:port`. This is not correct, because `https://` prefix
     claims the proxy is an HTTPS proxy, while your proxy (v2ray, shadowsocksr
     , etc..) is an HTTP proxy. Try setting `http://address:port` to both
     HTTP_PROXY and HTTPS_PROXY instead.

  2. If you are using Windows, vcpkg will automatically use your Windows IE Proxy Settings
     set by your proxy software. See https://github.com/microsoft/vcpkg-tool/pull/77
     The value set by your proxy might be wrong, or have same `https://` prefix issue.

  3. Your proxy's remote server is out of service.

  If you've tried directly download the link, and believe this is not a temporary
  download server failure, please submit an issue at https://github.com/Microsoft/vcpkg/issues
  to report this upstream download server failure.

Call Stack (most recent call first):
scripts/cmake/vcpkg_download_distfile.cmake:270 (z_vcpkg_download_distfile_show_proxy_and_fail)
scripts/cmake/vcpkg_from_github.cmake:106 (vcpkg_download_distfile)
ports/liblzma/portfile.cmake:1 (vcpkg_from_github)
scripts/ports.cmake:175 (include)
error: building liblzma:x64-windows failed with: BUILD_FAILED
Elapsed time to handle liblzma:x64-windows: 652 ms
Please ensure you're using the latest port files with git pull and vcpkg update.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+liblzma
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[liblzma]+Build+error+on+x64-windows&body=Copy+issue+body+from+D%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
Additional context
No response

I have this same issue.

Duplicate of https://github.com/microsoft/vcpkg/issues/37893.

Same problem on windows 11.


[DOC] Legal info updates

Description

Partially revert changes from #1364 with updated wording
Updated copyright year in configs for doc project
Updated Legal info in samples
Updated Notices and Disclaimers in doc files for doxygen

/ntelci: run

/ntelci: run

/intelci: run

/intelci: run

@outoftardis  - there is problems in doxygen generation
Error: following files contain not commented doxygen links

@outoftardis  - there is problems in doxygen generation
Error: following files contain not commented doxygen links

/intelci: run set infra_branch=dev/emekhnet-doxygen

/intelci: restart
set infra_branch=dev/emekhnet-doxygen


Arangodb issue while cluster setup. Unsuccessful consecutive tries: 21 (9.84s). Network checks advised.

HI,
i am try create arangodb cluster of 3 machine have done this steps.
1   <IP_ADDRESS>
2   <IP_ADDRESS>
3   <IP_ADDRESS>
as per this link. https://www.arangodb.com/download-major/centos/
executed same on three machines.
cd /etc/yum.repos.d/
curl -OL https://download.arangodb.com/arangodb33/CentOS_7/arangodb.repo
yum -y install arangodb3-3.3.11
as per this doc.( https://docs.arangodb.com/3.3/Manual/Deployment/Distributed.html )  executed the command on machines
On <IP_ADDRESS>:
sudo arangod --server.endpoint tcp://<IP_ADDRESS>:5001 --agency.my-address tcp://<IP_ADDRESS>:5001 --server.authentication false --agency.activate true --agency.size 3 --agency.supervision true --database.directory agency

On <IP_ADDRESS>:
sudo arangod --server.endpoint tcp://<IP_ADDRESS>:5001 --agency.my-address tcp://<IP_ADDRESS>:5001 --server.authentication false --agency.activate true --agency.size 3 --agency.supervision true --database.directory agency

On <IP_ADDRESS>:
sudo arangod --server.endpoint tcp://<IP_ADDRESS>:5001 --agency.my-address tcp://<IP_ADDRESS>:5001 --server.authentication false --agency.activate true --agency.size 3 --agency.endpoint tcp://<IP_ADDRESS>:5001 --agency.endpoint tcp://<IP_ADDRESS>:5001 --agency.endpoint tcp://<IP_ADDRESS>:5001 --agency.supervision true --database.directory agency

On <IP_ADDRESS>:
sudo arangod --server.authentication=false --server.endpoint tcp://<IP_ADDRESS>:8529 --cluster.my-address tcp://<IP_ADDRESS>:8529 --cluster.my-role PRIMARY --cluster.agency-endpoint tcp://<IP_ADDRESS>:5001 --cluster.agency-endpoint tcp://<IP_ADDRESS>:5001 --cluster.agency-endpoint tcp://<IP_ADDRESS>:5001 --database.directory primary1 &

On <IP_ADDRESS>:
sudo arangod --server.authentication=false --server.endpoint tcp://<IP_ADDRESS>:8530 --cluster.my-address tcp://<IP_ADDRESS>:8530 --cluster.my-role PRIMARY --cluster.agency-endpoint tcp://<IP_ADDRESS>:5001 --cluster.agency-endpoint tcp://<IP_ADDRESS>:5001 --cluster.agency-endpoint tcp://<IP_ADDRESS>:5001 --database.directory primary2 &

On <IP_ADDRESS>:
arangod --server.authentication=false --server.endpoint tcp://<IP_ADDRESS>:8531 --cluster.my-address tcp://<IP_ADDRESS>:8531 --cluster.my-role COORDINATOR --cluster.agency-endpoint tcp://<IP_ADDRESS>:5001 --cluster.agency-endpoint tcp://<IP_ADDRESS>:5001 --cluster.agency-endpoint tcp://<IP_ADDRESS>:5001 --database.directory coordinator &

please check attached arangod.conf file.  same file for 3 machines
facing an error for all three machines
2018-07-05T07:16:41Z [49276] INFO {cluster} cannot create connection to server '' at endpoint 'tcp://<IP_ADDRESS>:5001'
2018-07-05T07:16:41Z [49276] INFO {cluster} cannot create connection to server '' at endpoint 'tcp://<IP_ADDRESS>:5001'
2018-07-05T07:16:41Z [49276] INFO {cluster} cannot create connection to server '' at endpoint 'tcp://<IP_ADDRESS>:5001'
2018-07-05T07:16:41Z [49276] INFO {cluster} cannot create connection to server '' at endpoint 'tcp://<IP_ADDRESS>:5001'
2018-07-05T07:17:42Z [49401] INFO {agencycomm} Flaky agency communication to http+tcp://<IP_ADDRESS>:5001. Unsuccessful consecutive tries: 21 (9.84s). Network checks advised.
2018-07-05T07:17:43Z [49401] INFO {agencycomm} Flaky agency communication to http+tcp://<IP_ADDRESS>:5001. Unsuccessful consecutive tries: 22 (10.83s). Network checks advised.
2018-07-05T07:17:44Z [49401] INFO {agencycomm} Flaky agency communication to http+tcp://<IP_ADDRESS>:5001. Unsuccessful consecutive tries: 23 (11.89s). Network checks advised.

please any one suggest how to fix it.
arangod-conf.txt
arangosh-conf.txt

Hi,
have you tried to use the starter to create a cluster? In case that is successful you can copy the commands from the starter directory and start the cluster manually. You can do that for educational reasons or just to satisfy your curiosity and gain a better understanding. Otherwise we strongly recommend to use the starter because getting all the flags right manually is not trivial.

i am try to create a cluster for poc if you thing some configuration is wrong please tell me..

Please use the updated documentation https://docs.arangodb.com/devel/Manual/Deployment/Cluster/ManualStart.html and make sure the nodes are able to talk to each other.

Hi @ganeshw2706
Just sending a quick followup. Were you able to start your ArangoDB Cluster following ObiWahn steps?
Looking forward to your feedback.
Best,

no, my server will communicate with each other but when i open url on browser it shows User: Could not fetch collection permissions. ( sharing screenshot for reference)

Hi @ganeshw2706
Just sending a quick followup - was my previous message useful for you?
Is your Cluster now up and running?
Best,

Hi @ganeshw2706
Could you please provide a quick feedback on this ticket ?
Thanks

Hi @ganeshw2706
I am closing this issue for now as we have not received any feedback.
Feel free to comment and reopen in case this problem persist
Best,

Hi @OmarAyo
You are providing example for local cluster deployment, but @ganeshw2706 is talking about coorporate network cluster deployment. That's why he uses same port 5001 because they are on different machines  <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>. I have encountered the same problem and should say that documentation sux.

Try: unset http_proxy https_proxy no_proxy HTTP_PROXY HTTPS_PROXY NO_PROXY


How can I listen the segment change event

Dear,
I like your segment style. But I can listen the segment change event. I have tried below code, but it is not working
    _controller.addListener(() {
      print("selected: ${_controller.value}");
    });

I would like to know how to listen to changes too
in the standard cupertino control there is -     onValueChanged: (int newValue) {
but this method does not exist in flutter advanced segment


Troubles with portfolio page

I tried following the instructions outlined here to the best of my ability but my portfolio doesn't display like the one in the example.

My portfolio list only shows the fallback teaser image, no title or excerpt.
When clicking on a portfolio item the item's page doesn't render the header image, the gallery or the role and responsibilities side panel.

I'm using the remote theme and at first I thought the problem was me not having installed Jekyll or Ruby, so I did that and ran some commands outlined in the quickstart guide.
As expected since I don't know what I'm doing this didn't solve much, instead my bundle update command seems to hang indefinitely on "resolving dependencies".

How can I get my portfolio page to work properly?
Do I need to meddle with Jekyll and Ruby or can I use the theme without touching them?

Thanks so much for any help provided and for this fantastic theme!

My website repository: https://github.com/Gioele-Bencivenga/Gioele-Bencivenga.github.io
My portfolio page is named "games" instead of portfolio but I implemented as outlined for the portfolio page.

The fix ended up being a simple one, here is the commit fixing my problem: https://github.com/Gioele-Bencivenga/Gioele-Bencivenga.github.io/commit/0414a14cdd1ed982ef1a98dd7db2e33a0c6ae005
I also ran bundle exec jekyll serve but I honestly don't know if that played any part in solving the problem.


Add support to source branch to PR events

When creating steps for pull-request events, it's currently not possible to identify the name of the source branch. Currently the DRONE_BRANCH environment variable always returns master.
It would be great if we could have a way to figure out what is the actual name of the branch in the PR, not the one it points to.
It seems that drone now has this feature somewhat available https://github.com/drone/drone/issues/2222#issuecomment-436833841

Released in https://github.com/laszlocph/woodpecker/releases/tag/v0.8.106


Report GRPC response codes when protocol is GRPC

This issue stems from the discussion thread found here.
Currently the istio_requests_total telemetry reports HTTP response codes (I've ever only seen 200) for GRPC requests (when request_protocol="grpc").   This doesn't seem correct given that GRPC has its own set of response codes.
This is true in the 1.1.1 release and prior releases.
Is there a plan to change this behavior?  I've flagged it as a bug but feel free to convert to a feature request if that seems more appropriate.

I just had same needs and set a workaround (for demo purposes) to configure grpc codes... but the side-effect was that I was forced to lose http ones (due to CEXL and type checking). I commented on this as well: CEXL / CEL improvements

@rlenglet can someone take a look at this issue? or is there an alternate way of exposing GRPC response codes in Istio now?

@douglas-reid is there any update on this feature?

i believe we were awaiting a promised PR from the community. I don't believe that PR ever was sent. I will try to follow up with the individual.

@douglas-reid Can we get this targeted for 1.5 milestone, it was on the want-list from the wg meeting?

correct!


I can not use PatternLayoutEncoder and LogstashEncoder together

Here is my logback.xml,
'''

<IP_ADDRESS>:4561
    <encoder class="net.logstash.logback.encoder.LogstashEncoder" />
</appender>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
    <file>app.log</file>

    <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
        <Pattern>
            %d{yyyy-MM-dd HH:mm:ss} [%thread] %level %logger{35} - %msg%n
        </Pattern>
    </encoder>
</appender>
<root level="DEBUG">
    <appender-ref ref="stash" />
    <appender-ref ref="FILE" />
</root>

'''
there are two appender, LogstashTcpSocketAppender and FileAppender.
With this config file, my logstash can not received the message,  when I fix FileAppender->encoder to LogstashEncoder, it will be ok, it seems like there only can be one encoder in one config file.

this one looks ok for me
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>/log.log</file>
    <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
        <Pattern>%d{yyyy-MM-dd_HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern>
    </encoder>
    <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
        <fileNamePattern>/log.%d{yyyy-MM-dd}.log.gz</fileNamePattern>
        <maxHistory>7</maxHistory>
        <cleanHistoryOnStart>true</cleanHistoryOnStart>
    </rollingPolicy>
</appender>

<appender name="stash" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
    <destination>HOST:PORT</destination>
    <encoder class="net.logstash.logback.encoder.LogstashEncoder" />
</appender>

<root level="INFO">
    <appender-ref ref="file" />
    <appender-ref ref="stash" />
</root>
</configuration>

Thanks @osigida, but this config file can not work for me, what's your logback version?

we use something recent:
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
                <version>1.1.3</version>
            </dependency>
            <dependency>
                <groupId>net.logstash.logback</groupId>
                <artifactId>logstash-logback-encoder</artifactId>
                <version>4.5.1</version>
            </dependency>

@Yancey1989, where you able to get this working?

@philsttr We fix this problem, but not cased by the config file,maybe the other reason does it.
We add "sleep 10 seconds" before exit main function, it works ok. Maybe there is some thing like cache, these message will be droped when main function exit.

Hi @Yancey1989 ,
The TCP appender is asynchronous.  It uses a daemon thread to actually send messages.  So, your application is probably shutting down before that thread gets a chance to finish sending the messages.
See this note (from the Async Appenders section in the README.md)

In order to guarantee that logged messages have had a chance to be processed by asynchronous appenders (including the TCP appender), you'll need to cleanly shut down logback when your application exits.


[BEAM-13015] Plumb through process wide and bundle cache through the FnApiStateAccessor.

The RemoteExecutionTest checks that the token makes it e2e and is cached across bundles for iterable side input, multimap side input and bag user state.
There is no implementation in the Java shared code for multimap user state which is why that case isn't testedat at that level.
We also remove the request level cache implementation since it is superseded by the decoded object version.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @kileys @y1chi


Can I join the project？

Is there a possibility of further development for this project?
If possible, I would like to join the open source development of this project. How can I contact you?

Hi Hodoio, sorry I don't check notifications often. Yes it's open source so you can feel free to submit pull requests or create your own fork.
Currently I don't plan to put much time to further develop this project as it now can meet my own requirements. But if you like you can submit your requirements into issues


.NET Standard migration

I wanted to pack the project to a Nuget package so I could easily use it in others projects. I had to upgrade the framework to .NET Standard for it to work.
Had to migrate the container-packing.html to a dotnet core MVC app. All of it's implementation is in the Index.cshtml and should be rendered as the initial page when you run dotnet run.
Nuget package: https://www.nuget.org/packages/CromulentBisgetti.ContainerPacking/
Also, I updated the README with a URL to demo being hosted on one of my hosting: https://containerpacking.moniapp.a2hosted.com/ (I'll try to keep it online always, not 100% guaranteed)

Thank you, Edgar! I had wanted to port this to Standard, so this is great. I'm going to try to review these within the next few days, as my schedule allows.

I'm pretty sure you're a very busy man. Thanks!
Em qui, 1 de nov de 2018 22:37, davidmchapman<EMAIL_ADDRESS>escreveu:

Thank you, Edgar! I had wanted to port this to Standard, so this is great.
I'm going to try to review these within the next few days, as my schedule
allows.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/davidmchapman/3DContainerPacking/pull/12#issuecomment-435243314,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEF7P8M8JDRSZ8_bwnXgzPAKnCnJ5VQtks5uq6HogaJpZM4YCxeB
.

It uses dotnet core. Can I assist you in any way?

 You're my hero.

We're gettin there! Haha. Nuget was a local feed issue. Just resolved it. Testing now...

I ported dvdoug's boxpacker to C# a while ago, but it's internal company use only. I'm not able to open source it yet, but this looks like it's better anyway. :)

@palodequeso  Yep, I did it.

@palodequeso this lib is good to the point you can simply implement new algorithms into it, so maybe you could just box-in dvdoug's algorithm logic to a new class and add it to the enum, and modify tests, and it should work just fine.

@EdgarSalazar it looks like the sln file has a new reference to Demo.csproj. Looks like that reference should be removed? I don't see that file in src.

@davidmchapman checking

I see, just found the issue. Project was unloaded here, from when I was migrating the folders. Will push a fix now.

Fixed.

Awesome. I think my only concern is that perhaps the link to the live demo should state that the demo is hosted by you. That way it is clear to users that they are navigating away from this repo. (In other words, that there is no implied connection between the repo and the hosted app.) Does that make sense?

Absolutely, couldn't agree more. Will commit in a few minutes. The message will be:
Demo hosted by user @edgarsalazar, and not maintained nor endorsed by this project's owner.

Perfect! And all 700 packing tests passed, so we are good to go after that change.

Will do CI on future, just so the project get published on my hosting automatically.

Thanks again for this! Much appreciated.

Mr. @davidchapman , do you have Nuget account? I would like to add you as one of the Nuget Package owners: https://www.nuget.org/packages/CromulentBisgetti.ContainerPacking/1.0.0

Now I do! My nuget name is davidmchapman
Does that give you what you need?
(Thanks!)

Yep, owner request is pending your approval.
Em qua, 14 de nov de 2018 00:59, davidmchapman<EMAIL_ADDRESS>escreveu:

Now I do! My nuget name is davidmchapman
Does that give you what you need?
(Thanks!)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/davidmchapman/3DContainerPacking/pull/12#issuecomment-438520199,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEF7P7JoYioHcfUvxmTXzKZj82rAZXFdks5uu4clgaJpZM4YCxeB
.


Add stim.Tableau.to_numpy/from_numpy and stim.PauliString.to_numpy/from_numpy

Currently, to rebuild the matrix from an instance of a Tableau it requires multiple calls to .x_output() and .z_output(). Would it be possible to have a call that would return all rows of x/z either as PauliString or in GF2 form?

I'm not sure I want to add this method. Typically I've added methods because it's complex to implement from python, or actually impossible to do from python because there's some time complexity advantage (e.g. the inverse output methods).
For this method it seems like the only benefit is it turns these two lines:
x_outs = [t.x_output(k) for k in range(len(t))]
z_outs = [t.z_output(k) for k in range(len(t))]

into one line like this
x_outs, z_outs = t.all_outputs()

But the original two lines aren't that complicated, and they're much clearer about the format of the result. Is there a benefit to this method besides making those two lines into one expression? This seems like it's not paying its weight in having-to-write-documentation.
Also, what is GF2 form?

x_outs = [t.x_output(k) for k in range(len(t))]
z_outs = [t.z_output(k) for k in range(len(t))]

into one line like this
x_outs, z_outs = t.all_outputs()

But the original two lines aren't that complicated, and they're much clearer about the format of the result. Is there a benefit to this method besides making those two lines into one expression? This seems like it's not paying its weight in having-to-write-documentation.

I'm in agreement with you if it were only about syntax. It's more about the overhead cost of the calls. I found that the following hack shaves off 1 ms, which is important to us because it is called in the innermost loop. I'm figuring that if we could get all outputs together that it would reduce this overhead and might even be better than below.
    lines = repr(tableau).split("\n")
    x_output = lines[2:2+n]
    z_output = lines[4+n:4+n+n]

Also, what is GF2 form?

Binary symplectic matrix form

Could you describe more about what your innerloop is for? Maybe we can find a better place to make a cut to improve the performance.
Could you give an example of the GF2 form of a tableau? E.g. what's the GF2 for the CNOT?

Innermost loop is for calculating single qubit error spread.
Perhaps I'm not using standard terminology. Here's an example:
tableau_to_matrix_form(StimSupport.CX(0,1))
GF([[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]], order=2)

where CX is:
        T = Tableau(n)
        T.append(Tableau.from_named_gate("CNOT"), [i, j])

I'll give you a little more to work with. Initially I had:
    for i in range(n):
        xs = tableau.x_output(i)
        zs = tableau.z_output(i)

        for j in range(n):
             x = xs[j]
             z = zs[j]
             X_errors[j] += int(x in [1, 2] or z in [1, 2])
             Z_errors[j] += int(x > 1 or z > 1)
             Y_errors[j] += int(x in [1, 3] or z in [1, 3])

but this was too slow, so then I went to:
    for i in range(n):
        X_errors[i] = n - str(cliff.x_output(i)).count('_')
        Z_errors[i] = n - str(cliff.z_output(i)).count('_')
        Y_errors[i] = n - str(cliff.y_output(i)).count('_')

still too slow, so then I went to:
    lines = repr(cliff).split("\n")
    x_output = lines[2:2+n]
    z_output = lines[4+n:4+n+n]
    for i in range(n):
        x = str(x_output[i])
        z = str(z_output[i])
        X_errors[i] = n - x.count('_')
        Z_errors[i] = n - z.count('_')

        y_count = 0
        for j in range(1,n+1):  # skip the sign
            if x[j] == z[j]:
                y_count += 1
        Y_errors[i] = n - y_count

which is a bit of a hack

Ah, okay, you mean (roughly) the bit table format used in Scott Aaronson's paper. And it looks like it's not just the tableau getting in your way but also the pauli string.
I think it's reasonable to add a method to Tableau and to PauliString that serializes their contents into numpy arrays. Something like this:
>>> p = stim.PauliString("_XYZ_XYZ_XXX")
>>> p.to_numpy()
[[0 1 1 0   0 1 1 0  0 1 1 0  1 1 1],
 [0 0 1 1   0 0 1 1  0 0 1 1  0 0 0]] dtype=bool8
>>> p.to_numpy(bit_packed=True)
[[0x66 0x76],
 [0x33 0x03]] dtype=uint8

Note that's a 2d array with first axis "X vs Z" and second axis "qubit index".
The tableau method could be similar, except it would return a 4d array with first axis "input X vs Z", second axis "output X vs Z", third axis "input qubit index", fourth axis "output qubit index"? Maybe an option to flatten the XZ axes into the qubit axes since that's common? Would also need a way to get the signs out. And probably want reverse methods for going from numpy arrays back into the tableau/pauli string.

Sounds good to me. If you prefer to use the bit table format used in Aaronson's paper that would be okay, too. The reason why the format I showed above is column-oriented is somewhat arbitrary. Either way, if it is possible to get the full array I think this will help considerably.

@amirebrahimi Okay, here is the method I am going to implement:
def to_numpy(
    self,
    *,
    bit_packed: bool = False
) -> Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray, np.ndarray, np.ndarray]:
    """Decomposes the contents of the tableau into six numpy arrays.

    The first four numpy arrays correspond to the four quadrants of the table defined
    in Aaronson and Gottesman's "Improved Simulation of Stabilizer Circuits"
    ( https://arxiv.org/abs/quant-ph/0406196 ).

    The last two numpy arrays are the X and Z sign bit vectors of the tableau.

    Args:
        bit_packed: Defaults to False. Determines whether the output numpy arrays
            use dtype=bool8 or dtype=uint8 with 8 bools packed into each byte.

    Returns:
        An (x2x, x2z, z2x, z2x, x_signs, z_signs) tuple encoding the tableau.

        x2x: A 2d table of whether or not tableau(X_i)_j is X or Y (instead of I or Z).
        x2z: A 2d table of whether or not tableau(X_i)_j is Z or Y (instead of I or X).
        z2x: A 2d table of whether or not tableau(Z_i)_j is X or Y (instead of I or Z).
        z2z: A 2d table of whether or not tableau(Z_i)_j is Z or Y (instead of I or X).
        x_signs: A vector of whether or not tableau(X_i) is negative.
        z_signs: A vector of whether or not tableau(Z_i) is negative.

        If bit_packed=False then:
            x2x.dtype=x2z.dtype=z2x.dtype=z2z.dtype=x_signs.dtype=z_signs.dtype = np.bool8
            x2x.shape=x2z.shape=z2x.shape=z2z.shape = (len(tableau), len(tableau))
            x_signs.shape=z_signs.shape = len(tableau)
            x2x[i, j] == tableau.x_output_pauli(i, j)] in [1, 2]
            x2z[i, j] == tableau.x_output_pauli(i, j)] in [2, 3]
            z2x[i, j] == tableau.z_output_pauli(i, j)] in [1, 2]
            z2z[i, j] == tableau.z_output_pauli(i, j)] in [2, 3]

        If bit_packed=True then:
            x2x.dtype=x2z.dtype=z2x.dtype=z2z.dtype=x_signs.dtype=z_signs.dtype = np.uint8
            x2x.shape=x2z.shape=z2x.shape=z2z.shape = (len(tableau), len(tableau))
            x_signs.shape=z_signs.shape = len(tableau)
            (x2x[i, j // 8] >> (j % 8)) & 1 == tableau.x_output_pauli(i, j)] in [1, 2]
            (x2z[i, j // 8] >> (j % 8)) & 1 == tableau.x_output_pauli(i, j)] in [2, 3]
            (z2x[i, j // 8] >> (j % 8)) & 1 == tableau.z_output_pauli(i, j)] in [1, 2]
            (z2z[i, j // 8] >> (j % 8)) & 1 == tableau.z_output_pauli(i, j)] in [2, 3]

    Examples:
        >>> import stim
        >>> t = stim.Tableau.from_conjugated_generators(
        ...     xs=[
        ...         stim.PauliString("-Y_ZY"),
        ...         stim.PauliString("-Y_YZ"),
        ...         stim.PauliString("-XXX_"),
        ...         stim.PauliString("+ZYX_"),
        ...     ],
        ...     zs=[
        ...         stim.PauliString("-_ZZX"),
        ...         stim.PauliString("+YZXZ"),
        ...         stim.PauliString("+XZ_X"),
        ...         stim.PauliString("-YYXX"),
        ...     ],
        ... )

        >>> x2x, x2z, z2x, z2z, x_signs, z_signs = t.to_numpy()
        >>> x2x
        array([[ True,  True,  True, False],
               [False, False,  True,  True],
               [False,  True,  True,  True],
               [ True, False, False, False]])
        >>> x2z
        array([[False,  True, False,  True],
               [False, False, False,  True],
               [ True,  True, False, False],
               [ True,  True, False, False]])
        >>> z2x
        array([[False,  True,  True,  True],
               [False, False, False,  True],
               [False,  True, False,  True],
               [ True, False,  True,  True]])
        >>> z2z
        array([[False,  True, False,  True],
               [ True,  True,  True,  True],
               [ True, False, False, False],
               [False,  True, False, False]])
        >>> x_signs
        array([ True,  True,  True, False])
        >>> z_signs
        array([ True, False, False,  True])

        x2x, x2z, z2x, z2z, x_signs, z_signs = t.to_numpy(bit_packed=True)
        >>> x2x
        array([[7],
               [12],
               [14],
               [1]])
        >>> x2z
        array([[10],
               [8],
               [3],
               [3]])
        >>> z2x
        array([[14],
               [8],
               [10],
               [13]])
        >>> z2z
        array([[10],
               [15],
               [1],
               [2]])
        >>> x_signs
        array([7], dtype=uint8)
        >>> z_signs
        array([9], dtype=uint8)
    """"

@amirebrahimi  This is now merged and available in the dev release 1.10.dev1663805381 (use pip install stim==1.10.dev1663805381).
Let me know if there are any issues, so they can be fixed before it gets into a stable release.

Thanks for making a dev release. I tried it out and while the method is useful for getting numpy arrays out it unfortunately isn't as performant as using the repr hack:
%%timeit
t = Tableau(8)
(x2x, x2z, z2x, z2z, x_signs, z_signs) = t.to_numpy()
36.1 µs ± 2.17 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each)

vs
%%timeit
t = Tableau(8)
lines = repr(t).split("\n")
x_output = lines[2:2+n]
z_output = lines[4+n:4+n+n]
12.4 µs ± 61.8 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)

Any ideas how we could shave this time down?

Also one, small typo in the docs for to_numpy:
  Returns:
        An (x2x, x2z, z2x, **z2x**, x_signs, z_signs) tuple encoding the tableau.

Oh. I was imagining you were working with substantially larger tableaus. The optimizations I made are very helpful for those:
>>> t = stim.Tableau(800)

>>> %timeit repr(t).split("\n")
13.4 ms ± 408 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)

>>> %timeit t.to_numpy(bit_packed=True)
64.1 µs ± 6.24 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each)

For tiny tableaus all the overhead is going to be coming from python itself. I'm not sure how much I can do to make it faster than slicing the repr, because that does very few python operations. I'm tempted to recommend that you use the C++ API.

Yes, eventually will be working with much larger Tableaus, so that's good to know gains will come with those.

@amirebrahimi Okay, I looked more into how to return numpy arrays using pybind, and found out how to do it much more efficiently. Once https://github.com/quantumlib/Stim/pull/359 is merged the runtime of the method should improve 10x from 20-40us to ~2-4us.

@amirebrahimi give pip install stim==1.10.dev1664114306 a try.

Rockin! Confirmed that this is super fast now.


Added 'More Info' links to the descriptions of many operations for #265

Should resolve issue #265.
This adds a new optional infoURL field to operations in OperationConfig.js, which includes a URL to a relevant Wikipedia article. The URLs are generic (i.e. not localised) Wikipedia links, so will automatically redirect to the user's language.
When a description popover is displayed, and when a URL has been provided for the operation, a link will be displayed at the bottom of the popover, as seen in the following example:

I thought it would be best to add the infoURL field rather than trying to parse the description looking for links, as this would be less reliable.
It is also worth noting that should this PR be merged, the Wiki article for adding operations should be updated to include the new optional field.

@PenguinGeorge thanks for this. You may have seen on PR #284 that we are now freezing the master branch until all operations are ported over to use ESM. If you have any time, you could consider branching off the esm branch and making these changes off that. This will make it easier to merge later.
Other notes:

The test suite is failing on this branch. This is due to some errors in the operationConfig - you've mistyped a few inputType properties when adding in the new infoURLs. This should be a quick fix.
Consider using template literals for your html templates. It's not essential, but it may help make it a little cleaner.

Thanks very much for this @PenguinGeorge. I transferred all your links over to the new operation format and added more links for most of the remaining operations.
I also modified the display code so that it pulls the Wikipedia page title out of the URL, making it a bit clearer to the user.
The infoURL property has been added to the new operation script (npm run newop) so that new contributors know to add it.
Thanks once again, this is really helpful.


Community: Create a discord server

Hi @idodav , do you already have the link to the Discord server or yet to make one?

Hi @idodav , do you already have the link to the Discord server or yet to make one?

I have one now :)
https://discord.gg/QFs77KUa
ill add it to the readme later


useSelector giving  TypeError: Cannot read properties of undefined (reading 'hasValue') after running jest test cases

What version of React, ReactDOM/React Native, Redux, and React Redux are you using?

React: 18.3.1
ReactDOM/React Native: 18.3.1
Redux: 5.0.1
React Redux: 9.1.2
@testing-library/jest-dom: 6.4.6

What is the current behavior?
When I am running the jest test cases I am getting this error ;
TypeError: Cannot read properties of undefined (reading 'hasValue')
What is the expected behavior?
It should run the test cases successfully.
Which browser and OS are affected by this issue?
Chrome, Mac
Did this work in previous versions of React Redux?

[X] Yes

This might be becaues of use-sync-external-store. Please fix

There's absolutely no useful information here that we could even begin to offer help with.


Add files via upload

@Vitanh105 I am sorry, the domain students.hou.edu.vn is removed from our trusted domains list because the school allows to register an email address there even if you are not a student of the school. If you are the student of this school, please apply with official document (OFFICIAL DOCUMENT tab at https://www.jetbrains.com/shop/eform/students).


WIP: Merge serviceaccount secrets

When a namespace is restored, Kubernetes creates a new default
serviceaccount before Ark processes the backed up one.
In order to retain information, copy the secrets, including image pull
secrets, over to the new, in-cluster service account.
Fixes #130

I've uploaded a patch with 2 implementations; the original unstructured one, and one based on converting to typed objects then back.
Here's a sample benchmark run on my laptop:
x1c in /home/nrb/go/src/github.com/heptio/ark/pkg/restore (git) merge-serviceaccount-secrets SU
% go test -run=XXX -bench=.
goos: linux
goarch: amd64
pkg: github.com/heptio/ark/pkg/restore
BenchmarkMergeServiceAccountUnstructuredBasic-4                           300000              3497 ns/op
BenchmarkMergeServiceAccountBasic-4                                        50000             31636 ns/op
BenchmarkMergeServiceAccountUnstructuredMultipleSecrets-4                 200000              6564 ns/op
BenchmarkMergeServiceAccountMultipleSecrets-4                              30000             46595 ns/op
BenchmarkMergeServiceAccountUnstructuredLabelsAndAnnotations-4            200000              7565 ns/op
BenchmarkMergeServiceAccountLabelsAndAnnotations-4                         30000             44888 ns/op
PASS
ok      github.com/heptio/ark/pkg/restore       9.748s

The unstructured implementation looks way faster, but using the Go structs is definitely cleaner to me.
The unstructured approach still needs to address some code comments, but curious what other's thoughts are.

Memory benchmark results:
x1c in /home/nrb/go/src/github.com/heptio/ark/pkg/restore (git) merge-serviceaccount-secrets
% go test -run=XXX -bench=. -benchmem
goos: linux
goarch: amd64
pkg: github.com/heptio/ark/pkg/restore
BenchmarkMergeServiceAccountUnstructuredBasic-4                           500000              2889 ns/op            2008 B/op         22 allocs/op
BenchmarkMergeServiceAccountBasic-4                                        50000             28136 ns/op            3128 B/op         73 allocs/op
BenchmarkMergeServiceAccountUnstructuredMultipleSecrets-4                 200000              5397 ns/op            4248 B/op         35 allocs/op
BenchmarkMergeServiceAccountMultipleSecrets-4                              30000             42688 ns/op            6680 B/op        114 allocs/op
BenchmarkMergeServiceAccountUnstructuredLabelsAndAnnotations-4            200000              7844 ns/op            4776 B/op         47 allocs/op
BenchmarkMergeServiceAccountLabelsAndAnnotations-4                         30000             48304 ns/op            8280 B/op        212 allocs/op
PASS
ok      github.com/heptio/ark/pkg/restore       10.654s

@skriss When you have some time, I think this is ready for another pass.

LGTM


Updated index with Gitpod and Bug Fix introduction

Updated index with Gitpod and Bug Fix introduction
Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX

Thanks for contributing, however, I am not sure of these changes.
I understand you trying to add more documentation around contributing, but could you elaborate on the needs, your pain points and steps that are probably missing from our current docs.

The needs and steps that are missing from current documents is a walk though for new users on how to set up for contribution

Yes - I understand that. My question is can you elaborate in detail on the pain points though, so we can discuss and consider documentation around it?

Thank you for opening this pull request.
This is a standard message notifying you that we’ve reviewed your pull request and have decided not to merge it. We would welcome future pull requests from you.
Please read our Guidelines for Contributing for more.
Thank you and happy coding.


build(release): generates invalid semver versions and breaks material.angular.io builds

Reproduction
Steps to reproduce:

Release a new version

Expected Behavior
Only valid semver should be used for the versions in https://github.com/angular/material2-docs-content/blob/8.2.x/package.json
Actual Behavior
We’re appending partial commit SHAs to the end of the versions, i.e. 8.2.0-c29c507, 8.2.1-a5d2ed8, and the latest 8.2.2-0462599.
However, 8.2.2-0462599 is not valid semver, so yarn won’t install it.
You can check using this validator: https://jubianchi.github.io/semver-check/#/8.2.2-0462599/8.2.2-0462599
The leading 0 is the issue. It doesn’t accept versions like 01.02.03, it has to be 1.2.3.
Checking with the 0 removed, says valid semver (https://jubianchi.github.io/semver-check/#/8.2.2-462599/8.2.2-462599).
The related commits:

https://github.com/angular/material2-docs-content/commit/069a66bd81564f6e6f96d6a5737a4c5d99db02bb#diff-b9cfc7f2cdf78a7f4b91a753d10865a2
https://github.com/angular/components/commit/04625994e04120a42a5608140898868293de2f09

What is seen when trying to build material.angular.io
$ yarn install
yarn install v1.17.3
[1/4] 🔍  Resolving packages...
error Can't add "@angular/material-examples": invalid package version "8.2.2-0462599".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Seems like this is an issue we always had since introducing snapshot builds. The issue is generally quite rare as not every SHA starts with a leading zero. Definitely a good catch 😄
Here is a fix: #17267


[5949] Rubocop extension not loaded

Context
Rubocop extension not loaded
Changes proposed in this pull request
We are now loading

rubocop-capybara
rubocop-factory_bot

Guidance to review
It no longer print out
spec/support/features/lead_and_employing_school_steps.rb: RSpec/Capybara/SpecificActions has the wrong namespace - should be Capybara

1886 files inspected, no offenses detected

The following RuboCop extension libraries are installed but not loaded in config:
  * rubocop-capybara
  * rubocop-factory_bot

You can opt out of this message by adding the following to your config (see https://docs.rubocop.org/rubocop/extensions.html#extension-suggestions for more options):
  AllCops:
    SuggestExtensions: false

Important business

[x] Does this PR introduce any PII fields that need to be overwritten or deleted in db/scripts/sanitise.sql?
[x] Does this PR change the database schema? If so, have you updated the config/analytics.yml file and considered whether you need to send 'import_entity' events?
[x] Do we need to send any updates to DQT as part of the work in this PR?
[x] Does this PR need an ADR?

NB: Please notify the #twd_data_insights team and ask for a review if new fields are being added to analytics.yml

 Address tech channel noisiness


[G000572] Rep. Pete Gallego

Rep. Pete Gallego:
http://gallego.house.gov
Likely contact form URL to start with:
http://gallego.house.gov/contact/email-me

YMAL file not found. I am working on it.


Quicker relay entries

We don't need to wait for 3 blocks for signature share phase to complete and then submit an entry to the chain. As soon as we have a t+1 valid signature shares we can continue.

I've been thinking about it for a while and I realized it's not only about quicker relay entries but about relay entries in general. Right now, we exchange signature shares for exactly 5 blocks. If we have enough valid shares after 1 block, why to wait any longer? On the other hand, if we still don't have enough shares after 5 blocks, why to stop receiving them?
The pattern of a state machine works fine for DKG where we do want to wait for a fixed amount of time and if someone is late, that's their loss. Relay entry signing is different because it's everyone's loss - every group member is slashed for a timeout.
For this reason, I think it makes sense to dismount the state machine for relay entry signing and keep exchanging messages as long as it's needed (realistically, until the timeout at max) but no longer than it takes to receive t + 1 valid shares. This should be easy because we have context-based retransmissions.
We should still have a fixed predictable block time from which we count when member 2,3,...,64 becomes eligible to submit (member 1 is always eligible) and this fixed block time can remain 5.


How to add tokenizer of fine-tune whisper model for converting of ctranslater2

Hello, everyone, I have fine-tune a whisper model by the methond of this:
https://huggingface.co/blog/fine-tune-whisper
But my model can not be converted to ctranslate2. It seems lacks tokenizer. But the tutorial doesn't reference it. So anyone know how to solve it? This is my model.

You need to add vocab.json, tokenizer.json, special_token_map.json and merges.txt in the checkpoint folder that you want to convert.
You should be able to find them here : https://huggingface.co/openai/whisper-large/tree/main


JWT signature validation chain

This PR introduces JWT signature validation chain for algorithm/keys rotation. Token signature will try to validate against all available signing methods, so tokens signed with the old method will not be invalidated immediately.
PR introduces new structure for oauth_servers.token_strategy.settings field, maintaining backward compatibility with fallback to HS256 signing algorithm for old settings structure.

👍


transition effect - WIP

Looking good, please take a look at conflicts

Looking good, please take a look at conflicts

solved the conflict


Boolean property doesn't seem to work in web page

Haven't dug into this quite yet, but http://localhost:1182/?action=command&draw=1 doesn't seem to get reflected in settings.json.

I dug a little bit, but I'm not really sure why it's broken. It certainly seems like it should work, and integers work fine -- the implementation appears to be mostly the same for the two.

Oh. Stupid. Because it honors min/max, and I set min/max to 0 because it didn't seem like it would matter for a boolean. Go figure.


[release-2.4] maintain the cluster name label

Signed-off-by: Wei Liu<EMAIL_ADDRESS>

/assign @ldpliu

/lgtm

refer to https://github.com/stolostron/backlog/issues/19229


[O# Parity] Nested code actions including FixAll support for code fixes and refactorings

C# Dev Kit v0.0.649-alpha
C# v2.0.59-beta.g7eb4b27ce6
VSCode doesn't seem to support FixAll functionality for code fixes and refactorings. I couldn't find a tracking issue for this feature, so filing this issue. Feel free to dupe if there exists one.

Completed in https://github.com/dotnet/vscode-csharp/pull/6572


Clicking "load" and "save" buttons opens an empty windows

Environment: Win 10.
When I click "load" and "save" buttons it opens an empty windows, is it bug?

Similar to https://github.com/pissang/clay-viewer/issues/52 . Will remove these two unused buttons


Add support for column aliases

I didn't see support for column aliases, so I updated escapeId to see objects in the column list as the signal to alias. The key of the object is the original column and the value the alias.

I'm currently neutral on this pull request. @sidorares what are your thoughts, if any?

not sure I follow. @nybble73 can you give an example query where this would be helpful?

@sidorares - I had, at the time, a use case where I needed to say something like:
SELECT code AS title FROM some_table WHERE id=?;
I actually don't need it anymore, but column aliases are a general thing that I think people need periodically.

Maybe I'm missing something, but what about node-mysql stops that query from working at the moment?
Column aliases just work.
Again, maybe I'm missing something.

@adrianblynch This is specifically support within the ?? substitution. ATM there isn't a way to put use aliases there.

So I don't think any agreement was settled on here, and it looks like this PR is changing code that no longer exists in this module. If still interested, you're welcome to re-make the PR against https://github.com/mysqljs/sqlstring


Feature Request: Add more sections to TypeScript Section

Description: In the TypeScript Section, I would like to add more sections like Getting Started, and sections related to different datatypes, functions and classes etc. in order to make it a more complete section.
Use Case: This feature will be useful to everyone looking for a head-start into TypeScript.

Please assign me this Issue under the Label of GSSoC '24 and add label 'level 1'/'level 2'/'level 3' according to your discretion.
Thank you!

@priyavratamohan can you complete your task otherwise I will close it.

@Ajay-Dhangar yes, I'll just take one more day


Writing to OSN pod with Rclone

@rsignell-usgs suggested I look into Rclone (related issue) for transferring data between cloud providers. I am trying to use it to transfer data to the OSN pod, but I am receiving errors, and I think my configuration may be incorrectly set up.

@amsnyder yes, it can be a bit tricky to set up the configuration for the Rclone remotes.
I set up my nhgf-dev remote in rclone to use environment variables for credentials, and since our stuff is requester-pays, I can transfer using any AWS credentials that allow requester-pays, defined by the default profile in my ~/.aws/credentials file or via environment variables.
In the call below, the AWS credentials it's using are actually my esip-qhub credentials
rclone sync --s3-requester-pays \
nhgf-dev://nhgf-development/conus404/conus404_daily.zarr/time \
osn-renc://rsignellbucket2/testing/time

I didn't use my nhgf credentials for the nhgf-dev remote because they don't work unless you are on doi.net and I wanted to be able to run this anywhere.
Does this make sense?

Thanks Rich - I think I've got it working. I didn't test the nhgf credentials for requester-pays because my credentials are out of date, but I'll test that out once I get them updated. I was able to sync between one OSN pod location and another. I am curious if there's a reason you use sync instead of copy?

I didn't use my nhgf credentials either -- I used my esip-qhub credentials to read from the nhgf requester pays bucket.
I use sync because if something gets interrupted you can just issue the sync command again and it will make sure all the files in the dir and subdirs get there.


NSFont is unavailable in Mac Catalyst

When building for a MacCatalyst app, I receive the following build errors after adding the import and quick start code
let instanceURL = URL(string: "my.instance.value")                 let client = TootClient(instanceURL: instanceURL, accessToken: "MYACCESSTOKEN
The errors show up in NSFont+Traits.swift:
...SourcePackages/checkouts/TootSDK/Sources/TootSDK/Extensions/NSFont+Traits.swift:9:11 'NSFont' is unavailable in Mac Catalyst
this is repeated at lines 9, 11, 15, 19, 28, and 34.
Also receiving the additional errors - see attached image.

@kkostov I think we need to change this to #if canImport(AppKit) && !targetEnvironment(macCatalyst), to ensure this isn't included there

Thank you so much for spotting this @TheApApp, a new version with a fix will follow as soon as the build clears :)

Thanks for the quick reaction...


CustomSails: Can't set URL

Hello,
I installed CustomSails the day that Valheim patch 0.148.6 came out.  I see the plugin loads, but I can't interact with the boat to set the URL like the video shows.  I tried changing the key used, as well as setting "RequireKeyPress = false" in config, but no luck.
When I load a world, I see the following error text in the BepInEx console window:
[Error  : Unity Log] MissingMethodException: bool PrivateArea.CheckAccess(UnityEngine.Vector3,single,bool)
Stack trace:
CustomSails.ShipSailUrlSetter.UpdateText () (at <92ad433a205443ee96b908f6525e1cea>:0)
CustomSails.ShipSailUrlSetter.Awake () (at <92ad433a205443ee96b908f6525e1cea>:0)
UnityEngine.GameObject:AddComponent()
CustomSails.Ship_Patch:Ship_Awake(Ship)
Ship:DMD<Ship::Awake>(Ship)
UnityEngine.Object:Instantiate(GameObject, Vector3, Quaternion)
ZNetScene:CreateObject(ZDO)
ZNetScene:CreateObjectsSorted(List`1, Int32, Int32&)
ZNetScene:CreateObjects(List`1, List`1)
ZNetScene:CreateDestroyObjects()
ZNetScene:Update()

Fixed in 1.1.0 by removing ward restrictions.
https://valheim.thunderstore.io/package/Rolo/CustomSails/


Different problem with mirroring / sync

There are many problems with mirroring/sync as described here (last entries): https://discourse.gitea.io/t/external-git-server/1425/13

When i click "Synchronized", the commits from the mirror server will not be updated in the Web GUI. But they will be updated in the SourceTree GIT client connected to Gitea

When i try to commit/push from the SourceTree client (connected with Gitea, not the mirror repo), i got a message with "read only" / 403.

-> The remote/mirroring repo has absolutely no problems with authentication - it never had. It uses basic authentication (Standard authentication by IIS - NOT "Windows Authentication") With SourceTree, it alway worked. -> So no reason for "read only"... The remote repo was never "read only". We need http basic auth for all, read, write, update, delete, whatever...
Regards, Jan

And "private" seems to have nothing to do with the "read-only" / 403 problem.
Is "private" the option that prevents the read-only-access for everyone. (Similar to GitHub i think?)
Regards, Jan

After a few day i saw the problem (which is not really) with the "Synchronize" button for remote repo in Gitea:
https://discourse.gitea.io/t/external-git-server/1425/13
**_"On the repo main page, there is only 1 entry in vertical direction - even if there are more than 1 commit. So i saw, you have to click on “x Commits” to view all of them…
But the “remote repository is read-only” problem still persists - and no, the remote repo is NOT read-only… how i should done the first (initial) commit when it’s read only…?
And i’m still able to commit on the remote repo when i’m directly connected to it. But not if Gitea is connected to it.
And the http basic auth url stored in gitea works when i copy/paste it to browser bar:
<EMAIL_ADDRESS>And SourceTree, where i can commit to the repo (directly, no over Gitea) also uses that http basic auth.
So problem 1 i not really a problem, but problem 2 is still unsolved!
How to solve it?
Thank you for your feedbacks,
Jan"_**
....ok, so the "remote repo is readonly" is sill present. I can't say it is a bug, but so it seems it is.
Maybe somebody can proof the opposite - that it's not a bug? If yes, i think we can close that issue.
Regards,
Jan

How to make font bold and/or italic here?
There are "markers" like '_**', but they don't change the text format and will be show as plain text

maybe the workaround it to commit/push only and directly to the remote repo. never push/commit to gitea.
but it's really really sub-optimal and nothing else..

No anwser??

Which one is your current problem?

“remote repository is read-only”
But it's NOT read-only... when i connect with SourceTree, it isn't.

It is not really understandable from Your description where error is shown in Gitea or in SourceTree?

create a repo on non git server A
do an initial commit
do a new migration on git server B, that server is with github
create a new migration with "mirror" option to the repo on git server A
set up the git repo from server B, the one with gitea
trying to commit & pull to the git repo on server B (gitea) will fail on that read-only problem

If there are any questions, don't hesitate to ask me.

"It is not really understandable from Your description where error is shown in Gitea or in SourceTree?"
Gitea...

giteas repo type "mirror" only mirrors a contend !
if you like to work with it you can converte it to a normal repository - but then it wont mirror a other repository

you perhaps try to setup something like a gitlab mirror where you can also work on the mirror repo - but the technik behind isn't implemented in gitea jet (this can make sync conflict)

OK, thx.
What is "contend" ?
"gitea akts like a real mirror - you CAN change things in the real world but the mirror only display a inverted version wich CANT BE MODIFIED"
...all ok, thx again! :-)

What is "contend" ?
commits & branches

ok thx


Different size for each item in gridview

for what purpose? to increase the MaxLines of the item names textblocks, and that the height of each item adapts independently, without depending on the size of the first item.

Bumping issue to #7610


Classes derived from base classes do not deserialize correctly

json-as 0.9.21
in nasty example is problem in deserializing. Castings after deserialization does not work.
@json
class Base {}

@json
class Vec1 extends Base {
  x: f32 = 1.0;
}

@json
class Vec2 extends Vec1 {
  y: f32 = 2.0;
}

@json
class Vec3 extends Vec2 {
  z: f32 = 3.0;
}

const arr: Base[] = [
  new Vec1(),
  new Vec2(),
  new Vec3()
];

const serialized = JSON.stringify(arr);
console.log("serialized: " + serialized);
// [{"x":1.0},{"x":1.0,"y":2.0},{"y":2.0,"x":1.0,"z":3.0}]
const parsed = JSON.parse<Base[]>(serialized);
console.log("parsed: " + parsed.length.toString());
//3

//castings not working
//all deserialized instances are type of 'Base', not derived class
for (let i = 0; i < parsed.length; i++) {
   if (parsed[i] instanceof Vec1) {
     console.log("Vec1, x=" +(<Vec1>parsed[i]).x.toString());
   }
   if (parsed[i] instanceof Vec2) {
    console.log("Vec2, y=" +(<Vec2>parsed[i]).y.toString());
  }
   if (parsed[i] instanceof Vec3) {
    console.log("Vec3, z=" +(<Vec3>parsed[i]).z.toString());
  }
}

@HeiLumi, this is a just how the type system works. If you did the same in TypeScript, you'd get the same results. The problem is that when they are given the parent class, they lose their upstream prototype signature, and so even though they have the right shape, there's no way to know.
Your turning each class to Base, so of course instanceof checks won't work here. Rather, you can add a type property to each class and check if (parsed[i].type === Vec1.type) for example

stale


Fix/sauna sendgrid

Typo in commit - missing 'd' in Sendgrid
Release badge in README needs updating

Fixed.


Respecting filter in WLog_GetLogLevel

Did some local tests. The filters work now as expected. However we now have another function call for each wlog messages. Anyway +1. Thanks for fixing this.

Aside from the formatting issues +1

@akallabeth Hm looks like github was fooling me around - looks everything ok now - sorry!

@mfleisz Ah, ok :) was a bit surprised to see your comments ;)


Added forced sorting of GTS when gskip/gcount is specified.

Ensure that GTS results from Directory requests are sorted when gskip/gcount are specified. This is of importance if there are several Directory instances.

The StandaloneSplitsHandler class should also be modified

The standalone version of the Directory is accessed by a single thread and the results are always sorted, so this is not necessary per se. Will add it anyway in case we make the inner workings evolve so we won't have then bad surprises.

PTAL


[Bug]: Integration broken for EP600 with current Firmware (IOT v9043,12)

What happened?
The integration does not load. The device name is not EP600... anymore but PBOX... instead.
Version
0.0.11
What device are you seeing the problem on?
EP500
What bluetooth connection are you using?
ESPHome bluetooth proxy
Have you changed the integration settings?
false
Integration settings (if you changed them)
No response
Relevant log output
Error setting up entry PBOX22460... for bluetti_bt
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bluetti_bt/__init__.py", line 55, in async_setup_entry
    coordinator = PollingCoordinator(hass, address, device_name, polling_interval, persistent_conn, polling_timeout, max_retries)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bluetti_bt/coordinator.py", line 153, in __init__
    bluetti_device = build_device(address, device_name)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/bluetti_mqtt/bluetooth/__init__.py", line 28, in build_device
    if match[1] == 'AC200M':
       ~~~~~^^^
TypeError: 'NoneType' object is not subscriptable

You can try beta Version 0.0.15 or 0.0.16. This includes a temporary fix for this

New release 0.0.17 is now available with auto-detection instead of the dropdown

Works great thanks!


Update dependency husky to v3.0.9

This PR contains the following updates:

Package
Type
Update
Change

husky
devDependencies
patch
3.0.4 -> 3.0.9

Release Notes

typicode/husky
v3.0.9
Compare Source

Reduce dependencies: replace is-ci with ci-info #579

v3.0.8
Compare Source

Fix: git worktree support #580
Debug: check GIT_DIR environment variable when hooks are run

v3.0.7
Compare Source
Debug: display husky version and created at
v3.0.6
Compare Source
Debug: improve messages
v3.0.5
Compare Source
Fix: prevent postinstall from failing on windows #573

Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

PR has been edited
:construction_worker: This PR has received other commits, so Renovate will stop updating it to avoid conflicts or other problems. If you wish to abandon your changes and have Renovate start over you may click the "rebase" checkbox in the PR body/description.


Pagination example

This PR tweaks the nextjs-comments-notifications example to be used as a playground while building pagination. cc: @nvie @nimeshnayaju
The example is already "sandboxed" at the user ID level so even though notifications are global, you can create your own spaces that won't pollute other examples/rooms even if using shared API keys.
// User 0 in "pagination" sandbox
http://localhost:3000/general?exampleId=pagination&examplePreview=0

// User 1 in "pagination" sandbox
http://localhost:3000/general?exampleId=pagination&examplePreview=1

Changes
2 possible UIs built differently to hopefully maximize the opportunities to find limits in the new pagination APIs (we could try to build even more UI types later?).
Threads
The list of threads uses a button-style UI to load more threads infinitely, all built in user-land.
https://github.com/user-attachments/assets/edd7a9f1-0f40-4c18-a7fb-fde6dd7ed553
Inbox notifications
The inbox notifications list uses an infinite-scroll-style UI to load more notifications infinitely, built with a mix of new possible first-party APIs (onReachEnd callback) and user-land.
https://github.com/user-attachments/assets/72c03970-6397-4e70-86d2-ab5a1b5a3518

@nimeshnayaju As discussed with @marcbouchenoire, I'm going to close this PR, and we'll make it part of the new pagination branch, so we can link it locally and make the example use the real APIs, as we're building them out (by linking the example locally).


Orchestrator don't find WiFi

Describe the bug
On a fresh install (32Bits or 64Bits), everything work fine except that Orcherstrator didn't find WiFi
But I definitely connect to Bjorn device via WiFi
To Reproduce
Steps to reproduce the behavior:

Fresh install (script or manual)'
Change default local (fr_FR.UTF-8 for example)
Connect to web interface and see logs

Expected behavior
Working network scan
Screenshots
Hardware (please complete the following information):

Device: Rpi 2W
OS: Raspbian 32bits or 64bits
Browser : Firefox
Version: 130.0.1

Fix
If I change change default local back to en_GB.UTF-8, it's works.
So maybe add to the documentation to not change local, or change code of Orchestrator :)

Same problems and same solution !


refactor: refactor api implementation

Codecov Report

Merging #296 (ad6c664) into main (6c3e4f7) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #296   +/-   ##
=======================================
  Coverage   81.98%   81.98%
=======================================
  Files          28       28
  Lines         372      372
  Branches       55       55
=======================================
  Hits          305      305
  Misses         61       61
  Partials        6        6

Impacted Files
Coverage Δ

src/components/navbar.tsx
100.00% <ø> (ø)

src/components/notifications.tsx
62.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


❓ [Question]: How can i hard-code a script?

Your Question
I want to hard code a reddit script inside the code, is there any variable I can change? Thanks.

@kw5t45 I don't get what you mean. You want the AI to use a script you wrote and just do the editing with the assets? This is not possible for now unfortunately.