LogSizeSinceLastLogBackup and bkp on secondary replica

Hello,
I'm having an issue with the use of the @LogSizeSinceLastLogBackup parameter with the databasebackup sp.
here is my statement I run:
EXEC [dbo].[DatabaseBackup]
@Databases = 'MyDb'
, @Directory = '\\bkpserver'
, @BackupType = 'LOG'
, @Verify = 'Y'
, @CleanupTime = 336
, @Compress = 'Y'
, @Encrypt = 'Y'
, @EncryptionAlgorithm = 'AES_256'
, @ServerCertificate = 'MyCert'
, @LogSizeSinceLastLogBackup = 1024 --1gb
, @TimeSinceLastLogBackup = 1800 -- 30 mins
, @LogToTable = 'Y'
But if i run this command multiple times in a row, the backup will create  new file at every occurrence.
So i checked at the function dm_db_log_stats,and here is the result :
database_id	recovery_model	log_min_lsn	log_end_lsn	current_vlf_sequence_number	current_vlf_size_mb	total_vlf_count	total_log_size_mb	active_vlf_count	active_log_size_mb	log_truncation_holdup_reason	log_backup_time	log_backup_lsn	log_since_last_log_backup_mb	log_checkpoint_lsn	log_since_last_checkpoint_mb	log_recovery_lsn	log_recovery_size_mb	recovery_vlf_count
8	FULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	NULL	2019-12-06 14:15:05.950	NULL	NULL	NULL	NULL	NULL	NULL	NULL
There is no record for the database in the function, that explains the fact he make the backup every time. Am I missing something ?
SQL Server version and edition
Microsoft SQL Server 2017 (RTM-CU13) (KB4466404) - 14.0.3048.4 (X64)
Version of the script
Version: 2019-12-01 21:32:32

The reason is explicitly written on msdn :

source msdn
I'll try to fix it and create pull request when done

I created the pull request to fix this issue
https://github.com/olahallengren/sql-server-maintenance-solution/pull/306

Unfortunately sys.dm_db_log_stats has this limitation.
Could you describe how you would like my stored procedure to work in this scenario?
As it works now, if DatabaseBackup does not get any information from the function, then it will perform a backup.

Thank you for your answer.
As the dm_db_log_stats fn doesn't work on secondary, it is impossible to rely on the LogSizeSinceLastLogBackup and TimeSinceLastLogBackup values to make intelligent backups.
I found a solution that works actually on my instances : I chose to rely on the function on the primary replicate. Even though I backup on a secondary replicate, the information is updated on the primary. I created a pull request with my actual version of the script. You can find it in the PR #306.

Thank you, @kroilia.
I was looking at the pull request. The downside with using linked servers is just that it makes the configuration a bit more complex.

I have documented the current behavior.
https://ola.hallengren.com/sql-server-backup.html#LogSizeSinceLastLogBackup
https://ola.hallengren.com/sql-server-backup.html#TimeSinceLastLogBackup

@kroilia, thank you for your work on this, but I am not planning to use linked servers.
Hopefully Microsoft will improve sys.dm_db_log_stats in a future version of SQL Server, so that it returns information on the secondary.


While loop

It'd be rad to have a while loop construct. I've had to hack it in myself, using this:
func truthyResult(env *zygo.Zlisp, fun *zygo.SexpFunction) (bool, error) {
	res, err := env.Apply(fun, []zygo.Sexp{})
	if err != nil {
		return false, err
	}
	switch rt := res.(type) {
	case *zygo.SexpBool:
		return rt.Val, nil
	case *zygo.SexpSentinel:
		return false, nil
	default:
		return true, nil
	}
}

// While hacks a while loop into zygomys
func While(env *zygo.Zlisp, name string, args []zygo.Sexp) (zygo.Sexp, error) {
	if len(args) != 2 {
		return zygo.SexpNull, errors.New("Syntax: (while cond body)")
	}
	var cond, body *zygo.SexpFunction
	switch st := args[0].(type) {
	case *zygo.SexpFunction:
		cond = st
	default:
		return zygo.SexpNull, errors.New("While loop takes two functions")
	}
	switch st := args[1].(type) {
	case *zygo.SexpFunction:
		body = st
	default:
		return zygo.SexpNull, errors.New("While loop takes two functions")
	}
	result, err := truthyResult(env, cond)
	if err != nil {
		return zygo.SexpNull, err
	}
	for result {
		_, err := env.Apply(body, []zygo.Sexp{})
		result, err = truthyResult(env, cond)
		if err != nil {
			return zygo.SexpNull, err
		}
	}
	return zygo.SexpNull, err
}

Is there a better way? Or would this require extending the language?
I'd like to be able to do:
(while (== true cond)
  (some)
  (body))

Hi @japanoise that would be pretty cool.  Just add a couple of correctness tests to the test suite and file a pull request, and we'll put it in.

Well, currently the API is too clumsy. I wouldn't put it in as-is.
You have to do e.g.
(while (fn [] (==cond true) (fn [] (body goes here))

I was wondering if you had a macro hack or something to make it nicer.

The proper way to would be to add it to the built in codegen, alongside the for builtin. You could probably just copy and modify the for Generator.GenerateForLoop code in generator.go:817 to be like Go and only need the middle test.


Improvements to datatable functions

Improvements to Out-DbaDataTable and Write-DbaDatatable
Changes proposed in this pull request:
Out-DbaDataTable

Added timespan conversion and support for other special types which can easily be added in the future
Improved parameter validation
Improved performance (should now be similar to the original function)
Improved handling of null values
Added pester tests

Write-DbaDataTable

Improved parameter validation
Removed debug comments

How to test this code:

[ ] Use complex objects with properties with a large variance of datatypes (get-process is a good example)
[ ] The pester test has a good example of an object which can be used for both functions for testing

Has been tested on minimum requirements:

[ ]  Powershell 3
[ ]  Windows 7
[ ]  SQL Server 2000

Has been tested on maximum requirements:

[ ]  SQL Server vNext
[x]  Windows 10
[ ]  Azure Database

Tests for tester:

[x] Working/useful help content, including link to command on dbatools web site
[x] All examples work as advertised
[ ] Does not contain template content
[ ] Does not contain excessive/unnecessary amounts of comments
[x] Works remotely
[x] Works locally
[ ] Works on lower versions or throws error specifying version not supported
[x] Works with named instances
[ ] Works with clustered instances
[ ] Handles offline/read only databases
[ ] Supports multiple servers (at the command line or piped from Get-SqlRegisteredServerName)
[ ] No un-handled errors which stop the command working with multiple servers

Thanks so much,  @JohnRoos! Works beautifully. I'd like to invite you to use branches from the main repo if you're comfortable with it 👍

Sounds great. Thanks!


fix fix the longest continuous rowsets cannot be selected when missing rowsets (#38728)

pick master #38728

run buildall

run buildall

run buildall


Documentation examples are using x.ms() methods

When attempting to use the examples, code like this:
pn532.process(&Request::INLIST_ONE_ISO_A_TARGET, 7, 1000.ms());
Causes errors:
can't call method mson ambiguous numeric type{integer}``
Should these changed to use std::time::Duration::from_millis() instead?

Good point.
Most HAL's I've worked with define an extension trait on u32 in their prelude (e.g. stm32f4xx-hal)
The concrete type of the timeout value will depend on the implementation of CountDown.
core::time::Duration would be one possible type but often (especially with no-std) other types are used.
I would like to keep the .ms() call since it doesn't mention a concrete type, but maybe we could provide our own extension trait such as:
use core::time::Duration;

pub trait U64Ext {
    fn ms(self) -> Duration;
}

impl U64Ext for u64 {
    fn ms(self) -> Duration {
        Duration::from_millis(self)
    }
}

Would that work for you?

Yeah, I was trying to use it without HAL (or with basic linux-embedded-hal) and couldn't figure out where to import these definitions (see issue #2 ).


feat: add 'Edit this page on GitHub' link

📝 Description
Add a link to the end of each page (except changelog) to edit the page on GitHub.

⛳ Current behavior (updates)
No link from document page to directly edit it
🚀 New behavior
Link added to the end of each page to provide easy way to access and edit the documentation
💣 Is this a breaking change (Yes/No):
No

This is great, @samuliasmala! Thanks for opening this PR 💖 A few things that I've noticed:

Since I have write access to the repo, I'm taken directly into the Edit Mode, which is fine I guess
If I'm not logged in, I'm taken to the GitHub Login page and I'd need to log in first to see what the page is
If I'm logged in, but I don't have write access to the repo but a fork on my account, I'll still see the editor, but I'll be met with an alert
You're making changes in a project you don't have write access to. Submitting a change will write it to a new branch in your fork, so you can send a pull request.
A different scenario happens if I'm logged in, don't have write access, but also don't have a fork on my account.

To provide a consistent experience, I think leading the user to just the page without the Edit Mode will be better. The users will then chose if they want to fork it, open Visual Studio Code on that page, or use the GitHub editor right there on the spot.

Thanks for the comments! You're correct, the link behavior will indeed vary from user to user so it's better to open the file in reading mode. I've updated the PR accordingly.

Looking good! Thanks @samuliasmala 💖

@allcontributors please add @samuliasmala for code


talos: machine deployment created too early

I'm running into a problem with the combination CAPH, CABPT, CACPPT where worker nodes end up in an endless reboot loop and never reach the Ready state.
My HetznerCluster resource has:
[...]
spec:
  controlPlaneEndpoint:
    host: ""
    port: 6443
[...]

Now, when creating a cluster with at least one worker node, only the control plane nodes are created with bootstrap data that contains a valid endpoint (load balancer IP as expected). Worker node(s) are missing the host:
kubectl --context kind-test get secret -l cluster.x-k8s.io/cluster-name=test -o json | jq -r '.items[] | select(.metadata.name | endswith("bootstrap-data")) | [.metadata.name, .data.value] | join(" ")' | while read name data; do echo -n "$name: "; base64 -d <<<$data | yq -r .cluster.controlPlane.endpoint; done
test-controlplane-6v8gn-bootstrap-data: https://XXX.XXX.XXX.XXX:6443
test-controlplane-qw2h6-bootstrap-data: https://XXX.XXX.XXX.XXX:6443
test-controlplane-tb9dz-bootstrap-data: https://XXX.XXX.XXX.XXX:6443
test-md-0-5f6c9b9447-gj6gt-bootstrap-data: https://:6443

My assumption is that the workers' bootstrap data is generated before CAPH replaces the empty spec.controlPlaneEndpoint.host value with the LB's external IP.
When creating the cluster with a worker count of 0 and scaling it up later, the bootstrap data is correct and the worker node(s) reach  Ready. As it is now, they can never even join. I guess the workers are created too early as they don't depend on the LB creation. Not sure whether this is directly CAPH's fault, but would expect this dependency ordering to be a responsibility of the infrastructure provider. CABPT seems to just happily pick up the empty endpoint and only when booting the node it is flagged as invalid (Invalid controlplane endpoint: host must not be blank)

Just from CAPI perspective, the workers come up after the control plane, don't they? So I don't really understand how the workers can be there before the load balancer and the first control plane is running. Could you explain?

That would make sense, however I can clearly watch the worker nodes appearing in the hcloud console at the same time or even slightly earlier than the control plane nodes. I can try and grab some logs later.

I think that would be a good idea! I am sure that nothing will work if workers come before control planes but I have also never seen that happening before.

Okay, I think I found the cause.
Indeed, the MD is created even before the controlplane. All logs support this. This shouldn't be a problem, however as the Talos Bootstrap Provider checks for the cluster's InfrastructureReady status before generating its config and this in turn is a precondition for the HCloudMachine to be reconciled.
However, the control flow at https://github.com/syself/cluster-api-provider-hetzner/blob/main/controllers/hetznercluster_controller.go#L197 looks suspicious to me:
	if hetznerCluster.Spec.ControlPlaneLoadBalancer.Enabled &&
		hetznerCluster.Status.ControlPlaneLoadBalancer.IPv4 != "<nil>" {

[...] set endpoint in cluster spec

		hetznerCluster.Status.Ready = true
	} else if hetznerCluster.Spec.ControlPlaneEndpoint != nil {
		hetznerCluster.Status.Ready = true
	}

What I suspect found to be happening:
During LB creation, hetznerCluster.Spec.ControlPlaneLoadBalancer.Enabled is true, but hetznerCluster.Status.ControlPlaneLoadBalancer.IPv4 != "<nil>" is not, so control branches to else if hetznerCluster.Spec.ControlPlaneEndpoint != nil which is true because I have a port set in the config. Thus, the LB is treated as disabled and the cluster marked ready so the bootstrap provider does its work based on an incomplete endpoint config.
PR coming up

Having a deeper look at it: You could have also set it through ControlPlaneLoadBalancer, then everything would have worked (I'm rather sure at least).
However, when setting the ControlPlaneEndpoint, we assumed in this one line of code you changed that both host and port are set, which is, of course, wrong. Here, we already handled this use case correctly.


Set background color for company template

Noticed that the template background for company-mode is not set.
Not completely sure if this is the correct color to use though.
Before:

After:

Thanks looks fine. I've never used company template so I did not notice


Changes the large beaker size to 10.

Fixes  #11109
Changelog

:cl:

changes: sets large beaker size to 10

I've edited the description of your issue to include "Fixes  #11109". That way if this PR is merged, that issue will automatically be closed.

This breaks beaker boxes since they now don't have the capacity to hold 3 small + 3 large beakers. We really need a test for this...

we actually do have a test for that, however

uhhhhh

How is adding a single YAML value causing the tests to run infinitely

https://discord.com/channels/310555209753690112/900426319433728030/1018900580984430633 this maybe

Seems like just one of the tests on my PR (#11145) is also stuck, but the others passed

removed 1 beaker, so it fits now


Not working with Vpn!

In the new, Microsoft Edge browser host files not working at all with <IP_ADDRESS>......worked for <IP_ADDRESS> without VPN.

It works with my VPN (Avast VPN) and Chrome (and Firefox). I can't help with your case unfortunately :/


Organization Affiliation Ready for WG Feedback

Please provide thoughts and comments on the following Common Metric:
https://docs.google.com/document/d/16srWUaScABMXnFoEoKpPhNk2UndRrRvRcaO92-CTOes/edit#
@geekygirldawn @GeorgLink

I made comments on the document.
@alpgarcia, maybe you could help add information on where to find organizational affiliation data in GrimoireLab.

@GeorgLink not sure if you mean at the level of specific components dealing with affiliations information or in terms of final information available.

@alpgarcia I was thinking about the same edits we made to the Evolution WG metrics. The idea would be to add a sample visualization with description on how to create it in GrimoireLab. ... I realize that this Organizational Diversity metric can have many visualizations, but maybe we can limit ourselves to the basic pie-chart that is on the default panel.

@GeorgLink there is a specific dashboard for Affiliations that could help to see this in action for CHAOSS community. The goal of the dashboard is easing affiliations management. At the same time it provides a view of organizational diversity based on a pie and a table, with some extra filters to play around.
So maybe we could mention the panel and explain how to build the pie chart, as we did for Evolution WG metrics?

Thank you @alpgarcia. I tried my hand by adding to directly into the google doc linked in the first issue. What do you think, does this address your suggestion.

I've added a comment directly on the document trying to explain the implications of using all_onion instead of affiliations.

Thank you @alpgarcia we should fix it according to your suggestion. Whoever has time first can pick this one up.

This was done for the release


Fixed #30712 -- Allowed BLOB/TEXT defaults on MySQL 8.0.13+.

Ticket: https://code.djangoproject.com/ticket/30712

@nasirhjafri Thanks for this patch :+1: , however this ticket is not only about changing a feature flag. Please check a ticket description and MySQL documentation:

The BLOB, TEXT, GEOMETRY, and JSON data types can be assigned a default value only if the value is written as an expression, even if the expression value is a literal: ...

Defaults must be wrapped in parentheses for such columns, i.e. changes in schema are also  required. Many tests are falling with this patch on MySQL 8.0, e.g.:

test_get_relations (introspection.tests.IntrospectionTests),
test_add_binaryfield_mediumblob (schema.tests.SchemaTests),
test_add_field_binary (schema.tests.SchemaTests),
test_add_textfield_unhashable_default (schema.tests.SchemaTests).

You can use django-docker-box to check test suite with MySQL 8.0.

buildbot, test on oracle.

buildbot, test on mysql.

buildbot, test on bionic.

@felixxm please review it, I'll squash the commits later.

@nasirhjafri Thanks :+1: I decided to drop release notes, because they can be misleading. It's rather internal feature.

Thanks, @felixxm for reviewing.

Excellent, thanks @nasirhjafri and @felixxm !


GitHub Actions CI workflow

I have not been able to test it because it is a fork and in another branch but I "think" it should work and if it doesn't, it must be something minimal that is missing.
I have replicated the same thing you do in the Azure Pipelines pipeline.
Requires as a minimum that you create the 3 secrets.

I know, give me a bit to make all the changes needed


The Rinkeby faucet site is not working

In README, it asks us to use https://faucet.rinkeby.io/ for getting test ETH.
However, the site keeps showing "faucet offline"
I use https://faucets.chain.link/rinkeby instead and it works fine

Sometimes the rinkeby faucet goes down but should be back up in an hour or two. It's not something that cloudflare controls. if you still need test ether leave a comment with your eth address and I can send you some

@BoxedFruits Thanks for offering the help, I am able to get test ETH from https://faucets.chain.link/rinkeby


HTTP&S

Hi!
What is the recommended way to setup things if I want to run both HTTP and HTTPS servers using the same middleware stack. IOW, is there a way (and which) to compose middleware separately from app?
TIA,
--Vladimir

closing since 3.x handles this better now


Fix css for doc page

Fixes #2663

Well = this fixes one issue, but @jabubake comment about an unsafe script - it doesn't appear to fix.

@jabubake PTAL
@garrettjonesgoogle PTAL

@garrettjonesgoogle Is it ok to merge this, even though travis and AppVeyor are failing (it's just index.html & site.css)


precmd does not redraw when using dircycle

Hi,
I am using the "refine" (previously known as "pure") theme, which features a double-line style prompt, namely, precmd() and PROMPT.
However, this is incompatible with the plugin dircycle, which only do a reset-prompt. The effect of this is that the directory got changed, but the path text, which belongs to the precmd() part, does not update.
Any fix on this?

Try these modifications:
insert-cycledleft () {
        setopt localoptions nopushdminus
        switch-to-dir +1

        local fn
        for fn ($precmd_functions); do $fn; done
        zle reset-prompt
}
insert-cycledright () {
        setopt localoptions nopushdminus
        switch-to-dir -0

        local fn
        for fn ($precmd_functions); do $fn; done
        zle reset-prompt
}

Thanks for the prompt investigation and quick fix.
The fix alone did not solve the issue, which is due to the fact that the refine theme code did not register its precmd function to the precmd_functions list. I had to make the change in the theme as follows:
diff --git a/themes/refined.zsh-theme b/themes/refined.zsh-theme
index 0e5681cc..4fe88c25 100644
--- a/themes/refined.zsh-theme
+++ b/themes/refined.zsh-theme
@@ -69,7 +69,7 @@ preexec() {

 # Output additional information about paths, repos and exec time
 #
-precmd() {
+theme_precmd() {
     vcs_info # Get version control info before we start outputting stuff
     print -P "\n$(repo_information) %F{yellow}$(cmd_exec_time)%f"
 }
@@ -79,6 +79,9 @@ precmd() {
 PROMPT="%(?.%F{magenta}.%F{red})❯%f " # Display a red prompt char on failure
 RPROMPT="%F{8}${SSH_TTY:+%n@%m}%f"    # Display username if connected via SSH

+autoload -U add-zsh-hook
+add-zsh-hook precmd theme_precmd
+
 # ------------------------------------------------------------------------------
 #
 # List of vcs_info format strings:

Anyways, thank you for the fantastic work. And feel free to cherry pick the above code.

Ok, I've changed it to also try precmd if it exists:
insert-cycledleft () {
	setopt localoptions nopushdminus
	switch-to-dir +1

	local fn
	for fn (precmd $precmd_functions); do
		(( $+functions[$fn] )) && $fn
	done
	zle reset-prompt
}

insert-cycledright () {
	setopt localoptions nopushdminus
	switch-to-dir -0

	local fn
	for fn (precmd $precmd_functions); do
		(( $+functions[$fn] )) && $fn
	done
	zle reset-prompt
}

But the refine theme should probably be updated to use $precmd_functions as well.

I've submitted #7161 with the fix

I've verified that the PR fixes the issue. It prints the prompt in a newline but I don't think we can get it better than it is unless we change the precmd function to be a multiline prompt. But that's another topic anyhow.


The CLI of Find accounts you have access to doesn't work.

Regarding "Find accounts you have access to" section, currently the CLI: az billing account list doesn't response enrollmentAccounts information. So the customer is not able to get enrollment account id by following the CLI in this document. Please kindly help to check if the CLI version need to be updated.
Thank you.

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

ID: 0d73f3e0-d3d3-eca9-483f-4a787fa77bb2
Version Independent ID: d4046a56-c05e-e278-382d-2cb26dd5c20f
Content: Programmatically create Azure Enterprise Agreement subscriptions with the latest APIs - Microsoft Cost Management
Content Source: articles/cost-management-billing/manage/programmatically-create-subscription-enterprise-agreement.md
Service: cost-management-billing
Sub-service: billing
GitHub Login: @bandersmsft
Microsoft Alias: banders

@Jenny-Chiu
Thanks for your feedback! We will investigate and update as appropriate.

@Jenny-Chiu To help us better understand your situation, can you confirm that your customer has EA account owner access? Also, can you paste the error message that appears when you try az billing account list here?

Hello Bill,
My account @.***) has EA Account owner, so I can reproduce the issue.
[A close up of a screen  Description automatically generated]
Below is the result when I try "az billing account list". The enrollmentAccounts is null so I can't get the enrollment account ID.
[
{
"accountStatus": "Active",
"accountType": "Enterprise",
"agreementType": "EnterpriseAgreement",
"billingProfiles": {
"hasMoreResults": false,
"value": null
},
"departments": null,
"displayName": "BVT ASMS VSOID#6610# Cust1 (DO NOT USE)",
"enrollmentAccounts": null,
"enrollmentDetails": {
"billingCycle": "Monthly",
"channel": "EaIndirect",
"countryCode": "US ",
"currency": "USD",
"endDate": "2025-08-31T00:00:00+00:00",
"language": "en",
"policies": {
"accountOwnerViewCharges": true,
"departmentAdminViewCharges": true,
"marketplaceEnabled": true,
"reservedInstancesEnabled": false
},
"startDate": "2022-09-01T00:00:00+00:00",
"status": "Active"
},
"hasReadAccess": true,
"id": "/providers/Microsoft.Billing/billingAccounts/8771640",
"name": "8771640",
"notificationEmailAddress": null,
"soldTo": {
"addressLine1": "",
"addressLine2": null,
"addressLine3": null,
"city": null,
"companyName": "BVT ASMS VSOID#6610# Cust1 (DO NOT USE)",
"country": "US ",
"district": null,
"email": null,
"firstName": null,
"lastName": null,
"middleName": null,
"phoneNumber": null,
"postalCode": null,
"region": null
},
"type": "Microsoft.Billing/billingAccounts"
},
{
"accountStatus": "Active",
"accountType": "Individual",
"agreementType": "MicrosoftOnlineServicesProgram",
"billingProfiles": {
"hasMoreResults": false,
"value": null
},
"departments": null,
"displayName": "Jenny",
"enrollmentAccounts": null,
"enrollmentDetails": null,
"hasReadAccess": true,
"id": "/providers/Microsoft.Billing/billingAccounts/68a84207-c84b-44bc-94f8-656fe6295383",
"name": "68a84207-c84b-44bc-94f8-656fe6295383",
"notificationEmailAddress"<EMAIL_ADDRESS>"soldTo": {
"addressLine1": "1 Microsoft Way",
"addressLine2": "",
"addressLine3": "",
"city": "Redmond",
"companyName": "Jenny",
"country": "US",
"district": null,
"email": null,
"firstName": "Jenny",
"lastName": "Ch",
"middleName": "",
"phoneNumber": "",
"postalCode": "98052-8300",
"region": "wa"
},
"type": "Microsoft.Billing/billingAccounts"
}
]
Below is the sample response in document: https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/programmatically-create-subscription-enterprise-agreement?tabs=azure-cli#find-accounts-you-have-access-to
[A screenshot of a computer  Description automatically generated]
The other issue is the RestAPI version. In the same document, the Rest API URI is https://management.azure.com/providers/Microsoft.Billing/billingaccounts/?api-version=2020-05-01. The sample response in the document has enrollmentAccounts information.
[A screenshot of a computer  Description automatically generated]
However, I try the same URI, but there is no enrollmentAccounts information in the response.
[A screenshot of a computer  Description automatically generated]
I try to use other API version: https://management.azure.com/providers/Microsoft.Billing/billingaccounts/?api-version=2022-10-01-privatepreview. The response has enrollmentAccounts information.
[A screenshot of a computer  Description automatically generated]
Hence, could you please also help to update the Rest API URI in the document https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/programmatically-create-subscription-enterprise-agreement?tabs=rest#find-accounts-you-have-access-to?
Thank you.
BR
Jenny
From: Bill Anderson @.>
Sent: Wednesday, January 10, 2024 6:52 AM
To: MicrosoftDocs/azure-docs @.>
Cc: Jenny Chiu @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] The CLI of Find accounts you have access to doesn't work. (Issue #118564)
@Jenny-Chiuhttps://github.com/Jenny-Chiu To help us better understand your situation, can you confirm that your customer has EA account owner access? Also, can you paste the error message that appears when you try az billing account list here?

Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/118564#issuecomment-1883924511, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQI5JJRN5MOARL4QMVH3VGTYNXCX7AVCNFSM6AAAAABBOMJFECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBTHEZDINJRGE.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

#please-close
User is getting direct support from the enginnering team.


Bootstrap modal

Hi,
i try to use it in bootstrap modal page, but that not work.
PS : the modal page is generate with jquery

Please stick to the Issue Template. Create a JSFiddle and describe what you've done as detailed as possible and break your issue down to a minimum. This will help me to resolve it as fast as possible.


Add support for detecting Windows

Currently supported operating systems:

Executor/OS
Supported?
Shell

Docker/Ubuntu
yes
Bash

Docker/Debian
yes
Bash

Docker/Alpine
yes
Bash

macOS
yes
Bash

machine/Ubuntu
yes
Bash

CircleCI has since announced support for Windows: https://circleci.com/build-environments/windows/.
Add the ability to detect and set env var data for Windows machines.

I'll take a crack at this.


Allow buffer reuse for less GC stress

With this addition there is now two ways to reuse the buffer.

Reuse the fflib.Buffer and use the custom encoding. Good for file encoding, etc.
Handing back the byte array after you have finished using it by useing fflib.Pool(bytes). good for webservers where everything is in separate goroutines.

Note that fflib will now require Go 1.3+
Benchmarks on a complex data structure:
enconding/json:	     		37964 ns/op	  34.90 MB/s	    6088 B/op	      27 allocs/op
ffjson/bare	     			17307 ns/op	  76.56 MB/s	    3035 B/op	      24 allocs/op
ffjson/pool	    			13231 ns/op	 100.14 MB/s	     664 B/op	      22 allocs/op
ffjson/reuse-buffer	    	12716 ns/op	 104.19 MB/s	     584 B/op	      20 allocs/op

hmm, so the caller using json.Marshal needs to use fflib.Pool(mybuf) when they are done... hrm.

I've played around with this in a branch.
For me, running the go.stripe serialization benchmark, which doesn't add re-use yet, I get the following:
master:
BenchmarkFFMarshalJSON	 5000000	      7048 ns/op	 184.43 MB/s	    4723 B/op	      17 allocs/op

klauspost-reuse-buffer:
BenchmarkFFMarshalJSON	 5000000	      7609 ns/op	 170.83 MB/s	    5716 B/op	      19 allocs/op

So having the Buffer use sync.Pool creates 2 more allocs, and a ~7.4% drop in performance -- if byte buffers are not put back into it.  Right now I'm not a fan of merging it given for the "drop in replacement" case, we are getting slower.  If we can figure out a way to keep the drop in performance the same, and maybe have an opt-in interface that is even faster, then I'm :+1:

That is very weird. I don't see any way this should give additional allocations, and my numbers are very different:
>go test -benchmem -bench FFMarshal
BenchmarkFFMarshalJSON    100000             14690 ns/op          88.49 MB/s    5727 B/op         19 allocs/op
BenchmarkFFMarshalJSONReuse       200000              7335 ns/op         177.22MB/s         786 B/op         15 allocs/op

An almost 2x increase just by pooling the buffer.
This is the "re-use"  test I am using:
func BenchmarkFFMarshalJSONReuse(b *testing.B) {
	cust := ff.NewCustomer()

	buf, err := cust.MarshalJSON()
	if err != nil {
		b.Fatalf("Marshal: %v", err)
	}
	b.SetBytes(int64(len(buf)))

	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		buf, err := cust.MarshalJSON()
		if err != nil {
			b.Fatalf("Marshal: %v", err)
		}
		fflib.Pool(buf)
	}
}

The other benchmark is the same as the existing.

@klauspost I test this by actually going back to master on my branch -- I'm trying to isolate the effect of the actual changes in buffer.go

'master' is showing the same base performance for me ~88MB/s. Strange.

@klauspost are you on go 1.4?  My tests above were with 1.3.3 -- I suspect the GC changes in 1.4 change the bottlenecks: https://golang.org/doc/go1.4#runtime

wow yeah, going from 1.3.3 to 1.4.1 on my linux box drops it from ~184 MB/s to 112.14 MB/s.  Brutal.

mostly merged via #101


After second drag of item, it gets deleted from the item-list

First of all: thanks for this amazing library!
I have a weird issue. Everytime i dragged an item the second time, it gets just deleted from the list. I already tried to remove all drag listeners, but this is still happening, so it cant be a problem of my code. Can somebody imagine whats the problem here? I guess its also not a bug, because then it would be already known.
Thanks a lot!

Smae issue here: Angular 1.5.8

Hi @peterugh, thanks for that hint, unfortunately i need the track by $index. Do you assume its a bug in the lib as well?

Same issue here.  Removing track by $index does fix, but like sque89, this is needed functionality.  Thanks!

+1

the trackBy u had to write a custom one and this is documented.

the trackBy u had to write a custom one and this is documented.

I had the same issue but managed to fix it by removing trackBy $index.
@a5hik However could you please tell where this is documented?


Remove SVG from HTML mime

from https://github.com/szepeviktor/w3-total-cache-fixed/issues/242
The issue:

Right now, svg files have the same cache settings as html files for max-age. Strangely expiry is that of image files.
svg fonts are no longer in use but svg's usage is rising both for images and for emoji. (Example usage: self-hosting Twemoji).
So I think it makes sense to make the cache setting for emoji files the same as image files.

The fix:

I believe the problem (and solution) revolves aorund inc/mime/html.php. I notice: 'svg|svgz' => 'image/svg+xml', which is causing svg (and svgz) to appear in htaccess twice..one using html's expires/max-age and another (lower in the htaccess) for "Media & Other files" expires/max-age. Seems one just has to strip out that line from the html.php to fix the problem. The same is true for rtf and rtx.

Even with this tweak I was getting max-age=0, but I was able to sort that out by removing svg from other_compression?


ValueError: 0 is not a valid ess_mode

Tks again for all the work
i removed the integration, reload the new HACS and reinstall the integration.
=============================================
Logger: homeassistant.components.select
Source: custom_components/victron/select.py:127
Integration: Select (documentation, issues)
First occurred: 08:25:21 (2 occurrences)
Last logged: 08:25:21
Error adding entities for domain select with platform victron
Error while setting up victron platform for select
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 442, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 717, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 814, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 566, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 607, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 572, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/select/init.py", line 97, in state
if self.current_option is None or self.current_option not in self.options:
File "/config/custom_components/victron/select.py", line 127, in current_option
return  self.description.options(self.description.value_fn(self.coordinator.processed_data(), self.description.slave, self.description.key)).name
File "/usr/local/lib/python3.10/enum.py", line 385, in call
return cls.new(cls, value)
File "/usr/local/lib/python3.10/enum.py", line 710, in new
raise ve_exc
ValueError: 0 is not a valid ess_mode

same error too -> VenusOS 2.93

This is another instance of the victron modbus documentation not matching the real world output of the modbus server.
Valid outputs (according to the latest released modbus spec) are:
1=ESS with Phase Compensation;2=ESS without phase compensation;3=Disabled/External Control

Hello @Next9999 and @huganega,
Would it be possible for you to report the state of ess (on the GX device) when ess mode 0 is returned?
So that we can add it as an state to the integration?

Is this list, extracted from the current Victron-Nodered Node not
complete? At least, I have never seen a mismatch on the GX.

Value types
0 - Unused, BL disabled
1 - Restarting
2 - Self-consumption
3 - Self-consumption
4 - Self-consumption
5 - Discharge disabled
6 - Force charge
7 - Sustain
8 - Low Soc Recharge
9 - Keep batteries charged
10 - BL Disabled
11 - BL Disabled (Low SoC)
12 - BL Disabled (Low SOC recharge)

Hello @pos-ei-don,
Unfortunately these values are the values for the settings_ess_batterylife_state register, not the settings_ess_mode register

The issue has been shipped in the latest release (v0.3.0) closing issue as resolved.
Feel free to re-open if the issue persists with the v0.3.0 release


subscription-stream-list: Align privacy icon with channel name

This update fixes multiple alignment issues related to the icon and channel title. It resolves misalignments not only between the icon and the channel title but also among the icon + channel title, and unsubscribe button.
Icon Alignment: Adjusted the positioning of the icon within its inner container and ensured that the icon and channel title are aligned properly within their shared container.
Subscription Alignment: Fixed misalignments between remove.subscription and subscription_list_stream, aligning these elements within their parent row container.
Fixes: #31521

**Screenshots and screen captures:**
Before and After without unsubscribe button:

Before and After with unsubscribe button:

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[x] Explains differences from previous plans (e.g., issue description).
[ ] Highlights technical choices and bugs encountered.
[ ] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[x] Each commit is a coherent idea.
[x] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[x] Responsiveness and internationalization.
[ ] Strings and tooltips.
[ ] End-to-end functionality of buttons, interactions and flows.
[ ] Corner cases, error conditions, and easily imagined bugs.

Thanks for the fix!

Thank you for the feedback, I will fix it this week!

Sorry for delay, but have now updated my commit messages @prakhar1144


Poloniex error 429: Too Many Requests.

Hello,
I had a lot of "Poloniex error 429: Too Many Requests." errors during the 2 last days.
After restarting the bot, this error temporary disappeared but I wasn't constantly monitoring papertrail.
Now I'm seeing the following error:
notice: returnOpenLoanOffers: Poloniex error 429: Too Many Requests. This IP has been temporarily throttled. Please ensure your requests are valid and try again in one minute.
So I've stopped the bot and I'll restart it a bit later. Is there a way I could avoid this kind of issue? Doesn't always happen, but when it does, if there is no manual restart, the bot will keep spamming the poloniex API and the API will keep returning this error.
I don't know if there is something we can do about it since it's on the poloniex API side. Maybe a count on this error 429 and if there are more than X in a row, slow down the calls?
Regards,
Edit : I've changed my API key and now I see a lot of "Loan returned" but 0 offer, that's very weird. Especially with holding time > 48h, since all loans are supposed to be 2 days or less.
https://goo.gl/9Mus1j

The bot gets its information from the  safe-hollows.crypto.zone site which doesn't seem to be working at the moment.
http://pho.to/AhICW

Oh ok, that's why the bot is sending incorrect queries to the poloniex API, thank you.

np :)
I would check again when the safe-hollows.crypto.zone site is up and working again.

@Shoananas, the bot complies with Poloniex API calls limit.
Here is the response from Poloniex support regarding the error "Too many requests. Please try again in a moment."

"As a measure against the DDOS attacks we had to apply different rate limits temporarily. There hasn't been a particular specification of how this rate limit works as it was a temporary measure and was still being tweaked. This restriction should be lifted now.
I am sorry for any inconvenience caused."
I don't see any action needed from the bot side here.

It looks that Poloniex at times and temporarily introduces additional limits.
I think there is no action needed from the bot side here, since these additional measures poloniex is using are temporary, and the bot complies with the API limits required by Poloniex.
As for the error 429: Too Many Requests. This IP has been temporarily throttled. Please ensure your requests are valid and try again in one minute., the bot handles this one and suspends any API activity for 1 minute as requested by Poloniex server.
Please let me know if you have additional questions or comments.

Due to very frequent Poloniex errors "429: Too Many Requests", bot has been updated to v0.8.1 which suspends API activity for 1 minute when this error is returned.

I just updated to 0.8.1 and there seems to be no backoff for me. I keep getting the HTML log over and over again.

Can you provide an excerpt from the console log, please

Sure, here it is in its entirety: https://pastebin.com/WZRc1bhp

IT looks that after you have updated to 0.8.1 you have not updated the dependencies.
Please stop the but run npm update and start again (see step 3 here )
Pls let me know the result

@dutu Ah, you're right. Just updated now, let's see how she spins.

Thanks dutu, testing now.

@dutu Works like a charm, I think.
notice: returnActiveLoans: Poloniex error 429: Too Many Requests
info: API activity stopped for 1 minute
info: API activity resumed
notice: returnActiveLoans: Poloniex error 429: Too Many Requests
info: API activity stopped for 1 minute
info: API activity resumed

All looking good here. Good work :)
Thanks again

To minimize error 429 (until Poloniex changes something else on their API without notification :)), you can upgrade to v0.8.2
(https://github.com/dutu/poloniex-api-node/issues/14)


Implement GHA workflow to build the Godot SDK

This PR adds CI and a workflow to build and package GDExtension libraries in a ready-to-test form. CI is executed on push and PR.
GHA files:

ci.yml: CI workflow.
build_gdextension.yml: Build workflow.

Notes:

I will add testing in a separate PR after both this and #19 are merged.
Waiting for #25 and #26 before proceeding with this one.

Resolves #16

Looks like the build crashes on launch: #24
Going to investigate it, marking this one as draft for now.

Looks like the build crashes on launch: #24 Going to investigate it, marking this one as draft for now.
EDIT: I'll wait for #25 and #26 before proceeding with this one.

3 PRs merged


Use yarn for consistency

Just to be consistent with how it's done in /extensions. @aeschli if you want I can do it for HTML too.

Covered by #80.


[ci] Improve Travis build

Switch to rust-travis-build-environment
pull-git-dependencies in a travis_wait to prevent build timeouts

closing since we're switching to gitlab now.


fix #84

I am trying to fix the problem in #84, please check.

This PR will cause errors, please do not merge.

This PR will cause errors, please do not merge.


[release-1.8] Update service-apis to the official v1alpha1 release

This is an automated cherry-pick of #29030

@istio-testing: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-telemetry-k8s-tests_istio_release-1.8
79d53e708a0ae9fa9c7d9d430fd83c974056d05c
link
/test integ-telemetry-k8s-tests_istio_release-1.8

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@istio-testing: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-telemetry-k8s-tests_istio_release-1.8
79d53e708a0ae9fa9c7d9d430fd83c974056d05c
link
/test integ-telemetry-k8s-tests_istio_release-1.8

integ-multicluster-k8s-tests_istio_release-1.8
79d53e708a0ae9fa9c7d9d430fd83c974056d05c
link
/test integ-multicluster-k8s-tests_istio_release-1.8

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest
@istio/release-managers-1-8
Motivation for this is to allow users to try out the new APIs. We were ~1 week behind picking up the official v1alpha1 release, so this is mostly just bumping our testing to the official release and not changing implementation


Will specreduce require IRAF to be installed?

I see pyraf dependencies in the pyspectrograph core - will this reduction package require IRAF to run?

Is there still pyraf dependancies in pyspectrograph?  I thought I'd remove all of them although I may have missed some.
But no, the plan is for this to be 100% pyraf free

Excellent!
There's a few from pyraf import iraf lines in pyspectrograph, which is just what caught my eye

Ah just looked at it, and it is in the stuff under identify/.   That's really just there for historical reasons, but I'll add a note to remove it
It's actually all the stuff that I have recently ripped out of pysalt and started to make into specreduce with all the pyraf/iraf requirements removed.
So installing pyspectrograph should not requiring having pyraf installed at all.  If you run into any problems with that, let me know though and I'll make sure it is removed fully from there.


53 rappresentazione campagne

Description
Create, Read, Update on campaigns
Related Issues

Fixes #53

Checklist

[x] I have read the CONTRIBUTING document.
[x] My code follows the code style of this project.
[] I have added tests to cover my changes.
[] All new and existing tests passed.

Screenshots (if applicable)
https://www.loom.com/share/08bc712d586e467bace6b9e53635303b?sid=07b4e93c-e857-42ec-9d70-c6a4376cb903
https://www.loom.com/share/97165a7a1a7f40ac9053a23bbffb7b28?sid=759be58b-a7be-4de8-9021-f30beb11cd02
Additional notes
Without delete i cannot do tests.

messa in draft, provo a risolvere i test.


test NUTS checkpointing/state/history

Description:
NUTS does not pass history, state and checkpointing tests. We want to fix this.
DoD:

[x] Checkpointing, state, and history tests pass successfully for NUTS
[x] Agreement on what constitutes state for NUTS is made (implied by the review and based on some discussions)
[x] Any remaining issues (such as what is pointed out in the original description below) is delegated to other issues (comment by @amal-ghamdi: issue #537 is added and the test below is redundant I believe since we checked the checkpointing)
[x] PR reviewed and merged

Original issue:

Include testing case:

warmup(Ns)
warmup(Ns)

is equivalent to
warmup(2*Ns)

Furthermore, consider getting rid of the _pre_warmup and _pre_sample methods. See Discussion in #408

@jakobsj , can you check the DoD, please? Thanks!

@amal-ghamdi DoD approved!


Unnecessary "ANN101 Missing type annotation for self in method"

Given the following code contained in my_file.py:
class MyClass:
    def do_something(self, my_float) -> int:
        return int(my_float)

running "ruff check --select ANN ./my_file.py" gives the following output:
test_ann101.py:2:22: ANN101 Missing type annotation for self in method
Found 1 error.
This is useless in most cases, in fact ruff extension for vscode does not show this error.

ANN101 has been deprecated, perhaps you're using a different version of Ruff in your command line?

Hey, thanks for opening this issue. As mentioned by @trag1c the rule has been deprecated and will be removed in a future release.

in fact ruff extension for vscode does not show this error.

It must be that you're running a different Ruff version via the command-line and in VS Code. In case you need to use an old Ruff version, you can also ignore the rule with:
[tool.ruff.lint]
ignore = ["ANN101"]


Add option to always use in-memory store, when available

This is really helpful for re-using HTTP requests over the same instance of the program execution.

No longer relevant, should create a wrapper catbox engine for this sort of functionality (E.g. catbox-lru).


Violate witx spec while executing the given wasm file

Description
wasm-micro-runtime may not be compliant with the witx spec while executing the given test case.
Actually, the given test case was simply mutated a wasm file, which was obtained by compiling the C program generated with Csmith using the Emscripten compiler (Emcc). You can convert wasm file to wat format with wabt and find the mutation operation in line 9974(replace i32.sub with i32.div_s). Releated files is here.
Current State
$ iwasm mutated.wasm
checksum = DAFC642C

Expected
As mentioned above, the mutation there is changing a subtraction of the stack pointer into a division of the stack pointer which means that the wasm module's in-memory shadow-stack pointer is getting corrupted. Notably what this causes is the stack to get misaligned.
witx spec says misaligned pointers ... shall trap. It seems that WAMR needs to return a trap while meeting this situatuion, but actually it correctly output the checksum result and did not trigger any abnormal behavior.
Environment

Hardware Architecture: x86_64
Operating system: Ubuntu 22.04
Tools Version: iwasm 1.2.2

@luxinyi0105 Not sure what the misaligned pointers means? The witx spec that you mentioned seems to use pointer keyword to describe the function arguments:
   (param $in (@witx const_pointer $subscription))
   (param $out (@witx pointer $event))

But the wasm/wast file you uploaded doesn't use pointer keyword in the function declaration:
  (func (;23;) (type 1) (param i32 i32 i32) (result i32)
    (local i32 i32 i32 i32 i32 i32 i32)
    global.get 0
    i32.const 32
    i32.div_s

In fact, it isn't supported by WAMR even it is added. The running result is same with several other runtimes, e.g. wasmer and wavm.

In fact, it isn't supported by WAMR even it is added. The running result is same with several other runtimes, e.g. wasmer and wavm.

Thanks for your reply. But while execute the given testcase with wasmer, you will find "Aborted (core dumped)". In this sense, the running result is not the same.
$ wasmer mutated.wasm
checksum = DAFC642C
thread '<unnamed>' panicked at 'misaligned pointer dereference: address must be a multiple of 0x4 but is 0x7f36643857f9', /home/oscar/Software/wasmer/lib/api/src/sys/mem_access.rs:63:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
Aborted (core dumped)

We believe that wasmer's output is not entirely correct, it would be better to trigger wasmer's internal exception handling structures and output "Runtime Error" instead of the current "Aborted". But it at least illustrates the problem of misaligned pointer in the given testcase, while WAMR does not.
Due to a lack of professional understanding, I am not able to answer your question about misaligned pointers, perhaps wasmer's error message can inspire you.


"Address already in use (os error 98)" -> "Authentication is not possible."

Due Diligence

[X] I have done my due diligence

What can we help you with?
After i updated /etc/raspotify/conf (uncommented LIBRESPOT_VOLUME_CTRL= to linear) and restarted (sudo systemctl start raspotify), raspotify started crashing: Not available on form Spotify apps on the network (laptop, phone) and ps ax | grep raspotify only lists /bin/bash /usr/bin/raspotify-crash-report-generator.sh.

The error message (see below) is "Discovery is unavailable and no credentials provided. Authentication is not possible."
But I think this is not the mdns issue from #571, as i don't see that libmdns panic (see below)
I undid my change to /etc/raspotify/conf, but raspotify still crashes.
I use the same router as before.
I upgraded to bullseye some 3 weeks ago. In the first days after the upgrade i've restarted raspotify a lot to toy with the settings. The last couple weeks not so much, it's just been running.
About a week ago i replaced the DAC with a new one. Both are USB devices, the new one was picked up instantly. I don't think it's related, as the error message is about "authentication".
I've rebooted the pi, to no avail

My question is, how could i get more info on what is going wrong here?
Some information (logs, software used, similar issues here) is below.
$ tail -f /var/log/syslog
Jan 25 22:00:24 raspberrypi librespot[6579]: [2023-01-25T21:00:24Z WARN  librespot] Without a `--cache` / `-c` path, and/or if the `--disable-audio-cache` / `-G` flag is set, `--cache-size-limit` / `-M` has no effect.
Jan 25 22:00:24 raspberrypi librespot[6579]: [2023-01-25T21:00:24Z WARN  librespot] Could not initialise discovery: Setting up dns-sd failed: Address already in use (os error 98)
Jan 25 22:00:24 raspberrypi librespot[6579]: [2023-01-25T21:00:24Z ERROR librespot] Discovery is unavailable and no credentials provided. Authentication is not possible.
Jan 25 22:00:24 raspberrypi systemd[1]: raspotify.service: Main process exited, code=exited, status=1/FAILURE
Jan 25 22:00:24 raspberrypi systemd[1]: raspotify.service: Failed with result 'exit-code'.
Jan 25 22:00:24 raspberrypi systemd[1]: raspotify.service: Triggering OnFailure= dependencies.
Jan 25 22:00:25 raspberrypi systemd[1]: Starting Raspotify Crash Report Generator...
Jan 25 22:00:36 raspberrypi systemd[1]: Started Raspotify (Spotify Connect Client).
Jan 25 22:00:36 raspberrypi systemd[1]: raspotify-crash-report-generator.service: Succeeded.
Jan 25 22:00:36 raspberrypi systemd[1]: Finished Raspotify Crash Report Generator.
Jan 25 22:00:36 raspberrypi systemd[1]: raspotify-crash-report-generator.service: Consumed 1.551s CPU time.

pi@raspberrypi:~ $ librespot -v
[2023-01-25T21:03:13Z INFO  librespot] librespot 0.4.2 a56a567 (Built on 2023-01-23, Build ID: EuYVFs2i, Profile: release)
[2023-01-25T21:03:13Z TRACE librespot] Command line argument(s):
[2023-01-25T21:03:13Z TRACE librespot] 		v
[2023-01-25T21:03:13Z DEBUG librespot_discovery::server] Zeroconf server listening on <IP_ADDRESS>:36017
[2023-01-25T21:03:13Z DEBUG librespot] System uptime: 1610 secs
[2023-01-25T21:03:13Z DEBUG librespot] System uptime >= 60 secs, not retrying to initialise discovery
[2023-01-25T21:03:13Z WARN  librespot] Could not initialise discovery: Setting up dns-sd failed: Address already in use (os error 98)
[2023-01-25T21:03:13Z ERROR librespot] Discovery is unavailable and no credentials provided. Authentication is not possible.

pi@raspberrypi:~ $ journalctl
...
Jan 25 22:01:11 raspberrypi librespot[8216]: [2023-01-25T21:01:11Z WARN  librespot] Without a `--cache` / `-c` path, and/or if the `--disable-audio-cache` / `-G` flag is set, `--cache-size-limit` / `-M` has no >
Jan 25 22:01:11 raspberrypi librespot[8216]: [2023-01-25T21:01:11Z WARN  librespot] Could not initialise discovery: Setting up dns-sd failed: Address already in use (os error 98)
Jan 25 22:01:11 raspberrypi librespot[8216]: [2023-01-25T21:01:11Z ERROR librespot] Discovery is unavailable and no credentials provided. Authentication is not possible.
Jan 25 22:01:11 raspberrypi systemd[1]: raspotify.service: Main process exited, code=exited, status=1/FAILURE
Jan 25 22:01:11 raspberrypi systemd[1]: raspotify.service: Failed with result 'exit-code'.
Jan 25 22:01:11 raspberrypi systemd[1]: raspotify.service: Triggering OnFailure= dependencies.
Jan 25 22:01:11 raspberrypi systemd[1]: Starting Raspotify Crash Report Generator...
Jan 25 22:01:12 raspberrypi systemd[1]: raspotify-crash-report-generator.service: Succeeded.
Jan 25 22:01:12 raspberrypi systemd[1]: Finished Raspotify Crash Report Generator.
Jan 25 22:01:12 raspberrypi systemd[1]: raspotify-crash-report-generator.service: Consumed 1.509s CPU time.

(Interestingly, but off topic: i did see a libmdns issue here, last one was from January 8th, this must've been the day i upgraded to bullseye: Jan 08 22:54:16 raspberrypi librespot[12842]: [2023-01-08T21:54:16Z WARN  libmdns::fsm] error sending packet Os { code: 99, kind: AddrNotAvailable, message: "Cannot assign requested address" } )
I didn't see any issue on that "address in use" here: https://github.com/dtcooper/raspotify/issues?q=is%3Aissue+"Address+already+in+use"
There are some other issues for "Discovery is unavailable and no credentials provided. Authentication is not possible": https://github.com/dtcooper/raspotify/issues?q=is%3Aissue+"Discovery+is+unavailable+and+no+credentials+provided.+Authentication+is+not+possible."
One of those i've already mentioned, the others don't seem to relate to this issue (but i may be wrong). I did try to include answers to some of the questions in those issues in the information presented here.
I'm running a standard raspotify on bullseye on a Pi 3. It's running without a monitor (only SSH access), although lxde is installed (i think from when i first set it up a year or two ago).
pi@raspberrypi:~ $ sudo apt show raspotify
Package: raspotify
Version: 0.43.26~librespot.v0.4.2-a56a567
...

pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
...

pi@raspberrypi:~ $ cat /proc/cpuinfo
processor	: 0
model name	: ARMv7 Processor rev 4 (v7l)
...
Hardware	: BCM2835
Revision	: a02082
Serial		: 00000000e6a3a0de
Model		: Raspberry Pi 3 Model B Rev 1.2

The error comes from librespot.
I see no issue for "Address already in use"  in there: https://github.com/librespot-org/librespot/issues?q=is%3Aissue+"Address+already+in+use"+, maybe i should file this one there.
I tried entering a value for LIBRESPOT_ZEROCONF_PORT which is currently commented out, but to no avail.
For now, disabling zeroconf discovery mode wit LIBRESPOT_DISABLE_DISCOVERY= is good enough for me.

Just did a complete fresh install of Raspberry Pi OS Lite (no desktop). It stil; installs avahi-daemon:
pi@raspberrypi:~ $ sudo apt list avahi-daemon
Listing... Done
avahi-daemon/stable,now 0.8-5+deb11u1 armhf [installed]

but now it's not a problem. Strange.


Change the default threadpool size

ack, but please change the commit message to include that it's just documentation


Neo4j Connector

This feature requests serves as a central place to discuss development and progress for the Neo4j connector.

Edges with direction are supported in neo4j. Use case for what I'm doing is the following:
Application pushes and pulls data from nodes, connected by edges. Looks for connected nodes on edges to see if things are related as well as to a certain depth. Also supported is pulling all of N type nodes, or E type edges. Cypher, mutations, and subscriptions would all be useful.
That's pretty much all I need. Read/Write including seeing what nodes and edges are related to n depth.
Pretty sure @jexp is right on the ball with this.

Hypothetically, if I wanted to contribute to help get this done faster, what would be required/desired?

I am willing to help on this too, any clue when the development might start? what is still needed?

I'm really waiting for Neo4j support! GraphQL + Graph DB's is like a dream comes true! How far is the process on this?

I'm really waiting for Neo4j support! GraphQL + Graph DB's is like a dream comes true!

If all databases are reduced to a lowest common denominator and you are unable to use Cypher – what's the point? Really, I'm asking with no irony, – what's the difference between Neo4j and AnySQL in this case?

How is going this?
I want to help

Ping

Ping again

+1

+1

+1

Any updates on this?

Any update? Any idea around when the connector could be ready?
Q2 2019, 2020... 2030 ? :)

+1

Would use

I've just stumbled on you guys and this aspect alone has sold me. Looking forward to seeing it as a reality.

:1st_place_medal:


Fix wrongly register PNA as ENA

Resolves: https://linear.app/snowfork/issue/SNO-1236

Thanks Ron, please also backport this to the V2 branch on Monday.

backport this to the V2 branch

Well, the check is already enforced in V2 https://github.com/Snowfork/snowbridge/blob/d77abeef882ff4217d6d52dd9790986a5ef5f2de/contracts/src/Functions.sol#L136-L138


Lots of errors, when installing probably my fault!

Hi there when I try to run the:
export GORKVERSION=$(wget -q -O - https://api.github.com/repos/owulveryck/goMarkableStream/releases/latest | grep tag_name | awk -F\" '{print $4}') wget -q -O - https://github.com/owulveryck/goMarkableStream/releases/download/$GORKVERSION/goMarkableStream_${GORKVERSION//v}_linux_arm.tar.gz | tar xzvf - -O goMarkableStream_${GORKVERSION//v}_linux_arm/goMarkableStream > goMarkableStream chmod +x goMarkableStream ./goMarkableStream
I get these errors:
wget: note: TLS certificate validation not implemented wget: TLS error from peer (alert code 80): 80 wget: error getting response: Connection reset by peer -sh: export: -q': not a valid identifier
-sh: export: -O': not a valid identifier -sh: export: -': not a valid identifier
-sh: export: https://github.com/owulveryck/goMarkableStream/releases/download//goMarkableStream__linux_arm.tar.gz': not a valid identifier tar: invalid magic tar: short read tar: goMarkableStream__linux_arm/goMarkableStream: not found in archive
i followed the SSH access guide to get into the command line of the remarkable 2

Hello,
from what I see, you are copy/pasting all commands in a single line which is wrong.
try this, line by line

export GORKVERSION=$(wget -q -O - https://api.github.com/repos/owulveryck/goMarkableStream/releases/latest | grep tag_name | awk -F\" '{print $4}')
wget -q -O - https://github.com/owulveryck/goMarkableStream/releases/download/$GORKVERSION/goMarkableStream_${GORKVERSION//v}_linux_arm.tar.gz | tar xzvf - -O goMarkableStream_${GORKVERSION//v}_linux_arm/goMarkableStream > goMarkableStream
chmod +x goMarkableStream ./goMarkableStream

Hi there,
TIve tried running it line by line but I am still getting errors:
whenI run the first one, I get this error:
wget: note: TLS certificate validation not implemented
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer
When I run the second one I also get errors
wget: note: TLS certificate validation not implemented
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer
tar: invalid magic
tar: short read
tar: goMarkableStream__linux_arm/goMarkableStream: not found in archive
when I run the 3rd one I get nothing
On Sat, Jan 13, 2024 at 9:11 AM Olivier Wulveryck @.***>
wrote:

Hello,
from what I see, you are copy/pasting all commands in a single line which
is wrong.
try this, line by line

export GORKVERSION=$(wget -q -O -
https://api.github.com/repos/owulveryck/goMarkableStream/releases/latest
| grep tag_name | awk -F" '{print $4}')
wget -q -O -
https://github.com/owulveryck/goMarkableStream/releases/download/$GORKVERSION/goMarkableStream_${GORKVERSION//v}_linux_arm.tar.gz
| tar xzvf - -O
goMarkableStream_${GORKVERSION//v}_linux_arm/goMarkableStream >
goMarkableStream
chmod +x goMarkableStream ./goMarkableStream

—
Reply to this email directly, view it on GitHub
https://github.com/owulveryck/goMarkableStream/issues/102#issuecomment-1890389681,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALQ53PE4PRPEKSZFRR6IROTYOJFSLAVCNFSM6AAAAABBVYVYL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQGM4DSNRYGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Same problem for me, also while adding comments single lined.

Sorry for the delay; I will try to have a look this week end

I had the same errors so I simply ran the commands locally to get the executable and then copied it to the remarkable using scp goMarkableStream root@remarkable:

Hi all,
a quick workaround was downloading the binary on my computer and then copying it over to the remarkable. That is: on your linux PC you do:
export GORKVERSION=$(wget -q -O - https://api.github.com/repos/owulveryck/goMarkableStream/releases/latest | grep tag_name | awk -F\" '{print $4}')
wget -q -O - https://github.com/owulveryck/goMarkableStream/releases/download/$GORKVERSION/goMarkableStream_${GORKVERSION//v}_linux_arm.tar.gz | tar xzvf - -O goMarkableStream_${GORKVERSION//v}_linux_arm/goMarkableStream > goMarkableStream
chmod +x goMarkableStream
scp goMarkableStream<EMAIL_ADDRESS>

worked now, but adress says remarkble didnt accept connection via remarkable.local.address:2001


Error using Azure Template

I'm trying to deploy Cloud Foundry. I'm on the step where I'm creating Azure resources using ARM templates. I click on the Deploy To Azure link on this page.
Once I fill in the parameters, it runs for a while, and then errors on the initdevbox step with the below error:
{
   "status":"Failed",
   "error":{
      "code":"ResourceDeploymentFailure",
      "message":"The resource operation completed with terminal provisioning state 'Failed'.",
      "details":[
         {
            "code":"VMExtensionProvisioningError",
            "message":"VM has reported a failure when processing extension 'initdevbox'. Error message: \"Script returned an error.\n---stdout---\n2015/11/10 18:08:35 }\n\n---errout---\nw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 3721 (3.6K) [text/plain]\nSaving to: 'bosh.yml'\n\n     0K ...                                                   100%  670M=0s\n\n2015-11-10 18:08:34 (670 MB/s) - 'bosh.yml' saved [3721/3721]\n\n--2015-11-10 18:08:34--  https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/bosh-setup//setup_dns.py\nResolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>\nConnecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 7406 (7.2K) [text/plain]\nSaving to: 'setup_dns.py'\n\n     0K .......                                               100% 1.25G=0s\n\n2015-11-10 18:08:34 (1.25 GB/s) - 'setup_dns.py' saved [7406/7406]\n\n--2015-11-10 18:08:34--  https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/bosh-setup//create_cert.sh\nResolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>\nConnecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 204 [text/plain]\nSaving to: 'create_cert.sh'\n\n     0K                                                       100% 40.5M=0s\n\n2015-11-10 18:08:34 (40.5 MB/s) - 'create_cert.sh' saved [204/204]\n\n--2015-11-10 18:08:34--  https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/bosh-setup//setup_devbox.py\nResolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>\nConnecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 4034 (3.9K) [text/plain]\nSaving to: 'setup_devbox.py'\n\n     0K ...                                                   100%  726M=0s\n\n2015-11-10 18:08:34 (726 MB/s) - 'setup_devbox.py' saved [4034/4034]\n\n--2015-11-10 18:08:34--  https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/bosh-setup//init.sh\nResolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>\nConnecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 1024 (1.0K) [text/plain]\nSaving to: 'init.sh'\n\n     0K .                                                     100%  212M=0s\n\n2015-11-10 18:08:34 (212 MB/s) - 'init.sh' saved [1024/1024]\n\n--2015-11-10 18:08:34--  https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/bosh-setup//deploy_bosh.sh\nResolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>\nConnecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 110 [text/plain]\nSaving to: 'deploy_bosh.sh'\n\n     0K                                                       100% 25.0M=0s\n\n2015-11-10 18:08:34 (25.0 MB/s) - 'deploy_bosh.sh' saved [110/110]\n\n--2015-11-10 18:08:34--  https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/bosh-setup//98-msft-love-cf\nResolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>\nConnecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 407 [text/plain]\nSaving to: '98-msft-love-cf'\n\n     0K                                                       100% 86.3M=0s\n\n2015-11-10 18:08:35 (86.3 MB/s) - '98-msft-love-cf' saved [407/407]\n\nTraceback (most recent call last):\n  File \"setup_devbox.py\", line 31, in <module>\n    blob_service.create_container('bosh')\n  File \"/var/lib/waagent/Microsoft.OSTCExtensions.CustomScriptForLinux-<IP_ADDRESS>/azure/storage/blobservice.py\", line 190, in create_container\n    _dont_fail_on_exist(ex)\n  File \"/var/lib/waagent/Microsoft.OSTCExtensions.CustomScriptForLinux-<IP_ADDRESS>/azure/__init__.py\", line 891, in _dont_fail_on_exist\n    raise error\nazure.WindowsAzureError\n\n\"."
         }
      ]
   }
}

Is there something wrong with the template or might it be something I'm not doing right when setting values for the template?

Hi @cbrianball . Thanks for your feedback.
The initdevbox step threw a WindowsAzureError when it tried to create a container bosh in your storage account.
Could you check your settings for the template, and re-deploy it?
If it does not work for you, please feel free to let us know.

I had tried 2 - 3 times and kept getting the same error. I tried again, but since you pointed out the storage account, I used a different name (this time with all lower case) and it worked.
Clearly I failed to read the description for the storage account name on the page I referenced where it states lower case letters and numbers only.
So to me it seems that Azure should have returned an error when the storage account create request was issued and it shouldn't have even made it as far as it did.
Thanks, I'll close this issue.

Totally agree with you, @cbrianball . I will try to figure out why Azure does not return an error when the storage account name is invalid. Will let you know the result.
Thanks.

I tried deploying pivotal cloud foundry on Azure. After deploying few resources , it failed with an error. I dont see a problem with Storage account as it is created properly.
STATUSConflict
PROVISIONING STATEFailed
TIMESTAMP6/24/2016, 4:24:48 PM
DURATIONPT29M54.6658648S
TYPEMicrosoft.Compute/virtualMachines/extensions
RESOURCE ID/subscriptions/7eab3893-bd71-4690-84a5-47624df0b0e5/resourceGroups/PivotalCloudFoundry/providers/Microsoft.Compute/virtualMachines/myjumpboxnpvfpqoisk5zk/extensions/initdevbox
STATUSMESSAGE{
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "VMExtensionProvisioningError",
"message": "VM has reported a failure when processing extension 'initdevbox'. Error message: "Script returned an error.\n---stdout---\nDownload complete.\nCurrent working dir : /var/lib/waagent/Microsoft.OSTCExtensions.CustomScriptForLinux-<IP_ADDRESS>\nSys.Path: ['/usr/share/python-wheels/setuptools-3.3-py2.py3-none-any.whl', '/usr/share/python-wheels/requests-2.2.1-py2.py3-none-any.whl', '/usr/share/python-wheels/six-1.5.2-py2.py3-none-any.whl', '/usr/share/python-wheels/urllib3-1.7.1-py2.py3-none-any.whl', '/usr/share/python-wheels/colorama-0.2.5-py2.py3-none-any.whl', '/usr/share/python-wheels/pip-1.5.4-py2.py3-none-any.whl', '/usr/share/python-wheels/chardet-2.2.1-py2.py3-none-any.whl', '/usr/share/python-wheels/html5lib-0.999-py2.py3-none-any.whl', '/usr/share/python-wheels/distlib-0.1.8-py2.py3-none-any.whl', '/var/lib/waagent/Microsoft.OSTCExtensions.CustomScriptForLinux-<IP_ADDRESS>/download/0', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '']\n\n---errout---\n\rExtracting templates from packages: 32%\rExtracting templates from packages: 64%\rExtracting templates from packages: 96%\rExtracting templates from packages: 100%\nTraceback (most recent call last):\n  File "./bootstrap.py", line 159, in \n    check_quota(subscription_id, tenant, client_id, client_secret, location, numofcores)\n  File "./bootstrap.py", line 52, in check_quota\n    usage_paged=compute_client.usage.list(location).usages\n  File "/var/lib/waagent/Microsoft.OSTCExtensions.CustomScriptForLinux-<IP_ADDRESS>/azure/mgmt/compute/computemanagement.py", line 3889, in list\n    raise error\nazure.common.AzureHttpError: {"error":{"code":"AuthorizationFailed","message":"The client '1f5db171-dcf1-4d63-9fed-131e165ecefa' with object id '1f5db171-dcf1-4d63-9fed-131e165ecefa' does not have authorization to perform action 'Microsoft.Compute/locations/usages/read' over scope '/subscriptions/7eab3893-bd71-4690-84a5-47624df0b0e5'."}}\n\n"."
}
]
}
}
RESOURCEmyjumpboxnpvfpqoisk5zk/initdevbox
Thanks in advance

@vcherukuri
Your issue is about the authorization of your service principal. You need to check the authorization. Do you assign the right role to your service principal?
{\"error\":{\"code\":\"AuthorizationFailed\",\"message\":\"The client '1f5db171-dcf1-4d63-9fed-131e165ecefa' with object id '1f5db171-dcf1-4d63-9fed-131e165ecefa' does not have authorization to perform action 'Microsoft.Compute/locations/usages/read' over scope '/subscriptions/7eab3893-bd71-4690-84a5-47624df0b0e5'.\"}


Update Stardust Per Hour

Trying to rebase... im sorry if Im doing something wrong

No need to close and open PR's you can just add to this PR


Does this partyRandomizer also work for  EmeraldRomHacks

Does the checksum need to match, or could this also be done for romhacks, which aren't to different from the original emerald rom ?

The checksum must match (basically, it's technically possible to not need it to) in order to use the compiled patch I provide. To make this work with another romhack would, most likely, require a good bit of work.


逆向拷贝时报错

当已经存在一个A to B的映射，再映射B to A，拷贝B对象到A对象时会报转换异常ClassCastException
UserEntity target = MapperFactory.getCopyByRefMapper().mapClass(User.class, UserEntity.class).register()
				.map(source, UserEntity.class);
System.out.println(target);

User secondTarget = MapperFactory.getCopyByRefMapper().mapClass(UserEntity.class, User.class).register()
				.map(target, User.class);
System.out.println(secondTarget);

Hi drtrang,
I have reproduced the problem, I will let you know as soon as I fix it.
Best,
Xu

Hi drtrang,
Thanks for targeting the problem for me! I have resolved the problem and released 1.0.2 version, it shouldn't be a problem later on. It usually takes about 2 hours for the this version's jar to be available on Maven Central, until then you can switch to the new version. Thanks!
Best,
Xu

你好，haoliang
我已经修复了此版本，可以使用1.0.2版本，大概要2个小时在Maven Central生效。非常感谢你的支持，你的定位非常准确！
谢谢，
旭
On Tue, Oct 25, 2016 at 10:14 PM, Dong Haoliang<EMAIL_ADDRESS>wrote:

当已经存在一个A to B的映射，再映射B to A，拷贝B对象到A对象时会报转换异常ClassCastException
UserEntity target = MapperFactory.getCopyByRefMapper().mapClass(User.class, UserEntity.class).register()
.map(source, UserEntity.class);
System.out.println(target);
User secondTarget = MapperFactory.getCopyByRefMapper().mapClass(UserEntity.class, User.class).register()
.map(target, User.class);
System.out.println(secondTarget);
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/neoremind/easy-mapper/issues/2, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAkBFkDpdAw189XG2b8drVZh9QNC-3sOks5q3g7dgaJpZM4KgCbc
.

--
Best regards,
Xu Zhang (张旭)

已更新，谢谢


create new scenario form doesn't submit

Doesn't submit in production or staging due to a routing error

There's no action in the Data::ScenariosController either.
/faceplam
How urgently is this needed? I'm pressed for time on another project, and this isn't entirely straightforward because we need to account for share groups (ensuring that grouped of sliders sum to 100%) when creating your scenarios.

Haha that does make it interesting!
@jorisberkhout what do you think?
I don't mind biting the bullet and entering the scenarios if there's a less elegant, more 'manual' way

I would like to have the scenarios today, but am willing to spend time on the 'manual' way if you are pressed for time, @antw. The share groups should be no issue in this case, as I checked those in the original Excel document.
Would it be possible to fix only the first part of the issue today (and trust me on the share groups), @antw. If not, I will find some help and enter the scenarios manually.

I would like to have the scenarios today [...] The share groups should be no issue in this case, as I checked those in the original Excel document.

That makes things simpler; I'll do this now. I'll make a second pass at a later date to account for share groups.

Thanks a lot, @antw! You saved my day :smile: :

Pushed, and should be on staging momentarily. It's had minimal manual testing, but it appears to work. :pray:


feat(sort): Sort by "frecency" if sqlite is available

Resolves: #235
How to Test
Update your config to include this new dependency (only required for frecency sorting): https://github.com/kkharji/sqlite.lua
e.g.
use { 'mrjones2014/legendary.nvim', requires = 'kkharji/sqlite.lua' }

Ensure that everything like item picking and execution still works
Test that items seem to be sorted by both frequency and recency of use
Test that items within item groups are also sorted the same way

Testing for Regressions
I have tested the following:

[x] Triggering keymaps from legendary.nvim in all modes (normal, insert, visual)
[x] Creating keymaps via legendary.nvim, then triggering via the keymap in all modes (normal, insert, visual)
[x] Triggering commands from legendary.nvim in all modes (normal, insert, visual)
[x] Creating commands via legendary.nvim, then running the command manually from the command line
[x] augroup/autocmds created through legendary.nvim work correctly

@olimorris mind using this branch for a few days and letting me know what you think?

The advantage of this is that it uses SQLite so it persists the sorting scores across Neovim sessions.

@mrjones2014 any config changes I need to make? Can verify that everything still works as intended.

oh, do you have this in your dressing.nvim config:
return {
  'stevearc/dressing.nvim',
  event = 'VimEnter',
  config = function()
    require('dressing').setup({
      select = {
        get_config = function(opts)
          opts = opts or {}
          local cfg = {
            telescope = {
              layout_config = {
                width = 120,
                height = 25,
              },
            },
          }
          if opts.kind == 'legendary.nvim' then
            cfg.telescope.sorter = require('telescope.sorters').fuzzy_with_index_bias({})
          end
          return cfg
        end,
      },
    })
  end,
}

also FYI I just made logs go in reverse chronological order (so new entries will be at the top) and limit to 1K lines

For me, looks like I'm getting duplicate entries somehow 🤔
[Tue Dec  6 14:09:13 2022][legendary.nvim] Computed item scores: {
  ['":LegendaryEvalBuf Eval the whole buffer as Lua"'] = 20,
  ['"<F3> n Toggle left IDE panel"'] = 40,
  ['"<function> Copy current relative filepath to clipboard {}"'] = 10,
  ['"Workspace"'] = 50,
  ["':BindLspKeymaps Manually bind LSP keymaps in case they didn\\'t get bound'"] = 10,
  ["':Icons Find NerdFont icons'"] = 40,
  ["':LegendaryEvalBuf Eval the whole buffer as Lua'"] = 100,
  ["'<F3> n Toggle left IDE panel'"] = 10,
  ["'Search...'"] = 10,
  ["'Workspace'"] = 20,
  [":BindLspKeymaps Manually bind LSP keymaps in case they didn't get bound"] = 10,
  [":Format Format the current document with LSP"] = 10,
  LSP = 30,
  ["Search..."] = 20,
  Workspace = 50,
  ["fr n Resume last Telescope finder"] = 10
}

Yeah, issue is I need a better/more consistent way to get IDs escaped properly for SQL.

Okay, should be fixed now.

Oh yeah now we're cooking! Working like a charm 🚀 !!
I notice within groups there is no sorting but guessing that's by design at present.

Hmm, there should be sorting within groups. I’ll take a look at that tomorrow.

Off topic: Is it possible to hide keymaps from the legendary picker? Reason I ask is that I like to define all of my keymaps in a single file and Legendary's api does it so beautifully. Also...if there was an enabled option for keymaps I could neatly prevent the double map issue with LSP keymaps.

Figured out why item groups were not being sorted. That should be fixed.

Yep can confirm it's working perfectly.
Only thing I've spotted is when I run :LegendaryFrecencyReset and try and open Legendary again, I get the following:
E5108: Error executing lua: .../site/pack/packer/start/sqlite.lua/lua/sqlite/assert.lua:28: sqlite.lua: can not execute select, item_count doesn't exists.
stack traceback:
        [C]: in function 'assert'
        .../site/pack/packer/start/sqlite.lua/lua/sqlite/assert.lua:28: in function 'is_sqltbl'
        ...nvim/site/pack/packer/start/sqlite.lua/lua/sqlite/db.lua:596: in function 'func'
        ...nvim/site/pack/packer/start/sqlite.lua/lua/sqlite/db.lua:218: in function 'transaction'
        ...acker/opt/legendary.nvim/lua/legendary/api/db/client.lua:63: in function 'get_item_scores'
        ...acker/opt/legendary.nvim/lua/legendary/data/itemlist.lua:117: in function 'sort_inplace'
        ...pack/packer/opt/legendary.nvim/lua/legendary/ui/init.lua:56: in function 'select_inner'
        ...pack/packer/opt/legendary.nvim/lua/legendary/ui/init.lua:95: in function 'select'
        ...te/pack/packer/opt/legendary.nvim/lua/legendary/init.lua:112: in function <...te/pack/packer/opt/legendary.nvim/lua/legendary/init.lua:110>

Currently the only way is just to not provide a description, however if you want an option to keep the description and still not show it in the picker, it would be really easy to implement, if you wanna make a PR. Or I can do it this week some time.

I'll have a bash at a PR actually. About time I became more familiar with this code base. Under no obligation to accept it of course!

Yep can confirm it's working perfectly.
One thing I've spotted is when I run :LegendaryFrecencyReset and try and open Legendary again, I get the following:
E5108: Error executing lua: .../site/pack/packer/start/sqlite.lua/lua/sqlite/assert.lua:28: sqlite.lua: can not execute select, item_count doesn't exists.
stack traceback:
        [C]: in function 'assert'
        .../site/pack/packer/start/sqlite.lua/lua/sqlite/assert.lua:28: in function 'is_sqltbl'
        ...nvim/site/pack/packer/start/sqlite.lua/lua/sqlite/db.lua:596: in function 'func'
        ...nvim/site/pack/packer/start/sqlite.lua/lua/sqlite/db.lua:218: in function 'transaction'
        ...acker/opt/legendary.nvim/lua/legendary/api/db/client.lua:63: in function 'get_item_scores'
        ...acker/opt/legendary.nvim/lua/legendary/data/itemlist.lua:117: in function 'sort_inplace'
        ...pack/packer/opt/legendary.nvim/lua/legendary/ui/init.lua:56: in function 'select_inner'
        ...pack/packer/opt/legendary.nvim/lua/legendary/ui/init.lua:95: in function 'select'
        ...te/pack/packer/opt/legendary.nvim/lua/legendary/init.lua:112: in function <...te/pack/packer/opt/legendary.nvim/lua/legendary/init.lua:110>

A quick restart of Neovim and everything is fine.

Ah, yeah I think I know the issue. That command just deletes the database file, I need to re-bootstrap it afterwards.

OOOOOH @olimorris I just had an idea!
What if we wrap your implementations of your keymaps and commands and functions and autocmds in a wrapper function, that updates the frecency score when you use the item, even if you triggered it manually and not through the finder?
This would probably be a behavior you could turn off in the config.

Interesting idea. It crossed my mind earlier actually. My argument against it is if I am using keymaps/commands without Legendary, then when I do reach for Legendary, it's likely for a command/keymap that's too long to type or I can't remember. They're the ones I'd want to be ranked higher

Yeah, had that thought as well. I think I'll leave it out, but I won't rule it out as a possible option for the future.

Also congrats on merging this. It's an epic PR

Yeah it's still a really neat idea.
I meant to ask, if I remap a keymap, how does Legendary handle that wrt frecency?

It will change the items unique ID and therefore reset the recency. Maybe it shouldn't if only the key changed though 🤔
Feel free to open an issue and we can think about that some more.


Call history chart icons

Issue #618
Added temp case icons
added to CallSummary.vue
used flex for positioning
added "updown" icon buttons by Case # & Call Completed on CallHistory.vue
resized chart to fit new buttons

Outdated


Add github ci

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@9ed1b0d). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #198   +/-   ##
=========================================
  Coverage          ?   87.38%
  Complexity        ?      729
=========================================
  Files             ?       47
  Lines             ?     1593
  Branches          ?        0
=========================================
  Hits              ?     1392
  Misses            ?      201
  Partials          ?        0

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 9ed1b0d...4c79c03. Read the comment docs.


Revert "clover: 0.21.3-1 in 'melodic/distribution.yaml' [bloom] (#296…

…78)"
This reverts commit d838137deaf11a0a00f5ce24f7fd72d6a3d7014d.

@deadln FYI, this package has been failing to build since May 21st.  This reverts it back to the last version that seemed to build.

This pull request has been mentioned on ROS Discourse. There might be relevant details there:
https://discourse.ros.org/t/preparing-for-melodic-sync-2021-08-02/21662/1


Adding finish_reason in the response

Hi guys, would it be possible to add the finish_reason returned from the OpenAI api in the response?
It was added to the Python repository recently: Python
It's quite an important value to get in the response, as it states if a response was completed in full or not.

I think it's availabe in llm but not in chat model can it be possible to add finish_reason in chatModel generation response.

Can someone provide an example of how to get GenerationInfo which holds the finish_reason?  I thought it would be part of ChainValues, but apparently not.  I am using something like...
  const model = new OpenAI({...});
  const chain = new LLMChain({ llm: model, prompt: promptTemplate });
  const response: ChainValues = await chain.call({ mytext, prompt });

I know this is a closed issue and probably not a great place for this question.  But I've tried using Discord but no one has responded with the correct answer and it is really close to what this issue addresses.


📃: link up game

🔴 Title : LInk up
🔴 Tech stack :html,css,js
🔴 Objective :In this user user has to match animals to win the game
🔴 Summary : if they matched the animal they will win
📸 Screenshots

✅ Details to Include When Taking the Issue:
Name: ketan kumar
both gssoc and hacktoberfest

Happy Contributing! 🚀
Wishing you all the best on your open source journey. Enjoy! 😎

@iamrahulmahato assign me the issue


Create 0.5.1 compatibility

Added:

Mixin for RemainingAirOverlay to show remaining oxygen in tank when out of water as any class with origins:water_breathing power.

Changes:

Fixed gradle.properties to use current version of Create (0.5.1-b-build.1079+mc1.19.2)
Fixed class paths to match Create 0.5.1 updated paths
Fixed mixins

Please, do review the changes made thoroughly, I am NOT used to Fabric.
The changes were tested both in Singleplayer and Multiplayer on both Fabric and Quilt. No bugs were found during testing.

I do feel very blind after noticing that there is an open Pull Request (#2) with commits doing exactly what I did, although I am unsure as to why it was not merged nor received comments.

I apologize for abandoning this mod, I originally made it for a private modpack and only shared it in case others might want it. I didn't expect it to get the attention that it did. I've gone ahead and merged the original PR (#2), but I'll also credit you in the changelog for the release.

Oh don't worry about that, it's completely understandable. Have a great week!


[Remix-tests] compilation does not work with Firefox

Issue is here: https://github.com/ethereum/remix/blob/master/remix-solidity/src/compiler/compiler.js#L80
When the compiler loads, we always use window.Module for retrieving soljson from the context.
Unfortunately, in case of firefox soljson is loaded using a worker and window.Module is undefined.

This seems fixed by https://github.com/ethereum/remix/pull/1303

Closing it. Feel free to reopen if issue persists.


Rename packages

As a user I want to be able to use Pillarbox with other usual frameworks (or my own) without risking too many package name conflicts.
Acceptance criteria

Package names are clear and with reduced name conflict probability.
Integration in SRF News / Meteo is possible.

Tasks

[ ] Investigate Swift module aliases and why they failed to provide us a quick fix to solve Core name conflicts with SRF News / Meteo common library.
[ ] Rename packages if meaningful.

Not a topic right now (current package names are nice) and aliases should be able to solve the issue anyway. Closed.

This issue was raised again by @mbruegmann, who started integration of Pillarbox in their SRF library. The Core library conflicts with their own. Moreover he would like CoreBusiness not to start with Core to avoid confusion with other products in their library starting with Core.
We investigated two different approaches based on module aliasing to attempt to solve this issue.
Use moduleAliases in the SRF library
Use moduleAliases in an intermediate Pillarbox library exposing renamed products
Alternatives


Remove OPA configuration options

Description
The OPA configuration values no longer need to be referenced from Hypertrace. They should be removed to avoid confusion
Testing
Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.
Checklist:

[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] Any dependent changes have been merged and published in downstream modules

Documentation
I could not find any reference to OPA on docs.hypertrace.org

I love this.
On Fri, Nov 12, 2021, 20:13 David Roth @.***> wrote:

@.**** approved this pull request.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/hypertrace/agent-config/pull/75#pullrequestreview-805147279,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXOYASCI23EWDV5HUNVC7LULVRPNANCNFSM5H5NFODA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Just want to make sure this isn't a problem for pythonagent as its currently used here

Not sure this is used, I think it is just parsed.
On Fri, Nov 12, 2021, 20:40 Ryan Dens @.***> wrote:

Just want to make sure this isn't a problem for pythonagent as its
currently used here
https://github.com/hypertrace/pythonagent/blob/main/src/hypertrace/agent/config/__init__.py#L75
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/hypertrace/agent-config/pull/75#issuecomment-967406503,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXOYAQAPJ4AJZCOXABLCDLULVURTANCNFSM5H5NFODA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Shouldn't we remove usages eg. the parsing in pythonagent before removing the proto? Also is any customer using it at the moment?

Shouldn't we remove usages eg. the parsing in pythonagent before removing the proto? Also is any customer using it at the moment?

It seems it's just parsed, but never actually applied in any meaningful way, so IMO the order in which we do these things isn't particularly important. For Java, downstream implementations of the Hypertrace Filter API have implemented a backward-compatible mechanism of supporting the opa configuration properties existing in this location (nested under reporting).


Navbar for mobile view

Pull Request Checklist

[ ] I have synced the latest fork with my local repository and resolved any conflicts.
[ ] I have mentioned the issue number which I created before making this PR .(format to mention issue number is : fixes #(issue number) )
[ ] I understand that if any the above conditions are not met , my PR will not be MERGED .

fixes #945

@VanshGarg06 do not make a PR unless you have an issue assigned to you , since you have already done work hence i will be merging this PR , but keep this in mind for next time ,the issue you mentioned is already closed and you were not assigned the issue !


Improved mp3 player

Proper escaping of paths
New directory parameter
Parameter input validation
Added screenshots

Pls merge

Pls fix

It's ready, please merge 👍

Okay, updated, please merge 🚀

:trollface:

Not merged yet 😢

Improved and stolen as 80c1f293af58aaa908251dc4662a71cf9e5d8730

Wow


Start an education survey blogpost

blog post for education survey(s)

My project for this workshop will involve a case study of both participants and mentors. In this, we will be examining how students respond differently to completing projects and conducting full time educational work during a time of societal unrest, and how their different backgrounds and identities may affect this. We will also be examining if this unrest, and the workshop itself, affect their self-perception as scientists or engineers.


Background of pdf looks odd at some page levels

For this PDF, the text doesn't load until the background design slowly loads bit by bit, which is very slow performance. The same PDF loads in about a second in Adobe PDF.

This looks mostly okay to me now, so closing.


Change Refresh Time for Snapshot Dafang/HomeKit/Homebridge

Hello,
i install this plugin and use the Xioami Dafang. All works fine.
In Homekit i see at favorites the Snapshot. Yesterday the snapshot refresh all 12 seconds. Today all 60 seconds. But i dont change anything.
Why happend this? Is it possible to change the time byself for snapshot. For example.5 seconds or again back to 12 seconds?
My Config looks like this
                "name": "Camera Name",
                "videoConfig": {
                    "source": "-rtsp_transport tcp -re -i rtsp://IP/unicast",
                    "stillImageSource": "-i<EMAIL_ADDRESS>                    "maxStreams": 2,
                    "maxWidth": 1280,
                    "maxHeight": 720,
                    "maxFPS": 21,
                    "maxBitrate": 299,
                    "vcodec": "h264_omx",
                    "audio": false,
                    "packetSize": 188

Thanks
Best regards rene

Hi,
for with this plugin and the xiaofang S1 the stillimage doesnt work but streaming does, but only for a specific distance maybe 3-5 minutes then it finally crashes the rtsp server on the cam until reboot or manually restart of the service.


Support specifying which replica set to read from

Been thinking about optimising how my backend handles its connection with the database.
One of the main things you can do is set the read preference to make use of your mongo clusters secondary replica sets for read operations. The main issue with this approach is that the replica sets may be delayed in getting the latest data, so globally specifying to use a secondary replica set is off the books if your application needs to do exact point-in-time finds on some services.
I was looking into this and spotted this in mongoose, basically, you can set the read preference for a specific query.
https://mongoosejs.com/docs/api.html#query_Query-read
What would be nice is the ability to specify this on a per-service and per-request level. e.g. have a service option readPreference that sets the default read preference for the service, and allow $readPreference to be set in the params of a find/get request to override the default for the service/mongoose.
I'm not certain about other adaptors and whether their databases support replica sets and querying them, what is implemented should be optional for other adaptors to implement, and certainly not break them if someone mistakenly tries to specify the read preference.
I don't mind making a PR for this if it sounds like a good idea.

After a quick glance, this seems to make sense to me. The service is already similarly handling discriminators and collation. But, I wonder if this is a slippery slope to keep adding params to modify/use model methods. It may be advantageous to do something like
// Take some param that allows the user to
// imperatively use the q
if (params[this.modifierKey]) {
  params.modifierKey(q)
}

// Then the user can do anything with the query
app.service('my-service').find({ queryModifyer: query => query.read('secondary') })

Also, I wouldn't worry too much about replicating this in other adapters. This is one of those things that is so different between adapters that it should probably just be different in each IMHO.

Nice, didn't notice that even though I frequent mongoose docs
I think it would be a nice addition and could relieve some heavy read load that doesn't require always up-to-date dataset.