State machines with I/O and Ash state machine

This is a general question about how to approach a problem, not a feature request. If the best approach will be to change ash_state_machine I'd be happy to work on this on a fork.
The problem
I want to model a system that has to react to inputs, call some services and based on their output transition to next state.
I'm not sure how to do this in using ash_state_machine.
Describe the solution you'd like
Because I'm a noob when it comes to Ash I'd be interested to hear whether my use case is handled with current library or the best approach would be to work on the DSL to customize some transition code. The biggest problem is I see several places where I can put logic that will handle state transitions based on inputs and I'm not sure which approach is the most natural.
Describe alternatives you've considered
Natural approach - packing everything into transition functions
This means that each state knows how to handle the inputs and the corresponding transition has to decide what would be the next state after getting results from external service.
In this approach I'd have transitions like
transition :handle_some_state, from: some_state, to: [:next_state, :another_next_state]

The problem with this approach is that I would have to pass arguments which seems cumbersome - I tried to write something like
update :handle_some_state do
  argument :input, :string
  change GetServiceResults
  change TransitionSomeState
end

I'm fine with this syntax but I don't know how to actually use this transition - I tried to call State.handle_some_state but I don't know how to provide input.
For example when I try to call state |> State.handle_some_state!(input: "foo") I get
** (NimbleOptions.ValidationError) unknown options [:input], valid options are: [:internal?, :timeout, :tracer, :verbose?, :action, :authorize?, :stacktraces?, :tenant, :actor, :after_action, :return_notifications?, :notification_metadata]
    (nimble_options 1.0.2) lib/nimble_options.ex:343: NimbleOptions.validate!/2
    (ash 2.14.15) lib/ash/api/api.ex:2035: Ash.Api.update!/3
    (stdlib 3.15) erl_eval.erl:685: :erl_eval.do_apply/6
    (elixir 1.14.2) lib/module/parallel_checker.ex:107: Module.ParallelChecker.verify/1

Custom module to dispatch transitions
Let's call this TransitionDispatcher. In this approach the dispatcher know what services to call and based on their outputs it transitions the state.
This approach seems like it's a wrong way to use state machines - basically this dispatcher would have select the transition, which raises the question what is the purpose of using state machine in the first place.
Express the feature either with a change to resource syntax, or with a change to the resource interface**
I'm not really sure whether my use case can be handled with current ash_state_machine or whether it would make sense to provide a way to set some functions to transition ... or change (in action definitions) that will determine what should be the next state based on service results.
Additional context
I am writing a rule-based chatbot, my transitions will call some external NLP services that among others will find the intent, and based on that select the next state.
Ash seems like a good fit for this because Elixir is a great language for writing backend, and out of the box Ash provides features that will handle minutiae of chatbot engine.
Anyway thank you for the library, I'm really excited about Ash as a person coming from Python - it seems like many issues plaguing Python's ecosystem that generate accidental complexity do not exist in Ash.

I think the way you're modeling it is correct, that you would accept input as an argument, but your syntax for doing so is off, you need to provide it as a map.
state |> State.handle_some_state!(%{input: "foo"})

Or if you are using the code interface you can say
define :handle_some_state, args: [:input]

and then
State.handle_some_state!(state, %{input: "foo"})

As for dynamically changing state based on some internal decision, sometimes this is actually unavoidable and there are tools to do that. There is:
# in a custom change for example
def change(changeset, _, _) do
  # doing this dynamically.
  AshStateMachine.transition_state(changeset, :new_state)
end

The benefit of defining the state machine with dynamic transitions is that it validates that the state transition is in the declaration.
Hopefully that helps, LMK if you have more questions. I'll close this for now as there isn't anything concrete to be done. Feel free to join our discord to discuss this as well.


Keras issues, correcting typo.

I am reading the documentation of multi_gpu_model and the examples section does not seem right:

URL: https://keras.io/utils/#multi_gpu_model
Also when I opened this issue, I noticed the following:

URL: https://github.com/keras-team/keras/issues/new/choose
I think the sentence under a) TensorFlow backend users should read:
Select this if ...
Thank you.

The issue with multi-gpu model in the docs has been fixed. The typo (if-is) hasn't been fixed. PR welcome.

Thank you @gabrieldemarmiesse for your efforts and prompt reply. I am new to GitHub, therefore I am going to read the relevant documentation regarding PRs (in general and Keras specific). After that, I will submit a PR accordingly.
Kindly I might need help as to where I can find the typo's source file.
Thank you.

It's here https://github.com/keras-team/keras/tree/master/.github/ISSUE_TEMPLATE
Thanks for the help!

Many thanks @gabrieldemarmiesse for your help. Appreciated. I have just submitted a PR in this regard. I have read the Keras CONTRIBUTING.md file as well as information about forking and PRs from GitHub Help. If there is anything I missed kindly let me know, if possible, so I can be of more help in the future.
Thank you.

Thanks!


ModuleTracker : Implement find module feature

Fixes #556

Codecov Report

Merging #557 into master will increase coverage by 0.03%.
The diff coverage is 50.00%.

@@             Coverage Diff              @@
##             master     #557      +/-   ##
============================================
+ Coverage     18.87%   18.91%   +0.03%
- Complexity      370      375       +5
============================================
  Files           227      228       +1
  Lines          4398     4410      +12
  Branches        524      526       +2
============================================
+ Hits            830      834       +4
- Misses         3493     3498       +5
- Partials         75       78       +3

Impacted Files
Coverage Δ
Complexity Δ

...main/java/seedu/address/commons/core/Messages.java
0.00% <ø> (ø)
0.00 <0.00> (ø)

...modulelistcommands/ViewArchivedModulesCommand.java
0.00% <0.00%> (ø)
0.00 <0.00> (ø)

...ss/model/module/NameContainsKeywordsPredicate.java
40.00% <40.00%> (ø)
5.00 <5.00> (?)

...eedu/address/logic/commands/FindModuleCommand.java
45.45% <45.45%> (ø)
5.00 <5.00> (?)

.../address/logic/parser/FindModuleCommandParser.java
100.00% <100.00%> (ø)
3.00 <1.00> (?)

...a/seedu/address/logic/parser/ModuleListParser.java
43.75% <100.00%> (ø)
10.00 <0.00> (ø)

Continue to review full report at Codecov.

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


cargo 1.30.0 doesn't compile under 32-bit Funtoo

When I try to emerge cargo after rust has been installed, presumably with cargo support, cargo fails to build with the error
error: process didn't exit successfully: `rustc -vV` (exit code: 1)
--- stdout
rustc 1.29.2
binary: rustc
commit-hash: unknown
commit-date: unknown
host: i686-unknown-linux-gnu
release: 1.29.2

--- stderr
error: failed to find a `codegen-backends` folder in the sysroot candidates:
* /usr
* /usr/lib

I found codegen-backends at /usr/lib/rust-1.29.2/rust-1.29.2/rustlib/i686-unknown-linux-gnu/codegen-backends, and I tried copying it to /usr and /usr/lib, but cargo still complains.

The funtoo issue seems to be resolved.


Add packages version to Tensoflow for wheels packages

Description:
That makes possible to load the new wheels for Tensorflow / Hass.io

Oh wow we can finally use a higher version for tensorflow?  I can't remember the reason for using a lower version initially I think it was causing some issue.  I think we may need to update the docs then as installing the pip package manually is probably no longer needed right?
https://www.home-assistant.io/components/tensorflow/#setup


SpringFox 3.0.0 @Content annotation schema value throws undefined error.

Please take the time to search the repository, if your question has already been asked or answered.

[ ] What version of the library are you using? Is it the latest version? The latest released version is
SpringFox 3.0.0 released recently.

What kind of issue is this?

[ ] Question. Is this a question about how to do a certain thing?
I want to have special ErrorResponse schema for status codes other than 200 but schema seems to get neglected in latest library 3.0.0

[ ] Bug report. If you’ve found a bug, spend the time to write a failing test. Bugs with tests or
Following is the annotations I am using for my controller

       @PostMapping("/conversion/controller")
    @Operation(
        summary = "Submit request to convert.",
        description = "Submit request to convert to lower or upper.",
        responses = {
            @io.swagger.v3.oas.annotations.responses.ApiResponse(
                responseCode = "200",
                description = "Returns the converted results.",
                content = {
                    @Content(mediaType = "application/json",
                        schema = @Schema(implementation = Baz.class))
                }
            ),
            @io.swagger.v3.oas.annotations.responses.ApiResponse(
                responseCode = "400",
                description = "Invalid request body",
                content = {
                    @Content(mediaType = "application/json",
                        examples = @ExampleObject(value = "{'errorCode':'400', 'message': 'Bad input request.'}"),
                        schema = @Schema(implementation = ErrorResponse.class))
                }
            ),
            @io.swagger.v3.oas.annotations.responses.ApiResponse(
                responseCode = "500",
                description = "If service encountered errors communicating with other services that it depends on",
                content = {
                    @Content(mediaType = "application/json",
                        examples = @ExampleObject(value = "{'errorCode':'500', 'message': 'Internal server error.'}"),
                        schema = @Schema(implementation = ErrorResponse.class))
                }
            )}
    )
    public ResponseEntity<Baz> convert(@RequestBody Baz baz) {
        return new ResponseEntity(baz, HttpStatus.OK);
    }

I have ErrorResponse class defined in same class as follows
    /** Describe the error message and code */
    @ApiModel(description = "Describe the error message and code")
    @Validated
    public static class ErrorResponse {

        @ApiModelProperty(required = true, value = "Different Error Conditions")
        @JsonProperty("errorCode")
        public String errorCode = null;

        @ApiModelProperty(required = true, value = "Provides description of error")
        @JsonProperty("message")
        public String message = null;

        public ErrorResponse errorCode(String errorCode) {
            this.errorCode = errorCode;
            return this;
        }
    }

However in swagger page I see following

Also endpoint can't seem to infer the schema

Schema & Example for response code of 200 seems to work fine.
Here is the branch for reproducing the bug quickly....I am using the project springfox-integration-webmvc
https://github.com/prabhushrikant/springfox-demos/tree/Bug_3428
Thank,
Shrikant.

@dilipkrish any update on this?

@dilipkrish bump ^^

This is still an issue, I would like to fix it if someone can provide me any pointers.

This is still an issue, I would like to fix it if someone can provide me any pointers.

This is still an issue, I would like to fix it if someone can provide me any pointers.

This is still an issue, I would like to fix it if someone can provide me any pointers.


General Comments

Hi.
Great facility. Thank you.
Just a couple of comments that I think might help other users who are no too techhy...

The Mailchimp.pho file needs the  variable changing when you start using this.
If you are using it with a php include "Mailchimp" , then remove the "use namespace DrewM\MailChimp;" line.

Hope this saves someone sometime!

Mailchimp.php*


Resolve temporarily open_basedir issue

Resolve open_basedir issue adding dot for relativize filename path

Can you add some description of what issue this is solving?

Can you add some description of what issue this is solving?

When hosting  has open_basedir configured and the file is checked by File::isFile() method if the file name start with a slash it's result out of the authorized paths, with relative path all works fine.
example

See
https://discord.com/channels/486734519798333440/534045257730359309/1092545452957765723
Set open_basedir as none is a bad idea for security reason
https://discord.com/channels/486734519798333440/534045257730359309/1061302551418515506

Thank you!


Fixing index out of range error in scaler operations

Seeing following error while running example query time()-10
Error executing query: unexpected error: runtime error: index out of range [0] with length 0

Also noticed time() function only return 10 data points

This doesn't look like the right fix. If you run just time() over a 30m range you'll notice gaps in the result, which is probably causing the panic.

This doesn't look like the right fix. If you run just time() over a 30m range you'll notice gaps in the result, which is probably causing the panic.

I added the failing test and printed out in and scalarIn:
{0 [] [0] [] []} {0 [0] [20] [] []}
{30000 [] [30] [] []} {30000 [0] [20] [] []}
{60000 [] [60] [] []} {60000 [0] [20] [] []}
{90000 [] [90] [] []} {90000 [0] [20] [] []}
{120000 [] [120] [] []} {120000 [0] [20] [] []}
{150000 [] [150] [] []} {150000 [0] [20] [] []}
{180000 [] [180] [] []} {180000 [0] [20] [] []}
{210000 [] [210] [] []} {210000 [0] [20] [] []}
{240000 [] [240] [] []} {240000 [0] [20] [] []}

it seems that every timestamp has a match on both sides

		switch funcExpr.Func.Name {
		case "pi", "time", "scalar":
		default:
			// Other functions require non-nil labels.
			op.series = []labels.Labels{{}}
			op.sampleIDs = []uint64{0}
		}

seems by design that "time()" has empty sampleIDs ? that feels weird.

Yeah that's one of the reasons, but we had other subtle issues which were not caught due to the short default range we use in tests. https://github.com/thanos-community/promql-engine/pull/186 should fix this.

Thank you guys for quick response. I going to close this as fix is already merged.


chore(main): release 0.4.2

:robot: I have created a release beep boop
0.4.2 (2024-04-04)
Bug Fixes

Add /_health endpoint (1709400)
Attempt custom span (fb553a9)
deps: update rust crate service_conventions to 0.0.13 (87f62af)
deps: update rust crate service_conventions to 0.0.14 (a564a62)
Fix formatting (e969ce9)
Revert "fix: Attemp axum tracing again" (64f92da)
Revert "fix: Attempt custom span" (8f3ba90)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/philipcristiano/et/releases/tag/v0.4.2 :sunflower:


PodSecurityPolicy: unable to admit pod: []

Rancher v2.5.12
K8s: v1.20
Hi
When trying to install the submariner operator I'm getting the following error:
-bash-4.2$ subctl deploy-broker --kubeconfig .kube/config-cluster
 ✓ Setting up broker RBAC
 ✗ Deploying the Submariner operator
 ✓ Created operator CRDs
 ✓ Created operator namespace: submariner-operator
 ✓ Created operator service account and role
 ✓ Created lighthouse service account and role
 ✓ Created Lighthouse service accounts and roles
Error deploying the operator: timed out waiting for the condition

Error creating: pods "submariner-operator-57fdbfdb78-" is forbidden: PodSecurityPolicy: unable to admit pod: []

Didn't have any issues deploying anything else before.
Thanks for any advice.

I'm wondering if K8s moving away from this and to https://github.com/submariner-io/subctl/pull/105 would have resolve any issue?


feat(tutorials): add first version of tutorial about ontology

New tutorial about the ontology, covering:

Definitions and examples of rdf triples in turtle, rdf/wlm, n-triples, n-quads
cognitarium operations: instantiate, insert_data, select

Great 👍


Fixed asset_management_with_roles chaincode for issue 1953

Fixed for issue 1953, it was the result of a bad error message containing a non existing err variable that was being dereferenced and was causing a runtime panic.
Description
Removed the non existing err variable from the chaincode. The error occured when querying for a non existing asset.
Motivation and Context

Fixes #1953
How Has This Been Tested?

Checklist:

[x] I have added a Signed-off-by.
[x] This change requires no new documentation.
[x] I have either added unit tests to cover my changes.
[x] I have run golint and have fixed valid warnings in code I have added or modified. This tool generates false positives so you may choose to ignore some warnings. The goal is clean, consistent, and readable code.

The continuous integration build process will run make checks to confirm that tests pass and that code quality meets minimum standards. You may optionally run this locally as PRs will not be accepted until they pass.
Signed-off-by: Diego Masini<EMAIL_ADDRESS>Anna D Derbakova<EMAIL_ADDRESS>

@ghaskins @srderson @binhn
This PR also needs to be merged into the developer-preview branch. Please let us know the process. Thanks.

LGTM


Remove @cImport in favor of translateC

Sounds like @cImport is going away: https://github.com/ziglang/zig/issues/20630 . Changes to type info enum names are still preventing builds on current master from working, but not sure how to fix that without breaking 0.13, so I'll just keep the compatible changes here.
Tests pass for Luau and Lua 5.x, at least on my machine.
LuaJIT is failing, but it was failing in the same way before this change (just change out the import name and the line number):
src/lib.zig:1650:38: error: root struct of file 'luajit_all' has no member named 'lua_rawlen'
            else => return @intCast(c.lua_rawlen(@ptrCast(lua), index)),
                                    ~^~~~~~~~~~~

I tried very briefly to fix this by moving .luajit into the prong above the else, but that exposed a different crash, so I gave up.

luajit is still a wip target, so no worries if things are failing there.

I may end up renaming or moving some of these files eventually, but this is a really good start. Thank you for taking the initiative to remove the need for @cImport() before it is actually removed!


Diff in git commit -v interpreted as part of the body, causing validation failure.

When commiting with git commit -v
If I enter the commit message with only a subject and a new line, the validator passes:
Fix CS on commit

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# Date:      Mon Jun 10 09:24:29 2019 +0100

If I enter the commit message with only a subject, the validator fails:
Foobar
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#   (use "git push" to publish your local commits)

I would guess this is because -v shows a diff after the commted text in the message, which GIT ignores, but I guess the Captain just strips the commted text? (?)
Full message with git commit -v from above:
Foobar

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# Date:      Mon Jun 10 09:28:40 2019 +0100
#
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
#   (use "git push" to publish your local commits)
#
# Changes to be committed:
#	modified:   captainhook.json
#
# Untracked files:
#	.php_cs.cache
#	.phpunit.result.cache
#	STDERR
#	dot
#	dot.dot
#	example/
#	lsp-client.log
#	maestro.log
#	out
#	out.png
#	out.ps
#	phpactor.log
#	replay.json
#
# ------------------------ >8 ------------------------
# Do not modify or remove the line above.
# Everything below it will be ignored.
diff --git a/captainhook.json b/captainhook.json
index 97b181f..a6a48ff 100644
--- a/captainhook.json
+++ b/captainhook.json
@@ -12,7 +12,7 @@
     "enabled": true,
     "actions": [
       {
-        "action": "./vendor/bin/php-cs-fixer fix"
+        "action": "./vendor/bin/php-cs-fixer fix --dry-run"
       },
       {
         "action": "./vendor/bin/phpstan analyse --level=7 lib"

The diff can also cause a false positive on the body length:
--------------------------------------------------------------------------------
  Body lines should not exceed 72 characters
    Line 15 of your body exceeds the max line length
  Subject and body have to be separated by a blank line
--------------------------------------------------------------------------------

Yes the Cap'n removed comment lines from your commit message before validating it.
Since they will be removed by git that's seemed like a reasonable thing to do.
Somehow this line
# ------------------------ >8 ------------------------

Makes git ignore all lines below.
I have to check the syntax for this and make the message parser a lot smarter, because right now it thinks that the diff is part of the commit message. That's why it fails.

This is fixed in sebastianfeldmann/git version 2.2.2.
If you run composer update you should get the latest version including the scissors (--- >8 ---) fix.
The odd thing I noticed.

Can you verify this or is it just my machine?

Empty commiy message (completely deleting ALL content from the file buffer including comments):
======== Execute hook: commit-msg ==============================================

Action: \CaptainHook\App\Hook\Message\Action\Beams
--------------------------------------------------------------------------------
CAPTAINHOOK FOUND 1 PROBLEM IN YOUR COMMIT MESSAGE
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
  Subject line has to start with an upper case letter
--------------------------------------------------------------------------------

In PHP.php line 51:

  Execution failed:
  Commit message validation failed in /home/daniel/www/dantleech/maestro/vend
  or/captainhook/captainhook/src/Hook/Message/Action/Book.php line 63

Having an empty line:
======== Execute hook: commit-msg ==============================================

Action: \CaptainHook\App\Hook\Message\Action\Beams
All rules passed
Aborting commit due to empty commit message.

Just exiting:
======== Execute hook: commit-msg ==============================================

Action: \CaptainHook\App\Hook\Message\Action\Beams
--------------------------------------------------------------------------------
CAPTAINHOOK FOUND 1 PROBLEM IN YOUR COMMIT MESSAGE
--------------------------------------------------------------------------------

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
# Your branch is up to date with 'origin/master'.
#
# Changes to be committed:
#       modified:   lib/Task/Task.php
#
# Changes not staged for commit:
#       modified:   captainhook.json
#
# Untracked files:
#       .php_cs.cache
#       .phpunit.result.cache
#       STDERR
#       dot
#       dot.dot
#       example/
#       lsp-client.log
#       maestro.log
#       out
#       out.png
#       out.ps
#       phpactor.log
#       replay.json
#
# ------------------------ >8 ------------------------
# Do not modify or remove the line above.
# Everything below it will be ignored.
diff --git a/lib/Task/Task.php b/lib/Task/Task.php
index 279ba80..d9c6628 100644
--- a/lib/Task/Task.php
+++ b/lib/Task/Task.php
@@ -1,5 +1,6 @@
 <?php

+
 namespace Maestro\Task;

 interface Task
--------------------------------------------------------------------------------
  Subject line has to start with an upper case letter
--------------------------------------------------------------------------------

In PHP.php line 51:

  Execution failed:
  Commit message validation failed in /home/daniel/www/dantleech/maestro/vend
  or/captainhook/captainhook/src/Hook/Message/Action/Book.php line 63

I don't want to scream "wolf" too fast,  but this seems to be a git issue.

But if the message contains a whitespace git will cancel the commit.
Seems strange but all experiments confirm my suspicions.


Consider publishing Refinery container images to a registry without rate-limiting (not Docker Hub)

Docker hub rate limiting is a challenge for teams that want to keep Kubernetes clusters as simple as possible, as the usual workaround for rate limits is some sort of (complex?) caching proxy inside the cluster.
Since GitHub now supports unlimited pulls for public images, many OSS maintainers are publishing to ghcr.io so that the community can freely pull. It would be great to see something similar for Refinery -- quay.io is another common choice.
We've looked at in-cluster caching proxies, but the added complexity and overhead just feels icky.

CC @TylerHelmuth

Thanks, @bixu  - we'll look into it.


Use peerDependencies instead of engines since they are better suited to plugins.

The homebridge core looks for "homebridge" in the engine list, so this change won't work unfortunately.
Additionally, with the upcoming version of npm v7.x, peer dependencies will be installed automatically, which we don't want happening with the Homebridge package.

LOL...as always, fascinating. @oznu at the least, that's a little abusive of the poor engine list. 😄 If someone goes to install a plugin, it should install homebridge if homebridge isn't already installed, don't you think?

If someone goes to install a plugin, it should install homebridge if homebridge isn't already installed, don't you think?

It will install it again under the plugins own node_modules folder. Also may cause problems for users that have Homebridge installed globally, but have their plugins in a custom plugin path (-P flag). This setup is fairly common (user by every Docker user, as it allows Homebridge and the UI to be updated as part of a container/image update, while leaving the users plugins intact and unchanged).

Just for completeness:
https://nodejs.org/es/blog/npm/peer-dependencies/
https://nodejs.org/es/blog/npm/peer-dependencies/
I don't believe it'll reinstall them in node_modules - it will install the peer dependency if it isn't already there. Starting with npm 3, it won't install the peer dependency by default.
I still maintain that this is The Right Way to express something is a plugin of homebridge in an NPM package.json...but I defer to the more experienced.

See https://github.com/npm/cli/blob/latest/CHANGELOG.md#v700-beta0-2020-08-04

RFC 25 peerDependencies are installed by default.

Since plugins don't actually import Homebridge at runtime, it's not a "dependency" in the npm sense of the term. If we were to replace the "engines" section requirement, it would likely be with a custom attribute such as "homebridge": { "version": ">= 1.2.3", "other": "metadata here"}. There has been some discussion about this on the homebridge repo.

@oznu I yield to your superior wisdom and appreciate the explanation. 😄


V0.6 Development Changes

I'm actually going to merge this now and do integration tests before v0.6 official


Added Impacket's LDAPShell functionality to the Python implementation.

While testing the Certipy tool recently, I encountered a problem where its -ldap-shell` flag kept crashing a Windows 2016 DC. In comparison, the passthecert.py``` script worked flawlessly.
Unfortunately, the passthecert.py didn't have the same feature set I required, such as reading LAPS passwords or adding users to groups (although the Windows binary does).
Taking inspiration from the Certipy implementation, I've added Impacket's LDAP shell to the  passthecert.py script and modified the argument flags to include a new -ldap-shell option.
The new LDAP shell could theoretically replace much of the implementation logic that the passthecert.py script holds for RBCD attacks and managing domain objects. However, I've kept the script's existing commands and argument flags as-is to align with the original blog post.

Hello,
No problem, thanks for the new commit.
Tested on my lab, works as intended. One last thing: could you update the python README with the new -h, the updated Actions section and add a small example? thx
:sunflower:

All good. Thanks!
Merging now.
:sunflower:


Update of data

First of all thank you very much for this set of scripts!
Do you plan on updating the data for this years ceremony?

Now updated with winners


Step 10: Implement the Login view logic

I'am getting "An unknown error occured". What code do I have to add to debug the problem mor deeper?
@IBAction func onLoginPress(_ sender: UIButton) {
SAPcpms.shared.register(userId: hcpUserId.text!, password: hcpPassword.text!) {
(success: Bool, msg: String) in
if (success) {
DispatchQueue.main.async {
let viewController:UIViewController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "Navigation") as UIViewController!
self.present(viewController, animated: true, completion: nil)
}
} else {
OperationQueue.main.addOperation {
let alert = UIAlertController(title: "Error", message: msg, preferredStyle: UIAlertControllerStyle.alert)
alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.default, handler: nil))
self.present(alert, animated: true, completion: nil)
}
}
}
}

Hi @MovingBitsGroupRoth,
Which tutorial does it reference to?

This tutorial:
https://www.sap.com/developer/tutorials/fiori-ios-hcpms-device-registration.html

Hi @MovingBitsGroupRoth, one thing you can try is to set the root logger level to debug -- this should provide more info on what's happening inside the SDK API's
Chiming in @jpenninkhof too as he's the original author of this tutorial

In that section a service call is being made to SCP to register the device. It seems that this call is failing. You could try to step through the register function using the debugger to see you what's going on and why this call fails.

Thank you for your feedback. We haven't heard from you in the past 30 days, so we are closing the issue.
If you still have questions, feel free to reopen the issue.


Improve prototype ticket system

Improve the way prototypes from Technomancy recycle chunk loading tickets, by adding an event handler hook for prototypes items getting destroyed by lava/cactus/etc, adding a command to manually recycle a prototype ID, add a command to check which IDs are used by what prototype name, & adding a config to recycle any prototype ID not used in the last X amount of time.

As prototypes are removed in the betas, this suggestion no longer applies.


Remove the redundant words in docs

Although it is spelling mistakes, it might make an affects while reading docs.
Co-Authored-By: Nguyen Phuong An<EMAIL_ADDRESS>Signed-off-by: Kim Bao Long<EMAIL_ADDRESS>Description: Remove duplicated words in docs
Risk Level: LOW
Testing: N/A
Docs Changes: YES
Release Notes: N/A
[Optional Fixes #Issue]
[Optional Deprecated:]

Please merge master to pick up the fix for the CI failures

@snowp I will just force merge since docs CI passed.


ci: arch step fails with OOM

We have increasing number of CI failures with code 137 (seems to be OOM):
https://github.com/google/syzkaller/runs/4264479471?check_suite_focus=true
Need to figure out if it's only arch step or other are affected as well. If only arch, then maybe we could split/reduce parallelism in it.

More failures:
https://github.com/google/syzkaller/runs/4587082828?check_suite_focus=true
https://github.com/google/syzkaller/runs/4582270079?check_suite_focus=true
https://github.com/google/syzkaller/runs/4550271885?check_suite_focus=true

I got 2 failures in a row for #2937 (can't find them now)

This is getting out of control

Let's consider this fixed for now.


ORM query helpers

Move base classes to a new base.py module
Add query{_test}.py for defining ORM queries with fewer explicit joins

I'm reworking the mappers to use programmatic class definitions and single-table inheritance; closing this for now since it will mostly be obsolete.


Preparing a custom trained model for inference by adding placeholder input

I've had an great experience using this library in order to train a custom model. I'm now wanting to optimize the model for inference. I've frozen the weights and am trying to make the model more portable. The issue is that because the model uses queues and such to load data, there isn't a simple way to feed images to the frozen model. Does anyone have a simple way to replace the FIFO queue, batch join, etc. with a simple image data placeholder?

maybe you can try the op——tf.identity('image_batch''input''label_batch') in the train_softmax.py. This op can be used just like the code "load the model" part in validate_on_lfw.py

彳亍口巴

@tslater hello, did you find a solution?
I do inference via TensorRT and I can't find the placeholder of the input.

I ended up just writing a script that created a new model, with a new set
of inputs but using the same code for the hidden layers. Then I copied the
weights by name. It worked.
On Mon, May 28, 2018 at 7:29 PM, jerryhouuu<EMAIL_ADDRESS>wrote:

@tslater https://github.com/tslater hello, did you find a solution?
I do inference via TensorRT and I can't find the placeholder of the input.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/davidsandberg/facenet/issues/725#issuecomment-392628008,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAbbLiqay8UaVi8Cyp72adbIRKdAx5SLks5t3KSMgaJpZM4TlIiZ
.


Please doc

There is no documentation on how to use the extra features

https://amiruldev20.github.io/mywajs/client.html#
This is not complete

This lib is under construction, please be patient. the full version will be released soon

Ok thanks

join group discussions for notif update

https://mywajs.amirull.dev


[stable/seq] Add default nodeSelector targeting Linux OS for Seq

Is this a new chart
No
What this PR does / why we need it:
It increases the success of Seq getting properly installed and running within hybrid Kubernetes environments (having both windows and linux worker nodes)
Which issue this PR fixes
(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

fixes #23929

Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/assign @nblumhardt

/lgtm

Hi @mkoziel2000! :wave:
Before Helm can merge the chart they just need you to follow through the contributor license agreement and add a sign off to your commit (you can do this with git commit --amend --signoff).
The build failure looks a bit spurious to me so I wouldn't worry about that yet.

done.
On Wed, Oct 21, 2020 at 5:02 PM Ashley Mannix<EMAIL_ADDRESS>wrote:

Hi @mkoziel2000 https://github.com/mkoziel2000! 👋
Before Helm can merge the chart they just need you to follow through the
contributor license agreement and add a sign off to your commit (you can do
this with git commit --amend --signoff).
The build failure looks a bit spurious to me so I wouldn't worry about
that yet.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/helm/charts/pull/23930#issuecomment-713933271, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACXP77LOHPFJ3ADFQ4WARULSL5SBHANCNFSM4SXREVCA
.

/lgtm


Update README.md

Added Badges
solved issue #3

If this valid then pls merge it and label it as hacktober-accepted

Please read this comment: https://github.com/gouravkhunger/QuotesApp/issues/3#issuecomment-932743833
Thanks for understanding, I am closing this PR for now!


Bug: Usage of static::methodName in  CodeIgniter\Config\Services prevents Service overriding

The Bug
There are multiple methods in CodeIgniter\Config\Services that make calls to other methods in the class using the form static::someMethod().
For instance, see CodeIgniter\Config\Services::renderer() where the last line in the method is
return new \CodeIgniter\View\View(
            $config,
            $viewPath,
            static::locator(true),
            CI_DEBUG,
            static::logger(true) //  local scope!!!
);

The problem is that any overriding service defined in APPPATH/Config/Services.php is not in scope so the core class is delivered and not the extended one.
The following services are all called using the static::someMethod() form and so cannot be extended.

logger
request
response
locator
routes
cache
renderer

And I might have missed some. There are quite a few CodeIgniter\Config\Services that make static calls to those services so the ramifications would conceivably multiply.
CodeIgniter version
CI 4.0.0-rc.3 at commit 2c04e1cb4bc5a9db49e95cb4cb72e8780ef3ef6b (10/28/19)
Affected module
Services
Reproducing the Problem
Extend Logger
<?php
namespace App\Log;

use Psr\Log\LoggerInterface;
use CodeIgniter\Log\Logger;

class Logger extends Logger implements LoggerInterface
{
    public function myNewMethod($message)
    {
        echo "New Logger Method says: $message";
    }
}

In APPPATH/Config/Services.php
public static function logger(bool $getShared = true)
{
    if ($getShared)
    {
        return static::getSharedInstance('logger');
    }

    return new \App\Log\Logger(new \Config\Logger\Logger());
}

In a controller (of your choice)
$this->logger->myNewMethod('There be Dragons!');

Produces the following error
Call to undefined method CodeIgniter\Log\Logger::myNewMethod()
Context

OS: Linux (Debian 9)
Web server Apache version 2.4.25
PHP version 7.2.17

I've overridden the renderer service previously and never hit any problems. Though looking at that code I'm calling self so I'm surprised it works. :)
The static keyword, unlike self, is bound the the calling class instead of the class it's defined in due to late static binding, IIRC.
Your problem seems to be that the myNewMethod method is protected and cannot be called from outside of the class.

The problem is not that myNewMethod is protected. The error message would be "Call to protected method" if that was the problem.
myNewMethod was marked as protected because I ran into this problem trying to get an extended version of Logger to work. It was protected there and I missed changing it to public when writing the "Reproducing the Problem" example. Even when defined as public the "Call to undefined method" error is given. So clearly the extended class never gets instantiated - only the core version does.
I'm not really certain, but could it be that the toolbar is getting to Services first thereby binding us to the core class?
I'm not seeing  a call to Services::logger() (every call has been static::logger()) until CodeIgniter::createController() when the execution path does lead to APPPATH/Config/Services However, we already have an instance of Logger which getSharedInstance dutifully returns. Sadly, that instance doesn't have the method we're calling.

@lonnieezell
I have found the problem and it the following statement used by all the Toolbar Collectors
use CodeIgniter\Config\Services;

Which results in the App\Config\Services being bypassed.
By changing the use statement in all the Toolbar Collectors (Events, Logs, Routes, Timers, and Views) to:
use Config\Services;

Then CodeIgniter\Config\Services::Logger() actually gets overridden and Logger::myNewMethod() runs as expected.


Rel/1.0.0 snapshot

This is a PR to prep the release v1.0.0.
I started working on this, using the original repository, not a clone, but due to missing permissions I can't push directly.
Hence I try to move forward this way.

CLOSED for clarity.
New activities have been started to get a new release ready.


Update compiler version to 2024-07-25 (rust 1.80)

Bump the compiler version.

Sorry, I'm a bit under the water lately. ^^'
Gonna try to take a look at it tomorrow. In the meantime I started the CI.

CI still unhappy.

CI still unhappy.

I think the workflow needs to be updated, it does a git checkout v0.78.0 on the example repo

Ah I see. Do you mind pushing it to this PR please?

I've removed the checkout in the workflow to make the CI work on the PR, but maybe if it's green you might want to add a new tag on the example repo that I can use before merging this ?

I'm not sure why I added a tag in the first place to check it out in this CI. I'm also thinking more and more that I should move examples in this repository to make things simpler.
In any case, CI is happy. Great job, thanks!
I want to rework the API a bit so release will wait until it's done, should be fast. Just need to find one hour to do it. ^^'

Just released the 0.80.0 version of the crate. Enjoy! Gonna update docs shortly.


Can't run the program on Ubuntu 16.04 LTS

Is there an existing issue for this?

[X] I have searched the existing issues.

What's the problem?
I can't run sniffnet on my machine, it complains of GLIBC version!
I installed it by downloading Debian package amd64 and install it using dpkg
sudo dpkg -i ./Sniffnet_linuxDEB_amd64.deb

When it didn't run I tried to install the dependecies mentioned in here

$ sudo apt-get install libpcap-dev libasound2-dev libfontconfig1-dev libgtk-3-dev

and it was installed successfully
When ever I try to run it this is what happen
 $ sudo sniffnet
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by sniffnet)

My system details:
 $ uname -a
Linux ambat-PC 5.11.5 #1 SMP Sun Apr 4 12:39:37 +03 2021 x86_64 x86_64 x86_64 GNU/Linux
 $ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.7 LTS
Release:	16.04
Codename:	xenial

And I don't know exactly how to check GLIBC version, but here is something I tried:
 $ ls -al /lib/x86_64-linux-gnu/libc* | awk '{print $9}'
/lib/x86_64-linux-gnu/libc-2.23.so
/lib/x86_64-linux-gnu/libcap.so.2
/lib/x86_64-linux-gnu/libcap.so.2.24
/lib/x86_64-linux-gnu/libcgmanager.so.0
/lib/x86_64-linux-gnu/libcgmanager.so.0.0.0
/lib/x86_64-linux-gnu/libcidn-2.23.so
/lib/x86_64-linux-gnu/libcidn.so.1
/lib/x86_64-linux-gnu/libcom_err.so.2
/lib/x86_64-linux-gnu/libcom_err.so.2.1
/lib/x86_64-linux-gnu/libcrypt-2.23.so
/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/lib/x86_64-linux-gnu/libcryptsetup.so.4
/lib/x86_64-linux-gnu/libcryptsetup.so.4.6.0
/lib/x86_64-linux-gnu/libcrypt.so.1
/lib/x86_64-linux-gnu/libc.so.6

Sounds my GLIBC version is old, how could I upgrade it safely? or is the problem somewhere else?
How did you install the app?
downloaded one of the provided packages
Operating System
Linux
Additional context
No response

Hi @ABADY1000

$ sudo sniffnet
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by sniffnet) sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.27' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.29' not found (required by sniffnet) sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by sniffnet)

Is the output the same if you run without sudo?
Could you please also try sudo -E sniffnet?

If the error persists try updating the package with:
sudo apt-get update
sudo apt-get install libc6

Hi @ABADY1000

$ sudo sniffnet
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by sniffnet) sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.27' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.29' not found (required by sniffnet) sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by sniffnet)

Is the output the same if you run without sudo? Could you please also try sudo -E sniffnet?

Hello @GyulyVGC , thank you for your reply
Yes it is the same output:
$ sniffnet
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by sniffnet)

And the other command also generated the same error
$ sudo -E sniffnet
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.29' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by sniffnet)
sniffnet: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by sniffnet)

If the error persists try updating the package with:
sudo apt-get update
sudo apt-get install libc6

Here is the output from the second command after  updating the packages
$ sudo apt-get install libc6
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6 is already the newest version (2.23-0ubuntu11.3).
The following packages were automatically installed and are no longer required:
  gcc-5-base:i386 pandoc-data
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

It sounds like Ubuntu 16.04 is not supported, I run it on my another machine with Ubuntu 20.04 and it work directly

I'm happy you solved it somehow, even if the problem is still there... I imagine it's some dependency that's outdated and cannot be updated on older Ubuntu versions


Organisation numbers on the home page need manual updating

Problem
Whilst department numbers tend to stay fairly consistent. "Agencies and other public bodies" vary quite frequently. See:

#2494
#2494
#2446
#2419
#2280
#2202
#2183
#2079
#2650
#2693

There is often quite a bit of drift and lag. I started doing this becuase I noticed it before I joined GOV.UK and then realised I could fix it after I joined.
I think it generally makes us look a bit silly to have two different numbers on such prominent pages.
What to do about it
We can make this dynamic, the numbers here are accessible via the public organisation api.

See organisations content item here.

if you parsed the JSON something like:
  def ministerial_departments_count
    organisations_json.dig("details", "ordered_ministerial_departments").count
  end

  def other_agencies_public_bodies_count
    organisations_json.dig("details", "ordered_agencies_and_other_public_bodies").count
  end

Would work.
Issues
The main thing that stopped me getting further with this was a fairly old testing stack on this repo. It doesn't appear to be using rspec currently so I was thinking of adding that alongside minitest here so we could at least ensure new tests follow current GOV.UK convention.
Also there's a good point that before we pour effort into this we should probably stop and ask if this section still brings value?
I understand it arrived quite early during the major transitions of other sites onto a single GOV.UK. That time seems quite far in the past now. I wonder if this section still meets a user need today?
Perhaps this is a good opportunity to check and even free up some homepage real estate before we begin making this dynamic?

There is some potential work to revise some parts of the home page.
We should leave it for a little while longer to see how that work plays out.
If this page is going to continue for a bit, I'll automate this.
If it's about to be revised I'll leave it to be folded into that piece of work.

There is some potential work to revise some parts of the home page.
We should leave it for a little while longer to see how that work plays out.
If this page is going to continue for a bit, I'll automate this.
If it's about to be revised I'll leave it to be folded into that piece of work.

This is now resolved 🎉

@huwd If this is resolved, can we close the issue? 👀


Cleanup local includes

I've used minclude to find unneeded includes. I've only removed local includes (i.e. "" not <>). What do you think? :)

IMO cquery follows Google code style and it points out:

You should include all the headers that define the symbols you rely upon, except in the unusual case of forward declaration. If you rely on symbols from bar.h, don't count on the fact that you included foo.h which (currently) includes bar.h: include bar.h yourself, unless foo.h explicitly demonstrates its intent to provide you the symbols of bar.h.

I don't think minclude can guarantee that. For example, symbol.h should include utils.h for MAKE_ENUM_HASHABLE and language_server_api.h for lsRange though it doesn't.
I tried include-what-you-want but the output is a mess and not so reliable(e.g. replace <mutex> with <__mutex_base>). After manual checks, It seems that not much can be improved (like replace includes with forward declaration to compile fast).

IMO cquery follows Google code style

Judging from cquery's include order, it doesn't (thank god).

I don't think minclude can guarantee that.

Correct, it removes as much as possible.

I don't think removing as much as possible is the right approach - it leads to fragile compiles. Ideally a file includes what it actually depends upon.

IMO cquery follows Google code style

Generally it is closer to Chromium (which is basically Google), but there are a bunch of divergences between cquery and chrome, ie, chromium style mostly bans copy ctor so most things are unique_ptr<T>.

query_utils.h includes itself looks like an issue

It's short-incremental-compile-times vs. not-needing-to-add-includes-everywhere-after-a-refactor and this PR is 100% on the former. A trade-off might be the right-approach, feel free to close this PR :)

Yeah the build time is really long . how should we improve it

I would do one class per file. For example FileConsumer and FileConsumerSharedState are currently both in file_consumer.h. If you separate them, you could forward declare FileConsumerSharedState in FileConsumer's header, which will improve incremental builds.
For complete rebuilds there's a unity tool in Waf: https://github.com/waf-project/waf/blob/master/waflib/extras/unity.py. To generate a waf binary where it's included you need to run:
./waf-light --tools="unity"

Do you know how to leverage PCH in waf? I guess all src/messages/*.cc can share a precompiled header.

Oh nice minclude. This reminds of https://github.com/pwndbg/pwndbg/pull/261/files which finds the maximum fixed point of compilable header files

Feel free to open other PRs w.r.t. improving compilation time but I don't think we should be reducing includes to the minimum such that the actual dependency graph is not exposed.


feat: adding full logging options to log settings

Description
There are use cases (e.g. when building a library on top of sttp) where it is useful to pass all logging options as a single parameter to the end user to specify. This PR adds a .logSettings method that takes an Option[LoggingOptions] parameter, instead of the individual logging options parameters (e.g. logRequestBody, etc.).
Before submitting pull request:

[x] Check if the project compiles by running sbt compile
[x] Verify docs compilation by running sbt compileDocs
[x] Check if tests pass by running sbt test
[x] Format code by running sbt scalafmt

Thank you!


related content not showing when I copy the default related config

When I add the following to my config.toml file, the related article disappears:
https://gohugo.io/content-management/related/#configure-related-content
[related]
  includeNewer = false
  threshold = 80
  toLower = false

  [[related.indices]]
    name = "keywords"
    weight = 100

  [[related.indices]]
    name = "date"
    weight = 10

Is this a known issue? What is the correct default config when I run hugo server -D?

What version of Hugo are you using (hugo version)?

$ hugo version
Hugo Static Site Generator v0.74.3/extended darwin/amd64 BuildDate: unknown

Does this issue reproduce with the latest release?

Found my issue. I forgot to change it to the following:
  [[related.indices]]
    name = "tags"
    weight = 100

I use tags in the frontmatter, not keywords.

Reopening as I think this should not happen by default. Also because I copied the default config for related.

Also because I copied the default config for related.

I'm not sure what we can/want to do in this case.

If you don't provide any related config, we use the default. Reading the code, I see we also check for the presence of a tags config, so in case no config would have worked for you.
If you provide a config section, that is the config section we use, I don't see how we can magically determine "oh, he probably meant tags, not keywords"...?

If you don't provide any related config, we use the default. Reading the code, I see we also check for the presence of a tags config, so in case no config would have worked for you.

Correct. But what has the cobfig to look like to reproduce this behavior, which is not described in the docs?

If you provide a config section, that is the config section we use, I don't see how we can magically determine "oh, he probably meant tags, not keywords"...?

Correct. But according to the docs the default config is like described in the docs. But as you state and I can see this is not the whole truth (tags fallback).

Because I can not change a related setting without having to change it to tags.
I think this part is missing in the linked section and should be at least documented / mentioned.

At least there are many parts that use tags instead of keywords.
https://github.com/gohugoio/hugo/search?q=tags&type=
I only see https://github.com/gohugoio/hugo/blob/f37e77f2d338cf876cfa637a662acd76f0f2009b/related/inverted_index.go#L54-L56 but where is the logic that falls back to tags instead of keywords for related content? Would be helpful if you can point me to it =)

Because I can not change a related setting without having to change it to tags.

No; if you provide a related configuration, it must be complete.
I will fix the "tags" thing.

No; if you provide a related configuration, it must be complete.

Yes, I already understood this =)
And I thought the example in the docs was complete. Still, I can not see in the sourcecode where it falls back to tags. Can you point me to it? Thanks =)

Ah, I found it =)
https://github.com/gohugoio/hugo/blob/e442cf30a215e33b49ce588a9098147282bd883f/hugolib/site.go#L514


Ammo Box Tweaks

About the PR
Changes ammo box visuals
Media

also did foam dart box but it's just the magnum box recolored green

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog

:cl:Alekshhh

tweak: Changed ammo boxes visually

And what has changed?


Fix a couple minor issues with the test infrastructure.

Ran into a couple bugs:

The testdata.py script crashes with a RuntimeError on Python3.8 and above
The requirements.txt is out of date with the requirements

Coverage remained the same at 96.049% when pulling 859903978a07f40544e3baf14b7c06b0736fae74 on Eideticom:test_fixes into 089f6279752adfb01386600d119913403ed326ee on iovisor:master.

Added a commit to this PR to support python3 in expand_testcase.

Thanks for the pull request @lsgunth!
Could you extend Travis CI's test matrix to test Python 3.8 or higher as well?

Thanks for the pull request @lsgunth!
Could you extend Travis CI's test matrix to test Python 3.8 or higher as well?

Hmm, that doesn't seem easy to do.
To use Travis's built-in python version matrix we have to use "language: python" which I don't think we can do without removing "language: cpp".
The alternative would be to find a python3.8 backport ppa for Xenial and install it manually. This seems like it might be a bit fragile to me.
Using the latest dist in travis (Bionic) only gets us up to python 3.6; but loses python 3.5.
I'm not really sure if it's really worth the effort as it's largely just test framework stuff that uses python and not critical to work for users of this library, only developers who can afford to solve a few bugs if they crop up.

Hmm, that doesn't seem easy to do.
To use Travis's built-in python version matrix we have to use "language: python" which I don't think we can do without removing "language: cpp".
The alternative would be to find a python3.8 backport ppa for Xenial and install it manually. This seems like it might be a bit fragile to me.
Using the latest dist in travis (Bionic) only gets us up to python 3.6; but loses python 3.5.
I'm not really sure if it's really worth the effort as it's largely just test framework stuff that uses python and not critical to work for users of this library, only developers who can afford to solve a few bugs if they crop up.

Alternatively, maybe we should move ubpf to a more capable CI platform? GitHub Actions and GitLab are both free (to my knowledge), while SourceHut is paid but also is highly configurable and allows essentially unlimited CI.

Alternatively, maybe we should move ubpf to a more capable CI platform? GitHub Actions and GitLab are both free (to my knowledge), while SourceHut is paid but also is highly configurable and allows essentially unlimited CI.

Github actions is pretty similar to travis. They have the same quirks.
However, github actions does have various libraries to help. So we could probably rely on
https://github.com/actions/setup-python
To install whatever version of python without having to handle python version installs ourselves.

Github actions is pretty similar to travis. They have the same quirks.
However, github actions does have various libraries to help. So we could probably rely on
https://github.com/actions/setup-python
To install whatever version of python without having to handle python version installs ourselves.

The alternative would be to find a python3.8 backport ppa for Xenial and install it manually. This seems like it might be a bit fragile to me.
Using the latest dist in travis (Bionic) only gets us up to python 3.6; but loses python 3.5.
I'm not really sure if it's really worth the effort as it's largely just test framework stuff that uses python and not critical to work for users of this library, only developers who can afford to solve a few bugs if they crop up.

I agree :+1: A better long term solution to test different Python versions would be to move to GitHub actions.
Could you rebase on top of https://github.com/iovisor/ubpf/pull/56, which fixed the Travis CI builds?

Done. I had to drop the first commit seeing it was the same issue fixed in 9f9d0512896992ecbb4d11c6c870acc0f99f943f and 64bda8f1b6e35d36f62442c6ec50d46ef344bd85.

Thanks!


Adjust phpunit.xml to use the correct test folder name

Add a new phpunit test suite to trigger all tests of the package.
This change allows to trigger the test suite directly from the root folder.

Oh, nice catch ;) Have only tsted the phpunit.xml file on case-insensitive systems...

This is a problem because Travis works with case-sensitive system.
Because of this, no tests were executed until this commit.
See: https://travis-ci.org/uruloke/LaraCalendar/builds/282137722#L473


Debian: Make lpoptions list a printer's options correctly also when CUPS is running on an alternative port

@tillkamppeter comments?

For the avoidance of doubt, and economy of work; I am not carrying this patch on my shoulders; it's a patch I "found" in the Ubuntu fork (for embedding in Snap I think), from @tillkamppeter . I'll let them open a separate issue if they want to carry it for Ubuntu (I've removed it from Debian's patch suites).


openai- -error

I don't know why, but suddenly I'm experiencing communication failures with OpenAI. This has been the case from version 0.3 to 0.4. I'm not using langchain, just pure Python. I've checked my key and it should be able to communicate normally. I have my VPN turned on.

Hello, I don't think we changed anything about open ai in this release. What is the error you get? Sometimes OpenAI has some issues and is not able to process all the requests.

raise error.APIConnectionError("Error communicating with OpenAI") from e
openai.error.APIConnectionError: Error communicating with OpenAI

Is this happening 100% of the time or from time to time? My first guess is an issue on OpenAI's side.

If you use acreate you need to use await. Full example here https://docs.chainlit.io/concepts/streaming/python


BPE encoding, prefix/suffix support, NLLB support

Following up on the discussion at https://community.libretranslate.com/t/proposal-to-extend-the-argospackage-format/737/11, I've implemented some changes that allow:

Conversion and inference of OPUS-MT models that use BPE encoding instead of SentencePiece. This involves the addition of just one dependency (sacremoses), which I don't think is worth refactoring due to the large number of data files it requires for installation. Leaving it as a dependency will make updates easier. apply_bpe.py from subword-nmt has been included almost as-is, so no need for adding a dependency to subword-nmt.
Some OPUS-MT models (e.g. eng_zha, English/Chinese) require that a prefix be added to the tokens to indicate the language variant of choice. For example, https://huggingface.co/Helsinki-NLP/opus-mt-en-zh can specify a prefix of >>cmn_Hans<< for Mandarin Chinese Simplified, nan for phonetic Pinyin, and several others. For this purpose, I've added the following (optional) keys to the manifest spec:
tokens_prefix: Token prefix to add during encoding
tokens_suffix: Token suffix to add during encoding
target_prefix: This wasn't necessarily needed for bilingual models, but since it was simple to add, why not, you can now specify the target_prefix parameter that is sent to translate_batch, which allows the argosmodel spec to use multilingual models such as NLLB, for example:

Link to en-it NLLB model: https://drive.google.com/drive/folders/1FxquzYgQ58co5VvjVpBxoAUsDm2kicih?usp=drive_link
import argostranslate.package
import argostranslate.translate

# Translate
s = "When people don't see moose as potentially dangerous, they may approach too closely and put themselves at risk."
print(argostranslate.translate.translate(s, "en", "it"))

Output: Quando le persone non vedono l'alce come potenzialmente pericoloso, possono avvicinarsi troppo e mettersi a rischio.
{
    "argos_version": "1.8.2",
    "from_code": "en",
    "from_name": "English",
    "package_version": "1.0",
    "to_code": "it",
    "to_name": "Italian",
    "tokens_prefix": "eng_Latn",
    "tokens_suffix": "</s>",
    "target_prefix": "ita_Latn"
}

Which is kind of neat, because you can switch the target prefix and get a different language output. E.g. for Friulano fur_Latn:
Cuant che la int no viôt l'alc come potenzialmentri periculôs, e podarès slargjâsi trop dongje e metisi in pericul.

Eventually this could be easily extended to support dynamic metavars, e.g. allow target_suffix to be something like %(tgt_lang), and replace that value at runtime to match the requested language, but that's left as an exercise for a later PR.

I wasn't sure on the naming of tokens_prefix (should it be source_prefix? ), so if you want to rename things, feel free.

Link to BPE encoded model (Greek -> English):
https://drive.google.com/file/d/1UY5zZHRBLVTuDrPogQXfwNmW7A2YZlrZ/view?usp=sharing
import argostranslate.package
import argostranslate.translate

# Translate
s = "Όταν οι άνθρωποι δεν βλέπουν τους τάρανδοι ως δυνητικά επικίνδυνους, μπορεί να πλησιάσουν πολύ κοντά και να θέσουν τον εαυτό τους σε κίνδυνο."
print(argostranslate.translate.translate(s, "el", "en"))

Output: When people don't see the rein deer as potentially dangerous, they can get very close and put themselves in danger.
One possible bug I found out while implementing this is that on certain machines (Linux with no GPU), for some reason ctranslate2 fails to translate the OPUS-MT model by generating garbage:
denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin denomin ....

I've narrowed down the problem to the compute_type parameter for runtime quantization; for some reason, some of these models fail when compute_type is set to default (the current value). Forcing the model to use "float32" fixes the problem, but I'm unsure of the root cause
Edit this line in translate.py:
self.translator = ctranslate2.Translator(model_path, device=settings.device, compute_type="float32")

float32 quantized Greek -> English model (use this one to test if you get the garbage issue with the smaller int8 model): https://drive.google.com/file/d/1Rltpes7jLmXrE6LEc5nFNeAyjyQxQ8p8/view?usp=drive_link
It does seem an issue with ctranslate2, when I have time I will dig a bit deeper to see what's going on. We definitely don't want to set arbitrary compute_type values.

Awesome thanks! This looks great


action force for rvm_installation doesn't force the installation.

for LWRP rvm_installation, action force is missing force installation step.
Current code is:
def action_force
        converge_rvmrc
end

It should be
def action_force
    converge_rvmrc
    converge_install
end

I updated my existing PR for this fix as well.

Closing due to inactivity.
If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help!
Thanks,
Sous-Chefs


need help on language detect case

Hi,
In my scenario, the goal is to detect whether the input text is in English or another language. I'm not sure how to utilize the library to accomplish this task. For instance, if the input text is in a specified language, such as Vietnamese, I expect the detection as non english
	languages := []lingua.Language{
		lingua.English,
		lingua.Vietnamese,
		lingua.Unknown,
	}

	sentence := "Thông tin tài khoản của bạn"

	detector := lingua.NewLanguageDetectorBuilder().
		FromLanguages(languages...).
		WithMinimumRelativeDistance(0.9).
		Build()

	confidenceValues := detector.ComputeLanguageConfidenceValues(sentence)

	for _, elem := range confidenceValues {
		fmt.Printf("%s: %.2f\n", elem.Language(), elem.Value())
	}

output:
Vietnamese: 1.00
English: 0.00

when remove lingua.Vietnamese from expected language list, the program outputs English: 1.00, I would like the result is other language type rather than engilsh.
please help me on how to do this.
Thanks in advance.

Hi, what you want is not yet possible with my library. As of now, it only provides a relative confidence metric that tells you how likely a language is in comparison to another language. What you want is an absolute confidence metric that works independently from any other language. I plan to implement something like that but it's not easy. I can't tell you when this will be done.

Hi, what you want is not yet possible with my library. As of now, it only provides a relative confidence metric that tells you how likely a language is in comparison to another language. What you want is an absolute confidence metric that works independently from any other language. I plan to implement something like that but it's not easy. I can't tell you when this will be done.

Thanks, it is a good news, look forward to it.

Looking forward to this feature! We are looking for something similar.

Closed in favor of #68. The Rust implementation will contain this feature in version 1.7.0 to be released still in this year.


replace fetch with axios

replace fetch api with axios

better interceptor & re-resend request on "auth refresh"

closed by https://github.com/juliankoehn/mchurl/commit/e6db69c8902b307b296f2864481b45052278f409


Fuzzy completion matching

Proposal
Completions are currently filtered using strings.HasPrefix.
However it would be nice to replace this by a fuzzy matching algorithm.
Example

User types request
Language server should include metrics like http_requests_total in the offered completions.

@slrtbtfs Can I work on this?

Sure.

(I kinda hoped for that when creating the issue.)

How about this library?

My bad, Probably should build a function

Hmmm. That lib has a chrash bug open for years that didn't even get a reaction: https://github.com/schollz/closestmatch/issues/9

My bad, Probably should build a function

Usually using a good lib works better than coming up with your own approach, especially for complex algorithms and well studied problems.
How about https://github.com/sahilm/fuzzy ?

Should we add prioritization?
Like request_drumil will come first then tobias_request

Should we add prioritization?

Yes.
The SortText field in the completions can be used for that. It's already used to prioritize functions over metric names.

@drumilpatel2000 Are you still planning to work on this?

@slrtbtfs i would like to work on this if it's okay?

@haibeey That would be great!

okay i would work out something ASAP

PR #156 introduced fuzzy completion matching for metric names.
Implementing it for the other completion types still needs to happen but should be fairly straightforward.
Do you want to do that as well @haibeey ?

yes! i would have a look. any pointers to other completion types would be appreciated

PR #158 closed this issue


token transfer not supported well.

example:
this actions transfered vita and iotx via contract:
https://iotexscan.io/action/bb93d01a27f6b46c76a79bdf143d2bb7962f2038ecd3d7060b8679d80ffa9281

dup


Response Schema with list in gemini 2.0

Description of the bug:
In the example notebook provided in get_started.ipynb of gemini-2, there is a code snippet demonstrating controlled JSON generation. The prompt requests “List 3 popular cookie recipes and their ingredients.” However, the response_schema in the example is defined as Recipe, which is designed to return only a single object.
When I attempt to modify the response_schema to list[Recipe] or List[Recipe] (to align with the prompt’s intent to output three recipes), it results in the following error:
AttributeError: 'dict' object has no attribute 'upper'
This suggests that the SDK does not properly handle list-based schemas or that the example is misleading.
Actual vs expected behavior:
Actual behavior:
•	The example, as written, outputs only one recipe, even though the prompt requests three.
•	Modifying the response_schema to handle a list of recipes results in an error.
Expected behavior:
•	The example should correctly define the response_schema to allow the generation of multiple recipes.
•	The SDK should support list-based schemas (list[Recipe] or List[Recipe]) without throwing errors.
Any other information you'd like to share?
No response

Hello @nicornejo,
Thanks for reporting the issue. I am also suffering from it and reported it a while ago to the team working on the SDK. This is one of their top issues so it should hopefully be fixed soon.
In the meantime, unless you are using one of the new Gemini 2.0 features like the live API, I'd recommend using the former SDK which still works with the news models.


[Metrics-Exporter] level=error msg="Error scraping for collect.heartbeat: Error 1146: Table 'sys_operator.heartbeat' doesn't exist" source="exporter.go:138"

In deploying a MySQL cluster using the MySQL Operator via Helm, the first pod got stuck at 3/4 with following error in the metrics-exporter container:
time="2019-07-30T21:32:17Z" level=info msg="Listening on <IP_ADDRESS>:9125" source="mysqld_exporter.go:232"
time="2019-07-30T21:32:23Z" level=error msg="Error pinging mysqld: dial tcp <IP_ADDRESS>:3306: connect: connection refused" source="exporter.go:119"
time="2019-07-30T21:32:38Z" level=error msg="Error scraping for collect.heartbeat: Error 1146: Table 'sys_operator.heartbeat' doesn't exist" source="exporter.go:138"

The version of MySQL:
2019-07-30T21:32:27.076385Z 0 [Note] mysqld (mysqld 5.7.24-26-log) starting as process 1 ...

Deleting the cluster and re-deploying it using Helm did not make any difference.
Any advise? Thanks

After 4 hours, the first pod (-0) became ready, however now the second pod (-1) was stuck at readiness probe failed even after 7 hours.

Hello @imriss,
It is possible that the operator was not running, during that time? I hit a similar issue before, but in my case, the operator was not running.
Please provide me more details. What kubectl describe pod <pod-name> returns?
Also, show me the logs of the mysql container. The sys_operator database, the metrics and pt-heartbeat users are created using mysql init file. So if there were some errors in that files can be shown in mysql container. The init file can be found in the mysql container under /etc/mysql/conf.d/operator-init.sql.
The heartbeat table is created by the pt-heartbeat tool. Show me the logs of that container too.
Thank you for reporting and helping debugging this!

Hello @AMecea Sorry for the delay. The operator was running at that time. I guess that it was something related to the environment (the VM). After deploying the whole cluster, the error did not repeat.


100% height issue

I'm using your library in a Flex project and platform.css (now layout-flex) but it's don't works.
I must remove hight :100% from splitArea e splitGutter. Without these, now it's working

      <split [direction]="'horizontal'" [gutterSize]="8">
        <split-area [size]="25" [order]="1">

Test

        </split-area>
        <split-area [size]="75" [order]="2">
          <split [direction]="'vertical'" [gutterSize]="8">
            <split-area [size]="50" [order]="1">

Top Content

            </split-area>
            <split-area [size]="50" [order]="2">

Bottom Content

Bottom Content

Bottom Content

Bottom Content

Bottom Content

Bottom Content

Bottom Content

Bottom Content

            </split-area>
          </split>
        </split-area>
      </split>

Are you talking about @angular/flex-layout?
If yes, checkout this demo:
https://stackblitz.com/edit/angular-w55rly?file=app%2Fapp.component.html
If it doesn't help, please provide a stackblitz.

https://stackblitz.com/edit/angular-y1rpku I am not using @angular/flex-layout and seeing that in chrome's inspector disabling the height: 100%: or setting it to a negative number allows it to work as in the demo.

I experience the same thing, removing height: 100% from split-area and split-gutter is necessary in order for gutter to get any height at all (it gets the correct height as well).

Same here. We don't use flex-layout, and the gutter is not shown unless I remove height: 100% from split-gutter in Chrome inspector. Any suggestion of a workaround?

As a workaround, you can set the gutter height to its initial height.
split-gutter {     height: initial !important; }

What is the status on this issue ? Can we support height in % instead of px ?

I had a code pen to show this issue, but when I last checked it, it appeared to be working with the latest version. https://codepen.io/digitalcoyote/pen/WdQzQV

I have created demo here please check, when giving
height : 100%

it doesn't work properly.
https://stackblitz.com/edit/angular-m6czv2
if you could resolve this that would be great help.

The original codepen I had poosted was wrong: https://stackblitz.com/edit/angular-9v5fzk shows this as working in Chrome. It does need an explicit height set on body/html though b/c that is where it is deriving it's height from.

Thank you @digitalcoyote  :) for response, I got the idea.
In complex , applications the parent component needs to have height set explicitly. then if we give height in % that works fine.
Thanks you again @digitalcoyote.
And thank you @bertrandg  for this awesome plugin. and updating it  when i needed it mostly.

As a workaround, you can set the gutter height to its initial height in your application's css.
split-gutter { height: initial !important; }
EDIT: For version 1.0.3 (at least), you can use the following instead:
as-split-gutter { height: initial !important; }

It is not working in my case: https://stackblitz.com/edit/angular-rcqyv1
What's wrong?

The original codepen I had posted was wrong: https://stackblitz.com/edit/angular-9v5fzk shows this as working in Chrome. It does need an explicit height set on body/html though b/c that is where it is deriving it's height from.

What about if I'm in a modal and the parent container is scrollable (with max-height: calc(80vh - 10rem))?


feat: Support Bash Completions for More Resources

Checklist:

[x] Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
[x] The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
[x] I've signed the CLA.
[ ] I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
[x] My builds are green. Try syncing with master if they are not.
[x] My organization is added to USERS.md.

I added more bash completions so we can easily use WorkflowTemplate, ClusterWorkflowTemplate, and CronWorkflow.

@dtaniwaki I thought we could generate this file?

Oh, really? I don't know how to do that.

https://www.bookstack.cn/read/cobra/bash_completions.md would it be worthwhile going 10x on this?

@alexec I think that works for subcommands, but not for resource names.


Don't crash if burstValues() has only one argument

It’s totally unnecessary but I don’t think it’s worth a warning. Like an enum with only one constant?

I think I would warn for that, too. Although it's less likely because the overhead of declaring an enum is higher.

Yeah good call. Added a tracking issue!


Issue regression flow

See: https://github.com/The-OpenROAD-Project/OpenLane/issues/881
This commit adds -run_hooks flag which allows to run python scripts after design was ran. Example design was added. All designs should pass after this pull request, except new def_test design should be added but not run. If you run this, it should not pass, as the def flow has issues, that should be soon resolved.

Looks okay- though it will fail Python linting. We require black formatting and flake8 to pass.

Will update the formatting asap

Wait, why? If you don't want to resolve the conflicts just tell me and I'll do it

@donn I created one branch with all changes and created a merged pull request. This is my first time contributing using Pull Requests, I didn't know how to do this properly.

Ah, that makes sense.


Is the Donate link still current?

Clicking Help->Donate, even in the current nightly builds, takes me to wj32's PayPal page. Given that all new development for a couple years now has been done by dmex, I wonder if donating there actually supports continued development of Process Hacker?

Clicking Help->Donate, even in the current nightly builds, takes me to wj32's PayPal page

Is it a problem?

Given that all new development for a couple years now has been done by dmex, I wonder if donating there actually supports continued development of Process Hacker?

Yes, It does. I don't need donations to continue development (which should be obvious by now) 😄
@wj32 asked about sharing donations but I refused and asked that they go towards server hosting costs @ https://wj32.org/processhacker and the update servers.

Is it a problem?
Not at all.

Thanks!


Add command to az policy to trigger on-demand evaluation scan

Is your feature request related to a problem? Please describe.
When developing Azure Policies, it can take up to 30 min for a policy assignment to be applied to a defined scope and even some more time for the evaluation cycle to be processed (see Evaluation triggers). Therefore, developers usually rely on triggering on-demand evaluation scans by calling the REST API to verify the Azure Policy.
Describe the solution you'd like
Instead of low-level REST API calls, it would be much more convenient to trigger the on-demand policy evaluation via Azure CLI, i.e. '''az policy evaluate --scope ...'''
Describe alternatives you've considered
An alternative would be to add this feature to the Azure CLI Extensions
Additional context
None

add to S168

Based on the docs of on-demand evaluation scans, there is the possibility to retrieve the status of the on-demand evaluation scan. A REST API GET command to https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/asyncOperationResults/{ResourceContainerGUID}?api-version=2018-07-01-preview
returns a 202 Accepted while the evaluation is ongoing. When the evaluation scan has completed, it returns a 200 OK status. The body of a completed scan is a JSON response with the status:
{
    "status": "Succeeded"
}

Hence it might make a lot of sense to include a --wait flag in the az policy evaluate --scope ... command.

@calecarter Hi, please pay attention to this issue. Here are the same requirements for adding https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.PolicyInsights/asyncOperationResults/{ResourceContainerGUID}?api-version=2018-07-01-preview to the Python SDK.
After that I will support this feature in CLI.

Hi zhoxing-ms, we don't have this in the upcoming plans due to other features in the pipeline. One of which is to improve the time for compliance evaluation to surface. With this exciting change, there will be little to no need to trigger an evaluation. Thanks!


Added tabBarStyle prop, to be consistent with other tabBar styling …

…props, and to allow (in my case) me to easily change the color of the tab-bar's 1-pixel wide bottom-border.

I don't want to pass tab bar props throw index.js


Call Application under partition

I am trying to load virtual server as below
vip = ltm.virtuals.virtual.load(name="vs_name", partition="Common/partition.one")
it give me this error
instance names and partitions cannot contain '/', but it's: Common/partition.one
my virtual server output like below:
# tmsh list /ltm virtual /Common/partition.one/vs_name
it gives me below output
ltm virtual partition.one/vs_name { ......
how to load the virtual server in this case?

you will need to add the transform_name as a kwarg and set it to True and that should help. example

@f5-rahm  Thanks for your prompt support


Create dotnet.yml

Successfully Tested.. 👍

 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.:x: Mohsin7457 sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Lab 0101, passwords too weak/common

Module: 01
Lab/Demo: 0101
Task: 01
Step: 15 and 30
The password suggested (Pa55w.rd1234) does not pass the requirements of not being too weak or too common
Repro steps:

Any password that gets written into a lab will either end up being too common or known by threat actors.
Task 1 should have the same phrasing that task 2 has.
Step 15, 30: Next to Password, enter a complex password of your choice.

We have not been able to recreate this issue. Can you please provide screen shot so we can review this further.

Why not use the tenant admin password in this course? We change the password in many other courses to that one, even in the SC courses. In the lab interface students can easily select that password. Would make the labs in all courses more consistant. Not a secure option in the real world, but could work in the course.

The following note has been added under steps 15 & 30:
If you receive an error message stating that this password in weak or commonly used, enter the tenant password found under the Resources tab of this lab profile. Alternatively, you can enter a complex password of your choice.
Either option should work.


[Question] enableHardwareAcceleration not working with libmpv not having MPV_RENDER_API_TYPE_SW

When enableHardwareAcceleration is false, the software will crash

Use new distro.

I can't control which version of libmpv YOU install on GNU/Linux. If it doesn't have MPV_RENDER_API_TYPE_SW, it won't work!

I can't control which version of libmpv YOU install on GNU/Linux. If it doesn't have MPV_RENDER_API_TYPE_SW, it won't work!

How not to use hardware acceleration? Because I found that some old computers have problems with hardware acceleration turned on.


[Feature]Add streamx to get k8s' deployment logging capabilities

Problem Summary:
streamx deploys flink on k8s deployments, during which deployment detail logs are not available
What is changed and how it works?
Proposal: xxx
Feel free to ping committers for the review!
Contribution Checklist

Make sure that the pull request corresponds to a GITHUB issue.

Name the pull request in the form "[Feature] [component] Title of the pull request", where Feature can be replaced by Hotfix, Bug, etc.

Minor fixes should be named following this pattern: [hotfix] [docs] Fix typo in README.md doc.

Purpose of this pull request

@wolfboys PTAL

LGTM


PROD SUPPORT : I see MM/DD/YYYY format for dates everywhere in production

Describe the bug

In Preview page its in DD/MM/YYYY format

Working as expected
screenshot


Add new evaluation metrics

Added different levels of evaluation-tests to test llama.
The different lm_eval metrics are:

Easy : ['wikitext']
Medium : ['wikitext', 'mmlu']
Hard : ['wikitext', 'mmlu', 'truthfulqa_mc2', 'winogrande', 'arc_challenge', 'hellaswag', 'gsm8k']

if not sure if all eval metrics are relevant for llama, cc @HDCharles to take a look

the current solution is specifying all tests explicitly in benchmarks.sh and we made evals.sh to do the same though I haven't added all the tests there yet. If you want to make it easier to run those sets i'd maybe add them there?

I think we need more eval metrics to test the different techniques on llama. Though that could be done by updating the eval.sh instead. Also, we can add more benchmarks to the readme file in future.

@HDCharles just to confirm this is what you have in mind right?


Fedware crashing on class select

This kept on happening to me any config i click on and select a class it crashes the game

Same here 3 hours ago it was normal when im using fedora but today it won't work

game updated again, signatures broken again :\


Correlating Stretch Direction and Strain

Hello Dana,
I've been having some troubles understanding how the principal stretch are plotted, and how those relate to the principal strains. Below is a picture of a specimen (shown on the tension side) being curved. How are the stretch lines plotted? I thought it might be from the [U,V,W] vector, but that doesn't make sense for the "2nd Principal Stretch" image. Also, the strains that I get from the 1st principal stretch is negative. Unless your sign convention is positive equals compression, I don't understand why the results show negative strains when the specimen is stretched horizontally from the curvature.
Please do advice! Thank you in advance!
Best, Vivian

Hi Vivian,
Sorry for the late reply.
The 1st and 2nd principal stretches are the 2 eigenvalues of the deformation tensor, and their corresponding eigenvectors are the directions on the surface plane. Normally, if you stretch a material in one direction it will compress in the orthogonal direction. Hence, the 1st stretch is <1 (compression) and the 2nd is >1 (tension). They are always sorted from small to large, so 1st doesn't mean it has the largest absolute value. In your case, if you're interested in the tensile stretch, you should look at the 2nd principal stretch/strain. The principal directions represent the lines along which the material experiences the smallest and largest stretches.
I don't understand what do you mean by "shown on the tension side" and "stretched horizontally from the curvature". Can you explain what test did you perform and attach the raw image you analyzed, if you can?
Thanks,
Dana

Hello Dana,
Thank you for replying so thoroughly! I have attached a GIF of what test I did. Essentially, it is pulling the edges of a strip of material around a known radius (configured by the bolts). What I mean with "tension side" is that the images are taken on the tension side of the bended strip.  That's why I expect there to be a horizontal tensile stress instead of what's shown in the 2nd principal stretch/strain image above.
Also, could I clarify: The principal strains stored are the max strains on the element (in tension & compression), but that doesn't necessarily mean they are the local strains, ε_xx & ε_yy on the specimen. In order to obtain the local strains, the principal strains will need to be transformed?
Thank you,
Vivian

Hi Vivian,
Beginning with your second question: that's correct, the principal strains are the min/max strains on each element. Their directions are given in the global coordinate system which is defined during the calibration step. If you're interested in the xx and yy strains, you can extract them from the strain tensors. These would be the (1,1) and (2,2) components of the strain tensor. The x and y directions are the global directions of the coordinate system, defined in STEP1 from your calibration object. Therefore, these strains might not be planar on your sample in all points, and might be meaningless. These are NOT local variable planar x and y directions. MultiDIC doesn't provide these strains because they're not uniquely defined for each problem. On a cylindrical sample it might make sense to define local axial and circumferential directions, but on a sample with arbitrary 3D geometry, these directions are not easily defined. However, if you want to extract the strains in a local coordinate system that you defined for your test, you can do it by taking the 3D strain tensors and project them on these directions. The direction normal to the element plane is stored as "d3", so if you multiply the strain tensor by d3 you get a "strain vector" which you can then separate into any two orthogonal directions.
Regarding the results you got- it does seem odd. Could you send me the final results mat file (DIC3DPPresults) so I can have a look at it? You can email to<EMAIL_ADDRESS>Additionally, I just wanted to note that your speckle pattern is not dense enough. The black-white ratio should be ~50%, and you have much more white. It couldn't cause the above mentioned problem, but you might want to improve it in the future to get more accurate results.
Thanks,
Dana


i want to refactor the autocomplete class into multiple classes containing minimal functionality

This has been completed on pop window dev branch, need to create pull request into master

This has been completed and merged with master branch


Fix tokenfilter tests

Summary
Right now our token filter tests have been commented out:
https://github.com/celestiaorg/celestia-app/blob/897b448cb8d2b655743bf1e786f6823775468964/test/tokenfilter/tokenfilter_test.go#L135-L141
The reason being that the app version isn't passed in the header (so the tests simply panic).
We should fix this and re-enable the tests. Currently they rely on the testing package provided by the ibc-go repo. It's possible to suggest the fix there. The problem is that we would want the changes backported to the v6.x branch which is no longer supported (only v7 and v8 are supported). I would prefer not to have to fork another repo so the options would be to:

Rewrite the tests using interchaintest (the docker image based one that strangelove maintain)
Upgrade to v8 in v2 and submit the patch that supports different app versions

Thanks for creating the issue! I lean slightly towards option 2 because I found it difficult to use interchaintest when writing ICA tests.

Yeah I suggested v8 without looking into much detail around the decision but purely basing it on the fact that the later the version, the longer we have before it's no longer maintained :)

@cmwaters @ninabarbakadze and I had a discussion and we're leaning towards adopting interchaintest to add end-to-end tests for ICA and PFM. So now it seems like we're leaning towards option 1 over option 2.

We may be able to fix these tests if the fix for https://github.com/celestiaorg/celestia-app/issues/3137 applies to the /v6 branch.

the fix in #3137 is specifically for tokenfilter tests

Got it, that's what I thought. I wanted to link https://github.com/celestiaorg/celestia-app/issues/3137 to this issue b/c they can both be closed if we fix upstream ibc-go/testing on the /v6 branch.

i think this issue should also cover updating to the new version that includes the fix and enabling the tokenfilter test before we close it

Unblocked because we upgraded to ibc-go v6.3.1 with Nina's fix


ReflectionProperty's isInitialised is available after PHP 7.4

https://github.com/laravel/framework/blob/2e47b9c7db158c9dd776c734f8cdb927cf84a4c8/src/Illuminate/Queue/SerializesModels.php#L70
Isn't isInitialised is only available after PHP 7.4? Ref: https://www.php.net/manual/en/reflectionproperty.isinitialized.php

That code is only executed on PHP 7.4.


vendor: bump cri, gopkg.in/yaml.v2 v2.2.8

vendor: update containerd/cri c0294ebfe0b4342db85c0faf7727ceb8d8c3afce
full diff: https://github.com/containerd/cri/compare/19589b4bf9663815649f1125fb45a1674d52a702...c0294ebfe0b4342db85c0faf7727ceb8d8c3afce

containerd/cri#1387 vendor: bump gopkg.in/yaml.v2 v2.2.8

vendor: bump gopkg.in/yaml.v2 v2.2.8
full diff: https://github.com/go-yaml/yaml/compare/v2.2.4...v2.2.8
includes:

go-yaml/yaml@f90ceb4 Fix check for non-map alias merging in v2

fix for "yaml.Unmarshal crashes on "assignment to entry in nil map""

go-yaml/yaml 543 Port stale simple_keys fix to v2
go-yaml/yaml@1f64d61 Fix issue in simple_keys improvements

fixes "Invalid simple_keys now cause panics later in decode"

go-yaml/yaml 555 Optimize cases with long potential simple_keys

Codecov Report

Merging #3999 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3999   +/-   ##
=======================================
  Coverage   42.64%   42.64%
=======================================
  Files         130      130
  Lines       14763    14763
=======================================
  Hits         6296     6296
  Misses       7548     7548
  Partials      919      919

Flag
Coverage Δ

#linux
46.02% <ø> (ø)
:arrow_up:

#windows
38.22% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Add notifications to Grand Exchange plugin

Adds notifications to Grand Exchange offers.

Toggleable notifications
Delays notifications by a configurable amount of seconds so notifications don't immediately overwrite each other
Delays notifications in a slot by a tick so any quick partial buy/sell to complete buy/sell events will coalesce into just the "Finished buying/selling" notifications
Only sends notifications on buying/selling/bought/sold events. Cancelled offers don't cause any notifications

Tested with basic offers, as well as partial orders that complete non-quickly by buying over the buy limit of an item, and then selling the amount that were partially-bought with the original offer still in place. This correctly shows a partial buy notification, then a finished notification for the original offer. Also, as this causes two offers to complete on the same tick, it does correctly display one offer notification, and then the other after the delay. Not sure if there are any more advanced scenarios that need to be covered.
Currently will give updates on pending offers when you first log in. I didn't see anything in the event data to filter these out, but if anyone knows of a way I can add that in as a configurable option as well.
Probably needs testing on Mac / Linux to make sure everything works fine with their notification types, probably worth testing on Windows 7/Vista as well, as they do the "tray-style" pop up notifications.
Refs #3168

Updated, refactored to remove some now-extraneous code.