Error message lister

according to #68
I added gulp task error-message-lister.
\cc @inikulin @VasilyStrelyaev

tests fail

FPR

We need closes directive in the commit name as well, since we have issue for this.
\r-

requires rebase now

FPR

/r-

btw, README is on the way

FPR

FPR

\r-

FPR
Usage: gulp report-design-viewer --reporter [reporter] --decorator [decorator]
E.g. gulp report-design-viewer --reporter spec --decorator tty

lgtm

ping @VasilyStrelyaev

/r-

FPR

lgtm


Support extracting language versions from files

While the extractor pulls out dependency versions, it doesn't pull out language versions.
Java - pom - https://www.baeldung.com/maven-java-version
Java - gradle - https://docs.gradle.org/current/userguide/building_java_projects.html
NodeJS - package.json - https://docs.npmjs.com/cli/v6/configuring-npm/package-json#engines
Go - go.mod - go key
Go - Godeps - https://github.com/tools/godep/blob/master/Godeps/Godeps.json#L3
Rust - Cargo.toml - not set?
Composer - https://andy-carter.com/blog/composer-php-platform
This shouldn't be too hard since we're already in there.

This should be stored on the edge between the source and module.

This will require an associated depscloud/api change


Allow composer/xdebug-handler v3

https://github.com/composer/xdebug-handler/releases/tag/3.0.0

👍🏻
@gharlan , would you mind to shoot a PR?


Slotty::Calendar - Manage and display time slots in a calendar format.

The Slotty::Calendar class provides a way to manage and display time slots in a weekly/monthly calendar format. It can also be used to manage time slots for various purposes, for example scheduling appointments for multiple doctors. This update also allows us to  associate metadata with Slots, such as a doctor ID in the case of doctor appointments.
Some other things included in this PR to make test pass in Ruby versions higher than 2.7:

Removed Gemfile.lock, removed bundler dependency and prefixed arguments with ** in spec files.

Example
An example of how you can use add_availability method to add time ranges to a calendar, with a meta attribute of doctor_id to identify which doctor is available during that time slot. This allows us to manage multiple doctors availability on the same calendar and easily distinguish between their schedules:
calendar = Slotty::Calendar.new('2021-01-01')
calendar.add_availability(Time.new(2021, 1, 1, 9, 00)..Time.new(2021, 1, 1, 12, 00), { doctor_id: 1 })
calendar.add_availability(Time.new(2021, 1, 1, 10, 00)..Time.new(2021, 1, 1, 11, 00), { doctor_id: 2 })
calendar.weekly

# => {
#   "starts_at": "2020-12-28T00:00:00.000+01:00",
#   "ends_at": "2021-01-03T23:59:59.999+01:00",
#   "slots": {
#     "2020-12-28": {},
#     "2020-12-29": {},
#     "2020-12-30": {},
#     "2020-12-31": {},
#     "2021-01-01": {
#       "09:00 AM": [
#         {
#           "start_time": "2021-01-01T09:00:00.000+01:00",
#           "end_time": "2021-01-01T10:00:00.000+01:00",
#           "meta": {
#             "doctor_id": 1
#           }
#         }
#       ],
#       "10:00 AM": [
#         {
#           "start_time": "2021-01-01T10:00:00.000+01:00",
#           "end_time": "2021-01-01T11:00:00.000+01:00",
#           "meta": {
#             "doctor_id": 1
#           }
#         },
#         {
#           "start_time": "2021-01-01T10:00:00.000+01:00",
#           "end_time": "2021-01-01T11:00:00.000+01:00",
#           "meta": {
#             "doctor_id": 2
#           }
#         }
#       ],
#       "11:00 AM": [
#         {
#           "start_time": "2021-01-01T11:00:00.000+01:00",
#           "end_time": "2021-01-01T12:00:00.000+01:00",
#           "meta": {
#             "doctor_id": 1
#           }
#         }
#       ]
#     },
#     "2021-01-02": {},
#     "2021-01-03": {}
#   }
# }

First, thanks for taking your time to reply to this PR. Both fun and appreciated, thanks!
My initial mission was just to build a calendar with available time slots for a company grouped by days in a week. One employee could work for example 9-17 Mon-Wed and another 9-11 Tue-Thu. I want to display all the available time slots for a company in a calendar format, and then know which employees that are available for each slot.
For now (as a consumer) I use ice_cube to generate recurring working hours for each employee. My thought was to move his functionality into the gem as well and by time offer a complete booking gem.
After reading your review, I agree that this would probably work better as separate project. Maybe actually a Rails specific gem with views and everything. But since this repo hasn't been touched in 2 years, I thought: why not just give PR a try. Also, I really like the name Slotty :)
Anyways, the meta functionality would be nice. Maybe we can find a solution for it together so that I can use this gem in my gem?


Remove branch iOS_3.0_3.2.3 to a new Archived repository

Is your feature request related to a problem? If so, please describe.
Contains parts of code that are not part of the AdMob plugin, generating garbage
What feature or improvement would you like to see?
Remove branch iOS_3.0_3.2.3 to a new Archived repository
Additional context
No response

Complete https://github.com/Poing-Studios/godot-admob-ios-3.0-3.2.3


docs(Document): use only https sources

Fixes #3163.

Codecov Report

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

@@           Coverage Diff           @@
##           master    #3178   +/-   ##
=======================================
  Coverage   99.92%   99.92%
=======================================
  Files         163      163
  Lines        2746     2746
=======================================
  Hits         2744     2744
  Misses          2        2

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 663d44f...8fc781d. Read the comment docs.

Released in<EMAIL_ADDRESS>


flamingra-0.1.1 doesn't compile with GHC 7.10.1

http://hydra.cryp.to/build/777914/log/raw shows a complete build log with the error we see in NixOS.

<IP_ADDRESS> works for me. Could you try it?

Yes, the new version builds fine. Thank you!


robotraconteur: 1.2.2-1 in 'humble/distribution.yaml' [bloom]

Increasing version of package(s) in repository robotraconteur to 1.2.2-1:

upstream repository: https://github.com/robotraconteur/robotraconteur.git
release repository: https://github.com/robotraconteur-packaging/robotraconteur-ros2-release.git
distro file: humble/distribution.yaml
bloom version: 0.12.0
previous version for package: 1.1.1-1

Same as #42402, let's keep there the discussion to avoid duplication.

See #42465

Oh nevermind that is still the old version.

Holding for Humble sync


Report parserErrors

Will now display parse errors

Coverage decreased (-0.7%) to 88.172% when pulling 164c263f0949e31bab19bb328d0a26d09acab943 on hipstersmoothie:hipstersmoothie-patch-1 into ea043b24a53d9106730a53a0d855b6e12bfedb3e on Dreamseer:master.

Nice, thanks!


Export builderID in SLSA formatter

Changes
Export the builderID field in SLSA formatter. This will help vendors who only need the formatting service to set the builderID when creating a formatter.

Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[x] Follows the commit message standard
[x] Meets the Tekton contributor standards (including
functionality, content, code)
[x] Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)

Release Notes
Export the builderID field in the SLSA formatters.

Out of curiosity, why not set this via config.Config? 🤔

Out of curiosity, why not set this via config.Config? 🤔

You're right. That's easier. I was thinking to create a specific formatter separately. I'll close this.


Add tool for loading up Azure container registry

This PR comes from an investigation by Clippy's Revenge into how we can reduce the total time required to test and validate airgap setups due to the length of time consumed by the current Jenkins job for pulling/pushing images.
This script will automagically import all images from rancher-images.txt and rancher-windows-images.txt for the specified Rancher versions into an Azure container registry, which supports multi-arch images including Windows and s390x.
./bin/azr_import_images -a myregistry -u myserviceprincipalid -s mysubscription -p stdinpasswordsarebad -t mytenantid v2.6.4 v2.6.5-rc6
https://docs.microsoft.com/en-us/azure/container-registry/push-multi-architecture-images

Closing until necessary to open again.


The custom token format is incorrect

I am using the bellow snippet to generate custom tokens for clients who are using my Flutter mobile app.
$privateKey 	= json_decode(file_get_contents( storage_path()  . '/app/google-services.json'), true)['private_key'];
$generator 	    = CustomTokenGenerator::withClientEmailAndPrivateKey($clientEmail, $privateKey);
$token 		    = $generator->createCustomToken('uid', ['first_claim' => 'first_value' /* ... */]);
return json_encode(["status_code" => "200", "token" => $token->toString() ]);

When I am reusing the $token->toString() in my   FirebaseAuth.instance.signInWithCustomToken ( token: '${httpResponse['token']}') I get firebase error  “FirebaseAuthInvalidCredentialsException: The custom token format is incorrect.” .
According to firebase group it is a generic error message for if the maximum expiration time is more than one hour
https://groups.google.com/forum/#!msg/firebase-talk/tYRfde4nwBY/yAn5I_spBQAJ . Does the CustomTokenGenerator::withClientEmailAndPrivateKey take any maximum expiration time parameter?
Also I wonder if the $token->toString() is the correct value which I should return from my server to my mobile app ?
Thank you for you troubles.

Hi @ronlinet and thanks for reaching out!
Custom tokens have a TTL of one hour (3600 seconds) by default and the duration is added to the current time, so my assumption is that the time in your environment is ever so slightly ahead of the time on Google's servers.
As an example: if it's 12:00 on Google's Servers, but 12:01 in your environment, the token will be set to expire at 13:01. Since it's one minute earlier for Google, they say "wait, that's 61 minutes, but we only allow a maximum TTL of 60 minutes, so... no!"
I probably didn't need to explain this to you, I just added the explanation for others that might stumble upon this issue as well.
If you want to try out using a shorter TTL to see if this helps, you can use a third parameter on the createCustomToken() method with a custom TTL:
$uid = 'uid';
$claims = [/* ... */];
$ttl = 1800; // or 'PT30M'

$token = $generator->createCustomToken($uid, $claims, $ttl);

But I would still recommend to check if the time in your environment is in sync with the world 🙈

The token string is the correct value, if you use it to sign-in with on the client-side, for example in the Web Client SDK as described here: https://firebase.google.com/docs/auth/web/custom-auth#authenticate-with-firebase

Hi @jeromegamez thank your for you qick feedback.
To put you more in context...
My firestore database rule is set as following
allow read : if request.auth != null;
My web server server is acting as an authorization portal.
The clients are already authenticated with authorisation headers in my website.
All I need is to blindely delivering the tokens to any http query that reaches the bellow php code.
$privateKey     = json_decode(file_get_contents( storage_path()  . '/app/google-services.json'), true)['private_key'];
$generator      = CustomTokenGenerator::withClientEmailAndPrivateKey($clientEmail, $privateKey);
token           = $generator->createCustomToken('uid', ['first_claim' => 'first_value' /* ... */], 'PT30M');

return json_encode(["status_code" => "200", "token" => $token->toString() ]);

As you see I have tried to set time for less then one minute but no chance the mobile app is throwing an invalid format execption.
Unhandled Exception: PlatformException(ERROR_INVALID_CUSTOM_TOKEN, The custom token format is incorrect. Please check the documentation., null)
I have dumped the $token->toString()  what may be wrong tiwh format here ?
eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJzdHVkZW50QHByb2QuY29tIiwic3ViIjoic3R1ZGVudEBwcm9kLmNvbSIsImF1ZCI6Imh0dHBzOlwvXC9pZGVudGl0eXRvb2xraXQuZ29vZ2xlYXBpcy5jb21cL2dvb2dsZS5pZGVudGl0eS5pZGVudGl0eXRvb2xraXQudjEuSWRlbnRpdHlUb29sa2l0IiwiaWF0IjoxNTg2MjE1NzU1LCJleHAiOjE1ODYyMTc1NTUsInVpZCI6InVpZCIsImNsYWltcyI6eyJmaXJzdF9jbGFpbSI6ImZpcnN0X3ZhbHVlIn19.J8uN3ybYYqvRkMFVE3dCSmFVnibJ7ZLCA_noFhZaGGBX_DBB9RFXjMOyVaSOEUxy_fYQB8sgf6LMNNKxyJlCcUS9AiQ2mILuFsuyL5TLhCHgn6AG3vJn_w4dZM8xH_l-iyskfVMA0fTWTisTgLoLMDzqZsE8e4tXdpYjZGFnLBn7IvY1KFJVWTOlkHlzh63r5gfh08VFFMuMHvIBxWs7ijVOFgEnRY5G54OgnXIEMl1D_CgaGW_lV88Z3k9mJwh9Por5S3FLQwE9X7ZzjLDz9QIk3QKnSdN0OioxMkH56i9f77Rjw5v3Dg1LUOV3Vepr2BHhuBU05BDpwi_dopvIdw

PS: I will see about the time server and google API time.

I noticed that you don‘t seem retrieve the client email from the JSON file as you do with the private key - is this really the case? If so, could you make sure that the client email you‘re using matches the value in the JSON file?
Beside that I currently have no idea what might be the issue, but I‘ll make sure to try it myself as well as soon as I‘m back at my computer. 🤞

I just tested this with my project with the help of kreait/firebase-php and it works for me™. So a possibly mismatching client email is the only possible issue left that I could think of.
I just also noticed that you seem to be using Laravel/Lumen - have you considered using https://github.com/kreait/laravel-firebase or is it too heavy for your use case?

Casting the token object to string is the solution in my case.
@jeromegamez thank you for your time, much appreciated.
Working snippet :
use Kreait\Firebase\ServiceAccount;
use Kreait\Firebase\Factory;
$serviceAccount = ServiceAccount::fromJsonFile( storage_path()  . '/app/google-services.json');
$firebase = (new Factory)
                        ->withServiceAccount($serviceAccount)
                        ->create();
$token = $firebase->getAuth()->createCustomToken($request->header('PHP_AUTH_USER'));
return json_encode(["status_code" => "200", "token" => (string) $token ]);

Aaaah! My mistake, you‘re right! I forgot that lcobucci/jwt has different outputs of toString() vs casting the object 🙈, and I apparently didn‘t fully test the same procedure that you used 😅. Kudos for getting to a solution, and thanks for sharing! 🌺


function _setup_spoof_protection adds unconditionally  reject_authenticated_sender_login_mismatch

inside script start-mailserver.sh
line
sed -i 's|smtpd_sender_restrictions =|smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch,|' /etc/postfix/main.cf
adds reject_authenticated_sender_login_mismatch  unconditionally when spoof protection is on.
This grows the parameter smtpd_sender_restrictions with same  setting, ( parameter_string *  count of container restarts ) !
Regards,
Harry!

Hey Harry, thanks for reporting a possible bug. What would have been even better was using the issue template for bugs :)

inside script start-mailserver.sh
line
sed -i 's|smtpd_sender_restrictions =|smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch,|' /etc/postfix/main.cf

This script is over 2000 lines long. Could you be a bit more specific?

adds reject_authenticated_sender_login_mismatch unconditionally when spoof protection is on.

Isn't this what is supposed to happen? Here, the template would have explained this case.

This grows the parameter smtpd_sender_restrictions with same setting, ( parameter_string * count of container restarts ) !

I'm not sure I understand.

Please open another issue using the template so we can identify this bug properly and fix it in time.

you missed the point man!

Indeed, due to a poor description on your side. Your comment is not only not helpful, but disrespectful to those dedicating their time to these issues.
I may have missed the point, but only an explanation will help resolve this problem. Now either explain it properly, or leave it be.

 I also spend my time debugging the projects bash shell script, in which it seems that you participate as "what ever"  even though I gave you enough information to locate it and think about it, first think you do is "blame the messenger"!
Mr.!
Did you ?
I guess not!
Instead you had enough time to be wise complaining about a script being to big for you "a developer ?"  while you forgot the fact that a non-developer found it and spotted it!

This issue is now being locked due to violation of the community guidelines set by this project.

You violated what this project is pledging to, especially with:

it seems that you participate as "what ever"

It does not matter what I participate as.

even though I gave you enough information to locate it and think about it

Even on request you did not, reaction with

you missed the point man!

instead of providing the line, clearly provoking this conflict instead of working towards resolving it.

Did you ? I guess not!

You're wrong, it's not that easily resolved. What's more: Even small issues can have big consequences. Therefore, changing a small thing in a script can have huge consequences. Altering a line in this script may have profound impact.

a youngster with an attitude lacking manners!

It does not matter how old I am.

This is in contradiction with the standards set by our Code of Conduct. Especially the points:

Demonstrating empathy and kindness toward other people
Being respectful of differing opinions, viewpoints, and experiences
Giving and gracefully accepting constructive feedback
Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, [...], level of experience, (or) education, [...]. We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.

As this is unacceptable, enforcement of a warning is hereby done. From our Code of Conduct: "This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban."
Therefore, refrain from interacting with the community via issues, PRs or any other channels.


Bulkcopy fails when inserting non-unicode multibyte String.

Driver version
mssql-jdbc-8.4.0.jre11.jar
SQL Server version
Microsoft SQL Server 2017 (RTM-GDR) (KB4505224) - 14.0.2027.2 (X64)   Jun 15 2019 00:26:19   Copyright (C) 2017 Microsoft Corporation  Developer Edition (64-bit) on Windows Server 2016 Standard 10.0  (Build 14393: ) (Hypervisor)
Client Operating System
Windows 10
JAVA/JVM version
RedHat OpenJDK
openjdk version "11.0.8" 2020-07-14 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.8+10-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.8+10-LTS, mixed mode)
Table schema
CREATE TABLE [dbo].[TEST](
	[name] [varchar](10) COLLATE Japanese_CS_AS_KS_WS NOT NULL
)

Problem description

Expected behaviour:
One row has been bulk-inserted.

Actual behaviour:
SQL Exception occured.

Error message/stack trace:
Exception in thread "main" com.microsoft.sqlserver.jdbc.SQLServerException: (... (Japanese message))

Any other details that can be helpful:
In SQLBulkCopy.java, Line Around 2292  (commit-id 4e3ab6690557c000bc16042771020ef530b54bf2):

2292: tdsWriter.writeShort((short) (colValueStr.length()));

I think the above code should be something like this:
                                        tdsWriter.writeShort((short) (colValueStr.getBytes(destColumnMetadata.get(destColOrdinal).collation.getCharset()).length));
when destCollation is not null.
Because colValueStr.length() is different from the transferred byte size by tdsWriter.writeBytes();
Bulk.java.txt

Thanks for reporting this issue @kmzxy, your fix seems good and I'll make a PR as soon as testing is concluded.

#1421 merged.


OkDownload频繁pauseAll()和start()报错：Cannot perform this operation because there is no current transaction

06-21 15:29:34.460 8562-8562/com.led.player I/MyDownLoadService: 下载进度： fraction:0.0 DownloadLength:0 TotalLength:-1 speed:0 FileName:（3）箴言.jpg_
06-21 15:29:34.470 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.470 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.470 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.470 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.490 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.490 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.500 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.500 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.500 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.500 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.500 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.500 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.510 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.510 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.520 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.520 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.520 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.530 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.530 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.540 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.540 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.540 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.540 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.550 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.550 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.550 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.550 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.560 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.560 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.560 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.560 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.570 8562-8565/com.led.player D/dalvikvm: GC_CONCURRENT freed 911K, 67% free 6601K/19828K, paused 5ms+6ms, total 72ms
06-21 15:29:34.590 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.600 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.600 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.600 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.600 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.600 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.600 8562-18047/com.led.player W/OkGo: only the task with status WAITING(1) or LOADING(2) can pause, current status is 3
06-21 15:29:34.610 8562-18022/com.led.player D/CrashReport: [Database] insert t_cr success.
06-21 15:29:34.620 8562-18022/com.led.player D/CrashReport: insert t_cr success!
06-21 15:29:34.620 8562-18022/com.led.player D/CrashReport: update state size 1
06-21 15:29:34.630 8562-11359/com.led.player E/CrashReport: sys default last handle start!
06-21 15:29:34.660 8562-8562/com.led.player I/MyDownLoadService: 下载进度： fraction:0.0 DownloadLength:0 TotalLength:-1 speed:0 FileName:故驿广场舞 (2).mp4_
06-21 15:29:34.690 8562-8562/com.led.player I/MyDownLoadService: 下载进度： fraction:0.0 DownloadLength:0 TotalLength:-1 speed:0 FileName:Koala.jpg_
06-21 15:29:34.750 8562-8562/com.led.player I/MyDownLoadService: 下载进度： fraction:0.0 DownloadLength:0 TotalLength:-1 speed:0 FileName:故驿广场舞 (3).mp4_
06-21 15:29:34.760 8562-11359/com.led.player E/AndroidRuntime: FATAL EXCEPTION: pool-15-thread-2
java.lang.IllegalStateException: Cannot perform this operation because there is no current transaction.
at android.database.sqlite.SQLiteSession.throwIfNoTransaction(SQLiteSession.java:915)
at android.database.sqlite.SQLiteSession.endTransaction(SQLiteSession.java:398)
at android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:522)
at com.lzy.okgo.db.BaseDao.query(BaseDao.java:384)
at com.lzy.okgo.db.BaseDao.query(BaseDao.java:356)
at com.lzy.okgo.cookie.store.DBCookieStore.loadCookie(DBCookieStore.java:104)
at com.lzy.okgo.cookie.CookieJarImpl.loadForRequest(CookieJarImpl.java:53)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:84)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at com.lzy.okgo.interceptor.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185)
at okhttp3.RealCall.execute(RealCall.java:69)
at com.lzy.okgo.request.Request.execute(Request.java:383)
at com.lzy.okserver.download.DownloadTask.run(DownloadTask.java:226)
at com.lzy.okserver.task.PriorityRunnable.run(PriorityRunnable.java:35)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
at java.lang.Thread.run(Thread.java:856)
06-21 15:29:34.790 8562-16871/com.led.player I/MyDownLoadService: 需要下载的文件：（2）箴言.jpg ,realUrl:http://<IP_ADDRESS>:8080/gnamp_work/1411717214/contents/files/2015-08/000055D5288EAA80
06-21 15:29:34.810 1367-17648/? D/Clock_Component: ----adjust ratio:1 ,precise_adjust_ratio:1, ref:14978164 sys:15041279 diff:-63115 diff-percent:-1 ----
06-21 15:29:34.830 8562-8562/com.led.player I/MyDownLoadService: 下载进度： fraction:0.0 DownloadLength:0 TotalLength:-1 speed:0 FileName:123.mp4_
06-21 15:29:34.870 2232-9191/system_process W/ActivityManager:   Force finishing activity com.led.player/.LedActivity
06-21 15:29:34.930 8562-8562/com.led.player D/CrashReport: >>> com.led.player.LedActivity onPaused <<<
06-21 15:29:34.970 8562-8562/com.led.player I/CrashReport-Native: Set native info: isAppForeground(false)

看日志是pauseAll()的时候，状态为3的暂停的状态停止的时候报错

endTransaction的时候报错

感谢你的反馈，目前已解决。。

谢谢


Issue with k8s.io/docs/setup/independent/create-cluster-kubeadm/

This is a...

[ ] Feature Request
[ ] Bug Report

Problem:
Proposed Solution:
Page to Update:
https://kubernetes.io/...

please re-open once you provide more detail in the issue description.
thanks.
/close


Cannot connect to mongobetween

Hello, thank you for open sourcing this project, it seems to be just what I need for my Next.js application which deploys my API as AWS Lambda functions, causing way too many database connections.
Unfortunately I can't seem to get mongobetween working. It connects to my database ok, but my application is not able to connect to mongobetween. I'm hoping to get some help.
I'm attempting to use mongobetween to proxy to a MongoDB Atlas database at version 4.4.6 (it's a 3-node replica set with no sharding).
My application uses Mongoose 5.11.8 (which uses the MongoDB Node.js driver, I'm assuming v3.6 but I couldn't confirm this).
I spun up a basic server on DigitalOcean and installed Go v1.16.5 with the latest mongobetween.
Command used to start mongobetween:
./go/bin/mongobetween -pretty -loglevel debug ":27016=mongodb+srv://username:password@server.mongodb.net/database?maxpoolsize=50&label=cluster0"
MongoBetween seems to connect to my Atlas database ok, but my application receives the following error:
MongoServerSelectionError: The client metadata document may only be sent in the first isMaster
    at Timeout._onTimeout (C:\Users\user\Documents\GitHub\app\node_modules\mongodb\lib\core\sdam\topology.js:438:30)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7) {
  reason: TopologyDescription {
    type: 'Unknown',
    setName: null,
    maxSetVersion: null,
    maxElectionId: null,
    servers: Map(1) {
      '<IP_ADDRESS>:27016' => ServerDescription {
        address: '<IP_ADDRESS>:27016',
        error: MongoError: The client metadata document may only be sent in the first isMaster
            at MessageStream.messageHandler (C:\Users\user\Documents\GitHub\app\node_modules\mongodb\lib\cmap\connection.js
            at MessageStream.emit (events.js:315:20)
            at processIncomingData (C:\Users\user\Documents\GitHub\app\node_modules\mongodb\lib\cmap\message_stream.js:144:
            at MessageStream._write (C:\Users\user\Documents\GitHub\app\node_modules\mongodb\lib\cmap\message_stream.js:42:
            at writeOrBuffer (internal/streams/writable.js:358:12)
            at MessageStream.Writable.write (internal/streams/writable.js:303:10)
            at Socket.ondata (internal/streams/readable.js:719:22)
            at Socket.emit (events.js:315:20)
            at addChunk (internal/streams/readable.js:309:12)
            at readableAddChunk (internal/streams/readable.js:284:9)
            at Socket.Readable.push (internal/streams/readable.js:223:10)
            at TCP.onStreamRead (internal/stream_base_commons.js:188:23) {
          operationTime: Timestamp {
            _bsontype: 'Timestamp',
            low_: 1,
            high_:<PHONE_NUMBER>
          },
          ok: 0,
          code: 186,
          codeName: 'ClientMetadataCannotBeMutated',
          '$clusterTime': { clusterTime: [Timestamp], signature: [Object] }
        },
        roundTripTime: -1,
        lastWriteDate: null,
        opTime: null,
        type: 'Unknown',
        topologyVersion: undefined,
        minWireVersion: 0,
        maxWireVersion: 0,
        hosts: [],
        passives: [],
        arbiters: [],
        tags: []
      }
    },
    stale: false,
    compatible: true,
    compatibilityError: null,
    logicalSessionTimeoutMinutes: null,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    commonWireVersion: null
  }
}

I then tried connecting directly from the mongo shell and got Authentication failed:
MongoDB shell version v4.4.4
connecting to: mongodb://mongobetween_server:27016/database?compressors=disabled&gssapiServiceName=mongodb
Error: Authentication failed. :
connect@src/mongo/shell/mongo.js:374:17
@(connect):2:6
exception: connect failed
exiting with code 1

Could this be from using too new of a Mongo client version?
Thank you so much for any help you can provide.
Raymond

I'm seeing the same issue but with the node driver and not the shell.
mongobetween v0.11
nodejs v14.15.4
<EMAIL_ADDRESS>mongosh v4.4.0
"The client metadata document may only be sent in the first isMaster"

@rshov
I've opened a PR that I believe will fix your issue: https://github.com/coinbase/mongobetween/pull/41

@rshov #41 has been merged, let us know if that fixes your issue

Sorry for not getting to this sooner, but I've been trying with the update and still cannot get it to work.
I start mongobetween with the following command:
./go/bin/mongobetween ":27017=mongodb+srv://username:password@prod.pips3.gcp.mongodb.net/dbname?maxpoolsize=10&label=cluster0"

That seems to connect ok to my Atlas database.
{"level":"info","ts":1640282695.3266177,"caller":"mongo/mongo.go:61","message":"Connect"}
{"level":"info","ts":1640282695.3398523,"caller":"mongobetween@v0.0.13/mongobetween.go:79","message":"Running"}
{"level":"info","ts":1640282700.3402007,"caller":"mongo/topology_monitor.go:19","message":"Topology changed","old_kind":"ReplicaSetNoPrimary","new_kind":"ReplicaSetWithPrimary","old_address_0":"prod-shard-00-00.pips3.gcp.mongodb.net:27017","old_kind_0":"Unknown","old_address_1":"prod-shard-00-01.pips3.gcp.mongodb.net:27017","old_kind_1":"Unknown","old_address_2":"prod-shard-00-02.pips3.gcp.mongodb.net:27017","old_kind_2":"Unknown","new_address_0":"prod-shard-00-00.pips3.gcp.mongodb.net:27017","new_kind_0":"RSSecondary","new_address_1":"prod-shard-00-01.pips3.gcp.mongodb.net:27017","new_kind_1":"RSSecondary","new_address_2":"prod-shard-00-02.pips3.gcp.mongodb.net:27017","new_kind_2":"RSPrimary"}

Then I run my application which tries to connect to mongobetween with this url (I've changed the actual IP here):
<EMAIL_ADDRESS>
But my application gets this error:
Error: querySrv ENOTFOUND _mongodb._tcp.<IP_ADDRESS>
    at QueryReqWrap.onresolve [as oncomplete] (node:dns:213:19) {
  errno: undefined,
  code: 'ENOTFOUND',
  syscall: 'querySrv',
  hostname: '_mongodb._tcp.<IP_ADDRESS>'
}

If I change the url that my app uses to connect to mongobetween, and take away the "+srv" part so it is:
<EMAIL_ADDRESS>
Then I see log output in mongobetween:
{"level":"info","ts":1640282935.0947332,"caller":"proxy/proxy.go:164","message":"Accept","cluster":"cluster0","remote_address":"<IP_ADDRESS>:54671"}
{"level":"info","ts":1640282935.2335684,"caller":"proxy/proxy.go:164","message":"Accept","cluster":"cluster0","remote_address":"<IP_ADDRESS>:54673"}
{"level":"info","ts":1640282935.5051587,"caller":"proxy/proxy.go:168","message":"Close","cluster":"cluster0","remote_address":"<IP_ADDRESS>:54671"}
{"level":"info","ts":1640282935.5087996,"caller":"proxy/proxy.go:168","message":"Close","cluster":"cluster0","remote_address":"<IP_ADDRESS>:54673"}

But my application shows an error:
MongoError: Authentication failed.
    at MessageStream.messageHandler (/Users/raymond/Documents/GitHub/app/node_modules/mongodb/lib/cmap/connection.js:272:20)
    at MessageStream.emit (node:events:390:28)
    at processIncomingData (/Users/raymond/Documents/GitHub/app/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
    at MessageStream._write (/Users/raymond/Documents/GitHub/app/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
    at writeOrBuffer (node:internal/streams/writable:389:12)
    at _write (node:internal/streams/writable:330:10)
    at MessageStream.Writable.write (node:internal/streams/writable:334:10)
    at Socket.ondata (node:internal/streams/readable:754:22)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    at TCP.onStreamRead (node:internal/stream_base_commons:199:23) {
  operationTime: Timestamp { _bsontype: 'Timestamp', low_: 1, high_:<PHONE_NUMBER> },
  ok: 0,
  code: 18,
  codeName: 'AuthenticationFailed',
  '$clusterTime': {
    clusterTime: Timestamp { _bsontype: 'Timestamp', low_: 1, high_:<PHONE_NUMBER> },
    signature: { hash: [Binary], keyId: [Long] }
  }
}

Any ideas? I would really love to use mongobetween, but am really struggling to get it up and running.
Thanks for any help!

@rshov did you ever manage to use it?

@rshov did you ever manage to use it?

No, I never did get it working unfortunately


Querying over composite key

Hi, I was wondering if my thinking is wrong or that's how it's supposed to work, but
While querying the composite key:
pub const STATE: Map<(Addr,Addr),State>
While using
.prefix(addr)
I'm able to query only by the first element of the composite key.
I have two addresses as composite key, let's say (owner, spender)
I'd like to write a query "give me all records for the owner with such address" (that's easy).
But also "give me all records for spender with such address" (this is where I'm lost).
Also "give all records where such address is either owner or spender" would also be great.
Is there a way to query both/second-part only?
Digging through issues on git and documentation didn't find an answer
I'm using the latest cosmwasm storage plus

...
But also "give me all records for spender with such address" (this is where I'm lost).

There are various ways to solve this. The easiest, but not very space efficient, would be to create a "reverse" Map of (spender, owner) keys.
A better / proper way would be to create an index of State(s) per spender over the original map. See examples of MultiIndex. There's also UniqueIndex, but here I think you'll need the former, as there can be many owners (that means, multiple entries over the spender index) for a given spender.

Also "give all records where such address is either owner or spender" would also be great. Is there a way to query both/second-part only? Digging through issues on git and documentation didn't find an answer

That can be done using the first range query you mention, extended or composed by a range query over the spender index (or the other map).

I'm using the latest cosmwasm storage plus

Cool. There are some examples of using indexes in the storage-plus README.md. That should be up-to-date. Please shoot us a message if you find some inconsistent or outdated info there or elsewhere.

Thx for the replay!
I was thinking that it will come down to multi-index but thought that this feature is more 'built-in' somewhere,
Especially when I looked into keys.rs where the PrimaryKey trait is defined. It has this example:
/// By example, for a 2-tuple (T, U):
///
/// T: Prefix.
/// U: Suffix.
/// (): Sub-prefix.
/// (T, U): Super-suffix.
And the same way you can do
.prefix(Addr)
doing
.suffix(Addr)
would be a cool feature. But maybe I'm resolving some edge case that there's no need for in the broader scheme.
Anyways, thanks for pointing me in the right direction!

Those "suffix" thingies are for annotating the deserialisation type of the keys, not ranging. Perhaps we should clarify that in the docs.
What you propose is cool, but tantamount to using indexes. Need to think more about it, but I think it would require to create and maintain those indexes, just for providing the suffix queries; which is not very convenient.

Hi,
I've managed to get my project working with multi-index, thanks again for setting me up on the right path.
However, during development, I've come upon some shortcomings (?)

There is no logical OR statement possible while querying storage, is this by design or is it a possible feature
2)
Creating Indexes and IndexedMap by yourself is quite 'wordy' it all will be abstracted away in future releases I guess?
3)
&Addr vs Addr as Key in Map? Is there a reasonable difference between these two?
4)
While defining MultiIndex
pub struct MultiIndex<'a, IK, T, PK = ()>
What is the value-added in the benefit of setting up PK to anything different than the default (or type of IK)?
Can't wrap my head around it.
Sorry if these questions are uber simple and I'm taking off your development time guys 😄
I'm super fresh here

Hi, I've managed to get my project working with multi-index

Glad to hear that.

, thanks again for setting me up on the right path. However, during development, I've come upon some shortcomings (?)
There is no logical OR statement possible while querying storage, is this by design or is it a possible feature

This can be done manually, by combining two queries. I don't think we'll add that, as the storage-plus API is already crowded. But open an issue if you want, detailing your use case.

Creating Indexes and IndexedMap by yourself is quite 'wordy' it all will be abstracted away in future releases I guess?

Yes, that is one of the outstanding things we want to improve. There's an open issue for it: #531.

&Addr vs Addr as Key in Map? Is there a reasonable difference between these two?

With &Addr, you can avoid extra cloning when building / accessing the keys. It can be a little difficult to handle it, but if possible, it's recommended to use references / borrowing for the keys.

While defining MultiIndex pub struct MultiIndex<'a, IK, T, PK = ()> What is the value-added in the benefit of setting up PK to anything different than the default (or type of IK)? Can't wrap my head around it.

The value is that if you want to use the primary key in some way, it's already deserialised for you. That is particularly useful with composite keys. The default of () is there for backwards compatibility with existing code. Also, if you don't need the PK, having that set to () saves some CPU / gas.

Sorry if these questions are uber simple and I'm taking off your development time guys 😄 I'm super fresh here

Good questions. Glad that it worked for you.

Thanks a lot for the answers, hope to contribute in some way in the near future. 😄


Slower sampling rate for oscilloscope mode

Hi Mike
I am somehow not able to control my sampling rate where I need just 10,000 samples for a interval of 10 seconds (1 mico-second ) sampling rate on AIN0. I have posted the question on stackoverflow as well (https://stackoverflow.com/questions/47955289/analog-sampling-using-libpru-over-beaglebone).
A small hint of how shall I proceed would be greatly appreciated.
Thanks
Ashish

A separate project implements streaming ADC capture, see:
https://github.com/pgmmpk/bbb_pru_adc


-w flag not working when gulp installed locally

Hi,
I don't like to install things globally, so I only install gulp locally and added a gulp run script to my package.json file.
However, when typing npm run gulp -w, the -w flag doesn't get picked up.
Any suggestions?
Thanks!

@gristel, would you mind sharing your package.json configuration regarding the run scripts? Thanks!

This is the only run script I have:
"scripts": {
  "gulp": "./node_modules/gulp/bin/gulp.js"
}

No matter what I try, running npm run gulp -w always gets stuck in the
if (!cli.watch || gulp.lastRun(task)) {
  return
}

So I'm guessing the argument doesn't get passed, but I have no idea how to pass it.

@gristel Does that help?

The only thing that seems to work is run
npm run gulp -- -w

I can live with that ;-)

Ye, that's the way npm does this, I guess.


Model Development

TensorFlow 2-3 convolutional layers followed by pooling layers and fully connected layers.
Deliverables: Python script with the CNN architecture.
Data augmentation integrated with the training loop.
Script showing the compiled model ready for training.

Finished initial model training with an accuracy of .65. Looking for higher accuracy, will address with model evaluation.


1.18 improvement kubelet

kubelet: Avoid sending no-op patches
Ensure Kubelet always reports terminating pod container status
This change was perf tested on 1/21 & 1/25

/approve

/approve

/lgtm

/lgtm


Dead Cells bugged textures

Dead Cells with DX11 renders bugged on DXVK, works fine with vanilla wine.

Software information
Dead Cells (over Wine)
System information

GPU: AMD Radeon HD 7850
Driver: AMDVLK 2020.Q4.2 and Mesa 20.3.0-devel (git-fb1793b 2020-11-08 groovy-oibaf-ppa) (ACO)
Wine version: wine-5.20 (Staging)
DXVK version: v1.7.2

Apitrace file(s)

https://dl.dropbox.com/s/attupmraruya2xs/deadcells.trace.tar.xz

Log files

d3d11.log:
deadcells_d3d11.log
dxgi.log:
deadcells_dxgi.log

Seems like a driver bug with first-gen GCN? The trace replays fine on my Polaris.

Seems to happen with navi as well:
https://gitlab.freedesktop.org/mesa/mesa/-/issues/3796

On my Polaris card (RX460) the game/apitrace crashes (page fault).
backtrace:
=>0 0x00000000 (0x0031f3b8)
  1 0xf76a811b in dxgi (+0x6811a) (0x0031f3e8)
  2 0x012ff4d1 in d3d11 (+0x7f4d0) (0x0031f458)
  3 0x01328a52 in d3d11 (+0xa8a51) (0x0031f8e8)
  4 0x01329ab9 in d3d11 (+0xa9ab8) (0x0031fa58)
  5 0x012b903c D3D11CoreCreateDevice+0xa7b() in d3d11 (0x0031fc58)
  6 0x012b952d D3D11CoreCreateDevice+0xf6c() in d3d11 (0x0031fd20)
  7 0x012b9bc3 D3D11CoreCreateDevice+0x1602() in d3d11 (0x0031fdc8)
  8 0x004b7ea3 retrace::Retracer::retrace+0x1b2(call=0xd455f0) in d3dretrace (0x0031fdfc)
  9 0x004badca retrace::retraceCall+0x19(call=0xd455f0) in d3dretrace (0x0031fe0c)
  10 0x004baf57 retrace::RelayRunner::runRace+0x56() in d3dretrace (0x0031fe48)
  11 0xde5ccaad (0x0031fe48)
  12 0x004bc10c main+0xb6b(argc=0x2, argv=0xd17d18) in d3dretrace (0x0031fee0)
  13 0x005a08f6 __scrt_common_main_seh+0xf9() in d3dretrace (0x0031ff28)
  14 0x7b62ce9c EntryPoint+0xffffffff() in kernel32 (0x0031ff5c)
  15 0x7bc59c37 EntryPoint+0xffffffff() in ntdll (0x0031ff5c)
  16 0x7bc59e70 EntryPoint+0xffffffff() in ntdll (0x0031ffec)

Stack trace is not very useful, please post DXVK logs instead. If you can't even create a device then chances are that Vulkan isn't working on your setup.

It was a weird setup issue with leftover icd files containing old Vulkan version values, causing this issue on any dxvk version >1.5.1.
Sorry.
The apitace and the game work fine on a Polaris card.

Have same issue with mesa 20.3.1 only + DXVK 1.7.3.

The Mesa issue (https://gitlab.freedesktop.org/mesa/mesa/-/issues/3796) has been closed by https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8835

It appears the very latest AMDVLK (2021.Q1.2 and newer, I think) has a "PadVertexBuffers" option to workaround this issue: https://github.com/GPUOpen-Drivers/xgl/blob/88a4f8c5657824f93790eefe3c9e078806c2a768/icd/settings/settings_xgl.json#L512-L523


Unexpected behavior of Int#/ on zero division

Int#/ and Int#// produce different output when divided by zero:
1 / 0 # => Infinity
1 // 0 # => Unhandled exception: Division by 0 (DivisionByZeroError)

crystal --version:
Crystal 1.0.0-dev [b2b4a8bdc] (2020-08-24)

LLVM: 10.0.1
Default target: x86_64-pc-linux-gnu

That's expected. Check out Ruby (or any language for that matter):
irb
irb(main):001:0> 1 / 0
Traceback (most recent call last):
        5: from /Users/asterite/.rbenv/versions/2.6.6/bin/irb:23:in `<main>'
        4: from /Users/asterite/.rbenv/versions/2.6.6/bin/irb:23:in `load'
        3: from /Users/asterite/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/irb-1.0.0/exe/irb:11:in `<top (required)>'
        2: from (irb):1
        1: from (irb):1:in `/'
ZeroDivisionError (divided by 0)
irb(main):002:0> 1.fdiv(0)
=> Infinity

In Ruby, / between integers is like our //. And fdiv is like our /.

You are right. There are even specs for that.
Although, it is my fault that I did not check it before, Python, Golang and probably other languages raise an exception on both cases:
Python:
  File "main.py", line 1, in <module>
    1 / 0
ZeroDivisionError: integer division or modulo by zero

Shouldn't Crystal do the same?

I don't know

I don't think so. Infinity and NaN are valid values of float.

They are valid, but I would say it's rather confusing.
I don't see any cases (apart from following standards, which, despite everything, some languages break) where Infinity would make more sense than an exception. On the other hand, I can imagine situations where throwing an exception would result in cleaner and more consistent code.
I do not insist on my position, but the current behavior seems a bit wrong to me.


If config client health check fails, is the app really down?

If it started and connected to config server, but can't now, is it down?

+1 for this.
We actually ran into this issue about a week ago when the configuration server could not connect to github. The downstream clients also started reporting "down" status even though they really don't use the configuration server after startup (we are not yet using the refresh scope for dynamic configuration reloads)
I think having the clients contribute a health indicator for the configuration server is a bit aggressive and should be an opt-in feature rather than the default behavior.

I agree - I don't think the client health check should check the config server. The check is for application default so it doesn't check if the specific config the client was started with is available. It can also cause issues with delaying the health check response significantly if the client is configured with a generous config retry policy. I'd like to see it be opt in too.

See #426

Hello,
I spent some time to figure out why sometimes a lot of my applications suddenly switch from UP to DOWN without real explanation.
I came across this issue and it appears that the explanation of my problems is here. By default, health check of each application includes a health check of the config server.
I see a big drawback checking the config server health. I think it is a kind of SPOF cause as soon as the config server is DOWN for any reason, all client applications switch to DOWN. When you're hosted in a Kubernetes cluster this can be even worse cause all containers that work perfectly are detected as unavailable then killed and restarted... but they can't restart because of the unavailability of the config server... in the blink of an eye, the entire platform goes down because of the failure of the config server.
I was wondering if the current behavior can be challenged (eg : not check config server by default) ? When an application starts, it is normal to consider the config server as mandatory but once started, the application can live without the config server.
I know it is possible to disable this check but I was wondering what was the reason why we check the health of the config server on the client side ?


Why admin login?

Hi!
Why did you decide to use the admin login?
This is a security risk under certain circumstances.
regards,
André

This is a wrapper for the official auth system used by the Firebase Dashboard / Forge. When you visit your Firebase in the browser, you are first given an auth token, which can then be used to fetch the Firebase secret.
At this point, you could generate a non-admin token with the secret, but you've already fetched the secret and there is no getting around that, so the security risk is there regardless.


Don't hardcode path to kill in UnixUtilities

Fixes https://github.com/microsoft/vscode-cpptools/issues/10124#issuecomment-1307655686

Thanks :)

@WardenGnaw are the Linux failures just known flakeyness?

@WardenGnaw are the Linux failures just known flakeyness?

Re-running to double check. I don't recall seeing these failures before.

Different test failed this time. Linux tests are flaky.

Thank you for your contribution @expipiplus1

Thank you for the quick turnaround on this!
On Wed, 16 Nov 2022, 4:33 am Andrew Wang, @.***> wrote:

Thank you for your contribution @expipiplus1
https://github.com/expipiplus1
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/MIEngine/pull/1373#issuecomment-1315831783,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGRJXAOGNYXXIVUKABGF6LWIPXSZANCNFSM6AAAAAAR7RQKS4
.
You are receiving this because you were mentioned.Message ID:
@.***>


Java SDK testConnection additional latency of ~1min added

Describe the bug
A JDK-based management pack with Integration SDK: when mp-test with 'test connection' is executed and the actual time taken is around 30-60s above the time taken inside both Java main method executions for 'get endpoints' and 'test connection' combined together
Reproduction steps

Write a JDK-based mgmt pack which makes an additional call to an external system
Try mp-test and connect to that external system
With my example 'get endpoints' takes about 5 secs inside the main method in Java
'test connection' takes about 16 secs inside the main method in Java
The above times out
Test with 'mp-test connect -t 90' which takes around 75 seconds -> looks like some minute or so is added by the framework and Python server
...

Expected behavior
Expected behaviour is that there is not much additional delay apart from the actual execution of the Java main methods
Additional context
No response

@ahmed-sadak I am curious, how did you determine the times you've listed here? (5 seconds for get endpoints, 16 seconds for test connection)

I measured the 5 seconds for 'get endpoint' and 16 secs for 'test connection' from the entry in main() method until the exit while I had configured higher total timeout through mp-test in order to not shut down the process.

Ok, thanks. It sounds like manually instrumented the code with logging in order to determine this timing. Is that correct?


[WFCORE-3041] Correct handling of the elytron subsystem policy resource

https://issues.jboss.org/browse/WFCORE-3041
Forward ported variant of #2882

Core - Full Integration Build 5978 outcome was FAILURE using a merge of f133cad14dbeb45f830b63cddb1e9cf651e104f1
Summary: Execution timeout (new); tests passed: 4208, ignored: 94 Build time: 08:15:49

Full integration - Windows Build 4403 outcome was FAILURE using a merge of f133cad14dbeb45f830b63cddb1e9cf651e104f1
Summary: Execution timeout (new); tests passed: 4193, ignored: 95 Build time: 08:15:53

retest this please


Throw error on duplicate alias

Kill the program on registering duplicate alias with a command.

Looks good! Could you throw in a test or two into ./test/integration.js? There's an alias section - you can put it around there.

Ok. Added a test for duplicate alias crash!

Very nice. :)
Thanks!! :+1:


⚠ Jenkins Plugins Artifactory has degraded performance

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

HTTP code: 200
Response time: 1216 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 8e0cec3 after 27 minutes.


This tool cant generate wordlist

Oh sory, now i got the idea. This isn't for generate a word list. xD

This doesn't crack passwords


fix: correctly screen element after moveTo

fix - https://github.com/gemini-testing/testplane/issues/779

Is round safe to use here in terms of flakiness? Would floor be better or not?

It is safe because under the hood Math.floor is used for top and left coords and Math.ceil for right and bottom. Here - https://github.com/gemini-testing/testplane/blob/master/src/browser/client-scripts/rect.js#L80-L87


Support Filament v3

:)

is this being worked on?

:)

I'll definitely work on it when I find some free time.


Enable full-environment for v2 contracts

Extend https://github.com/zeta-chain/protocol-contracts/issues/198 mostly focus on first implementation to track task we should complete to be production ready for v2 contracts.

Make CI complete for all security processes
Add all scripts for workflow (deploy, etc...)
New changes based on protocol integration

### Tasks
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/156
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/158
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/204
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/229
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/236
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/250
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/251
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/253
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/255
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/279
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/275
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/274
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/271
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/299
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/302
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/306
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/307
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/308
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/309
- [ ] https://github.com/zeta-chain/protocol-contracts/issues/310

Closing now, added the revert support in localnet here: https://github.com/zeta-chain/node/issues/2745


Add new barcodes for iOS

The iOS update to resolve issue #312 by switching to AVMetadataObjectDelegate enables support for Aztec, PDF 417, and Code 93. Because of this, the AVOutput required some minor updates to enable reading and returning values for these barcode types.
The attached barcodes were the test cases.
PDF417 value: "This PDF417 code"

Aztec value: "test aztec"

Code 93 value: "123ABC93"

Fixes: #335, #312

I can confirm that the changes to CDVBarcodeScanner.mm fix the app crashing issue.
As well, I am now able to scan the CODE 93 barcode samples that I had on my desk that previously only worked on my Android build.

How do I download and test this version to test issue #312 as well as PDF417 (#335)?
Via the "Don't try this at home" method from #312 thread?

I would assume you would do it in a similar way that was outlined in the #312 thread.
Something like below:
<plugin name="phonegap-plugin-barcodescanner" spec="https://github.com/jlowe234/phonegap-plugin-barcodescanner.git" />

Top job! Released with 6.0.3.

This pull request introduced a bug with UPC_A.
Prior to this PR this code
would scan "776312900108" but now it scans "0776312900108".


Error refreshing authentication: Could not refresh OAuth token - Happening about Hourly

Splitting from #196 as requested.
I'm seeing this error about every hour. The Washer & Dryer will also become unavailable for a short period of time and then become available again.
An hours worth of debug logs is here:
home-assistant_2023-12-07T03-39-15.224Z.log
The OAuth Warning is line 6418.
I'm also seeing another Warning (Line 97 & 156):
Could not find appliance D828C9D6322D in known device list.
Could not find appliance D828C9A9A9E7 in known device list.

Not sure why the refresh fails, but I added some fallback logic to try the full flow.  Let me know if dev5 works for you.

Updated to dev6. Can get debug logs, but I'm now getting these 2 warnings about every hour:
2023-12-10 19:49:22.838 WARNING (MainThread) [gehomesdk.clients.base_client] Error occurred when retrying token refresh using full flow, ignoring.
2023-12-10 19:49:22.839 WARNING (MainThread) [gehomesdk.clients.base_client] Error refreshing authentication: Could not refresh OAuth token

That's related to the retry/fallback code I added, guessing that you're still seeing it disconnect each hour based on those messages.  Yes, if you could get some debug logs, perhaps there's something that'll illuminate the situation.  I don't know why that wouldn't have worked though.

Hi I have the GE Café Specialty Drip Coffee Maker, it is still asking to reauth every hour or so. I was wondering if this is a new issue or related to this issue.

seems there might be something else going on in your case, I'd suggest completely removing the integration, making sure the ge_home directory in custom_components is gone, then reinstalling.  It shouldn't generate duplicate entities, so we need to resolve that first.


[Bug] Invite User flow is failing

Description
A user is not getting invited when invited from within an application
Steps to reproduce the behaviour:

Go to the tutorial app in the example org
click on the share button in the edit mode
enter an email id with a developer role and trigger an invite
The invite flow times out and no invite is sent

@trishaanand I've added the API to postman

Closing since this should be fixed with the newappsmith migration


Subtitles not displaying—due to not being referenced in manifest?

Thanks for writing this very handy utility!
I have transcoded a video containing a single subtitle track.  The renditions do contain separate segmented .vtt files (see screenshot), but subtitles do not show up when the video is viewed in Safari or Chrome using an embedded video.js instance.
I think the problem is that there is no reference to the subtitle files in the manifests (see, for example, https://stackoverflow.com/questions/39631349/hls-live-streaming-subtitle).
I'd be very grateful if you could fix this!

Edit: I have gotten subtitles to appear by hand-editing the master playlist to reference the subtitle media playlists.

I will this feature in the future!


Connect to Chrome via port stored in DevToolsActivePort file

Problem
The latest Chromedriver version started to store the port of the devtools interface in the DevToolsActivePort instead of generating one randomly. We need to modify the connection process of the service to the browser.

This seems to be a workaround:

update chromedriver to verion 2.41
add 'remote-debugging-port=9222' to chromeOptions

Example:
chromeOptions: {
args: ['remote-debugging-port=9222'],
}

I think, since chromedriver v2.41, you can get the port by using this:  browser.session().value['goog:chromeOptions'].debuggerAddress.split(":")[1]
instead of:
browser.url('chrome://version')
browser.getText('#command_line').then((args) => parseInt(args.match(/--remote-debugging-port=(\d*)/)[1]))

@daviddekanter do you mind to create a PR?

@christian-bromann sure! no problem

I think i need permission :)

I think i need permission :)

Not to create a PR 😉 . Just fork the repo and open a PR.

Will be fixed by #11 and https://github.com/webdriverio/webdriverio/pull/2918


Add an analysis option to allow specifying errors which cannot be ignored with comments.

As a solution to https://github.com/dart-lang/sdk/issues/44237 and issues cropping up about unsafe_html, pedantic, and Flutter's web-compiled dart:ui, @bwilkerson and I are proposing an analysis option which allows for a centralized declaration of what analysis codes cannot be ignored with comments (// ignore: and // ignore_for_file:). Such codes are "un-ignorable." The proposal is a new option under the top-level analyzer Map, keyed to  cannot-ignore. For example:
analyzer:
  errors:
    unused_import: error
  cannot-ignore:
    - error
    - unsafe_html

Quick notes on this option:

All errors can be ignored with comments, except errors listed in cannot-ignore.
The cannot-ignore can contain individual error codes, "unique" error codes, and the three severities which the analyzer understands: error, warning, and info.
Listing a severity like error will make any analysis code with severity of "error" un-ignorable.
Listing a severity like error respects any severity customizations made in the errors section. In the example above, unused_import is un-ignorable.

Shortcomings and alternatives:

There is no complex calculus available, so there is no way to specify "all codes are un-ignorable, except a specific set of named codes." I don't think there is any ask for a concept like this; we could solve such an ask with another special format like all_except: [list, of, codes].
This changes the default state from "errors are un-ignorable" to "nothing is un-ignorable," which is fine, as this is a broad ask. I think it would be complicated to set an option when the default is non-empty. Setting an option would not be additive to "all errors;" it would replace the default.
Perhaps the severities should be acceptable in their plural forms? errors, warnings, and infos.
This is heading further down a path of listing "options" which include lists of codes as a top-level structure, and then codes further down. An alternative syntax would group codes together, and list all customizations of each code in one location:analyzer:
  errors:
    unused_import:
      severity: error
      ignorable: false
      message: "{0} is an unused import; don't forget to remove from BUILD file."
    prefer_local_finals:
      include_for_declarations: true
      include_catch_declarations: true

CC @davidmorgan @matanlurey  the "un-ignorable" concept is for security-based lints internally so I'd like a thumbs up that this is a sound change. CC @bwilkerson @devoncarew

For google3 we're good, we fully control the analysis options yaml in the context where enforcement matters (the build).
Thanks.

This changes the default state from "errors are un-ignorable" to "nothing is un-ignorable," ...

It might be worth pointing out that the relatively new diagnostics related to ignore comments are, and will remain to be, un-ignorable. This is a consequence of the timing of when we process ignore comments and run those validation checks, not a preference, so if it becomes an issue we might be able to fix it.

Listing a severity like error will make any analysis code with severity of "error" un-ignorable.

We might want to support other groups at some point. One that comes to mind if all as a short-hand.

Thanks for driving this Sam! The overall design lgtm.
Will we ever need a parameter for the cannot-ignore code? In your first example above, the unused_import item has a parameter while the two cannot ignore codes are just listed in a list.

Will we ever need a parameter for the cannot-ignore code?

Not to speak for Sam, but I think the answer is "no". As Sam mentioned (shortcoming 4), there's an unfortunate inconsistency in the way we're specifying some of our options (code:severity to set the severity vs cannot-ignore: [code, ...] to make codes un-ignorable). While it would be nice to clean it up (I really like Sam's proposal in shortcoming 4), there is a migration cost to users if we do so. We ought to be able to provide tooling to aid the migration, but that adds an implementation cost on our side.
If we do decide to change the structure of the file and add tooling for it, there's another set of changes that I'd like us to consider. When the file format was first being designed the choice was made to be flexible. As a result, there are sometimes multiple ways to represent the same information. In retrospect I think that choice not only complicated our implementation but actually resulted in a worse UX than if we had been more proscriptive and only had a single way to represent the options. I'd like to see us clean up the file format in those areas as well.


Add static label to PVC

The VolumeReplication won't be created because the ramen-dr-cluster-operator can't find a PersistantVolumeClaim with the expected labels. These labels are created by default via the WebUI
oc logs ramen-dr-cluster-operator-7df86d979f-jpxq2 -n openshift-dr-system | grep "Found 0 PVCs using label selector" | tail -1
Defaulted container "manager" out of: manager, kube-rbac-proxy
1.6650950424066994e+09	INFO	controllers.VolumeReplicationGroup	controllers/volumereplicationgroup_controller.go:530	Found 0 PVCs using label selector app.kubernetes.io/created-by notin (volsync),placement=busybox-placement-1	{"VolumeReplicationGroup": "busybox-sample/busybox-placement-1-drpc"}

This is being fixed to ask for a user defined label during DR enabling an application for the downstream 4.11.3 release and already part of 4.12 release.
Merging this patch in the interim, with the strategy to use downstream fork of this repository and refer to the same in documentation to catch up with relevant changes as appropriate.


Migrate library to use module: "NodeNext" as recommended by TypeScript and SvelteKit docs

Fixes: #909

Here's more detail on why this change is necessary. The tldr is that TypeScript libraries should use "module": "NodeNext" to ensure they are the most compatible. NodeNext enforces the strictest possible settings and will enable the library to be used in node.js, the browser, or a bundler.
I'm intentionally overriding bothmodule and moduleResolution to align the library with the TypeScript and SvelteKit best practices for library authors. module: NodeNext must be used with moduleResolution: NodeNext. Since both module and moduleResolution are set in .svelte-kit/tsconfig.json, we have to override both.
Here's more detail on why libraries should be NodeNext. From the TypeScript handbook:

When compiling an app, you choose the moduleResolution option for a TypeScript project based on who the module resolution host is. When compiling a library, you don’t know where the output code will run, but you’d like it to run in as many places as possible. Using "module": "nodenext" (along with the implied "moduleResolution": "nodenext") is the best bet for maximizing the compatibility of the output JavaScript’s module specifiers, since it will force you to comply with Node.js’s stricter rules for import module resolution.
...
In short, "moduleResolution": "bundler" is infectious, allowing code that only works in bundlers to be produced. Likewise, "moduleResolution": "nodenext" is only checking that the output works in Node.js, but in most cases, module code that works in Node.js will work in other runtimes and in bundlers.

https://www.typescriptlang.org/docs/handbook/modules/theory.html#module-resolution-for-libraries
They are a little more direct in the reference section of the TypeScript docs.

A common misconception is that node16 and nodenext only emit ES modules. In reality, node16 and nodenext describe versions of Node.js that support ES modules, not just projects that use ES modules. Both ESM and CommonJS emit are supported, based on the detected module format of each file. Because node16 and nodenext are the only module options that reflect the complexities of Node.js’s dual module system, they are the only correct module options for all apps and libraries that are intended to run in Node.js v12 or later, whether they use ES modules or not.

https://www.typescriptlang.org/docs/handbook/modules/reference.html#node16-nodenext
It doesn't seem possible to combine module: esnext with moduleResolution: NodeNext.

--moduleResolution node16 and nodenext must be paired with their corresponding module value.

https://www.typescriptlang.org/docs/handbook/modules/reference.html#node16-nodenext-1
The inverse is also true. The bundler option only works with esnext.

--moduleResolution bundler must be paired with the --module esnext option.

And finally, in the Guide, there is a section titled: "I'm writing a library", it says to use module: node16 and explains why this is the best choice for compatibility. Node16 = NodeNext

Some type errors that'll probably get fixed with #918. So will wait on that for now


Module in Python

In Visual Studio Code, the module in Python is not color green and I see something not color too, I hope Microsoft will fix this error.

@fondproblaze Please share what you have for the python.languageServer setting.


False positive on NonBooleanPropertyPrefixedWithIs in 1.20.0-RC2

inline val isDebuggable get() = BuildConfig.DEBUG

where BuildConfig.DEBUG is generated by AGP:
public final class BuildConfig {
  public static final boolean DEBUG = Boolean.parseBoolean("true");
}

It looks like this is also happening when reading a boolean property from an Android ViewBinding class.

Thanks for the issue report @eygraber 🙏 Is this a regression? Could you check with 1.19.x if the issue is happening?
Also are you using Type Resolution?

I retested this issue on detekt 1.19 and got the same error (just the BuildConfig errors are not reported).
I think that the main problem here is the issue #3488 (also for #4678). It seems like the generated sources are not included, so the type resolution is not working here.

Odd I wasn't able to repro on 1.19 (https://github.com/detekt/detekt/issues/4676#issuecomment-1088267221). Maybe there's something wrong with my setup that made type resolution not run correctly that got fixed in 1.20.

#4684 fixed this


update sbt versions

Subsumes #304 and #301

The fact that the tests are failing here is very unsettling :cold_sweat:

Partial investigation:

the problem is reproducible locally, it's not some CI-only glitch
it's the sbt version bump, not the sbt-dotty bump
2.13 passes, 2.11 and 2.12 fail

oh, I found a ticket on this: https://github.com/sbt/sbt/issues/5934

I admit I've never bothered to upgrade Sbt because I didn't want to get into that issue 😅
Wild guess: something related to escaping of output? It seems that the value names are not being printed

Updates didn't worked since sbt version 1.4.0.
see #213

something related to escaping of output? It seems that the value names are not being printed

It's not a printing problem. In MacroCompatScala2.scala, in clueImpl, if I println(text) after val text = ..., it's printing empty strings (on 2.11 and 2.12 only). So the Clue values themselves incorrectly contain empty strings.

Wow. The fact that this has something to do with sbt is deeply unnerving 😳
I'll take a look when I have a minute

@larsrh Nice find, that would explain the differences between 2.11/2.12 and 2.13

It's definitely the -Yrangepos setting. On current head, we see it on testsJVM project when running +show Test/scalacOptions. Doing same with this PR shows -Yrangepos missing. Not sure what changed upstream to cause this but we could patch easily by setting Test / scalacOptions := (Compile / scalacOptions).value

I can confirm the workaround proposed by @mpilquist works locally.


Fix help for indent-blankline plugin

Since version 3 :help indent_blankline no longer works. Replace it with :help ibl.

Thanks for the fix! Merged.


Automatic Rune/Key HC that refreshes itself every ~30 mins

We want to add an automatic headcount for runes that raiders can react to, so that RLs can see if/how many runes they have without even putting up an HC of their own.

Raiders can react to it in the AFK-checks channel
Who/how many reacts goes in raid-bot-commands, so only staff can see if we have any reacts
The reacts are removed every ~30 minutes, since we don't expect raiders to react and then be willing to pop an hour later
We want it for runes, but could be for any HC (so other discords might use it aswell)

This will hopefully help our RLs put up more runs, since they wont have to commit to a headcount and then risk having to abort it.

/*
reactionmanager
reactions: list of reactions
lastResetTime: time of last reset
message: the message containing the embed

What happens is:

when bot starts (or if we have a command)
send first message with embed
add reactions and start the collectors
run the update message timer thing

when times out:
stop the collectors
delete the message
clear the data

resend start command

updateReactionMessage(){

    if(currentTime > lastResetTime + 15mins){
        stop listeners
        empty reactions list
        delete Message
        resend it
    }

    embed = getReactionsEmbed()
    update message with the new embed
    call itself after 60s
}

 getReactionsEmbed(){

    load the list of reactions
    format an embed based on these (number of each rune type, total number of keys)
    return the embed
 }

 reactionsCollector(){

    listens to the buttons on the message
    depending on which button was pressed, do:
        add reaction
        send message
        if its key, do more stuff
        if all rune, ping

 }

 Look in HeadcountInstance for how collectors are started and stopped
 in around line 1000

*/


Button

Buttons to have box-shadow to make them look like buttons. Currently, they look like a div with text and background
Buttons to have effects on hover and click. Make sure that they don't have an outline on focused and active state.

Solved in this PR : https://github.com/Codebrahma/react-lite-ui/pull/50 . @prasanna1211 Please check and close this issue.


Server is running on ${PORT} port never reached

I'm submitting a ...

[X] bug report
[ ] feature request

Bug Report:
Server is running on ${PORT} port is never reached.
I never see it's output in console.

Steps to reproduce:

git clone, npm install, npm run build, npm run start
Useful Info:

Your environment:

Node version: 6
Browser: Chrome
OS: OSX
Language/Platform/etc:

maybe it's stripped out?

Hi @TheDolo, check this commit: https://github.com/Metnew/react-semantic.ui-starter/commit/518e3e6fa11de673ac20b135eaa9b96ab0a76c2d. You can strip console.log from your code using UglifyJS


 Here's a screenshot.

otherwise LGTM

Looks great!
For the last entry in the right column, can that be multi line instead of
being separated by "or"?
Probably should have the object result like "raw = mne.io.Raw (..." in the
first one.

Also, it should link to the doc for those commands if possible

I wonder if there is a way to get e.g. the raw.save line to link to
Raw.save.

should we note that the importing that we list as an example is for the .fif and that you would need to use system-specific format for reading?

@Eric89GXL no luck with linking the methods. But the multiline table works

should we note that the importing that we list as an example is for the .fif and that you would need to use system-specific format for reading?

+1 . If there's a doc page that explains format reading, I'd add a see <ref> for other file format

comments addressed. updated page looks like this

We should probably list read_raw_edf and read_raw_eeglab. Multi line looks
good.

What do you think about being a little more explicit about the imports? I mean instead of io.Raw(...) writing mne.io.Raw or adding somewhere from mne import io. This might be helpful for beginners coming from matlab - a land where no imports and no real namespaces exist.

Great job, I hope I'll have time to review later.

@jasmainak added links:
https://github.com/jasmainak/mne-python/pull/1

(PR also gives examples of more explicit imports like @mmagnuski mentioned)

thanks guys for taking the time ! that's very useful.

Can the code be shown as code? I mean, highlight it as fixed-width etc.

What do you think about being a little more explicit about the imports? I mean instead of io.Raw(...) writing mne.io.Raw or adding somewhere from mne import io. This might be helpful for beginners coming from matlab - a land where no imports and no real namespaces exist.

I emphatically agree. This must somehow be made clear.

@Eric89GXL thanks for the PR. I've addressed comments by @jona-sassenhagen

besides +1 for merge
thx @jasmainak

comments addressed @agramfort

Thanks @jasmainak


Location tracking failed on background

Hi Team, this library simplified lot of works. But in my application i am using background service to update user current location using alarmManager & Service.
1. If user is in online then i send data to server. If not storing into Room Database.
2. Every 5 minutes i updating location details.
3. If i am in travel, after reached new location its not updating new location, when i open my app then . only its updating new location and sending to server
Please help me if i am wrong. Thanks!
`
class AppService : Service() {
var NOTIFICATION_ID = "notification-id"
override fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int {
    super.onStartCommand(intent, flags, startId)

    val context = this
    val location = SimpleLocation(context)

    val address = getAddress(context, location.latitude, location.longitude)

    if (isConnectedOrConnecting(context)) {

        AppUtil.addAttendance(getLatLng(context), address, context)

        val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager

        val notification = getNotification(context, "Hai, sent your location$address")
        val id = intent.getIntExtra(NOTIFICATION_ID, 0)
        notificationManager.notify(id, notification)
        roomDB = Room.databaseBuilder(this, LocationDataBase::class.java, "location_db").allowMainThreadQueries().build()
        val list = roomDB.locationModel().listOfLocation

        sendSavedDataToServer(list, this)
    } `

This is not specific to this library. Instead, it’s simply related to your app being in the background, as you noted, and perhaps also to App Standby and Doze.

Location updates are provided to background apps only a few times each hour.
– https://developer.android.com/about/versions/oreo/background-location-limits

Perhaps you may be able to use Context.startForegroundService.


[Bug][conditions component] conditions component go success way but the previous task was failed

does the success and failure status in the condition component  refer to the previous task or the task of condition itself?

The Condition node can refer to the figure below. The Custom parameters need to configure whether the front node succeeds or fails

that's make sense,thanks for the reply!


theme still referencing port 8080 for local files instead of 3001 after upgrade

Express server running on port 3001 but theme is still referencing port 8080 for local files. How do I update the port on the theme?

Sounds to me like you're running yarn watch which doesn't upload the latest dev files to your store? Try running yarn start?

Thanks, that fixed it.


Remove brambox and lightnet from provision dockerfile

We have our own wbia-brambox and wbia-lightnet repos but we also use the
brambox and lightnet packages from pypi (in wildbook-ia runtime
requirements).  The tests pass with brambox and lightnet from pypi so
should be ok to remove them.

I thought we were able to use the versions on PyPI but we were seeing run-time errors in production on code that has no working test.  There are two things to fix:

Update the wbia/algo/detect/lightnet.py training and inference code, which may require re-training models (nightmare)
Add run tests to ensure models are actually working, which requires downloading 400MB files (uncomfortable)

@bluemellophone I originally created this PR because there's some strange dependency issue causing my tests to fail locally.  In the devops provision docker container, we install wbia-lightnet, which depends on brambox from gitlab which depends on pillow-simd.  pillow-simd (v7.0.0.post3) overwrote the PIL directory installed from Pillow (v7.2.0) and caused my tests to fail locally.
Also, wildbook-ia itself depends on brambox and lightnet, not wbia-brambox and wbia-lightnet, causes the pypi version of those packages to be installed anyway.  So I thought it's ok to not install wbia-brambox and wbia-lightnet...

I think we simply need to deploy our own versions of brambox and lightnet on PyPI.  Ideally we would package brambox inside lightnet repository and maintain it as a separate fork until the code and models can be updated to support the lightnet package that is already available.


Enforce extension validity at parse time

Summary
This PR adds a FileKind field to some of our distribution types, which requires that we validate that the file type is known and supported when parsing (rather than when attempting to unzip).
Closes https://github.com/astral-sh/uv/issues/5858.

I think this is a good change but it's more aggressive. It means we might error if a registry serves distribution kinds that we don't support, even if we'd never read them.

Oh nevermind, we wouldn't fail in that case due to some other gating.

I bumped the rkyv cache, to be conservative.


Refactor tests for plan update

Signed-off-by: Yulia Nedyalkova<EMAIL_ADDRESS>

Coverage remained the same at 89.1% when pulling f364f3baa94a82644f6193c2d2077f5eaea76340 on validation-tests into 9534280b80ec2978338723e2435a750f2a5cc164 on master.


Still wrong

Description
Describe as well as you can about the feature you're requesting
The reason why the material data fails is custom_model_data in version 1.12.2 Because that it is not supported
Legacy_Data:
The material data used in minecraft versions 1.8.8 through 1.12.2.
Usually used for wool colors.
1.8.8-1.12.2 Use Legacy_Data:
So I'm Trying to this
Skin:
Default:
Custom_Model_Data: 121
Scope:
Custom_Model_Data: 131
change of：
Skin:
Default:
Legacy_Data: 121
Scope:
Legacy_Data: 131
material data origin
{"predicate": {"custom_model_data":121}, "model":"item/weapons/ak47"},
{"predicate": {"custom_model_data":131}, "model":"item/weapons/ak47aiming"},
I change of：
{"predicate": {"legacy_data":121}, "model":"item/weapons/ak47"},
{"predicate": {"legacy_data":131}, "model":"item/weapons/ak47aiming"},
But retry is alway fail
Configuration
Skin:
Default:
Legacy_Data: 121
Scope:
Legacy_Data: 131
{"predicate": {"legacy_data":121}, "model":"item/weapons/ak47"},
{"predicate": {"legacy_data":131}, "model":"item/weapons/ak47aiming"},

Custom_Model_Data is for 1.14+ server.
Legacy_Data is the extra item tag to change e.g. wool color in 1.12 and before.
The thing you want to use is Durability: https://www.spigotmc.org/wiki/custom-item-models-in-1-9-and-up/


Feature request: when more than one attribute with the same name applies to a single element, throw an exception instead of just using the last one

Consider Thymesheet files with duplicate attributes, like:
a {
  th-class: "firstClass";
  th-class: "secondClass";
}

or, even something like:
a {
  th-class: "firstClass";
}
* {
  th-class: "secondClass";
}

More than once I have seen people expect this sort of thing to work (by expecting ThymeLeaf/Sheet to combine the attributes), but instead only the last attribute that applies to an element will be used, and the others ignored.
I think both of the above cases should result in exceptions (and they will probably require different bits of code to be changed to implement each of them). Do you agree?

The idea is it works like css.
If you do this it’s perfectly valid, and it could happen as a result of two or more selectors  cascading (combining) too — which is your second example.
This is no different than having a css

{
color:blue
}

a {
color:red
}
(For example)
These are perfectly valid scenarios - especially the second one you gave - and changing it would be a breaking change, causing unexpected errors.

I agree that the behaviour makes sense in that it is consistent with CSS, and that changing it will cause unexpected errors.
I checked what errors would occur in our project by hacking Thymesheet to throw some exceptions in the cases I outlined above... and I found quite a few errors when running our project's tests.
Unfortunately perhaps half of these exceptions are thrown because of Thymesheet that is obviously erroneus (especially with the first case, but also sometimes in the second case). It seems pretty common for people to use multiple th:attr, th:if or th:classappend attributes, and expect them to be applied cumulatively.
So, while this behaviour does make sense. I don't think it is ideal because it also results in problems going unnoticed.


[Help wanted] Webpack exclude custom file in 'production'

Hello,
I want to exclude a file when I am building the project and creating '/dist' folder.
File path is something like this. 'src/utils/devFile.js'
The file contains some paths that I want to be excluded from production files.It is ok to be used for devs only.
`// ------------------------------------
// Bundle Output
// ------------------------------------
webpackConfig.output = {
filename: [name].[${config.compiler.hashType}].js,
path: paths.base(config.distDir),
publicPath: config.compiler.publicPath
};`
This is my bundle output.
How can  I exclude that file when running production env.
I am using babel-node too.

It looks like you just deleted our lovely crafted issue template. It was there for good reasons. Please help us solving your issue by answering the questions asked in this template. I'm closing this. Please open a new issue with filled issue template. Also make sure your issue is not a question. Questions should be posted on Stack Overflow.


[contracts] Derive useful traits for public types

Description
We add a few derivations to the public types from pallet-contracts and pallet-contracts-primitives crates. While they are not used directly in the runtime (and thus the implementation code will be pruned by a compiler), they would be very useful for contracts-related tooling. Also, this brings a bit more consistency to these libraries' public API (e.g. schedule module has already all its public types enriched with many similar trait derivations).
Checklist

[x] My PR includes a detailed description as outlined in the "Description" section above
[ ] My PR follows the labeling requirements of this project (at minimum one label for each A, B, C and D required)
[x] I have made corresponding changes to the documentation (if applicable)
[x] I have added tests that prove my fix is effective or that my feature works (if applicable)
[x] If this PR alters any external APIs or interfaces used by Polkadot, the corresponding Polkadot PR is ready as well as the corresponding Cumulus PR (optional)

bot merge


move creation beeindigd mandataris status code to migration

Description
The beeindigd mandataris status code was moved to a migration, this has some influence on the mandataris status service in the frontend.
How to test
See if the update state in mandataris still works (especially the beeindigd state), or if you can select the beeindigd state is available in a mandataris form.
Links to other PR's

https://github.com/lblod/app-lokaal-mandatenbeheer/pull/165

We might want to make it a constraint that the end date is required when creating a Beëndigd mandataris?


Inconsistent example

Hi. I'm new to Bicep and trying to pick it up.
You state, "Add the following code to the beginning of the file:
@minLength(3)
@maxLength(24)
@description('Specify a storage account name.')
However, later on in the example of lines 1-10 in the file, you have:
param storageAccountName string {
metadata: {
DisplayName:
}
minLength: 3
maxLength: 24
}
This is confusing as I'm thinking it should be one or the other??
Thanks,
.: B

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

ID: 70855d1e-62ce-b4dc-a5e0-d92bd948a6aa
Version Independent ID: cbd9e950-8331-34e7-d4a8-a2bfbb6655d2
Content: Create Bicep files - Visual Studio Code - Azure Resource Manager
Content Source: articles/azure-resource-manager/templates/quickstart-create-bicep-use-visual-studio-code.md
Service: azure-resource-manager
Sub-service: templates
GitHub Login: @mumian
Microsoft Alias: jgao

@BrendanHere Thanks for your comment. We will review the issue and get back to you shortly.

Thanks a ton. Also, the examples will absolutely not work if you attempt to use powershell to associate the template with new-ResourceGroupDeployment cmdlet. It throws an error on the first character of the first line in the bicep file.
Terribly frustrating., I spent hours trying to figure it out, I finally resorted to the azcli. I really don't want to use that because I'm well versed in powershell. It does consume the file just fine if I use the CLI. I'm happy to submit another discreet feedback on that if you need me to.
The only thing that I could think is maybe it's because I'm using powershell preview 7.x, I don't have powershell 5.x to test with.
Thanks,
.: Brendan

From: SwathiDhanwada-MSFT @.>
Sent: Friday, March 26, 2021 12:19:04 AM
To: MicrosoftDocs/azure-docs @.>
Cc: Brendan Mütz @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] Inconsistent example (#72805)
@BrendanHerehttps://github.com/BrendanHere Thanks for your comment. We will review the issue and get back to you shortly.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/72805#issuecomment-807924289, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHOVIR3M4OKBZALPH4RHKZTTFQDLRANCNFSM4Z2HELTA.

@BrendanHere - thank you for your comment.  The screenshot will be updated later today. Regarding the Azure PowerShell deployment issue, it is likely that you don't have the latest Bicep CLI installed.  The latest is 0.3.126. You need version 0.3.1 or later.  To check the version, run "bicep --version".  To install the latest, use one of the manual methods documented in https://docs.microsoft.com/azure/azure-resource-manager/templates/bicep-install?tabs=azure-powershell#intall-manually.

Thanks a ton for getting that updated!
I do have the latest bicep version.
Has someone tried to actually execute that example?
PS C:\temp> az bicep version
Bicep CLI version 0.3.126 (a5e4c2e567)
PS C:\temp> $PSVersionTable.PSVersion
Major  Minor  Patch  PreReleaseLabel BuildLabel

7      2      0      preview.3
Thank you,
Brendan
From: Jonathan Gao @.>
Sent: Friday, March 26, 2021 5:02 PM
To: MicrosoftDocs/azure-docs @.>
Cc: Brendan Mütz @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] Inconsistent example (#72805)
@BrendanHerehttps://github.com/BrendanHere - thank you for your comment. The screenshot will be updated later today. Regarding the Azure PowerShell deployment issue, it is likely that you don't have the latest Bicep CLI installed. The latest is 0.3.126. You need version 0.3.1 or later. To check the version, run "bicep --version". To install the latest, use one of the manual methods documented in https://docs.microsoft.com/azure/azure-resource-manager/templates/bicep-install?tabs=azure-powershell#intall-manually.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/72805#issuecomment-808505750, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHOVIR2YOFGLPF6BTE5R7FTTFTY3XANCNFSM4Z2HELTA.

@BrendanHere - Azure CLI installs its own self-contained version of Bicep.  Azure PowerShell uses a different copy.  To check the version, use "bicep --version" instead of "az bicep version".

I must be missing something then.
I was trying to use Bicep in PowerShell Preview 7 – where I typically run all of my shell commands.
I also have Azure Cloud Shell installed in Windows Terminal. So, do I have it improperly installed?
Azure Cloud Shell:
PS /home/brendan> az bicep install
PS /home/brendan> az bicep --version
the following arguments are required: _subcommand
PowerShell 7 Preview:
PS C:\temp> az bicep --version
the following arguments are required: _subcommand
Command Prompt:
C:\Users\TEMP>az bicep list-versions
[
"v0.3.126",
"v0.3.1",
"v0.2.328",
"v0.2.317",
"v0.2.212",
"v0.2.59",
"v0.2.14",
"v0.2.3",
"v0.1.226-alpha",
"v0.1.223-alpha",
"v0.1.37-alpha",
"v0.1.1-alpha"
]
C:\Users\TEMP>az bicep --version
the following arguments are required: _subcommand
TRY THIS:
https://aka.ms/cli_ref
Read more about the command in reference docs
Thanks,
Brendan
From: Jonathan Gao @.>
Sent: Friday, March 26, 2021 5:08 PM
To: MicrosoftDocs/azure-docs @.>
Cc: Brendan Mütz @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] Inconsistent example (#72805)
@BrendanHerehttps://github.com/BrendanHere - Azure CLI installs its own self-contained version of Bicep. Azure PowerShell uses a different copy. To check the version, use "bicep --version" instead of "az bicep version".
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/72805#issuecomment-808509165, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHOVIR35Q4FOJWWNEWS6OU3TFTZUVANCNFSM4Z2HELTA.

@BrendanHere - Remove "az" from the command.  It is "bicep --version" instead of "az bicep --version".  Here is what I have:
$ bicep --version
Bicep CLI version 0.3.126 (a5e4c2e567)
If the Bicep comment is not recognized, you need to install Bicep CLI by using the link I shared with you earlier.

Huge help Jonathan, most appreciated.
[I should have slowed down to read the details about the caveat with PowerShell].
Regards,
Brendan
From: Jonathan Gao @.>
Sent: Friday, March 26, 2021 5:39 PM
To: MicrosoftDocs/azure-docs @.>
Cc: Brendan Mütz @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] Inconsistent example (#72805)
@BrendanHerehttps://github.com/BrendanHere - Remove "az" from the command. It is "bicep --version" instead of "az bicep --version". Here is what I have:
$ bicep --version
Bicep CLI version 0.3.126 (a5e4c2e567)
If the Bicep comment is not recognized, you need to install Bicep CLI by using the link I shared with you earlier.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/72805#issuecomment-808522451, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHOVIR47C74MPV7XUQD3CI3TFT5GBANCNFSM4Z2HELTA.

Would it help to have a Prereqs section with the exact version numbers listed instead of "latest"?

I think that would be useful.
Also, you may consider a callout or making it very apparent that you need to be able to run “bicep –version” to confirm that you  have the Bicep CLI installed.
It’s possible to run the powershell cmdlets to attempt to deploy with a .bicep file, but it isn’t immediately obvious that the bicep environment isn’t setup if you attempt to do that. As in my experience, I was getting some ambiguous errors. I ended up spending a lot of unnecessary time troubleshooting, scratching my head, and having to engage your expertise as well.
Thanks,
Brendan
From: Tom FitzMacken @.>
Sent: Monday, March 29, 2021 1:03 PM
To: MicrosoftDocs/azure-docs @.>
Cc: Brendan Mütz @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] Inconsistent example (#72805)
Would it help to have a Prereqs section with the exact version numbers listed instead of "latest"?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/72805#issuecomment-809547079, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHOVIR6DP7G73TDICHSLFW3TGCXDHANCNFSM4Z2HELTA.