remoteapp is disconnecting when i show a tooltip the second time

Describe the bug
remoteapp is disconnecting when i show a tooltip in a dialog the second time. Is a native program.
To Reproduce
Steps to reproduce the behavior:
Launch remoteapp
Open a dialog
Show tooltip one time
Again
See error:
[10:43:45:039] [25488:25497] [DEBUG][com.freerdp.core.update] - Alternate Secondary Drawing Order [0x00] Switch Surface
[10:43:45:039] [25488:25497] [ERROR][com.freerdp.core.update] - [0x00] Switch Surface - SERVER BUG: The support for this feature was not announced! Use /relax-order-checks to ignore
[10:43:45:039] [25488:25497] [ERROR][com.freerdp.core.update] - order flags 00 failed
[10:43:45:039] [25488:25497] [ERROR][com.freerdp.core.fastpath] - Fastpath update Orders [0] failed, status 0
[10:43:45:039] [25488:25497] [ERROR][com.freerdp.core.fastpath] - fastpath_recv_update() - -1
[10:43:45:039] [25488:25497] [ERROR][com.freerdp.core.fastpath] - fastpath_recv_update_data() fail
[10:43:45:039] [25488:25497] [DEBUG][com.freerdp.core.rdp] - rdp_recv_callback: CONNECTION_STATE_ACTIVE - rdp_recv_pdu() - -3
[10:43:45:039] [25488:25497] [ERROR][com.freerdp.core.transport] - transport_check_fds: transport->ReceiveCallback() - -3
[10:43:45:039] [25488:25497] [DEBUG][com.freerdp.core.rdp] - transport_check_fds() - -1
[10:43:45:039] [25488:25497] [DEBUG][com.freerdp.core] - rdp_check_fds() - -1
[10:43:45:039] [25488:25497] [ERROR][com.freerdp.core] - freerdp_check_fds() failed - 0
[10:43:45:039] [25488:25497] [INFO][com.freerdp.client.common] - Network disconnect!
[10:43:45:039] [25488:25497] [ERROR][com.freerdp.client.x11] - Failed to check FreeRDP file descriptor
Expected behavior
Continue operation, don't disconnecting.
Application details
This is FreeRDP version 3.0.0-dev (d31a98336)
/u:test /app:"||native_users_manage" /title:"Test" /d:test.test /smartcard /p:"test" /v:localhost:3389 /size:100% /log-level:TRACE /cert-ignore
Output of xfreerdp /buildconfig
This is FreeRDP version 3.0.0-dev (d31a98336)
Build configuration: BUILD_TESTING=OFF BUILTIN_CHANNELS=ON HAVE_AIO_H=1 HAVE_EXECINFO_H=1 HAVE_FCNTL_H=1 HAVE_INTTYPES_H=1 HAVE_MATH_C99_LONG_DOUBLE=1 HAVE_POLL_H=1 HAVE_PTHREAD_MUTEX_TIMEDLOCK=ON HAVE_PTHREAD_MUTEX_TIMEDLOCK_LIB=1 HAVE_PTHREAD_MUTEX_TIMEDLOCK_SYMBOL= HAVE_SYSLOG_H=1 HAVE_SYS_EVENTFD_H=1 HAVE_SYS_FILIO_H= HAVE_SYS_MODEM_H= HAVE_SYS_SELECT_H=1 HAVE_SYS_SOCKIO_H= HAVE_SYS_STRTIO_H= HAVE_SYS_TIMERFD_H=1 HAVE_TM_GMTOFF=1 HAVE_UNISTD_H=1 HAVE_XI_TOUCH_CLASS=1 WITH_ALSA=OFF WITH_CAIRO=OFF WITH_CCACHE=ON WITH_CHANNELS=ON WITH_CLANG_FORMAT=ON WITH_CLIENT=ON WITH_CLIENT_AVAILABLE=1 WITH_CLIENT_CHANNELS=ON WITH_CLIENT_CHANNELS_AVAILABLE=1 WITH_CLIENT_COMMON=ON WITH_CLIENT_INTERFACE=OFF WITH_CUPS=OFF WITH_DEBUG_ALL=OFF WITH_DEBUG_CAPABILITIES=OFF WITH_DEBUG_CERTIFICATE=OFF WITH_DEBUG_CHANNELS=OFF WITH_DEBUG_CLIPRDR=OFF WITH_DEBUG_DVC=OFF WITH_DEBUG_KBD=OFF WITH_DEBUG_LICENSE=OFF WITH_DEBUG_MUTEX=OFF WITH_DEBUG_NEGO=OFF WITH_DEBUG_NLA=OFF WITH_DEBUG_NTLM=OFF WITH_DEBUG_RAIL=OFF WITH_DEBUG_RDP=OFF WITH_DEBUG_RDPDR=OFF WITH_DEBUG_RDPEI=OFF WITH_DEBUG_RDPGFX=OFF WITH_DEBUG_REDIR=OFF WITH_DEBUG_RFX=OFF WITH_DEBUG_RINGBUFFER=OFF WITH_DEBUG_SCARD=OFF WITH_DEBUG_SND=OFF WITH_DEBUG_SVC=OFF WITH_DEBUG_SYMBOLS=OFF WITH_DEBUG_THREADS=OFF WITH_DEBUG_TIMEZONE=OFF WITH_DEBUG_TRANSPORT=OFF WITH_DEBUG_TSG=OFF WITH_DEBUG_TSMF=OFF WITH_DEBUG_TSMF=OFF WITH_DEBUG_TSMF_AVAILABLE=0 WITH_DEBUG_WND=OFF WITH_DEBUG_X11=OFF WITH_DEBUG_X11_CLIPRDR=OFF WITH_DEBUG_X11_LOCAL_MOVESIZE=OFF WITH_DEBUG_XV=OFF WITH_DSP_EXPERIMENTAL=OFF WITH_DSP_FFMPEG=OFF WITH_EVENTFD_READ_WRITE=1 WITH_FAAC=OFF WITH_FAAD2=OFF WITH_FFMPEG=TRUE WITH_FFMPEG=TRUE WITH_GFX_H264=ON WITH_GPROF=OFF WITH_GSM=OFF WITH_GSSAPI=OFF WITH_ICU=OFF WITH_IPP=OFF WITH_JPEG=OFF WITH_LAME=OFF WITH_LIBRARY_VERSIONING=ON WITH_LIBSYSTEMD=OFF WITH_MACAUDIO=OFF WITH_MACAUDIO=OFF WITH_MACAUDIO_AVAILABLE=0 WITH_MANPAGES=ON WITH_MBEDTLS=OFF WITH_OPENCL=OFF WITH_OPENH264=OFF WITH_OPENSLES=OFF WITH_OPENSSL=ON WITH_OSS=ON WITH_PCSC=ON WITH_PROFILER=OFF WITH_PULSE=OFF WITH_SAMPLE=OFF WITH_SANITIZE_ADDRESS=OFF WITH_SANITIZE_ADDRESS_AVAILABLE=1 WITH_SANITIZE_MEMORY=OFF WITH_SANITIZE_MEMORY_AVAILABLE=1 WITH_SANITIZE_THREAD=OFF WITH_SANITIZE_THREAD_AVAILABLE=1 WITH_SERVER=OFF WITH_SERVER_INTERFACE=ON WITH_SMARTCARD_INSPECT=OFF WITH_SOXR=OFF WITH_SSE2=ON WITH_SWSCALE=OFF WITH_THIRD_PARTY=OFF WITH_VAAPI=OFF WITH_VALGRIND_MEMCHECK=OFF WITH_VALGRIND_MEMCHECK_AVAILABLE=1 WITH_WAYLAND=ON WITH_WINPR_TOOLS=ON WITH_X11=ON WITH_X264=OFF WITH_XCURSOR=ON WITH_XEXT=ON WITH_XFIXES=ON WITH_XI=ON WITH_XINERAMA=ON WITH_XKBFILE=ON WITH_XRANDR=ON WITH_XRENDER=ON WITH_XSHM=ON WITH_XV=OFF WITH_ZLIB=ON
Build type: Debug
CFLAGS: -fPIC -Wall -Wno-unused-result -Wno-unused-but-set-variable -Wno-deprecated-declarations -fvisibility=hidden -Wimplicit-function-declaration -Wredundant-decls -g -DWINPR_DLL
Compiler: GNU, 8.3.0
Target architecture: x64
OS version connecting to (server side)
Windows Server 2008 R2
Environment (please complete the following information):
OS: Debian
Version/Distribution: 10 with XFCE
Architecture: amd64

@FutureKidBuu ok, this was another interesting on. Reread the spec and relaxed the check a bit, could you verify the fix in #6304 works for you?

@akallabeth Unfortunately not, I get the same result

@FutureKidBuu ok, and with +offscreen-cache ?

@akallabeth same

Also I have tried several configurations with the same result.

@FutureKidBuu ok, that is indeed strange, need to dig deeper here.
Anyway, with /rfx /gfx:avc444 there should be no such issue (given that also the server has activated these options)

@FutureKidBuu ok, managed to reproduce, but by adding +offscreen-cache I can reproducibly eliminate the issue. (you´re using a specific RDP version/configuration which requires offscreen caches to be enabled)

@akallabeth with +offscreen-cache I get this error:
[08:50:51:856] [12851:12869] [ERROR][com.freerdp.cache.offscreen] - invalid offscreen bitmap at index: 0x00000055
[08:50:51:856] [12851:12869] [WARN][com.freerdp.core.update] - Alternate Secondary Drawing Order [0x00] Switch Surface failed
[08:50:51:856] [12851:12869] [ERROR][com.freerdp.core.update] - order flags 00 failed

@FutureKidBuu ok, you really have an interesting setup. The server tries to set a surface that was not created?
Could you tell how the server was configured? Can not reproduce this one here locally.

@akallabeth I suspect it is the native application that is causing it but I would like to get away from that problem.
Anyway, it is very curious, the second time the tooltip is displayed it enters the offscreen_cache_get method twice, one time the index value is 0 and the next 85, and when it is not found, disconnection happens.
I show you that it actually enters twice because this
[10:13:19:654] [19972:20001] [DEBUG][com.freerdp.core.update] - Alternate Secondary Drawing Order [0x00] Switch Surface
[10:13:20:519] [19972:20001] [DEBUG][com.freerdp.core.update] - Alternate Secondary Drawing Order [0x00] Switch Surface
And then, is the error invalid offscreen bitmap at index: 0x00000055
Would it be possible to avoid it?

@FutureKidBuu well, not using legacy RDP would be one step (/rfx /gfx:avc444 client side, enable rfx and gfx server side)

@akallabeth I have no possibility to enable those options, what I have seen is that if I launch with the local administrator i do not have this issue, but with domain users ...
Keep investigating!

In case you have any idea, that windows server does not act as a domain controller, it would be on another server.

@akallabeth
If I prevent it from caching...
case ORDER_TYPE_SWITCH_SURFACE:
			rc = TRUE;//IFCALLRET(altsec->SwitchSurface, rc, context, &(altsec->switch_surface));
			break;

Later enters the UNKNOW order

Why? This is pretty crazy.

@FutureKidBuu well, can you add your command line for this? If you already modified code and/or are running with /relax-order-checks then this might just be random data

ok, echo "clave" | xfreerdp /u:"usuario" /app:"||app"  /title:"App" /cert-ignore /from-stdin /v:localhost:3389 /size:100% -decorations /log-level:debug /smartcard

@FutureKidBuu did you try /rfx? server 2008 already supports that. as for the rectangle, I have to check the docs, but this looks like a protocol violation (rectangles must hold top <= bottom and left <= right)

@FutureKidBuu did you try /rfx? server 2008 already supports that. as for the rectangle, I have to check the docs, but this looks like a protocol violation (rectangles must hold top <= bottom and left <= right)

Yes I enabled the rfx option on the server, confirming the same situation although visually there were differences.
Something remarkable that I have been able to detect is that with the -fonts parameter the situation occurs less often.


Enable pre/post-volume snapshot hooks for executing workload-specific actions

Some workloads (e.g. databases) may require pre- and/or post-volume snapshot actions to be taken (e.g. flushing caches, fsfreeze) to ensure that the snapshot/backup taken is valid. We should create user-pluggable hooks to allow this kind of workload-specific logic to be executed during backups & restores.

I think if you need to do something like fsync before taking a snapshot, you need to have the hook at the deployment/pod/container-ish level, not the PV. Maybe consider making the hooks more generic (not just applicable to volumes) and we can discuss the granularity + how to configure?

@ncdc some initial thoughts on real-world workloads and how they should be backed up https://docs.google.com/document/d/18_E18Zo1Ud1ShVTnFbkd69gjZoYNNfMGE-VI9yBZmS0

PR for this: #112


fix: allow string values in outline-offset

Description
Fixes: https://github.com/wayfair/rainbow-sprinkles/issues/127
This is a change to the type off outline-offset. This types it similar to a border width which allows for px or rem values to be used. Here are the MDN docs for reference: https://developer.mozilla.org/en-US/docs/Web/CSS/outline-offset.
I'm not sure how to test this change. Open to ideas on that.
Type of Change

[x] Bug Fix
[ ] New Feature
[ ] Breaking Change
[ ] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

[x] I have read the contributing guidelines
[x] Existing issues have been referenced (where applicable)
[x] I have verified this change is not present in other open pull requests
[ ] Functionality is documented
[x] All code style checks pass
[ ] New code contribution is covered by automated tests
[ ] All new and existing tests pass

Looks good to me, can you add a changeset with the patch option?

@roginfarrer changeset added. Thanks for reviewing.


[NSE-153] Fix incorrect quries after enabled Decimal

Fixed: https://github.com/oap-project/native-sql-engine/issues/153

@rui-mo , I submitted this FIX, let's have a check

https://github.com/oap-project/native-sql-engine/pull/154/commits/ce59227a7e96da01494de33a0b25055313bae5c4 fixed Q54


add a msg tag

Fixes Or Enhances
Make sure that you've checked the boxes below before you submit PR:

[ ] Tests exist or have been written that cover this particular change.

@go-playground/validator-maintainers

Coverage increased (+0.03%) to 75.126% when pulling f5cbdcbe3a1c0af05802f383b14a5f091f872788 on yaofei517:feature/add_err_msg into ce34f361cca51e25715399ab801c5e1c01d02d89 on go-playground:master.


What is the recommended ratio between owned devAddr and active devices ?

Hello,
I want to know what are the best practice in terms of DevAddr reusing ?
How many devAddr own regarding the number of active devices.

transferred it, you don't need to reopen.

Router is trying to be smart and assign devaddrs based on device's geo-location (see code here). So if devices are well dispersed you could be able to use a way smaller range than you have devices.
Nevertheless a smaller range could have couple of consequences:

For packets,  if more devices share a devaddr ( code here ) it could "take longer" as we will need to potentially brute force for more than one device.
For offers, a device could be mistaken for another one and in worst cases if that other device is deactivated or org ran out of DC, offer could be dropped.

Thank you for this response.
I'm not clear about what Offers are ? can you precise please ?

Second question, how to monitor response time to take care of "take longer" ?

When a hotspot receive a packet it will offer it to Router. Router then needs to tell (code) the hotspot if it wants to buy the packet or not (Offer definition here).
The "take longer" should not really be an issue unless you have tens of thousands of devices sharing the same devaddr (routing functions are being closely monitored and take on average 1.4 milliseconds)

thank you it makes sense


Support transforming authorized scopes when the OAuth2Authorization object is created

Context
We have a use-case for filtering the scopes that go into an access_token, based on the Resource Owner's "roles" - e.g., if you have the role hr-user you can have payslip.view in the scopes of access tokens issued for you, but not the payslip.edit scope - even if the Client is allowed to request it.
There is no way to easily change the OAuth2Authorization#authorizedScopes() before it is created/saved.
The token itself, when it is a JWT, can be customized with an OAuth2TokenCustomizer<JwtEncodingContext> that acts on the scope claim, but the token response has the full list of authorized scopes.
Expected Behavior
When the OAuth2Authorization object is created and saved in the OAuth2Service, either through OAuth2AuthorizationCodeRequestAuthenticationProvider or OAuth2AuthorizationConsentAuthenticationProvider, I want to be able to alter the scopes.
Current workaround
Currently, we work around this by creating a custom AuthenticationProvider that wraps around both OAuth2AuthorizationCodeRequestAuthenticationProvider and OAuth2AuthorizationConsentAuthenticationProvider:
public class AppSsoAuthorizationCodeRequestAuthenticationProvider implements AuthenticationProvider {

	// Either an OAuth2AuthorizationCodeRequestAuthenticationProvider or an OAuth2AuthorizationConsentAuthenticationProvider
	private final AuthenticationProvider delegate;

	private final OAuth2AuthorizationService authorizationService;

	public AppSsoAuthorizationCodeRequestAuthenticationProvider(AuthenticationProvider delegate,
			OAuth2AuthorizationService authorizationService) {
		this.delegate = delegate;
		this.authorizationService = authorizationService;
	}

	@Override
	public Authentication authenticate(Authentication authentication) throws AuthenticationException {
		// This may throw an OAuth2AuthorizationCodeRequestAuthenticationException; in
		// this case we rethrow.
		var authResult = delegate.authenticate(authentication);

		// This does not happen with our supported cases, but in the case of the device
		// grant type, OAuth2AuthorizationConsentAuthenticationProvider will return null.
		if (authResult == null) {
			return null;
		}

		// When an authorization request comes in, and is valid, BUT the user is not
		// authenticated, an OAuth2AuthorizationCodeRequestAuthenticationToken is
		// returned, that is marked as !authenticated. This is a special case signaling
		// that the end-user must log-in first. In this case, we just follow through.
		//
		// The rest of the filter chain will save the incoming request in the session and
		// redirect the user to the login page. Once they are logged in, the saved request
		// will be replayed.
		if (!authResult.isAuthenticated()) {
			return authResult;
		}

		// Sometimes the authentication flow returns a
		// OAuth2AuthorizationConsentAuthenticationToken when consent is required.
		// In that case, we just follow through. Otherwise we grab the result.
		if (!(authResult instanceof OAuth2AuthorizationCodeRequestAuthenticationToken authCodeAuthResult)) {
			return authResult;
		}

		// We load the authorization from the repo, change the scopes, and re-save it.
		var authCode = authCodeAuthResult.getAuthorizationCode();
		var authorization = authorizationService.findByToken(authCode.getTokenValue(),
				new OAuth2TokenType(OAuth2ParameterNames.CODE));

		// Filter the scopes based on the principal
		var filteredScopes = filterScopes(authorization.getAuthorizedScopes(), authResult.getPrincipal());

		var newAuthorization = OAuth2Authorization.from(authorization).authorizedScopes(filteredScopes).build();
		authorizationService.save(newAuthorization);

		//@formatter:off
		return new OAuth2AuthorizationCodeRequestAuthenticationToken(
				authCodeAuthResult.getAuthorizationUri(),
				authCodeAuthResult.getClientId(),
				authResultPrincipalAuthentication,
				authCodeAuthResult.getAuthorizationCode(),
				authCodeAuthResult.getRedirectUri(),
				authCodeAuthResult.getState(),
				filteredScopes
		);
		//@formatter:on
	}

	@Override
	public boolean supports(Class<?> authentication) {
		return delegate.supports(authentication);
	}

	private Set<String> filterScopes(Set<String> authorizedScopes, Object principal) {
		// business logic
	}

}

@Kehrlann How did you register AppSsoAuthorizationCodeRequestAuthenticationProvider with the authorization server?

@Suvink excellent question, this is a classic pattern, but not 100% obvious. You registery it with the AuthorizationServerConfigurer using an object post-processor. In your security configuration:
@Configuration
class SecurityConfiguration {

    @Bean
    public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
        return http
                .authorizeHttpRequests(authorize -> {
                    // ...
                })
                // ...
                .with(
                        new OAuth2AuthorizationServerConfigurer(),
                        authServer -> {
                            authServer.withObjectPostProcessor(new AuthorizationCodeAuthenticationProvider());
                            // ...
                        })
                .build();
    }

    class AuthorizationCodeAuthenticationProvider implements ObjectPostProcessor<AuthenticationProvider> {

        @Override
        public <O extends AuthenticationProvider> O postProcess(O object) {
            if (object instanceof OAuth2AuthorizationCodeRequestAuthenticationProvider) {
                return (O) new AppSsoAuthorizationCodeRequestAuthenticationProvider(object, authorizationService);
            } else if (object instanceof OAuth2AuthorizationConsentAuthenticationProvider) {
                return (O) new AppSsoAuthorizationCodeRequestAuthenticationProvider(object, authorizationService);
            }
            return object;
        }

    }
}

Perfect. Initially we tried to register this with web security config but it didn't work. Then registered it with auth server configs and it works perfectly fine.
Thanks a lot for the support!


lets encrypt and update UI

Hi Team
First thing thank you for this project is really nice. I have two questions:
Can we use this interface to renew automatically lets encrypt certificated in all domains ? I think that the process is connect to the ui create a txt record and delete it after the check.
Second is, how i can update PowerDNS-Admin if you releases a new version or new functionality?
Thank you

Since this Container is Not Hosted as official docker on docker.io
You have to enter the direction where you downloaded the files.
Depending on how you downloaded
You either need to type git pull
If you used the git clone command to download everything or if you downloaded manually you need to redownload as zip file and extract and overwrite all files.
After that a simple docker-compose build will do the trick and after a docker pull to redownload and update the psiw4rd/pdns-server from docker.

Thank you for your comment.
About the lets ecnrypt is someone managing auto renew ?

I am Running nginx and PowerDNS-Admin as a systemd Service. For le certification I use certbot which will install a crontab for auto renewal every 90 days

Thank you buddy !
I wll try that. In your opinion what is better mysql master master o axfr replication via SOA ?

I prefer afxr over Mysql master master, since both pens have their own database. Otherwise you can use mysql replication

Renewing certificates shouldn't be a responsibility of PowerDNS-Admin.

How to for solution this case, renew ssl certbot error module 'lib' has no attribute 'X509_get_notAfter'


Docker user auth: how to?

System OS
Docker
Python Version
3.11 (CPython)
Install Source
pip / PyPi
Install version / commit hash
v4.2.0
Expected Behavior vs Actual Behavior
I don't know how to use the --user-auth parameter with the docker image.
I tried to mount the content of the .spotdl folder I have on my machine, but it's not working either.
Steps to reproduce - Ensure to include actual links!

Try to use the all-user-playlist parameter

Traceback
Stucks on `all-user-playlist` query

Other details
More details about the login

Use --auth-token or try using --user-auth --headless if you can interact with the container when running spotdl.
https://github.com/spotDL/spotify-downloader/pull/1580#issuecomment-1221154910

Use --auth-token or try using --user-auth --headless if you can interact with the container when running spotdl.
#1580 (comment)

Has anyone actually tried to do this? For the second method I get 'INVALID_CLIENT: Invalid redirect URI' after changing the redirect ip to point towards the docker host.

Using --auth-token just causes the docker cli to hang. --user-auth --headless causes an error where "raw_input" is not defined in _get_user_input(prompt) method.
I think it's because --user-auth requires the you to open a url and authorize the spotify api. Then that auth code is collected. However, since docker is isolated from the host in that way, the call fails.
Best solution I think is to create a playlist with all songs and then input the playlist url.


upload multiple files

If I upload multiple files, there will be multiple requests to the server. Can I upload multiple files with only one request?

set option  serialize:false

Thanks for your help,  but it's wrong...

What is the plugin version ?
If possible , can you share your URL ?
On Tue, 1 Aug 2017 at 12:10 185365936<EMAIL_ADDRESS>wrote:

Thanks for your help, but it's wrong...
[image: picpick20170801120341]
https://user-images.githubusercontent.com/12274638/28808921-61953fbc-76b2-11e7-97e1-645f894bcb32.jpg
[image: picpick20170801120440]
https://user-images.githubusercontent.com/12274638/28808920-6191b270-76b2-11e7-98ef-01b539a119e7.jpg
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/hayageek/jquery-upload-file/issues/157#issuecomment-319262453,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AChS7hzXBfsdOtklrAcp11jbw6vB-O9Xks5sTqU0gaJpZM4OpMqF
.

Sorry, I have been preparing demo and server. This is a java project and the plugin is latest version.
I only know a little bit of English.
The expression is unclear.
This demo if I upload multiple files, there will be multiple requests to the server.
My purpose is to upload multiple files at once, and only request the server once.

How do I set the option?
url : http://www.huanglei936.cn
source: https://gitee.com/hlmilies/webjsp
Thank you very much.

when i set serialize to false then i don't get the form data  at the server code

Hello, how was it ultimately resolved?


The AsciiOnly lint doesn't show the abusive character

When a comment has a wrong character, AsciiOnly simply claims that such a comment is broken, but doesn't say in what line and what is the character. This makes it hard to find and fix the problem. Let's make the output of AsciiOnly more detailed.

@yegor256 let me fix this

@yegor256 the puzzle #34 is still not solved.


Change the location used to create the data connection

The current version is using the location of the log analytic workspace. That works only if the ADX cluster is also in the same location.
For this to work in cases where the ADX cluster is in a different location as the log analytic workspace we need to provide the ADX's location.
I suggest to extract the location from $ADXClusterURL and provide it in the location parameter when swending the PUT to create the data connection.
Fixes #
Current version is returning a 400 when attemping to create a data connection on an ADX cluster is the ADX cluster location is different than the log analytic workspace location
Proposed Changes

Extract the location of the ADX cluster this way: $ADXClusterURL.Split(".")[1] and save it as $ADXClusterName
Use $ADXClusterName in the location parameter sent in the PUT request

@sreedharande doesn't seem to be the case. I have my ALA in Canada Central and my ADX in East US and that works fine.


bloc_caravan, basics

I've decided to split the macro into two different function-like macros. The attached document explains.
240608 - Nesting.pdf

https://github.com/orangutanrider/waymark_relations/pull/50


LMCodec

https://mjenrungrot.github.io/chrome-media-audio-papers/publications/lmcodec/
Will LMCodec be merged or integrated into lyra

LMCodec is something freaking else.

I had the same question given the release of the LMcodec paper at the beginning of the year. It would certainly be an impressive addition to Lyra for sub 3.2 kbps streams. Any plans? Thanks.


init

init

It looks like you are attempting to push a change to the template repository, for help with deploying your own website please start a new thread in the discussions.


Error if containerStyle is unspecified

I'd expect there to be a sensible default that works in the case that it isn't specified.

containerStyle is added as an empty object in defaultProps

I do see that in your code. Not sure exactly what the issue was but I can't reproduce it. Closing.

Is that crashing when you didn't pass containerStyle?

That's what was happening. Specifically, the error was in getContainerHorizontalSpacing that does the style unpacking. But, now it seems to work after removing containerStyle. Perhaps it had to do with updating the library without refreshing the internal state of the app screen.

Yeah, I think so. I want to refactor that part.


Garden Map

Is there a way to display garden map with indego position as in the original Bosch app?

There is no official way but check out the Discord server, some people have discussed it and come up with a solution. :wink:

There is no official way but check out the Discord server, some people have discussed it and come up with a solution, of some sort. :wink:

I am not sure that I am going to implement this. I dont have the skills. But you are welcome to contribute with a PR!

There is no official way but check out the Discord server, some people have discussed it and come up with a solution, of some sort. 😉

Any idee how I can find it on the Discord server? Is it in the home assistant channel?

I would also sponsor that. Please contact me personally if you are interested.

Still waiting for some PRs... ;-)

That’s sadly not possible right now for me. The sponsoring option is still valid for me. I would throw 200€ in the round for a solution. Payed via paypal or github sponsorinh or something similar. Thanks a lot.
https://github.com/sponsors

I dont have the knowledge (nor time). Anyone else?

The solution described here seems doable. But I’m not into the languages used here.
https://github.com/zazaz-de/iot-device-bosch-indego-controller/blob/master/PROTOCOL.md
I doubt we would need a camera entity like it was done for the roborock vacuums. But I‘ve no idea how to implement that.
https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card

Thanks for this great integration! In relation to the map request, that would be really nice and all, but what I would really like to have first of all is the map position coordinates from the status call. I would use those to determine which section of the garden the mower is in, and also detect if the mower got stuck.
Would that be more doable?

Would that be more doable?

Turned out it was quite easy to add those coordinates as attributes in the detailed state entity. Will test out and see if it has value.

awesome

I found this description for reading the map:
https://github.com/zazaz-de/iot-device-bosch-indego-controller/blob/master/PROTOCOL.md#getting-the-map

I am waiting for some pull requests... :-)

@jm-73 what do you mean with pull request ?

"A pull request in GitHub is a request to the maintainer of a repository to pull in some code."
Explanation from:
https://www.dummies.com/article/technology/programming-web-design/general-programming-web-design/what-are-github-pull-requests-264741/

Basically I dont have the knowledge how to do this. Somebody else have to implement this and merge the new function with the integration.

I'm getting my mower setup tomorrow, might look into integrating the map!

i have found a youtube video (in german) where the map was integrated to HA. There is also a github page about it but i think it won`t work since bosch has changed the log in method.
Maybe this can help to add the map in this integration ?!
https://www.youtube.com/watch?v=-sOSOXz-Vv0
https://github.com/SmarthomeAddicted/Indego-Integration

Hi everyone,
I'm currently developing the garden map functionality.
My idea is to add a camera entity that will display the map.
The map will be generated on demand (during camera UI rendering).
If you don't display the dashboard containing the camera, no call will be made to the api.
The map will be refreshed every 10 seconds (default value of CameraImageView rendering).
My fork / POC: https://github.com/FBruynbroeck/Indego/tree/issue133_garden_map
What do you think?

Does anyone know if its possible somehow to retrieve the map, that the mower "draws" of where it has mowed the lawn, and what parts are missing? That would be nice ...

Does anyone know if its possible somehow to retrieve the map, that the mower "draws" of where it has mowed the lawn, and what parts are missing? That would be nice ...

Drawing the mown lawn is not an option for me.
The data retrieved from the API is not precise enough.
The X/Y positions are too approximate and the refresh rate too long.
If we wanted to simulate the route, we'd have to retrieve the positions continuously and connect points with a line for an ugly/approximate visual result.
The firmware and API have not been designed to achieve this.
To achieve this, the mower would have to record its route and send it to the api, but it doesn't (and probably never will). 😞
However, you can try my feature that displays the mower's position on the map (is always better than nothing).
It displays the map directly in the dashboard from a camera entity with a 10-second refresh rate (no need to download the map manually, it's ready to use).
I'll be very happy to read your feedback and make improvements/bug fixes if necessary before de pull request. 🙂

Drawing the mown lawn is not an option for me. The data retrieved from the API is not precise enough. The X/Y positions are too approximate and the refresh rate too long.

Whenever my mower is working, it stop occasionally and "saves the map", before it continues. I thought it would be nice to see a pmap containing what parts of the lawn, that has been mowed and which parts, that has not - but it needs to be by retrieving that internal map, the mower is updating and saving.
I fully agree, that retrieving and registering coordinates won't work and probably exhaust the API and the server it runs on.
I'll try your "camera map". Thanks! 🙂
/Lars.

Drawing the mown lawn is not an option for me. The data retrieved from the API is not precise enough. The X/Y positions are too approximate and the refresh rate too long.

Whenever my mower is working, it stop occasionally and "saves the map", before it continues. I thought it would be nice to see a pmap containing what parts of the lawn, that has been mowed and which parts, that has not - but it needs to be by retrieving that internal map, the mower is updating and saving. I fully agree, that retrieving and registering coordinates won't work and probably exhaust the API and the server it runs on.
I'll try your "camera map". Thanks! 🙂
/Lars.

Yes, the mower displays "saves the map" but we can't retrieve the desired information from the API.
The only information is the percentage of lawn mowed.

Thanks for your work, i just tried it this morning and everything seems to work well so far. It is also much more comfortable than downloading the map etc. as mentioned in "my" fork.
Is it possible to "save" the map with a transparent background ? i was not able to find the right command for that until now but i think it would look much better in dark mode.
Thanks!

Thanks for your work, i just tried it this morning and everything seems to work well so far. It is also much more comfortable than downloading the map etc. as mentioned in "my" fork. Is it possible to "save" the map with a transparent background ? i was not able to find the right command for that until now but i think it would look much better in dark mode. Thanks!

Yes, it's possible.
The API returns an image in SVG format.
So it's very easy to manipulate the file to change the background color.
I've just pushed a commit that meets your needs.
Thanks for your feedback. 🙂

Thanks for your quick response, this helped me a lot.
As i also didn`t want to see the stroke i just added ".replace('#CCCCCC', 'transparent')" to your code so it now looks like this: "svg = fromstring(lawn_map.decode("utf-8").replace('#FAFAFA', 'transparent').replace('#CCCCCC', 'transparent'))", not sure if this is something you would like to add.

Thanks for your quick response, this helped me a lot. As i also didn`t want to see the stroke i just added ".replace('#CCCCCC', 'transparent')" to your code so it now looks like this: "svg = fromstring(lawn_map.decode("utf-8").replace('#FAFAFA', 'transparent').replace('#CCCCCC', 'transparent'))", not sure if this is something you would like to add.

I thought about it too, but I didn't want to do it directly (it might interest some users to keep the grid in the background).
However, if it suits everyone, then I can hide the grid in the same way.

I'm testing the map for a while now. It's a very nice feature. Thank you @FBruynbroeck.
The only issue I've noticed is that the map disappears during updates, which is somehow kind of an unpleasant experience (at least for me).
Unfortunately yesterday the whole integration stopped updating data at all - the entities are available, but the status is basically stuck. Do you think the API could have somehow cut me off? The Bosh APP works fine. Did anyone had similar issue?

Broken without map and in the app since hours 🤷♂

Hello @sytchi,
Thanks for your feedback ! 🙂
You should retrieve my latest commits and check if you still have the problem of the disappearing map.
Normally it shouldn't happen (except when starting up homeassistant where the map will take a little time to load and just after returning to the dock as it does a final refresh before doing nothing more before the next mowing).
As for the data update problem, I think we all have the same problem.
The API has been returning a 403 error since yesterday.
I've just created an issue with explanations: https://github.com/jm-73/pyIndego/issues/119
Until we find a solution, you can manually modify the user-agent in pyIndego with a random string, restart homeassistant and your system will work again. 😉
The 403 error is probably due to the fact that we're making too many calls to the API following our tests with the map feature. Check in the future and limit calls if necessary...

Until we find a solution, you can manually modify the user-agent in pyIndego with a random string, restart homeassistant and your system will work again. 😉

Call me dumb, but where do I look for pyIndego files in my Home Assintant filesystem? Or what's a proper way of changing user-agent for that lib?

Function is released in the 5.3.0 (Beta). Soon available as general release if tests are successful.


[1.x] Backports to newly established 1.x branch including protocol rename, gav changes, component upgrades and project fixes.

No objections – let's go ahead.


[#159273695] Move ConnectionString logic SQL collectors

What?
I was preparing the PR to implement verification of the CAs for mysql
and postgres. As first step, I decided to refactor the code to move
where we build the ConnectionString.
But we decided to change the scope of the story and the prioritisation.
I still think there is some value in this PR, and the code is done, so
here it goes anyway.
We did:
Move the logic to build the connection string to connect to
the specific DB to the SQL collectors for mysql and postgres.
We reduce the logic in the brokerinfo to simply return the connection
details provided by AWS RDS.
Each SQL collector would provide a specific implementation of
how to build the connection string based on the info provided
by the broker info.
This makes more sense, as the SQL logic is only in the collector
package, and it is more consistent when testing.
How to review?
Code review. Tests shall pass
Who?
Not me

I am not sure about this commit: https://github.com/alphagov/paas-rds-metric-collector/pull/9/commits/9552f8fbb99c2c25d3aaf04feefdb824cbb090fc
Shall we simplify the test like that or not?

Yep, I will today :+1:

@chrisfarms that conflict is fixed. What do you think about b07759ddd65302e88afd4b8979264b939387defa ?
Is it worth it?

dropped


Fix crio integration

Read per commit basis

This change is

test-me-please

Coverage increased (+0.004%) to 43.261% when pulling da766cd1b341639bf9c1bd047ec82d8a081e69f8 on pr/fix-crio-dep into 82ddb0c91c055db4796cbec96d9cac50595576c2 on master.

Hit https://github.com/cilium/cilium/issues/7282


Improvements to correlation

[x] Explore if it's possible to do without lon/lat looping in Python
[x] Change return type for a single correlation.
[ ] Single timeseries broadcasting, see #262
[ ] Make the operation polymorphic, see #232
[x] Sanity checks, see #238

Not possible to implement the Cate monitor in a straightforward way for an operation that doesn't loop or work on group-by objects. See #282

Sanity checks for 'None' values has been implemented through #238, other explicit checks for data validity have also been implemented.


Makefile

[ ] install
[ ] dev
[ ] lint
[ ] deploy (migrate/collectstatic)
[ ] test

can you assign this to me I will work on it

Done in 97919db


[Ruby] raise more info when error happens

Hi, Recently we saw some exceptions in our log when using grpc ruby, but the reason why it is failed
is ignored, just call#run_batch failed somehow, will you please expose the event string of ev?
Thanks.
//grpc/src/ruby/ext/grpc/rb_call.c
 820   ev = rb_completion_queue_pluck(call->queue, tag,
 821                                  gpr_inf_future(GPR_CLOCK_REALTIME), NULL);
 822   if (!ev.success) {
 823     rb_raise(grpc_rb_eCallError, "call#run_batch failed somehow");
 824   }

That ev variable has type grpc_event, which is defined in grpc_types.h. It only contains the completion type, the success/failure boolean, and the tag. There is no "event string". In this case, success is false, the completion type must be GRPC_OP_COMPLETE, and the tag is the same as the tag argument to the pluck call. At that point, we have no additional information to provide more precise error information.

Yes, I got it, thank you @murgatroid99. but will you give some advise on how to diagnose it according to the exception? thank you:)

We see this a decent amount in our error catching service and really have no idea what causes it. Would love to have some more introspection into the error.

AFAIK this indicates a sort of internal error. It might be interesting to take a look at the logs from the c library with environment variables like export GRPC_VERBOSITY=DEBUG GRPCC_TRACE=all,-queue_pluck,-queue_timeout. Also I'd wonder under what circumstances these errors are happening.

No action planned to change the error message, unable to do this per reasons listed by @murgatroid99.
As noted, CallError is a sort of internal/bad-state error, feel free to open a new issue for that error.


Azure Mobile Serivces .NET Backend currently unusable (1.0.447)

So it started with an unusual problem where for some reason my database initializer kept trying to access Master, and failing. That lead to a problem with my Portal. Which lead to tech support asking me to upgrade packages.
Debugging .NET Backend is nearly impossible for two reasons: One, you can't update anything ever and two, the source code is only available in source symbol files, which sometimes don't work.
Right now, if you download a .NET Backend solution from Azure Mobile Service, go to the Solution, Manage NuGet packages, and click Update All, it breaks. With this:
Method not found: 'Void System.IdentityModel.Tokens.JwtSecurityTokenHandler.set_CertificateValidator(System.IdentityModel.Selectors.X509CertificateValidator)'.
If you cannot replicate this, I will send a video of it happening, if that helps. (For replication, when you first Update All, it adds an extra bindingRedirect for Microsoft.Data.OData and EDM in the web.config, then throws an error. If you simply delete these extra bindingRedirects, you will then get the Method Not Found error.)
This is completely unacceptable. This bug has existed for multiple releases and continues to exist. It seemed to be recognized as a bug, but then support for it stopped. The solution CANNOT be "Don't update this or that NuGet package." I'm sorry, but that is not a tenable solution for even the medium term.
I don't know if you are aware, but more than .NET Backend uses OWIN. More than .NET Backend uses NuGet packages. And these packages (like SignalR) have dependencies, and when I need to upgrade a package, it will upgrade its dependencies. And guess what? That then breaks .NET Backend because .NET Backend 1) Doesn't have it's dependencies set properly (this has been a big problem for several versions) and 2) Has therefore been broken for months. Months.
We need either the source code for .NET Backend so we can fix it ourselves, or we need .NET Backend fixed in such a way that you can update all packages and have it work. We need communication that these issues are recognized, and when they are going to be fixed.
.NET Backend is not realistically usable until this problem is fixed. Every time I try to actually use it in the real world, I keep running into these types of issues. When I try to debug them, I keep running into issues debugging. It's been months of banging my head against the wall trying to get this working and I've finally just come to the conclusion that, right now, it doesn't. It just doesn't work.
Sorry if some of my frustration has leaked into this post. I tried to keep it dispassionate. But you have to understand how teeth-clenchingly frustrating this entire experience has been. In my near decade of .NET programming experience, this has been the worst - well, no, I had to make SSRS reports for like 6 months. That was worse. Anyway, this has been a very bad experience. I just want it to get better so I can actually accomplish something. I've gotten nowhere on my project (and, by extension, my now aborted attempt at a business) because I spent all my time trying to get AMS to work.
However, I would really like for it to work. So, before I ditch AMS completely to just put a Web API on a Azure Website and figure out the auth stuff for myself, I thought I'd take one last shot at trying to get some kind of support. So how about it? Any chance that .NET Backend is going to be fixed in the near term?

The problem seems to be the same I've mentioned before (and also here that it seems to be still not fixed although one more version was released). So the solution is to downgrade the packages versions as it's described at the link above.

Unfortunately that's not a long term solution as it would essentially mean I can never upgrade anything, because of interdependencies. So that's okay for a short-term work around, but we've passed the point of "short term workaround."

Also I should reiterate that my point is not that there is this bug or that bug. My point is that actually using the .NET Backend in a practical, real-world scenario to build an actual product is not currently feasible.
The problems extend beyond a particular bug, and into service, support, communication and guidance. .NET Backend is a framework level product - that is to say, you typically design around the idea of using it. When you're just using some add-on, it's fine for it to be pretty much unsupported. But when you're using a framework around which you will design your whole app, it can't be unsupported. There needs to be communication from the developers about what issues they're working on, mitigation/workarounds in the meanwhile, when they're next release is going to be, etc. etc.
So again, my point is less about this particular (albeit high severity) bug, and more about the fact that in its current state, with the current level of support, it's just a really bad idea to try to use it. That's obviously something that I would like to see changed, because I would like to use it.

Thanks for taking the time to leave feedback, and I’m sorry to hear you spent so much time on this!  I totally agree with you, the NuGet package update problem is a really big issue--probably our top user complaint.
The problem is that if you Update All, you can end up with a different version of a package than what we have hosted in Azure. So, you'll get runtime errors once you publish your service.  We are actually in the process of making this less error-prone by updating the NuGet package specs to hardcode the exact version of all dependencies. These updated packages should be out within a month.
If you’re interested, we can give you access to the pre-release packages and you can try out the experience (but only locally—you wouldn’t be able to deploy because the hosting environment doesn’t have the latest packages).
Currently this will be the best solution, and I’ll update this issue once we have a fix. However, we have also been investigating a design that will give developers more control over what is deployed and what packages can be referenced. We don't have a timeframe for this, however.
In the meantime, the best workaround is to NOT Update All, but rather update one of the leaf packages in the .NET backend (such as .entities) and it will pull in updates to dependencies. Then, you can update any other packages that you know are unrelated. I realize this is annoying, but at least it’s relatively easy to get your project back into a good state.
Another option is for you to create a new service project by using the Quickstart tab in the portal. Then, look at the packages.config file and see if any of the packages are newer than yours. If the .NET backend ones have the same version, then you should only update packages that you are sure are totally unrelated.
This is not a great workaround, I realize. People are used to Update All working just fine, and it can be quite surprising (and confusing!) that it causes so many problems.
In terms of the symbol files not working, could you note which assembly version you are having a problem with?  We'll verify that they have been published correctly.
With regard to communication about bugs and workarounds, this is definitely something we can improve. We actively monitor all forum conversations and bug reports and try to be as open as possible. I think the problem here is that we don’t have an issue tracker for the .NET backend, just the client SDKs. So, for the client SDKs, you can find out what bugs are being worked on and whether they have been fixed in master, but not released, etc.
We should follow this same process for the backend, and just manually update bugs as we fix in our private repository. We’ll also try to give a best estimate on release date. Generally we release backend updates every 4 weeks, but that can vary quite a bit, depending on how many bugfixes are in a given payload. However, when we find a major runtime bug, we do a rapid update and immediately refresh our hosting environment.
Sorry for the delayed response, but I wanted to be sure to give you an accurate and through answer. Please let me know if you have any follow-up questions or feedback.

Thanks for your detailed reply, I really appreciate it. I had forgotten about the limitation of the AMS environment not having the latest versions of certain packages. Part of the confusion there is that upgrading the Client SDK will also cause chain reaction upgrades, because the Client SDK will have minimums higher than what the .NET Backend has as requirements. To clarify, I understand why the Client SDK and Backend would have totally different dependencies - but it does make it even more confusing as most of the examples have both Client and Backend in the same solution. Hardening the NuGet dependencies would help a great deal here. While it will be somewhat annoying to attempt to upgrade and get shut down, it would be totally worth it because that would at least prevent the packages from getting into a broken state. As you can imagine, the only way for me to untangle this would be to download the sample and swap things around.
I'm very much interested in access to the pre-release packages though. I'm not going live any time soon so it's fine that I can't deploy them.
Part of the problem is that I'm trying to use SignalR over AMS. This is supposedly supported, but I will have to double check the dependencies, because if I'm remembering correctly, the ultimate break that made it unusable for me went something like this:
Upgrade SignalR AMS package -> Requires SignalR over Azure upgrade -> Requires Azure SDK upgrade -> Requires dependency that breaks AMS.
This is what I meant by "don't upgrade" not working for me. The SignalR AMS package is necessary to accomplish my goals. But I can do more research on that and post it here, if you'd like. I'll also get a more detailed repro of my problems with the symbol server. It wasn't necessarily that the wrong symbols were being loaded it was just very ... unpredictable. Sometimes the source for a class would load. Sometimes it would popup a dialog box. (For the same class.) Sometimes the source for one class would load, but not for another. I could never quite get to the root of the issue - to where the original exception was being thrown. But like I said, I can look this up as well.
As you can imagine from my initial quite lengthy and probably overly verbose problem statement, and this response, I'm quite appreciative of thought out and detailed responses. However, I would offer this small bit of advice: 15 days is a very long time to have no response at all. Even a response that says, "We've read this and will get back to you" would help. Part of the reason that I find it so difficult to communicate effectively back and forth is because having several weeks between a posting and a response does not come across as "actively monitor[ing]".
Perhaps a github dedicated to .NET Backend would help here? Even if there's no source code (though I would reiterate my recommendation that this be pushed open source as soon as can practically be accomplished) it would help for the purposes of tracking issues, and also as having a single point of contact/reference. Trying to post here, and then Stack Overflow, the MSDN forums, etc, feels like a shotgun kind of approach. I mean I know each of these places has communities, etc, but for people who are just trying to use the product and don't care about community, it would be good to have a place where questions can get answered quickly. At least, quicker than 15 days. Also, issues could get tracked. For instance the issue that I described above (the missing method) has a Stack Overflow related to it, but the answer of which was basicaly "Don't upgrade to the latest version of .NET Backend" - obviously that's no longer the recommended workaround. But the developer responding to it asked a question, then never seemed to follow up.
Thank you, again, for taking the time to reply to this issue. As I've now started trying to set up the Auth on an Web API service, it makes me even more desirous to see Azure Mobile Service working in such a way that I can actually use it.

My apologies for how late my last response was, and thank you for giving us constructive criticism. This was my fault--your issue sparked a team discussion, which delayed matters. Ironically, we usually respond much more quickly! You raised a lot of good issues and we wanted to come up with the right way improve things in the future. In hindsight, I really should have posted something! :-/
Do you have a link to the StackOverflow thread where we didn't follow up?  We get automatic emails on anything tagged "azure-mobile"--it's possible that we have a bug where we aren't getting notified on comments.
I'll bring it up with the team whether to make a new GitHub for backend issues, or use this one with the .NET runtime tag. Either way, we will add a note to the readme for the repo to make it clear that we welcome discussion of backend issues.
I hadn't thought about the client project making things confusing. I guess the best thing is to get into the habit of doing NuGet updates at the project level rather than solution level. We should add a note about this to our tutorials.
I'll look into the SignalR issue--we probably didn't update the package during the last build. Sorry for all the trouble that caused!  I'll look into the pdbs as well and make sure they all match.
I'm glad to hear that the auth support is working out--if you have any questions on best practices or particular providers, feel free to ask!
Finally, to get the pre-release NuGet packages packages, please email our team at<EMAIL_ADDRESS>We should be ready in a few days, as we are testing right now.

Okay so I wasn't able to trace down the dependency chain that caused the original problem, except that something updated Microsoft.Owin.Security.ActiveDirectory and that caused the update to JWT. Also I think I was conflating the Client SDK and WindowsAzure.ServiceBus, although the latter doesn't seem to have any strange dependencies. I'll watch out for it if it happens again I'll post a separate thread.
Here's the SO thread that I was referring to: http://stackoverflow.com/questions/26596519/jwtsecuritytokenhandler-set-certificatevalidator-method-not-found/27241624#27241624 and here's an MSDN thread where I'm asking about how to customize the authentication to add role-based security: https://social.msdn.microsoft.com/Forums/azure/en-US/6babace5-27f9-456d-9bc8-0f7b8219af2e/what-is-the-expected-pattern-for-rolebased-authentication-or-custom-claims-in-azure-mobile-service?forum=azuremobile
These have gotten responded to, but died out without resolution. That second one, I posted in the MSDN forums on the advice of some vendors (N3 LLC) that had gotten ahold of me asking if I needed any help in terms of Azure. I worked with them for awhile on this particular issue, but the last email I got from them wasn't terribly helpful, but that initial response on the MSDN Forum was a step in the right direction.
Should I repost the question in this GitHub? (Making a new thread for it, natch.)

For those interested in trying out the pre-release server-side Nuget package that locks down the dependencies, I've made them all available at staging.nuget.org.
You can add staging.nuget.org to your package sources in VS with:

Tools -> Options -> Nuget Package Manager -> Package Sources
Add a new source with name staging.nuget.org and source https://staging.nuget.org/api/v2/

Then when you go to add or update references and select staging.nuget.org you should see version 450.
Donna covered the changes in her response above, but please let me know if you run into issues or have questions.
Only use these staging packages locally—you wouldn’t be able to deploy because the hosting environment doesn’t have the latest packages.
I have no guaranteed ETA on when this will move to production, but I'll come back here to note when it does.

We forgot to update this thread--please try version 1.0.450.
@apollyonbob: you might be interested in the new Mobile App experience, that gives you full access to the underlying website configuration. In that environment, what you deploy is what is run--our backend runtime no longer has particular nugets that it will bind to.
To learn more, see http://azure.microsoft.com/en-us/documentation/services/app-service/


[FEA] Run benchmarks on a repo nightly but somehow show affects of updated dependencies

We need to run benchmarks on a repo nightly but somehow show affects of updated dependencies (even if benchmarked repo doesn't change).
The issue here is a benchmark run will happen every night even if there were no commits to the repo (meaning no code for the repo being benchmarked should theoretically affect benchmark perf vs. the previous run).  However, since other components in the stack probably did change and were rebuilt, those could affect performance.
Since the benchmark runs don't capture info about a dependency change - and even worse, will overwrite the previous run if the repo's commit hash didn't change - we need to somehow capture that the run is unique and is using a different set of dependencies (ie. different builds of other RAPIDS components it depends on)even when the component itself didn't change.

This should be done.


Query cosmos sdk module's data from smart contract

I developed a new Cosmos SDK module and integrated into my own chain.
I want to query new module's data from smart contract.
Is it possible?

Yes, you can use gRPC query for this.


in diarization, handle two-segment case gracefully

I'm seeing some failures for spectral clustering for spectral clustering with two samples with corresponding embeddings. This PR is a proposed fix for the issue and typographical changes for pruned similarity matrices (instead of prunned).
If we check inline if the lambda_gap_list (See https://github.com/speechbrain/speechbrain/blob/ed0027fbd4a53ca37e24fbf4d66df0cd920442f0/speechbrain/processing/diarization.py#L912) is empty, then we can circumvent this error. It looks like this will occur whenever only two samples are fed into Spec_Clust_unorm instantiations. Below, find a more extended description of the error in my particular case.

Specifically, I see a ValueError from numpy's argmax function
    913
    914             num_of_spk = (
--> 915                 np.argmax(
    916                     lambda_gap_list[
    917                         : min(self.max_num_spkrs, len(lambda_gap_list))

<__array_function__ internals> in argmax(*args, **kwargs)

.../site-packages/numpy/core/fromnumeric.py in argmax(a, axis, out)
   1193
   1194     """
-> 1195     return _wrapfunc(a, 'argmax', axis=axis, out=out)
   1196
   1197

.../site-packages/numpy/core/fromnumeric.py in _wrapfunc(obj, method, *args, **kwds)
     52     bound = getattr(obj, method, None)
     53     if bound is None:
---> 54         return _wrapit(obj, method, *args, **kwds)
     55
     56     try:

.../site-packages/numpy/core/fromnumeric.py in _wrapit(obj, method, *args, **kwds)
     41     except AttributeError:
     42         wrap = None
---> 43     result = getattr(asarray(obj), method)(*args, **kwds)
     44     if wrap:
     45         if not isinstance(result, mu.ndarray):

ValueError: attempt to get argmax of an empty sequence

For my data, the similarity matrix is functionally orthogonal
In [46]: sim_mat
Out[46]:
array([[0.9999998, 0.       ],
       [0.       , 0.9999997]], dtype=float32)

and the Laplacian used for spectral clustering is a 2x2 matrix of zeros, resulting in eigenvalues of 0, and I have an empty list for lambda_gap_list and a failure in the numpy.argmax invocation in https://github.com/speechbrain/speechbrain/blob/ed0027fbd4a53ca37e24fbf4d66df0cd920442f0/speechbrain/processing/diarization.py#L915-L919
Even if the Laplacian weren't all zeroes, it looks like the lambda_gap_list would still be an empty array when only receiving two input embeddings from how getEigenGaps behaves.

@nauman-daw, could you please take a look at this PR?

@mravanelli Sure! I will review this PR.

@mgoldey Thanks for adding this corner case.   @mravanelli I think we can merge this PR.
@mgoldey I am just curious to know why would someone want to diarize two segments?  I would rather make use of oracle k option instead of relying on eigen gaps.  Is there a specific problem that you are trying solve?

Thank you @mgoldey for the fix and @nauman-daw for the review.

@mgoldey Thanks for adding this corner case. @mravanelli I think we can merge this PR. @mgoldey I am just curious to know why would someone want to diarize two segments? I would rather make use of oracle k option instead of relying on eigen gaps. Is there a specific problem that you are trying solve?

I'm handling for audio files of very diverse lengths. Sometimes I only have 10 seconds of audio in my use case. Sometimes it's 3 hours. Unfortunately, I don't have the number of speakers a priori. Thanks for the the merge and feedback.


Feature/blacklist

Hi.
I love this plugin!
I have a request for a feature that prevents users selling specific types of items.
In other words, a blacklist.
So I implemented it.
This pull request suppose to:

Enable the server owner to specify multiple item types that he/she doesn't want players to sell
Prevent players adding blacklisted items to the market via the command: /um add

If you like this idea, please merge this request.
Thank you.

Thank you!


acpiIndex support for hostDevices interfaces in guest VM

Is your feature request related to a problem? Please describe:
A clear and concise description of what the problem is.
Describe the solution you'd like:
A clear and concise description of what you want to happen.
Describe alternatives you've considered:
A clear and concise description of any alternative solutions or features you've considered.
Additional context:
Add any other context or screenshots about the feature request here.

Could you please provide more info about your use case? You could start with the issue template that you've ignored


Make Originating Identity feature gate on by default

Enable Originating Identity Feature Gate by default.
Also add Feature Gate doc, using K8s FG doc as a template
doc preview available here:  https://deploy-preview-2277--svc-cat.netlify.com/docs/devguide/#featuregates

@jboyd01 Since you've done a bit of research of how "big k8s" does flags, do you recommend that we make feature flags as FeatureXDisabled going forward? So that we don't have to change the name like we did here?

@carolynvs the difficulty (at least my perceived difficulty) is with helm and the ability to check if a variable is set to false vs not defined.  I'd keep the FeatureGate as FeatureXEnabled, but the Helm variable should be featureXDisabled = true in variables.yaml and eventually that transitions to false.  The associated logic in the charts may seem backwards at first, but in the long run I think it sets us up properly to transition the feature to be enabled.   If we get agreement on this I'll update the dev guide doc.

/hold
Adding a hold while Jay tests out our working theory that you can't have undefined values in a helm chart. Let me know what you find!

@carolynvs I've rehacked the charts as we discussed, this looks like a good approach, and I doc'd it.  Bottom line is that within helm, we expect you to still set featureFooEnabled=true within values.yaml and within the template, I changed to be if not featureFooEnabled then set the fg=false.   Works and seems correct to me.

  Too much flux for such a simple thing.  The end result is simple though, thanks @carolynvs

/approved
nice docs


Running storefront on heroku

What I'm trying to achieve is to run storefront on heroku

I deployed it on heroku - its even pass true build/deploy process:

remote: -----> Pruning devDependencies
remote:        Skipping because NPM_CONFIG_PRODUCTION is 'false'
remote:
remote: -----> Build succeeded!
remote: -----> Discovering process types
remote:        Procfile declares types     -> (none)
remote:        Default types for buildpack -> web
remote:
remote: -----> Compressing...
remote:        Done: 204.3M
remote: -----> Launching...
remote:        Released v12
remote:        https://some-name.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/some-name.git
 * [new branch]        master -> master

But it fails while running npm start because of lack of memory:

2020-03-17T14:09:03.219472+00:00 heroku[web.1]: Starting process with command `npm start`
2020-03-17T14:09:05.409664+00:00 app[web.1]:
2020-03-17T14:09:05.409690+00:00 app[web.1]: ><EMAIL_ADDRESS>start /app
2020-03-17T14:09:05.409691+00:00 app[web.1]: > cross-env NODE_ENV=develop webpack-dev-server --history-api-fallback --watch --port 3000 --mode development --hotOnly
2020-03-17T14:09:05.409691+00:00 app[web.1]:
2020-03-17T14:09:08.002869+00:00 app[web.1]: Starting type checking and linting service...
2020-03-17T14:09:08.005119+00:00 app[web.1]: Using 1 worker with 2048MB memory limit
2020-03-17T14:09:08.121298+00:00 app[web.1]: ℹ ｢wds｣: Project is running at http://localhost:3000/
2020-03-17T14:09:08.121490+00:00 app[web.1]: ℹ ｢wds｣: webpack output is served from /
2020-03-17T14:09:08.121569+00:00 app[web.1]: ℹ ｢wds｣: 404s will fallback to /index.html
2020-03-17T14:09:21.715981+00:00 heroku[web.1]: Process running mem=705M(137.7%)
2020-03-17T14:09:21.717724+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2020-03-17T14:09:40.932166+00:00 heroku[web.1]: Process running mem=913M(178.4%)
2020-03-17T14:09:40.932166+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)
2020-03-17T14:09:46.803136+00:00 heroku[web.1]: State changed from starting to crashed
2020-03-17T14:09:46.634423+00:00 heroku[web.1]: Process running mem=1279M(250.0%)
2020-03-17T14:09:46.634538+00:00 heroku[web.1]: Error R15 (Memory quota vastly exceeded)
2020-03-17T14:09:46.634538+00:00 heroku[web.1]: Stopping process with SIGKILL
2020-03-17T14:09:46.667044+00:00 heroku[web.1]: Process running mem=1214M(237.2%)
2020-03-17T14:09:46.667044+00:00 heroku[web.1]: Error R15 (Memory quota vastly exceeded)
2020-03-17T14:09:46.667242+00:00 heroku[web.1]: Stopping process with SIGKILL
2020-03-17T14:09:46.788568+00:00 heroku[web.1]: Process exited with status 137

version:
branch master
commit 909a80aca1a9532b85e78e71073804068ee37897 (HEAD -> master, origin/master, origin/HEAD, heroku/master)
Edit: changing dyno plan to >= standard-2x would help... but still... should it be so memory consuming?
Edit2: after increasing plan and change 1GB to 2GB of ram it stops blowing up with Error R15.
But there is anther new issue with PORT bind on Heroku. I increased boot time radically just to eliminate this as factor and it still occurs:

Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 180 seconds of launch  (it 60s by default)

There is lots of suggestions to change PORT from fixed one to dynamically allocated as Heroku does:
https://help.heroku.com/P1AVPANS/why-is-my-node-js-app-crashing-with-an-r10-error
But where is this app.listen part or equivalent? I'm not familiar with type script...

I'm not sure it's a good idea to run npm start on Heroku- it's a command you use in your local development to see changes as you build code. I'm not too familiar with deployment of static apps in Heroku but I would say you should rather compile everything locally with npm run build and then push the dist directory to Heroku and serve the app from there.

Your hint lead me to: https://medium.com/netscape/deploying-a-vue-js-2-x-app-to-heroku-in-5-steps-tutorial-a69845ace489
Thx

I found this issue while trying to deploy the dashboard. Here is what I found as a solution: https://gist.github.com/hone/24b06869b4c1eca701f9
(there is no need for the express server - in the dashboard project there is already a static.json - I suspect this is the way mirumee deploys it too)


Expose iTwin.js Core Version for extensions/embed-api

@aruniverse if we're going to expose this as a public API, we should add some documentation on it. Obviously it should be pretty self explanatory though...

@aruniverse if we're going to expose this as a public API, we should add some documentation on it. Obviously it should be pretty self explanatory though...

yea i kinda assumed the variable was self explanatory/documenting... if its not we got problems :)

@pmconne mind reviewing when you get a chance?

@mergifyio backport release/3.1.x


Update Chart.yaml add sourse

Add source, to point to the charts source code.
Very helpful if the chart is displayed based on chart.yaml file and there is no reference where the code is.
In Particular in artifact hub. it is helpful, to know where the templates are.

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

This is great! Thanks for adding this.
This change requires an update to the README.md.  The easiest way to do that is to run helm-docs in the chart directory and commit the README.md file.


Link to creativecommons.org in the main navigation

Currently there's no easy way to get from CC Open Source to creativecommons.org, we should add a link to it in the main navigation.

Hi, am an outreachy applicant, would love to work on this.

Go ahead

Hello, I made a proposal to add the link since there is not much activitie here for last 7 days.
Please @kgodey check if it's okay this way.


Set created logger level instead of global log level

Very simple fix that prevents setup_log from overriding the global log level. Instead it sets the level of the newly created log directly.

Excellent. Thank you.


On new/updated contact info, update existing (unknown) email threads

Scenarios:

Quite often, you receive an SMS from a new contact and you add the contact to your phone afterwards.
It is also common for people to send SMS like "This is my new phone number - XYZ", which we add to an existing contact afterwards.
Missed call is used commonly to share your number with stranger, which then is added manually to contacts.

However, the SMS / Call logs of these remain marked with<EMAIL_ADDRESS>even after the contact is added/updated.

Is there a way to manually correct this?
Can the app sniff for newly added or updated contact information and if the phone number is same as one of the "unknown" contacts, update the names/email addresses of those SMS/Call log threads?

too complicated


Automatic way to deal with changing proxy servers

Problem Description
AdGuard doesn't support changing proxy automatically. Many VPN services offers many servers at different latencies so we may want to switch to the fastest server. Right now the only way to do that is manually updating the proxy settings.
Proposed Solution

Automation API supports adding/updating proxy servers so we could do it by using taskers or alternatives.
Provide a way to dynamically set/switch proxy servers as per configured.

Provide a way to dynamically set/switch proxy servers as per configured.

Via Tasker API as well?

Provide a way to dynamically set/switch proxy servers as per configured.

Via Tasker API as well?

See the 1.

Issue moved to AdguardTeam/AdguardForAndroid #3363 via ZenHub


There is no active Order associated with the current session

What is your question / Please describe your issue
I follow README to deploy and when I finish registering users and do login, the login status will not be maintained. I get the following error when I click continue to ship after filling in the customer information：
{"data":{"setCustomerForOrder":{"errorCode":"NO_ACTIVE_ORDER_ERROR","message":"There is no active Order associated with the current session","__typename":"NoActiveOrderError"}}}
What version of vendure are you using?
1.5.2
Code of Conduct

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

Hey @Garnett1314
Thanks for reporting that issue. Are you working on this repository or have you generated the project using VSF CLI?
Also, @michaelbromley could you share some light on what the issue might be from Vendure side? :)

Thank you for your reply, I cloned the project and then ran it, referencing the document https://docs.vuestorefront.io/vendure/guide/configuration.html#steps

These are the instructions for development configuration. The configuration of this project repository, not the final template that the user should get. If you want to build a project based on Vendure please refer to this https://docs.vuestorefront.io/vendure/guide/getting-started.html#how-to-start-if-you-want-to-try-out-the-integration

I used VSF CLI to build the project, but the error is the same.

I used VSF CLI to build the project, but the error is the same.

Hi, the situation is that I can only add one item and the shopping cart is cleared when I refresh the page, and the login status is also cleared.I have set requireVerification: false in  VendureConfig.

It looks a bit like the cookies were being reset each page refresh. Would you be able to create a reproduction repository? I will take a look at this issue

Yes that certainly sounds like the sessions are not being correctly communicated back to the Vendure server.

I've copied my local code here：https://github.com/Garnett1314/vuestorefront-new.git

From what I see, this is a regular project (with the latest version). I tried it on my environment and it works just fine. I am using Node 14, Vendure 1.2.3, MacOS.
Have you included these in your vendure config?
// vendure-config.ts
...
  authOptions: {
    tokenMethod: 'bearer', // authorization header method
    requireVerification: false, // disable register by email verification
  },

Also, maybe you could send a video of how the issue appears? I would like to help but I basically cannot reproduce it on my environment so not sure if this is an issue with the project or environment.

Are you saying that you are using the code I copied with no problem? My environment.
node v16.15.0
Vendure 1.5.2 ,
ubuntu 20.04
I will try again using the same environment as you.

So sad, still the same problem, I'm going to collapse.

Can you tell me which module the keep login is working in?

Login return body.
{"data":{"login":{"id": "2", "identifier": "xxxxxxxxxx@mail.dsp.tw","__typename": "CurrentUser"}}}
But there is no change in the cookies,

This integration is specifically designed to work with bearer tokens, not cookies - hence the need to set your Vendure config as Jakub mentioned in the comment above.
Can you confirm that you set those 2 settings in your vendure config to match the code in that comment?

Closing as there was no further contact regarding the issue.


Fix bug for listing pipelineRun from command palette

Codecov Report

Merging #529 (6065d9f) into master (1bac5ad) will decrease coverage by 0.20%.
The diff coverage is 100.00%.

:exclamation: Current head 6065d9f differs from pull request most recent head 340c2e2. Consider uploading reports for the commit 340c2e2 to get more accurate results

@@            Coverage Diff             @@
##           master     #529      +/-   ##
==========================================
- Coverage   68.19%   67.98%   -0.21%
==========================================
  Files          86       86
  Lines        5722     5722
  Branches     1016     1016
==========================================
- Hits         3902     3890      -12
- Misses       1820     1832      +12

Impacted Files
Coverage Δ

src/tekton/pipelinerun.ts
82.69% <100.00%> (ø)

src/tekton/tektonitem.ts
63.73% <100.00%> (ø)

src/kubectl.ts
39.62% <0.00%> (-3.78%)
:arrow_down:

src/extension.ts
85.46% <0.00%> (-3.49%)
:arrow_down:

src/tekton/addtrigger.ts
74.82% <0.00%> (-2.80%)
:arrow_down:

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 1bac5ad...340c2e2. Read the comment docs.


Excel formula inside code block treated as inline query

What happened?
When making notes with excel queries (or I guess if you want to have notes on dataview inline queries), dataview tries to execute it even if it's inside a codeblock. For instance dataview will attempt to execute the following query and inevitably fail:
```excel
=SUMIF(B2:B25,">5")
```

Note that this only seems to happen in the reading view, it seems to behave as expected in the editing view.
I was advised to change the prefix to something else, which worked for me. I was also asked to open this issue so that there could potentially be a note added to the documentation. This is similar to https://github.com/blacksmithgu/obsidian-dataview/issues/1579.
However, I was also thinking that it might be ideal to not execute inline queries if they are in a code block. Otherwise, it might be a bit awkward to have notes on inline querie since changing the prefix would technically render what is shown in the notes invalid. Ultimately, this might not be a practical issue though, since I'm unsure what the likelihood is that someone forgets they changed the prefix and then proceeds to go back to their notes at a later time and wonders why the = prefix isn't working for them.
DQL
No response
JS
No response
Dataview Version
0.5.47
Obsidian Version
1.0.3
OS
MacOS

You can disable Codeblock Inline Queries option in the Dataview settings. This will disabling parsing of code blocks starting with an equal sign.

Maybe developers can add a property in frontmatter to disable DataView parsing in the current document? Like
dataview-enable-inline: false
dataview-enable-jsinline: false


Suspected download error

When I downloaded the firmware script for my asus c302c, the following problem occurred:
error downloading one or more required
files; cannot continue
I live in China, so I suspect it is my network problem, but this problem will still occur after I use the network agent.
Can you think of what caused this situation? How to solve it?

there's nothing I can do if something is blocking either my site or my github repo =(


turn on method call checks

Currently, allowed checks method calls (which takes a long time) whenever possible (pytype is installed and the user is running Python 3.7–3.10). This doesn't allow to first do the quick checks, which cover most constructs, and only once those are fixed do  method call checks.
To support this, turn off method checks by default and add an option (e.g. -m and --methods) that turns it on. If turned on but the checks aren't possible, print the error messages as currently.
If method checks are off but could be done, remind the user of this new option after the program has run.

I would like to pick up this one up if you don't mind, getting used to the GitHub workflow again!
Looks like the documentation (i.e the README) would need updating once this is added, do you have any preferences or guidance for this? is this something that should be done along with the enhancement or will you be editing this as we go along?

Thanks for helping out! I prefer whoever fixes an issue to also update the documentation. I think only the README section about method call checks will need to be updated.

How do you feel about printing all warnings and reminders to do with the method checking after the program has run?
I have a  turn-on-method-call-checks branch currently printing warnings to do with Python version and installing pytype before the program has run (as before), and the reminder to use option -m or --methods (if it has not been used and can be) printing after the program has run. It seems like we could just print all of these warnings after the program has run where they are possibly easier to see and it could make the code a little less cluttered. Is there any reasons why this should not be done?

Just noticed that argparser.exit() does not print implicit newline character causing mild annoyance of terminal prompt not being on newline after abrupt program exit. As far as I can tell for our purposes argparser.exit() and sys.exit() can serve the same purpose (unless I am missing something) and sys.exit() does end with implicit newline. Suggestions:  either replace instances of argparser.exit() with sys.exit() (which when given string argument results in exit code 1 as well) or append newline characters onto each error message.
I would vote for using sys.exit() unless there is a specific reason for the argparser.exit() ?

I think I changed sys.exit to argparse.exit after reading more about both, but can't remember the reason. If argparse.exit is giving you that error, it's OK to change to sys.exit.

argparse.exit() only seems to do this when it has the exit code argument . I tried it with only the message and newline occurred as normal.


A few cosmetic tweaks to the social spec

Fix a few typos, use the canonical podcast namespace, jabber -> xmpp

@benjaminbellamy, do these small changes look ok to you?


Update base fonts

💭 thought: Didn't fancy the system font fallbacks?

sans-serif falls back to the systems default sans serif font face, should be good enough


black formatting

Codecov Report

Merging #18 (bb15195) into main (607cb07) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #18   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           38        38
  Lines         1597      1599    +2
  Branches       210       211    +1
=========================================
+ Hits          1597      1599    +2

Impacted Files
Coverage Δ

pre_commit_dbt/check_model_has_description.py
100.00% <100.00%> (ø)

pre_commit_dbt/check_script_has_no_table_name.py
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


perf: causes the browser to become unresponsive on pages containing a large number of kanji

Describe the bug
Vicious bugs extremely seriously affect the user experience and must be fixed.
Reproduction
Example Site
Expected behavior
The browser will not become unresponsive.
Browser
Chrome
System Info
System:
    OS: Windows 11 10.0.22621
    CPU: (12) x64 AMD Ryzen 5 5600U with Radeon Graphics
    Memory: 2.61 GB / 13.86 GB
  Binaries:
    Node: 20.6.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
    npm: 10.2.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.12.1 - ~\AppData\Local\pnpm\pnpm.CMD
  Browsers:
    Edge: Chromium (120.0.2210.121)
    Internet Explorer: 11.0.22621.1

Additional context
Target:

Add LRU cache.
Reduce the time complexity of the algorithm.
Limit calls to Service Worker.

Validations

[X] Check if you're on the latest Furigana Maker version.
[X] Follow our Code of Conduct
[X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
[X] Read the Contributing Guidelines.
[X] I would like to fix this BUG via a PR.

The reason has not yet been determined...
Once this bug is triggered, the developer tools will also be stuck, making it impossible to effectively locate the cause of the bug. It has been determined that it is not caused by frequent calls to the service worker.
However, this issue has been alleviated through the "On-off Auto Mode" option introduced in v1.2.0. When this option is off, Furigana Maker will not automatically add furigana to the web page, that is, it will ignore all selector rules.
A temporary solution is to turn off automatic mode for such large pages, for example switching ja.wikipedia.org to inactive on the Edit Rules page.

Maybe it can automatically detect when the page is larger than a certain value (such as 500KB) and turn off Auto Mode?
This is a good way to mitigate this error and is not difficult to implement, so consider it.

This bug is caused by reflow.

Closed by https://github.com/aiktb/FuriganaMaker/commit/e1cd662d1cada0f831866b09d6f0f677e496b0fe
Not sure if this calculation method and size 500 is correct.
  const htmlSize = document.documentElement.outerHTML.length / 1024; // KB
  if (htmlSize > 500) {
    ...
    return
  }

There is a problem with the current script execution time. The DOM is not loaded completely, which will cause the calculated value of htmlSize to be too small.
Um... this issue is likely to be unresolved, and this solution is easily bypassed because it is not sure what value htmlSize should be set to. 500 has been confirmed to still trigger this bug on this page.
Well, set the selcetor rule corresponding to ja.wikipedia.org to inactive by default.
It is uncommon for websites like Wikipedia to have over 500KB of UTF-8 encoded plain text, and these means should be sufficient.

The load event is used to increase the calculation accuracy of htmlSize.
Closed by https://github.com/aiktb/FuriganaMaker/commit/6fefe92a847b24e1a5a0e9c65f642028042f3b5d.

This issue has not been fixed, it still exists, the measurement of htmlSize fluctuates too much, and often does not accurately reflect "whether the page will freeze".
One idea is to measure the time it takes to insert and remove an element in the page, and disable the extension if this exceeds a certain number.
No time to complete this yet.

I came up with an idea to add a red dot to the popup icon when the warning is triggered and indicate the reason in the title.


Toga Label not working on iOS

If you add a Label in iOS, the application crash with the exception:
  File "/Users/marc/Library/Developer/CoreSimulator/Devices/294E285B-2221-460A-B009-B2FFF9DB83D4/data/Containers/Bundle/Application/B2E6BC5C-4ECC-447D-810D-ACD19EFFE87D/Hello World.app/Library/Python.framework/Resources/lib/python3.5/site-packages/colosseum/layout.py", line 174, in _set_dimension_from_style
    if not self._dimension_is_defined(axis):
  File "/Users/marc/Library/Developer/CoreSimulator/Devices/294E285B-2221-460A-B009-B2FFF9DB83D4/data/Containers/Bundle/Application/B2E6BC5C-4ECC-447D-810D-ACD19EFFE87D/Hello World.app/Library/Python.framework/Resources/lib/python3.5/site-packages/colosseum/layout.py", line 110, in _dimension_is_defined
    return value is not None and value > 0
TypeError: unorderable types: tuple() > int()

The error seems to be in this line, but I am not sure if I understood correctly all the layout stuff :) I just compared this line in other widgets and cocoa implementation... and at the end, the app works with this patch.


Fairplay DRM Error getting license

Bug
I'm testing Fairplay from my application on a physical iOS device and receiving the error "Error getting license from skd://${ContentIdValue}, HTTP status code 403". With these exact same three URLs (source URI, license server, and certificate URL), this video does play from Shaka Player Demo.
I had no issues implementing Widevine. I've integrated ExpressPlay DRM with AWS MediaPackage. MediaPackage is where I get the source URL from. I stored my fairplay certificate in an s3 bucket, which is the URL I refer to. I call an API from expressplay to generate a license server URL. I know these are all fine because as mentioned, they work from Shaka Player Demo.
Platform
iOS
Which player are you experiencing the problem on:

iOS

Environment info
React native info output:
System:
    OS: macOS 11.2.2
    CPU: (8) x64 Apple M1
    Memory: 271.01 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 15.3.0 - /usr/local/bin/node
    Yarn: Not Found
    npm: 7.0.14 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.0 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.87<IP_ADDRESS>99119
    Xcode: 12.5/12E262 - /usr/bin/xcodebuild
  Languages:
    Java: <IP_ADDRESS> - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: ~0.63.3 => 0.63.4
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Library version: 5.1.1
Steps To Reproduce

Pass your source URI, license certificate URL, and license server URL as props.

Expected behaviour

Video should play

Reproducible sample code
      <Video
        source={{
          uri: Source_URI,
        }}
        drm={{
          type: "fairplay",
          certificateUrl: Cert_URI,
          licenseServer: ExpressPlay_License_Acquisition_URL,
          headers: {
            "content-type": "application/octet-stream",
          },
        }}
        style={{ width: width, height: height }}
        resizeMode="contain"
        rate={1.0}
        volume={1.0}
        ref={videoRef}
        poster={movie.img}
      />

I've narrowed the issue down a bit further. I was debugging within RCTVideo.m and found on line 1798 is where my issue occurs.
              NSData *spcData = [loadingRequest streamingContentKeyRequestDataForApp:certificateData contentIdentifier:contentIdData options:nil error:&spcError];
I can confirm my certificateData is populated from the URL that I pass. I've tried passing different contentId's such as the KID (Resource ID from AWS Media Package), the Id of the asset, and the Id of the packaging group. I always receive an empty response with an error in spcError:
spcError	NSError *	domain: @"AVFoundationErrorDomain" - code:<PHONE_NUMBER>3709539816	0x00000002825df360
Which is probably the 403 forbidden error. Still not sure why this isn't working from my player but, works from shaka player demo.

Hi, how did you solve that?

I switched from ExpressPlay to PallyCon and had no issues. Tried everything I could for ExpressPlay and even worked with their support team


fixes - #833

Internal set used to track observed columns set to immutable sets/maps

@cjmctague would you like to try merging this to Apache git?  I'm on IRC if you have any questions.

@keith-turner I just dropped the omap. Yea I'll give that a go at someone point. Doing some office work  currently.

@cjmctague  the formatting in the latest commit is off.  Running mvn clean compile will fix it.

@keith-turner alright I'll fix that. Is fluo-eclipse-style.xml still correct? I used that to format the code.

@cjmctague That style file may be out of date slightly... or it may work differently under different Eclipse versions. During the build, we use a maven plugin to format the code. That maven plugin uses a specific version of Eclipse libraries to do the job, so things are consistent. As long as you remember to do a build on the command-line and check in the changes, things should work out 95% of the time (checkstyle rules will probably catch the other 5%, requiring only slight manual tweaks).

maven plugin uses a specific version of Eclipse libraries to do the job, so things are consistent.

I always use maven to format the code because of this.  One wrinkle though is that the maven build does not organize imports, that still needs to be done in the IDE.  I think some of the import changes in this PR fix a problem from a previous commit.


Posibility to stop all current and pending animations

Background: I have a quiz-game application with several animations. It is possible to restart the whole thing in the middle of the game with some animations still running. I coded the game with Backbone and Marionette. In a restart the whole quiz-subpage (with its DOM-elements) get removed from the page, but there is not a reload of the page.
Now I have the problem, that after a restart the complete-callbacks of some of the velocity-animations still get triggered, even when the DOM-elements are not on the page anymore, which results in errors by selecting outdated elements.
One solution IMO would be a global method to stop all animations in velocity.
Is this possible anyhow?
Thanks in advance.

How do I do this without jQuery, using Velocity() api?


Draft: Building out a really noisy PDS for BGS loadtesting

We need to characterize the performance of the BGS implementation so I'm building supercollider which is a very noisy PDS that serves to emit lots of events of a configurable mix on the subscribeRepos socket.
It will track the event throughput on all connections and make it easy to test the performance of BGS implementations.

Benching on this latest version using the in-memory persister:

Looks kinda weird, throughput on the event manager is pretty low for emitted events when lots of events are being added but during playback (the third peak), the emission rate goes up a ton. Wonder what's going on there.

This test had three phases

Produce 1M events and then connect 3 sockets with cursor=0 for full playback
Produce 10M events with 3 sockets connected (starting from live)
Connect 3 sockets to an event manager that's already got 10M events in the queue for playback

Phase 1 shows solid peak throughput at around 60k events per second per socket
Phase 2 shows sustained throughput of around 16k events per second per socket while persisting at the same time as emitting
Phase 3 shows higher sustained throughput of 75k events per second per socket

I wonder if this has to do with the event manager buffer size?

oops, didn't mean to click that button, guess it's time for bed

So I bumped the event manager buffer to 16_384 and managed to get much better emission during event persistence:

With a rate limiter keeping us at 80k events per second produced, we can keep a dumb socket in sync. This should be a good baseline for per-socket throughput.

Since the BGS actually checks the validity of events (looking up the repo and making sure the events are in order), we may have to revert back to basically running a PDS here.

Running with a dev BGS connected to the socket, we can now effectively speedtest a BGS! (at least with posts with the same content coming from a bunch of different users).
![CleanShot 2023-07-06 at 14 16 14](https://github.com/bluesky-social/indigo/assets/1617325/77545f9b-6538-4408-b76e-7685b2cc45c9)


Multichannel audio support

Can we have more than 2 channels?

Android api support 4 but I'm not sure if rtmp and rtsp protocols support it.
I need investigate it

This is discarded because Android doesn't support 4 channel in, only out so microphone can't record with more channels.


Log using PM2

Hi I am using PM2 on my Pi4 to run homebridge but am struggling to work out what I need to do to setup logs in Config UI?
Current config is -
        "name": "Config",
        "port": 8080,
        "auth": "form",
        "theme": "auto",
        "tempUnits": "c",
        "sudo": true,
        "log": {
            "method": "systemd"

Any help would be greatly appreciated.

What command do you use to see the logs at the command line?
Enter the same command into the "custom" log method: https://github.com/oznu/homebridge-config-ui-x#logs-from-custom-command

Rather than PM2, you could give the hb-service command a try, this will setup Homebridge as a service to auto-start on boot and configure everything else for you. Checkout https://github.com/oznu/homebridge-config-ui-x/wiki/Homebridge-&-Systemd-(Raspbian,-Ubuntu,-Debian) for the full instructions. Make sure you stop the pm2 service if you decide to do this.

Ok will have a look.
I’ve just tried the custom command that I normally use “pm2 logs homebridge”
However get this -

The capital P in pm2 might be breaking that.

Correct!!!! Thank you so much. All working!


Issue list in line edit

Hi ☺
Can u help me
It's can the user editing in issue list ..the subject or custom field or etc ..

@sk-ys