Errors while editing a StatusBar

Several times I have encountered errors when trying to setup a StatusBar in wxGlade on Linux Mint. Until now I haven't been able to identify a repeatable sequence that will trigger these errors.
I am currently using wxGlade 1.0.4 with Python 3.10.4 + wxPython 4.2.0 gtk3 (phoenix) wxWidgets 3.2.0 + Linux Mint 21.
The following sequence is repeatable:

Start wxGlade.
Add a Frame.
Select the Widget tab for the Frame and check "Has StatusBar".
Select the frame_statusbar in the tree and select its Widget tab.
Click in Size TextCtrl, delete the -1 and enter 100.
Press the Enter key, or just move the mouse pointer to a different application's window (so wxGlade's window loses the focus).

An Error Dialog will appear containing the following details:
ERROR   : None
An unexpected error occurred!

Exception type:      <class 'TypeError'>
Exception details:   Grid.SetCellValue(): arguments did not match any overloaded call:
  overload 1: argument 3 has unexpected type 'int'
  overload 2: argument 1 has unexpected type 'int'

Application stack traceback:
  File "/usr/share/wxglade-1.0.4/new_properties.py", line 3041, in on_kill_focus_editor
    self._on_editor_edited(event)
  File "/usr/share/wxglade-1.0.4/new_properties.py", line 3034, in _on_editor_edited
    self.grid.SetCellValue(self.cur_row, col, value)

Date and time:       2022-09-05T11:26:25.300193
Python version:      3.10.4
wxPython version:    4.2.0
wxWidgets platform:  __WXGTK__
wxGlade version:     1.0.4

After closing that error, further Error Dialogs will keep appearing as you try to recover the situation.
This includes after selecting File -> New which triggers a different error:
ERROR   : None
An unexpected error occurred!

Exception type:      <class 'AttributeError'>
Exception details:   'NoneType' object has no attribute 'NumberRows'

Application stack traceback:
  File "/usr/share/wxglade-1.0.4/new_properties.py", line 2997, in on_focus_editor
    if self.cur_row is not None and self.cur_row>=0 and self.cur_row<self.grid.NumberRows:

Date and time:       2022-09-05T11:30:20.906642
Python version:      3.10.4
wxPython version:    4.2.0
wxWidgets platform:  __WXGTK__
wxGlade version:     1.0.4

If instead of editing the Size TextCtrl, I edit the values directly in the Grid below, the errors do not occur.

Thanks for reporting. This is fixed in the repository now.

pre-release 1.1.0a1 is online now


Tests don't run for Rails 4

The build passes, but tests are not actually running (as evidenced by the low coverage).
I think we need something like:
begin
  require 'active_support/testing/autorun'
rescue LoadError
end

...in test_helper.rb, to ensure that minitest and test/unit play nicely on the various Rails versions.

This is similar to the issue @drewthorp was having with activemodel-caution.


Can you add support for Visual Studio 2022 not just VS Code?

Can you add support for Visual Studio 2022 not just VS Code?

Support for Visual Studio 20222 will not be added

@bartvanhoey  Can I then add the support for it?


An option to reverse the display order

# fzf by default shows the items in the order they came in
seq 1 100 | fzf
# 1, 2, 3, 4, 5, ...

# and it gives higher priority to the earlier items
seq 1 100 | fzf -f 9
# 9, 19, 29, 39, 49, ...

# --no-sort option can reverse the display order, but then fzf no longer sorts the result
seq 1 100 | fzf --no-sort
# 100, 99, 98, 97, 96, ...

# How about an option that makes fzf prefer the later items?
seq 1 100 | fzf --tac
# 100, 99, 98, 97, 96, ...

# Of course it is already possible with tac (or tail -r on OS X)
seq 1 100 | tac | fzf

# But tac is not suitable for large, long-running input
find / | tac | fzf

# ~~When used with --no-sort, it has no effect~~
seq 1 100 | fzf --tac --no-sort

The options are already confusing. fzf -f '' and fzf +s -f '' give the same result, while the display orders of both cases are the opposite (without -f option). Maybe I shouldn't have made --no-sort reverse the display order. Two separate concerns, not sorting the result and displaying the items in the reverse order, are intermingled with no good reason. In that regard, --reverse was also a bad choice of a name that now I can't take back.

https://github.com/junegunn/fzf/commit/c1aa5c5f3380315621d30d99b258667775b0fad3


⚠ Turnos 24x7 has degraded performance

In f3fc880, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 1034 ms

Resolved: Turnos 24x7 performance has improved in 5818bef.


Fix the quickstarter/tutorial testing script

As of Daml SDK 2.9.x this script now throws an error:

Installing with internal version file /tmp/nix-build-daml-sdk-2.9.0-snapshot.20240619.12850.0.v0cfddd39.drv-0/daml/daml_version.txt: 2.9.0-rc1
ERROR: both --install-with-internal-version and --install-with-custom-version flags were supplied

The reason is a new version logic in the Daml SDKs.


porting to deeplearn.js

probeer deeplearn te merge met master

I am very excited to start working more with tensorflow.js, however I think I will likely leave this repo as is with my plain "toy" neural network. I hope to remake many of these examples as some combination of tensorflow.js and ml5.js in future videos.


macos builds are not clearing .pkg files from workspace

What are you trying to do? Not have old files from previous builds retained
Expected behaviour: workspace directory (on master node specifically, but may be the case on the client ones too given what we're seeing.
Observed behaviour: workspace/build-scripts/jobs/jdk15u/jdk15u-mac-x64-hotspot/workspace/target is full of old pkg` files
Any other comments: Visible in the logs at e.g. https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk15u/job/jdk15u-mac-x64-hotspot/156/consoleFull
10:22:46  ls: cannot access 'workspace/target/*.tar.gz': No such file or directory
10:22:46  ls: cannot access 'workspace/target/*.msi': No such file or directory
10:22:46  + sha256sum workspace/target/OpenJDK15U-jdk_x64_mac_hotspot_2020-12-02-20-27.pkg
10:22:49  + sha256sum workspace/target/OpenJDK15U-jdk_x64_mac_hotspot_2020-12-04-20-27.pkg
10:22:51  + sha256sum workspace/target/OpenJDK15U-jdk_x64_mac_hotspot_2020-12-05-20-27.pkg
10:22:54  + sha256sum workspace/target/OpenJDK15U-jdk_x64_mac_hotspot_2020-12-06-20-27.pkg
10:22:57  + sha256sum workspace/target/OpenJDK15U-jdk_x64_mac_hotspot_2020-12-07-20-27.pkg
10:23:00  + sha256sum workspace/target/OpenJDK15U-jdk_x64_mac_hotspot_2020-12-08-20-27.pkg
10:23:03  + sha256sum workspace/target/OpenJDK15U-jdk_x64_mac_hotspot_2020-12-09-20-27.pkg
10:23:06  + sha256sum workspace/target/OpenJDK15U-jdk_x64_mac_hotspot_2020-12-10-20-27.pkg
10:23:10  + sha256sum workspace/target/OpenJDK15U-jdk_x64_mac_hotspot_2020-12-11-20-27.pkg
10:23:13  + sha256sum workspace/target/OpenJDK15U-jdk_x64_mac_hotspot_2020-12-13-20-27.pkg
10:23:16  + sha256sum workspace/target/OpenJDK15U-jdk_x64_mac_hotspot_2020-12-14-20-27.pkg
10:23:19  + sha256sum workspace/target/OpenJDK15U-jdk_x64_mac_hotspot_2020-12-15-20-27.pkg
10:23:23  + sha256sum workspace/target/OpenJDK15U-jdk_x64_mac_hotspot_2020-12-16-20-27.pkg

Looking into this.

Looking into this.

Still trying to figure out why cleanWs didn't remove these pkg files, using debug output and such.
Slightly bottlenecked because there's only one active mac build machine, and others need to use it too. The other mac build machine is disabled at the moment.

Still trying to figure out why cleanWs didn't remove these pkg files, using debug output and such.
Slightly bottlenecked because there's only one active mac build machine, and others need to use it too. The other mac build machine is disabled at the moment.

Hmm, this test (which has debug messages if you search for "DEBUG:") tells us that cleanWs is definitely cleaning the entire workspace, and makes no exception for pkg files in the "target" folder.
My next guess is that this is a permissions thing. I'll create a PR tomorrow morning that'll generate an error message and churn out a list of non-cleaned-up files (and their access permissions) if cleanWs fails to do what it says on the tin.

Hmm, this test (which has debug messages if you search for "DEBUG:") tells us that cleanWs is definitely cleaning the entire workspace, and makes no exception for pkg files in the "target" folder.
My next guess is that this is a permissions thing. I'll create a PR tomorrow morning that'll generate an error message and churn out a list of non-cleaned-up files (and their access permissions) if cleanWs fails to do what it says on the tin.

CleanWs only seems to happen on the build node, not the master node.
Here's a PR that ensures we clean up the packages on master (where needed) after they've been archived.
https://github.com/AdoptOpenJDK/openjdk-build/pull/2362

CleanWs only seems to happen on the build node, not the master node.
Here's a PR that ensures we clean up the packages on master (where needed) after they've been archived.
https://github.com/AdoptOpenJDK/openjdk-build/pull/2362

Ok, the JDK15 pipeline has been regenerated. Here's a full nightly-style mac run.
Also, thanks to @sxa for the merge. :)

Ok, the JDK15 pipeline has been regenerated. Here's a full nightly-style mac run.
Also, thanks to @sxa for the merge.  Here's an extra PR to remove the json and sha256 files as well.

Goot catch Stewart. Here's an extra PR to remove the json and sha256 files as well.


Retry policy supports service-specific retry logic

Is your feature request related to a problem? Please describe.
Storage team needs this feature for one of STG94 features.
We need to decide whether or not to retry a response based on a new response header x-ms-copy-source-error-code.
Describe the solution you'd like
Add an optional field into RetryOptions. This field is a lambda function, taking a raw response as parameter. Service sdk can set this field and add some service-specific logic to determine if a response should be retried.
Describe alternatives you've considered
Something similar to ResponseClassifier in .Net SDK
https://github.com/Azure/azure-sdk-for-net/blob/bb90af89e27be84541e142a4ffd648825a2fdbe2/sdk/storage/Azure.Storage.Common/src/Shared/StorageResponseClassifier.cs
Additional context
None
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[x] Description Added
[x] Expected solution specified

Re-opening since we made RetryPolicy final again, until Storage needs the customization feature.
We'll revisit this for STG98.


Add structured output for istioctl x precheck and istioctl verify-install

This is part of the effort for unifying istioctl command output.
Currently istioctl x precheck and istioctl verify-install print everything directly to the console and the output is hardly machine readable. We'd like to see structured output supported for these two commands in a way similar to istioctl analyze. This can be done by converting these direct output to Message objects (whose type is defined in galley/pkg/config/analysis/diag) and using standardized message formatting functions recently added to the package istioctl/pkg/util/formatting (related PR #25996).
PR #26218 is an initial attempt for precheck. A couple of things in the PR that might need some iterations:

Newly added new message codes

A new code is added for precheck. Its name is "PrecheckFailed" temporarily and could use some improvement.
It's also possibly necessary to break it into separate codes, partly for potential reuse (?) and partly because not all messages might be of the same severity level.

For each Message object there's an optional Resource field. We might want to fill this field in some cases and leave it empty otherwise.
Agree on which are exceptions (non-zero exit codes) and which are messages. This is also related to the mock tests to be described later.

Previously anything that went wrong would count as an exception, but now we might want to see some of them as error messages instead. We should consider this from the perspective of what a post-processing tool would expect from the command.
As two examples, in the PR "failed to query the Kubernetes API Server" is now recognized as an exception, while "Kubernetes cluster deployed without MutatingAdmissionWebhook support" is produced as a message.

Modify and/or expand the mock tests in pre-check_test.go

These tests were limited to checking whether an exception occurred. We might want to modify them to check the exact output from the command (including exceptions and messages), especially since we are now supporting json and yaml output formats.
Specific checks could include: if the number of messages returned is correct, if the content of these messages are correct, if a valid output is always produced whenever the command exits with code 0, if the json format is working properly, etc.

PR #26219 is an initial attempt for verify-install. Items listed above should be similarly considered for this PR as well.

cc @maasen @jasonwzm @nmittler @davidhauck

@jasonwzm What priority do you want for this?  We put it as P1? on our roadmap.

@jasonwzm What priority do you want for this? We put it as P1 on our roadmap.

P1 is fine.

There is a new issue -- https://github.com/istio/istio/issues/28915 precheck analyzer .  It might be worthwhile to see what the current istioctl precheck does and move that code into the analyzer, then make istioctl precheck a facade for istioctl analyze that suppresses all but precheck related things.
Maybe not ... I am not sure if the things like Kubernetes version that precheck does can be rolled into an analyzer.

@jasonwzm Should we retarget for 1.10?

@jasonwzm Should we retarget for 1.10?

@jasonwzm Should we retarget for 1.11?


feat(FwbDropdown): Add color prop to dropdown component

Summary by CodeRabbit
Release Notes

New Features

Introduced a new color prop for the dropdown component, allowing users to customize button colors.
Added a new example showcasing dropdowns with various color options.

Documentation

Enhanced the dropdown documentation with improved formatting and a new section on button colors.
Reformatted the API section for better clarity and alignment.

Bug Fixes

Minor styling adjustments to ensure consistency in dropdown transitions.

@coderabbitai review


Build Results Enhancer no longer works

The Build Results Enhancer sample no longer works.
After performing the following steps so that the Marketplace would actually accept the extension -

Updating the categories section in the manifest to Azure Pipelines
Upgrading the tfx-cli version in package.json so that Azure Pipelines is an accepted category

The extension does not work as specified. A section is added to the Build Summary and a Tab is added to build results, but the tab only contains the placeholder text. It does not contain the build dump.

I can confirm.
Please update the sample!
I cannot figure out how to add a section to my custom build results tab.

Would be great to have a working sample for this indeed +1


Bug: OneDrive icon is missing for the "syncing" state

What feature or improvement do you think would benefit Files?
The Files app looks good, works fine, and has a lot of features that weren't available in the original Explorer. I (also) work a lot with OneDrive and it would be a welcome addition to be able to see if a file or folder is synced with OneDrive.
Steps to repro

Start downloading or uploading large file in OneDrive
Observe that the "syncing" state icon isn't displayed

Files Version
<IP_ADDRESS>
Windows Version
10.0.22631.4169
Comments
No response

Thanks for the feedback, Files already supports this. Please screenshot Files compared to Windows File Explorer, And do you have Files on demand enabled in OneDrive?

I have on demand enabled in OneDrive. When copying a file I see in Files a green icon, meaning the copy has succeeded. In Explorer however I see that a sync is in progress.

Thanks

Does the icon show once the file is finished syncing?

Hi,
Hi, the icon shows with the arrows and once it is synced the cloud without the arrows shows. I attached a short video when copying a file to a folder on OneDrive.
Met vriendelijke groet,
Lawrence Vasseur |<PHONE_NUMBER>

Van: Yair @.>
Verzonden: dinsdag 17 september 2024 16:15
Aan: files-community/Files @.>
CC: lfrvasseur @.>; Author @.>
Onderwerp: Re: [files-community/Files] Bug: OneDrive syncing file icon doesn't show in status column (Issue #16210)
Does the icon show once the file is finished syncing?
—
Reply to this email directly, view it on GitHubhttps://github.com/files-community/Files/issues/16210#issuecomment-2355968885, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BLKSBTWLWBYWQNGJNUS4OWDZXA2PJAVCNFSM6AAAAABOK7UD66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJVHE3DQOBYGU.
You are receiving this because you authored the thread.Message ID: @.***>

Email attachments don't work. You will have to click the View on GitHub link at the bottom of the email > Copy and paste or click the add attachment button to select the file > Wait until you don't see uploading in the text > Click the green comment button.

https://github.com/user-attachments/assets/ca8d1166-09c3-40d6-bb50-b237d666c732

Thank you for confirming, there must be an issue where the icon for the syncing state is missing.

I don't see any issues listed in the log file

I will uninstall and re-install Files tomorrow and see what happens.

Files doesn't show sync status in the path bar, It shows it in the status column of each file/folder

I do see it and there was probably a miscommunication there. A note: you don't see that syncing is going on, only when the syncing is done you see a green checkmark. It might be an idea to create a status bar or something similar there so that the user can see that there is syncing.
Met vriendelijke groet,
Lawrence Vasseur |<PHONE_NUMBER>

Van: Josh65-2201 @.>
Verzonden: vrijdag 20 september 2024 00:02
Aan: files-community/Files @.>
CC: lfrvasseur @.>; Author @.>
Onderwerp: Re: [files-community/Files] Bug: OneDrive icon is missing for the "syncing" state (Issue #16210)
Files doesn't show sync status in the path bar, It shows it in the status column of each file/folder
—
Reply to this email directly, view it on GitHubhttps://github.com/files-community/Files/issues/16210#issuecomment-2362279024, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BLKSBTQFV3YDOAJF6ROSMGLZXNCYBAVCNFSM6AAAAABOK7UD66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRSGI3TSMBSGQ.
You are receiving this because you authored the thread.Message ID: @.***>


docs: Create section on migrating from raw CFN to CDK

We need to help customers move from raw CFN templates to CDK and work with a mixed system, where some stacks are synthesized from CDK and others are handwritten CFN templates.
We already have some information about using existing CFN templates in the CDK: https://awslabs.github.io/aws-cdk/passing-in-data.html#using-an-existing-cfn-template.

Hi Doug, it looks like this link is 404ing for me, did it move? thanks!

Duplicate of #2142


Player.units or map?

Hey! First off, thanks for making this! I'm tinkering with an AI project revolving around Diplomacy and this library looks really useful.
I found the entry points you mentioned in the other issue, and got a basic turn loop working, but there's one thing I'm confused about. Player objects have lists of Unit objects, but the map also has a dict mapping country name strings to Unit objects, which seems like the same information being stored in two places. All the other functions seem to mostly operate on the map, and I'm unclear on how exactly to handle the Player.units lists - should I ignore them? If not, should I manually update them at the end of each turn, or is there a function to handle this that I missed?

Glad to hear you've found the project helpful!
So I'm not seeing exactly where you're seeing the mapping of strings to list of Units being stored in the map, unless you're talking about pydip.map.predefined.vanilla_dip::generate_starting_player_units()? That's just a helper function intended to enumerate the initial positions for the various players on the vanilla diplomacy board.
This might just be reiterating what I said in the other issue to a certain extent, but it should be said that this library is very much intended to JUST perform the adjudication logic of Diplomacy. In other words: given the layout of a Map (which is just a graph showing how territories are connected to each other) and Commands issued to Units on that Map, the library will determine what the new game state should be.
My intention was to use this as the backing game logic for a web-app game, but my intention was always that it would be the game project that would be responsible for figuring out how to track the long-running state. That way I wouldn't be coupling this library to working with a database, or requiring any enthusiastic AI researchers to deal with my goofy custom game logic to make use of the code. 😃 But that does mean your project will need to do some elbow-grease and design work to determine how you want to track the game between turns and phases of a turn. 😦
If it's helpful, you can check the beginnings of the web-app game code here. Specifically, you might look into the logic wrapping resolving turns. There's a bit of boilerplate in those files, but the gist of what's going on should be relatively straight-forward. Happy to give some clarifications if needed, though. 🙂

Ah, I see what you mean. Yes, the resolve functions don't directly output new game states, but more like instructions for how to modify an existing game state. You'll definitely want to do manual updates in your logic. Sorry for the inconvenience!


Relayer - Keeper can't update after the first execution

What is the expected behavior?
The keepers should periodically trigger Relayer.execute() that triggers an Oracle.update() and if the value was updated and it satisfies a few conditions it will then be pushed into Collybus
What is the actual behavior?
The keepers are unable to update the Relayer after the first successful execute() because of the way the oracle updates it;s internal value. In order for the nextValue (which could trigger a Collybus update) to became the currentValue we need at least 2 successful Oracle updates in succession even if after the first update the Collybus is not updated.
Please provide a proof of concept that demonstrates the bug.
Practical steps to reproduce:

Trigger the first execute() that will update the oracle and set the currentValue and the nextValue to 1. This will also update the Collybus
Let the keeper trigger a new execute(), this will update the currentValue to the nextValue from the step above and also update the nextValue to a fresh value like 1.2 for example.
Because the currentValue is below the delta threshold this transaction will revert and the nextValue will still be 1 and this will break the update cycle.

Other notes on how to reproduce the issue?
Any possible solutions?
The problem lies in the early exit conditions of Relayer.execute() :
      // If the oracle was not updated, the value is invalid or the delta condition is not met, we can exit early
      if (
          !oracleUpdated ||
          !isValid ||
          !checkDeviation(
              _lastUpdateValue,
              oracleValue,
              minimumPercentageDeltaValue
          )
      ) {
          // Collybus was not updated so we return false
          return false;
      }

We should check the deviation for both the currentValue(_lastUpdateValue) and the nextValue and only revert if both are below the minimum update threshold.
Can you identify the location in the source code where the problem exists?
Relayer.sol
If the bug is confirmed, would you be willing to submit a PR?
Yes

@amarcu Please create a test that fails with this scenario since it's not clear what the problem is.
The following code seems to test exactly for the described scenario and it works correctly.
https://github.com/fiatdao/delphi/blob/5b1169f214e08a5fcd2b9ae66eee3fba51cf6cc4/src/relayer/Relayer.t.sol#L224-L277


upgrade mongo driver to 2.5.0

upgrade mongo driver to version 2.5.0

@jackowild or anyone, can we merge this one? Seems really useful to have the latest version since it supports the latest versions of mongo plus the fact that it allows you to deserialise immutable classes according to what I saw on the repo...

Hi guys. So, what's missing to merge with master? The docs seem outdated with the new changes. Need any help with that?

If you could do the docs that would be great. We just need to merge in #28 and your docs PR then I think we're ready to merge to master.
Regarding #28 I just wanted to run the code before completing the PR so leave that to me.

Ok. I'll need a list of all major breaking changes though. I understand, for instance, that we can remove registering class maps now

I don't think there are any breaking changes? Yes we should add a note stating it is no longer necessary to register class maps.

So, top of my head, we should add:

Supports latest version of akka.persistence
Supports latest version of .NET MongoDB Driver
Not necessary to register class maps anymore

Comments?

BTW, I'll do it once the PR for https://github.com/AkkaNetContrib/Akka.Persistence.MongoDB/pull/28 is done if that's ok

So I think there are 2 doc files that need updating:

RELEASE_NOTES.md
Remove the 1.3.1 update as nothing was released then.
Under 1.3.5, add your notes from the top of your head. In addition, add .NET Standard 1.6 support.

README.md
Under serialization add a note about not needing to register class maps anymore.

Perfect! Will do as soon as I get out of work and, again, https://github.com/AkkaNetContrib/Akka.Persistence.MongoDB/pull/28 is pushed. Agreed?

Agreed. Looking at #28 now so hopefully will be done soon.

Ok, good to go!

Should we also pull out of beta at this point? Seems to me we are quite stable

So, I'm done guys... Any chance to push to master?


fix: fix builtin shadowing

as error, len & cap are predeclared identifier in GoLang, we'd better avoid using them as var name to avoid shadowing, which might introduce bugs if careless

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


Multiple Servlet Applications Extending DasServlet

I'm creating a plugin using the extension point com.ibm.pvc.webcontainer.application. This is contributing a servlet application using JAX-RS, which will provide REST services for a specific application (so it's not intended to provide the same access to all NSFs on the server, and this may be key). The servlet XML in the web.xml is:
    <servlet>         <servlet-name>VanillaServletApp</servlet-name>         <servlet-class>vanillaservlet.BaseServlet</servlet-class>         <init-param>             <param-name>javax.ws.rs.Application</param-name>             <param-value>vanillaservlet.BaseApplication</param-value>         </init-param>         <load-on-startup>1</load-on-startup>     </servlet>
The BaseServlet class extends DasServlet. There are a couple of issues I'm encountering, one severe, one just a warning (see server log messages attached).

If I have a single servlet application on the server, it works fine. If I add a second, then the first accessed works fine (it doesn't matter which one I choose), but the second throws an Error 500, with a stack trace error "java.lang.IllegalStateException: Writer already obtained". The first servlet hit continues to work though. It seems the DAS class is not fully clearing the response object, because if my servlet extends com.ibm.domino.services.AbstractRestServlet (the class DasServlet extends), it's fine (this is at the end of the stack trace, after an HTTP restart). See this technote for Websphere http://www-01.ibm.com/support/docview.wss?uid=swg24017226. I've tried tracing through the code to work out where a fix would need applying. It may need adding to my own servlet class, but when I tried response.reset(), that didn't work.
With DasServlet I also get a warning message "Cannot set header. Response already committed." I also found a Websphere technote about that, http://www-01.ibm.com/support/docview.wss?uid=swg1PM84636. I don't get the message when extending AbstractRestServlet, so it may be the same cause, that the response has not been fully reset, which means it can't set the header.

As I say, it doesn't matter which servlet I hit first (and both are identical in the output), the first always works, the second always fails.
There are two questions:

Am I wrong to be using DasServlet? Perhaps it is intended as more of a persistent option, and therefore shouldn't reset the response. Perhaps it offers nothing relevant for servlets that are intended to provide access for an external application to a specific NSF, and I should extend com.ibm.domino.services.AbstractRestServlet instead. (I notice that OpenNTF Domino API changed from extending the DasServlet to creating a DasService, extending com.ibm.domino.das.service.RestService, which may be the better practice approach for providing a REST service that can be applied to all NSFs on the server.)
If DasServlet offers benefits, where should the response be correctly flushed.

I'm happy to discuss and show you it in action, if it's easier - I am running the plugins directly from Eclipse, with an environment where I can debug down into ExtLib. (And it goes without saying that if my understanding of which should be used when is wrong, I'm happy to blog.)
Servlets.zip
server stack traces.txt

I'm pretty convinced I used the wrong class. The init() method of DasServlet is synchronized, which I suspect is what's causing the problem and why that overrides the AbstractRestServlet. I think DasServlet shouldn't be overridden, but not sure what the best method of handling this is, to warn fools like me! Maybe just a comment in the class itself.

Paul,
No.  I don't think you want to extend the DasServlet class directly.
Have you seen this wiki article?  It describes how extend the DAS servlet with your own JAX-RS resource classes.  This approach uses an Eclipse / OSGi extension point instead of Java class inheritance.
-- Dave

Thanks, that's what I thought. I saw that article, but I don't want to implement a servlet that will hook into all databases. It's just going to provide REST services for a single application. I think I picked the wrong servlet class, not realising the specific use case for it.

Why not make the class final?
Von meinem iPhone gesendet

Am 25.04.2016 um 16:08 schrieb Paul Withers<EMAIL_ADDRESS>Thanks, that's what I thought. I saw that article, but I don't want to implement a servlet that will hook into all databases. It's just going to provide REST services for a single application. I think I picked the wrong servlet class, not realising the specific use case for it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub


Export to Elasticsearch and get header missing error

Describe the bug
Export to Elasticsearch and get header missing error
How to reproduce it
root@demo-192-168-60-20:~/falco# cat falco-values.yaml
USER-SUPPLIED VALUES:
driver:
  kind: ebpf
falcosidekick:
  config:
    customfields: user:eric
    elasticsearch:
      hostport: "http://<my_domain>:9200"
      username: "<my_username>"
      password: "<my_password>"
  enabled: true
tty: true

Expected behaviour
Can not upload falco logs to Elasticsearch. There are logs about header missing in notification.
Screenshots

Falco version: 0.36.2
Falco Sidekick version: 2.28.0
System info:

root@falco-6cv99:/# falco --support | jq .system_info
Mon Dec  4 08:04:05 2023: Falco version: 0.36.2 (x86_64)
Mon Dec  4 08:04:05 2023: Falco initialized with configuration file: /etc/falco/falco.yaml
Mon Dec  4 08:04:05 2023: Loading rules from file /etc/falco/falco_rules.yaml
{
  "machine": "x86_64",
  "nodename": "falco-6cv99",
  "release": "5.4.0-163-generic",
  "sysname": "Linux",
  "version": "#180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023"
}

Cloud provider or hardware configuration: falco in k8s.

I export notification to both Teams and Elasticsearch. Currently most of events are about below rule. I think the rule is "Contact K8S API Server From Container".
But when I check my Elasticsearch index this morning. I find data export to ES successfully. And I can find mapping information in my indexs. I don't know why. Because when I try to export to ES first time. I can not see any mapping information in my index. But today I can see mappings in my index.
======================
08:57:33.522296593: Notice Unexpected connection to K8s API Server from container (connection=<IP_ADDRESS>:34816-><IP_ADDRESS>:443 lport=443 rport=34816 fd_type=ipv4 fd_proto=fd.l4proto evt_type=connect user= user_uid=472 user_loginuid=-1 process=python proc_exepath=/usr/local/bin/python3.11 parent=python command=python -u /app/sidecar.py terminal=0 exe_flags= container_id=a7fd37c3d4b1 container_image=quay.io/kiwigrid/k8s-sidecar container_image_tag=1.21.0 container_name=k8s_grafana-sc-dashboard_prometheus-grafana-7f95d5cc76-fkw2s_monitoring_f6731fce-dd7f-4140-908e-684b3b3d32a5_3 k8s_ns=monitoring k8s_pod_name=prometheus-grafana-7f95d5cc76-fkw2s)
fd.name
<IP_ADDRESS>:34816-><IP_ADDRESS>:443
user.name
evt.type
connect
proc.name
python
proc.pname
python
container.id
a7fd37c3d4b1
container.image.tag
1.21.0
k8s.pod.name
prometheus-grafana-7f95d5cc76-fkw2s
proc.cmdline
python -u /app/sidecar.py
container.image.repository
quay.io/kiwigrid/k8s-sidecar
container.name
k8s_grafana-sc-dashboard_prometheus-grafana-7f95d5cc76-fkw2s_monitoring_f6731fce-dd7f-4140-908e-684b3b3d32a5_3
proc.exepath
/usr/local/bin/python3.11
fd.type
ipv4
k8s.ns.name
monitoring
rule
Contact K8S API Server From Container
priority
Notice
source
syscall
hostname
falco-6cv99
tags
T1565, container, k8s, maturity_stable, mitre_discovery, network

I check my data in ES this morning. I can see data is export to ES after 16:30 yesterday. That is the time when I add Teams output to falcosecurity. I don't know why export to ES works after I add Teams notification to falcosecurity.
What I did yesterday:

Add ES information to falcosidekick. I get header missing error and data cannot export to ES.
Add Teams information. I can get Teams notification. But I did not check my ES at that time.
Remove Teams notification. But I did not check my ES after I remove teams configuration.

Is that because I removed "customfields: user:eric"?
I remember I remove that when I add Teams information yesterday.

Can we close this issue please?

We'll try to integrate the creation of an Index Template #762 at bootstrap, it will help for the known fields but conflict will always be possible if the custom fields have share keys.


Does not work with Unity enabled clusters in Shared access mode.

Clusters that are running in the Shared access (data access mode) does not work with the above. They do not allow the use of sc.parallelize.

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

ID: fcf6b966-526d-66f3-5536-109fefe40e21
Version Independent ID: fcf6b966-526d-66f3-5536-109fefe40e21
Content: Redis - Azure Databricks
Content Source: databricks/external-data/redis.md
Service: azure-databricks
GitHub Login: @mssaperla
Microsoft Alias: saperla

@divyavanmahajan
Thanks for your feedback! We will investigate and update as appropriate.

@divyavanmahajan
Can you please elaborate your query for better understanding. So, we can assist you further.

@divyavanmahajan
We are going to close this thread, if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


net/http: RFC 6874 cleanup not done on NewRequest* methods

What version of Go are you using (go version)?
go 1.21
Does this issue reproduce with the latest release?
yes
What did you do?
func main() {
	_, err := http.NewRequest("GET", "http://[::1%lo0]:8080", nil)
	if err != nil {
		fmt.Printf("Error: %v", err)
	} else {
		fmt.Printf("OK")
	}
}

https://go.dev/play/p/oVgxggDoViJ
What did you expect to see?
"OK" displayed and request created with hostname "[::1]"  like it would have been with
This was implemented in https://github.com/golang/go/issues/9544 by @mikioh
What did you see instead?
Error: parse "http://[::1%lo0]:8080": invalid URL escape "%lo"

(CC @neild)
@RemiBou, do you want to send a CL to implement this?
(I recommend the Gerrit-based workflow from https://go.dev/doc/contribute.)

The % needs to be percent-encoded, so the URL should be http://[::1%25lo0]:8080.
RFC 6874:

According to URI syntax [RFC3986], "%" is always treated as
an escape character in a URI, so, according to the established URI
syntax [RFC3986] any occurrences of literal "%" symbols in a URI MUST
be percent-encoded and represented in the form "%25".  Thus, the
scoped address fe80::a%en1 would appear in a URI as
http://[fe80::a%25en1].


typescript react.lazy not working

Version
"react": "^16.6.3"
"react-router-dom": "4.3.1"
...
"@types/react": "^16.7.7"
"@types/react-router-dom": "^4.3.1"

Test Case
https://github.com/xpioneer/react-typescript (code splitting not working)
Expected Behavior
https://github.com/xpioneer/react16-lazy (It's working, code splitting is normal)
Actual Behavior
In typescript，React.lazy doesn't split the code.
typescript project screenshot:

the normal splitting react16-lazy screenshot:

Do I need to use babel or change webpack config file?
How can I change the router so that it working?  Thanks~~

I threw together a minimal test using Create React App, TypeScript, and React Router and the code splitting worked. While I cannot say why code splitting isn't working in your application, I am confident that React Router is not the cause.

Thank you very much, I will review my code. Then read the code generated by Create React App.

@xpioneer Did your typescript example work?

@kodermax I changed the loader, use babel...It's working~~


johndanz/ch13944/increase-net-version-and-eth-accounts-polling

https://app.clubhouse.io/augur/story/13944/increase-net-version-and-eth-accounts-polling-intervals
increased net and account polling from 3 seconds to 10 seconds.

Coverage remained the same at 66.939% when pulling 36f182d3c43a21b98a87c8604b2490ddc5028baa on johndanz/ch13944/increase-net-version-and-eth-accounts-polling into 1dec90cc119cb8feca63ca528a780b6a39ba285d on master.


Test for ReferenceManyField

The test feeds data and ids to <ReferenceManyField>, which is not the typical use case.
I suggest we implement the crudGetManyReference() to do a local object lookup.
Also, should we also check this.props.reference for refetch?
componentWillReceiveProps(nextProps) {
    if (this.props.reference !== nextProps.reference ||
        this.props.record.id !== nextProps.record.id) {
        this.fetchReferences(nextProps);
    }
}

vs
// current
componentWillReceiveProps(nextProps) {
    if (this.props.record.id !== nextProps.record.id) {
        this.fetchReferences(nextProps);
    }
}

The test is a unit test. If you want to test object lookup, that's an e2e test. Contributions are welcome for this!
As for the fact that reference may change, I don't see the use case for that.


Add tests of chunked responses in HTTP/2

We see many bugs around chunked response in HTTP/2. To avoid regressions we needs tests in TSQA.

(Migration from TS-4493)

PR in : https://github.com/apache/trafficserver/pull/1773


Hrefs in labels pathvisio

I heard that it was possible to put a direct link in a label in PathVisio. How do we do that? According to @DeniseSl22 , this was mentioned during the last WP TC. This would be very useful for linking to diseases (Denise) and Key Events (for me).

Okay, I found this commit: http://developers.pathvisio.org/attachment/ticket/1146/bug1146_branch.txt
I think you should be able to add a href in the properties pane on the right side. Is that true?

tested with @DeniseSl22 - works but it would be nice to have a user-friendly right-click option to add/edit a hyperlink

For pvjs, should these hrefs be actual links? My worry is that we could get spam links in WikiPathways.

we had this feature for a long time. i think it would be good to also support this in pvjs. we didn't have spam links until now, so i don't think we should worry too much - i think @egonw has a jenkins job running to check for new URLs, right (if not, that should be easy to implement, right?).


ModelInfo targetQualifier should be string, not QName

The targetQualifier attribute of the ModelInfo type is currently declared as a QName, but from the perspective of the ModelInfo, it's actually just a string. The JAXB implementation that was used initially didn't have any issues with writing an unresolveable QName as part of an XML document, but as part of harmonizing dependencies with other projects, the JAXB dependency was changed to use the eclipse Moxy implementation. That implementation is fine with reading unresolveable QName references (apparently, because the ModelInfo reading worked just fine) but it is not able to write an unresolveable QName, which didn't become apparent until a release of the translator that used the Moxy implementation was incorporated into CQF Tooling, where the ModelInfo writing occurs. In that code, an obscure NullReferenceException occurs when trying to write the ModelInfo, and it turns out to be because of the unresolveable QName.
The simplest fix is to correct the type of the targetQualifier attribute, which addresses the issue.

Released in 1.5.0


Here's my config:
[source]
type = "N2N"
address = ["Tcp", "relays-new.cardano-mainnet.iohk.io:3001"]
magic = "mainnet"

[source.mapper]
include_block_details = true

[source.intersect]
type = "Origin"

[[filters]]
type = "Selection"

[filters.check]
predicate = "variant_in"
argument = ["Block"]

[sink]
type = "Webhook"
url = "http://localhost:3003/"

[cursor]
type = "File"
path = "./oura/cursor"

I can't see anywhere in the documentation for any of the sink configs changing.
Thanks!

hi @CyberCyclone, each sink lives under its own cargo feature flag. When we compile the release binary, we include ALL features. If you build from source, you'll have to choose which sinks to enable. For example, if you're using the Webhook sink, you'll need to build using:
cargo build --features webhook

The available features are:

logs
webhook
kafkasink
elasticsink
fingerprint
aws


Implement @initiate decorator.

Resolves #324

Fails

:no_entry_sign:
Commit with the 'feat' type should change source files

  Generated by :no_entry_sign: dangerJS against f3d34146e5122ce581b2d9919b533fa27261f996

:tada: This PR is included in version 5.0.0-rc.1 :tada:
The release is available on:

5.0.0-rc.1
GitHub release

Your semantic-release bot :package::rocket:


Method for accessing translations within methods

Hi,
Thank you for this great module. Correct me if I'm wrong, but there's not builtin method to access a given translation from within methods.
For instance, if I want to pass a translated text to some functions, the only way to do it is directly via the store:
methods: {
  displayNotification() {
    this.$notify(this.$store.state.i18n.translations[this.$store.state.i18n.locale].notificationString);
  }
}

It would be awesome to have a helper method for that. Like this.$i18n.translate('blabla');

Hi Buzut,
There is a helper function for that. You should be able to get the translation with this.$i18n.t('blabla').
We should probably add this to the readme and make the same function accessible with this.$i18n.translate.

Oh, sorry, small correction.. you need to use this.$t('blabla') to access the translation.

Awesome thank you. As it wasn't in the readme, I inferred that it didn't exist. I should have given a look at the source :)


Staramr M. tuberculosis integration?

Hi,
This paper just came out with a new pointfinder database for M. tuberculosis:
"Improved Resistance Prediction in Mycobacterium tuberculosis by Better Handling of Insertions and
Deletions, Premature Stop Codons, and Filtering of Non-informative Sites"
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6834686/pdf/fmicb-10-02464.pdf
Database:
https://bitbucket.org/genomicepidemiology/pointfinder_db/src/master/mycobacgterium_tuberculosis/
Staramr searches pointfinder databases, would it be possible to integrate this pointfinder database within staramr?
Thanks!
Dan

Typo in your database link above.
https://bitbucket.org/genomicepidemiology/pointfinder_db/src/master/mycobacterium_tuberculosis/

Thanks @dfornika

Hi,
Would it also be possible to integrate Staphylococcus aureus into the pointfinder database as well?
Thanks!
Charlotte

Closing issue since moved requests into #17


Refactor polybuild.py to use more blight

This PR does several things that concern build and instrumentation. In chronological order these are:

significantly reduces the scope of polybuild, removing llvm-xray options , separate bitcode lowering options, etc
makes bitcode lowering use compilation arguments recorded in a blight journal
removes --libs option, link libraries are inferred from a blight journal
removes unnecessary opt runs from instrumentation, including the metadata pass as it did nothing
removes duplicate cmake code related to building polytrackers' LLVM passes
moves dump_cxx_symbols to a new unused directory, as it is never used
merges remaining opt runs into a single one
removes unnecessary global variables from polybuild
moves all polybuild functionality to build.py
separates all build and instrumentation steps into polytracker commands
updates all docker examples to use the new build and instrumentation commands
updates infrastructure in tests accordingly
removes polybuild.py
updates documentation accordingly

Resolves #88

Resolves #8

@hbrodin @ESultanik Thanks for the review! Everything should be addressed now.


Validate Conversation ID

Proposed changes:

Solves issue #7022
Create a decorator to validate that a conversation ID exists when requests are made to the following endpoints:

GET /conversations/<conversation_id:path>/story
POST /conversations/<conversation_id:path>/execute
POST /conversations/<conversation_id:path>/predict

Status (please check what you already did):

[ ] added some tests for the functionality
[ ] updated the documentation
[ ] updated the changelog (please check changelog for instructions)
[x] reformat files using black (please check Readme for instructions)

Thanks for submitting a pull request 🚀 @JustinaPetr will take a look at it as soon as possible ✨

@JustinaPetr I assigned myself as @aleronupe were already taking here about it
@aleronupe Will give it a review later today or tomorrow 👍

Hello @wochinge, we've just made the required changes and added the unit tests for the new functionalities. Would you please take a look at it?

Hi @wochinge, we've made the required changes. Can you please take a look?

Hi @wochinge, we've made the required changes. Can you please take a look?

@aleronupe Can we wrap this up? Happy to help 🙌🏻

Re the failing windows tests: Windows testing is a bit flakey atm. Re-running the tests should hep 🤞🏻

@wochinge we've fixed the URL error but windows tests keep failing on a different section of the code. Is there any other change we should make to fix this?

Can you please merge the latest main state into your branch? It should be just a matter of re-running / might be fixed on main already.

@wochinge we’ve updated The branch and now all the testes are passing

@aleronupe It's out of date again. Can you somehow make it that I can push to your repo as well? Then i can update the branch as well for you.

@wochinge Our repo is on an organization from our university, so I think it won’t be possible, but we’ve just updated the branch

Merged 🎉 Thanks for your patience!


STTR-light inference script update

Edited config for light model launching

I'm sorry, as a beginner, I have some problems. After reading this answer, I made corresponding modifications. But when running ‘STTR-light inference script’, my program reported the following errors.At present, I don't know much about STTR, so I don't know how to modify the parameters.Hope to get your reply。
Missing key(s) in state_dict: "tokenizer.up.2.convTrans.0.weight", "tokenizer.up.2.convTrans.1.weight", "tokenizer.up.2.convTrans.1.bias", "tokenizer.up.2.convTrans.1.running_mean", "tokenizer.up.2.convTrans.1.running_var", "tokenizer.up.2.convTrans.1.num_batches_tracked", "tokenizer.up.2.convTrans.2.weight", "tokenizer.up.2.convTrans.2.bias", "tokenizer.dense_block.2.double_conv.0.weight", "tokenizer.dense_block.2.double_conv.1.weight", "tokenizer.dense_block.2.double_conv.1.bias", "tokenizer.dense_block.2.double_conv.1.running_mean", "tokenizer.dense_block.2.double_conv.1.running_var", "tokenizer.dense_block.2.double_conv.1.num_batches_tracked", "tokenizer.dense_block.2.double_conv.3.weight", "tokenizer.dense_block.2.double_conv.4.weight", "tokenizer.dense_block.2.double_conv.4.bias", "tokenizer.dense_block.2.double_conv.4.running_mean", "tokenizer.dense_block.2.double_conv.4.running_var", "tokenizer.dense_block.2.double_conv.4.num_batches_tracked".
size mismatch for tokenizer.bottle_neck.denselayer1.conv1.weight: copying a param with shape torch.Size([64, 128, 1, 1]) from checkpoint, the shape in current model is torch.Size([16, 128, 1, 1]).
size mismatch for tokenizer.bottle_neck.denselayer1.norm2.weight: copying a param with shape torch.Size([64]) from checkpoint, the shape in current model is torch.Size([16]).

Hi @cp319, this looks like you are using the wrong model. Can you check if you loaded the right one?

Yes, I use model celled  “sttr_light_sceneflow_pretrained_model.pth.tar”  under "inference_example.ipynb". The above problems appear. I have adjusted the number of nheads.

Edited config for light model launching

Hello, excuse me. In addition to adjusting the inference program, whether other programs need to be modified. Is it convenient to provide specific modification methods。

Hi @cp319, can you tell me which file you are trying to run and which branch are you on? I can take a look to see what is wrong.

Hi @cp319, can you tell me which file you are trying to run and which branch are you on? I can take a look to see what is wrong.

I'm trying to run  "scripts/inference_example.ipynb" using "sttr_light_sceneflow_pretrained_model.pth.tar".
I've changed Densenet's "Growth_Rate" from 4 to 16. And is trying to manually reduce the number of layers of "tokenizer.up"

Hi @cp319
The inference_example is designed to run the provided pretrained weights. If you start to modify the growth rate and number of layers, you CANNOT use the pretrained weights any more and need to retrain the network with the parameters you specified.


Hard coded Python version

The Python version is hard coded, so if you have are using a different version you need to edit the following file accordingly (the version used is python 3.6m):

youtube/youtube.pro:
INCLUDEPATH += /usr/include/python3.6m

well, this is not working for me, I also have the python v 3.6, so i guess that it is because of that
i used yaourt to install and I saw a bunch of errors too, but it is because of mirrors, so ..  i don't know what to do right now..
here:
:: Retrieving packages...
qjson-0.8.1-5-x86_64      59.9 KiB   749K/s 00:00 [########################] 100%
error: failed retrieving file 'youtube-dl-2017.02.01-1-any.pkg.tar.xz' from ftp.rnl.tecnico.ulisboa.pt : The requested URL returned error: 404
error: failed retrieving file 'youtube-dl-2017.02.01-1-any.pkg.tar.xz' from archlinux.mirror.kangaroot.net : The requested URL returned error: 404
error: failed retrieving file 'youtube-dl-2017.02.01-1-any.pkg.tar.xz' from archlinux.thelinuxnetworx.rocks : The requested URL returned error: 404
error: failed retrieving file 'youtube-dl-2017.02.01-1-any.pkg.tar.xz' from arch.tamcore.eu : The requested URL returned error: 404
error: failed retrieving file 'youtube-dl-2017.02.01-1-any.pkg.tar.xz' from mirror.nl.leaseweb.net : The requested URL returned error: 404
error: failed retrieving file 'youtube-dl-2017.02.01-1-any.pkg.tar.xz' from mirror.tyborek.pl : The requested URL returned error: 404
error: failed retrieving file 'youtube-dl-2017.02.01-1-any.pkg.tar.xz' from archlinux.polymorf.fr : The requested URL returned error: 404
error: failed retrieving file 'youtube-dl-2017.02.01-1-any.pkg.tar.xz' from ftp.nluug.nl : The requested URL returned error: 404
error: failed retrieving file 'youtube-dl-2017.02.01-1-any.pkg.tar.xz' from archlinux.mirrors.uk2.net : The requested URL returned error: 404
youtube-dl-2017.02....  1727.4 KiB  1243K/s 00:01 [########################] 100%
error: failed retrieving file 'qmmp-1.1.6-1-x86_64.pkg.tar.xz' from ftp.rnl.tecnico.ulisboa.pt : The requested URL returned error: 404
error: failed retrieving file 'qmmp-1.1.6-1-x86_64.pkg.tar.xz' from archlinux.mirror.kangaroot.net : The requested URL returned error: 404
error: failed retrieving file 'qmmp-1.1.6-1-x86_64.pkg.tar.xz' from archlinux.thelinuxnetworx.rocks : The requested URL returned error: 404
error: failed retrieving file 'qmmp-1.1.6-1-x86_64.pkg.tar.xz' from arch.tamcore.eu : The requested URL returned error: 404
error: failed retrieving file 'qmmp-1.1.6-1-x86_64.pkg.tar.xz' from mirror.nl.leaseweb.net : The requested URL returned error: 404
error: failed retrieving file 'qmmp-1.1.6-1-x86_64.pkg.tar.xz' from mirror.tyborek.pl : The requested URL returned error: 404
error: failed retrieving file 'qmmp-1.1.6-1-x86_64.pkg.tar.xz' from archlinux.polymorf.fr : The requested URL returned error: 404
error: failed retrieving file 'qmmp-1.1.6-1-x86_64.pkg.tar.xz' from ftp.nluug.nl : The requested URL returned error: 404
error: failed retrieving file 'qmmp-1.1.6-1-x86_64.pkg.tar.xz' from archlinux.mirrors.uk2.net : The requested URL returned error: 404
qmmp-1.1.6-1-x86_64     1840.2 KiB  1759K/s 00:01 [########################] 100%

That's odd... QMMP and youtube-dl were both updated meanwhile. Maybe you were using old repos and the links are now broken. Try update pacman database and install the plugin again:
sudo pacman -Suy youtube-dl qmmp
yaourt qmmp-plugin-youtube

But, even so, it seems that you were able install those packages because of the following lines:
qjson-0.8.1-5-x86_64 59.9 KiB 749K/s 00:00 [########################] 100%
[...]
youtube-dl-2017.02.... 1727.4 KiB 1243K/s 00:01 [########################] 100%
[...]
qmmp-1.1.6-1-x86_64 1840.2 KiB 1759K/s 00:01 [########################] 100%

This fixes the problem? Are you able to compile the project?
Please let me know if you have any progress.

Well, i did a full system upgrade and now it's running no problemo
so .. that's that

Nice!!


Perplexity Metrics Doc

Linked issue(s):
Fixes KOL-3493
What change does this PR introduce and why?
Adds perplexity to the metrics glossary
Please check if the PR fulfills these requirements

[x] Include reference to internal ticket and/or GitHub issue "Fixes #NNNN" (if applicable)
[x] Relevant tests for the changes have been added
[x] Relevant docs have been added / updated

bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

Any idea on what this CI failure could be? I've reran the failed tests twice and it's appeared both times

bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

Any idea on what this CI failure could be? I've reran the failed tests twice and it's appeared both times

Can you try merging the latest trunk?


Doesn't recurse all the way through a complex object graph

I tried use this with camelcase-keys and noticed two problems:
1 --It doesn't call the function on the current key if the value is an object
2 -- if the value is an array of objects it also doesn't recurse (or so it appears)
I fixed issue #1 by changing the code block to be like
mapObjectRecursive._mapOrRecurse = function mapOrRecurse(mappingFunction) {
	return function mappingOrRecursing(key, value, object) {
		// If `value` is a plain object, recurse.
		if (typeof value === 'object' &&
			!(value instanceof Array)) {
			var result = mappingFunction(key, value, object);
			return [result[0], mapObj(result[1], mappingOrRecursing)];
		}

But #2 still exists .. looking at that ..

Hey @sjmcdowall, thanks a lot for the bug report! Would you be interested in taking over maintenance of this module?

Thanks -- but maybe you should direct people to "map-object" and their 4.0 (?) version that now has a "deep:true" option that recurses (and does it nicely).. ???

Thanks! https://github.com/tomekwi/map-object-recursive.js/commit/bd0c8c0343e61017093a262cf11c27b245e875e2

Actually, I’ll keep this open to let people know what’s wrong with the implementation.


scan-cisbenchmark - failure in a Windows system call: The user name or password is incorrect.

I have a Kubernetes cluster that consists of a Windows node and a Linux node. When I install the starboard operator, it triggered two job - scan-cisbenchmark - one for each node. The job running on the Linux node ran successfully, however the job for the Windows node is throwing an error:
(combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "scan-cisbenchmark-5774f95bfc-d226t": Error response from daemon: container 4c38e9eb4831710b915621748a2353a13235b04f6e8523ebb333fc0a932dda10 encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The user name or password is incorrect. (0x52e) extra info: {"CommandLine":"cmd /S /C cmd /c ping -t localhost","User":"0:0","WorkingDirectory":"C:\\","CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}

I may be being an idiot but I didn't see in the guide where you would add this username or password.

👋 @goosedeersolutions KubeBench can only be run on Linux nodes. Therefore, for Starboard CLI we skip Windows nodes explicitly by looking at the kubernetes.io/os (see here). IIRC we haven't done that for the operator so that would be a bug. Could you just confirm what is the value of the kubernetes.io/os label for the Windows node or any other labels / annotations that distinguish node OS.


Strassen Algorithm

Enter your question - Strassen algorithm
The Strassen algorithm provides a faster-than-standard way to multiply matrices.
It is not very useful for smaller matrices, but will perform better for large ones.
The question is as follows - Take as input an n×n matrix A and n×n matrix B.
The output shall be their multiplication calculated through the Strassen algorithm.
Enter link to the question(if question belongs to any online platform) -
Tags for the question(eg - Array, Basic, Stack, etc.) -
Matrix, Array, Divide and conquer
I am suggesting this as an idea for the hacktoberfest 2021 and I would kindly ask to work on this myself as I always wanted to implement this :)

@ThexXTURBOXx,
Kindly create a "Add a question" issue for the proposal suggested above.

@SarthakKeshari I updated the issue to fit the template

@ThexXTURBOXx,
Kindly add your solution to "Arrays/2D Arrays" folder.
Deadline - 04/10/2021


3 node cluster SSL issue

Im having issues setting up SSL on a 3 node cluster.
Here is the config used.
cluster.name: test
network.host: Test01
http.cors.enabled: true
http.cors.allow-origin: /.*/
http.cors.allow-credentials: true
discovery.zen.ping.unicast.hosts: ["Test01:9300", "Test02:9300", "Test03:9300"]
discovery.zen.minimum_master_nodes: 2

security.manager.enabled: false
searchguard.ssl.transport.keystore_filepath: node.jks
searchguard.ssl.transport.keystore_password: "xxx"
searchguard.ssl.transport.truststore_filepath: truststore.jks
searchguard.ssl.transport.truststore_password: "xxx"
searchguard.ssl.transport.enforce_hostname_verification: false
searchguard.ssl.transport.keystore_alias: node

searchguard.ssl.http.enabled: true
searchguard.ssl.http.keystore_filepath: node.jks
searchguard.ssl.http.keystore_password: "xxx"
searchguard.ssl.http.truststore_filepath: truststore.jks
searchguard.ssl.http.truststore_password: "xxx"
searchguard.ssl.http.keystore_alias: node

searchguard.authcz.admin_dn:
  - "CN=xxx, OU=xxx, O=xxx, L=xxx, ST=xxx, C=xxx"

And here is the error message.
[2016-06-21 16:16:12,157][WARN ][discovery.zen.ping.unicast] [Xavin] failed to send ping to [{#zen_unicast_1#}{xxx}{xxx/xxx:9300}]
RemoteTransportException[[Anything][xxx:9300][internal:discovery/zen/unicast]]; nested: ElasticsearchSecurityException[Internal or shard requests not allowed from a non-server node for transport type netty];
Caused by: ElasticsearchSecurityException[Internal or shard requests not allowed from a non-server node for transport type netty]
	at com.floragunn.searchguard.transport.SearchGuardTransportService.messageReceivedDecorate(SearchGuardTransportService.java:199)
	at com.floragunn.searchguard.ssl.transport.SearchGuardSSLTransportService$Interceptor.messageReceived(SearchGuardSSLTransportService.java:128)
	at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:75)
	at org.elasticsearch.transport.netty.MessageChannelHandler.handleRequest(MessageChannelHandler.java:245)
	at com.floragunn.searchguard.ssl.transport.SearchGuardMessageChannelHandler.handleRequest(SearchGuardMessageChannelHandler.java:62)
	at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:114)
	at com.floragunn.searchguard.ssl.transport.SearchGuardMessageChannelHandler.messageReceived(SearchGuardMessageChannelHandler.java:50)
	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
	at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)
	at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)
	at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
	at org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:75)
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
	at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)
	at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)
	at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
	at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)
	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337)
	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)
	at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
	at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
	at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

Your node.jks need to contain a server node certificate (one with OID <IP_ADDRESS>.5.5). Pls. see also

https://github.com/floragunncom/search-guard-docs/blob/master/installation.md and
https://github.com/floragunncom/search-guard-ssl/blob/master/example-pki-scripts/gen_node_cert.sh#L35

Hi, I've got the same issue. I added the OID so that now my cert contains the identifier as a SAN:
output of keytool -printcert
...
#5: ObjectId: <IP_ADDRESS> Criticality=false
SubjectAlternativeName [
  DNSName: elasticsearch-server
  Other-Name: Unrecognized ObjectIdentifier: <IP_ADDRESS>.5.5
  IPAddress: <IP_ADDRESS>
  IPAddress: <IP_ADDRESS>
  IPAddress: <IP_ADDRESS>
]
...

Before I added in the IPAdress entries searchguard was throwing the error:
java.security.cert.CertificateException: No subject alternative names matching IP address <IP_ADDRESS> found

Now that I have both IPAddresses and the otherName entry, I'm back to getting the non-server netty transport error.
I have both search-guard-2 and search-guard-ssl installed, and below is the relevant portion of my elasticsearch.yml file.
# Enable or disable node-to-node ssl encryption (default: true)
#searchguard.ssl.transport.enabled: true
# JKS or PKCS12 (default: JKS)
searchguard.ssl.transport.keystore_type: JKS
# Relative path to the keystore file (mandatory, this stores the server certificates), must be placed under the config/ dir
searchguard.ssl.transport.keystore_filepath: "/etc/path/server-keystore"
# Alias name (default: first alias which could be found)
#searchguard.ssl.transport.keystore_alias: my_alias
# Keystore password (default: changeit)
searchguard.ssl.transport.keystore_password: XXX
#
# JKS or PKCS12 (default: JKS)
searchguard.ssl.transport.truststore_type: JKS
# Relative path to the truststore file (mandatory, this stores the client/root certificates), must be placed under the config/ dir
searchguard.ssl.transport.truststore_filepath: "/etc/path/server-truststore"
# Alias name (default: trust all aliases)
#searchguard.ssl.transport.truststore_alias: my_alias
# Truststore password (default: changeit)
searchguard.ssl.transport.truststore_password: XXX
# Enforce hostname verification (default: true)
#searchguard.ssl.transport.enforce_hostname_verification: false
# If hostname verification specify if hostname should be resolved (default: true)
#searchguard.ssl.transport.resolve_hostname: true
# Use native Open SSL instead of JDK SSL if available (default: true)
#searchguard.ssl.transport.enable_openssl_if_available: false

Any advice on how to continue debugging would be much appreciated :)

@dopey
For me the output looks like:
output of keytool -printcert
#5: ObjectId: <IP_ADDRESS> Criticality=false
SubjectAlternativeName [
  DNSName: node-1.example.com
  DNSName: localhost
  IPAddress: <IP_ADDRESS>
  OIDName: <IP_ADDRESS>.5.5  <-------------
]

Do you generated the certificates with our scripts? If not pls share the command you used.

I use an open source library to generate the certs and manage my PKI. The library is called certified (https://github.com/rcrowley/certified) and the main differences are that it uses openssl instead of keytool, and it also manages my PKI and signs every new certificate using my CA. So when I generate a new cert, the process encapsulated in certified is:
1) generate an openssl.cnf file
2) generate a csr file
3) generate a cert from the csr signed by my certificate authority

The format of the SAN section in the openssl.cnf file is as follows:
[san]
DNS.1 = staging-elasticsearch-server
DNS.2 = *.es.my-domain.com
otherName.1 = <IP_ADDRESS>.5.5;UTF8:some other identifier

I cribbed this format from a stackexchange question (http://stackoverflow.com/questions/38030893/how-to-format-an-oid-subject-alt-name-entry-in-a-openssl-cnf-file/38031068#38031068) I asked a few days ago -- the question being: how to correctly format an OID type SAN entry in an openssl.cnf file.
The response in the question cites the openssl.cnf documentation which says to use othername as the keyword for this sort of entry. So as far as I can tell, either there is another keyword that I should be using in the openssl.cnf file, or the comment section ("some other identifier") needs to be something specific that is being set by default by keytool.
Given that keytool -printcert gives a different value for the OID SAN in our separate cases:
OIDName: <IP_ADDRESS>.5.5 ---> for you
and
otherName.1 = <IP_ADDRESS>.5.5;UTF8:some other identifier  -----> for me

Im thinking its an encoding issue.

Looking into the openssl conf docs maybe ```RID``is what you looking for. Can you try this?

@floragunncom that worked. Thanks a ton!

@twatson83 solved for you too?

no response from reporter, assume solved. If not pls. feel free to reopen.


authenticator-rs: init at 0.7.6

Description of changes
authenticator-rs is a TOTP-MFA application written in Rust and GTK3.
It is currently packaged as a .deb, an .rpm, and is in the AUR.
Main view

Group editing

Account editing

Importing and exporting
Using yaml format
---
- name: group name
  url: bbc.co.uk
  entries:
    - label: Account 1
      secret: secret code

Things done
Packaging this application was a little more challenging than I expected.

The version numbers in the repository didn't match the version numbers in the metadata. The metadata was 0.1 and 0.0.1; the repository is 0.7.6.

Two tests make use of the network.

The install process uses a hand-written Makefile that baked in assumptions about /usr. It also re-compiled the source.

I also decided to strip "RS" from the .desktop name, as it didn't add anything to the functionality of the application.

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

@matthiasbeyer, as a new committer and a Rust aficionado, perhaps you'd like to review and merge if it passes your bar?

Thank you so much for the review, @matthiasbeyer. I've opened two PRs against upstream for the issues I ran into while packaging, and the Nixpkgs commit now no longer holds a patch.

There are a few things that IMO have to be changed: First of all, the patch file introduces more changes than necessary. Keep the changed stuff from patches as minimal as possible. For example, removing the "RS" prefix - that's renaming the application from what the original authors wanted it to be named. We shouldn't do that.

Removed all branding changes. That can stay in my personal NixOS configuration.

Also, we might want to see whether we can contribute these changes upstream - what do you think? The changes to the Makefile could be contributed upstream I guess... maybe they'll be accepted?

Hope so!

From the nix code itself, this PR looks fine IMO! 🎉 Thanks again for taking the time for contributing!

Thanks for the review, and I think it's ready for a re-review.

Can you please share a link to the PRs against upstream? Would be nice to track these.

Can you please share a link to the PRs against upstream? Would be nice to track these.

Sure thing. They're in the comments, and also here:

https://github.com/grumlimited/authenticator-rs/pull/138
https://github.com/grumlimited/authenticator-rs/pull/139


Jenny gen in Unity does not generate components, but CLI does

I would expect that they should work exactly the same.

Just to be sure, have you seen the 2 assumptions I've made in #519?
When you say you use Unity to generate, I assume you use the reflection based generator and there's no need to use the CLI. When you say you use the CLI I assume that you use the Entitas.Roslyn plugin, because this is not supported by Unity yet.

I mean the menu option Jenny -> Generate, which I would assume to the be the same as Jenny.exe gen and different than Entitas->Generate.

As I've seen from your previous issue, I see you're using Roslyn. Unfortunately roslyn doesn't work in Unity yet because it's using new .NET frameworks. This is why you have to use the CLI for now. You cannot generate with the green generate button from Unity. While it should theoretically do the same no matter if in Unity or not, there are some differences and limitations when run in Unity. But I think once set up correctly, the workflow with generating right from the IDE is faster and more convenient anyway.
See the video from #492


compilation error in ubuntu

I am trying to cross compile Mac version in ubuntu 12 and get this error:
cd depends
make HOST=x86_64-apple-darwin11
.
.
.
make[1]: Leaving directory `/home/coin/dogecoin/depends/work/build/x86_64-apple-darwin11/native_cctools/ee31ae567931c426136c94aad457c7b51d844beb-9bfe0ff3c50/cctools'
cp: cannot stat ‘lib/clang/3.3/include/*’: No such file or directory
make: *** [/home/coin/dogecoin/depends/work/staging/x86_64-apple-darwin11/native_cctools/ee31ae567931c426136c94aad457c7b51d844beb-9bfe0ff3c50/.stamp_staged] Error 1

how fix this?

Closing for inactivity. Feel free to re-open if that's still an issue. But Ubuntu 12 is far too old really.


Add an auto-rename feature like advertised on website

Either the auto-rename is not available or I didn't find how to configure it, but I was hopping to use it.
That would be super cool to have configurable file/subtitle renaming.

If you drop a video file over caption, the subtitles are automatically renamed, aren't they?

Ah my bad I guess I didn't understand the feature. I thought it would rename both the input video file and the subtitle to something I wanted/configured. I do not know the original subtitle name so I cannot judge if it was renamed or if it was the same name to begin with.
Nevermind then.

I'll close this issue for now.


(GH-39) Extend functionality of class injection

Prior to this PR, the CSS class injection functionality was implemented such that it:

Operated only on "book section" children (e.g. content/docs/foo/bar.md but not content/posts/foo.md)
Injected only the first section segment name (or the cssClass parameter value if specified in the _index.md for that section) - e.g. for content/docs/foo/bar/baz.md it would inject foo
Allowed a user to inject arbitrary classes as defined in the frontmatter of a top level "book section" via the cssClass parameter by specifying a space-separated list of class names instead of a single class name.

This commit modifies the getCssClass partial which is used to determine what class(es) should be injected by:

Reworking the logic to operate only on files (i.e. it will not inject classes into other generated pages like taxonomy)
Extending the functionality to operate on all sections, not exclusively those defined as a "book section"
Extending the functionality to operate on top level pages, injecting their url segment as the class by default unless the page frontmatter specifies the cssClass parameter.
Extending the functionality to compose the classes-to-inject all the way up the ancestor chain, using the url segment for each section unless that section has an _index.md file which specifies the cssClass parameter in its frontmatter.
Extending the functionality to allow non-index child pages of a section to append their own class for injection only if that page specifies the cssClass parameter in its frontmatter.

This should enable more flexible usage of the CSS injection by users.
Resolves #39

Very nice! Any demo for this?

Yeah! I have it working locally, let me see if I can figure out how to have hugo reference a branch for a module and get a netlify preview up for flagrant.garden!

Okay, figured it out! I needed to manually add an entry to the go.mod for my project like:
replace github.com/platenio/hugo-platen => github.com/michaeltlombardi/hugo-platen gh-39/main/update-class-injection

Then run hugo mod clean and then hugo serve to get it working, at which point it updated the mod file to:
replace github.com/platenio/hugo-platen => github.com/michaeltlombardi/hugo-platen v0.0.0-20220213052241-6fc5f5854332

Anyway! You can find that source here and the preview here. Note that the homepage does not have any CSS injection on it.
If you navigate to /games/factions/scenarios, you'll see that the background is set to aquamarine and that the body has class="games factions foo" injected - I added cssClass: foo to the frontmatter of /content/games/factions/scenarios.md to append foo to the list of classes injected by ancestor pages. The color comes from the updated _custom.scss file, where I added a snippet of (awful) styling.
If you navigate to /cultivation, you'll see that the body has class="cultivation" injected. I did not update the source for this file, that's automatic.
If you navigate to /games/factions/supplements/picaresque/adventurers, you'll see that the background is still aquamarine (thanks to the updated parent section which added the factions class) but that the body has class="games factions supplements picaresque" injected.

@binarystargames no rush but if you're happy with this, I trust you on approve/merge and if not happy to make any updates/etc as needed!

I'll take a look tonight.

Looking good, merging in!


support for django2.0

thanks

+1 for Django 2.0 support. I'd like to use this for my Django projects but all of them are 2.0

Fixed in https://pypi.org/project/django-user-agents/


Cargo unpacks files with too restrictive mode (breaking multi-user shared cargo registry)

I share cargo home directory between multiple user accounts and want to use cargo install from both uids. For this I want all Rust-related things to be group-writable.
But despite of umask is 0002 (new files are group-writable by default) and all directories have mode g+rwxs, some files unpacked by Cargo get usual boring mode 644, preventing clearing directories from other user later.
For example, now I see
drwxrwsr-x 6 rust rust 496 Dec 22 20:12 .multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.104
-rw-r--r-- 1 rust rust 24K Dec 17 03:28 .multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.104/CHANGELOG.md

Why files inside the clippy-0.0.104 directory get restrictive permissions when everything else is group-writable? Should Cargo avoid walling non-security-related files against other users when umask is explicitly configured not to do so?

I believe those permissions are set in the package tarballs.

Shall those tarballs be extracted not this literally? Maybe like in Git, it should only discriminate executable and non-executable, observing umask and sticky bits for other bits?
If tarball contains suid-bit executables, will they also be unpacked with suid bit set?

Yes currently tarballs are extracted using the support in the tar crate which notably preserves permissions. Note that permissions are masked with 0o777 by default but this can be disabled.
It seems reasonable to me (especially if there's precedent in git) to have Cargo extract respecting umask to allow having group-readable/writable files!

Is there a chance somebody will address this issue? I was just hit by it in the pin-utils crate. Issue  #2948 seems related too.

There is also #9455 trying to make files read-only. Unfortunately some crates may depend on preserved file permissions already. One way to solve is to handle only *.rs and Cargo.{lock,toml} probably. However, if a package depends on other data files, things might still be broken.

I too am noticing this behavior that is preventing me from setting up a shared directory workspace for our dev team. ACLs won't solve this either. Any help would be greatly appreciated!
[tom@dev-04 index.crates.io-6f17d22bba15001f]$ pwd
/opt/rust/registry/src/index.crates.io-6f17d22bba15001f
[tom@dev-04 index.crates.io-6f17d22bba15001f]$ getfacl adler-1.0.2
# file: adler-1.0.2
# owner: tom
# group: dev
# flags: -s-
user::rwx
group::rwx
mask::rwx
other::---
default:user::rwx
default:group::rwx
default:mask::rwx
default:other::---

[tom@dev-04 index.crates.io-6f17d22bba15001f]$ cd adler-1.0.2/
[tom@dev-04 adler-1.0.2]$ ls -l
total 46
drwxrws---+ 2 tom dev     3 Jun  6 14:50 benches
-rw-------+ 1 tom dev  2040 Jan  1  1970 Cargo.toml
-rw-------+ 1 tom dev  2084 Jan  1  1970 Cargo.toml.orig
-rw-------+ 1 tom dev  1714 Jan  1  1970 CHANGELOG.md
-rw-------+ 1 tom dev   665 Jan  1  1970 LICENSE-0BSD
-rw-------+ 1 tom dev 10860 Jan  1  1970 LICENSE-APACHE
-rw-------+ 1 tom dev  1023 Jan  1  1970 LICENSE-MIT
-rw-------+ 1 tom dev  1156 Jan  1  1970 README.md
-rw-------+ 1 tom dev   527 Jan  1  1970 RELEASE_PROCESS.md
drwxrws---+ 2 tom dev     4 Jun  6 14:50 src


Service Fabric Configuration Upgrade

In order to test certain scenarios, I am trying to remove a node from our lab Service Fabric cluster using the following article: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-windows-server-add-remove-nodes
I start from Config0.txt
add the NodesToBeRemoved section, delete the node in the Nodes List.
This gives me Config1.txt
However when I try to start the ServiceFabricClusterupgrade it gives me the following error:

Strange, we are not using a certificate for this laboratory environment.
I check the config and remove the CertificateInformation node, which besides an unknown id to me, doesn't contain anything.
This gives me Config2.txt
Trying this gives me the following error

Weird, I am not adding nodes, only removing them.
Ok, so I am thinking: Maybe the article didn't really mean physically removing the node section from the config. Only to add the 'NodesToBeRemoved' section
This gives me Config3.txt
Sure enough, that wasn't the problem because the error quite clearly tells me to remove it from the Nodes list

But that gives me the 'Nodes cannot be added and removed in the same upgrade' error.
My question thus, what am I doing wrong, or what is going that Service Fabric is thinking that I am adding and removing a node whilst the config only removes nodes?

This had been fixed as of 7.0 CU4.


python313: 3.13.0 -> 3.13.1

https://docs.python.org/release/3.13.1/whatsnew/changelog.html

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

python313.tests and python313FreeThreading.tests passed on the following platforms

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


CNV-36435: Moving boot and hardware to right side of tab

📝 Description
Moving boot and hardware to right side of tab
🎥 Demo
After:

Before:

/lgtm


Support striped LV

resolve #207

@llamerada-jp @toshipp I fixed some problems. Would you please review this PR again?

unless user explicity specify  number of stripes in lvmd.yaml, otherwise I would suggest the number of stripes in the logical volume should be dynamically read from vgs instead of by manually specify.

@leoxhj Thank you. Could you create an issue about the above if you need it?


Create NFS file system cloning

A use case has come up where it would be helpful for bookstore to be able to clone from a network attached file system.
Given @MSeal's other comments about the need for us to eventually generalize bookstore functionality beyond AWS services in line with papermill and other applications (which have compatibility with e.g., Azure). This may be a good test case for building that abstraction from an API perspective.

Might want to label this local storage cloning, since it tends not to make a difference what the underlying filesystem is. It's mostly just about pointing to the right file mount location.

That's a good point!

Closing in favour of #154


Some suggestions: Keycode binding, binding w/o mod key, etc

Is your feature request related to a problem? Please describe.
I stumbled across this in r/unixporn, and thought it would be a good experiment to see if i like it better than i3-gaps. But I'm noticing it lacks some features that i use daily.

Keycode binding. I can use the name of the key given by xev -event keyboard, but having to type XF86KbdBacklight just feels unnecessary.
Binding without mod key: Seems to exist already with _ but that isn't documented, so maybe I've stumbled across a bug?

Related: Can't seem to use super and shift together, another possible bug

The config structure seems a bit unintuitive, something like bind SUPER+SHIFT+1 to action would be cleaner and easier to understand.

Just my two cents, other than these im enjoying it so far :D
Anything else?

Keycode: ok, can do.
no mod: leave it empty, it's not a bug. you can do
bind=,A,exec,amongus

and it will work without a mod. I think I mentioned it in the wiki or the example config, but I'm not sure.
super and shift together work for me, and everyone else, you must be doing something wrong.
bind=SUPERSHIFT,A,exec,amongus

should work.
binds are unintuitive? I'd say they aren't, you have the MOD field and the KEY field, what's wrong with that? Changing it right now will not happen, as that would break compat.

super and shift together work for me, and everyone else, you must be doing something wrong.
bind=SUPERSHIFT,1,movetoworkspace,1 doesn't work for me, nor does bind=SUPERSHIFT,D,exec,i3-dmenu-desktop.

binds are unintuitive? I'd say they aren't, you have the MOD field and the KEY field, what's wrong with that?
my nitpick is i have difficulty picking apart statements unless theyre separated. i guess allowing whitespace in the config would help (bind = SUPER, 1, workspace, 1 instead of bind=SUPER,1,workspace,1).

I might allow whitespaces, that's doable.
if supershift doesn't work, is it captured by the wm? or does SUPERSHIFT+D print something into the window? (e.g. a terminal)

if supershift doesn't work, is it captured by the wm? or does SUPERSHIFT+D print something into the window? (e.g. a terminal)
it acts like the shift key isnt pressed at all, so it ends up just being SUPER+D, which i set to dmenu_run.

Now its just spitting out "0A" when i hit the binding...

Its gotten weirder!
i can use SUPERSHIFT+F to fullscreen, but cant use that same binding for anything else.

maybe because you have 2 keybinds per supershift+f? i feel your system is haunted.

maybe because you have 2 keybinds per supershift+f? i feel your system is haunted.

I'm starting go think that too xwx;
And I'm sure I don't have two, I cleared all the default keybinds and retyped them so I have a clean slate

SHIFT fixed in 1667180ac3554cdeaf00ac2cd0f3ad37e64bce30

keycodes (keysyms) as ints added in b52e6ea0558193cbeb5978e220285a552fb4fc2c

Wiki updated to mention no MOD.
keycodes - done
shift - fixed
no mods wiki - updated
config - no.
spacing - I'll consider.
closing for now.


How to start Membrane with IPv4?

Hi there,
can anybody tell me how to start membrane with IPv4 instead of IPv6?
netstat -anp | grep 9000
tcp6       0      0 :::9000                 :::*                    LISTEN      -
Is there a config file?

<serviceProxy ip="<IP_ADDRESS>"> probably works.


DOIs for restricted records: configure tombstone page for the doi link

Right now, the tombstone page for restricted records with existing DOI appears only for the link /records/<id>.
What needs to be done: handle the same behavior for the link /doi/<doi>/<id>

Hello all - I had to quickly tackle this bug since we're seeing it in our RDM 9.1 prod instance.  I realize it's not cool to use the model class from UI but the current service implementation didn't wrap the PersistentIdentifier class methods I needed. Hopefully this will at least help out whoever tackles this bug for real:
in invenio_app_rdm/records_ui/views/decorators.py
change this method to include the try/except block:
def pass_record_from_pid(f):
    """Decorate a view to pass the record from a pid."""

    @wraps(f)
    def view(*args, **kwargs):
        scheme = kwargs.get("pid_scheme")
        pid_value = kwargs.get("pid_value")

        try:
            record = service().pids.resolve(
                g.identity,
                pid_value,
                scheme,
            )
        # MSD-LIVE CHANGE catch the exception and then see if it's because the rec was deleted
        except NoResultFound:
            from invenio_pidstore.models import PersistentIdentifier
            from invenio_pidstore.errors import PIDDeletedError

            doi_pid = PersistentIdentifier.get(scheme, pid_value)

            record_uuid = doi_pid.object_uuid
            rec_pid = PersistentIdentifier.get_by_object(
                pid_type="recid", object_uuid=str(record_uuid), object_type="rec"
            )
            if rec_pid.is_deleted():
                raise PIDDeletedError(rec_pid, None)

        kwargs["record"] = record
        return f(**kwargs)

    return view


epsilon-greedy choose function may be wrong

class EpsilonGreedyPolicy(Policy):
    [................................]

    def choose(self, agent):
        if np.random.random() < self.epsilon:
            return np.random.choice(len(agent.value_estimates))
        else:
            action = np.argmax(agent.value_estimates)                    <---------
            check = np.where(agent.value_estimates == action)[0]   <------
            if len(check) == 0:
                return action
            else:
                return np.random.choice(check)

I don't really get how the lines with "<-----------" work. Action is an index of value_estimates, okay, but in the second line I think you are comparing an index with value_estimates values!! This is the reason why len(check) can be 0. I believe the correct code would be:

def choose(self, agent):
        if np.random.random() < self.epsilon:
            return np.random.choice(len(agent.value_estimates))
        else:
            action = np.argmax(agent.value_estimates)                    <---------
            check = np.where(agent.value_estimates == agent.value_estimates[action])[0]   <------
            if len(check) == 1:   <--- At least there is going to be 1
                return action
            else:    <---- Ties are solved randomly
                return np.random.choice(check)

Please, let me know if I'm mistaking. Thank you!

Hi @emiliocuestaf !
It's not my code (although I have written a much more complete bandit library, see https://github.com/SMPyBandits/SMPyBandits/), but I think you are completely right!
The first code does not make sense to me.
You can wait to have a feedback from the author @bgalbraith and then submit a pull request (see this tutorial if needed) to this project, maybe he will accept it (and it could fix this bug)!

Ok, I see there  already was an issue talking about this bug. I'm sorry!
I think you should update the master branch

Indeed, I didn't check but https://github.com/bgalbraith/bandits/issues/7

hi @emiliocuestaf, you are correct. A few people have pointed this issue out and I didn't get around to merging in this fix (https://github.com/bgalbraith/bandits/pull/4). Thanks!


Better error when TagHelperOutputExtensions.CopyHtmlAttribute() called with unknown attributeName

If the provided TagHelperContext does not contain attributeName, tag helper authors get very little information on how to fix the problem.  Should improve the error message and help these authors out.
Details: An example of the current error:
System.InvalidOperationException : Sequence contains no matching element
Stack Trace:
  at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
  at Microsoft.AspNet.Mvc.TagHelpers.TagHelperOutputExtensions.CopyHtmlAttribute(TagHelperOutput tagHelperOutput, String attributeName, TagHelperContext context) in C:\dd\k\Mvc.0\src\Microsoft.AspNet.Mvc.TagHelpers\TagHelperOutputExtensions.cs:line 33
  at Microsoft.AspNet.Mvc.TagHelpers.InputTagHelper.Process(TagHelperContext context, TagHelperOutput output) in C:\dd\k\Mvc.0\src\Microsoft.AspNet.Mvc.TagHelpers\InputTagHelper.cs:line 114
  at Microsoft.AspNet.Razor.Runtime.TagHelpers.TagHelper.<ProcessAsync>d__1.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
  ...

Could perhaps use FirstOrDefault() and throw a better Exception if that returns null.

323ec2f