[suggest/elasticsearch] remove v1 backend (no longer used)

V1 backend has about 1/10 of the performance and tons of memory issues compared to KV.
It has not been possible to configure V1 in a while, this changes removes it completely.
Encountered a build issue with the default dist that should be fixed with dist: trusty.

Current coverage is 40.84% (diff: 50.00%)

Merging #99 into master will increase coverage by 0.88%

@@             master        #99   diff @@
==========================================
  Files           618        617     -1
  Lines         16241      15893   -348
  Methods           0          0
  Messages          0          0
  Branches       1650       1623    -27
==========================================
+ Hits           6491       6492     +1
+ Misses         9309       8959   -350
- Partials        441        442     +1

Powered by Codecov. Last update a722683...8575ef3


Global plug-in variables ("$__zbx") stop working when using more than one Function

Describe the bug
On the Functions scope, global plug-in variables ("$__zbx") stop working when using more than one Function. If you add a aggregatedBy() or other functions, Grafana will output a string of "$__zbx" instead of the value.
Expected behavior
When using setAlias or replaceAlias with "$__zbx" I want to see the value of the Global variable.
Screenshots
Only using setAlias works:

When adding another Aggregation function to the stack, it stops working:

Network data
Software versions
Used https://play.grafana-zabbix.org/ for tests.

Pinging @yesoreyeram since the pipeline failed on github for the "OSS Big Tent team project"


WinError 10054

Steps to reproduce
1.The issue happen every time i run the code
[WinError 10054] An existing connection was forcibly closed by the remote host
2. Every time i run the code the same error appear
import os
import pygame
import speech_recognition as sr

def speak(text):
    voice = "en-US-ChristopherNeural"
    command = f'edge-tts --voice "{voice}" --text "{text}" --write-media "MichealOutput.mp3"'
    os.system(command)
    pygame.init()
    pygame.mixer.init()

    try:
        pygame.mixer.music.load("MichealOutput.mp3")
        pygame.mixer.music.play()
        while pygame.mixer.music.get_busy():
            pygame.time.Clock().tick(10)

    except Exception as e:
        print(e)

    finally:
        pygame.mixer.music.stop()
        pygame.mixer.quit()

def take_command():
    r = sr.Recognizer()
    with sr.Microphone() as source:
        print("Listening...")
        r.pause_threshold = 1
        audio = r.listen(source)

    try:
        print("Recognizing...")
        query = r.recognize_google(audio, language='en-us')
        print("hi")
    except Exception as e:
        print(e)
        return ""

    return query

speak("hello, i am Micheal, your virtual assistant; How can i help you today")
query = take_command()
print(query)

here is the code
Expected behaviour
that it recognize my speech and print it
Actual behavior
nothing the code work well but after the r.recognize function the error appeared
[WinError 10054] An existing connection was forcibly closed by the remote host
PS C:\Users\hammo> & C:/Users/hammo/AppData/Local/Programs/Python/Python311/python.exe c:/Users/hammo/Desktop/Micheal/main.py
pygame 2.5.2 (SDL 2.28.3, Python 3.11.7)
Hello from the pygame community. https://www.pygame.org/contribute.html
WEBVTT

00:00:00.100 --> 00:00:03.625
hello i am Micheal your virtual assistant How can i

00:00:03.638 --> 00:00:04.463
help you today

Listening...
Recognizing...
[WinError 10054] An existing connection was forcibly closed by the remote host

PS C:\Users\hammo>

System information
My system is <windows 11>. (For example, "Ubuntu 16.04 LTS x64", "Windows 10 x64", or "macOS Sierra".)
My Python version is <3.11.7>. (You can check this by running python -V.)
My Pip version is . (You can check this by running Fatal error in launcher: Unable to create process using '"C:\Users\hammo\AppData\Local\Programs\Python\Python312\python.exe"  "C:\Users\hammo\AppData\Local\Programs\Python\Python312\Scripts\pip.exe" -V': The system cannot find the file specified..)
My SpeechRecognition library version is <3.10.1>. (You can check this by running python -c "import speech_recognition as sr;print(sr.__version__)".)
My PyAudio library version is <0.2.14> / I don't have PyAudio installed. (You can check this by running python -c "import pyaudio as p;print(p.__version__)".)
My microphones are: (You can check this by running python -c "import speech_recognition as sr;print(sr.Microphone.list_microphone_names())".)
My working microphones are:(  {} this is what he gave me )    (You can check this by running python -c "import speech_recognition as sr;print(sr.Microphone.list_working_microphones())".)
I installed PocketSphinx from . (For example, from the Debian repositories, from Homebrew, or from the source code.)

Hi Mohammed,
I faced the same problem as you, and unfortunately, the reason was trivial. You need to modify the link in library "speech_recognition\recognizers\google.py"
from "http://www.google.com/speech-api/v2/recognize" to "https://www.google.com/speech-api/v2/recognize",
meaning changing "http" to "https".
I hope I was able to help you.

@MohamedSamer1 Thanks to report this.
Please try Hexer-7's workaround and tell us whether it works or not.

@MohamedSamer1 SpeechRecognition 3.10.4 was out!
Try this by pip install --upgrade SpeechRecognition
You can write Hexer-7's workaround like
-query = r.recognize_google(audio, language='en-us')
+query = r.recognize_google(audio, language='en-us', endpoint='https://www.google.com/speech-api/v2/recognize')

If WinError 10054 is not resolved in your environment, please feel free to reopen this issue.


Customize shortcodes to more generic codes

Hi,
Just want to know if it's possible to get more basic shortcake though this package, per exemple I want to make a mention of another user could I use this package to do :
@Username #MessageID

In a simple way, is this possible to freely adapt the parser for any specific use.
If not, could you redirect me to another package that could make this.
Sincerly,

Maybe you can create @mention shortcode instead of @username. For example:
@mention('username', $messageId)

To register this shortcode you can do something like this:
Shortcode::register('mention', function($username, $messageId)
{
  // your code here
});

@Maxime-BHA Maybe you'll be interested in my shortcode library, I recently implemented "configurable syntax" feature, please read the usage docs in the README.md (Syntax part at the end of section), you can configure different parts to have for example {code}, @code$ or other variants, I'm also interested in any ideas you may have, I'd be happy to implement them.


Kotlin 2.0.20-RC2

Update 2.0.20 branch to 2.0.20-RC2.
Based on this history, 2.0.20 will be unchanged from 2.0.20-RC2. The final release should be out 21 August.

Looks like it needs a yarn lock update, and a rebase since I fixed the sample build on the target branch.


Various compile errors with example

swift-badge-master/swift-badge/SwiftBadge.swift:15:12: Initializer does not override a designated initializer from its superclass
swift-badge-master/swift-badge/SwiftBadge.swift:16:5: Must call a designated initializer of the superclass 'UILabel'
swift-badge-master/swift-badge/ViewController.swift:50:12: 'NSString' is not implicitly convertible to 'String'; did you mean to use 'as' to explicitly convert?
I' m using latest Xcode and swift.

Hi, @xgdgsc, thanks for the feedback. I have updated the repository for Xcode 7 and Swift 2.0.

swift-badge-master/swift-badge/SwiftBadge.swift:32:47: Cannot assign to 'translatesAutoresizingMaskIntoConstraints' in 'self'
the previous setTranslatesAutoresizingMaskIntoConstraints(false) works.

Oops, sorry @xgdgsc, I misunderstood you, I thought you were using swift 2.0 and Xcode 7 so I updated to it. It looks like you are using Xcode 6?

Yes, 6.

Cool, I should have asked. I have created an xcode 6 branch for your. The only difference is that setTranslatesAutoresizingMaskIntoConstraints line that you mentioned. Thanks. 🌷


When merging docs, just merge values

Per neumino's comment on my deepcopy pull request, merge should only copy the value of a document, not the full context of the document.

Sorry for the delay, I missed it.
It's merged in 2.2.3


black UI text in dark mode

In dark theme, text in some menus (like the theme switcher or the enhancement menu) uses black text instead of white, which makes it hard or even impossible to read.

@magmaus3 thanks for reporting this. i will take a look

@magmaus3 new build should be available tomorrow
let me know if it fixes your issues


[wip] add envoy gateway

Part of https://github.com/knative-extensions/net-gateway-api/issues/566

/test integration-tests-envoy-gateway_net-gateway-api_main
/test integration-tests-envoy-gateway-conformance_net-gateway-api_main

/test integration-tests-envoy-gateway_net-gateway-api_main
/test integration-tests-envoy-gateway-conformance_net-gateway-api_main

/test integration-tests-envoy-gateway_net-gateway-api_main
/test integration-tests-envoy-gateway-conformance_net-gateway-api_main

/test integration-tests-envoy-gateway_net-gateway-api_main
/test integration-tests-envoy-gateway-conformance_net-gateway-api_main

/test integration-tests-envoy-gateway_net-gateway-api_main
/test integration-tests-envoy-gateway-conformance_net-gateway-api_main

gateway isn't getting and addresss
    conditions:
    - lastTransitionTime: "2024-06-03T21:22:55Z"
      message: The Gateway has been scheduled by Envoy Gateway
      observedGeneration: 1
      reason: Accepted
      status: "True"
      type: Accepted
    - lastTransitionTime: "2024-06-03T21:22:55Z"
      message: No addresses have been assigned to the Gateway
      observedGeneration: 1
      reason: AddressNotAssigned
      status: "False"
      type: Programmed

hey @dprotaso can we kick CI once, to see if this is a flake or something that just doesnt work in this setup ? setting the Gateway.Status.Addresses from the Svc is something that is verified in the conformance tests, so not sure why its not working here

/retest
On Mon, Jun 3, 2024 at 19:12 Arko Dasgupta @.***> wrote:

hey @dprotaso https://github.com/dprotaso can we kick CI once, to see
if this is a flake or something that just doesnt work in this setup ?
setting the Gateway.Status.Addresses from the Svc is something that is
verified in the conformance tests, so not sure why its not working here
—
Reply to this email directly, view it on GitHub
https://github.com/knative-extensions/net-gateway-api/pull/738#issuecomment-2146277698,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAERAW6GUNWZMIB4S2A4F3ZFTZ7TAVCNFSM6AAAAABITNEBJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBWGI3TONRZHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

I also repro’d locally I don’t think it’s a fake - see the setup in the
third_party folder
On Mon, Jun 3, 2024 at 19:42 Dave Protasowski @.***>
wrote:

/retest
On Mon, Jun 3, 2024 at 19:12 Arko Dasgupta @.***> wrote:

hey @dprotaso https://github.com/dprotaso can we kick CI once, to see
if this is a flake or something that just doesnt work in this setup ?
setting the Gateway.Status.Addresses from the Svc is something that is
verified in the conformance tests, so not sure why its not working here
—
Reply to this email directly, view it on GitHub
<
https://github.com/knative-extensions/net-gateway-api/pull/738#issuecomment-2146277698>,

or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AAAERAW6GUNWZMIB4S2A4F3ZFTZ7TAVCNFSM6AAAAABITNEBJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBWGI3TONRZHA>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/knative-extensions/net-gateway-api/pull/738#issuecomment-2146305807,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAERATTXZ7YO3PSCZPIH6TZFT5PRAVCNFSM6AAAAABITNEBJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBWGMYDKOBQG4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

/test integration-tests-envoy-gateway_net-gateway-api_main
/test integration-tests-envoy-gateway-conformance_net-gateway-api_main

/test integration-tests-envoy-gateway_net-gateway-api_main
/test integration-tests-envoy-gateway-conformance_net-gateway-api_main

/test integration-tests-envoy-gateway_net-gateway-api_main
/test integration-tests-envoy-gateway-conformance_net-gateway-api_main
I believe the failure is GKE related - similar to: https://github.com/knative-extensions/net-gateway-api/issues/708

@arkodg all good now
/assign @izabelacg
cc @ReToCode @skonto

/lgtm


Input values are not maintained on the profile edit screen

Issue
When you rotate the screen or move to another tab on the profile edit screen, the entered values are not maintained.
If that was intentional, why not modify it to keep it?
I think it would be better for the user experience to keep it.
If this issue is accepted, I would like to make changes. 🙋♂
Video

You can do it because the assignee does not exist, but there is an issue with this. 👍
https://github.com/DroidKaigi/conference-app-2024/issues/737


How to backup saved settings?

Anyway To backup saved setting and add it in the next version, cuz i update it and it overwrite my saved settings (Ithink!).
Hope some can help me :).

After 2.0.0, every new update should "merge" the settings and keep the old ones.

All settings are stored in the variables.ini file under Documents/Rainmeter/Skins/Monstercat-Visualizer/@Resources. Keep in mind that pre 2.0.0 files will not completely work on 2.0.0 or higher. I'll recommend doing a fresh install and configuring the skin from scratch.

This does not appear to be working. I just updated to 2.0.2, and it looks like I have to re-do all of the settings. I can't imagine enough settings changed between 2.0.0 and 2.0.2 to necessitate this

Yeah, just noticed that i've had it disabled on 2.0.2 😅 On the next update it should work propertly.


XOR SWAP

Before jumping into Pr first comment for assign.
Problem statement :This is more informational than a challenge. You can actually switch 2 variables with the XOR operation ^. XOR works with two arguments. It turns both arguments in their binary representation, and for each bit, returns 1 if they are different, 0 otherwise.
The return value is the decimal representation of the new binary string. So, if you don't know how to do it, go play around with it! After some time on paper, you will understand what is going on, and how it works.
Your job is to switch 2 variables using the XOR operator, which means your return statement should be return std::make_pair(a, b), but the variables need to be switched.
Probelm Link : click here
Choose one Cateorgy -  Easy
question category : bit_operation,language_fundamentals

Before submitting a PR please Check some details.

[x] fileName format should be in camelcase
example- return Xorswap.cpp
[x]  Choose label for Problem , example- "good first issue", "easy"
[x]  In file there should be problem statement and link to problem

/* Problem-Task : This program will add two numbers
 * Problem Link : https://edabit.com/challenge/dHYXiEXydZxrwntBq
*/
int main() {
    int bla;
    return 0;
}

This repository is vaild for HacktoberFest2020
Read before making PR - How to contribute on Github
Good Luck,

@aayushi-droid  pls assign this issue to me

please assign this issue to me.
thanks!!

pls assign this issue

Assign me this issue or the other ones you like I can code them C++, JAVA, and JS.


Live Share needs an ARM compile

Describe what happened:
Live Share doesn't start when connected, via Remote-SSH, to a Linux/ARM target.
What was your system configuration?
Product and Version [VS/VSCode]: VSCode
OS Version[macOS/Windows]: host macOS (but this is irrelevant), Remote-SSH target Linux
Live Share Extension Version: 1.0.3629
Target Platform or Language [e.g. Node.js]: CUDA (but this is irrelevant)
Steps to Reproduce / Scenario:

Install and configure the Remote - SSH extension
Connect, using Remote - SSH, to a Linux/ARM machine (in my particular case, a Jetson Nano)
Click "Share" in the Live Share pane
Rather than starting the Live Share session, nothing happens. Logs are attached below.

Please attach logs to this issue:
The relevant part of the "Remote Extension Host" logs is this:
[2021-02-08 00:53:03.603] [exthost] [error] Activating extension ms-vsliveshare.vsliveshare failed due to an error:
[2021-02-08 00:53:03.603] [exthost] [error] Error: Agent terminated with exit code: 0 and signal null: /bin/sh: 1: /home/xxxxx/.vscode-server/extensions/ms-vsliveshare.vsliveshare-1.0.3629/dotnet_modules/vsls-agent: Exec format error
	at ChildProcess.<anonymous> (/home/decio/.vscode-server/extensions/ms-vsliveshare.vsliveshare-1.0.3629/out/prod/extension-prod.js:186073:32)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1021:16)
	at Socket.<anonymous> (internal/child_process.js:443:11)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:674:12)

Afterwards, I ssh'd into the target Linux/ARM machine and ran the following command:
$ file /home/xxxxx/.vscode-server/extensions/ms-vsliveshare.vsliveshare-1.0.3629/dotnet_modules/vsls-agent
/home/xxxxx/.vscode-server/extensions/ms-vsliveshare.vsliveshare-1.0.3629/dotnet_modules/vsls-agent: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=5b7bc4e1ec868672a1cf889bc66d7c604dbb1177, stripped

This proves that an x86-64 binary is being loaded into an ARM machine, so it's completely expected that Live Share wouldn't work in this scenario.

same problem here, with Jetson Xavier NX

Any updates?

For Live Share to work there needs to be a build of the vsls-agent for the ARM architecture.

I did a little more digging and it might be possible to run the program using QEMU with network options and chroot. I will look into this in the future but feel free to solve this if anyone has the time. My approach would be to create a directory with chroot and these needed libraries:
libpthread.so.0
libdl.so.
libstdc++.so.6
libm.so.6
libgcc_s.so.1
libc.so.6
ld-linux-x86-64.so.2
Then qemu-system-x86_64 would need an x86 disk image to run vsls-agent inside the chroot'd directory. All my assumptions.

I did a little more digging and it might be possible to run the program using QEMU with network options and chroot. I will look into this in the future but feel free to solve this if anyone has the time. My approach would be to create a directory with chroot and these needed libraries:
libpthread.so.0
libdl.so.
libstdc++.so.6
libm.so.6
libgcc_s.so.1
libc.so.6
ld-linux-x86-64.so.2
Then qemu-system-x86_64 would need an x86 disk image to run vsls-agent inside the chroot'd directory. All my assumptions.

That's not a solution, just a hacky workaround if you desperately need the feature. Performance would suffer, and possibly memory usage as well (and both are often quite restricted in ARM systems, or at least those I work with).
There is a correct solution, and it is Microsoft supplying an ARM-compiled version of vsls-agent.

@dgazzoni No where is it mentioned that this is the fix. This is a forum to propose solutions regardless if it is viewed as a "hacky workaround". I prefer to offer possible solutions to future readers than parrot complaints. Have a good day.

@dgazzoni No where is it mentioned that this is the fix. This is a forum to propose solutions regardless if it is viewed as a "hacky workaround". I prefer to offer possible solutions to future readers than parrot complaints. Have a good day.

Wrong, try again. This is a bug reporting tool. We report bugs, Microsoft gathers any extra information they need, and then fix it. It’s not a place to write stuff that does not further the goal of Microsoft fixing the bug that I reported, as you did.
If you want to document your hacky workaround, go write a blog or ask and answer a question on Stack Overflow.

ROTFL, sure keep on waiting and I'll keep moving forward and install when they actually do an ARM compile. Good day sir!

Any updates?

@Davsterl

@Mikejo5000

Hi,
I also thing it would be nice to have a solution for this.  I use an rpi400 for light dev work.  Same error as above.

Support for Live Share on ARM platforms is something that I would also like to see.

Hitting the exact same issue here (on a remote Fedora ARM VM, running on an ARM Mac) :
file ~/.vscode-server/extensions/ms-vsliveshare.vsliveshare-1.0.5690/dotnet_modules/vsls-agent
.vscode-server/extensions/ms-vsliveshare.vsliveshare-1.0.5690/dotnet_modules/vsls-agent: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=5b7bc4e1ec868672a1cf889bc66d7c604dbb1177, stripped

Interestingly enough, on an ARM Mac, the binary is also a x86_64, but livesharing works 🤷 :
file  ~/.vscode/extensions/ms-vsliveshare.vsliveshare-1.0.5690/dotnet_modules/vsls-agent
.vscode/extensions/ms-vsliveshare.vsliveshare-1.0.5690/dotnet_modules/vsls-agent: Mach-O 64-bit executable x86_64

We’ve made improvements in this area since this issue was filed. Specifically, we recently removed the dependency on vsls-agent. We believe this may have improved your experience and are closing this issue. If this issue still persists for you, please reopen the issue and let us know. Thank you.


Mbed OS in Ubuntu 18.04 compiling the profram is giving me the following errors

[mbed] Working path "/home/koushik/lifecycletest_v2" (program)
WARNING: MBED_ARM_PATH set as environment variable but doesn't exist
WARNING: MBED_GCC_ARM_PATH set as environment variable but doesn't exist
usage: make.py [-h] [-m MCU] [-t TOOLCHAIN] [--color] [--cflags CFLAGS]
[--asmflags ASMFLAGS] [--ldflags LDFLAGS] [-c]
[--profile PROFILE] [--app-config APP_CONFIG] [-p PROGRAM]
[-n PROGRAM] [-j JOBS] [-v] [--silent] [-D MACROS]
[-S [{matrix,toolchains,targets}]] [-f GENERAL_FILTER_REGEX]
[--stats-depth STATS_DEPTH] [--automated] [--host HOST_TEST]
[--extra EXTRA] [--peripherals PERIPHERALS]
[--dep DEPENDENCIES] [--source SOURCE_DIR]
[--duration DURATION] [--build BUILD_DIR] [-N ARTIFACT_NAME]
[--ignore IGNORE] [-d DISK] [-s SERIAL] [-b BAUD] [-L] [--rpc]
[--usb] [--dsp] [--testlib] [--build-data BUILD_DATA]
[-l LINKER_SCRIPT]
make.py: error: Could not find executable for GCC_ARM.
Currently set search path: No path set
[mbed] ERROR: "/usr/bin/python3" returned error.
Code: 2
Path: "/home/koushik/lifecycletest_v2"
Command: "/usr/bin/python3 -u /home/koushik/lifecycletest_v2/mbed-os/tools/make.py -t GCC_ARM -m LPC1768 --source . --build ./BUILD/LPC1768/GCC_ARM"

Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers.
Internal Jira reference: https://jira.arm.com/browse/IOTBTOOL-743

Have you set the GCC_ARM_PATH using mbed config -G GCC_ARM_PATH path/to/gcc-arm-none-eabi-9-2019-q4-major/bin (replacing path/to with the path to where the gcc compiler folder is located)?


Add a new reserved parameter to allow minConfirmations to be specified

Currently, an Airnode can be specified to use a global minConfirmations value for each chain. Accordingly, the AQN Airnode has been configured to use reasonable values  for the expected use-case.
Both with QRNG and other potential Airnode services, users will want to customize this value. With normal oracle nodes/protocols (that fulfill all requests with the same wallet) this is not possible, but with Airnode it is. We can have a _minConfirmations reserved parameter that expects a number, and applies that only to the specific sponsor wallet. There are some caveats with this:

Consider the example where the Airnode receives a request with a _minConfirmations of 10, and a second request with a _minConfirmations of 0 9 blocks later. This will cause a race condition and potentially cause different fulfillments to be submitted with the same nonce. To avoid this, we always need to respond to requests in the same nonce order as we receive them. In other words, Airnode should find the maximum _minConfirmations value in the entire queue and use that for the sponsor wallet.
_minConfirmations shouldn't be larger than blockHistoryLimit.
As all reserved parameters, the node should ignore _minConfirmations if it isn't defined in the specific endpoint (to prevent potential abuse).

Another task need to have been created when Dave relayed on #technical-questions that a user wants a similar reserved parameter for gas price

I can take this task. @bbenligiray would you like me to also add a gas price reserved parameter while at it per your above comment? If so I'll create that task and assign myself.

@dcroote Sure, I assume you already saw https://github.com/api3dao/airnode/issues/1492


an Idea from a person who doesn't know how to code but still:

So this idea assumes that userscripts can modify websites
potentially find a way to rather than run the ad really fast, remove the ad system all together, and then remove the detector, anyways ty for reading

That's not gonna work, because if we kill the anti-adblock script, the site is next to 100% gonna crash or fail to load anything

https://github.com/TheRealJoelmatic/RemoveAdblockThing/issues/439


[Bug] The app crashes because it doesn't load the images properly

What is the bug?
Well , after the  splash screen , it crashes
How to reproduce the bug?
i think it happens because it doesn't load the images properly
Screenshots

Operating System
Windows 10
What is the version of the operating system?
win 20h2
What is the version of the software?
latest

Thanks for reporting this issue. Will release a fix a soon as possible.

The issue should now be fixed.


Web - New Room - Can't use a capital letter for the name of the New Room

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go to URL https://staging.new.expensify.com/
and login with applause expensifail account
Click on FAB button/New Room
Try to use capital letter for the name of the New Room

Expected Result:
No capital letter is available for the name of the New Room
Actual Result:
Does not allow entering a capital letter for the name of the New Room
Workaround:
Unknown
Platform:

Where is this issue occurring?

Web
iOS
Android
Desktop App
Mobile Web

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/93399543/192105992-3bc557b1-4794-41a2-bd14-4c4cca452403.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause -Internal Team
Slack conversation:
View all open jobs on GitHub

Proposal

In the current code when we create a new Room with a new room we are converting name to lowercase
In order to allow capital letters we need to remove .toLowerCase()
Don't know if this is an actual bug as in the code it's mentioned room name must be lowercase

Need to remove .toLowerCase();
https://github.com/Expensify/App/blob/b75faf0f6f5dcf8eab5e3734345f56256c7f3815/src/components/RoomNameInput.js#L59-L67
Note: I'm adding a proposal before the external label just due to the current scenario whereby most issues are getting a proposal before the external so currently CONTRIBUTING.md is allowing to do so

Don't know if this is an actual bug as in the code it's mentioned room name must be lowercase

Yes, It's not an issue. We can close this.
cc: @cristipaval


SW-5118 Add cohorts and participants to search API

Add two search tables for cohorts and participants, both only accessible to users
with appropriate global roles. They are reachable via the participant sublist
on the projects search table.
Example search request to return a hierarchical list of all cohorts and their
projects:
{
  "prefix": "projects.participant.cohort",
  "fields": [
    "id",
    "name",
    "phase",
    "participants.id",
    "participants.name",
    "participants.projects.id",
    "participants.projects.name"
  ]
}

#1809  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @sgrimm and the rest of your teammates on  Graphite

Can this be used to search projects as well (Under Overview/Projects tab)? The only additional column there is a Restorable Land property.

@karthikbtf Commit ea7cdbc added a table for project accelerator details and you can include the fields from there with search requests. For that page, you'd probably want to flatten all the fields except land use model types (which can have multiple values) so the request would look like
{
  "prefix": "projects",
  "fields": [
    "id",
    "name",
    "participant_name",
    "participant_cohort_name",
    "participant_cohort_phase",
    "country_name",
    "country_region",
    "acceleratorDetails_confirmedReforestableLand",
    "landUseModelTypes.landUseModelType"
  ]
}

Can this be used to search projects as well (Under Overview/Projects tab)? The only additional column there is a Restorable Land property.

@karthikbtf Commit ea7cdbc added a table for project accelerator details and you can include the fields from there with search requests. For that page, you'd probably want to flatten all the fields except land use model types (which can have multiple values) so the request would look like
{
  "prefix": "projects",
  "fields": [
    "id",
    "name",
    "participant_name",
    "participant_cohort_name",
    "participant_cohort_phase",
    "country_name",
    "country_region",
    "acceleratorDetails_confirmedReforestableLand",
    "landUseModelTypes.landUseModelType"
  ]
}

Nice, thanks!

Can this be used to search projects as well (Under Overview/Projects tab)? The only additional column there is a Restorable Land property.

@karthikbtf Commit ea7cdbc added a table for project accelerator details and you can include the fields from there with search requests. For that page, you'd probably want to flatten all the fields except land use model types (which can have multiple values) so the request would look like
{
  "prefix": "projects",
  "fields": [
    "id",
    "name",
    "participant_name",
    "participant_cohort_name",
    "participant_cohort_phase",
    "country_name",
    "country_region",
    "acceleratorDetails_confirmedReforestableLand",
    "landUseModelTypes.landUseModelType"
  ]
}

I have the client filtering on presence of a participant_cohort_id (since we only want to show participant projects). If there's another way to do this filtering at search time I can try that, like an exists check. If the client side filtering is OK I will keep that.

Can this be used to search projects as well (Under Overview/Projects tab)? The only additional column there is a Restorable Land property.

@karthikbtf Commit ea7cdbc added a table for project accelerator details and you can include the fields from there with search requests. For that page, you'd probably want to flatten all the fields except land use model types (which can have multiple values) so the request would look like
{
  "prefix": "projects",
  "fields": [
    "id",
    "name",
    "participant_name",
    "participant_cohort_name",
    "participant_cohort_phase",
    "country_name",
    "country_region",
    "acceleratorDetails_confirmedReforestableLand",
    "landUseModelTypes.landUseModelType"
  ]
}

I have the client filtering on presence of a participant_cohort_id (since we only want to show participant projects). If there's another way to do this filtering at search time I can try that, like an exists check. If the client side filtering is OK I will keep that.

Ok looks like the client side filtering won't work for csv downloads.

You should be able to use a search criterion like
{
  "operation": "not",
  "child": {
    "operation": "field",
    "field": "participant_cohort_id",
    "values": [null]
  }
}

to only return projects that are in participants that are in cohorts.

You should be able to use a search criterion like
{
  "operation": "not",
  "child": {
    "operation": "field",
    "field": "participant_cohort_id",
    "values": [null]
  }
}

to only return projects that are in participants that are in cohorts.

Thanks, this works, forgot about null values.


Deploy Your Business Application to Cloud Foundry

Tutorial URL: https://developers.sap.com/tutorials/appstudio-cap-deploy-app.html
Please specify the step you are referring to 2.3
Hey I don't get any options to connect to any books database. If i choose one of the two I have nothing more happens :/
Apart from that: great stuff

Hi,
The books database is just a HaaS db that we created with that name. In this step you should select any Hana db instance ( Haas or other) you want to bind to, and to use in your application. Then the binding process should start. Can you state if after choosing the instance you were able to bound to it or not?
Thanks,
Liat

Thank you for your feedback. We haven't heard from you in a while, so we are closing the issue.
If you still have questions, feel free to reopen the issue.


[REQUEST] validation of input beside choice and y/n

Currently there is a kind of input validation when you use Confirm or choices, this could be extended to a manually validation procedure for example a regex match. I propose something like:
Prompt.ask('please enter your birthdate', validate=r'\d\d.\d\d.\d\d\d\d')
and it will loop as long as the input isn't matched, like with Confirm() or choices=
(yes I know, the example regex pattern does not really validate dates ;) just an example)

That might be convenient, but you don't get the opportunity to return a friendly error message. I'll consider it.
In the meantime, you can extend prompt and override the process_response method. Raise InvalidResponse if the regex doesn't validate/


Feat/model component meshes inspection

:tada: This PR is included in version 2.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Settingup controller

Created the controller files
created the ability.rb to establish authorization

Hi @Jeddaa
Your project is complete! There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉 🎉 🎉
Highlights
✔ No linter errors
✔ Github flow was correctly used
✔ Readme looks professional
✔ Good PR and Description
Optional suggestions


Form management createForm with options items "required" error

Resolved client-side while creating/editing form.


Is there any way to Change currentIndex of playlist

I am using Oplayer and using playlist in it.
When i change channel and if the channel does not play then currentIndex Disappers. I want to chnage currentIndex manually is there any way to do this.
If channel play.

If channel does not play.

Sorry if channel plays currentIndex appers

player.context.playlist.changeSourceList(number)

Thanks it is working Fine

I have one more question
newplayer.on("loadedmetadata", () => {
setSelectedChannelNumberWhichWillChange((last) => {
return DynamicChannel + 1;
});
          // localStorage.setItem(
          //   "EpisodeNumberThatWillChange",
          //   JSON.stringify(DynamicChannel + 1)
          // );
        });

        This function is used to know it the data is load
        Is there any function which is opposite to it which is triggred when data failed to load?

on 'error'


Metamask UI improvements

DONE
Enhanced UI flow for signing in with metamask
Refactored nested promises
TODO
Get updated core and backend changes to test the full flow
Hook in Merlin

Nice


Delete Technical Charter Template for ASWF projects.docx

We have this already in markdown, and Word format is trivial to derive from markdown ( pandoc! )
Signed-off-by: John Mertic<EMAIL_ADDRESS>

Agreed, although I don't think we've ever stated this explicitly, Markdown does seem to be the preferred format for ASWF documents, and is certainly more git friendly than docx.

LGTM.  Thanks.


xSQLServerSetup: Impossible to update paths and service account of an existing instance?

Details of the scenario you try and problem that is occurring:
I have an existing SQL Server 2016 instance and I'm trying to update following settings:

Path for SQL database files
Path for SQL log files
Service account for the SQL service

The DSC configuration that is using the resource (as detailed as possible):
The only resource that seems capable of doing that is xSQLServerSetup, but it seems only designed to add new instances, not update existing ones.
Is there a way to achieve what I need?
I tried this but it fails because it doesn't find setup.exe:
xSQLServerSetup ConfigureSQLServer
{
	SetupCredential = $AdminCreds
	InstanceName = "MSSQLSERVER"
	SQLUserDBDir = "F:\DATA"
	SQLUserDBLogDir = "G:\LOG"
	SQLCollation = "Latin1_General_CI_AS_KS_WS"
}

Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
na
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
xSQLServer <IP_ADDRESS>

@Yvand thanks for submitting you issue!
Unfortunately today xSQLServerSetup is currently limited to install SQL Server, and does not handle any drift in desired state. There is a issue for that, see issue #37.
I keep this issue open since this particular properties could be resolved in either by xSQLServerSetup or in a new separate resource. The discussion around this issue will pan out which way to go.

I believe part of this is being addressed in issue #656.

Part of this was covered in issue #706. @Yvand managing service accounts was added through pull request #795. Not sure when it will be formally released, but you grab a copy of dev if you want to jump on this now.

Thank you!
I'll wait for this PR to be published in an official release and I'll test it.

There is a community call on the 27:th (see agenda). Release is normally schedule within two weeks from that (but can differ). Usually the release date is announced during the community call.
Closing this as this (the missing functionality) is being tracked in other issues.


How long does it take to train?

The database is increasing in size, but it's been nearly 48 hours.
what is the expected output?

Did you change the minimum size? Else it should have really been posting by now if you've let it run for 48 hours.

No, the only thing I changed was the SUBREDDIT_LIST, I added 6 defined subreddits.. whould that be why?

That could also be it. It has a threshold of the minimum amount of karma it needs to be able to learn from a comment. If it has less karma than that it will not learn from that comment. If there are only comments with low karma there or very little comments the learning will be way slower. Which subreddits did you add?

Anime, anime_memes, gaming, gamingmemes, Game_dev, programming

Okay, those are decent sized subreddits. I think it might be best if you remove that for now, set the probabilities for posting or commenting to 0, wait for it to finish training and then just put them back.

I wish we had some more logging around this. There may be a bug somewhere when the subreddit list is used, because it seems like it take a lot longer to learn. But the bot should be outputting the database size on each cycle. Do you see that increasing? It may just be very slowly. If it's not increasing at all then there's an issue.

Would the databases be reset after removing and later adding the subreddits?

Are you using heroku?

The heroku database will reset. if you're running it locally you're fine

using heroku, thinking would local be better? can I run it on a raspberry pi?

Yes, you can, just follow the setup.

got it running on linux. let's see how it progresses :) thank you!


config.duration null error

Hi. I'm baffled by this error. I've installed homebridge and it was working prior to the installation of my first plugin. That is, it was offering me a pin number and asking to be connected to a home kit app. Once I installed the lifx plugin and ran homebridge again, I got the following error.
[3/13/2016, 1:33:26 PM] Loaded plugin: homebridge-lifx-lan
[3/13/2016, 1:33:26 PM] Registering platform 'homebridge-lifx-lan.LifxLan'
[3/13/2016, 1:33:26 PM] ---
Load homebridge-lifx-lan.LifxLan
/usr/local/lib/node_modules/homebridge-lifx-lan/index.js:64
    fadeDuration = config.duration || 1000;
                         ^

TypeError: Cannot read property 'duration' of null
    at new LifxLanPlatform (/usr/local/lib/node_modules/homebridge-lifx-lan/index.js:64:26)
    at Server._loadDynamicPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:294:30)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:73:8)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)

The contents of my config.json file are below. The file is inside the homebridge dir, it was created in bash as a duplicate of config-sample.json, and I haven't opened it in anything other than Atom. I added the "duration" variable to "platforms" to see if it would make any difference, but the error is the same regardless.
{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154"
    },

    "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",

    "accessories": [
        {
            "accessory": "LIFX Bulb",
            "name": "Light Bulb"
        }
    ],

    "platforms": [
        {
            "platform" : "LifxLan",
            "name" : "LiFx",
            "duration" : "1000"
        }
    ]
}

Any help much appreciated!

@beev sorry, I get a load of work related github notifications, so sometimes I miss ones from my personal projects.
I've just commit a fix which should resolve the issue.
Also, your duration parameter should be an integer rather than a string
{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154"
    },

    "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",

    "accessories": [
        {
            "accessory": "LIFX Bulb",
            "name": "Light Bulb"
        }
    ],

    "platforms": [
        {
            "platform" : "LifxLan",
            "name" : "LiFx",
            "duration" : 1000
        }
    ]
}


Task has no ports listed but app has two ports configured

We have a task for which marathon shows no random ports even though two service ports are configured for the application.
This issue is related to:
https://github.com/mesosphere/servicerouter/issues/1
The WebUI shows:

And the /v2/apps definition outputs:
{
  "app": {
    "lastTaskFailure": {
      "version": "2014-12-19T01:39:49.443Z",
      "timestamp": "2015-01-06T12:23:24.801Z",
      "taskId": "mm_service_kairosdb-finagle-server.0bfc7995-8a11-11e4-9a92-fe540093056c",
      "state": "TASK_LOST",
      "message": "Reconciliation: Task is unknown",
      "host": "srv3.hw.ca1.mesosphere.com",
      "appId": "/mm/service/kairosdb-finagle-server"
    },
    "tasks": [
      {
        "appId": "/mm/service/kairosdb-finagle-server",
        "version": "1970-01-01T00:00:00.000Z",
        "stagedAt": "2015-01-06T12:23:24.931Z",
        "startedAt": "2015-01-06T17:03:24.934Z",
        "ports": [],
        "host": null,
        "id": "mm_service_kairosdb-finagle-server.5bd9fcc2-9537-11e4-9d9e-56847afe9799"
      },
      {
        "healthCheckResults": [
          {
            "consecutiveFailures": 0,
            "lastSuccess": "2015-01-06T17:06:21.529Z",
            "firstSuccess": "2015-01-06T13:28:42.883Z",
            "taskId": "mm_service_kairosdb-finagle-server.e746c7a6-95a7-11e4-a294-fe5400185893"
          }
        ],
        "appId": "/mm/service/kairosdb-finagle-server",
        "version": "2015-01-06T02:40:56.692Z",
        "stagedAt": "2015-01-06T13:28:30.022Z",
        "startedAt": "2015-01-06T17:03:24.913Z",
        "ports": [
          31525,
          31526
        ],
        "host": "srv2.hw.ca1.mesosphere.com",
        "id": "mm_service_kairosdb-finagle-server.e746c7a6-95a7-11e4-a294-fe5400185893"
      },
      {
        "healthCheckResults": [
          {
            "consecutiveFailures": 0,
            "lastSuccess": "2015-01-06T17:06:21.528Z",
            "firstSuccess": "2015-01-06T13:24:12.702Z",
            "taskId": "mm_service_kairosdb-finagle-server.3e50fee3-95a7-11e4-a294-fe5400185893"
          }
        ],
        "appId": "/mm/service/kairosdb-finagle-server",
        "version": "2015-01-06T02:40:56.692Z",
        "stagedAt": "2015-01-06T13:23:46.554Z",
        "startedAt": "2015-01-06T17:03:24.849Z",
        "ports": [
          31508,
          31509
        ],
        "host": "srv2.hw.ca1.mesosphere.com",
        "id": "mm_service_kairosdb-finagle-server.3e50fee3-95a7-11e4-a294-fe5400185893"
      }
    ],
    "deployments": [],
    "tasksRunning": 3,
    "tasksStaged": 0,
    "version": "2015-01-06T02:40:56.692Z",
    "upgradeStrategy": {
      "minimumHealthCapacity": 1
    },
    "dependencies": [],
    "healthChecks": [
      {
        "maxConsecutiveFailures": 3,
        "timeoutSeconds": 5,
        "intervalSeconds": 30,
        "gracePeriodSeconds": 120,
        "portIndex": 1,
        "protocol": "HTTP",
        "path": "/admin/ping"
      }
    ],
    "container": {
      "docker": {
        "parameters": {},
        "privileged": false,
        "image": "mesosphere/kairosdb-finagle-server:0.9.6-SNAPSHOT-13-master.c794d6963"
      },
      "volumes": [],
      "type": "DOCKER"
    },
    "backoffFactor": 1.15,
    "mem": 5120,
    "cpus": 4,
    "instances": 3,
    "env": {
      "REPFACTOR": "1",
      "CASS_HOSTS": "int.srv2.hw.ca1.mesosphere.com:9160,int.srv3.hw.ca1.mesosphere.com:9160,int.srv4.hw.ca1.mesosphere.com:9160",
      "CORE_COUNT": "4",
      "DOG_STATSD_ENABLED": "true",
      "JAVA_OPTS": "-Xms4g -Xmx4g -XX:PermSize=128m -XX:MaxPermSize=128m -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=75 -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35"
    },
    "user": null,
    "args": null,
    "cmd": "export PORT_HTTP=$PORT0 && export PORT_HTTP_ADMIN=$PORT1 && /usr/bin/kairos",
    "id": "/mm/service/kairosdb-finagle-server",
    "disk": 0,
    "executor": "",
    "constraints": [
      [
        "hostname",
        "GROUP_BY"
      ]
    ],
    "uris": [],
    "storeUrls": [],
    "ports": [
      9180,
      9190
    ],
    "requirePorts": false,
    "backoffSeconds": 1
  }
}

That should indeed be a bug. Does that happen sporadically or deterministically? I didn't really encounter this behaviour yet, so I wonder if it is worth trying to reproduce it.

@kolloch this was resolved in 0.8.0


Ammend PAT setup section in Go language guide

Proposed changes
The Set up the CI workflow section start with In the previous section, we created a PAT and added it to GitHub to ensure we can access Docker Hub from any GitHub Actions workflow. But before setting out to build the images for releasing our software, let’s build a CI pipeline to run the tests first. but the section(Enable access to Docker Hub) that setups the PAT is after it not before.
This PR reorders the Enable access to Docker Hub section to be before Set up the CI workflow section.
Unreleased project version (optional)
Related issues (optional)
Fixes #14182

@usha-mandya PTAL


require googleauth 0.11

this is the lowest version allowed for our faraday update:
    manageiq-providers-google was resolved to 0.1.0, which depends on
      fog-google (~> 1.10) was resolved to 1.11.0, which depends on
        google-api-client (>= 0.32, < 0.34) was resolved to 0.32.1, which depends on
          googleauth (>= 0.5, < 0.10.0) was resolved to 0.5.1, which depends on
            memoist (~> 0.12)

 googleauth (>= 0.5, < 0.10.0) was resolved to 0.5.1 isn't going to let us upgrade
https://rubygems.org/gems/googleauth/versions/0.11.0 is the first one with faraday >= 0.17.3, < 2.0
from issue 3089 on bundler, "It is literally impossible to guarantee that you will always get the newest possible version without exhaustively checking every possible combination of versions, which could potentially take as long as infinity time. We avoid that, but a side effect is sometimes picking versions that are lower than versions that would be acceptable."
"If you actually care about the versions that you get, you must specify them in the Gemfile."
I think we have to do this to resolve the dependency issue on https://travis-ci.com/github/ManageIQ/manageiq-cross_repo-tests/jobs/399037418#L456
also requires memoist update:
Resolving dependencies.....
Bundler could not find compatible versions for gem "memoist":
  In Gemfile:
    memoist (~> 0.15.0)

    googleauth (~> 0.11.0) was resolved to 0.11.0, which depends on
      memoist (~> 0.16)

@agrare @Fryguy please review, this and https://github.com/ManageIQ/manageiq-api-client/pull/90 should be all that's in our way for this upgrade

Is core dependent on googleauth or is that gem specific to the google provider?  If the latter, then I think this should go into the google provider itself.
I'm fine with the memoist bump here, though.

Cross repo tests are green https://github.com/ManageIQ/manageiq-cross_repo-tests/pull/104
:+1: LGTM


buffer_overflow_exception when configuring a repository in opensearch cluster with splitted roles

Hey folks,
I'm facing an issue when I try to create a repository in an OpenSearch cluster with separate manager nodes without the data role assigned to the managers, I get the following error:
{
  "error" : {
    "root_cause" : [
      {
        "type" : "buffer_overflow_exception",
        "reason" : "buffer_overflow_exception: null"
      }
    ],
    "type" : "repository_verification_exception",
    "reason" : "[test] path [encryptedrepo-test] is not accessible on cluster-manager node",
    "caused_by" : {
      "type" : "repository_exception",
      "reason" : "[test] cannot create blob store",
      "caused_by" : {
        "type" : "execution_exception",
        "reason" : "execution_exception: java.nio.BufferOverflowException",
        "caused_by" : {
          "type" : "buffer_overflow_exception",
          "reason" : "buffer_overflow_exception: null"
        }
      }
    }
  },
  "status" : 500

I tried it with a cluster in a docker compose stack and it works, when all nodes in the stack have the data role assigned. Do you have any advice?
Thanks in advance,
Max

Hi,
I have the same issue, when i try to create repository, i have this BufferOverflowException error coming.
We also have splitted roles for our servers.
However, i try to reproduce it on docker and it works, even with splitted roles.
@maxpschonder: Could you share your docker compose file if you were able to reproduce?

Hmm was it due  to the sec plugin enabled?


⚠ Bofrost.hr has degraded performance

In 1ff3277, Bofrost.hr (https://www.bofrost.hr) experienced degraded performance:

HTTP code: 200
Response time: 1489 ms

Resolved: Bofrost.hr performance has improved in 94722ec.


Enable processing from the registered schema in ui package's Designer's Custom prop editor (for internal use only)

ref: https://github.com/pdfme/pdfme/issues/246

@peteward @steffancarrington
I apologize for the too big changes, but could you please check my changes?"

wow, you have been busy! excellent work


ENH do not use .profile and add some dev documentation

This might help @btel.

I am going to close this PR as we should be using .profile over .bashrc. It'd be nice to not remove the .bashrc and only add the .profile in order to keep system scripts intact. We can do this in a separate PR.


[Discord] Implement command $harvesters

Print general information about all harvesters including statistics about their plots.

This is a subset of the farmers command right ?
This should be fairly easy to implement.


Replace requests with aiohttp

I noticed that you're using requests library. I recommend you to use aiohttp instead because using a sync library in async flow can cause blocking.
And if comfortable, then I would like to get assigned this issue :>

Thank you for making me aware of this! I've assigned you this issue.

Will it be okay if I make the PR related to this issue after 1st October as hacktoberfest will start as well? If ya got issue I don't mind doing it right away :")

Sure! I understand. If it’s blocking though I will follow up and reassign
the priority.1
On Wed, Sep 21, 2022 at 3:57 AM Eito @.***> wrote:

Will it be okay if I make the PR related to this issue after 1st October
as hacktoberfest will start as well? If ya got issue I don't mind doing it
right away :")
—
Reply to this email directly, view it on GitHub
https://github.com/ArjunSharda/Countey/issues/2#issuecomment-1253407959,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASQ3JQTZEQJLR42VUSEF7FTV7LEXZANCNFSM6AAAAAAQRHB2N4
.
You are receiving this because you commented.Message ID:
@.***>


[BUG] RecursionError on reestablishing connection after disconnect

Describe the bug
when the bot tries to reconnect after a disconnection, the gateway script recurses until the recursion depth is exceeded, triggering a RecursionError. I think this is probably related to the recently merged #451
Reproducing steps
I left my bot running alone for a couple of hours
(on latest unstable branch)
What's normally expected
Ideally the client would successfully reconnect, but tbh what I was expecting the application to stop and give the error
The client was unable to send a heartbeat, closing the connection.
What actually happened
The scrollback buffer in my terminal was not big enough to capture the entire trackback, but here's what I was able to get
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 161, in __restart
    await self._establish_connection()
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 192, in _establish_connection
    await self._handle_connection(stream, shard, presence)
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 239, in _handle_connection
    await self.__restart()
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 161, in __restart
    await self._establish_connection()
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 192, in _establish_connection
    await self._handle_connection(stream, shard, presence)
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 239, in _handle_connection
    await self.__restart()
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 161, in __restart
    await self._establish_connection()

               [  >1700 more lines of these same 3 functions  ]

  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 239, in _handle_connection
    await self.__restart()
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 161, in __restart
    await self._establish_connection()
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 179, in _establish_connection
    async with self._http._req._session.ws_connect(url, **self._options) as self._client:
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1138, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 776, in _ws_connect
    resp = await self.request(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 535, in _request
    conn = await self._connector.connect(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 542, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 907, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1175, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 986, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)  # type: ignore[return-value]  # noqa
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1080, in create_connection
    transport, protocol = await self._create_connection_transport(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1102, in _create_connection_transport
    transport = self._make_ssl_transport(
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 78, in _make_ssl_transport
    _SelectorSocketTransport(self, rawsock, ssl_protocol,
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 774, in __init__
    base_events._set_nodelay(self._sock)
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 196, in _set_nodelay
    if (sock.family in {socket.AF_INET, socket.AF_INET6} and
  File "/usr/local/lib/python3.10/socket.py", line 518, in family
    return _intenum_converter(super().family, AddressFamily)
  File "/usr/local/lib/python3.10/socket.py", line 105, in _intenum_converter
    return enum_klass(value)
  File "/usr/local/lib/python3.10/enum.py", line 385, in __call__
    return cls.__new__(cls, value)
RecursionError: maximum recursion depth exceeded while calling a Python object

Versions

[ ] I am using discord.py versions 1.7 and below with my code.

[ ] I am using 2.0 or higher, or a modified fork.

[ ] I am using dis-snek with my code.
[x] I am not using any of the listed above and am using the library code alone.

This should be fixed now

It looks like I'm still getting this error even after upgrading. I'm using latest on the unstable branch (862280c)
here's the traceback:
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 173, in __restart
    await self._establish_connection()
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 204, in _establish_connection
    await self._handle_connection(stream, shard, presence)
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 253, in _handle_connection
    await self.__restart()
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 173, in __restart
    await self._establish_connection()
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 204, in _establish_connection
    await self._handle_connection(stream, shard, presence)
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 253, in _handle_connection
    await self.__restart()
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 173, in __restart
    await self._establish_connection()
  File "/usr/local/lib/python3.10/site-packages/interactions/api/gateway.py", line 191, in _establish_connection
    async with self._http._req._session.ws_connect(url, **self._options) as self._client:
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1138, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 776, in _ws_connect
    resp = await self.request(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 535, in _request
    conn = await self._connector.connect(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 542, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 907, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1175, in _create_direct_connection
    transp, proto = await self._wrap_create_connection(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 986, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs)  # type: ignore[return-value]  # noqa
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1080, in create_connection
    transport, protocol = await self._create_connection_transport(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1102, in _create_connection_transport
    transport = self._make_ssl_transport(
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 78, in _make_ssl_transport
    _SelectorSocketTransport(self, rawsock, ssl_protocol,
  File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 774, in __init__
    base_events._set_nodelay(self._sock)
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 196, in _set_nodelay
    if (sock.family in {socket.AF_INET, socket.AF_INET6} and
  File "/usr/local/lib/python3.10/socket.py", line 518, in family
    return _intenum_converter(super().family, AddressFamily)
  File "/usr/local/lib/python3.10/socket.py", line 105, in _intenum_converter
    return enum_klass(value)
  File "/usr/local/lib/python3.10/enum.py", line 385, in __call__
    return cls.__new__(cls, value)
RecursionError: maximum recursion depth exceeded while calling a Python object

Should I submit a new issue?

Ye


Release 2021-01-03 Typos

Print Page 589, PDF Page 619: "A natural approach to transfer learning meta-learning"
Print Page 590, PDF Page 620: "N-way K-shot classiﬁcation , in which the system is expected to learn to classify KN classes using just NK training examples of each class.".
Based on the figure 19.7 and the next example I think it should be rewritten as suggested.

PDF Page 3 – “In image classification, the input space X is the set of images, which is a very high dimensional space: for a color image of size D1 × D2 pixels, we have X = R D, where D = 3 × D1 × D2. [Comment: It is not clear where “3” comes from. From the preceding text, on page 3, one might interpret 3 to represent “setosa, versicolor and virginica” rather than Red, Blue, Green.]
PDF Page 3 – “When the inputs are structured objects (e.g., sequences of words, or variable-shaped graphs), rather than fixed-length vectors, the data is usually stored in some other format rather than in a design matrix” [Comment: Should the word “structured” be “unstructured”? Perhaps what is needed is a definition of un/structured objects vs. un/structured data.]
PDF Page 4 – Figure 1.4 Caption – “This can be normalized to get a distribution over class labels for each node” [Comment: It is not clear to what “This” refers.]
PDF Page 5 – “This is a very simple example of a classifier, in which we have partitioned the input space into two regions, defined by the 1d decision boundary…”  [Comment: Should the text say “one dimensional (1d)” to clarify the meaning of “1d”?. This will also give an implied meaning to “2d” which appears later in the text.]
PDF Page 6 – [Comment: The placement of Table 1.2, such that it immediately follows Equation 1.2 is confusing. I think Table 1.2 would be better placed following the text that read “In this case, we might use the asymmetric loss function … shown in Table 1.2.” (prior to Equation 1.4).]
PDF Page 6 – “One way to define the problem of model fitting or training is to find a setting of the paramters that minimizes the empirical risk on the training set:” [Comment: “paramters” should be “parameters”.]
PDF Page 7 – “For example, in Fig. 1.4b„ we see…” [Comment: There are two commas following “1.4b”]
PDF Page 7 – “We can capture our uncertainty using a conditional probability distribution” [Comment: Should there be some punctuation (eg, “:”) at the end of this statement before introducing Equation 1.7? This occurs multiple times in the chapter, so it may be there is correct and/or intentional.]

PDF Page 3 – “In image classification, the input space X is the set of images, which is a very high dimensional space: for a color image of size D1 × D2 pixels, we have X = R D, where D = 3 × D1 × D2. [Comment: It is not clear where “3” comes from. From the preceding text, on page 3, one might interpret 3 to represent “setosa, versicolor and virginica” rather than Red, Blue, Green.]
PDF Page 3 – “When the inputs are structured objects (e.g., sequences of words, or variable-shaped graphs), rather than fixed-length vectors, the data is usually stored in some other format rather than in a design matrix” [Comment: Should the word “structured” be “unstructured”? Perhaps what is needed is a definition of un/structured objects vs. un/structured data.]
PDF Page 4 – Figure 1.4 Caption – “This can be normalized to get a distribution over class labels for each node” [Comment: It is not clear to what “This” refers.]
PDF Page 5 – “This is a very simple example of a classifier, in which we have partitioned the input space into two regions, defined by the 1d decision boundary…”  [Comment: Should the text say “one dimensional (1d)” to clarify the meaning of “1d”?. This will also give an implied meaning to “2d” which appears later in the text.]
PDF Page 6 – [Comment: The placement of Table 1.2, such that it immediately follows Equation 1.2 is confusing. I think Table 1.2 would be better placed following the text that read “In this case, we might use the asymmetric loss function … shown in Table 1.2.” (prior to Equation 1.4).]
PDF Page 6 – “One way to define the problem of model fitting or training is to find a setting of the paramters that minimizes the empirical risk on the training set:” [Comment: “paramters” should be “parameters”.]
PDF Page 7 – “For example, in Fig. 1.4b„ we see…” [Comment: There are two commas following “1.4b”]
PDF Page 7 – “We can capture our uncertainty using a conditional probability distribution” [Comment: Should there be some punctuation (eg, “:”) at the end of this statement before introducing Equation 1.7? This occurs multiple times in the chapter, so it may be there is correct and/or intentional.]

Chapter 2, page 22, the paragraph before Eq. (2.3), we we expect to see if H = h; (duplicate we)
Chapter 2, page 29, paragraph 2, “numbers ending in 9”,. (remove ,)
Chapter 2, Fig. 2.4, the description should be: posterior, likelihood, prior (top-down direction). Also, the x-axis is reversed (from left to right is 0 to 35 instead of 35 to 0)
Chapter 2, page 32, paragraph 1, line 3, duplicate we
Chapter 2, page 34, the last sentence: generalizatino -> generalization
Chapter 2, page 35, the first sentence: horizonta -> horizontal

Chapter 2, page 22, the paragraph before Eq. (2.3), we we expect to see if H = h; (duplicate we)
Chapter 2, page 29, paragraph 2, “numbers ending in 9”,. (remove ,)
Chapter 2, Fig. 2.4, the description should be: posterior, likelihood, prior (top-down direction). Also, the x-axis is reversed (from left to right is 0 to 35 instead of 35 to 0)
Chapter 2, page 32, paragraph 1, line 3, duplicate we
Chapter 2, page 34, the last sentence: generalizatino -> generalization
Chapter 2, page 35, the first sentence: horizonta -> horizontal

fixed

fixed


Can't install

I'm trying to install Mythril and I'm geting an error when installing laser-ethereum, same error when I use pip to install laser-ethereum directly:
    Compiling 'src/api/python/z3/z3core.py'...                                                                                [160/1093]
    Generated python bytecode
    Copied 'z3consts.py'
    Copied 'z3core.py'
    Copied 'z3core.cpython-35.pyc'
    Copied 'z3consts.cpython-35.pyc'
    Testing ar...
    Testing g++...
    Testing gcc...
    Testing floating point support...
    Testing OpenMP...
    Host platform:  Darwin
    C++ Compiler:   g++
    C Compiler  :   gcc
    Archive Tool:   ar
    Arithmetic:     internal
    OpenMP:         False
    Prefix:         /usr/local
    64-bit:         True
    FP math:        SSE2-GCC
    Python pkg dir: /Users/david/.pyenv/versions/3.5.0/lib/python3.5/site-packages
    Python version: 3.5
    Writing build/Makefile
    Copied Z3Py example 'all_interval_series.py' to 'build/python'
    Copied Z3Py example 'visitor.py' to 'build/python'
    Copied Z3Py example 'example.py' to 'build/python'
    Copied Z3Py example 'socrates.py' to 'build/python'
    Makefile was successfully generated.
      compilation mode: Release
    Type 'cd build; make' to build Z3
    Building Z3
    2018/02/26 14:32:52 listen udp <IP_ADDRESS>:4242: bind: address already in use
    make: *** [interp/iz3profiling.o] Error 1
    make: *** Waiting for unfinished jobs....
    Client: Sending 'foobar'
    Server: Got 'foobar'
    Client: Got 'foobar'
    error: Unable to build Z3.

    ----------------------------------------
Command "/Users/david/.pyenv/versions/3.5.0/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/hh/2pwh6hxj7_vf8v89n2s74j2m0000gn/
T/pip-build-_4qk2anv/z3-solver/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__
, 'exec'))" install --record /var/folders/hh/2pwh6hxj7_vf8v89n2s74j2m0000gn/T/pip-2lcez26w-record/install-record.txt --single-version-externally-managed --com
pile" failed with error code 1 in /private/var/folders/hh/2pwh6hxj7_vf8v89n2s74j2m0000gn/T/pip-build-_4qk2anv/z3-solver/

This is a build error related to Z3. Unfortunately I can't really help you there :/
You could post an issue on their repo. We're also working on cleaning up dependencies and releasing a Mythril Docker image, which should hopefully be available next week, so if you wait until then you'd have an easier time installing it!

Closing due to inactivity.


Geolife Ingest handling of bad coordinates

Fix for #53
Geolife dataset contains a single coordinate (see below) that was causing wrap-around issues.
Finished analyzing 24876978 coordinates from the Geolife dataset
Total execution time: 29 seconds
Found 1 problematic coordinates:
latitude =<PHONE_NUMBER>66667, longitude = 116.21539 (line 6782 of file C:\Users\yeagerdc\Desktop\Geolife Trajectories 1.3\Data\020\Trajectory\20110911000506.plt)

Coverage decreased (-0.02%) to 62.75% when pulling f033c5242af35f1b992bb9c2035394f5ed587039 on GEOWAVE-53 into 7d7525abf89944460d762c6aa8f04a825f5f6f80 on master.


Add Symfony 5 support

No BC breaks, it only adds support for Symfony 4.x and 5.x.

Hi @mvorisek @PierreRambaud ! How can the QA test this PR ? Thanks !

@Robin-Fischer-PS Remove composer.lock file and all tests should pass.

@Robin-Fischer-PS You should be able to install the module properly.

No unwanted behavior on the productcomments module after applying this PR. Thanks @mvorisek

@SD1982 Thanks! Can you check https://github.com/PrestaShop/blockreassurance/pull/38 as well?

Thanks @mvorisek

@PierreRambaud Thanks!


Feature request - A method for printing header beneath navigation bar

Currently the header option prints the header above any navigation bar, I would like an additional field so that I can print something beneath the navigation bar but above the Component. I would be using this for a top TabBar

I don't understand the problem - it is all about css styling. did you try to use paddingTop or top ?

Thanks for your response, I'll try to be a little more specific
I want to be able to have a list of tabs in a view which is accessed by a list of tabs. For example:
<Route footer={TabBar} tabBarStyle={tabStyles.tabBarStyle}>
    <Route name="Tab_A" schema="tab" title="Tab A">
        <Route header={TopTabBar} name='Tab_A Content' title='TabAContent'>
            <Router>
                <Route name='Tab_A1' schema="tab" component={TabAContent}/>
                <Route name='Tab_A2' schema="tab" component={TabAContent}/>
            </Router>
        <Route/>
    </Route>
    <Route name="Tab_B" schema="tab" component={TabBContent}\>
</Router>

So that I can select between Tab_A/Tab_B using the built in TabBar component, but when I am in Tab_A I have a second TabBar at the top and can select between TabA1 and TabA2 within it. Right now as written if I use footer for the second one it messes with the one there already, and header prints above the navigation bar, I'd love an additional setting called top or something better than that so I can easily throw my second tab bar at the top of the content using the built in infrastructure in this package.
As it is, I've implemented this by manually putting in a TabBar in TabAContent with the appropriate calls to switch routes, but I'd love to be able to specify this in the actual route itself.
I'd love if there was some way of placing the header stuff below the navbar, I'm just starting out with react native so it's likely I've missed something obvious here.

Sorry, but it is not the component issue.


Add logging to control/truss_hash endpoint

:rocket: What
Adds logging to the control server's truss_hash endpoint so we can better root cause 500s and timeouts.

:computer: How

:microscope: Testing

Building context builder image: https://github.com/basetenlabs/truss/actions/runs/7894245752


Crash on logout (v0.10.1)

Matterircd hangs for me if I logout.
DEBU[2016-09-05T18:07:49+02:00] <- MODE #town-square                          module=matterircd
DEBU[2016-09-05T18:07:49+02:00] -> :matterircd 324 mls #town-square :         module=matterircd
DEBU[2016-09-05T18:07:56+02:00] <- QUIT                                       module=matterircd
DEBU[2016-09-05T18:07:56+02:00] -> :matterircd QUIT                           module=matterircd
DEBU[2016-09-05T18:07:56+02:00] -> :matterircd ERROR :You will be missed.     module=matterircd
INFO[2016-09-05T18:07:56+02:00] logout as user (team: teamid) on chat.xxx.org  module=matterircd
DEBU[2016-09-05T18:07:56+02:00] logout as user (team: teamid) on chat.xxx.org  module=matterclient
ERRO[2016-09-05T18:07:56+02:00] error:websocket: close 1006 (abnormal closure): unexpected EOF  module=matterclient

This is the binary on Debian jessie

That close 1006 is weird. So you can not make a new connection to matterircd in that state ?
Is this reproducable or a one off ?
(found another bug though trying to reproduce yours, /QUIT while login isn't complete yet panics the server)

This reproducable. It was after i logged in. When I'm not logged in it doesn't crash. Only after the login. I used Thunderbird and Pidgin as a client. It crashes in both cases.

This happens after I quit Pidgin and don't logout. The server still hangs
DEBU[2016-09-05T18:30:02+02:00] <- QUIT :Leaving.                             module=matterircd
DEBU[2016-09-05T18:30:02+02:00] -> :matterircd QUIT :Leaving.                 module=matterircd
DEBU[2016-09-05T18:30:02+02:00] -> :matterircd ERROR :You will be missed.     module=matterircd
INFO[2016-09-05T18:30:02+02:00] logout as user (team: teamid) on chat.xxx.org  module=matterircd
DEBU[2016-09-05T18:30:02+02:00] logout as user (team: teamid) on chat.xxx.org  module=matterclient
ERRO[2016-09-05T18:30:02+02:00] error:read tcp <IP_ADDRESS>:56597-><IP_ADDRESS>:443: use of closed network connection  module=matterclient

Ok, just to be sure, the following messages after the first ERROR aren't there ?
Would it be possible to try with irssi ?
You're on mattermost 3.3.0 ?
ERRO[2016-09-05T18:33:23+02:00] error:read tcp [xxxxx]:43439->[xxxx]:443: use of closed network connection  module=matterclient
INFO[2016-09-05T18:33:23+02:00] logout succeeded                              module=matterircd
DEBU[2016-09-05T18:33:23+02:00] -><EMAIL_ADDRESS>PART #golang  module=matterircd
DEBU[2016-09-05T18:33:23+02:00] -><EMAIL_ADDRESS>PART #wimtest  module=matterircd
DEBU[2016-09-05T18:33:23+02:00] -><EMAIL_ADDRESS>PART #off-topic  module=matterircd
DEBU[2016-09-05T18:33:23+02:00] -><EMAIL_ADDRESS>PART #testing  module=matterircd
DEBU[2016-09-05T18:33:23+02:00] -><EMAIL_ADDRESS>PART #town-square  module=matterircd
DEBU[2016-09-05T18:33:23+02:00] -><EMAIL_ADDRESS>PART &users  module=matterircd
ERRO[2016-09-05T18:33:28+02:00] handle decode error for wim: EOF         module=matterircd
INFO[2016-09-05T18:33:52+02:00] New connection: <IP_ADDRESS>:33194               module=matterircd

@merlinschumacher I think I fixed this, could you try the latest test build?
https://github.com/42wim/matterircd/releases/download/v0.10.1/matterircd-linux64-test
Thanks!

It seems to be fixed. Thank you!


Adds support for postgres when saving relation #3074

PR #3074 introduced an incompatibility with postgres, this PR restores the functionality.

@flovilmart
Is this WIP? or Are you waiting for a PG contributor to review this change?
It is LGTM.
If you are OK then I can merge this into master. Pls let me know.
After merging in this PR, I can merge in #3068 also.

I'm gonna merge when travis finishes :)

@cherukumilli feel free to move forward and merge #3068


fix: IPv6 Address handling in SDAM monitoring [3.6]

NODE-2671
Port of #2435

@nbbeeken hmm something is very off with the tests, I suspect the address isn't being represented correctly internally


river: 2021-09-30 -> 2021-11-01

Motivation for this change
Closes #144129
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

River now uses tagged releases, you should just use 1.0 instead of fetching it from last commit.


Multiple repair operators

It would be great to have the ability to compose repair operations i.e. such that sometimes I only apply r1 sometimes r1 followed by r2 and other times just r2 alone without having to make a new repair class for each combination. How would be the best way to implement this from the developers perspective? I am leaning towards a MultiRepair class that is initialised with a list of Repair operators and applies them in sequence?

Yes exactly! You can create a MultiRepair class which combines several repairs. I have actually done this myself in the past and that works pretty well!


Treat imported BOMs as constraints on the importing module

In some cases when a dependency is included transitively and a dependencyManagement section changes the version in another pom, then gradle resolves the resulting Version differently from Maven
Example:
Project A has a dependency to artifact D in version 2
Project B has a dependency to the Artifact from Project A and a dependencyManagement of Artifact D to version 1 (in it's pom.xml)
Project C has a dependency to the Artifact of Project B.
If you do this with maven, then Project C has a transitive dependency to D in version 1
If you do it with gradle then Project C has a transitive dependency to D in version 2
I expected the versions to be the same. In my eyes the Maven behavior makes more sense.
To reproduce see this simple test setup:
https://github.com/ptriller/gradle-bugreport

This is a limitation in how we currently treat BOMs (we only apply them to the direct dependencies of a module). Instead, we should add the management section of the BOM as constraints on the module that imports that BOM.

There are 2 issues here:

POM <dependencyManagement> elements do not apply transitively, they only apply to dependencies in the declaring module. We think this is the same behaviour as Maven, but we are considering making these apply transitively
A dependency constraint cannot downgrade a dependency version for a transitive dependency.

We are working to improve things in this space, but our aim is not to perfectly replicate the Maven resolution behaviour.

Edited title to reflect required change to current Gradle behavior with IMPROVED_POM_SUPPORT

This feature will be part of the BOM support in Gradle 5.0 - see #4422 for details

This will be available in Gradle 5.0 through enforcedPlatform, watch release notes.


Add Data Structure in Javascript | As many as you can!

please assign me this issue

can you assign it to me ?

Sure! @Krunal-Karena @kalaSriSaiRaksha You can start working on it!


Key bypasses read_key() when more than one key pressed together

First of all thanks for creating this crate :)
I am having an issue that when I am using read_key() and press more than one character key at the same time, sometimes one of them bypasses the method and is written to the terminal.
For example with the following code:
loop {
    let term = Term::stdout();
    if let Key::Char(thing) = term.read_key().unwrap() {
            term.write_line(&format!("{}", style(" thing").green().bold()))?;
    }
}

if I press j and k at the same time the output is something like:
 thing
 thing
 thing
k thing
 thing
k thing
 thing
j thing

Not sure if I am using it wrong or if there is an issue here.
Thanks!

On which terminal and operating system are you experiencing this behavior?

iTerm 2 in macos

So my guess of what's happening is that read_key moves the terminal into and out of raw mode for each key press. It is probably a race condition of what happens when more than one key is pressed at the same time. In that case sometimes the key might end up in non raw mode.
Unfortunately that is not really solvable unless console provides an API to switch the entire terminal into raw mode. That however is quite likely platform specific and I'm not sure if that can be abstracted over in a reasonable way. It might be, but I would need to experiment with that.

Thanks for the quick answer and review!

@mitsuhiko The bug is sometimes nasty when you're playing with custom interface rendering e.g. password hidding and the real character suddenly appears somewhere in the terminal cursor. The fix could be like introducing a manual enabling/disabling the raw mode and something like get_key_raw which doesn't switch the raw mode back and forth.

I can confirm that this still happening. As said previously, the likely cause is this race condition. For me it happens only under a VM, in VSCode integrated terminal (so a lot of overhead!). I first noticed this when holding down the left arrow key - the OS(?) starts queueing up the key a whole lot faster the longer you hold it, and so the race condition happens quite a lot


aframe-vimeo-component errors are different for each browser

Errors on Firefox
SyntaxError: invalid regular expression flag s
Errors on Chrome
Uncaught (in promise) Error: TypeError: Cannot read property 'dash' of undefined
at aframe-vimeo-component.min.js:10
I am using Python Flask
Front-End
<script type="application/javascript" src="{{url_for('static', filename='aframe-vimeo-component.min.js')}}"></script>

<a-entity vimeo="id: 362333441" id="vimeo-player">
          <a-sky color="#000" id="box"></a-sky>
      </a-entity>

Back-End
@app.route('/vimeo/api')
def vimeo():
    try:
        # `scope` is an array of permissions your token needs to access.
        # You can read more at https://developer.vimeo.com/api/authentication#supported-scopes
        token = v.load_client_credentials('public')

        # usable access token
        print('token=%s' % token)
    except vimeo.auth.GrantFailed:
        # Handle the failure to get a token from the provided code and redirect.
        print('token failed')

    me = v.get(path, data={'Accept':'application/vnd.vimeo.*+json;version=3.4'})
    me = me.json()
    mejson = jsonify(uri=me['uri'], description=me['description'], width=me['width'], height=me['height'])
    return mejson

I have followed the documentation as closely as possible but always end up with these errors.
Thank you.

This seems to be the code in Chrome it is referencing
{
    if (this.data) return this.data.play.dash.link;
    console.warn("[Vimeo] There was a problem loading your video, did you provide a valid Vimeo video ID?")

No solve on my end but I am also seeing these errors.

Was this ever solved? I'm facing the same problem, even after upgrading to Vimeo Pro which I thought was the issue...


Empty hostname_ssh and username_ssh

Hello,
I use fish as primary shell and have clone your (awesome) work.
Everything seems to work except for hostname and username_ssh.
What I expect to see (from readme):

What I actually see:

I tried executing the following command that works:
cut -c3- ~/.tmux.conf | sh -s _username
lmilcent

Thanks for your help!

Hello @LM1LC3N7 👋
If you used #{hostname_ssh} and #{username_ssh}, then they are empty unless you're connecting to a remote host.
It seems my latest commit replaced #{hostname} to #{hostname_ssh} and #{username} to #{username_ssh} in my latest commit.

Thanks for your fast answer!
Indeed I have updated hostname_ssh to hostname and it works well.


Activate pycodestyle checks

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

15 of 19 (78.95%)  changed or added relevant lines in 6 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.01%) to 93.981%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

cantools/database/can/formats/dbc.py
3
4
75.0%

cantools/tester.py
1
2
50.0%

cantools/subparsers/monitor.py
1
3
33.33%

Totals

Change from base Build<PHONE_NUMBER>:
0.01%

Covered Lines:
7058

Relevant Lines:
7510

💛  - Coveralls


[suggestion] Add season and episode counts

Background
Imagine list od shows. I can select one, enter to its seasons. Select one and enter to its episodes.
It will be very nice to see on all tree levels if items are watched, in progress (partially watched) or not watched at all.
Episodes are ok, I can read it from /sync/watched/shows and /sync/playback.
I have same problems with seasons and tv-shows level.
Current objects
Now in /sync/watched/shows I have number of play but I don't know how many seasons or episodes are.
BTW, I see plays in show is a sum of all plays inside than could be bigger then number of the episodes at all event if I watched only one episode (many times of course)
  {
    "plays": 9,
    "last_watched_at": "2023-10-23T18:31:05.000Z",
    "last_updated_at": "2023-10-23T18:31:05.000Z",
    "reset_at": null,
    "show": {
      "title": "Loki",
      "year": 2021,
      "ids": {
        "trakt": 146535,
        "slug": "loki",
        "tvdb": 362472,
        "imdb": "tt9140554",
        "tmdb": 84958,
        "tvrage": null
      }
    },
    "seasons": [
      {
        "number": 1,
        "episodes": [
          {
            "number": 1,
            "plays": 2,
            "last_watched_at": "2023-10-23T18:31:05.000Z"
          },
          {
            "number": 2,
            "plays": 1,
            "last_watched_at": "2023-10-21T18:25:36.000Z"
          },

Suggestion
I suggest add season_count /  number_of_seasons  for tv-show and episode_count for each season.
If I could find those numbers there I would have all information to show watched / progress on all levels without any extra request.
Maybe even add those number for all show and season objects not only the history?
Ask
What do you think about it?
Of course if there is no any problem (like performance).
Maybe I miss something and you point me another solution.

Not a bad idea, but the problem is the data from /sync/watched/shows is heavily cached so those counts could be stale for a while and not accurate. This is the main reason we suggest caching the show data separately and updating it using the /shows/updates endpoint to know you need to refresh that specific show locally. Does that work for you?

Have to :-)
I see, invalidate cache is too heavy task. Ok, updates could help if I'll find the season and episode counts.
I can't see them in any object, could you help me?
How to get progress using pure API?

If you add ?exeneded=full the show object will include the aired_episodes count.
If you need progress for 1 show, you can use:
https://trakt.docs.apiary.io/#reference/shows/watched-progress/get-show-watched-progress
If you're trying to recreate the progress page as seen on Trakt, you should cache the watched data + all metadata for each show, then calculate the progress yourself. That will be the most efficient since most of the data isn't changing that often.

Thanks a lot.


Adding Sagemaker pipeline sample

Issue #, if available:
Description of changes: Adding a Sagemaker pipeline example for creating and executing a pipeline run.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/ok-to-test

/lgtm


Update how to install in example projects

Description
I found go get github.com/pion/webrtc/examples/data-channels fails.
Currently download instructions should contain 'v2'.
Reference issue
None.

Fantastic, thank you so much @tsuu32 !


feat(core): add internal routine for 3D grid generation

Description
Scope: core
Type of change: feat
Content description: TODO

Codecov Report
Attention: Patch coverage is 0% with 54 lines in your changes missing coverage. Please review.

Project coverage is 76.52%. Comparing base (2b7e7fc) to head (0472e4c).
Report is 1 commits behind head on master.

Files with missing lines
Patch %
Lines

honeycomb-core/src/cmap/builder/grid.rs
0.00%
54 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #256      +/-   ##
==========================================
- Coverage   77.98%   76.52%   -1.46%
==========================================
  Files          47       49       +2
  Lines        6676     6855     +179
==========================================
+ Hits         5206     5246      +40
- Misses       1470     1609     +139

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


(FACT-1120) fix build on FreeBSD

Removes linking to dl entirely, since library loading has been moved to Leatherman.

CLA signed by all contributors.


Memory leak on backtracking

permutation([], []).
permutation(Xs1, [Y|Ys]) :-
    select(Y, Xs1,Xs2),
    permutation(Xs2, Ys).

 ?- call_nth((length(L,N),permutation(L,L)),Nth),Nth mod 10000000=:=0,(nl,statistics,write('  ');false).

Goals 128731268, Matches 143096874, Max frames 81, choices 14, trails 0, slots 314, heap: 77.
Backtracks 61548431, TCOs:0, Recovered frames: 0, slots: 0, Queue: 0
     L = [_A,_A,_A,_A,_A,_A,_A,_A,_B|...], N = 11, Nth = 10000000
;
Goals 257462543, Matches 286193782, Max frames 84, choices 14, trails 0, slots 326, heap: 77.
Backtracks 123096885, TCOs:0, Recovered frames: 0, slots: 0, Queue: 0
   L = [_A,_B,_B,_B,_A,_B,_B,_B,_B|...], N = 11, Nth = 20000000
;  ...
;
Goals<PHONE_NUMBER>, Matches<PHONE_NUMBER>, Max frames 98, choices 15, trails 0, slots 381, heap: 77.
Backtracks<PHONE_NUMBER>, TCOs:0, Recovered frames: 0, slots: 0, Queue: 0
   L = [_A,_B,_A,_A,_A,_A,_A,_B,_A|...], N = 12, Nth = 280000000
; Killed
$ ulimit -v
unlimited

The last seconds (one entry per second)  with ps u -917161:
ulrich    917161 88.0 57.3 80024084 75659900 pts/27 R+ 05:24  11:33 /opt/gupu/new-trealla/tpl
ulrich    917161 88.0 57.7 86415672 76157804 pts/27 R+ 05:24  11:34 /opt/gupu/new-trealla/tpl
ulrich    917161 88.1 58.1 86672576 76620428 pts/27 R+ 05:24  11:35 /opt/gupu/new-trealla/tpl
ulrich    917161 88.0 58.3 86825316 76897168 pts/27 R+ 05:24  11:35 /opt/gupu/new-trealla/tpl
ulrich    917161 87.9  0.0      0     0 pts/27   R+   05:24  11:37 [tpl]
ulrich    917161 87.9  0.0      0     0 pts/27   R+   05:24  11:38 [tpl]
ulrich    917161 88.0  0.0      0     0 pts/27   R+   05:24  11:39 [tpl]
ulrich    917161 88.0  0.0      0     0 pts/27   R+   05:24  11:40 [tpl]

Will try with limits.
What is interesting is that the entry slots increased in the first line

$ ulimit -v 30000
$ /opt/gupu/new-trealla/tpl -f
Trealla Prolog (c) Infradig 2020-2023, v2.21.4
?- [permutation].
   true.
?- call_nth((length(L,N),permutation(L,L)),Nth),Nth mod 10000000=:=0,(nl,statistics,write('  ');false).
Goals 128731268, Matches 143096874, Max frames 81, choices 14, trails 0, slots 314, heap: 77.
Backtracks 61548431, TCOs:0, Recovered frames: 0, slots: 0, Queue: 0
     L = [_A,_A,_A,_A,_A,_A,_A,_A,_B|...], N = 11, Nth = 10000000
;
Goals 257462543, Matches 286193782, Max frames 84, choices 14, trails 0, slots 326, heap: 77.
Backtracks 123096885, TCOs:0, Recovered frames: 0, slots: 0, Queue: 0
   L = [_A,_B,_B,_B,_A,_B,_B,_B,_B|...], N = 11, Nth = 20000000
;  ...
Goals<PHONE_NUMBER>, Matches<PHONE_NUMBER>, Max frames 98, choices 15, trails 0, slots 381, heap: 77.
Backtracks<PHONE_NUMBER>, TCOs:0, Recovered frames: 0, slots: 0, Queue: 0
   L = [_A,_B,_A,_A,_A,_A,_A,_B,_A|...], N = 12, Nth = 280000000
;   error(resource_error(memory),select/3).

and
ulrich    926717 54.3  0.0  28060 15500 pts/27   S+   06:22   9:11 /opt/gupu/new-trealla/tpl -f

So you need 9'11" to reproduce this.

However, no such problem with the following query where the CP of length/2 was eliminated. Took longer than above, but no such problems.
?- call_nth((length(L,12),permutation(L,L)),Nth),Nth mod 10000000=:=0,(nl,statistics,write('  ');false).

Goals 128731304, Matches 143096931, Max frames 85, choices 14, trails 0, slots 316, heap: 64.
Backtracks 61548459, TCOs:0, Recovered frames: 0, slots: 0, Queue: 0
     L = [_A,_B,_B,_B,_B,_B,_B,_B,_C|...], Nth = 10000000
;  ...
;
Goals<PHONE_NUMBER>, Matches<PHONE_NUMBER>, Max frames 104, choices 14, trails 0, slots 392, heap: 64.
Backtracks<PHONE_NUMBER>, TCOs:0, Recovered frames: 0, slots: 0, Queue: 0
   L = [_A,_A,_A,_A,_B,_A,_C,_B,_A|...], Nth = 470000000
;  false.

ulrich    930868 92.6  0.0  28060 15160 pts/27   S+   06:46  15:34 /opt/gupu/new-trealla/tpl

Seeing the same here. It seems something suddenly goes berserk.
On Sun, Jul 2, 2023 at 3:47 PM UWN @.***> wrote:

permutation([], []).
permutation(Xs1, [Y|Ys]) :-
select(Y, Xs1,Xs2),
permutation(Xs2, Ys).
?- call_nth((length(L,N),permutation(L,L)),Nth),Nth mod 10000000=:=0,(nl,statistics,write('  ');false).
Goals 128731268, Matches 143096874, Max frames 81, choices 14, trails 0, slots 314, heap: 77.
Backtracks 61548431, TCOs:0, Recovered frames: 0, slots: 0, Queue: 0
L = [_A,_A,_A,_A,_A,_A,_A,_A,_B|...], N = 11, Nth = 10000000
;
Goals 257462543, Matches 286193782, Max frames 84, choices 14, trails 0, slots 326, heap: 77.
Backtracks 123096885, TCOs:0, Recovered frames: 0, slots: 0, Queue: 0
L = [_A,_B,_B,_B,_A,_B,_B,_B,_B|...], N = 11, Nth = 20000000
;  ...
;
Goals<PHONE_NUMBER>, Matches<PHONE_NUMBER>, Max frames 98, choices 15, trails 0, slots 381, heap: 77.
Backtracks<PHONE_NUMBER>, TCOs:0, Recovered frames: 0, slots: 0, Queue: 0
L = [_A,_B,_A,_A,_A,_A,_A,_B,_A|...], N = 12, Nth = 280000000
; Killed
@.***:~/ftp/swi-prolog/vv$ ulimit -v
unlimited
The last seconds (one entry per second) with ps u -917161:
ulrich    917161 88.0 57.3 80024084 75659900 pts/27 R+ 05:24  11:33 /opt/gupu/new-trealla/tpl
ulrich    917161 88.0 57.7 86415672 76157804 pts/27 R+ 05:24  11:34 /opt/gupu/new-trealla/tpl
ulrich    917161 88.1 58.1 86672576 76620428 pts/27 R+ 05:24  11:35 /opt/gupu/new-trealla/tpl
ulrich    917161 88.0 58.3 86825316 76897168 pts/27 R+ 05:24  11:35 /opt/gupu/new-trealla/tpl
ulrich    917161 87.9  0.0      0     0 pts/27   R+   05:24  11:37 [tpl]
ulrich    917161 87.9  0.0      0     0 pts/27   R+   05:24  11:38 [tpl]
ulrich    917161 88.0  0.0      0     0 pts/27   R+   05:24  11:39 [tpl]
ulrich    917161 88.0  0.0      0     0 pts/27   R+   05:24  11:40 [tpl]
Will try with limits.
What is interesting is that the entry slots increased in the first line
—
Reply to this email directly, view it on GitHub
https://github.com/trealla-prolog/trealla/issues/232, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFNKSESYQWXUSYTG7AM3F7TXOEDOZANCNFSM6AAAAAAZ3HQOMQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

How is this a fix? When the counter wraps around which happens aver 10 minutes, chances are that there will be a collision.

Still, what exactly was the fix?


checkcommits: Use proper grammar rules in verbose message.

"Found 1 commits" is just awful.
Signed-off-by: James O. D. Hunt<EMAIL_ADDRESS>

sadly golang has not the ternary operator ( ?: )
lgtm

Agreed - it might be clearer without one, but it sure ain't pretty! :-(


include/nuttx/spinlock.h: fix gcc14 compilation error

Summary
include/nuttx/spinlock.h: fix gcc14 compilation error
fix implicit declaration of function ‘this_cpu’
Impact
fix compilation for gcc14
Testing
CI

not needed if https://github.com/apache/nuttx/pull/14203 will be merged


nodeos 2.0.1 head stuck

I just had a 2.0.1 EOS mainnet node get stuck (or "coma" as is the term on Telegram 🙂) not receiving any new blocks. There wasn't anything revealing in the log; it just stopped receiving blocks and then some usual messages about can't connect to certain remote peers. The net_plugin_impl logging level is currently set to warn so some things may have been missed. We monitor the network pretty closely and I don't believe there was any sort of network outage that triggered it. CPU usage was at 0% where it normally sits around 50%. After a restart it immediately recovered and had no problem keeping up with head.
Backtrace while it was stuck:
nodeosbt.log
Some peer info while it was stuck:

I believe I may have run into the same issue.  Or at least similar issue with same symptoms.  Sent logs to @heifner on Feb 8.

In my situation the nodeos had just restored from snapshot and was catching up.  It was only connected to 2 other peers.

@matthewdarwin Your sync issue on Feb 8th was not this issue. I'm not exactly sure what your Feb 8th issue was. This issue there is no output at all from nodeos when it locks up.

Apparently setting net-threads back to the default of 2 reduces (eliminates?) comas.  Original issue was filed with net-threads = 8.