User refactor

Modifies the user.rb file and subsequent files that depend on user.rb methods.

new cops implementation from other PR would be better to use as reference.


Get total space in Refined Storage system using RS Bridge.

Describe your idea
Using the IStorageDiskManager in the API and IStorageDisk.getCapacity it's possible to list the total amount of space in the system (at least for disks).
This is not possible with the Block Reader as disks are not stored in the NBT of drives.
This could be used to create fill level indicators for refinedstorage systems.
Describe alternatives you've considered if you've any
No response
Additional context
No response
Linked Issues
No response

probably an extension of #156

duplicate of #156 i just realized


[BUG] improve source_conf validation

Describe the bug

It sources everything from /etc/onionjuggler/conf.d/*.conf
What could be done is reading line per line for key=val just as in https://github.com/dylanaraps/pfetch/blob/a906ff89680c78cec9785f3ff49ca8b272a0f96b/pfetch#L242
Just some thoughts:
The scripts need to source /usr/share/onionjuggler/defaults.sh for functions, and that can't really be treated because it is necessary.
Both /etc/onionjuggler and /usr/share/onionjuggler requires root, so why would it matter to protect the conf dir but not the lib dir as it is not possible to protect the lib dir? Doesn't this create a false sense of security?
If thinking of security, yes, it doesn't bring, if adversary has root, it doesn't matter anyway.
So the reason can't be security, can it be user mitigating error? Maybe but improbable.
To Reproduce

Expected behavior

Terminal output

Screenshots

Please complete the following specifications:

Additional context

https://github.com/nyxnor/onionjuggler/issues/69
source_conf (--getconf) should also work without hardcoding

removing hardcoding was not possible this time, but now the --getconf is portable

reverting the source to use . as discussed on https://forums.whonix.org/t/improve-onion-service-usability-by-script-gui/9117/38


fix argparse error in yolo benchmarking

error found by @govindr-nm in testing

looking into another device parsing issue @govindr-nm  ran into


cleanup warnings

fix partition selection function
get ruby >= 2 calling the correct no-gvl function (it has HAVE_RB_THREAD_BLOCKING_REGION, it's just deprecated)

This fails on Ruby 1.8.7, which I regret to say, I'm still trying to support. ruby/versionh` is non-existent in Ruby 1.8.. Do you know of a macro vavailable which would otherwise indicate the compiler is running with 1.9+?

shouldn't be too hard to do a condition include in extconf.rb.  will fix.

ok @rtyler this fixes 1.8.7.  jruby is still apparently a flaky thing for travis, but the rest pass....

@osheroff I re-triggered the JRuby build, there's something about builds in Travis that result in JBundler timing out when it attempts to contact Maven Central for Java dependencies; haven't been able to cajole that into working consistently :/


connect error

Primary Question / Request
Do i need to setup a proxy?
[] Using configuration file (/home/obi/Downloads/omnibus-master/etc/omnibus.conf) ...
[] Debug: False
Welcome to the Omnibus shell! Type "session" to get started or "help" to view all commands.
omnibus >> new inquest.net
EXCEPTION of type 'ServerSelectionTimeoutError' occurred with message: '<IP_ADDRESS>:27017: [Errno 111] Connection refused'
To enable full traceback, run the following command:  'set debug true'
omnibus >>
What type of request is there?

[ ] Breaking bug
[x ] General error (non-fatal)
[ ] Additional module (Create a pull request! :D)
[ ] Use-case suggestions
[ ] Workflow improvments

Please explain the bug in a clear and concise manner
When i startup omnibus i get a error 111.

Steps to Recreate (If Applicable)

Is this preventing you from using the application?

[ ] Yes
[ ] No

If you selected Yes, please explain why fully

Do you have any screenshots, log output, tracebacks, or otherwise to support your requests?

Hey @bobdissel, could you start Omnibus with the --debug argument and share the output here?
This will give a full Python trace-back, along with some version numbers and such that i'll be helpful to look into it

The error  EXCEPTION of type 'ServerSelectionTimeoutError' occurred with message: '<IP_ADDRESS>:27017: [Errno 111] Connection refused' is a MongoDB error.
For Omnibus, you need a MongoDB instance somewhere reachable from the host your running Omnibus on. <IP_ADDRESS>:27017 is the MongoDB defaults for a local instance but you can change this setting to any MongoDB server.
Also, just FYI - Redis running somewhere also reachable from your host is required for a few things, in case you don't have that setup already.


Add docs on using the debugger.

I also have svg files of the two images. Should I commit those too?

OK, done.

It doesn't seem to have added to the hosted docs?

Yeah, we're building on Julia 0.6 for some reason. Will fix.


Accumulate imports in order

Fixes a bug we found in the compiler: emitting the imports in reverse order. @raulraja @rafaparadela please take a look.

LGTM!


(Fix) Gas price custom prevent invalid

Closes #573

Pull Request Test Coverage Report for Build 1512

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.002%) to 8.768%

Totals

Change from base Build 1509:
0.002%

Covered Lines:
254

Relevant Lines:
1963

💛  - Coveralls


AI does not work on safari

AI does not seem to work on Safari on a mac

fixed the sort bug, https://github.com/tjwei/2048-NN/commit/2cac5903d0c18ab895831a87458754bb17c02927


Trying to create a var for domains

Hello,
I am trying to create a variable in this project so it could take the first part of the domain (i.e. "qwerty.com" the username would be qwerty) with var := %domainname%
I would like to use it in the username password list like this:
%domainname% %domainname%123
If you can help me how I can accomplish that it would be very helpful!
Thank you.

If i understand correctly you would like to have specific combinations ( combos ) for each target?
Did i understand you correctly?


Issue with meta prop

Hello, thank you for effort you are putting in this package.
I have a problem using meta prop, in  README.md you said  "meta: Array of key value objects for meta tags (e.g property, content)", but I'm not sure how to use it.
"meta={[{ metaDesc: "DESCRIPTION" }, { metaKeywords: ["KEYWORD"] }]}"  - this doesn't work.

For anyone coming here that have the same issue:
meta={[{
  name: `description`,
  content: metaDescription,
},]}

This should be in the README


ReqFrom TQ with lowest prio

Steps to Reproduce:
Step 1
Step nr one
Step 2
Second step

Open Requirement in TestQuality

Test Sample test.


solve #117

Hello @amoh-godwin! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file local_probe_t_est.py:

Line 4:1: E265 block comment should start with '# '


Improve coverage collection defs/decorators/pyspark UDFs

We have several cases where coverage is inaccurate:

declaration of methods
decorators
pyspark user defined functions

Related discussion: https://github.com/nedbat/coveragepy/issues/974

@guotin is it still the issue?


Backstage search plugin to support partial search with out wildcard

Feature Suggestion
Congrats on the alpha milestone. We love where this is going. So we tested out the alpha search plugin with
plugin-search-backend on 0.2.1
plugin-search-backend-node on 0.2.1
plugin-search on 0.4.0
We notice that the search acts a bit different from the previous. For example in our Backstage setup, we have an service entity called "Abacus"
Typing abac returns no result.
Typing abacus returns all the Abacus related result.
Typing abac* returns all the Abacus related result.
So I try the Lunr demo https://olivernn.github.io/moonwalkers/ seems that it is the same behavior.
I did not file this as a bug, because it maybe the intended behavior with Lunr, however having to use * wildcards in search these days does not feel natural to me. It will be great if we can have partial without wildcards.
Possible Implementation
I'm not familiar with Lunr.js myself, but from a brief look through the repo seems that this is the expected behavior. I'm not sure if there is a setting to toggle or there are any work around for this. I'll leave it to the Backstage search team to decide 🙇🏼
Context

Hey @jibone!  Thanks for trying it out, and opening up the discussion.
We encounter...  Well not quite this discussion exactly, but very similar discussions internally, as we support/maintain different search ranking criteria and biasing for different domains of search.
If you dig through the code, you'll see the LunrSearchEngine comes with a default Translator, which is responsible for taking an abstract search query (made up of a term, possibly some filters, and possibly specification of one or more indices) and turning it into the concrete search query understood by the underlying search engine.  The intention of packaging a translator by default with the specific search engine is twofold:

Provide a no-config needed first-time user experience for search.
Try and solve the 80% use-case (so that most adopters also don't have to tweak the search query/algorithm to be successful with search)

It might make sense to auto-append the * to the term in that default translator because perhaps that's what most people might expect.  On the other hand, maybe it doesn't?  Totally open to it!  I don't think we have a good method of evaluating what should go in the default translator vs. what we might expect adopters to customize in their apps.
To that end!  We understand we need to solve for the remaining 20% use-case as well, which is where the setTranslator() method on the search engine class comes in.  This is particularly handy when you start appending custom metadata to documents in the index that you may want to weight more heavily than other fields.  ..

I think this is resolved. I wrote a new translator for Lunr which always does a wildcard search. Same goes for the Postgres default translator.

Hi, I've recently been working on Backstage, and I think this issue should be brought back. Postgres seems to have similar problems with searching, particularly with titles with special characters like hyphens and periods (try for instance foo-bar.com, for example)


New EN wave is missing

just debuted a week ago

Finally got around to getting them added, thanks for raising it as an issue!


Bower install doesn't install this library.

bower install linkifyjs
bower linkifyjs#*               cached git://github.com/nfrasser/linkify-shim.git#1.1.7
bower linkifyjs#*             validate 1.1.7 against git://github.com/nfrasser/linkify-shim.git#*
bower jQuery-linkify#~1.1.7    install jQuery-linkify#1.1.7

It looks like the shim that it installs is indeed related to this library, but is a jquery dependent plugin, and not the full library.

I was able to get it to work with this command
bower install linkifyjs#v2.0.0-beta.7

This workaround should not be required once 2.0 is fully released.


Modify toolstate compare function for removeToolState method

Please check if the PR fulfills these requirements

[x] The commit message follows our guidelines
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Bug fix

What is the current behavior? (You can also link to an open issue here)
Modify toolState data compare function

What is the new behavior (if this is a feature change)?
Previously compare only simple object was possible, but now complex object is also possible.

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Nope.

Other information:
I apologize for my poor English.

Coverage decreased (-0.03%) to 6.879% when pulling 4f79aac95b1cc1cc93d64bdebc6630dd78c8bc1c on saseokjun:v2.4.x into cb606085b80b72160e6ad48899f62be995d92272 on cornerstonejs:v2.4.x.

Is there a specific real world bug/use case this fixes for you? Are you able to setup a minimal reproduction in Codepen or CodeSandbox? I'm wary of updating the v2.x branch for anything major, unless it's clear cut. It also helps if the changes would benefit 3.x and there is a matching PR.


fast shutdown with multiClick

To quickly power off the tracker you now can triple-press the user button.

After using this feature for one week now, i never want to live without that 😀 When leaving the car, you are not forced to hold the button for 5 secs - Nobody has the time for that 😂
Should be easy to merge...

I was reading all the code , how is the "three pushes" called? where is written it?
or was I missing this as the "OneButton" library?

Did you find it?

sorry sorry, was waiting for mods on the lora functions to add this all
but will add this sooner for you


Update mrtk-porting-guide.md

Fixed initial overview with release of MRTK v2 RC1, added initial design guidance, added ARM learnings.
There are more syncs with Design scheduled so we'll continue to update week of 4/15

Docs Build status updates of commit b355a39:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/mrtk-porting-guide.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


ESP8266 stay in job request and then get job recieved: 1

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Arduino (please complete the following information):

Arduino IDE Version
Library's Version

Additional context
Add any other context about the problem here.

same problem here, i cant seem to get a job from the server

new IP
String host = "<IP_ADDRESS>";


[feature]chrome.storage size limit

The quota limitation is 100 KB approx, 8 KB per item. Consider using it to preserve user settings across synced browsers.
Can you change the storage method? Or optimize the size of stored fields, otherwise exceeding 47 grouping rules will exceed the limit and new grouping rules cannot be added.

Oh, good catch, thank you. Let's see what I can achieve with some compression.

I have opted for LZMA-compressing groups before storing them. My personal configuration (64 URLs in 20 groups) is now down to 1.9KB from 4.6KB, and thanks to the compression, used storage should no longer grow linearly with the number of group configurations.
The 0.0.19 extension version with this change is uploaded for review in the web store and should be available in the next days.
Hit me up if you still get storage issues. There are other options to reduce the risk of running into limitations (sharding, in particular), but those are harder to implement with the current architecture, so for now I'll stick with compression.


Angular postback behavior

SPA is reloaded whilst routing

This has been more of an advantage than being a bug. So I am closing it


Dismiss SumUp dialogs from code

I am working on a self-service checkout (kiosk) type application.
The problem we're having is that one user might walk away from the app leaving a SumUp Dialog open. In an attempt to address this situation our app will time out and return to the root view controller, but sadly the SumUp dialog remains open, so the next user is greeted with a dialog/error.
Is there any way from code (short of restarting out app) to clear/close all SumUp dialogs and/or reset the SumUp SDK so each new user can be presented with a fresh screen without SumUp dialogs?
Many thanks,
Meurig

Hi @mollidor
Please inform the staff that at this point of maturity (for the sdk) this basic feature is more than necessary.
It is such disturbing that it's still not present
https://github.com/sumup/sumup-ios-sdk/issues/81#issuecomment-686628710


Update packaged libimobiledevice to latest

libimobiledevice 1.3.0
usbmuxd 1.1.1
libplist 2.2.0

Test newest versions with the tool. If all looks good, package it up and ship it.

While I'm at it, I should remove the few references of ideviceinstaller from the codebase.

While I'm at it, I should remove the few references of ideviceinstaller from the codebase.

I can do that.

While I'm at it, I should remove the few references of ideviceinstaller from the codebase.

I can do that.

SGTM, thanks

flutter run (iproxy), flutter install, flutter screenshot are working on these new versions from my local testing.


Option not use Universal back and forth with a list of apps, or to pass through the original back and forth buttons as well

Hey there!
Awesome that this exists, I was frustrated with my external mouse when I first got my mac a few months ago and this is very very nice software with all the features you really need :D
On to my feature request and why one would want/need that:
Issue:
I'm using the current version from Homebrew
Back and forth works great now with LinearMouse everywhere so far other than one place:
Remote-ing into my Windows PC via Parsec.
Parsec used to pass on the hardware side button clicks directly to my windows pc (but my mac obviously didn't know what to do with them), but as LinearMouse now converts those to swipe gestures nothing happens anymore (on my remote windows machine)
Fix / Feature Request:
This could be fixed by Parsec by implementing swipes on their mac client to send side button clicks, or by LinearMouse by:

not deleting the hardware side button click event when converting to swipes
or
adding a blacklisting (and whitelisting) feature per application for all sorts of features

not sure if 1. could lead to problems if other software actually handles the mouse side buttons as well as swipe gestures - either triggering the same action twice, or triggering two different actions.
But this could be the much easier fix to my problem (if it's possible) and similar ones with other apps that actually handle the side buttons in macos (I don't know any though, maybe games?).
option 2. could be useful for other cases as well, like setting mouse acceleration per application (again, could be useful for games).

Hi @ThunderFD,
Thank you for opening this issue!
I've noticed this issue in VS Code as well. Option 1 could result in the problem you say, and this is why LinearMouse deletes the raw click events.
I'm considering maintaining an application blacklist for this feature because a) it seems most apps handle swipe events and just a few handle only side button clicks, b) we can embed the list so most users would find it just works without any configuration, and c) application-specific settings could be difficult to implement for things like mouse acceleration.
But I'm not very certain for a). Only VS Code, virtualization applications, and remote control applications occur to me in my use cases.

Thank you for opening this issue!

Sure thing!

I've noticed this issue in VS Code as well.

Oh wow, you're right - VS Code also has this issue

I'm considering maintaining an application blacklist for this feature

Yeah this would be an option too, and it would also be pretty easy for users familiar with GitHub to create issues or pull requests to add another Application to that list/config file, helping all other users of Linearmouse in the process :)
So yeah, I'd be happy if something like that was implemented!

Would you provide the CFBundleIdentifier of Parsec?
A simple way is to run
osascript -e 'id of app "Parsec"'

in Terminal.app.

I've added Parsec into ignore list. You may try the version here.

Would you provide the CFBundleIdentifier of Parsec?

Sorry it was in the middle of the night for me

I've added Parsec into ignore list. You may try the version here.

That was fast!
I've tried it out and it works perfectly in Parsec and VS Code! thank you!


Restructuring website nav drawer

Codecov Report

Merging #1040 (648b97a) into main (9f2fa84) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1040   +/-   ##
=======================================
  Coverage   57.01%   57.01%
=======================================
  Files          73       73
  Lines        2261     2261
  Branches       62       62
=======================================
  Hits         1289     1289
  Misses        972      972

Continue to review full report at Codecov.

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


Cadl APIView tweaks for Stewardship board

See issue: https://github.com/Azure/azure-sdk-tools/issues/4454
Example:
https://apiview.dev/Assemblies/Review/f9ffc96c223d4af4b77060886849c9bf/f6efa0c0e3e744efbad1af1386f62247?doc=True&diffOnly=False

🥂

I will try to resolve the issue where my projection is not... projecting... before I merge this. Thanks for the review @johanste!!

It seems that the logic for filtering versions will work once APIView is released. Unfortunately I can't verify it beforehand due to a bug in the Cadl versioning library. I'll proceed with the release once the CI passes.


No building

Hello,
First thank you for your work, your project is very intersting.
Just I tried your project and the exact same data that you provide from Bron, and also the same Unity version. I 'm on windows. And the problem is that It create GameObjects but they are with only one or two vertices for each. Do you know how to fix it ? Do I have to do something special with your project. Thank you

Hello,
having the same problem as @ lovisio.
have you solve the problem or find a solution?
thanks

Same issue. It seems no feedback and updates.


Fix LICENSE file

GitHub has problems with it
curl "https://api.github.com/repos/predis/predis" -H "Accept: application/vnd.github.drax-preview+json" -s | jq '.license'

https://img.shields.io/github/license/szepeviktor/predis.svg?style=flat-square


Ntueeplus 17 add columns intro page

What is this PR for?

add a page that lists introduction to every column
create a database to store the introduction
What type of PR is it?
[Bug Fix | Improvement | Feature | Documentation | Hot Fix | Refactoring]
feature
Todos

[ ] - change pictures
[ ] - click event: routes to corresponding column

What is the Jira issue?

https://ntueeplus.atlassian.net/browse/NTUEEPLUS-17
Screenshots (if appropriate)
one introduction in 100%

@vwvwMM  Why your screen shot is so blurred?

@vwvwMM Why your screen shot is so blurred?

maybe because it is enlarged. i will try again


npl/riot: change dflt value for BLE_ACL_BUF_COUNT

As stated in #818, the old default value of 4 did lead to degraded performance concerning link throughput. The new value of 24 also seems to be the default value for other NimBLE ports, so it seems valid to me to use that as default for the RIOT port as well. Also this value has no impact on memory usage, so it seems to me there is no penalty in doing so.
For this PR I edited both files manually, as I was not able to re-generate the syscfg.h file using the newt tool. The steps listed in #648 were not working for me: I was not able to build the riot target included in the nimble repo (using Apache Newt 1.9.0-dev / 0886033 / 2020-06-04_18:03).

Hi @haukepetersen, recently there was a change in newt tool that broke the update script. Please take a look at https://github.com/apache/mynewt-nimble/pull/825.

rebased this PR on top of #825 and used the update_generated_files.sh script to re-generate syscfg headers.
As of now, I blindly committed all generated files, also including non-related ones for non-riot ports. I have to say I don't like it though. Maybe we can find a way that those version related values (as also pointed out in #825) are ignored or handled otherwise?

updated the PR on base of the latest changes in #825 -> changes for the regenerated riot syscfg.h file look much better now!

#825 is merged. Rebased this PR on master, so should be good for merge :-)

And go.


[Feature] Connect bot to data source

It seems intuitive that, once a user creates a data source, he should be able to query it somehow. It would be great if there were a field in the 'create bot' window to connect the bot to an existing data source.
It's entirely possible I'm missing something, but I can't see how to make that connection at the moment.
Thank you very much,
Adam

just adding onto this - maybe it's just instructions, but I have built indexes already from my in-house Jira and Confluence pages, and wanted to just hook them up to the chat.    That would be ideal as a first step - even better allow the various Llama Hub connectors to be added in.

@adbutler007 currently there's no UI for changing the data source of a bot, meanwhile you'll have to modify the JSON of the bot to add a datasource as described in https://github.com/run-llama/chat-llamaindex#-data-sources

Is the app built to take multiple pdf files in a datasources directory? Or must each directory take just one pdf file?

@adbutler007 you can use multiple PDFs in the same directory, as it's using the SimpleDirectoryReader in the generate.mjs script, see:
https://github.com/run-llama/chat-llamaindex/blob/df548a1918d476c5818b448cf75edd97feaa62d1/scripts/generate.mjs#L30-L32

@adbutler007 currently there's no UI for changing the data source of a bot, meanwhile you'll have to modify the JSON of the bot to add a datasource as described in https://github.com/run-llama/chat-llamaindex#-data-sources

it's not clear to me how bots created in the UI are added to the bot.data.ts file (to then subsequently be linked to the datasource as per above). Does one need to modify the bot.data.ts to create a bot and mirror that in the UI. I think I m not understanding how this is supposed to work... @marcusschiesser  cab you pls advise? thanks 🙏
ps. from my experience, adding a bot in the ui is not mirrored in bot.data.ts . maybe it's a bug?

@mourrr The bots are stored in localStorage. If it is empty, the data in bot.data.ts is copied as a template. So you have to clear localStorage; see https://github.com/run-llama/chat-llamaindex#-data-sources

本人不是很懂该如何在 UI 中创建的机器人添加到 bot.data.ts 文件中，可以给一个详细操作步骤吗。


Two files in the file imagenet2coco_vid.py

How do I get the Lists/VID_train_15frames.txt and Lists/VID_val_videos.txt in the file imagenet2coco_vid.py

Maybe you can find them in https://github.com/bingqingzhang/odd-vod （my poor English TAT）


Improve query logging

Scope & Purpose
Backport of https://github.com/arangodb/arangodb/pull/17300
Docs PR: https://github.com/arangodb/docs/pull/1140

Added startup option --query.log-failed to optionally log all failed AQL queries to the server log. The option is turned off by default, by can be turned on for development or debugging.
Added startup option --query.log-memory-usage-threshold to optionally log all AQL queries that have a peak memory usage larger than the configured value.
Added startup option --query.max-artefact-log-length to control the cutoff length for logged query strings and bind parameter values. This allows truncating large query strings and bind parameter values to reasonable lengths. Previously the cutoff value was hard-coded.
Additionally logs peak memory usage of queries for slow queries and failed queries.

[ ] :hankey: Bugfix
[x] :pizza: New feature
[ ] :fire: Performance improvement
[ ] :hammer: Refactoring/simplification

Checklist

[ ] Tests

[ ] Regression tests
[ ] C++ Unit tests
[ ] integration tests
[ ] resilience tests

[x] :book: CHANGELOG entry made
[ ] :books: documentation written (release notes, API changes, ...)
[x] Backports

[x] Backport for 3.10: https://github.com/arangodb/arangodb/pull/17387
[x] Backport for 3.9: this PR
[ ] Backport for 3.8: -

Related Information

[x] Docs PR: https://github.com/arangodb/docs/pull/1140
[ ] Enterprise PR:
[ ] GitHub issue / Jira ticket:
[ ] Design document:

@cta-bot check


net/http: changing Transport.Dial to DialContext opts in to HTTP/2

What did you do?
We changed http.Client from using the deprecated transport.Dial function to its replacement, transport.DialContext.
What did you expect to see?
Dial and DialContext should behave similarly when using the same parameters.
What did you see instead?
Using DialContext causes Transport to be configured for http/2. The custom dialer DialContext should not automatically enable http2 as specified in the comment at https://github.com/golang/go/blob/go1.10/src/net/http/transport.go#L228.
Does this issue reproduce with the latest release (go1.10.3)?
We noticed this issue in Go 1.10.2 and the offending code hasn't changed in Go 1.10.3.
System details
We deploy our code on linux/amd64.
We will submit a patch for this issue shortly.

@bradfitz

I thought this was specified in reverse, that using Dial instead of DialContext blocks the use of h2?


re-structure repository to be submodule-friendly

for those of us working on projects and want to include Bootstrap as a submodule in our git repos.
One Suggestion:
2 repositories:

/twitter/bootstrap-core contains only two folders: js and lib (perhaps rename lib to styles) and is the focus of development.
/twitter/bootstrap to maintain linkage, serves only as gh-pages repository (documentation, homepage, etc ..), includes  bootstrap-core as a submodule so even if cloning it, it comes with bootstrap-core.

there could be different configurations as well, I've seen some as extreme as separating components into separate repositories, with one main one that includes them all as submodules...

We're considering moving the docs out of the repo in 2.0 and only having them in the gh-pages branch - however I don't think we want to rename lib to styles. Maybe we'll change it to less - but unlikely. thanks for the input though!

renaming is always going to be a personal preference, it doesn't matter, the restructuring is though.
glad you're planing that for 2.0, been using 2.0-wip for a while for a couple of projects.

Do you use the less files or the built css file?

I use the less files since I need access to the mixins/variables my own
.less files.
Mostly just re-using mixins in my own classes, but especially useful for
overwriting.


Update to Alpine 3.21

Modelled after #498.
Requires https://github.com/docker-library/official-images/pull/18024.
This PR updates Alpine to the latest stable version: 3.21.
See also https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.21.0.

+ /sbin/iptables-legacy --version
/bin/sh: /sbin/iptables-legacy: not found

Doh, looks like Alpine 3.21 moved /sbin/iptables-legacy to /usr/sbin/iptables-legacy (https://gitlab.alpinelinux.org/alpine/aports/-/commit/c49f2fa7aeab3487da65ca4398477af73fde51cb)

Pushed a fix for iptables-legacy path change. Should be good to go now.


Branch mark and unmark tasks

Add command mark and unmark task to set it as completed and uncomplete respectively
closes #125 #126

Codecov Report
Base: 74.15% // Head: 75.08% // Increases project coverage by +0.93% :tada:

Coverage data is based on head (75ad210) compared to base (225f0d5).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #127      +/-   ##
============================================
+ Coverage     74.15%   75.08%   +0.93%
- Complexity      671      695      +24
============================================
  Files           107      111       +4
  Lines          2000     2051      +51
  Branches        240      244       +4
============================================
+ Hits           1483     1540      +57
+ Misses          451      445       -6
  Partials         66       66

Impacted Files
Coverage Δ

src/main/java/seedu/address/model/Model.java
100.00% <ø> (ø)

.../seedu/address/logic/commands/MarkTaskCommand.java
100.00% <100.00%> (ø)

...eedu/address/logic/commands/UnmarkTaskCommand.java
100.00% <100.00%> (ø)

.../seedu/address/logic/parser/AddressBookParser.java
100.00% <100.00%> (ø)

...du/address/logic/parser/MarkTaskCommandParser.java
100.00% <100.00%> (ø)

.../address/logic/parser/UnmarkTaskCommandParser.java
100.00% <100.00%> (ø)

...rc/main/java/seedu/address/model/ModelManager.java
87.38% <100.00%> (+4.91%)
:arrow_up:

src/main/java/seedu/address/model/AddressBook.java
85.71% <0.00%> (+4.76%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Dev Tilt: Support for Agent key & API key with enable-cloud-extension

Assigning this to me as I need this for Hashiconf demo setup


Update Toolkit to .NET 8.0 and dashboard changes

Description
The toolkit support for .NET 8.0. The dashboard changes quickstart example.
Testing
This change was tested by provisioning the quickstart on .NET 8.0 and the dashboard changes reflected.
Reviewer Checklist

[ ] Update the title of the PR to be succinct and less than 50 characters
[ ] Tag the PR with the type of update: Bug, New-Sample, Enhancement, or New-Feature
[ ] CI is green before merge

/azp run

/azp run

/azp run

/azp run


Memory leak detected.

Hello,
I use the crate-0.10.0 for our embedding recall, and have found some tips:
a. IndexImpl has not impl concurrentIndex, so IVFScalarQuantizerIndexImpl returned by into_ivf_scalar_quantizer builds error;
b. search increase the leaking of memory without upbound limit, so does the read_index, dropped but no release the RES memory.
What would the problem be? Anybody encount?
Thanks

Hello. Could you please provide a few examples that reproduce the problems reported? This would help to better understand the underlying issues with the bindings.

a. IndexImpl has not impl concurrentIndex, so IVFScalarQuantizerIndexImpl returned by into_ivf_scalar_quantizer builds error;

IndexImpl should definitely not implement ConcurrentIndex because it is unknown whether shared access to the index is safe. At best, there may be a poor integration of that with the IVF scalar quantizer.

Sry for reply so late. @Enet4
Here is an example code. Mock as a server, its memory will raises rapidly from 2M to 10+G and without upper bound.
I build it with "rustc 1.58.0-nightly (b426445c6 2021-11-24)"，and faiss "c_api_v1.7.1" with "cmake -B build -DFAISS_ENABLE_C_API=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DFAISS_ENABLE_GPU=false" by "g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0".
=========
extern crate faiss;
extern crate rand; //rand = "0.3.17"
fn random_embedding(rng: &mut ThreadRng, dims: usize) -> Vec {
let mut embedding = Vec::with_capacity(dims);
for _ in 0..dims {
embedding.push(rng.gen_range(-1.0, 1.0));
}
return embedding;

}
fn main() {
let mut rng = rand::thread_rng();
let dims = 64u32;
let doc_count = 10000usize;

{
    let mut ids = Vec::with_capacity(doc_count);
    let mut embeddings = Vec::with_capacity(doc_count * dims as usize);
    for i in 0..doc_count {
        ids.push(Idx::new(i as u64));
        embeddings.extend_from_slice(random_embedding(&mut rng, dims as usize).as_slice());
    }

    let mut index =
        IVFFlatIndexImpl::new_ip(faiss::FlatIndex::new_ip(dims).unwrap(), dims, 10).unwrap();
    index.set_verbose(true);
    index.train(&embeddings).unwrap();
    index.add_with_ids(&embeddings, &ids).unwrap();

    write_index(&index, "/tmp/test.index").unwrap();
}

loop {
    let query = random_embedding(&mut rng, dims as usize);
    let mut index = read_index("/tmp/test.index").unwrap();

    let k = 100;
    let mut count = 0;
    loop {
        if count > 10000 {
            break;
        }

        let result = index.search(&query, k);
        count += 1;
        if count % 1000 == 0 {
            println!("{} {:?}", count, result);
        }
    }

    sleep(Duration::from_secs(10));
}

}

This seems as a issue about memory leak in search case.
https://github.com/facebookresearch/faiss/issues/2054

@ava57r @Enet4 ,  it works.
Many thanks.


Opening Developer Tools makes the window undraggable

[x] I am on the latest Hyper.app version

[x] I have searched the issues of this repo and believe that this is not a duplicate

OS version and name: macOS Sierra 10.12.1

Hyper.app version: <IP_ADDRESS>8

Link of a Gist with the contents of your .hyper.js: Here

Relevent information from devtools (CMD+SHIFT+I on Mac OS, CTRL+SHIFT+I elsewhere):

(re)loading renderer plugins
index.html:34 total init time<PHONE_NUMBER>0000003
bundle.js:32264 Unimplemented DEC Private Mode: 1034

The issue is reproducible in vanilla Hyper.app: Yes

Issue
Opening Developer Tools by toolbar or keyboard shortcut makes the app window undraggable. A full refresh does not resolve the issue, an app restart is required. Other windows are not affected, however other tabs are.

@ppot I actually believe this is an Electron issue, not a Hyper one.

@LoganDark Thats why I closed it. There is already an issue for this.

OK


Task not get rescheduled randomly

Code for reproduce:
use std::{
    cell::RefCell,
    thread::{self, sleep},
    time::{Duration, Instant},
};

use async_task::{Runnable, Task};
use futures::{channel::mpsc, Future, StreamExt};

thread_local! {
    static RUNNABLE_LIST: RefCell<Vec<Runnable>> = RefCell::new(Vec::new());
}

fn poll_once() -> usize {
    let runnable_list: Vec<_> =
        RUNNABLE_LIST.with(|runnable_list| runnable_list.borrow_mut().drain(..).collect());
    let count = runnable_list.len();
    for runnable in runnable_list {
        let waker = runnable.waker();
        runnable.run();
        waker.wake();
    }
    count
}

fn spawn(task: impl Future<Output = ()> + Send + 'static) -> Task<()> {
    let (runnable, handle) = async_task::spawn(task, |runnable| {
        RUNNABLE_LIST.with(|runnable_list| runnable_list.borrow_mut().push(runnable));
    });
    runnable.schedule();
    handle
}

fn main() {
    let (tx, mut rx) = mpsc::unbounded();
    let handle = spawn(async move {
        loop {
            let _: () = rx.next().await.unwrap();
        }
    });

    thread::spawn(move || loop {
        sleep(Duration::from_millis(20));
        tx.unbounded_send(()).unwrap();
    });

    let start = Instant::now();
    while Instant::now() - start < Duration::from_millis(1 * 1000) {
        // assert_eq!(poll_once(), 1);
        poll_once();
    }
    assert_eq!(poll_once(), 1);
    drop(handle);
}

I understand wake up runnable immediately unconditionally will waste a lot of CPU, but I have a good reason to do it in my case.
The problem here is poll_once returns 0 after random duration, and probably cannot last for 1 second. That means the task disappeared in the system at some instant. According to my observation it never appear again after that, even when channel tx send new message.
One interesting point is that when simplify async task into futures::pending() it never disappear. Is there anything I did incorrect?

I could indeed reproduce this, but I have a theory: I suspect this might happen if the call to waker.wake() happens while the task is being concurrently woken by the sender. When this happens, the first caller to wake (in this case the sender thread) is responsible for scheduling the task.
In such scenario, the task may not be visible in the queue yet the next time poll_once is called, possibly because the sender was pre-empted before it could re-schedule the task, or because of inter-thread communication latency, or simply because the scheduling process takes more instructions. So mu hunch is that this is a concurrency bug in the user code rather than in async-task.


Testgroup Announcements

Starting an Issue for announcements (and also to grab #1!).

I'm happy to announce that testgroup v0.3.0 was released on 2020-07-23. This is our first public, open source version! :tada:
(The older two releases are from when the project was internal to Bloomberg.)
I consider this version to be fairly stable – I don't have any major changes or improvements that I'm waiting to do.
If you have suggestions for how testgroup can be better, please let us know by opening an Issue!


winxp error

2019-06-03 06:53:51,666 'Starting ./detect_bluekeep.py'
2019-06-03 06:53:51,667 './detect_bluekeep.py <IP_ADDRESS> -d'
2019-06-03 06:53:51,667 'Going to scan 1 hosts, in 300 parallel tasks'
2019-06-03 06:53:51,668 '[D] [<IP_ADDRESS>] Verifying RDP protocol...'
2019-06-03 06:53:51,687 "Received: b'0300000b' to_receive: 000b"
2019-06-03 06:53:51,687 "Received data: b'0300000b06d00000123400'"
2019-06-03 06:53:51,687 '[D] [<IP_ADDRESS>] Exception occured during RDP connect: index out of range'
2019-06-03 06:53:51,688 '[-] [<IP_ADDRESS>] Status: NO RDP'
the test RDP is opened.

Hi please retest now.


⚠ Bofrost.fr has degraded performance

In 5b8c3dc, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1637 ms

Resolved: Bofrost.fr performance has improved in 5533f99.


Add -e extractLocStrings option

extractLocString replaces genstrings and fixes error when NSLocalizedString with more than 2 parameters doesn't appear in resulting .string file.

Thank you for this great pull request, I just had a look and it looks fine to me, I'm merging. Only thing I'm missing is a mention of the new feature in the README with a notice that it'll probably be the default option in the future. I'm planning to tackle #26 now and then gonna make a minor version update. If you want to update the README just give me a small message here and open a new pull request for it. Otherwise I'll write a small section in the README and make the release.
Thanks again! 👍

Oh I just realized you set the target of the PR to the productive branch. That one is for release-commits only, please use the default branch stable for future PRs. Thanks!

Sorry, didn't respond for long time. Glad to help!


Fixed trigger to end conversation in telephony. Issue #222

As discussed in issue #222 the end_interaction was not working as the v2 agent was sending triggerEndOfConversation for which dialogflow was giving an error.

I signed it!

Signed the CLA


feat: @mapsTo directive for retaining tables on model rename

Description of changes

Creates a new GraphQL directive @mapsTo to enable renaming a model while retaining the underlying DynamoDB table.
The implementation registers a mapping of model name to table name if the directive is present and then uses this mapping to generate the table name.
Some additional logic is added to the function dependency logic to also use this mapping when a function depends on a renamed model.
Also makes some small modifications to the auth and searchable transformer to ensure that they map to the original table / index correctly as well
Issue #, if available
https://github.com/aws-amplify/amplify-cli/issues/7672

Description of how you validated changes
manually tested, unit tested and graphql mock tests
Checklist

[x] PR description included
[x] yarn test passes
[x] Tests are changed or added
[ ] Relevant documentation is changed or added (and PR referenced)
[x] New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies

Docs will be included in the GraphQL V2 docs once that is live
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

since this PR is pretty stale, I'm going to close and open a new one after rebasing and some additional updates


Fix panic if input string contains null string \x00 (#137)

Coverage increased (+0.4%) to 85.867% when pulling d177ae8b0406bf63d4c551fc006dc2ab6ad38371 on migrations_from_kagome into dd3ae0544a806f4d39df5a70f46494adb3fbbfa2 on master.

Coverage increased (+0.4%) to 85.867% when pulling d177ae8b0406bf63d4c551fc006dc2ab6ad38371 on migrations_from_kagome into dd3ae0544a806f4d39df5a70f46494adb3fbbfa2 on master.


Metrics do not have instance_id or container_id in case when deployed using docker or kubernetes

What version of OpenTelemetry are you using?
"@opentelemetry/api": "1.9.0",
"@opentelemetry/auto-instrumentations-node": "0.49.1",
What version of Node are you using?
Node 14.17.6 and Node 16.19.0 both versions tested
What did you do?

I have multiple instances of a service running on 2 AWS EC2 (2 instances). Due to this the counter values maintained for http_server_duration_milliseconds_count have some difference that leads to Grafana Alloy (based on opentelemetry collector) showing a zig zag pattern (due to time diff between the 2 instances start). In java and python for multiple instances getting an instance__id associated with metrics but in case of Nodejs that was not the case.
Thought might be due to docker container or k8 cluster, tried the same for this application but still not getting any containerid or instance_id to distinguish between different instances metrics
What did you expect to see?
expected to see behaviour similar to Java and Python Opentelemetry wherein getting the instance_id attribute in the metrics
What did you see instead?
no instance_id attribute in metrics for nodejs
Additional context

This really affects the graph in grafana alloy resulting in rate graphs having a much higher value than showing zero, which really put us off

It look like there's a feature enabled on the Python and Java Prometheus exporters that makes resource attributes appear on the metric. This is an optional feature that we have not implemented yet, so I'm changing this to a feature-request.
Specification: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/prometheus.md#configuration


Update funvals method of CUQIarray class

closes CUQI-DTU/CUQIpy-FEniCS#14

Tests for this update are handled by CUQI-DTU/CUQIpy-FEniCS#14. These tests currently does not pass but once this PR is merged the tests in CUQI-FEniCS will be triggered again and supposedly will pass.

Hi @amal-ghamdi, it seems to me that we are checking if an object was put into a numpy array and then extracting it again? Are we sure we want to support this behavior? It would be more clear for me if other parts of the code does not put objects into numpy arrays if they do not belong?
Edit: I see now that we want to support stuff like FEniCS objects that represent function values.
I think it is very mystical to put these into a numpy array (seems to be from par2fun?), but less mystical if its a CUQIarray. I wonder if we could only check for the CUQIarray case? (I know CUQIArray is currently subclassed from NumPy, but it may not be in the future)

Thank you @nabriis
Yes I agree with you it is not optimal and I believe that subclassing CUQIarray, though very powerful, limits what type of objects can be held as a function value.
Now the current implementation of CUQIarray (unrelated to this PR) will wrap the passed value into numpy array automatically, e.g.
u = dl.Function(V)
u_CUQIarray = cuqi.samples.CUQIarray(u, is_par=False, geometry=model.domain_geometry)
u_CUQIarray

will results in
CUQIarray: NumPy array wrapped with geometry.
---------------------------------------------

Geometry:
 FEniCSContinuous(101,)

Parameters:
 False

Array:
CUQIarray(Coefficient(FunctionSpace(Mesh(VectorElement(FiniteElement('Lagrange', interval, 1), dim=1), 0), FiniteElement('Lagrange', interval, 1)), 27),
          dtype=object)

And this is what cause two tests cases to fail:
    # Test passing a CUQIarray containing dolfin function
     u = dl.Function(V)
     u_CUQIarray = cuqi.samples.CUQIarray(u, is_par=False, geometry=model.domain_geometry)
     y = model(u_CUQIarray)

     # Test passing a CUQIarray containing dolfin function wrapped in np.array
     # This is not recommended, but should work
     u = dl.Function(V)
     u_CUQIarray = cuqi.samples.CUQIarray(np.array(u, dtype='O'), is_par=False, geometry=model.domain_geometry)
     y = model(u_CUQIarray)

May be I can look into the CUQIarray initializer and update it to not wrap objects in numpy array?

Thank you @jakobsj for your helpful review! I updated the documentation in funvals I appreciate it if you can take a look at the updates.


⚠ Jenkins Plugins Artifactory has degraded performance

In 3e5d6c8, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1154 ms

Resolved: Jenkins Plugins Artifactory performance has improved in f2a914f after 12 minutes.


Re-Add Ability to add a video to the Queue

For individual videos need to be able to add them to the queue.

This is implemented with issue #371 being re-added.  The internal player does not yet support looping through the videos for playback so will keep this open until that is completed.

Related to #388 and emby playlist support


[ServiceBus] Send message didn't recovered after network disconnect.

Package Name:  azure-servicebus
Package Version: 7.0.0b8
Operating System: Mac 10.15.5
Python Version: 3.6.10

Describe the bug
sending message was infinitely blocked when network interrupted
To Reproduce
Steps to reproduce the behavior:
with the function from example like this
def send_batch_message(sender):
    batch_message = sender.create_message_batch()
    print('disconnect network here')
    time.sleep(15)
    for _ in range(10):
        try:
            batch_message.add_message(ServiceBusMessage("Session Message inside a ServiceBusMessageBatch", session_id=SESSION_ID))
        except ValueError:
            # ServiceBusMessageBatch object reaches max_size.
            # New ServiceBusMessageBatch object can be created here to send more data.
            break
    sender.send_messages(batch_message)
    print('success')

disconnect the network in time.sleep()
then wait till it to sender.send_messages
reconnect network
infinite block

Expected behavior
should have mechanism to retry or raise exception at least

hey @cropse , thanks for reaching out.
I tried to reproduce the issue locally but failed. I could get the error raised out.
I'm working on a Windows machine, what I did to disconnect the network is to:

when the program starts sleeping, I go into the Control Panel\Network and Internet\Network Connections disabling all the networks.

Could you tell me which platform you're on and how you disconnect the network?
---------My reproduce error log----------
In azure-servicebus 7.0.0b8, disconnecting the network would give me ServiceBusConnectionError, my error log is as follows:
ConnectionClose('ErrorCodes.UnknownError: Connection in an unexpected error state.')
Traceback (most recent call last):
  File "..\Anaconda3\envs\servicebus37\lib\site-packages\uamqp\authentication\cbs_auth.py", line 76, in create_authenticator
    self._connection.container_id)
  File ".\src/cbs.pyx", line 73, in uamqp.c_uamqp.CBSTokenAuth.__cinit__
ValueError: Unable to open CBS link.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "..\Anaconda3\envs\servicebus37\lib\site-packages\azure\servicebus\_base_handler.py", line 247, in _do_retryable_operation
    return operation(**kwargs)
  File "..\Anaconda3\envs\servicebus37\lib\site-packages\azure\servicebus\_servicebus_sender.py", line 187, in _send
    self._open()
  File "..\Anaconda3\envs\servicebus37\lib\site-packages\azure\servicebus\_servicebus_sender.py", line 175, in _open
    self._handler.open(connection=self._connection)
  File "..\Anaconda3\envs\servicebus37\lib\site-packages\uamqp\client.py", line 259, in open
    self._build_session()
  File "..\Anaconda3\envs\servicebus37\lib\site-packages\uamqp\client.py", line 214, in _build_session
    on_attach=self._on_attach)
  File "..\Anaconda3\envs\servicebus37\lib\site-packages\uamqp\authentication\cbs_auth.py", line 82, in create_authenticator
    "Please confirm target hostname exists: {}".format(connection.container_id, connection.hostname))
uamqp.errors.AMQPConnectionError: Unable to open authentication session on connection b'SBSender-ffa68263-b4db-4604-ae1f-09b10aac2f56'.
Please confirm target hostname exists: b'xxx.servicebus.windows.net'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "../azure-sdk-for-python/sdk/servicebus/azure-servicebus/samples/sync_samples/session_send_receive.py", line 68, in <module>
    send_batch_message(sender)
  File "../azure-sdk-for-python/sdk/servicebus/azure-servicebus/samples/sync_samples/session_send_receive.py", line 45, in send_batch_message
    sender.send_messages(batch_message)
  File "..\Anaconda3\envs\servicebus37\lib\site-packages\azure\servicebus\_servicebus_sender.py", line 370, in send_messages
    require_last_exception=True
  File "..\Anaconda3\envs\servicebus37\lib\site-packages\azure\servicebus\_base_handler.py", line 251, in _do_retryable_operation
    last_exception = self._handle_exception(exception, **kwargs)
  File "..\Anaconda3\envs\servicebus37\lib\site-packages\azure\servicebus\_base_handler.py", line 228, in _handle_exception
    raise error
azure.servicebus.exceptions.ServiceBusConnectionError: Failed to open handler: Unable to open authentication session on connection b'SBSender-ffa68263-b4db-4604-ae1f-09b10aac2f56'.
Please confirm target hostname exists: b't1sbtest.servicebus.windows.net'.

As you may know, we have just released azures-servicebus 7.0.0 GA version in which we improved our error design by switching to an condition based approach.
I also tried to reproduce the issue in 7.0.0 which now would give me ServiceBusError, my error log is as follows:
ConnectionClose('ErrorCodes.UnknownError: Connection in an unexpected error state.')
end sleeping
Traceback (most recent call last):
  File "..\azure-sdk-for-python\sdk\servicebus\azure-servicebus\azure\servicebus\_base_handler.py", line 293, in _do_retryable_operation
    return operation(**kwargs)
  File "..\azure-sdk-for-python\sdk\servicebus\azure-servicebus\azure\servicebus\_servicebus_sender.py", line 238, in _send
    self._handler.send_message(message.message)
  File "..\Anaconda3\envs\servicebus37\lib\site-packages\uamqp\client.py", line 725, in send_message
    running = self.do_work()
  File "..\Anaconda3\envs\servicebus37\lib\site-packages\uamqp\client.py", line 397, in do_work
    return self._client_run()
  File "..\Anaconda3\envs\servicebus37\lib\site-packages\uamqp\client.py", line 650, in _client_run
    self._connection.work()
  File "..\Anaconda3\envs\servicebus37\lib\site-packages\uamqp\connection.py", line 251, in work
    raise self._error
uamqp.errors.ConnectionClose: ErrorCodes.UnknownError: Connection in an unexpected error state.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "../azure-sdk-for-python/sdk/servicebus/azure-servicebus/samples/sync_samples/session_send_receive.py", line 68, in <module>
    send_batch_message(sender)
  File "../azure-sdk-for-python/sdk/servicebus/azure-servicebus/samples/sync_samples/session_send_receive.py", line 45, in send_batch_message
    sender.send_messages(batch_message)
  File "..\azure-sdk-for-python\sdk\servicebus\azure-servicebus\azure\servicebus\_servicebus_sender.py", line 393, in send_messages
    require_last_exception=True
  File "..\azure-sdk-for-python\sdk\servicebus\azure-servicebus\azure\servicebus\_base_handler.py", line 297, in _do_retryable_operation
    last_exception = self._handle_exception(exception)
  File "..\azure-sdk-for-python\sdk\servicebus\azure-servicebus\azure\servicebus\_base_handler.py", line 252, in _handle_exception
    raise error
azure.servicebus.exceptions.ServiceBusError: Connection in an unexpected error state. Error condition: ErrorCodes.UnknownError.

I'm using Mac as test operating system, so probably is the specific issue only on macOS.
here is entire code:
#!/usr/bin/env python

import time
from azure.servicebus import ServiceBusClient, ServiceBusMessage

CONNECTION_STR = ""
TOPIC_NAME = ''
SUBSCRIPTION_NAME = ''
SESSION_ID = ''

def send_batch_message(sender):
    batch_message = sender.create_message_batch()
    print('disconnect network here')
    time.sleep(15)
    for _ in range(10):
        try:
            batch_message.add_message(ServiceBusMessage("Session Message inside a ServiceBusMessageBatch", session_id=SESSION_ID))
        except ValueError:
            # ServiceBusMessageBatch object reaches max_size.
            # New ServiceBusMessageBatch object can be created here to send more data.
            break
    print('start to send message, reconnect your network!!')
    sender.send_messages(batch_message)
    print('success !!')

servicebus_client = ServiceBusClient.from_connection_string(conn_str=CONNECTION_STR, logging_enable=False, retry_total=10)
with servicebus_client:
    receiver = servicebus_client.get_subscription_receiver(
        topic_name=TOPIC_NAME,
        subscription_name=SUBSCRIPTION_NAME
    )
    sender = servicebus_client.get_topic_sender(TOPIC_NAME)
    with sender:
        send_batch_message(sender)

print("Receive is done.")

thanks for the code @cropse, I'll try it on my mac

hey @cropse , confirming the issue on macOS.
However, the issue seems to be with the deeper C layer (azure-c-shared-utility) which is not able to detect the network is down.
I need more time into investigation.
If you want the code to work first, you could probably do some local check to mitigate:
from azure.servicebus.exception import OperationTimeoutError
with sender:
    try:
        while tried_time <= 3:
            sender.send_messages(message, timeout=10)
        else:
            # all retry failed, shutdown the sender, create a new sender and start the send flow again
    except OperationTimeoutError:
        tried_time += 1

hey @cropse, we have enhanced the underlying C library to be able to detect error IO status on MacOS.
uamqp v1.2.13 is released today to include the fix.
Please upgrade to the latest uamqp version (e.g. pip install uamqp --upgrade) to see if it solves your problem.
I'm closing the issue now, feel free to reopen if you still get trouble with the latest version.

hey @cropse, we have enhanced the underlying C library to be able to detect error IO status on MacOS.
uamqp v1.2.13 is released today to include the fix.
Please upgrade to the latest uamqp version (e.g. pip install uamqp --upgrade) to see if it solves your problem.
I'm closing the issue now, feel free to reopen if you still get trouble with the latest version.


Allow creation of meta annotation with @GrpcClient

As of now it is not possible to create a meta annotation with @GrpcClient("client-key").
@GrpcClient("client-key-profile-1")
SameTypeStub stub
@GrpcClient("cient-key-profile-1")
SameTypeStub stub
we have a requirement where based on some logic we can switch between stub of same type but with different profile (different address)
So was thinking for creating a meta annotation so that we can keep a annotation like
@CustomGrpcClient("client-key-profile-1", "PROFILE-1")
@CustomGrpcClient("client-key-profile-1", "PROFILE-2")

Do you have an example for this in spring boot?

Sample meta annotation example:
@Target(ElementType.TYPE)
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface QueryRequest {
}
@Target(ElementType.ANNOTATION_TYPE)
@Documented
@Retention(RetentionPolicy.RUNTIME)
@QueryRequest
@interface NextQueryRequest

 @Target(ElementType.ANNOTATION_TYPE)
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface QueryRequest {
}
@Target(ElementType.ANNOTATION_TYPE)
@Documented
@Retention(RetentionPolicy.RUNTIME)
@QueryRequest
@interface NextQueryRequest

@GrpcClient annotation is does not have Target as ElementType.ANNOTATION_TYPE
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface GrpcClient

Ref: https://stackoverflow.com/questions/63426869/unable-to-create-meta-annotation-for-requestbody-in-springboot

If that is all that is needed, I would say: Contributions welcome.


lnd reconnect (existing channel) to eclair: failure

Background
I'm running lnd on lnurl-pay.me, maintaining a channel to lntxbot.com.
Recently the channel fails to be brought up on reconnect. From my (lnd) side it looks like the peer closes the channel after I send RevokeAndAck and CommitSig, while from eclair side it looks like I'm not sending expected RevokeAndAck promptly:
    Forwarded From: (B){Bastien Teinturier} at 00:50
    It means your node sent a 'commit_sig', to which the counterparty
    should promptly reply with a 'revoke_and_ack' to finalize the
    update, but they have gone silent for more than 30 seconds, so
    eclair disconnects and reconnects to (hopefully) trigger the logic
    on their side (it helped a lot with buggy lnd nodes)                   00:54
    is this connection over tor?                                           00:56

The connection is over clearnet.
Your environment

lnd @ 217019aa8a2bdf44f9660b1df7466e3f34630c05
Linux  5.1.0
bitcoind 22.0

Steps to reproduce
Probably can't be reproduced at will.
Expected behaviour
The channel is working
Actual behaviour
The channel doesn't work

lnd.log.gz
My lnd log with debug loglevel, the relevant fragment starts with "we owe them a revocation"
channel.json.txt
Eclair channel states from the remote side

Answer to this?

is this connection over tor?

Also if the channel has already been force closed, then nothing can be done till the force close transaction actually confirms.

Answer to this?

is this connection over tor?

No, it's over clearnet, as written above.
Actually the channel came back alive and well after several hours, the problem just disappeared.

It started happening again (same peer, same channel).

Does this repro w/ rc3? A connection related bug/regresssion was fixed.

@Roasbeef the channel works fine for several days. I haven't noticed exact timing w.r.t. rc3, unfortunately.
Would you please let me know which commit could have fixed this? It'll help my understanding of lnd and where to look for future bug causes.

Closing this issue. Feel free to re-open if you are encountering it again with the latest LND. Thanks.


Display CPU and memory reservations along-side node CPU and memory capacity in cluster visualizer

Is your feature request related to a problem? Please describe.
I'm adding CPU and memory limits and reservations to every service we deploy. But it's difficult to know when looking at a swarm cluster with a hundred tasks, how close we are to filling our infrastructure and make scaling decisions.
Describe the solution you'd like
For each node in the cluster visualizer, display CPU and memory as {sum-of-reservations}/{actual-available}. E.g. CPU: 0.8/1 and Memory: 7.5/8 GB. Then we can easily tell if we need to add another node before deploying a new stack.
Describe alternatives you've considered
Configure infrastructure monitoring like DataDog and alerts when nearing capacity. But this measures actual utilisation, not Docker Swarm reservations. DataDog might think we have capacity when most or even some services are not operating under load, but Docker will fail refuse to schedule tasks on nodes that already have filled their available capacity with existing reservations.

This should also display reservations/limits along side capacity on the Swarm page in both the overall Cluster status list and the Nodes list.

Could someone provide quick tips on what files/components are involved achieving this?

@JavierPandu some views in Portainer and their related files to look at are:

Cluster overview view located in portainer/app/docker/views/swarm/swarm.html
Cluster visualizer view located in portainer/app/docker/views/swarm/visualizer/swarmvisualizer.html
Host overview view (specifically the host details section) located in portainer/app/docker/views/host/host-view.html with the host details section built by portainer/app/docker/views/host/host-view-controller.js

Any news on this?


Simplify External and Loadable usage

If we're not using the External::Loaded variant at all, the whole type should probably away. The sole purpose of the enum was to make it easy to supply custom values for configuration that may be in an external file in a test (temporary files have to be used instead if this is removed). Currently this functionality is not used at all, so maybe it is time to go.
We probably want to go a step further and remove the logic from the configuration entirely. Components would then themselves be responsible for loading data from a file. This does move the point of failure back a bit (from configuration load to execution), but potentially the reduced complexity is worth it.

Note that I have removed External::Loaded here.  The whole enum is isomorphic to Option<Path> once #1843 lands.

We probably want to go a step further and remove the logic from the configuration entirely. Components would then themselves be responsible for loading data from a file.

👍 💯


fixed a bug that would happen when an enum contained multiple names for the same value

for the following enum:
enum example{
firstname = 0,
secondname = 0,
othervalue = 1,
}

the old code would generate a list that said:
firstname
firstname
othervalue

also colors the extra names for a value so users understand why when they select it the display says something else.
some extra code could be added to make the display show the selected name instead of the first but this seems unnecessary and like it could cause more confusion the next time the ui is generated and the first name is shown again.

I feel like I remember experimenting with using GetNames instead of GetValues at some point but ran into an issue and I reverted it back, but I don't see that in the commit history
I'll look at this more closely later


kotlin-native: 1.9.10 -> 1.9.20

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/JetBrains/kotlin/releases.
meta.description for kotlin-native is: A modern programming language that makes developers happier
meta.homepage for kotlin-native is: https://kotlinlang.org/
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.9.20 with grep in /nix/store/n4wx0ag86ikqhff7gx0hii6zbaz682bj-kotlin-native-1.9.20
found 1.9.20 in filename of file in /nix/store/n4wx0ag86ikqhff7gx0hii6zbaz682bj-kotlin-native-1.9.20

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
kotlin-native

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/n4wx0ag86ikqhff7gx0hii6zbaz682bj-kotlin-native-1.9.20 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A kotlin-native https://github.com/r-ryantm/nixpkgs/archive/4585ec287825b6a34296fa192c67ea77d5536467.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/4585ec287825b6a34296fa192c67ea77d5536467#kotlin-native

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/n4wx0ag86ikqhff7gx0hii6zbaz682bj-kotlin-native-1.9.20
ls -la /nix/store/n4wx0ag86ikqhff7gx0hii6zbaz682bj-kotlin-native-1.9.20/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

kotlin-native

Maintainer pings
cc @fabianhjr for testing.

see #270594 this auto-update broke macos as it only updated the hashes for x64 linux.


fix(backend): update logfiles clearance-script

🍰 Pullrequest

Issues

None

Todo

[X] correct name pattern for file search
[X] correct time pattern for file search

it depends on the last kind of file access, which time is modified.
the ctime, which carries the last inode change of the file will not be touched as soon as the file was compressed, but the atime does
the mtime will always be touch as soon as the content of the file was changed
...so on my opinion mtime will not be the correct time


[Feature]

One problem I have is having multiple stores.
Describe the feature you'd like
I would like the ability to have more than one store,
Example:
!ms_inventory Wands_Staffs_and_Capes
!ms_inventory Mystic_Marvels
Both pulling up different stores.
Another helpful thing with this would be a command to list all stores.

Thanks for your Feedback. I will see what I can do

This is gonna take a while as I'm gonna have to rewrite the entire script

Have the first draft done, working on further improving and making it work

@KivaGale Sadly I will need to put this on hold as there are some problems. So for now I won't continue working on this until I find a way to implement your wish

Alright @KivaGale , good news: I think I may have found a way to make multiple stores work. I will begin working on it now and I'll let you know once I've added it.

@KivaGale I'm very close to finishing the new Version, look forward to my next release ^^

Oooo hype!


Is there any instruction of installing new python package into hue?

What is your operating system and what is the default Python?

atrbear@atrbear:~$ lsb_release -a No LSB modules are available. Distributor ID:	Ubuntu Description:	Ubuntu 16.04.3 LTS Release:	16.04 Codename:	xenial atrbear@atrbear:~$ python --version Python 2.7.12

I also post it in https://groups.google.com/a/cloudera.org/d/msg/hue-user/GpWTQlpe-Gk/_SD9BdDxAwAJ


Improve skia text shaping & bounds calculation

Fixes Skia crashes on Windows by using different bounds calculations and a more complete shape() function call.

Just merged :+1: with a couple of extra fixes: 583d045dba4a5218b3732e44607423ca657c383c and 06279da54f2849ee042897af5457efa442401ab4


mipmap downscaling needs to do alpha weighting

Here is what happens when you render a downscaled texture of a black antialiased circle against a black background in libgdx

The color of the pixels around the edges of the image(fully transparent white) are being mixed with the not-entirely transparent pixels(black) on the alias of the circle. This can be avoided by using a blending function that weights the colors of transparent pixels by their alpha (so pixels you fully can't see wont interfere with your render)
Wolfire discuss it here blog.wolfire.com/2009/01/scaling-images-with-alpha/
There are other workarounds, but that seems like the most reasonable default behavior.
btw, here's precicely how I'm loading the image:
def scalableTexture(fileName:String) = {
	val ret = new Texture(new FileHandle(fileName), true) //mipmapping on
	ret.setFilter(Texture.TextureFilter.MipMapLinearLinear, Texture.TextureFilter.MipMapLinearLinear)
	ret
}

Thanks for your contribution! If you think that there's an issue with the way your GPU samples texture or generates mipmaps then please report an issue with your GPU manufacturer. If you think that there's an issue with the OpenGL ES specification then please report an issue with the Khronos group. Either way, this is not an issue of libgdx.


how to deploy this repo as it is ?

thank you so much for this awesome project, i am trying to deploy this exact website to vercel but it shown a error  "there is no public directory available" , i want to deploy this repo because i want play its code and learn and wants to see and make some fundamental changes on how it works , please help me what should i do so that i can deploy this repo on vercel

@abhinavpatel0 I believe the website lives in the /docs folder. You'd either have to deploy that folder to Vercel or set the Root Directory settings in your Vercel project to docs. Hope this helps!

@abhinavpatel0 I believe the website lives in the /docs folder. You'd either have to deploy that folder to Vercel or set the Root Directory settings in your Vercel project to docs. Hope this helps!

i tried this alreadt but sadly this doesnt work, thanks

I just tried this and here are more detailed instructions:

Get the code by cloning this repo or downloading the zip file

Open the /docs folder

In package.json replace the two instances of workspace:* with the latest Nextra version (currently ^2.8.0) so that lines 16 and 17 look something like this:
"nextra": "^2.8.0",
"nextra-theme-docs": "^2.8.0",

Deploy to Vercel: vercel or npx vercel

Here is my build: https://nextra-hzqzaolzi-hugihlynsson.vercel.app/

thank you so much for help , but i want to know if i can deploy it with the workspace because i want to change some things in package itself and so if its possible to include my changed package in production without publishing my package on npm that would be great

Ahh yes of course! Turns out, it's just a matter of a couple of Vercel settings. As I mentioned earlier you need to set the root directory to docs, leave the "Include source files outside of the Root Directory in the Build Step" box checked and then set the Framework preset to "Next.js", like this:

With these settings the project should build and deploy out of the box based on your local Nextra code.


AC180P Advanced Integration

Added more data and functionality for AC180P (I have it on my hands).

@kvanonavk I have just tested your changes for my AC70P and found all modifications to works there as well.
Maybe we can assume that these attributes are working for several V2 protocol devices so that the modifications can be transferred to the protocol v2 base device?

@kvanonavk I have just tested your changes for my AC70P and found all modifications to works there as well. Maybe we can assume that these attributes are working for several V2 protocol devices so that the modifications can be transferred to the protocol v2 base device?

It may be the case but I can't be sure. I've found most of these values in the following fork of the bluetti_mqtt repo (from AC70).  They may be the same for all V2 devices but there might by slight differences so I decided to implement them only for the AC180P which I was able to test.

@kvanonavk, i have added support for AC70 and AC70P in a PR to the base of this PR. Things look good on the AC70 testing wise. Report of AC70P working also in thread. Thinking about the comments above, I would love @Patrick762 to weigh in on whether or not its worth incorporating this change more widely or in something like a V3 module.


Windows Phone 71 support Linq.Expression

Hi  grumpydev!
Wanted to let you know that starting version 7.1 Windows Phone does support Linq.Expressions.
Hence I made some modification in order to support them.
Hope you grant this pull request!
// kvervo

I believe this pull-request is no longer valid. Too much time has passed.


[Fix] Wording

//Description
Se agrega un wording en portugues que faltaba.
//Issue related
Closes #
Requirements

[ ] Coverage > 90%

Note:

[ ] Android Lint check

Note:

[ ] Code Style checked

Note:

[ ] Tested with "Don't keep Activities" configuration.

Note:
If impacts documentation (new components, inputs or outputs?)

[ ] PR to develop-docs

Note:

Codecov Report

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

@@            Coverage Diff            @@
##             develop    #855   +/-   ##
=========================================
  Coverage           ?   31.6%
=========================================
  Files              ?     326
  Lines              ?   17361
  Branches           ?    1556
=========================================
  Hits               ?    5487
  Misses             ?   11215
  Partials           ?     659

Continue to review full report at Codecov.

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


Added Toggle action for Bool values

More convenient to use .toggle(.$boolValue) instead .set(.$boolValue, !viewStore.boolValue)

@EvsenevDev This is definitely a fun exploration, but I think we want to avoid shipping too many helpers on top of these APIs, which are primarily used to interface with SwiftUI views that use the binding under the hood.
One other thing to consider is that it is possible to call toggle on the underlying binding's value:
viewStore.binding(…).wrappedValue.toggle()

I also think this is definable outside of the library, so it might be fun to share in a GitHub discussion, instead, maybe with a more concrete example of how you use it?

@EvsenevDev Gonna close this for now, but thanks for sharing! And if you'd like further discussion feel free to start a post on the GitHub forum!


[Template Submission] Stripe Checkout remember me with Twilio Verify

What's the use case for the template?
Use Stripe Checkout to collect payment details for future payments and Twilio Verify to authenticate the customer via SMS code and charge their stored card.
What's the programming language?

Frontend

Vanilla JavaScript + HTML + CSS

Backend (2 servers)

JavaScript (Node with Express)
Python (with Flask)

Template GitHub URL:
https://github.com/stripe-samples/checkout-remember-me-with-twilio-verify
Demo: https://ldmsw.sse.codesandbox.io/
Author Information (please fill out):

Author name (or organization if submitted on behalf of a company): Stripe
Author GitHub organization/user: https://github.com/stripe-samples
GitHub username you used to sign the Agreement: thorsten-stripe

Additional dependencies:

Frontend

intl-tes-input: for client-side phone number validation (loaded from CDN)
Stripe.js (loaded from https://js.stripe.com/v3/)

Backend

Stripe
Twilio
Express
Flask
Dotenv

Checklist:

Please check every part of this checklist for us to process your request. You can do this by marking them with [x] instead of [ ].

[x] I've filled out the form at ahoy.twilio.com/code-exchange-community
[x] My sample application is open source and has a permissive license such as MIT or Apache-2: https://github.com/stripe-samples/checkout-remember-me-with-twilio-verify/blob/master/LICENSE
[x] There are no known security vulnerabilities and I'm following security best practices
[x] I've read Twilio's best practices coding guidelines for my project
[x] I agree and adhere to the Code of Conduct
[x] The template has been authored by me / or my organization and will be kept up-to-date. If the template will not longer be maintained, I'll notify this project.

Thank you @thorsten-stripe for your contribution. We published your templates to CodeExchange :) https://www.twilio.com/code-exchange/fast-checkout-sms-verification


Add max qps bucket count

Description
This PR adds the ability of getting maximum qps count within a minute.
In some monitoring system, metrics are emitted in some certain frequency, e.g. every 1 minute. So if there is a burst of qps hitting to the cluster, there is no way to reflect on the metrics.
This PR introduces a counter to get the maximum counts among all the seconds within a minute, so that we always know the real circumstances of the cluster.

Shouldn't we be setting the value to "Max qps within a second since the time the callback was invoked last"?

We don't want to make the metrics system stateful. Every time the callback method gets called, it should return whatever the value should be.Thus, I don't think it's good to reset the counts when the callback gets called. Otherwise, we should have changed all the metrics to be stateful in Pinot cluster.

In some systems, the polling may be more often than 1 minute, and in others less often. So, we should keep a hit counter for some max time (say, 10m).

I admit that the frequency of poll may vary. We can make it configurable. But the purpose of this new metric is to track the qps related statistics. If 10 mins is the granularity for a system to track qps, then I don't think they need to set qps quota for their tables.

The time interval could be close to a certain period, but can fluctuate by some small percentage either way. So, if the poll comes in 65 seconds, and our first second had a burst, we will lose it (as per your implementation).

This is a rare case. In fact, what we are trying to solve is to find a way to detect the burst of queries which last for a while. They may be ignored, but will never be ignored all the time. Plus, if it happens quite often, then I think there is some issue on polling instead of adjusting our stateless metric system. The callback function never knows when it will be called in advance; when the callback function gets called, it should return the exact max qps within a minute based on the requirement.

Shouldn't we be setting the value to "Max qps within a second since the time the callback was invoked last"?

We don't want to make the metrics system stateful. Every time the callback method gets called, it should return whatever the value should be.Thus, I don't think it's good to reset the counts when the callback gets called. Otherwise, we should have changed all the metrics to be stateful in Pinot cluster.

There is a difference between this one and all the others that we have. In the others, the state is still there, it is being maintained by the metrics library. How else do you think we get percentiles? In this case, we want a much finer granularity, and hence the need for it to clear state and report the max that it recorded since the last call.  Otherwise, we will be emitting metrics that do not reflect the real state as we want to measure it.

In some systems, the polling may be more often than 1 minute, and in others less often. So, we should keep a hit counter for some max time (say, 10m).

I admit that the frequency of poll may vary. We can make it configurable. But the purpose of this new metric is to track the qps related statistics. It will only be emitted when the qps quota is set. If 10 mins is the granularity for a system to track qps, then I don't think they need to set qps quota for their tables.

The time interval could be close to a certain period, but can fluctuate by some small percentage either way. So, if the poll comes in 65 seconds, and our first second had a burst, we will lose it (as per your implementation).

This is a rare case. In fact, what we are trying to solve is to find a way to detect the burst of queries which last for a while. They may be ignored, but will never be ignored all the time. Plus, if it happens quite often, then I think there is some issue on polling instead of adjusting our stateless metric system. The callback function never knows when it will be called in advance; when the callback function gets called, it should return the exact max qps within a minute based on the requirement.

I am not sure how rare a case this is.

Shouldn't we be setting the value to "Max qps within a second since the time the callback was invoked last"?

We don't want to make the metrics system stateful. Every time the callback method gets called, it should return whatever the value should be.Thus, I don't think it's good to reset the counts when the callback gets called. Otherwise, we should have changed all the metrics to be stateful in Pinot cluster.

There is a difference between this one and all the others that we have. In the others, the state is still there, it is being maintained by the metrics library. How else do you think we get percentiles? In this case, we want a much finer granularity, and hence the need for it to clear state and report the max that it recorded since the last call. Otherwise, we will be emitting metrics that do not reflect the real state as we want to measure it.

I'm talking about the gauge values, not the meter values. The existing gauge values are maintained in a ConcurrentHashMap in MetrcisHelper class, which is Pinot's code. The emitted  gauge value is just the one when the callback function gets called. There is no state at all.

In some systems, the polling may be more often than 1 minute, and in others less often. So, we should keep a hit counter for some max time (say, 10m).

I admit that the frequency of poll may vary. We can make it configurable. But the purpose of this new metric is to track the qps related statistics. It will only be emitted when the qps quota is set. If 10 mins is the granularity for a system to track qps, then I don't think they need to set qps quota for their tables.

The time interval could be close to a certain period, but can fluctuate by some small percentage either way. So, if the poll comes in 65 seconds, and our first second had a burst, we will lose it (as per your implementation).

This is a rare case. In fact, what we are trying to solve is to find a way to detect the burst of queries which last for a while. They may be ignored, but will never be ignored all the time. Plus, if it happens quite often, then I think there is some issue on polling instead of adjusting our stateless metric system. The callback function never knows when it will be called in advance; when the callback function gets called, it should return the exact max qps within a minute based on the requirement.

I am not sure how rare a case this is.

The case I mentioned here is that the it always neglects the burst of queries in the first second; the burst is so smart that it always happens at the time when the hit counter couldn't detect.
In another case, if the callback gets invoked 2 consecutive times which gap is small (maybe caused by GC). The stateful won't give you the correct number, as the value has already been reset by the first call.

Discussed offline. The "clearing" of values is logical. Implementation can be that we maintain a from/to handle on the circular buffer and count only those buckets populated since the last call.


Relic Seize is not working

NOTE: Before you begin working on this, please assign this issue to yourself. If you do not do this, then there's the possibility that 2 people will end up doing the same task, which is not a good use of time.
I see two issues.  First, this happens if you try to seize a relic to hand:

Second, this error occurs if you try seize to the achievement pile:
Javascript error:
During notification transferedCard
Cannot read properties of null (reading 'style')
TypeError: Cannot read properties of null (reading 'style')
at Object.i.set (https://studio.boardgamearena.com:8084/data/themereleases/220215-1000/js/dojoroot/dojo/dojo.js:1:53351)
at Object.e.style (https://studio.boardgamearena.com:8084/data/themereleases/220215-1000/js/dojoroot/dojo/dojo.js:1:70522)
at Object.addToZone (https://studio.boardgamearena.com:8084/data/themereleases/current/games/innovationkahlia/999999-9999/innovationkahlia.js?1645037259831:2091:18)
at Object.moveBetweenZones (https://studio.boardgamearena.com:8084/data/themereleases/current/games/innovationkahlia/999999-9999/innovationkahlia.js?1645037259831:2081:22)
at Object.notif_transferedCard (https://studio.boardgamearena.com:8084/data/themereleases/current/games/innovationkahlia/999999-9999/innovationkahlia.js?1645037259831:3230:18)
at r.

Thanks for filing this! I can take it on.
I should note that the relic error you are seeing will only happen when seizing from another player's achievement pile to your hand. That will be easy to fix.
The other part of this bug will require a deeper investigation!


Example Project Failed

I have just tested example project in order to check if I can use upload care in my project.
I can see CORE and WIDGET part when Example project run.
But when I click CORE part item, I can see below Error. And app is crashing.

Please let me know if you can help me.

Hi @stardevrk! We're going to completely update our iOS library (the current library isn't maintained) and plan to have a new one in January. We'll send you an update as soon as we'll have first alpha!

@stardevrk, better late than never. :-) We've just released new uploadcare-swift integration, 0.1.0-alfa. We'll finish core soon, and then we'll update our widget (current repo will be revamped). Feedback is very welcome. If you have any feature requests or questions, shoot!


Run rustc/cargo in the background to avoid blocking UI

Otherwise the whole editor locks up for 10+ seconds when using cargo.
Sharing the settings between threads is not safe but I got bored halfway through pulling out all that shared state :) It would be difficult to actually break it anyway - the settings would have to change in the middle of really_run.

This seems like a good idea, but I wonder if the correct fix is to take advantage of the threaded queue already in SublimeLinter.

I had no idea there was one :)

+1
I would totally love to see this feature implemented as well, ideally with the means already provided by the SublimeLinter framework.
@oschwald Do you think doing this the right way™ would be complicated ? If not I could possibly give it a try, even though I have absolutely no experience with SublimeText- or Linter-Plugins.

I'd also like to see this implemented. I think the threaded queue should be used automatically for the continuous linting, but the plugin currently doesn't work with continuous linting. If I recall correctly, the reason for this has to do with the fact that, with Cargo, it needs the full build directory rather than being able to copy the file to a temp directory. I suspect getting the other modes working with the queue wouldn't be that hard, but it would likely involve using some less documented parts of SublimeLinter.

I see - from what you say ThreadQueues in SublimeLinter are tried to continuous linting, which doesn't work for cargo unless the active buffer is flushed to disk all the time. This seems like an architectural oversight in SublimeLinter, if the orthogonal concepts of continuous linting and background-operation through ThreadQueues have truly been tied to each other.
In an ideal world, one would just start a new background invocation of cargo + linting each time a file managed by cargo (or more generally, any *.rs file in the project) is saved.
Maybe it's possible to piggy-back the continuous linting + threadqueues features just to get a callback, and check against the last time the buffer was saved. That way, the cargo invocation could happen as part of the continous linting framework, even though it will only be executed every once in a while, and operates on files already saved to disk.

That might be possible. It would probably involve using undocumented calls to SublimeLinter, but this plugin already does that anyway. It might be worth engaging with the SublimeLinter maintainers on how to best do this.

Sorry to intrude, but is there any updates on this?

It'd be great to see this implemented using the API available in SublimeLinter itself. I am bit concerned that this particular PR will introduce problems for some users, but if a number of people have been using it without issue, I'd consider merging it as is.

This PR would also benefit from the upcoming wait-mode to prevent multiple cargo processes to interfere with each other.

Would it be of any benefit to use cargo rustc -Zno-trans instead of cargo build in this plugin?

Sounds like a great idea - I believe it's the same that the cargo check (cargo) plugin does under the hood.

Yep, that's actually what made me look into this. I think cargo-check is still only a third party plugin, so not all installations of cargo have it. But I believe cargo-rustc is built in, to everyone has it.
Without actually spending more than a minute reading this repo, I think all it would take is to edit this line.

Although it is a bit off-topic to this PR, I did switch to using -Zno-trans with cargo. It previously was only used for rustc directly. Please let me know (in a new issue) if this causes any problems.


MSFT_xExchAntiMalwareScanning: Add Unit Tests

Pull Request (PR) description
Adds Unit Tests for MSFT_xExchAntiMalwareScanning
Task list

[X] Added an entry under the Unreleased section of the change log in the CHANGELOG.md.
Entry should say what was changed, and how that affects users (if applicable).
[ ] Resource documentation added/updated in README.md.
[ ] Resource parameter descriptions added/updated in README.md, schema.mof
and comment-based help.
[X] Comment-based help added/updated.
[ ] Localization strings added/updated in all localization files as appropriate.
[ ] Examples appropriately added/updated.
[X] Unit tests added/updated. See DSC Resource Testing Guidelines.
[ ] Integration tests added/updated (where possible). See DSC Resource Testing Guidelines.
[X] New/changed code adheres to DSC Resource Style Guidelines and Best Practices.

This change is

Codecov Report

Merging #318 into dev will increase coverage by 1.1%.
The diff coverage is 50%.

@@           Coverage Diff           @@
##             dev    #318     +/-   ##
=======================================
+ Coverage   2.97%   4.07%   +1.1%
=======================================
  Files         38      38
  Lines       4439    4441      +2
=======================================
+ Hits         132     181     +49
+ Misses      4307    4260     -47

Impacted Files
Coverage Δ

...SFT_xExchMaintenanceMode/TransportMaintenance.psm1
0% <0%> (ø)
:arrow_up:

...ExchMaintenanceMode/MSFT_xExchMaintenanceMode.psm1
0.25% <0%> (ø)
:arrow_up:

...MalwareScanning/MSFT_xExchAntiMalwareScanning.psm1
100% <100%> (+97.14%)
:arrow_up:

Modules/xExchangeHelper.psm1
24.28% <85.71%> (+4.86%)
:arrow_up:

Continue to review full report at Codecov.

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

@johlju Changes have been made and tested. Let me know if you see anything else. Thanks!


Feature/Improvement: copy rich text content to new locale

Actually, in admin, we cannot copy the editorjs from a locale to another. (with the "fill in from another locale").
It would be really a great feature to have for everybody using multilingual and editorjs.
I could definitively work on that if it helps.
And then, we can also make it works with deepl "Translate from another locale"
What do you think ?

It sounds interesting, but I myself have not used Strapi for a long time. Let's ask @SalahAdDin if this functionality is needed in the plugin?

It sounds interesting, but I myself have not used Strapi for a long time. Let's ask @SalahAdDin if this functionality is needed in the plugin?

I didn't know this plugin has no that feature, It would be great if we can add it.


Can't upload files

{
  "name": "StorageError",
  "message": "The specified blob or block content is invalid.\nRequestId:cd698851-b01e-004d-08da-c58039000000\nTime:2020-01-08T04:16:59.3434768Z",
  "stack": "StorageError: The specified blob or block content is invalid.\nRequestId:cd698851-b01e-004d-08da-c58039000000\nTime:2020-01-08T04:16:59.3434768Z\n    at Function.StorageServiceClient._normalizeError (C:\\Program Files (x86)\\Microsoft Azure Storage Explorer\\resources\\app\\node_modules\\azure-storage\\lib\\common\\services\\storageserviceclient.js:1205:23)\n    at Object.StorageServiceClient._processResponse (C:\\Program Files (x86)\\Microsoft Azure Storage Explorer\\resources\\app\\node_modules\\azure-storage\\lib\\common\\services\\storageserviceclient.js:751:50)\n    at Request.processResponseCallback [as _callback] (C:\\Program Files (x86)\\Microsoft Azure Storage Explorer\\resources\\app\\node_modules\\azure-storage\\lib\\common\\services\\storageserviceclient.js:319:37)\n    at Request.self.callback (C:\\Program Files (x86)\\Microsoft Azure Storage Explorer\\resources\\app\\node_modules\\request\\request.js:185:22)\n    at emitTwo (events.js:126:13)\n    at Request.emit (events.js:214:7)\n    at Request.<anonymous> (C:\\Program Files (x86)\\Microsoft Azure Storage Explorer\\resources\\app\\node_modules\\request\\request.js:1157:10)\n    at emitOne (events.js:116:13)\n    at Request.emit (events.js:211:7)\n    at IncomingMessage.<anonymous> (C:\\Program Files (x86)\\Microsoft Azure Storage Explorer\\resources\\app\\node_modules\\request\\request.js:1079:12)",
  "code": "InvalidBlobOrBlock",
  "statusCode": 400,
  "requestId": "cd698851-b01e-004d-08da-c58039000000"
}

Could you please provide the context of this error (e.g. Storage Explorer version, OS version, reproduce steps)? According to some existing reports, this error might be caused by a early cancel. In that case, you should be able to upload it again after a short amount of time.
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/87366e2b-74d9-4a8e-8996-c72bd08411ce/quotthe-specified-blob-or-block-content-is-invalidquot-when-using-setazurestorageblobcontent?forum=windowsazuredata
Let us know if this is consistently reproducing on your end.

Closing due to lack of response. Please open a new issue if you are still having problems.