[FEATURE] Backend scaling metric provider model and scaling policies

Description
In order to allow for greater flexibility and to cover more use cases; Replicator should provide the ability to use metrics for scaling outside of the standard Nomad provided resource constraints. This should certainly be implemented as a factory/provider model so that additional data sources can be added over time. This functionality will require changes to the job group scaling policy configuration structure to accommodate a large array of unknown threshold types without the meta keys being a very long and hard-coded array which the user must adhere to.
Likely initial candidates on metric backends will be CloudWatch and Graphite due to the project members experience and internal product use case but suggestions are more than welcome.
General discussion on this feature would be highly appreciated.

Totally agree with this sentiment; CloudWatch metrics gathering would be an easy way to get any custom metric (in AWS of course).  Anybody have the cycles to breath new life into this one? 😄


gh #94 Wrong size for Profile file string parsing

Corrected the string size used for parsing the profile fields

 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.Bhanu Prakash seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


R2D2 Clock v1

Adds new clock face based on Interlaced Clock that has R2D2 on it

I apologize for the dirty commit history on this. I can take a stab at fixing that if you want before merge.

No worries about the commit history - this looks great, thanks!


Performance regression in .ffill()

Under pandas 0.12:
In [4]: from pandas import *

In [5]: from numpy.random import randn

In [6]: In [14]: df = DataFrame({'one' : Series(randn(3), index=['a', 'b', 'c']),
   ....:                 'two' : Series(randn(4), index=['a', 'b', 'c', 'd']),
   ....:                 'three' : Series(randn(3), index=['b', 'c', 'd'])})

In [7]: df
Out[7]:
        one     three       two
a -0.899073       NaN  2.164487
b  0.142272  0.158407 -1.387754
c  0.583869  1.063867  0.542845
d       NaN  0.739295  1.527532

In [8]: df.ffill()
Out[8]:
        one     three       two
a -0.899073       NaN  2.164487
b  0.142272  0.158407 -1.387754
c  0.583869  1.063867  0.542845
d  0.583869  0.739295  1.527532

In [9]: %timeit df.ffill()
10000 loops, best of 3: 64.4 µs per loop

With pandas 0.15:
In [7]: %timeit df.ffill()
The slowest run took 7.81 times longer than the fastest. This could mean that an intermediate result is being cached
10000 loops, best of 3: 101 µs per loop

@twiecki this is barely a couple of method calls. Your frame is way to small for this to even matter. Timings should involved at least 10k elements. Pls show your actual usecase.

In [49]: size = 20000

In [50]: df = pd.DataFrame(np.random.randn(size, 5))

In [51]: idx = np.random.randint(0, size, size=size*.2)

In [52]: df.values[idx] = np.nan
In [28]: %timeit -n 10000 df.ffill()
10000 loops, best of 3: 561 µs per loop

With Pandas 0.15:
In [63]: %timeit -n 10000 df.ffill()
10000 loops, best of 3: 604 µs per loop

We're upgrading pandas from 0.12 to 0.15.2 on zipline and find some performance regressions in our use of the history function which creates a RollingPanel under the hood: https://github.com/quantopian/zipline/blob/master/zipline/utils/data.py#L28. We're not sure yet what's going on but find a very steep slow down and this is one hypothesis.

fwiw, master and 0.15.2 are faster on my machine.

I think there has to be another culprit here.  That kind of change in performance (43 microseconds if I'm reading it right) would be unnoticeable.

@twiecki yeh this is a tiny difference
if u have a more substantive diff pls reopen


Make org.gradle.util public api

This PR finalizes #3103 by marking org.gradle.util as pubic.
The change in default imports should not cause any problems and the only clashing name I could find was Path. Fortunately, the behavior won't change. and the default import order prefers org.gradle.api.model.Path over org.gradle.util.Path.
Because of the new classes appear on the API, I needed to add (sometimes meaningless) javadoc adjustments to make the formatting checks pass.

@bot-gradle test rFM

OK, I've already triggered ReadyForMerge build for you.

@bot-gradle

Sorry I don't understand what you said.
Currently I support the following commands:

@bot-gradle test {BuildStage} to trigger a build

e.g. @bot-gradle test SanityCheck plz
SanityCheck/CompileAll/QuickFeedbackLinux/QuickFeedback/ReadyForMerge/ReadyForNightly/ReadyForRelease are supported
test this means test ReadyForMerge
SanityCheck can be abbreviated as SC, ReadyForMerge as RFM, etc.
Specific builds:

AST: AllSmokeTestsReadyForMerge
AFT: AllFunctionalTestsReadyForMerge
ASB: AllSpecificBuildsReadyForMerge
ACT: AllCrossVersionTestsReadyForNightly
APTN: AllPerformanceTestsReadyForNightly
AFTN: AllFunctionalTestsReadyForNightly
ACTR: AllCrossVersionTestsReadyForRelease
AFTR: AllFunctionalTestsReadyForRelease

@bot-gradle help to display this message
@bot-gradle clean to clear the conversation history

@bot-gradle test rFN

OK, I've already triggered ReadyForNightly build for you.


What's the advantage over the built-in command caffeinate?

Convenience. Lets you caffeinate with one easy import inside Python.

Ah, okay. Thanks.
In addition, maybe you could add an assertion to prevent the system from sleeping, to entirely replicate the caffeinate command. ;)


Permission denied for loading the config.json

Once I upgraded to Docker 1.7, I got following warning message when I run docker on Jenkins CI. (The jenkins user is inside the docker group already.)
WARNING: Error loading config file:stat /root/.docker/config.json: permission denied

There is no config.json existing, and I don't need this file as well. This only happens when I run the build on Jenkins. But if I run the same thing under the same user manually, I won't get this warning.
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

@killercentury most likely the problem is that docker is running in a container as root, hence the homedir is /root but the jenkins user does not have permissions to access /root/.docker, so regardless of whether /root/.docker/config.json exists, it errors out. And something must be different when you try it manually.
I am not sure whether we want to skip the error if permissions are denied. /cc @duglin

Hi I think I have the same/similar problem:
When I try to login into my private docker registry within a Jenkins build via:
docker login -u dennis -p dennis reg:5000
I get:
WARNING: Error loading config file:stat /root/.docker/config.json: permission denied
Error saving config file: mkdir /root/.docker: permission denied
But when I do this via command line and user jenkins there is no error
docker version
Client version: 1.7.0
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 0baf609
OS/Arch (client): linux/amd64
Server version: 1.7.0
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 0baf609
OS/Arch (server): linux/amd64
docker info
Containers: 0
Images: 29
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 29
Dirperm1 Supported: false
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.13.0-52-generic
Operating System: Ubuntu 14.04.2 LTS (containerized)
CPUs: 1
Total Memory: 994 MiB
Debug mode (server): true
File Descriptors: 9
Goroutines: 16
System Time: 2015-07-16T22:19:58.205560688Z
EventsListeners: 0
Init SHA1:
Init Path: /usr/bin/docker
Docker Root Dir: /var/lib/docker

try specifying a different config dir - ala: https://github.com/docker/docker/pull/12856

via command line
docker login -u dennis -p dennis reg:5000
I get
WARNING: login credentials saved in /var/lib/jenkins/.docker/config.json
but in combination with jenkins, docker wants to to something with /root

@dennisgermany in the variant where it works, what user are you when you run the docker command and who owns the $HOME dir ?

I'm using Docker in Docker via the following image: killercentury / jenkins-dind
In the variant where it works...
1.) ssh my machine
2.) start docker in docker container
3.) docker -i -t exec mydockerindocker "/bin/bash"
4.) change to jenkins user: su jenkins
5.) login into my private registry (that is also a docker container via shared via link): docker login -u dennis -p dennis reg:5000
output:
WARNING: login credentials saved in /var/lib/jenkins/.docker/config.json
Account created. Please see the documentation of the registry http://reg:5000/v1/ for instructions how to activate it.
HOME_DIR: /var/lib/jenkins
drwxrwxrwx 12 jenkins jenkins 4096 Jul 18 07:52 jenkins

I just solved the problem.
The docker image "killercentury / jenkins-dind" starts jenkins via "supervisor". But supervisor does override the environment variable for HOME by default. HOME was still set to root's HOME even though running as user jenkins.
Solution: Modify the supervisor config in:
/etc/supervisor/conf.d/supervisord.conf
and add for jenkins: environment=FOO=JENKINS_HOME="/var/lib/jenkins",HOME="/var/lib/jenkins",USER="jenkins"


Disambiguate the way we provide the server password (/PASS)

On https://irc.gitter.im/, we show the server password as /PASS. It is a common problem that people provide it wrong and are unable to connect.
Usually there is a specific field to input the server password in or the /server command passing it as a parameter, see wiki for list of clients.
We should disambiguate the way we show the server password to help ease the setup. Something as simple as "Server Password xxx"

This will be solved when https://github.com/troupe/irc.gitter.im/pull/2 is merged


We included supply_increase for POS

Co-authored-by: Andrew Breckenridge<EMAIL_ADDRESS>Co-authored-by: Avery Morin<EMAIL_ADDRESS>Co-authored-by: RJ Rybarczyk<EMAIL_ADDRESS>Co-authored-by: Jonathon Hill<EMAIL_ADDRESS>Thank you for contributing to Coda! Please see CONTRIBUTING.md if you haven't
yet.
Include supply_increase to correctly compute total currency in Proof of Stake. We made the changes in mechanism.ml and proof_of_stake.ml and change it's corresponding dependencies to compile correctly in OCaml.
Checklist:

[ ] Tests were added for the new behavior
[X] All tests pass (CI will check this if you didn't)
[X] Does this close issues? List them:

Closes #1021

no

(jk)


IndirectFieldDecl

In according to transpiling file sqlite/shell.c of sqlite.
We have error:
panic: unknown node type: 'IndirectFieldDecl 0x2be19a8 <line:167:25> col:25 implicit fpstate 'struct _fpstate *''

You will need to create a new indirect_field_decl.go and indirect_field_decl_test.go like the other AST nodes in the ast package.

Could you clarify - Where you take the pattern for that element?

See #203


«OSError: cannot write mode RGBA as JPEG» when get_thumbnail for PNG in mode=P

What did I do?
Tried to get thumbnail (JPEG without transparency) for PNG image in mode=P (indexed colours?).
(It works good for PNG with mode=RGBA but not mode=P)
What did I expect to happen?
Saving thumbnail without any exceptions, flattened alpha-channel into solid background of some colour (eg THUMBNAIL_PADDING_COLOR, some specific colour from settings or 'white').
Test image

https://user-images.githubusercontent.com/244666/45594613-a5aba780-b9a6-11e8-9321-da6710f9fb4f.png
What actually happened?
>>> i = Image.open('forbes.png')
>>> i
<PIL.PngImagePlugin.PngImageFile image mode=P size=400x400 at 0x7FE650252CC0>

>>> get_thumbnail(i, '100x106', crop='center', quality=99, format='PNG')
<sorl.thumbnail.images.ImageFile at 0x7fe6501d6390>

>>> get_thumbnail(i, '100x100', crop='center', quality=99, format='JPEG')
OSError: cannot write mode RGBA as JPEG

Versions
Python == 3.6.5
Pillow == 5.2.0 (or any versions >= 4.2.0)
sorl-thumbnail == 12.4.1
Related issue
https://github.com/python-pillow/Pillow/issues/2609
How to fix it?
You need to make a background image with certain colour and merge source image into background:
    def _colorspace(self, image, colorspace, format):
        if colorspace == 'RGB':
            # Pillow JPEG doesn't allow RGBA anymore. It was converted to RGB before.
            if image.mode == 'RGBA' and format != 'JPEG':
                return image  # RGBA is just RGB + Alpha
            if image.mode == 'LA' or (image.mode == 'P' and 'transparency' in image.info):
                if format == 'JPEG':
                    newimage = Image.new('RGB', image.size, '#eebbaa')
                    mask = image.convert('RGBA').split()[-1]
                    newimage.paste(image.convert('RGBA'), (0, 0), mask)
                else:
                    newimage = image.convert('RGBA')
                    transparency = image.info.get('transparency')
                    if transparency is not None:
                        mask = image.convert('RGBA').split()[-1]
                        newimage.putalpha(mask)
                return newimage
            return image.convert('RGB')
        if colorspace == 'GRAY':
            return image.convert('L')
        return image

Correct result

I have the same issue when saving an image through django rest framework. Where should I put this piece of code?

This comment is not related to the issue but might help people like  me looking for a solution. If you don't mind having PNG format thumbnails you can use the following setting
THUMBNAIL_PRESERVE_FORMAT = True
This saves PNG images as PNG thumbnails and thus bypasses the RGBA problem completely.

Still relevant :)

I'm curious as to why sorl worked fine before and now it doesn't in this case. Maybe it was better to just throw a warning?

So part of the issue for me is in the fact that sorl uses the file extension to determine the output format instead of actually reading the headers of the file like Pillow does to determine format. That means that the workaround THUMBNAIL_PRESERVE_FORMAT = True does not work for me when a user has misnamed a jpg file as a png file. I assume that any patch to fix this would be engine dependent, I'd love a pointer as to how to start on this to get this done.
Should this be an independent issue?

Same problem here. Will be there a fix for this?

Any update on this? :)

My current work-around:
# ImageField from model
image_field = image_model.image
img = Image.open(image_field.file)
fill_color = "#ffffff"
if img.mode in ("RGBA", "LA"):
    background = Image.new(img.mode[:-1], img.size, fill_color)
    background.paste(img, img.split()[-1])
    img = background
    thumbnail = get_thumbnail(img, "800x800", quality=90, format="JPEG")
else:
    thumbnail = get_thumbnail(img, "800x800", quality=90)

As you can see, it's possible to put this behavior directly in get_thumbnail, if some alpha_replace is provided. I think that the behavior could follow automatically:
If the we call get_thumbnail(img, "800x800", alpha_replace="#ffffff"), then SORL will automatically detect and replace alpha channels
This way - even if for whatever reason the developer wants to do it on PNG, it will happen. If the kwarg is not supplied, then we can still fail if asked to convert a PNG with an alpha channel to JPEG (which IMO is correct behavior).

Bump


sap.m.Select click is creating a PopUp

OpenUI5 version:
Browser/version (+device/version):
Any
What is the expected result?
Just a list below the comboBox
What happens instead?
It creates a cumbersome PopUp
Any other information? (attach screenshot if possible)
We just want to the items to be displayed below the comboBox..
I've updated all the resources\sap\m folder with the latest versions of everything.
But it is still happening.

Closing issue.. it is a CSS failure I've found in the application base .
Sorry

To add more information:
Using the sequence:
sap.m.App -> sap.m.Page -> sap.m.NavContainer -> sap.m.Page
Inside this last Page, there is the Select component.
If I put it directly on the first sap.m.Page, the behavior is different and as expected.

Ok, after some research, I found that in MOBILE this is the behaviour.. to show the cumbersome DIALOG..
oh my..
Closing the issue


doc: Overhaul documentation

Rearrange documentation to fit the diataxis model, and bring in content from recent publications, n2sn docs, and add new tutorials.
This is a fairly large PR, but mostly recycles language from the existing docs or other reviewed sources. The focus here should be on ensuring the docs flow is accessible, the tutorials/how-tos work for people new to the codebase, with a small focus on proof reading.
Description

Documentation has been split into 4 sections:

Explainations
Tutorials
How-Tos
Reference

TODO

[x] Clear all latent TODOs in docs
[x] Adjust readme
[x] refactor to follow diataxis using formatting of pydata/ophyd
[ ] Get feedback and testing on all how-tos and tutorials.

Motivation and Context

Docs have been a sticking point on adoption in the community.
Review Request:
Please from scratch clone this repository.
git clone https://github.com/maffettone/bluesky-adaptive -b doc-overhaul
cd bluesky-adaptive
python -m venv venv
source venv/bin/activate
pip install -e ".[dev]"
make -C docs/ html

Then in a browser, navigate to
file:///bluesky-adaptive/docs/build/html/index.html
And please focus on making sure tutorials and how-to's are clear and functional. The tutorials are involved and include bluesky pods, so you will need Podman on your system.

Tagging @thomaswmorris for attention and review.

I'm going to merge this as-is for operational expediency (we wanted to see built docs for a beamtime running today!).
Please still leave comments here and we will follow up on them.


Person detection entity turning off too quickly

RLC-810a camera recently upgraded to firmware version v<IP_ADDRESS>4 and since then, the person detection entity state changes to "detected" when a person is detected as expected, but it quickly changes to "clear" within a few seconds, even though a person is still clearly in the view and moving around. With previous firmware version v<IP_ADDRESS> the entity will stay on until the person leaves. Nothing else changed since upgrading firmware version.
HA 2021.10.4
I have 2x 810a cameras, one on the older firmware which behaves as i would expect, and downgrading firmware back to the older version fixes this

Hi,
It's the new way that Reolink has implemented their firmware, they clear the flag after 5 seconds and they don't give a f$ck about our opinion.

Hmm ok. How has nobody else complained about this though? Ive searched through everything and havent found anyone mentioning this.

The fact is that if you want to build automation or get alerts, it shouldn't be a problem if the "ON" time is short so most people won't notice it.
I asked Reolink to go back to previous norms and/or include timestamps in events but they dont seem to care much

Ok. So how does that logic actually work then. If it goes off after 5 seconds, how is the next motion event captured? My expectation would be then that after it going off for 5 seconds it would come back on straight away as there would be a new event? In my testing it appeared very random as to when it came back on.

that is their 'magic'. our integration will update whenever it receives a
webhook call from them. They have failed to provide the new algorithm they
are using.  :)
On Tue, Nov 9, 2021 at 10:57 AM Bruskey @.***> wrote:

Ok. So how does that logic actually work then. If it goes off after 5
seconds, how is the next motion event captured? My expectation would be
then that after it going off for 5 seconds it would come back on straight
away as there would be a new event? In my testing it appeared very random
as to when it came back on.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/fwestenberg/reolink_dev/issues/357#issuecomment-963990182,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABTC5PVUQE3AD4DKH5UKCLLULDWADANCNFSM5HT44MBA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


sqlite driver suppor save

1. What version of Go and system type/arch are you using?

go 1.20
2. What version of GoFrame are you using?

gf 2.4.2
3. Can this issue be re-produced with the latest release?
yes
4. What did you do?

sqilte driver don't allow to insert and replace
Save operation is not supported by sqlite driver
1. Save operation is not supported by sqlite driver
   1).  github.com/gogf/gf/contrib/drivers/sqlite/v2.(*Driver).DoInsert
        /Users/marxluo/go/src/lusson.cc/gogf/gf/contrib/drivers/sqlite/sqlite.go:183

actually, sqlite support this feature in 3.24.0（2018）https://www.sqlite.org/releaselog/3_24_0.html
so， sqilte driver should allow save method
5. What did you expect to see?
sqilte driver should allow save method
6. What did you see instead?
no

@lusson-luo It's great! It then needs some contributor make the pr.

有两个思路可以实现，1. 采用 insert or replace 方式替代 save 方法。2. 采用 insert ... CONFLICT(xxx) set xxx=xxx。
第二种方式有个问题，sqlite 需要指明冲突的键名，不能冲突就替换，目前无法知道哪些列是冲突，用不了。
第一种方式replace目前有相关，sqlite 的save直接调用 replace 也行，改动最小。
@gqcn 您看看采取那种方式比较好
insert ... CONFLICT 参考教程：https://www.sqlite.org/lang_upsert.html


v0.7.0: update hubot-stackstorm to 0.12.0

The new hubot-stackstorm release includes https://github.com/StackStorm/hubot-stackstorm/pull/214

OK. Build is passing after cleaning up the shrinkwrap file manually in https://github.com/StackStorm/st2chatops/pull/175/commits/223f6db93641b9c54c58becbe659a9c070f22649 - It was somehow picking up a skills-validator dep as a file dep for msteams. That's not listed in https://www.npmjs.com/package/botbuilder/v/3.30.0 dependencies so I just deleted that from npm-shrinkwrap.json.


A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. If this occurs in real application, please report this bug to Flutter

A KeyUpEvent is dispatched, but the state shows that the physical key is not pressed. If this occurs in real application, please report this bug to Flutter. If this occurs in unit tests, please ensure that simulated events follow Flutter's event model as documented in HardwareKeyboard. This was the event: KeyUpEvent#276a5(physicalKey: PhysicalKeyboardKey#7002a(usbHidUsage: "0x0007002a", debugName: "Backspace"), logicalKey: LogicalKeyboardKey#00008(keyId: "0x100000008", keyLabel: "Backspace", debugName: "Backspace"), character: null, timeStamp: 2:49:12.586677)
'package:flutter/src/services/hardware_keyboard.dart':
Failed assertion: line 441 pos 16: '_pressedKeys.containsKey(event.physicalKey)'
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=2_bug.md
When the exception was thrown, this was the stack:
#2      HardwareKeyboard._assertEventIsRegular. (package:flutter/src/services/hardware_keyboard.dart:441:16)
#3      HardwareKeyboard._assertEventIsRegular (package:flutter/src/services/hardware_keyboard.dart:452:6)
#4      HardwareKeyboard.handleKeyEvent (package:flutter/src/services/hardware_keyboard.dart:544:5)
#5      KeyEventManager.handleRawKeyMessage (package:flutter/src/services/hardware_keyboard.dart:867:35)
#6      BasicMessageChannel.setMessageHandler. (package:flutter/src/services/platform_channel.dart:77:49)
#7      BasicMessageChannel.setMessageHandler. (package:flutter/src/services/platform_channel.dart:76:47)
#8      _DefaultBinaryMessenger.setMessageHandler. (package:flutter/src/services/binding.dart:380:35)
#9      _DefaultBinaryMessenger.setMessageHandler. (package:flutter/src/services/binding.dart:377:46)
#10     _invoke2. (dart:ui/hooks.dart:190:15)
#14     _invoke2 (dart:ui/hooks.dart:189:10)
#15     _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:42:5)
#16     _Channel.push (dart:ui/channel_buffers.dart:132:31)
#17     ChannelBuffers.push (dart:ui/channel_buffers.dart:329:17)
#18     PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:589:22)
#19     _dispatchPlatformMessage (dart:ui/hooks.dart:89:31)
(elided 5 frames from class _AssertionError and dart:async)

Hello @xaldarof. Thank you for filing this issue. Can you please provide the following information?

A complete and minimal, reproducible example.
The output of flutter doctor -v
The output of flutter run-v

Seems like a duplicate of https://github.com/flutter/flutter/issues/110950

@ggirotto Possibly a duplicate but in this issue, the Backspace key is causing it while in https://github.com/flutter/flutter/issues/110950, it's the Control key. There are other issues related to this. While they look the same, they are all slightly different which is why I am holding off marking this as a duplicate.

https://github.com/flutter/flutter/issues/87391
https://github.com/flutter/flutter/issues/94502
https://github.com/flutter/flutter/issues/106475

I also get this issue when using a Autocomplete with manual fieldViewBuilder with a TextFormField on Windows in Debugbuild (haven't verified on release).
The Issue is that I only input Upper/Lowerletter input and then Hold "shift" pressed while navigating the dialog. And then, only then, the Autocomplete stops accepting any modifiers. Backspace stops working, I can't remove any Input anymore then.

Full code extract
Autocomplete(
  fieldViewBuilder: (BuildContext context,
	  TextEditingController textEditingController,
	  FocusNode focusNode,
	  VoidCallback onFieldSubmitted) {
	return TextFormField(
	  controller: textEditingController,
	  autofocus: true,
	  decoration: const InputDecoration(
		helperText: 'Name',
	  ),
	  onChanged: (value) {
		_newAttributeName = value;
	  },
	  focusNode: focusNode,
	  onFieldSubmitted: (String value) {
		onFieldSubmitted();
		print('You just typed a new entry  $value');
	  },
	);
  },
  optionsBuilder: (TextEditingValue textEditingValue) {
	if (attribute != null || textEditingValue.text == '') {
	  return const Iterable<String>.empty();
	}
	return cache.attributesByName.keys
		.where((String option) {
	  return option
		  .contains(textEditingValue.text.toLowerCase());
	});
  },
  onSelected: (String selection) {
	_newAttributeName = selection;
	_newAttributeSelected =
		cache.attributesByName[selection];
	if (_newAttributeSelected != null) {
	  _newAttributeUnit = _newAttributeSelected!.unit ?? '';
	}
  },
),

@0xpr03 Could what you're experiencing be one of the issues I mentioned in https://github.com/flutter/flutter/issues/111070#issuecomment-1244469681

@exaby73 it's apparently https://github.com/flutter/flutter/issues/106475
If I just hold shift pressed during the input dialog, I experience the same issue, without Autocomplete and just the TextFormField.

Thank you @0xpr03. Since it's been quite a long time since OP has responded, I am closing this issue due to inactivity. If you still reproduce this issue, and it's not one of the above mentioned issues, please comment with steps to reproduce, error logs and the output of flutter doctor -v. Thank you.


set SETTING_INITIAL_WINDOW_SIZE to zero in concurrency test (5.1.2)

The PR changes the strategy for testing the behavior of the server in case the number of open streams exceed the limit, to setting SETTING_INITIAL_WINDOW_SIZE to zero and then opening the streams, from trying to exceed the number of open streams by not setting the END_HEADERS flag of the HEADERS frames being sent.  The original approach (of sending such HEADERS frames continuously) is a violation of HTTP/2 spec. 6.2 that is handled by peer as a PROTOCOL_ERROR.
originally reported as: https://github.com/h2o/h2o/issues/268#issuecomment-90135116
PS. the original report complains about what seems like an ECONNRESET error which I am unable to reproduce (it is unsurprising consireding the nature that RST packet (the cause of the error) would only be sent if the server receives data after the socket is being close(2)ed).  While I believe that the error on the reporters environment would disappear once this PR gets merged (since with the modified code a server compliant to the HTTP/2 spec. would no longer close the connection until receiving the last frame sent by the client), it might worth reviewing the source code of h2spec to see if there would be any case where the test might end up with ECONNRESET as a form of socket close (in addition to read() returning zero).
Cc @devlearner

Thank you for the PR!
I agree with your changes but I feel that using the SETTING_INITIAL_WINDOW_SIZE with 0 value is a bit tricky way. so I fixed this bug in #25 by using HEADERS frame without END_STREAM flag.
If you still have a problem, please reopen the issue.
Thank you for your continued help!

Thank you for fixing the problem!  Confirmed that #25 fixed the issue.

I agree with your changes but I feel that using the SETTING_INITIAL_WINDOW_SIZE with 0 value is a bit tricky way. so I fixed this bug in #25 by using HEADERS frame without END_STREAM flag.

I do not have strong opinion on how it should be fixed, however, HTTP/2 spec. 8.1 states that:

An HTTP response is complete after the server sends - or the client receives - a frame with the END_STREAM flag set (including any CONTINUATION frames needed to complete a header block). A server can send a complete response prior to the client sending an entire request if the response does not depend on any portion of the request that has not been sent and received. When this is true, a server MAY request that the client abort transmission of a request without error by sending a RST_STREAM with an error code of NO_ERROR after sending a complete response (i.e., a frame with the END_STREAM flag). Clients MUST NOT discard responses as a result of receiving such a RST_STREAM, though clients can always discard responses at their discretion for other reasons.

This means that server implementations might report a false positive for this test when using the approach taken in #25.  I believe the intended use case for this paragraph is to allow the server to terminate the stream with a 405 Method Not Allowed response before receiving content body (in other words it is a functionally-equivalent of 100 continue in HTTP/1.1), so some servers might actually implement such semantics.

A bit about clarification.  100 continue is still alive in HTTP/2.  You can use it if you want; probably you don't because we have flow control in place.
The HTTP/2 specification allows 0 length DATA frame for content-length 0 case, and I think it is permitted to GET request followed by 0 length DATA frame with END_STREAM.
Also, HTTP/2 is allowed to send trailer field whenever you want (spec does not say we cannot do ), so we can send HEADERS with GET method and without END_STREAM, followed by HEADERS containing trailer header with END_STREAM.

That said, I lean to support @kazuho 's solution.  Yes, it is a hack, but it would work better than omitting END_STREAM because of wide variety of implementation behaviour.

@kazuho, @tatsuhiro-t  Thank you for pointing this out!
I didn't consider the 100 continue.
Eventually, I also support the @kazuho 's solution and fixed it in #26 again.

@summerwind @tatsuhiro-t Thank you!!


Is there a sqlalchemy.sql.or_(*criteria_list) to get a sql dialect in gorm

Before posting a bug report about a problem, please try to verify that it is a bug and that it has not been reported already, please apply corresponding GitHub labels to the issue, for feature requests, please apply type:feature.
DON'T post usage related questions, ask in https://gitter.im/jinzhu/gorm or http://stackoverflow.com/questions/tagged/go-gorm,
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go 1.7
Which database and its version are you using?
mysql
What did you do?
i want to implement this python code in go, but i found that it has no sql.or_ func;
    if marker is not None:
        marker_values = []
        for sort_key in sort_keys:
            v = getattr(marker, sort_key)
            marker_values.append(v)

        # Build up an array of sort criteria as in the docstring
        criteria_list = []
        for i in xrange(0, len(sort_keys)):
            crit_attrs = []
            for j in xrange(0, i):
                model_attr = getattr(model, sort_keys[j])
                crit_attrs.append((model_attr == marker_values[j]))

            model_attr = getattr(model, sort_keys[i])
            if sort_dirs[i] == 'desc':
                crit_attrs.append((model_attr < marker_values[i]))
            elif sort_dirs[i] == 'asc':
                crit_attrs.append((model_attr > marker_values[i]))
            else:
                raise ValueError(_("Unknown sort direction, "
                                   "must be 'desc' or 'asc'"))

            criteria = sqlalchemy.sql.and_(*crit_attrs)
            criteria_list.append(criteria)

        f = sqlalchemy.sql.or_(*criteria_list)
        query = query.filter(f)

my go code like this, but it will report error, because the time field value is separated by space, this leads to the mysql syntax error;
criteriaList := make([]string, 0)
	// by default, SQL `WHERE` execute before `ORDER`
	// TODO: use reflect package to check if the SortKey field is valid and properly indexed
	if markerImage.ID != "" {
		markerImageMaps, err := getAllFieldMaps(markerImage, true)
		fmt.Println(markerImageMaps)
		if err != nil {
			return nil, errors.NewHttpError(400, err)
		}
		for u, _ := range sortKeys {
			crit_attrs := make([]string, 0)
			//subQuery := db.Instance().Unscoped()
			var v int
			for v = 0; v < u; v++ {
				sortValue, exists := markerImageMaps[sortKeys[v]]
				if !exists {
					return nil, errors.NewHttpError(400, "No such sort key")
				}
				//subQuery = subQuery.Where(fmt.Sprintf("images.%s = ?", sortKeys[v]), sortValue)
				//sql injection
				crit_attrs = append(crit_attrs, fmt.Sprintf("images.%s = %v", sortKeys[v], sortValue))
			}
			sortValue, exists := markerImageMaps[sortKeys[u]]
			if !exists {
				return nil, errors.NewHttpError(400, "No such sort key")
			}
			if sortDirs[u] == "desc" {
				//subQuery = subQuery.Where(fmt.Sprintf("images.%s < ?", sortKeys[u]), sortValue)
				crit_attrs = append(crit_attrs, fmt.Sprintf("images.%s < %v", sortKeys[u], sortValue))
			} else if sortDirs[u] == "asc" {
				//subQuery = subQuery.Where(fmt.Sprintf("images.%s > ?", sortKeys[u]), sortValue)
				crit_attrs = append(crit_attrs, fmt.Sprintf("images.%s > %v", sortKeys[u], sortValue))
			}
			//fmt.Println(subQuery.QueryExpr())
			//query = query.Or(subQuery.QueryExpr())
			//fmt.Println(query.QueryExpr())
			andSubSqlStr := strings.Join(crit_attrs, " AND ")
			fmt.Println(andSubSqlStr)
			criteriaList = append(criteriaList, andSubSqlStr)
		}
	}

	query = query.Where(strings.Join(criteriaList, " OR "))

the mysql error:
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '07:38:45 +0000 UTC OR images.created_at = 2017-10-26 07:38:45 +0000 UTC AND imag' at line 1

(/opt/go-projects/src/cloud-go/pkg/glance-go/core.go:157)
[2017-12-14 17:50:14]  [0.27ms]  SELECT * FROM `images`  WHERE (images.deleted = 0) AND (images.name is not NULL) AND (images.container_format = 'mebs') AND (images.created_at < 2017-10-26 07:38:45 +0000 UTC OR images.created_at = 2017-10-26 07:38:45 +0000 UTC AND images.id > 466f67e1-7bba-4951-b50a-95c5d87a106d) ORDER BY created_at desc,id asc

Sorry @kitianFresh , I don't get your problem, could you write a runnable program following this guide? https://github.com/jinzhu/gorm/blob/master/.github/ISSUE_TEMPLATE.md


Audio cracking, robotic sound on MacOS with Meta Quest Pro

[ ] I have read the FAQ.
[ ] I have searched in existing issues.

There have been reports on cracking audio, some of them have been (partly) resolved:
https://github.com/Genymobile/scrcpy/issues/3793
https://github.com/Genymobile/scrcpy/issues/4055
This issue ticket here is also for audio crackling but for this specific configuration:
Environment

OS: MacOS 12.6.6,
scrcpy version: 2.1
installation method: brew
device model: MacBook 14" M1 Max
Android version: Meta Quest Pro, Android 12, Meta Quest-Build 54.0

Describe the bug
I am mirroring my audio app OpenSoundLab. The image seems fine as usual, but audio is never clean and glitch free. Sounds like plenty of buffer underruns. I have increased both audio buffers up to seconds, but it doesnt change the glitches. Very low settings make it worse though. If I record the sound has the same glitch to it. adb via TCP/IP is a bit worse than USB.

Firstly, if you record, is the recorded file (played with VLC for example) correct, with correct audio?
scrcpy --record=file.mp4

Then, does it work with only more audio buffering:
scrcpy --audio-buffer=200

?
If not, does it work better with a greater output buffer:
scrcpy --audio-buffer=65 --audio-output-buffer=15

?

Thanks for the swift reply.
I ran the commands you suggested
scrcpy --record=file.mp4
scrcpy --audio-buffer=200
scrcpy --audio-buffer=65 --audio-output-buffer=15
But the problem is in all cases the same – at least I can't hear any significant improvements or differences.
By the way the audio playback seems super slow, like a time streatch at 50% speed or so.
BUT I just opened up other Quest apps, they work fine with all configurations of scrpy!
So, unfortunately, it seems that the combination of my app (OpenSoundLab) and scrcpy does not work well together.
OpenSoundLab is based on Unity and I guess I set the buffer size to the minimum setting there... will try to set it to normal and test that.

By the way the audio playback seems super slow, like a time streatch at 50% speed or so.

Oh, so it might be a capture problem (stereo vs mono, or wrong bit-depth somewhere).
Could you post the video file you recorded with scrcpy --record=file.mp4?

Two results of scrcpy --record=file.mp4 can be downloaded from there:
https://drive.switch.ch/index.php/s/QiidYCHDf5wSmGs
https://drive.switch.ch/index.php/s/DzzmEF1aQnEh36M

Yes, I can try that.
Do you have a theory? I find it weird that apparently all other Quest apps seem to work...

I don't know, but it looks like this post (see the whole discussion).

I don't have another mobile, my phone ui (infinix xOS) has like built in equilizer which i cannot turn off it either goes to music, gaming and other presets but cannot be turned off

Also try to increase READ_MS to see if it changes something.

Building went smooth, but you could add to the build instructions that Android Studio must be run once in order for it to write the sdk to ~/Library/Android/sdk.
Here is a part of the log output:
[server] INFO: === [28844329] pts=28842001, 960 samples
[server] INFO: === [28869529] pts=28863021, 960 samples
[server] INFO: === [28880137] pts=28863021, 960 samples
[server] INFO: === [28885217] pts=28884337, 960 samples
[server] INFO: === [28903168] pts=28884337, 960 samples
[server] INFO: === [28907416] pts=28906223, 960 samples

I increased READ_MS to 20 but it did not help.

Just found out that at least one other Meta Quest app (Gorilla Tag) is also suffering from the glitches...

[server] INFO: === [28844329] pts=28842001, 960 samples
[server] INFO: === [28869529] pts=28863021, 960 samples
[server] INFO: === [28880137] pts=28863021, 960 samples
[server] INFO: === [28885217] pts=28884337, 960 samples
[server] INFO: === [28903168] pts=28884337, 960 samples
[server] INFO: === [28907416] pts=28906223, 960 samples

There's a problem here: it gives 1920 samples every 20ms of pts, while at 48KHz it should give 960 samples every 20ms. Is it the same with the apps which work?

Ah, I see.

I will try to increase the READ_MS even more.

As a hotfix, I will try to catch these cases and skip the read when the pointer hasn't moved.

What else could be tried?

OK, so with longer excerpts, it looks ok (on average you get 20ms of samples every 20ms).
If you record with some recorder app directly on the device, does it work better?

It looked OK, but it did not sound OK...
Increasing the READ_MS more did not help...
The hotfix I was not able to get working correctly due to the complexity of the code...
BUT: I just rebuilt my app with the "Good Latency" setting in Unity instead of "Best Latency" and the glitches are gone without any patches and with default parameters!
Should I change the title of this ticket to indicate the source of the trouble? I assume all Unity apps can be affected.
So, now some new questions arise, since I want to use scrcpy for capturing or streaming OpenSoundLab performances wirelessly:
Is there a way to play the sound both on the headset and on the receiving computer simulataneously? Apparently not yet, but that would be great, see https://github.com/Genymobile/scrcpy/issues/3891 and https://github.com/Genymobile/scrcpy/issues/3875.
Is there any chance to get to super low latencies? At the moment I really have to keep --audio-buffer at the default of 50 while on USB, lower values give dropouts. And even if I lower the settings, the audio always seems to have some minimum latency of at least 100ms, while the video can be very low latency. I am on wired speakers. For performance settings that is too high. Couldn't find a solution in the existing issues.

BUT: I just rebuilt my app with the "Good Latency" setting in Unity instead of "Best Latency" and the glitches are gone without any patches and with default parameters!

Oh, interesting!

Is there any chance to get to super low latencies?

One problem is that AudioRecord provides samples every 20ms. Another problem is that the encoders provide encoded data every 20ms (for OPUS) or 21.67ms (for AAC). Yet another problem is that the audio capture API is not very low-latency friendly. See https://blog.rom1v.com/2023/03/scrcpy-2-0-with-audio/#audio-capture
With lower capture/encoding values, we could theoretically use a smaller audio buffer;

And even if I lower the settings, the audio always seems to have some minimum latency of at least 100ms

Paradoxically, if you lower the audio buffer and get buffer underruns, it will probably temporarily increase the latency (because you will "play" silence during the underrun + the real audio samples when they arrive, with compensation to speed them up).

Is there a way to play the sound both on the headset and on the receiving computer simulataneously? Apparently not yet, but that would be great, see #3891 and #3875.

Indeed, currently not possible :disappointed:

I increased READ_MS to 20 but it did not help.

Could you post the logs when READ_MS is 5ms (or even lower)?

I increased READ_MS to 20 but it did not help.

Could you post the logs when READ_MS is 5ms (or even lower)?

Yes, but do you mean with low or normal audio buffers in Unity?

With "Best Latency" (when there are glitches).

Output with 5ms:
[server] INFO: === [168102057] pts=168101901, 240 samples
[server] INFO: === [168108985] pts=168101901, 240 samples
[server] INFO: === [168113261] pts=168101901, 240 samples
[server] INFO: === [168114513] pts=168101901, 240 samples
[server] INFO: === [168115511] pts=168101901, 240 samples
[server] INFO: === [168124919] pts=168123560, 240 samples
[server] INFO: === [168126237] pts=168123560, 240 samples
[server] INFO: === [168129595] pts=168123560, 240 samples
[server] INFO: === [168130304] pts=168123560, 240 samples
[server] INFO: === [168145333] pts=168144538, 240 samples
[server] INFO: === [168146885] pts=168144538, 240 samples
[server] INFO: === [168147483] pts=168144538, 240 samples
[server] INFO: === [168149057] pts=168144538, 240 samples
[server] INFO: === [168166787] pts=168166678, 240 samples
[server] INFO: === [168168489] pts=168166678, 240 samples
[server] INFO: === [168169526] pts=168166678, 240 samples
[server] INFO: === [168171168] pts=168166678, 240 samples
[server] INFO: === [168188291] pts=168187764, 240 samples
[server] INFO: === [168189168] pts=168187764, 240 samples
[server] INFO: === [168190899] pts=168187764, 240 samples
[server] INFO: === [168191925] pts=168187764, 240 samples
[server] INFO: === [168193608] pts=168187764, 240 samples
[server] INFO: === [168212060] pts=168209742, 240 samples
[server] INFO: === [168213265] pts=168209742, 240 samples
[server] INFO: === [168221869] pts=168209742, 240 samples
[server] INFO: === [168223853] pts=168209742, 240 samples
[server] INFO: === [168230226] pts=168209742, 240 samples
[server] INFO: === [168231151] pts=168229860, 240 samples
[server] INFO: === [168233654] pts=168229860, 240 samples
[server] INFO: === [168234313] pts=168229860, 240 samples
[server] INFO: === [168251628] pts=168251448, 240 samples
[server] INFO: === [168258792] pts=168251448, 240 samples
[server] INFO: === [168260156] pts=168251448, 240 samples
[server] INFO: === [168261092] pts=168251448, 240 samples
[server] INFO: === [168272787] pts=168272528, 240 samples
[server] INFO: === [168274605] pts=168272528, 240 samples
[server] INFO: === [168275650] pts=168272528, 240 samples
[server] INFO: === [168279314] pts=168272528, 240 samples
[server] INFO: === [168280889] pts=168272528, 240 samples
[server] INFO: === [168294023] pts=168293898, 240 samples
[server] INFO: === [168297951] pts=168293898, 240 samples
[server] INFO: === [168302163] pts=168293898, 240 samples
[server] INFO: === [168303188] pts=168293898, 240 samples
[server] INFO: === [168315332] pts=168315203, 240 samples
[server] INFO: === [168316428] pts=168315203, 240 samples
[server] INFO: === [168317797] pts=168315203, 240 samples

Output with 2ms:
[server] INFO: === [265740966] pts=265722161, 96 samples
[server] INFO: === [265743437] pts=265743357, 96 samples
[server] INFO: === [265744466] pts=265743357, 96 samples
[server] INFO: === [265745911] pts=265743357, 96 samples
[server] INFO: === [265746521] pts=265743357, 96 samples
[server] INFO: === [265747469] pts=265743357, 96 samples
[server] INFO: === [265748455] pts=265743357, 96 samples
[server] INFO: === [265749042] pts=265743357, 96 samples
[server] INFO: === [265752558] pts=265743357, 96 samples
[server] INFO: === [265754117] pts=265743357, 96 samples
[server] INFO: === [265758386] pts=265743357, 96 samples
[server] INFO: === [265764857] pts=265743357, 96 samples
[server] INFO: === [265765848] pts=265764737, 96 samples
[server] INFO: === [265766423] pts=265764737, 96 samples
[server] INFO: === [265767298] pts=265764737, 96 samples
[server] INFO: === [265768783] pts=265764737, 96 samples
[server] INFO: === [265769621] pts=265764737, 96 samples
[server] INFO: === [265769985] pts=265764737, 96 samples
[server] INFO: === [265774510] pts=265764737, 96 samples
[server] INFO: === [265776063] pts=265764737, 96 samples
[server] INFO: === [265777110] pts=265764737, 96 samples
[server] INFO: === [265778965] pts=265764737, 96 samples
[server] INFO: === [265785991] pts=265785910, 96 samples
[server] INFO: === [265787528] pts=265785910, 96 samples
[server] INFO: === [265788572] pts=265785910, 96 samples
[server] INFO: === [265789806] pts=265785910, 96 samples
[server] INFO: === [265790408] pts=265785910, 96 samples
[server] INFO: === [265791026] pts=265785910, 96 samples
[server] INFO: === [265793120] pts=265785910, 96 samples
[server] INFO: === [265794340] pts=265785910, 96 samples
[server] INFO: === [265796465] pts=265785910, 96 samples
[server] INFO: === [265797608] pts=265785910, 96 samples
[server] INFO: === [265801241] pts=265785910, 96 samples
[server] INFO: === [265807329] pts=265807214, 96 samples
[server] INFO: === [265811365] pts=265807214, 96 samples
[server] INFO: === [265812161] pts=265807214, 96 samples
[server] INFO: === [265813396] pts=265807214, 96 samples
[server] INFO: === [265814251] pts=265807214, 96 samples
[server] INFO: === [265817406] pts=265807214, 96 samples
[server] INFO: === [265818002] pts=265807214, 96 samples
[server] INFO: === [265818764] pts=265807214, 96 samples
[server] INFO: === [265819873] pts=265807214, 96 samples
[server] INFO: === [265821031] pts=265807214, 96 samples
[server] INFO: === [265828707] pts=265828561, 96 samples

Output with 1ms:
[server] INFO: === [298375880] pts=298371218, 48 samples
[server] INFO: === [298376915] pts=298371218, 48 samples
[server] INFO: === [298378054] pts=298371218, 48 samples
[server] INFO: === [298378773] pts=298371218, 48 samples
[server] INFO: === [298380833] pts=298371218, 48 samples
[server] INFO: === [298381499] pts=298371218, 48 samples
[server] INFO: === [298383156] pts=298371218, 48 samples
[server] INFO: === [298385399] pts=298371218, 48 samples
[server] INFO: === [298386618] pts=298371218, 48 samples
[server] INFO: === [298389791] pts=298371218, 48 samples
[server] INFO: === [298390729] pts=298371218, 48 samples
[server] INFO: === [298391907] pts=298371218, 48 samples
[server] INFO: === [298393638] pts=298391873, 48 samples
[server] INFO: === [298398036] pts=298391873, 48 samples
[server] INFO: === [298399403] pts=298391873, 48 samples
[server] INFO: === [298403224] pts=298391873, 48 samples
[server] INFO: === [298406373] pts=298391873, 48 samples
[server] INFO: === [298408187] pts=298391873, 48 samples
[server] INFO: === [298409977] pts=298391873, 48 samples
[server] INFO: === [298415148] pts=298413198, 48 samples
[server] INFO: === [298415981] pts=298413198, 48 samples
[server] INFO: === [298417585] pts=298413198, 48 samples
[server] INFO: === [298418578] pts=298413198, 48 samples
[server] INFO: === [298419581] pts=298413198, 48 samples
[server] INFO: === [298421091] pts=298413198, 48 samples
[server] INFO: === [298421817] pts=298413198, 48 samples
[server] INFO: === [298422905] pts=298413198, 48 samples
[server] INFO: === [298424074] pts=298413198, 48 samples
[server] INFO: === [298424911] pts=298413198, 48 samples
[server] INFO: === [298426955] pts=298413198, 48 samples
[server] INFO: === [298428117] pts=298413198, 48 samples
[server] INFO: === [298429060] pts=298413198, 48 samples
[server] INFO: === [298429999] pts=298413198, 48 samples
[server] INFO: === [298430875] pts=298413198, 48 samples
[server] INFO: === [298431931] pts=298413198, 48 samples
[server] INFO: === [298433092] pts=298413198, 48 samples
[server] INFO: === [298443266] pts=298437868, 48 samples
[server] INFO: === [298449559] pts=298437868, 48 samples
[server] INFO: === [298450937] pts=298437868, 48 samples
[server] INFO: === [298452983] pts=298437868, 48 samples
[server] INFO: === [298453906] pts=298437868, 48 samples
[server] INFO: === [298454918] pts=298437868, 48 samples
[server] INFO: === [298456009] pts=298437868, 48 samples
[server] INFO: === [298456696] pts=298456545, 48 samples
[server] INFO: === [298457482] pts=298456545, 48 samples

If course it would be great if the Best Latency setting could be glitch free as well...

OK, so like all Android devices, even when we read blocks of 5ms, it gives 4 blocks of 5ms at a time every 20ms.
[server] INFO: === [168124919] pts=168123560, 240 samples
[server] INFO: === [168126237] pts=168123560, 240 samples
[server] INFO: === [168129595] pts=168123560, 240 samples
[server] INFO: === [168130304] pts=168123560, 240 samples

Did you test with some Android recording app? (there is probably a native recording feature on your system)
Is the sound correctly recorded?
And with sndcpy?

The native recorder seems to record without glitches in the low latency setting (but is not really suitable for me since it is mono only).
sndcpy I just tried for the first time, but doesn't play sound:
sndcpy-v1.1 % ./sndcpy
Waiting for device...
Performing Streamed Install
Success
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.rom1v.sndcpy/.MainActivity }
Playing audio...
VLC media player 3.0.18 Vetinari (revision 3.0.18-0-ge9eceaed4d)
[00007fe932f07860] dummy interface: using the dummy interface module...
[00007fe934d06d40] main stream error: connection error: Connection refused
[00007fe943822af0] main stream error: connection error: Connection refused
[00007fe942f084a0] main stream error: connection error: Connection refused
[00007fe942f084a0] main stream error: connection error: Connection refused
[00007fe942f084a0] main stream error: connection error: Connection refused
[00007fe942f084a0] main stream error: connection error: Connection refused

Is it a firewall thing? I am on a corporate laptop where I cannot edit the ports.


totalSolved count not correct.

Hey I was trying to hit api for my profile to see the stats, and idk how but total problem solved is incorred as response. Rest seems fine to me.
url: https://alfa-leetcode-api.onrender.com/userProfile/nilesyadv
shows     "totalSolved": 153, but in reality it shoud be around 383.

yeah!
I looked into your profile, But I'm not able to find out what's the problem here

total solved number looks correct to you?
On Mon, Oct 28, 2024, 9:12 AM Arghya Das @.***> wrote:

yeah!
I looked into your profile, But I'm not able to find out what's the
problem here
—
Reply to this email directly, view it on GitHub
https://github.com/alfaarghya/alfa-leetcode-api/issues/45#issuecomment-2440487427,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AR5I4YP6IZRLPRFY2TSTPULZ5WXDPAVCNFSM6AAAAABQVKREE6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBQGQ4DONBSG4
.
You are receiving this because you authored the thread.Message ID:
@.***>

@alfaarghya does this api giving total numbers of easy , mid and hard problem currently available on leetcode beacuse i checked it but didn't able to find that ;

Hi @alfaarghya , here are attachments.
Total solved as per api call: 153

Total actual solved: 383

I hope now the problem is clear. Please let me know if you need more details. Thanks for addressing.

yeah!
I looked into your profile, But I'm not able to find out what's the problem here

I mean it what is the problem with API.

Hi @alfaarghya , here are attachments.
Total solved as per api call: 153

Total actual solved: 383

I hope now the problem is clear. Please let me know if you need more details. Thanks for addressing.

Yeah, it's totally clear to me. Since then I tried with different usernames, and all responses are correct till now.
Sorry for the late response, till yesterday, my exam was going on.

Exactly, I also saw it is giving correct numbers with other profiles, but wrong in my case. Anyways, just wanted to bring it to your notice. Can close this issue now. Thanks.

Issue was supposed to bring this to @alfaarghya 's notice. Closing now.


VHost configuration for node server?

Issue Type

Support Request

Your Environment

Vagrant 1.9.8
VirtualBox 5.1.26r117224

Your OS

macOS (10.12.6)

Summary
Hi Jeff! This is more of a question than a bug report or feature request. I'm using DrupalVM currently to get a local Drupal development environment up and running. Some dev-tools require to have another server of some kind running. E.g., I'm trying to use the Patternlab Drupal theme (https://github.com/phase2/pattern-lab-drupal-theme) for this new site. During development, this needs to have a server running (using npm start) that watches and compiles code or creates files. When running this command on the DrupalVM, this spans a local server process:
[Browsersync] Access URLs:
 -----------------------------------------------------
   Local: http://localhost:3050/pattern-lab/public
External: http://<IP_ADDRESS>:3050/pattern-lab/public

I have added port 3050 to the list of firewall ports in config.yml, but I still can't seem to connect to it from my host machine. I'm almost sure I need to add something to my Apache VHosts-configuration, but I have tried several times but not succeeded yet. What do I need to add to end up with a specific subdomain redirecting to this server (just like e.g. pimpmylog and adminer)? Or is this not possible?

@Didel - if the server is running via node.js, then you just need to add a manual entry to your hosts file (sudo nano /etc/hosts on your (I presume) Mac in Terminal). You could add it like:
ip-address-here  patternlab.yoursite.com
Get the IP address from dashboard.yoursite.com
Then access patternlab.yoursite.com:3050/pattern-lab/public.
The vhosts file changes would only affect Apache, though you technically could manage a vhost through there (with a valid docroot somewhere)—then you'd have to run vagrant provision for changes to take effect.
Have you run vagrant provision after changing your fireall rules?

d'Oh... I guess I must have been really tired ☕
I managed getting it up and running without even changing the vHost entries (so only adding the ports to the firewall exceptions) and provisioning to the VM. I can now indeed reach pattern lab through [mysite.dev]:3050/pattern-lab/public/ 👍
Thanks a lot for your reply!


re: remove deprecated behavior

fixes #7
Now works:

Hi, @noraj!
As I said on the #7 issue, thanks for you pull request.
Best regards,
oppsec.


Paging is broken

Paging seems to be broken when using the default stac-server instance at https://earth-search.aws.element84.com/v0
The root cause seems to be the fact that the "next" links from stac-server are malformed.
For example, for a search with a bbox parameter:
search = Search(bbox=[-110, 39.5, -105, 40.5],
               collections=['sentinel-s2-l2a']
)

The initial POST returns otherwise correctly but with
"links": [
        {
            "rel": "next",
            "title": "Next page of results",
            "href": "https://earth-search.aws.element84.com/v0/search?intersects=%5Bobject%20Object%5D&collections[]=sentinel-s2-l2a-cogs&page=2&limit=500"
        }
    ]

which results in the client repeatedly requesting https://earth-search.aws.element84.com/v0/search?intersects=[object Object]&collections[]=sentinel-s2-l2a-cogs&page=2&limit=500 until it reaches the 10000 item limit.
This issue could be mitigated on the client, but sat-search is maybe doing the right thing here.
I have submitted a PR to stac-server https://github.com/stac-utils/stac-server/pull/56 that seems to fix the issue.

Same here, search.found() returns 2493, but len(search.items()) returns 10000.

Sounds like #107 and #109? (Howdy @aliasmrchips @acannistra #worldscollide)

@aliasmrchips thanks for the report, I've not looked into this yet, but wanted you to know the issue has been seen here and at stac-server.  Will spend some time today.

@matthewhanson any update on this issue?

@smantovani @aliasmrchips
sat-search is trying to do the right thing, and it works with other APIs that do pagination correctly, including the develop version of stac-server.  That has been fixed on the develop branch of stac-server, as well as the earth-search deployed branch.  Have to dig into the logs and redeploy.

Think I am seeing this, too
e.g. query={'eo:cloud_cover': {'eq': 0}, 'platform':{'eq': 'sentinel-2a'}, 'sentinel:utm_zone':{'eq': 22} },
returns me 283
query={'eo:cloud_cover': {'eq': 0}, 'platform':{'eq': 'sentinel-2a'}, 'sentinel:utm_zone':{'gt': 20}, 'sentinel:utm_zone':{'lt': 24}  },
returns 100000
or if I take the utmzone out part I get 10000
which is certainly not going to be the case for zero cloud numbers
para_maranhao_bbox = [-58.9030617619999362,-10.2614079999999994, -41.7954588009999384,2.5911015890000608]
stac_items = satsearch.Search(
url="https://earth-search.aws.element84.com/v0",
bbox=bbox,
collections=["sentinel-s2-l2a-cogs"],
datetime="2020-03-01/2020-08-01",
#query={'eo:cloud_cover': {'eq': 0}, 'platform':{'eq': 'sentinel-2a'}, 'sentinel:utm_zone':{'gt': 20}, 'sentinel:utm_zone':{'lt': 24}  },
#query={'eo:cloud_cover': {'eq': 0}, 'platform':{'eq': 'sentinel-2a'}, 'sentinel:utm_zone':{'gt': 20}  },
query={'eo:cloud_cover': {'eq': 0}, 'platform':{'eq': 'sentinel-2a'}, 'sentinel:utm_zone':{'eq': 22} },
).items()

same with query={'eo:cloud_cover': {'lt': 5}, 'platform':{'eq': 'sentinel-2a'}, 'sentinel:utm_zone':{'eq': 22} },

or
stac_found = satsearch.Search(
url="https://earth-search.aws.element84.com/v0",
bbox=bbox,
collections=["sentinel-s2-l2a-cogs"],
query={'eo:cloud_cover': {'eq': 0}, 'platform':{'eq': 'sentinel-2a'}},
).found()
stac_items = satsearch.Search(
url="https://earth-search.aws.element84.com/v0",
bbox=bbox,
collections=["sentinel-s2-l2a-cogs"],
datetime="2017-01-01/2021-03-25",
query={'eo:cloud_cover': {'eq': 0}, 'platform':{'eq': 'sentinel-2a'}},
).items()
5287
searching time: 0:00:58.037354
Num of Items 10000


Column width wrapping

Issue type
[ ] Feature request
[X] Bug report
[ ] Documentation

Environment

Python version:   3.5.3
Peering Manager version:   0.99-dev

Description
Column widths are too narrow for some text and wrap without taking available screen resolution into consideration.
IE:

Would you mind testing with ccca1c8? What screen resolution do you use?

Issues after updating.
There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

<class 'django.db.utils.OperationalError'>
no such table: peering_routingpolicy

root@peeringmanager:/opt/peering-manager# ./scripts/upgrade.sh
Cleaning up old Python bytecode (find . -name "*.pyc" -delete)...
Updating required Python dependencies (pip3 install -r requirements.txt --upgrade)...
Requirement already up-to-date: Django==2.1.3 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 1))
Requirement already up-to-date: django-filter==2.0.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 2))
Collecting django-tables2==2.0.3 (from -r requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/06/c0/1bb8597df1cc72f73a47f9b46c51a6d81c80f9f2defc894cb00166f29d56/django_tables2-2.0.3-py2.py3-none-any.whl (89kB)
    100% |████████████████████████████████| 92kB 3.6MB/s
Requirement already up-to-date: Jinja2==2.10 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 4))
Requirement already up-to-date: napalm==2.3.3 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 5))
Requirement already up-to-date: MarkupSafe==1.1.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 6))
Requirement already up-to-date: py-gfm==0.1.4 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 7))
Requirement already up-to-date: pytz==2018.7 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 8))
Requirement already up-to-date: requests==2.20.1 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 9))
Requirement already up-to-date: future in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Collecting scp (from napalm==2.3.3->-r requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/50/26/bbcf64af02ae5cdde70f10fcac1b955ed6aece5de459c43feeee4d417f20/scp-0.13.0-py2.py3-none-any.whl
Requirement already up-to-date: textfsm in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: netaddr in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: pyIOSXR>=0.53 in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: cffi>=1.11.3 in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: pyeapi in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: junos-eznc>=2.1.5 in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: pynxos==0.0.3 in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Collecting setuptools>=38.4.0 (from napalm==2.3.3->-r requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/e7/16/da8cb8046149d50940c6110310983abb359bbb8cbc3539e6bef95c29428a/setuptools-40.6.2-py2.py3-none-any.whl (573kB)
    100% |████████████████████████████████| 573kB 2.1MB/s
Requirement already up-to-date: pyYAML in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: netmiko>=2.1.1 in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: markdown<3.0 in /usr/local/lib/python3.5/dist-packages (from py-gfm==0.1.4->-r requirements.txt (line 7))
Requirement already up-to-date: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.5/dist-packages (from requests==2.20.1->-r requirements.txt (line 9))
Requirement already up-to-date: idna<2.8,>=2.5 in /usr/local/lib/python3.5/dist-packages (from requests==2.20.1->-r requirements.txt (line 9))
Requirement already up-to-date: certifi>=2017.4.17 in /usr/local/lib/python3.5/dist-packages (from requests==2.20.1->-r requirements.txt (line 9))
Requirement already up-to-date: urllib3<1.25,>=1.21.1 in /usr/local/lib/python3.5/dist-packages (from requests==2.20.1->-r requirements.txt (line 9))
Requirement already up-to-date: paramiko in /usr/local/lib/python3.5/dist-packages (from scp->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: lxml>=3.2.4 in /usr/local/lib/python3.5/dist-packages (from pyIOSXR>=0.53->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: pycparser in /usr/local/lib/python3.5/dist-packages (from cffi>=1.11.3->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: six in /usr/local/lib/python3.5/dist-packages (from junos-eznc>=2.1.5->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: pyserial in /usr/local/lib/python3.5/dist-packages (from junos-eznc>=2.1.5->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: ncclient>=0.5.4 in /usr/local/lib/python3.5/dist-packages (from junos-eznc>=2.1.5->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: bcrypt>=3.1.3 in /usr/local/lib/python3.5/dist-packages (from paramiko->scp->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: pyasn1>=0.1.7 in /usr/local/lib/python3.5/dist-packages (from paramiko->scp->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: pynacl>=1.0.1 in /usr/local/lib/python3.5/dist-packages (from paramiko->scp->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: cryptography>=1.5 in /usr/local/lib/python3.5/dist-packages (from paramiko->scp->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: selectors2>=2.0.1 in /usr/local/lib/python3.5/dist-packages (from ncclient>=0.5.4->junos-eznc>=2.1.5->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: asn1crypto>=0.21.0 in /usr/local/lib/python3.5/dist-packages (from cryptography>=1.5->paramiko->scp->napalm==2.3.3->-r requirements.txt (line 5))
Installing collected packages: django-tables2, scp, setuptools
  Found existing installation: django-tables2 2.0.2
    Uninstalling django-tables2-2.0.2:
      Successfully uninstalled django-tables2-2.0.2
  Found existing installation: scp 0.12.1
    Uninstalling scp-0.12.1:
      Successfully uninstalled scp-0.12.1
  Found existing installation: setuptools 40.5.0
    Uninstalling setuptools-40.5.0:
      Successfully uninstalled setuptools-40.5.0
Successfully installed django-tables2-2.0.3 scp-0.13.0 setuptools-40.6.2
Applying database migrations (python3 manage.py migrate)...
CommandError: Conflicting migrations detected; multiple leaf nodes in the migration graph: (0003_auto_20181112_0637, 0003_auto_20181112_2150 in utils).
To fix them run 'python manage.py makemigrations --merge'
Collecting static files (python3 manage.py collectstatic --no-input)...

12 static files copied to '/opt/peering-manager/static', 248 unmodified.
root@peeringmanager:/opt/peering-manager# python3 manage.py makemigrations --merge
Merging utils
  Branch 0003_auto_20181112_0637
    - Alter field action on useraction
  Branch 0003_auto_20181112_2150
    - Alter field action on useraction

Merging will only work if the operations printed above do not conflict
with each other (working on different fields or models)
Do you want to merge these migration branches? [y/N] y

Created new merge migration /opt/peering-manager/utils/migrations/0004_merge_20181115_1717.py
root@peeringmanager:/opt/peering-manager#

Odd.  The two files it was complaining about are exactly the same :/
root@peeringmanager:/opt/peering-manager# more /opt/peering-manager/utils/migrations/0004_merge_20181115_1717.py
# Generated by Django 2.1.3 on 2018-11-15 22:17

from django.db import migrations

class Migration(migrations.Migration):

    dependencies = [
        ('utils', '0003_auto_20181112_0637'),
        ('utils', '0003_auto_20181112_2150'),
    ]

    operations = [
    ]
root@peeringmanager:/opt/peering-manager# diff ./utils/migrations/0003_auto_20181112_0637.py ./utils/migrations/0003_auto_20181112_2150.py
1c1
< # Generated by Django 2.1.3 on 2018-11-12 11:37
---
> # Generated by Django 2.1.3 on 2018-11-12 20:50
root@peeringmanager:/opt/peering-manager#

Re-running the upgrade.sh fixed it.
root@peeringmanager:/opt/peering-manager# ./scripts/upgrade.sh
Cleaning up old Python bytecode (find . -name "*.pyc" -delete)...
Updating required Python dependencies (pip3 install -r requirements.txt --upgrade)...
Requirement already up-to-date: Django==2.1.3 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 1))
Requirement already up-to-date: django-filter==2.0.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 2))
Requirement already up-to-date: django-tables2==2.0.3 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 3))
Requirement already up-to-date: Jinja2==2.10 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 4))
Requirement already up-to-date: napalm==2.3.3 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 5))
Requirement already up-to-date: MarkupSafe==1.1.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 6))
Requirement already up-to-date: py-gfm==0.1.4 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 7))
Requirement already up-to-date: pytz==2018.7 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 8))
Requirement already up-to-date: requests==2.20.1 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 9))
Requirement already up-to-date: setuptools>=38.4.0 in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: cffi>=1.11.3 in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: textfsm in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: junos-eznc>=2.1.5 in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: netaddr in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: scp in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: pyYAML in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: pynxos==0.0.3 in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: pyIOSXR>=0.53 in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: pyeapi in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: netmiko>=2.1.1 in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: future in /usr/local/lib/python3.5/dist-packages (from napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: markdown<3.0 in /usr/local/lib/python3.5/dist-packages (from py-gfm==0.1.4->-r requirements.txt (line 7))
Requirement already up-to-date: urllib3<1.25,>=1.21.1 in /usr/local/lib/python3.5/dist-packages (from requests==2.20.1->-r requirements.txt (line 9))
Requirement already up-to-date: idna<2.8,>=2.5 in /usr/local/lib/python3.5/dist-packages (from requests==2.20.1->-r requirements.txt (line 9))
Requirement already up-to-date: certifi>=2017.4.17 in /usr/local/lib/python3.5/dist-packages (from requests==2.20.1->-r requirements.txt (line 9))
Requirement already up-to-date: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.5/dist-packages (from requests==2.20.1->-r requirements.txt (line 9))
Requirement already up-to-date: pycparser in /usr/local/lib/python3.5/dist-packages (from cffi>=1.11.3->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: ncclient>=0.5.4 in /usr/local/lib/python3.5/dist-packages (from junos-eznc>=2.1.5->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: six in /usr/local/lib/python3.5/dist-packages (from junos-eznc>=2.1.5->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: pyserial in /usr/local/lib/python3.5/dist-packages (from junos-eznc>=2.1.5->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: lxml>=3.2.4 in /usr/local/lib/python3.5/dist-packages (from junos-eznc>=2.1.5->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: paramiko>=1.15.2 in /usr/local/lib/python3.5/dist-packages (from junos-eznc>=2.1.5->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: selectors2>=2.0.1 in /usr/local/lib/python3.5/dist-packages (from ncclient>=0.5.4->junos-eznc>=2.1.5->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: bcrypt>=3.1.3 in /usr/local/lib/python3.5/dist-packages (from paramiko>=1.15.2->junos-eznc>=2.1.5->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: cryptography>=1.5 in /usr/local/lib/python3.5/dist-packages (from paramiko>=1.15.2->junos-eznc>=2.1.5->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: pyasn1>=0.1.7 in /usr/local/lib/python3.5/dist-packages (from paramiko>=1.15.2->junos-eznc>=2.1.5->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: pynacl>=1.0.1 in /usr/local/lib/python3.5/dist-packages (from paramiko>=1.15.2->junos-eznc>=2.1.5->napalm==2.3.3->-r requirements.txt (line 5))
Requirement already up-to-date: asn1crypto>=0.21.0 in /usr/local/lib/python3.5/dist-packages (from cryptography>=1.5->paramiko>=1.15.2->junos-eznc>=2.1.5->napalm==2.3.3->-r requirements.txt (line 5))
Applying database migrations (python3 manage.py migrate)...
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, peering, peeringdb, sessions, utils
Running migrations:
  Applying peering.0021_auto_20181113_2136... OK
  Applying utils.0003_auto_20181112_2150... OK
  Applying utils.0004_merge_20181115_1717... OK
Collecting static files (python3 manage.py collectstatic --no-input)...

0 static files copied to '/opt/peering-manager/static', 260 unmodified.
root@peeringmanager:/opt/peering-manager#

I don't see much of a difference after this commit.  My resolution varies depending on where I am.  Home it's 3360x1890, work it's 2560x1440, remotely it's 2880x1800

I see, I have a 2560x1440 at home and it looks OK (at least whit Chrome) but on bigger resolutions like yours I understand the issue. Should we make the main container width 4K ready?

Ah, interesting.  It works for me too in Chrome, but not in Safari (my normal browser).
I suppose it makes sense to make it 4K ready, doesn't it?

Should be addressed in #81.


monitoring: add ATProto firehose delay

When Bluesky sees a big spike in usage, and the firehose event rate spikes, like has been happening over the past couple days with the influx of new users from Brazil (#1295), our firehose client can get behind. We should have that delay on the monitoring dashboard.

Similarly, our own firehose event processing rate would be good to track.

Done!


Broken links in Java Installation Guides

It seems that two links in the Java Installation Guide are broken.
The links in question are:

It appears that these links should not include the tutorials/ prefix in the path, as it is already present in the page URL (which was fixed in #94).
Suggested fix to tutorials/javaInstallation.md:
* [**:fab-apple: Mac**](javaInstallationMac.html) -- If you are on a Mac and you anticipate using JavaFX in your projects, you are using the precise JDK specified in this guide.
* [**:fab-windows: Windows**](javaInstallationWindows.html)

Good catch, @mfjkri
Fixed.


[Bug] error message does not define an appropriate error

Steps to reproduce:

Add a datasource
Add an API
Select method "Update row"
Add inappropriate data into the fields
Click on "RUN"
and observe

Observation:
It is observed that the error is displayed as "Undefined" which does not define the appropriate error
Expectation:
Appropriately defined error message must be displayed to user

Fixed for unexpected spreadsheet url format

Hasn't surfaced for any other types of requests so far, closing till this is seen again @prapullac


tex2svg: Remove non-unique title ID

I have been using tex2svg provided by mathjax-node for years to render multiple SVG formulae for use in a single XHTML document. Recently, I was forced to move to tex2svg provided by mathjax-node-cli.
What has changed now, is the inclusion of a title ID as in:
<title id="MathJax-SVG-1-Title">upper E equals m c squared</title>
As the "MathJax-SVG-1-Title" title ID is the same for every converted formula, the XHTML document becomes invalid because of several non-unique IDs.
Has this generic title ID any use? If not, remove it.
If on the other hand a title ID is somehow required, then render it unique by concatenating it with a millisecond level Unix time serialization. Using the actual title for serialization is not sufficient because the same formula may appear more than once in a single XHTML document.

Has this generic title ID any use?

Yes, absolutely it has a use.  It is for screen readers (and other assistive technology) so that they can read the mathematics properly.  If you want to prevent it from being generated, you can use the --speech=false option on the command line to prevent it.
You are right that better handling of the ids would be helpful.  In the meantime, if you don't use --speech-false, you could use the svgNode rather than just sag to get the actual svg tree rather than a serialization, and modify the ID yourself, then serialize it yourself using outerHTML as a work-around for now.

Thanks; --speech=false did it for me.
The XHTML eventually ends up as a PDF (by means of Prince XML, so in that case, there is no substantial need for assistive speech technology.


[GLib] Vala examples still have unused-but-set-variable warnings on macOS

Describe the bug, including details regarding any error messages, version, and platform.
#40962 fixed this but this is appeared again.
https://github.com/apache/arrow/actions/runs/8569441561/job/23485344295#step:9:299
FAILED: example/vala/write-stream.p/meson-generated_write-stream.c.o
ccache cc -Iexample/vala/write-stream.p -Iexample/vala -I../../c_glib/example/vala -I/Users/runner/work/arrow/arrow/build/c_glib -I/Users/runner/work/arrow/arrow/c_glib -Iarrow-glib -I../../c_glib/arrow-glib -I/usr/local/Cellar/glib/2.80.0_2/include -I/usr/local/Cellar/glib/2.80.0_2/include/glib-2.0 -I/usr/local/Cellar/glib/2.80.0_2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre2/10.43/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/ffi -fdiagnostics-color=always -Wall -Winvalid-pch -Werror -std=c99 -O0 -g -DARROW_NO_DEPRECATED_API -Wunused-but-set-variable -MD -MQ example/vala/write-stream.p/meson-generated_write-stream.c.o -MF example/vala/write-stream.p/meson-generated_write-stream.c.o.d -o example/vala/write-stream.p/meson-generated_write-stream.c.o -c example/vala/write-stream.p/write-stream.c
write-stream.c:373:8: error: variable '_tmp45__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp45__length1;
                     ^
write-stream.c:504:8: error: variable '_tmp57__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp57__length1;
                     ^
write-stream.c:635:8: error: variable '_tmp69__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp69__length1;
                     ^
write-stream.c:766:8: error: variable '_tmp81__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp81__length1;
                     ^
write-stream.c:897:8: error: variable '_tmp93__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp93__length1;
                     ^
write-stream.c:1028:8: error: variable '_tmp105__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp105__length1;
                     ^
write-stream.c:1159:8: error: variable '_tmp117__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp117__length1;
                     ^
write-stream.c:1290:8: error: variable '_tmp129__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp129__length1;
                     ^
write-stream.c:1421:8: error: variable '_tmp141__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp141__length1;
                     ^
write-stream.c:1552:8: error: variable '_tmp153__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp153__length1;
                     ^
10 errors generated.
[117/122] Compiling C object example/vala/write-file.p/meson-generated_write-file.c.o
FAILED: example/vala/write-file.p/meson-generated_write-file.c.o
ccache cc -Iexample/vala/write-file.p -Iexample/vala -I../../c_glib/example/vala -I/Users/runner/work/arrow/arrow/build/c_glib -I/Users/runner/work/arrow/arrow/c_glib -Iarrow-glib -I../../c_glib/arrow-glib -I/usr/local/Cellar/glib/2.80.0_2/include -I/usr/local/Cellar/glib/2.80.0_2/include/glib-2.0 -I/usr/local/Cellar/glib/2.80.0_2/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre2/10.43/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/ffi -fdiagnostics-color=always -Wall -Winvalid-pch -Werror -std=c99 -O0 -g -DARROW_NO_DEPRECATED_API -Wunused-but-set-variable -MD -MQ example/vala/write-file.p/meson-generated_write-file.c.o -MF example/vala/write-file.p/meson-generated_write-file.c.o.d -o example/vala/write-file.p/meson-generated_write-file.c.o -c example/vala/write-file.p/write-file.c
write-file.c:373:8: error: variable '_tmp45__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp45__length1;
                     ^
write-file.c:504:8: error: variable '_tmp57__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp57__length1;
                     ^
write-file.c:635:8: error: variable '_tmp69__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp69__length1;
                     ^
write-file.c:766:8: error: variable '_tmp81__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp81__length1;
                     ^
write-file.c:897:8: error: variable '_tmp93__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp93__length1;
                     ^
write-file.c:1028:8: error: variable '_tmp105__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp105__length1;
                     ^
write-file.c:1159:8: error: variable '_tmp117__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp117__length1;
                     ^
write-file.c:1290:8: error: variable '_tmp129__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp129__length1;
                     ^
write-file.c:1421:8: error: variable '_tmp141__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp141__length1;
                     ^
write-file.c:1552:8: error: variable '_tmp153__length1' set but not used [-Werror,-Wunused-but-set-variable]
                gint _tmp153__length1;
                     ^
10 errors generated.

Component(s)
C++

This is resolved by #41029.


⚠ Bofrost.nl has degraded performance

In 89d9ce1, Bofrost.nl (https://www.bofrost.nl) experienced degraded performance:

HTTP code: 200
Response time: 1281 ms

Resolved: Bofrost.nl performance has improved in fd35bfc.


Error on cdk bootstrap

hi there,
I encounter the below error when running 'cdk bootstrap', does anyone having the same issue?
/amazon-cloudwatch-alarms-repeated-notification-cdk/node_modules/typescript/lib/typescript.js:42537
ts.Debug.assert(typeof typeReferenceDirectiveName === "string", "Non-string value passed to ts.resolveTypeReferenceDirective, likely by a wrapping package working with an outdated resolveTypeReferenceDirectives signature. This is probably not a problem in TS itself.");
^
Error: Debug Failure. False expression: Non-string value passed to ts.resolveTypeReferenceDirective, likely by a wrapping package working with an outdated resolveTypeReferenceDirectives signature. This is probably not a problem in TS itself.
at Object.resolveTypeReferenceDirective (/amazon-cloudwatch-alarms-repeated-notification-cdk/node_modules/typescript/lib/typescript.js:42537:18)
at /amazon-cloudwatch-alarms-repeated-notification-cdk/node_modules/ts-node/src/index.ts:623:55
at Array.map ()
at Object.resolveTypeReferenceDirectives (/amazon-cloudwatch-alarms-repeated-notification-cdk/node_modules/ts-node/src/index.ts:622:33)
at actualResolveTypeReferenceDirectiveNamesWorker (/amazon-cloudwatch-alarms-repeated-notification-cdk/node_modules/typescript/lib/typescript.js:116674:163)
at resolveTypeReferenceDirectiveNamesWorker (/amazon-cloudwatch-alarms-repeated-notification-cdk/node_modules/typescript/lib/typescript.js:116974:26)
at processTypeReferenceDirectives (/amazon-cloudwatch-alarms-repeated-notification-cdk/node_modules/typescript/lib/typescript.js:118456:31)
at findSourceFileWorker (/amazon-cloudwatch-alarms-repeated-notification-cdk/node_modules/typescript/lib/typescript.js:118341:21)
at findSourceFile (/amazon-cloudwatch-alarms-repeated-notification-cdk/node_modules/typescript/lib/typescript.js:118196:26)
at /amazon-cloudwatch-alarms-repeated-notification-cdk/node_modules/typescript/lib/typescript.js:118148:85
Subprocess exited with error 1
Thanks.
Warm Regards

same error

I fix this issue by update this in package.json
    "ts-node": "^10.7.0",
    "typescript": "^4.6.4"

@dongjaws If possible, please review it https://github.com/aws-samples/amazon-cloudwatch-alarms-repeated-notification-cdk/pull/6


better css class names

I guess instead of making the number more readable we should try to remove the number whenever the class name exists only once in the file.
So I removed unreadableNumber again.
I also added tests

Strongly agree with your take and thank you for the additional tests :)


DATETIME column type maps to DateTime64(3)

2022-09-16 sink-connector maps MySQL DATETIME column type to DateTime64(3) column type in ClickHouse. (Expected mapping type is DateTime)

Duplicate of https://github.com/Altinity/clickhouse-sink-connector/issues/75


Add log as debug when enabled

Closes #240

I have something slightly different in mind for this

sorry @mcruzdev I thought I would have time to write my idea before you wake up lol

This is what I had in mind: https://github.com/quarkiverse/quarkus-roq/pull/252


Handle cleanup/recovery of stuck work orders

Add new table wo-worker-active to hold list of work orders
being actively processed
Update kv_delegate cleanup logic to retore active work orders
Add table worker-pool to hold map of wokers in a pool
Add calls to add entries to worker-pool mapping
Pass in comman line argument cleanup_work_orders to KME &
Singleton enclave manager

Signed-off-by: Rajeev Ranjan<EMAIL_ADDRESS>

As of now since we don't have added support of recreating enclave state (Singleton and KME) from sealed storage. So in the first phase, worker restart would mean we create a new signing and encryption key pair when singleton/pinned or KME is started. That would mean we also need to clean up all work orders handled by old worker instances from the DB.
Singleton

Start Singleton 1st instance - cleanup worker and corresponding work-orders tables. If clean up all argument is passed during startup cleanup all tables (all workers and all work orders).

Start Singleton 2,3 or more instances - by default cleanup only workers corresponding to the worker id passed and the corresponding old work orders matching the worker id. Note: cleanup all should not be ideally used which starting 2,3 singleton instances.

KME
KME 1, 2, 3 etc instance has to cleanup-workers and associated work orders mapped to this workers.
We have not implemented restoring KME state from sealed data.
No restart scenario for KME. Every time KME is started a new key pair for worker is created. That means existing work orders in all the tables associated with a given worker id cannot be processed.
worker-pool -> (worker_id, list of enclave_id). for singleton enclave_id is same as worker_id
As part of KME restart clean up worker-pool remove the entry (worker_id, list of enclave_id) from the "worker-pool" table.
WPE
WPE 1st instance if passed with cleanup-work-orders argument can clean up all work orders corresponding to the worker id.
If cleanup-work-orders argument is not passed then work orders are not cleaned.
WPE 2,3 or higher instances by default are not required to cleanup existing work orders corresponding to the worker.
WPE instance if started with restore-work-order will move all work orders from the wo-processing tables to wo-schedule table.
Please rename below tables
wo-worker-active --> woprocessor-wo-map
wo-worker-pending -> wo-worker-list
wo-worker-list -> key = worker id, value = list of work order ids (csv format)

Listener will add entry to this table when it receives work order submit request from client
KME can cleanup the entries in this table with cleanup-workers argument during start.

woprocessor-wo-map -> key = enclave id, value = work order id,
in case of singleton enclave id is worker id and in case of WPE this is hex of public key of WPE encryption key

WPE will add entry to this table by moving the work order from wo-worker-list table.
WPE will also update "wo-processing" to PROCESSING just before it starts processing the work
order.
WPE will remove entry from "wo-worker-processing" and "wo-processing" after it finish processing
the work order and then it adds entry to "wo-processed" table with status as SUCCESS/FAILED.
WPE can clean up the entries in this table with cleanup-workorder argument during start.
KME can cleaup the entries in this table with cleanup-workers argument during start.

worker-pool -> (worker_id, list of enclave_id). for singleton encalve_id is same as worker_id

WPE will add worker_id key and enclave id as value to the list after it has successfully registered
with KME.
The entry  will be removed from  worker-pool only when KME is started with cleanup-workers


IClusterChangeListener singleton ?

I would like to register additional IClusterChangeListerners to the DI system; so I may hook into these events and update the Microsoft.Extensions.Diagnostics.HealthChecks and subsequently the health UI reports will display cluster status.

Multiple listeners are supported:
https://github.com/microsoft/reverse-proxy/blob/05a60d0ae5913d73e7a1f12d4cc50e9011081a30/src/ReverseProxy/Service/Management/ClusterManager.cs#L16
Singleton has to do with object lifetime (it lives for the lifetime of the app), not how many there are.
See https://github.com/microsoft/reverse-proxy/issues/125 for related discussions about proxy health.

Ideally the internal sealed class ClusterManager should be made non-sealed public class so a developer could derive from it and implement addition logic/rules etc.
i.e. if a cluster is added/removed we'd like a message set to a remote alerting/monitoring systems

You should be able to do that with the IClusterChangeListeners.

Triage: We are pretty sure it works (we're using it for HealthChecks). Can you please provide (simplified) repro for us?

Triage: No repro, closing. Feel free to reopen if there is more evidence. Thanks!


CMake doesn't require GCC 8 or later, but uses a GCC-8-or-later option

The compilation invokes g++ with -Wduplicated-branches, which was only introduced in GCC 8.x, it seems. My distribution uses GCC 6.x, so my build fails.
Either GCC 6.x (and 7.x I think) should be unsupported, or the warning needs to be dropped for GCC 8.x

I made a pull request that has some relevance to this issue.
On my branch, I specified that Travis-CI should use gcc-7 instead of gcc-5. This causes the vm to install GCC 7.4.0, which handles all of the specified compiler flags without any problem, and the build completes successfully. I claim that this is evidence that GCC 7.4.0 (I can't speak to version 7.3.x and below) supports the -Wduplicated-branches flag.
As far as I can tell, a CMakeLists.txt file does not have any way to tell you what compiler version you should be using: it either builds or it fails.
Maybe we could add a command line option that conditionally adds warning flags based on what compiler you specify? Alternately, you could use try_compile to work out what warning flags are available on whatever compiler you're using, and set the warning flags accordingly.

Since the readme now recommends gcc 7 or above, I think this is resolved. If you disagree, you are welcome to reopen this.


Implement own timer service

		// await scheduleRoleRemoval(user_id, role_id, guild_id, isTest); //TODO: Implement own timer

https://github.com/BirthdayyBot/BirthdayyBotSapphire/blob/29d6af119e518b6eab490633d88edabd62e9c7a2/src/lib/birthday/birthdayEvent.ts#L62

Need to be saved in persistent store
sqs | redis


Mobile wallet Logout screen, the MWC amount displaying in the account is not matching

Description:
In the mobile wallet Logout screen, the MWC amount displaying in the account is not matching with the Amount displaying in the other screens.
Please refer to the below screenshot and attached video [recordings.]
https://user-images.githubusercontent.com/63310656/116444021-ee6fb080-a871-11eb-890a-e4dcf6058e42.mp4

Steps to reproduce:

Log in to Mobile wallet.
Receive the MWC amount into the wallet.
Verify the amount displaying in the Logout screen and other screens (as captured in the video recorded)

@Viv-dev-mwc   Total wallet amount and Spendable on the account are different numbers.  You can have 0 spendable at default  and 2 MWC total.  This feature works for me.  Please provide more details about this issue.
So far is doesn't looks like an issue.

MWC amount has been successfully received on the wallet, after confirmation both Spendable and Total available amount have been updated on all the pages, but on the Log out page amount is not getting refreshed.
Attached new video recordings for your reference.
https://user-images.githubusercontent.com/63310656/116576814-88e0fa00-a92d-11eb-9726-bfb5f6318cf4.mp4
Note:
After Logout and login, values are getting updated on the Logout screen.

@chaindbkey ,  it is a bug or UX issue. In any case it needs to be solved.  If numbers are different because of non confirmed coins issue, you can't tell if it a case.  The same questions we will get form the users as well.
Please make those numbers consistent or provide the way to see spendable and total amounts.

Verified with the latest build, hence closing this ticket.