Gradle Tasks hung while executing multiple times

Extension Name: vscode-gradle
Extension Version: v3.5.2
OS Version: MacOS Big Sur 11.2.1
VSCode version:  1.53.2
Describe the bug
While executing Gradle Tasks multiple times, the task execution is getting hung and getting error "Build cancelled: build: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-6.5.1-bin.zip'". Once we hit this error, we cannot execute any other task. It keeps on showing this error.
To Reproduce
Step 1. Execute "Build" task. (First executes fine.)
Step 2. On completion of "Build" task, try again the build task.
The behaviour is inconsistant here. Some time we get the error on 2nd execution onwards, sometimes we get the error on 3rd/4th execution.
Expected behavior
We should be able to execute gradle tasks multiple times without any error.
Screenshots
If applicable, add screenshots to help explain your problem.

Output from "Gradle Tasks"
[debug] [gradle-server] Starting server
[debug] [gradle-server] Gradle Server cmd: /Users/neel/.vscode/extensions/richardwillis.vscode-gradle-3.5.2/lib/gradle-server 53366
[debug] Refreshing tasks
[info] [gradle-server] Server started, listening on 53366
[info] Gradle client connected to server
[info] Java Home: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
[info] JVM Args: --add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,-XX:MaxMetaspaceSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xms256m,-Xmx512m,-Dfile.encoding=UTF-8,-Duser.country=GB,-Duser.language=en,-Duser.variant
[info] Gradle User Home: /Users/neel/.sdkman/candidates/gradle/6.5.1
[info] Gradle Version: 6.5.1
[debug] Get daemon status
[info] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.

Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.5.1/userguide/command_line_interface.html#sec:command_line_warnings
CONFIGURE SUCCESSFUL in 1s
[info] Found 99 tasks
[debug] Get daemon status
[info] Cancel build: Cancel build requested
[info] Build cancelled: build: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-6.5.1-bin.zip'.
[info] Completed build: build
[debug] Get daemon status
[debug] Refreshing tasks
[info] Java Home: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
[info] JVM Args: --add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,-XX:MaxMetaspaceSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xms256m,-Xmx512m,-Dfile.encoding=UTF-8,-Duser.country=GB,-Duser.language=en,-Duser.variant
[info] Gradle User Home: /Users/neel/.sdkman/candidates/gradle/6.5.1
[info] Gradle Version: 6.5.1
[debug] Get daemon status
[info] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.

Yes
Additional context
Add any other context about the problem here.

Same to me:
Ubuntu 18.04
Gradle 6.5.1
VSCode 1.53.1
openjdk version "11" 2018-09-25

Seem to me that the author has not been present for a period of time. Hope he is safe and well.
To that end, seem like someone need to continue with a fork of this project.

Same error with my compilesass task

Seem to me that the author has not been present for a period of time. Hope he is safe and well.
To that end, seem like someone need to continue with a fork of this project.

Sometimes life gets in the way of open source. I don't see a reason for someone to fork, it's somewhat of an offensive suggestion. I am happy to accept help! If anyone wants to send a PR, I will happily review it. Otherwise I will try look into this on the weekend, but I am overwhelmed with many things at the moment and can't make any promises.

Well, knowing you (@badsyntax ) aknowledge the issue is already a relief. Take you time, of course.
I'm not able to create a PR but if there's an error log or some other useful info we can provide, please let us know.

Thanks @think01, logs will probably be useful but I'll let you know if I need them.
I'm sorry for not replying earlier. I am not ignoring this project, just my life has taken a different path recently. I will do my best to fix this bug on the weekend 👍

Seem to me that the author has not been present for a period of time. Hope he is safe and well.
To that end, seem like someone need to continue with a fork of this project.

Sometimes life gets in the way of open source. I don't see a reason for someone to fork, and that's somewhat of an offensive suggestion. I am happy to accept help! If anyone wants to send a PR, I will happily review it. Otherwise I will try look into this on the weekend, but I am overwhelmed with many things at the moment and can't make any promises.

Hi @badsyntax , really happy to see you back.  Forgive me for mentioning the "fork". It wasn't meant to be an offensive suggestion., but  cos  initially thought something could have happen  (touched wood!) amid the covid period., and a good project like this would be wasted if no one to maintain it.
But now  relief to see you back again.

FWIW I tested the same grade tasks after installing TaskExplorer and they seem to be able to repeat them if I run them from there. I'm hoping this rules out the tasks themselves and the gradle version vs code version

Same to me:
Windows 10 Version 10.0.19042 Build 19042
Gradle 6.8.3
VSCode 1.54.1
Extension Version: v3.5.2
openjdk version "15.0.2" latest

This is a pretty major bug and I can easily replicate it. Sorry for not realising the scale of this bug earlier. The issue is related to the terminal management feature i added in https://github.com/badsyntax/vscode-gradle/pull/748.
It seems that possibly vscode has changed the terminal event handling which has caused a race condition in this extension. Possibly this bug doesn't exist on older versions of vscode.
I should be able to get a fix out shortly, but if you need a workaround in the meantime, you can set the following in your vscode settings:
"gradle.reuseTerminals": "off"

Hi @badsyntax ,
Thanks for looking into the issue. Adding the above settings to vscode settings helped to fix the issue.
Thanks

I have confirmed the source of the issue is due to vscode changing the behaviour of certain apis, which is rather annoying. I have added a fix with https://github.com/badsyntax/vscode-gradle/pull/870 that includes some defensive code to workaround the inconsistencies. The tests are now running against vscode 1.45.0 and 1.54.1 and are passing 🎉  I will release a fix before the end of the weekend.

I've released the fix, make sure you update to at least 3.6.1.
Refer to the 3.6.0 release notes for an overview of the changes.
Can you revert the workaround and test the fix for me?

@badsyntax  just tested it, LGTM, thanks for the fix

@badsyntax tested for Windows 10
all works fine now :) thanks a lot!
close issue

Thanks for testing!

I suspect this might have also fixed an issue I was having with the Spring Boot Dashboard and project initialisation on startup, is was much slower than usual and occasional didn't complete and required a restart. Doesn't seem to be happening now.
Thanks again

Hi @badsyntax ,
Tested the fix on Mac. It worked well without problem. Thanks for working on it. We can close this issue.

Thanks and Regards

@badsyntax thanks for the fix! I can confirm it works on Ubuntu 18.04 :partying_face:


[BUG] Trim leading & following whitespace when editing name of an existing application

Description
When an existing application is edited, it is accepting spaces as the name and saving it while it should throw an error asking the user to enter a name and strip the spaces from the field. Also noticed that the color of the app also changes automatically without changing anything.
Steps to reproduce the behavior:

Go to "applications"
Click on '...'
Click on the "edit" icon and enter spaces in the field
See error

Screencast: https://recordit.co/QsxvyTjzom
Important Details

Version: Cloud
OS: Windows 10
Browser: Google Chrome Version 85.0.4183.121 (Official Build) (64-bit)

@harishkotra application names can have spaces

@Nikhil-Nandagopal I agree but space just cannot be the name right? I can add a name as "Organization Name" but not "               ".

@harishkotra You're right. We should trim the leading & lagging whitespace in the text and prevent empty names from being set for the application name. I'm re-opening this issue.

@harishkotra my bad , this is a valid issue

Hey, Can I take up this issue? I'm not very familiar with the codebase but I can give it a try!

@HashTalmiz please have a look at our contribution guide. It will help you get started 😊

@mohanarpit no above-them for this one?


ECMA admonitions. #12495

Summary

Test plan

Should I just close this PR then?

Yep. This page was reworked recently as well.


(FE): code review change to Read more on EOSIO account creation

What does this PR do?

Resolves #359

Steps to test

Run yarn start
Go to localhost:3000
Go to Developer Guidelines > Learn EOSIO > Accounts And Permissions

CheckList

[ ] Follow proper Markdown format
[ ] The content is adequate
[ ] The content is available in both english and spanish
[ ] I Ran a spell check

I didn't notice this check review before, my bad.
The used link is not the last one, I'm going to reopen the issue to make the update to the latest version.


collectd service not found

Using stouts.collectd from galaxy:
my playbook looks like this:
---
-
  hosts: all
  roles:
    - { role: geerlingguy.git , become: yes }
    - { role: Stouts.collectd, become: yes}

I get following error on ubuntu 16.04
ASK [Stouts.collectd : collectd-configure | Ensure conf.d directory] *******************************************************************************
changed: [localhost]

TASK [Stouts.collectd : collectd-configure | Configure additional types] ****************************************************************************
changed: [localhost]

TASK [Stouts.collectd : collectd-configure | Setup Collectd service] ********************************************************************************
changed: [localhost]

TASK [Stouts.collectd : collectd-configure | Ensure the Collectd is enabled and started] ************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Could not find the requested service collectd: host"}

Seems like the version on the galaxy is still 2.1.1 whereas the github is showing 2.2.1

Please hit update in the ansible galaxy to publish the github update as required in the repo : https://github.com/ansible/galaxy-issues/issues/30


Programme snouring

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.93.1-1
OS Version: Endeavouros in the newest version.

Steps to Reproduce:

start code oss
click on file or anything else in the top bar
the application will close automatically

Looks similar to #230604 , but that's in Insiders.
You can try to follow https://github.com/microsoft/vscode/wiki/Native-Crash-Issues to get more details

@vs-code-engineering I updated my version of vs code but the problem still exists.

Yeah seems like the duplicate
Can you share the crash dump following the steps at https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-a-crash-report

c78abd65-9bd4-48fd-bae3-7e8835c07786.zip
2f7afe42-8b27-49a6-b3e7-8a8b0fff1484.zip
I do not know why I have 2 files but I have I hope that will help you.


Fonts figma export for android studio

Icons must be exported to font directory (the same root level as drawable directory) as ttf files. Names must have snake case style. One font ttf file for each font style. Example in the image below.

It is a user responsibility to download and move fonts to Android Studio project.
Figma API doesn't provide ability to get ttf file.

I’am closing the issue. If you have any questions feel free to reopen the issue.


added guide to upgrade Visual C++ (to 2015 etc)

We would need this when we feel it is hard to continue supporting VC100.
By the way, this link is already deprecated, which I changed as well:

Updating the Windows Libraries
boost <http://www.boostpro.com/download/>_ (any version >= 1.45 is fine).

Perhaps updating the other link by my own is faster considering our busy state

thanks!


Do not delete inactive meta scripts

They should be stored in an extra field, on the main settings object

There should a another tab view, on another page

This already works as "loose meta scripts"


problems with different mimetypes in different browsers (v4)

Hey,
i have a problem with the different encoding of the files. As far as i can tell the mime-types are different for each scenario: audio/webm (recorded with chrome, also different depending on which browser you record with.) for browser and audio/aac (with different sigantures) from android or apple devices.
We record the voice messages in different devices or different browsers and need to support as many platforms as possible, we upload them via aws s3 as the pure base64 string, then download them as these strings, create an instance of an Audio HTML object and play them. (current state)
The problem is that these files have for example different durations then the real duration or do not get played at all (only in safari an issue). The encoding of voice messages recorded by the android devices seem to work in every browser (we tested) for some reason.
Do you know of a way to record the voice messages with an encoding in e.g. Chrome that will work in Safari? Is there a way to convert this encoding, or record with a more broad possibilty to choose the encoding we want?

I've added a part in the readme that discuss these type of issues exactly.
unfortunately, there is no one type that is supported by all major browsers
and phones (at least not yet).
that's why the plugin returns different mime types for each platform.
for now, the best way to deal with this issue is to convert each file to your required format
before you upload it to s3 (you'll need another js library for that),
as it seems that keeping the base64 as-is will not be good enough.
besides, I think it makes sense to add the ability to choose
the mime type when you start recording, I will definitely add it as a parameter soon.
also, I will check again if there is a mime type that is supported by all
major browsers, the chance is slim but maybe over the last year things have changed
since the last time I've checked.

@tchvu3 What about audio/mpeg (mp3)? It looks like it's supported in all major browsers, if I'm understanding these docs correctly, but it's not included as a possible web mime type.

As we are using this plugin in production, we have now implemented a solution where we transform all audio files via ffmpeg to mp3 then save them as base64 strings and then all of our supported platforms can play them. I think @nkalupahana suggestion is the correct approach, if a viable implementation can be found for it.

Seems related: https://github.com/tchvu3/capacitor-voice-recorder/issues/34 :)

@DevRichter once we get the base64 data how are you saving it as a file. I tried to save base64 data with FileSystem API but it seems once its saved with following code, I am not able to transform the file format with ffmpeg.
Here's the code:
let result = await VoiceRecorder.stopRecording();
let blob = base64StringToBlob(result.value.recordDataBase64, result.value.mimeType);
let data_text = await blob.text();
let extension = mime.getExtension(result.value.mimeType);
let write_result = await Filesystem.writeFile({
            path: `temp.${extension}`,
            data: data_text,
            directory: Directory.External,
            encoding: Encoding.UTF8,
        });
        let uri = write_result.uri;

ffmpeg.exec(`-i ${uri} -vn -c:a copy temp.mp3`,(response)=>{
    console.log(response);
},(error)=>{
    console.log(error);
});

ffmpeg just errors out. Most probably because the file is not saved in a format that ffmpeg can process any suggestions would be appreciated.

@shyamal890 sorry for the super late answer. for anyone thats still wondering, we are using @ffmpeg/ffmpeg
and then just
    const ffmpeg = createFFmpeg({
        log: true,
    });
    const uuidOriginal = `${randomUUID()}${FILE_SUFFIX}`;
    const uuidConverted = `${randomUUID()}${FILE_SUFFIX}`;
    try {
        await ffmpeg.load();
        ffmpeg.FS('writeFile', uuidOriginal, voiceMessageFile);
        await ffmpeg.run('-i', uuidOriginal, uuidConverted);

        return ffmpeg.FS('readFile', uuidConverted);
    } catch (e) {
        console.error(errors.ERROR_WHILE_CONVERTING_TO_MP3, e);
    }


gzip: 1.6 -> 1.7

[ ] Tested using sandboxing (nix-build --option build-use-chroot true or nix.useChroot on NixOS)
Built on platform(s)

[ ] NixOS
[ ] OS X
[x] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@vcunat I didn't realize this would cause a mass-rebuild, should I re-open against staging?

There's no need. ATM I'm testing it locally with a couple of other mass-rebuild changes.

Let's close this (we usually close PRs once they hit staging).


require function is used in a way in which dependencies cannot be statically extracted

Hi,
I encounter this error. May I know how to fix?
WARNING in ./node_modules/cesium/Source/Core/buildModuleUrl.js 52:12-19
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

Thanks and regards,
James Zheng

It is a problem due to Cesium. There's nothing Resium can do.


Project all existing COM interfaces as C++/WinRT interfaces

Related to https://github.com/microsoft/xlang/issues/775.
Project all existing the COM interfaces (at least ones in the Windows SDK) as C++/WinRT interfaces that inherits from Windows::Foundation::IUnknown or Windows::Foundation::IInspectable, methods return result instead of HResult with automatic propagation of exceptions and types work as smart pointer wrappers without needing com_ptr.

One of the considerations for cppwinrt v3 is support for Win32/COM APIs, much like what windows-rs does by providing uniform access to all APIs and not just WinRT APIs. Certainly not something we can tackle before then but feel free to mention it on #1123.


[T7][T09-C1]

Hi guys,
Please add your mock up UI. You still have an address book there.
I see code commits only from two members of the group. Everyone must be working on their feature by now.
We need to speed up and catch up soon. Try to put more effort to get the code compiling and running and to get the features implemented.


Fix filter "Anzahl Personen"

The filter only lists one group entity though there should be many unspecific groups (>1) and several precise (Acht Herren (8), Stiftermönche (8), Stifterfiguren (116)...).

It seems we at one point changed the display to only show Persons, not Groups. Hence the filter was stuck at 1. I now changed the query to show Groups as well (since I don't remember why we did that change)


Cannot use matmul on 1x1 matrix

In cvxpy 1.0.6 and Python 3.7, I would expect the following example to work
import cvxpy, numpy
v = cvxpy.Variable((1,1))
col_scalar = numpy.array([[2]])
assert v.shape == col_scalar.shape == col_scalar.T.shape
print(repr(col_scalar.T @ col_scalar))
print(v.is_scalar())
print(repr(col_scalar.T @ v))

Instead I get
array([[4]])
True
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-99-86b127272bd5> in <module>()
      5 print(repr(col_scalar.T @ col_scalar))
      6 print(v.is_scalar())
----> 7 print(repr(col_scalar.T @ v))

~/Documents/wdp2/jupyter-venv/lib/python3.7/site-packages/cvxpy/expressions/expression.py in cast_op(self, other)
     47         """
     48         other = self.cast_to_const(other)
---> 49         return binary_op(self, other)
     50     return cast_op
     51

~/Documents/wdp2/jupyter-venv/lib/python3.7/site-packages/cvxpy/expressions/expression.py in __rmatmul__(self, other)
    436         """Expression : Called for matrix @ Expression.
    437         """
--> 438         return other.__matmul__(self)
    439
    440     def __neg__(self):

~/Documents/wdp2/jupyter-venv/lib/python3.7/site-packages/cvxpy/expressions/expression.py in cast_op(self, other)
     47         """
     48         other = self.cast_to_const(other)
---> 49         return binary_op(self, other)
     50     return cast_op
     51

~/Documents/wdp2/jupyter-venv/lib/python3.7/site-packages/cvxpy/expressions/expression.py in __matmul__(self, other)
    395         """
    396         if self.is_scalar() or other.is_scalar():
--> 397             raise ValueError("Scalar operands are not allowed, use '*' instead")
    398         return self.__mul__(other)
    399

ValueError: Scalar operands are not allowed, use '*' instead

Notice that the numpy 1x1 matrix multiplication worked and that the 1x1 Variable object says that it's a scalar.
Because of this I have to special case for when there's one variable versus more than one.

I agree that this behavior should be fixed. The recommended semantics of the @ operator are given in https://legacy.python.org/dev/peps/pep-0465/#semantics.
Right now Expression.is_scalar() simply returns  all( d == 1 for d in self.shape ). As a result, Expressions of shape (1,1), (1,), and () are all considered scalars in cvxpy. Meanwhile the recommended semantics of the @ operator use the term "scalar" only to mean things with .shape == ().
So @wkschwartz it's easy enough to fix your particular example. We would just need to change the check on line 396 of  expression.py to check self.shape == () or other.shape == () rather than using cvxpy's is_scalar() function. I have tested this change on my fork of cvxpy and all unittests still pass.
Unfortunately the above one-line change will not completely resolve the discrepancies between cvxpy's implementation of @ and the recommended semantics (which have been adopted by numpy, pandas, blaze, and theano, among others). I haven't determined the full scope of the differences, but the following example
import cvxpy
import numpy as np
a = np.array([1])
x = cvxpy.Variable(shape=(1,)
expr = a @ x

has expr.shape == (1,), instead of expr.shape == () as per the recommended semantics.

@rileyjmurray Do you have a branch or pull request where you've made this change? (I just poked around your fork and didn't see anything.)

@wkschwartz I've lost track of where I made these changes. (I have two computers I work on. From time to time I have some uncommitted changes on one machine and I don't remember what they are, so I just reset to the most recent commit.)
Luckily, my comment was detailed enough that it shouldn't be hard for someone to recreate the changes. The main reason why I didn't create a PR is because I consider this issue unresolved until cvxpy completely matches the recommended semantics of the @ operator (I don't know what changes will be necessary for that to happen).

Follow-up:
The example below shows that when using the matmul operator between an n-by-n matrix and an n-by-1 vector, cvxpy drops the trailing 1 dimension of the result. This is a meaningful departure from the recommended semantics of the @ operator, and one that will affect cvxpy users (who might inadvertently create a malformed constraint expr1 == expr2 when expr1.shape == (n, 1) and expr2.shape == (n,)).
import numpy as np
import cvxpy
A = np.random.randn(4,4)
z = cvxpy.Variable(4, 1)
A @ z
>>> Expression(AFFINE, UNKNOWN, (4,))

Can all of the shape semantics of @ be fixed in https://github.com/cvxgrp/cvxpy/blob/16ad9adad944d4cb34275e2f7dd0e27788b47b18/cvxpy/expressions/expression.py#L390-L396 by .reshapeing the result, or does this have to be fixed in https://github.com/cvxgrp/cvxpy/blob/16ad9adad944d4cb34275e2f7dd0e27788b47b18/cvxpy/expressions/expression.py#L378-L388?

Actually, maybe it's best fixed here:
https://github.com/cvxgrp/cvxpy/blob/16ad9adad944d4cb34275e2f7dd0e27788b47b18/cvxpy/atoms/affine/binary_operators.py#L110-L113
and here:
https://github.com/cvxgrp/cvxpy/blob/16ad9adad944d4cb34275e2f7dd0e27788b47b18/cvxpy/atoms/affine/binary_operators.py#L274-L277

This is a bad situation. I hadn't realized there were so many failed cases. I'll take a look when I have time, and at least make @ cover the test cases here.

The "Semantics" section of PEP 465 may be a source of some test cases

This should be fixed now. These semantics are more painful than they appear, once they start interacting with the rest of the system. Maybe MATLAB is right to have everything as a matrix.

Also @rileyjmurray in you're example above you accidentally defined a Variable of shape (4,) with name 1. This should probably raise a warning.

I made naming a variable an integer an error.


setSpeakerphoneOn doesn't work

:beetle: Description
setSpeakerphoneOn doesn't work

I looked up documentation for setSpeakerphoneOn at https://github.com/zmxv/react-native-sound/wiki/API, where it states that you just need to pass a boolean value into it. What I'm trying to achieve is to have a toggle button for switching on and off setSpeakerphoneOn for voicemail files
:beetle: What is the observed behavior?
Doesn't seem to work

:beetle: What is the expected behavior?
Expected to have a toggle button for switching on and off setSpeakerphoneOn for voicemail files

:beetle: Please post your code:
Posting snippets of my code:
...
  play = async () => {
    if (this.sound) {
      this.sound.play(this.playComplete)
      this.setState({playState: 'playing'})
    } else {
      const { id, userCredential, contentUrl } = this.props
      const voiceMailURL = `${contentUrl}/content/voicemail/get?msgId=${id}&token=${userCredential.access_token}`
      this.sound = new Sound(voiceMailURL, '', (error) => {
        if (error) {
          Alert.alert('Notice', 'audio file error. (Error code : 1)')
          this.setState({playState: 'paused'})
        } else {
          this.setState({playState: 'playing', duration: this.sound.getDuration()})
          this.state.useEarPiece ? this.sound.setSpeakerphoneOn(true) : this.sound.setSpeakerphoneOn(true)
          this.sound.play(this.playComplete)
        }
      })
    }
  }
  playComplete = (success) => {
    if (this.sound) {
      if (success) {
      } else {
        Alert.alert('Notice', 'audio file error. (Error code : 2)')
      }
      this.setState({playState: 'paused', playSeconds: 0})
      this.sound.setCurrentTime(0)
    }
  }
 toggleUseEarPiece = () => {
    this.setState({
      useEarPiece: !this.state.useEarPiece
    })
  }
render () {
...
  <View style={{flexDirection: 'row', justifyContent: 'center'}}>
                        {this.state.playState === 'playing' &&
                        <TouchableOpacity style={{marginHorizontal: 20}} onPress={this.pause}>
                          <Icon color='#000' name='ios-pause' size={20} type='ionicon' />
                        </TouchableOpacity>}
                        {this.state.playState === 'paused' &&
                        <TouchableOpacity style={{marginHorizontal: 20}} onPress={this.play}>
                          <Icon color='#000' name='md-play' size={20} type='ionicon' />
                        </TouchableOpacity>}
                      </View>
...
<TouchableOpacity onPress={this.toggleUseEarPiece}>{speaker}</TouchableOpacity>
}

:bulb: Does the problem have a test case?

:bulb: Possible solution

:bulb: Is there a workaround?

:bulb: If the bug is confirmed, would you be willing to create a pull request?

Is your issue with...

[ ] iOS
[ ] Android
[ ] Windows

Are you using...

[ ] React Native CLI (e.g. react-native run-android)
[ ] Expo
[ ] Other: (please specify)

Which versions are you using?

React Native Sound:
React Native:
iOS:
Android:
Windows:

Does the problem occur on...

[ ] Simulator
[ ] Device

If your problem is happening on a device, which device?

Device:

I just noticed the same thing testing on Android. On iOS, I previously used setPlaybackCategory to create a toggle, but that does not work on Android either.

@brianomchugh What library did you use to get setPlaybackCategory? I checked on react-native-sound there's no such method..

Oops, I meant setCategory... the following works for me with iOS and<EMAIL_ADDRESS>(old version). I am going to try an older version on Android to see if it does anything.
if (this.state.speaker) {
  this.sound.setCategory("PlayAndRecord")
} else {
  this.sound.setCategory("Playback")
}

@pappricot I just noticed in your code you have true for both values of the toggle:
this.state.useEarPiece ? this.sound.setSpeakerphoneOn(true) : this.sound.setSpeakerphoneOn(true)

@pappricot any update on this?

any updates? I can't change the speakers output of on android!


Performance of Meta-DETR without meta-finetuning?

Some works on meta-learning for few-shot object detection also report their scores without meta-finetuning on the novel classes. Have you tried using Meta-DETR in this way? If so, what were the results & observations?

I've evaluated the provided model after base training on novel sets. It seems are overfitting on base sets.
COCO:
Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.006
Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=100 ] = 0.011
Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=100 ] = 0.005
Average Precision  (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.004
Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.008
Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.009
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=  1 ] = 0.040
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets= 10 ] = 0.085
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.093
Average Recall     (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.051
Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.085
Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.166
VOC1:
Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.003
Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=100 ] = 0.005
Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=100 ] = 0.003
Average Precision  (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.001
Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.003
Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.004
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=  1 ] = 0.088
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets= 10 ] = 0.188
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.216
Average Recall     (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.085
Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.161
Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.259

Yes. Meta-DETR requires fine-tuning to work on novel classes.

Which reason do you think may limit the Meta-DETR to work on novel sets w/o fine-tuning, and how to solve this? As a class agnostic predictor, I thought Meta-DETR would get better results w/o fine-tuning.

Yes. Meta-DETR requires fine-tuning to work on novel classes.

@nanfangAlan I think this is a phenomenon that can be observed for most meta learners. On the upside, there are some works that target this settings specifically.  Maybe FS-DETR could be an interesting paper to look at for you 😊

Ah, I just remembered AirDet: Few-Shot Detection without Fine-Tuning for Autonomous Exploration, which also claims being a few-shot object detector without fine-tuning. 😊


utf-8 decode bytes inputs for python3 compat + python3 test fix

json loading: always utf-8 decode bytes inputs
tests: use six.moves.urllib for py2/3 compatibility

Coverage increased (+0.15%) to 64.95% when pulling ed365860e4b615dc17291fbbc29a0383288344ed on saaros:py3-compat into 0a6241c792f0c833f2f176292b0c7ea5623eabfd on google:master.

This PR fixes #150 which also had a proposed but slightly broken fix in #152.

Added a commit to convert the last remaining uses of six.binary_type to bytes which was already being used in most places.

Coverage increased (+0.13%) to 64.93% when pulling 3584b074674a6fb9e3fb109d3e46031194fa7545 on saaros:py3-compat into 0a6241c792f0c833f2f176292b0c7ea5623eabfd on google:master.

+1
Are there any other considerations around this PR that are keeping it from being merged?  I'm completely unable to use Python 3 in my infrastructure solely due to this issue.

@sullivanmatt Have you updated httplib2? Is it still an issue with the latest httplib2 (which now does support Python 3 correctly, and fixed many issues here)?

I'm using httplib2 0.9.1 (latest).
Here's the error I believe this would resolve (haven't checked out the branch to test, I admit) -
access_token = get_access_token_from_cache()
credentials = AccessTokenCredentials(access_token, user_agent="httpclient/1.0")
http = httplib2.Http()
http = credentials.authorize(http)

Traceback (most recent call last):
  File "/opt/project-service/project_service/gproject_service/__init__.py", line 160, in _get_history
    labelId="INBOX").execute(http=http)
  File "/home/msulliv/mb-project-sdk-py3/lib/python3.4/site-packages/oauth2client/util.py", line 137, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/home/msulliv/mb-project-sdk-py3/lib/python3.4/site-packages/googleapiclient/http.py", line 722, in execute
    body=self.body, headers=self.headers)
  File "/home/msulliv/mb-project-sdk-py3/lib/python3.4/site-packages/oauth2client/util.py", line 137, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/home/msulliv/mb-project-sdk-py3/lib/python3.4/site-packages/oauth2client/client.py", line 549, in new_request
    self.apply(headers)
  File "/home/msulliv/mb-project-sdk-py3/lib/python3.4/site-packages/oauth2client/client.py", line 615, in apply
    headers['Authorization'] = 'Bearer ' + self.access_token
TypeError: Can't convert 'bytes' object to str implicitly

@sullivanmatt Your stacktrace doesn't seem to match the code snippet.
After running pip3 install -U oauth2client (which also updates the dependencies) and running a related snippet with both bytes and unicode I can reproduce the failure
$ python3
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from oauth2client.client import AccessTokenCredentials
>>>
>>>
>>> creds_unicode = AccessTokenCredentials(u'foo', user_agent='UA')
>>> headers = {}
>>> creds_unicode.apply(headers)
>>> print(headers)
{'Authorization': 'Bearer foo'}
>>>
>>> creds_bytes = AccessTokenCredentials(b'bar', user_agent='UA')
>>> headers = {}
>>> creds_bytes.apply(headers)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.4/dist-packages/oauth2client/client.py", line 615, in apply
    headers['Authorization'] = 'Bearer ' + self.access_token
TypeError: Can't convert 'bytes' object to str implicitly

For whatever reason I didn't realize this until I saw your reproduction above, but simply doing access_token.decode('utf-8') was sufficient to get around the issue for the time being.

@sullivanmatt Do you mind if we close out. A lot of the changes are just bytes "grammar" changes.
But there are some places where you add explicit decodes:
    resp, content = http_request(token_revoke_uri)
    if isinstance(content, bytes):
      content = content.decode('utf-8')
...
  def from_json(cls, s):
    if isinstance(s, bytes):
      s = s.decode('utf-8')
...
  if isinstance(content, bytes):
    content = content.decode('utf-8')
  if resp.status == 200:
    # WAS certs = json.loads(content.decode('utf-8'))
    certs = json.loads(content)

How did you go about determining these were needed?

I am not the author of this PR (@saaros is), so I can't comment on his methodology.

D'oh! The passage of time has made me weak and dumb :)

We've all been there man.  Thanks!

It's to make sure the input to json.loads() is always an unicode string; it's not always clear where the input comes from and whether it's bytes or unicode.  Having if isinstance(s,bytes): s = s.decode("utf-8") in every place that loads json isn't pretty, though.  A function in util.py to do it would probably look cleaner.

I agree with you there. Do you mind breaking this into two PRs: one with the bytes grammar fix and the other with the actual code path fixes. (Or I can do it and CC you on the PRs.)
Also, how did you locate all the code paths you edited?

I just ran git grep to find them after I ran into various problems using this library on Python 3.  Do you want the commit 3584b074674a with the six.binary_type -> bytes change in a PR of its own leaving the other two ("fix urllib tests on py3" and "utf8-decode before json.loads") in this PR?

The bytes grammar stuff I'm referring to is removing six.PY3 and just using bytes instead of six.binary_type.
The "fix urllib tests on py3" is somewhat moot since App Engine only supports Py27
utf8-decode before json.loads is fine in this PR but seems worth just closing and opening a new one given your suggestion for moving the functionality to utils.

@nathanielmanistaatgoogle I am going through this to see if there is anything we missed in #250

Closing since #272 is in


Refactor/1303/register theme

Description
Removed ThemeContext from register page
Checklist

[x] 🔽 My branch is up-to-date with "development" branch
[x] ✅All tests passed locally
[x] ✨My changes working with up-to-date admin and back-end part locally, like charm
[x] 🔗 Link pull request to issue

Please add screenshot of console. It should be clear.

Please prove that console is clear


"That model is currently overloaded with other requests"

'That model is currently overloaded with other requests. You can retry your request, or contact us through our help center at help.openai.com if the error persists. (Please include the request ID de79efb84259b34394b36c1f27bb548c in your message.)',
type: 'server_error'

You can use text-davinci-003 if you don't mind paying for API usage. Otherwise, we can only wait until the model is not overloaded.

I'm getting the exact error, even though I can access ChatGPT just fine through their website using the same account. Does anyone have the same issue?

I have the same issue ( "Failed to send message. HTTP 503 - Service Unavailable" )
Been having this problem since I woke up 8 hours ago, chatgpt works fine for me too ( on their website )
Is it possible that they patched this?

I have the feeling they're cracking down on this. Unfortunately, the browser-based version isn't working anymore either, because they either changed their layout or they got better at detecting puppeteer. Really bothers me because there is still no official API and I really wouldn't mind paying for it.

@jgontrum From what I heard, the chatgpt npm package v3 still works, but you need to go back one patch version because OpenAI switched the model name back from the -next version.
I updated the readme:

Even though text-chat-davinci-002-20221122 is back up again, it seems like it's constantly overloaded and returns a 429 error. It's likely that OpenAI only dedicated a small amount of resources to this model to prevent it being widely used by the public. Additionally, I've heard that newer versions are now access-locked to OpenAI employees and partners, so it's unlikely that we'll be able to find any workarounds until the model is officially released.
You may use the text-davinci-003 model instead as a drop-in replacement. Keep in mind that text-davinci-003 is not as good as text-chat-davinci-002 (which is trained via RHLF and fine-tuned to be a conversational AI), though results are still pretty good in most cases. Please note that using text-davinci-003 will cost you credits ($).
I will be re-adding support for the browser-based ChatGPT for the API server and CLI. Please star and watch this repository for updates.


Create Component Library

We have designs for a full component library here: https://www.figma.com/file/YxjgMO6YlW8wvK6obiQgfU/Build-DAO?node-id=1898%3A146&mode=dev
We need to implement each component's design, and then we can present them via a library.
Good examples of libraries to fork:
N.Library
NUI
near/widget/DIG
Option to write components in Typescript using bos-workspace.

Components are just widgets, so socialdb
And then library can just be hardcoded list like in mob.near/widget/N.Library


Quetion：how to use a new  dataset

I am a beginner. I want to use my own dataset. I only change the path of dataset.  I already create a new catalog.But I still get the error.
FileNotFoundError: [Errno 2] No such file or directory: './data/imagenet'
How can I solve the problem.

I think you need to use --dataset off instead of --dataset imagenet

thank you sir. i have already solved this problem. but i.dont have enough gpu to run this code.  i feel very sad.....

@cscss How did you manage to do it?


A bug in Chinese Typescript Document.

I find one difference between the Chinese document and the origin document in the Generics section of Handbook which makes me confused.
In the origin document, it says:
function getProperty<T, K extends keyof T>(obj: T, key: K) {
    return obj[key];
}

let x = { a: 1, b: 2, c: 3, d: 4 };

getProperty(x, "a"); // okay
getProperty(x, "m"); // error: Argument of type 'm' isn't assignable to 'a' | 'b' | 'c' | 'd'.

But in Chinese document, it says:
function getProperty(obj: T, key: K) {
    return obj[key];
}

let x = { a: 1, b: 2, c: 3, d: 4 };

getProperty(x, "a"); // okay
getProperty(x, "m"); // error: Argument of type 'm' isn't assignable to 'a' | 'b' | 'c' | 'd'.

I would like to fix the document but I don't know how to  contribute to the Chinese website.

This is either a bug in the html generation or some sort of user error in the CMS.  If you look at the rendered output in browser devtools, the <T, K extends keyof T> is actually there as a dom element with tagName T, and attributes k, extends, keyof, t.

This is either a bug in the html generation or some sort of user error in the CMS. If you look at the rendered output in browser devtools, the <T, K extends keyof T> is actually there as a dom element with tagName T, and attributes k, extends, keyof, t.
hhhh, I find that.

We don't control tslang.cn

The site seems outdated for a long time...
If you wanna read the Chinese edition, see this https://legacy.gitbook.com/book/zhongsp/typescript-handbook/details

The site seems outdated for a long time...
If you wanna read the Chinese edition, see this https://legacy.gitbook.com/book/zhongsp/typescript-handbook/details

Great! Thanks!

The site seems outdated for a long time...
If you wanna read the Chinese edition, see this https://legacy.gitbook.com/book/zhongsp/typescript-handbook/details

Is this the latest version?


Design issue with Login button in AdminSignUp screen.

I think Login button Should have similar UI like Signup Button for better user experience

The login button should have similar dimensions as the signup button. The colour of the selected button must change on click

closed


Switch to sbt-coursier 2.0.0-RC3

I think we have to fix publishing 0.8.0 to make the CI build happy again.

I think we have to fix publishing 0.8.0 to make the CI build happy again.
Just managed to get 0.8.0 out of the door, with the latest sbt-sonatype / sbt-ci-release 🎉

That's great! The website seems to be still at 0.6.0 even though the push website task was successful. 🤔


Report previews don’t seem to get updated when you open a workspace chat.

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

Version Number: v1.4.32-2
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @puneetlath
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1706277477200979
Action Performed:

create a expense report as a employee
Be offline as a admin
Submit report as a member
Check the LHN and report preview

Expected Result:
Report preview and LHN should get updated as "submitted"
Actual Result:
Not updated until the user clicking on the report
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/38435837/30adb168-d0f8-4c2e-9398-cc401967f3d2

View all open jobs on GitHub

@vit tagging you as per here

I think we can make this a hot pick, I already got some wave issues to get through, I might pick it up if nobody else will in the mean time

Does it need to be internal?

I would say yes!

A hot HOT pick

Commented here a possible cause of why we're not sending the updated report actions when the workspace chat is opened. I will continue with the investigation today.

I can't reproduce this one. Probably it's fixed with the latest changes. I'm going to apply the retest-weekly label.

Just encountered it on MacOS version v1.4.35-7 with a scheduled submit report. I think you could probably repro using these instructions:

Create expense on Collect workspace with Scheduled Submit enabled to daily
Scan receipt in workspace chat
Wait a day
Report will scheduled submit
Report preview will not update until you click into it

I think this error is related to this bugbot I'm hunting https://github.com/Expensify/Expensify/issues/366360, with the added logs I will work on a fix today

Created another PR to log more data for the SubmitReport bugbot, which could also be related.

Probably also related to this one

@marcochavezf is working on it Melv.

Fixing SSDos locally https://expensify.slack.com/archives/C03TQ48KC/p1708384890886629 to try to reproduce it

I submitted a request via SSDos locally and got the correct preview:

Waiting to be re-tested per retest-weekly label

Waiting for retests

Issue is reproducible during KI retests.

Hi @mvtglobally just to be sure about the reproducible issue, in the video from the OP the report preview is updated with the Settlement button for the admin after they came back from offline, and I think that's expected because otherwise the Submit button should appear indicating the report hasn't been submitted, no?

I followed the steps from the OP and I'm not really sure what's missing here. The report preview and LHN are updated:
https://github.com/Expensify/App/assets/6829422/385a006d-15cd-4281-8db1-e0b58a5dff23
https://github.com/Expensify/App/assets/6829422/6e3032e5-fa1d-49ad-bbc5-ae02b32c6d4e
From the expected behavior in the OP we mention:

Report preview and LHN should get updated as "submitted"

But we're updating the report preview with the Settlement button (we show either Pay or Approve depending on the policy settings), and in the LHN we show "{policy} owes {amount}" not submitted.

Discussed here about closing it since instructions for expected output are not clear and the report preview issue hasn't happened lately. We can re-open or create another issue if another similar problem occurs.


Feat/enhance-with-regex

Allows us to have our cake and eat it by taking markdown links from tsdoc and formatting it into the correct  in the docs. Code is still not done, nor are tests, which are CRITICAL for this.

@ryceg Note that with the upcoming Table refactors I had to reworked a bit of the Sveld Mapper utilities. The data structure for the new tables is different. You can see the changes on my draft PR for tables.

@ryceg Given this one is becoming a bit long in the tooth, and we've not really had any major issues to the existing setup, what do you think about closing this issue for now? Perhaps returning to this in the future if we see a major Svelte update occur. Make it a more consorted effort to push this forward in a major way?

Agreed- YAGNI is probably going to hold true here, and we can always revisit if we do end up needing it.


username and tweet ID no longer is saved as filename.

any twitter url i pass to the script results in this.
Screenshot is saved: @twitter.com_None_tweetcapture.png
so I end up with filename already exists message with each new URL I try to screenshot.

Sorry, i'm late.
Fixed on 0.2.2, update the module.  pip3 install -U tweet-capture
Commit: https://github.com/xacnio/tweetcapture/commit/e57ab58467baa3e99bff1c838d902190a87518fa
Also the docker image just updated:
https://hub.docker.com/r/xacnio/tweetcapture


chore: Redirect case.html

This will fix the tests in https://github.com/PRQL/prql/pull/2040

OK I applied only the correct diff to web and pushed manually. It's correct that the redirect won't be on main, and so will get blasted away when we force push main when we release

I git pinged from the commit message. Is using the backport bot really easier than a push to web branch?

I think you get pinged because it has every commit in it, because I messed up the merge.

Is using the backport bot really easier than a push to web branch?

Yes — much!


Grad-CAM: obtaining classification score before softmax

Hello,
The original Grad-CAM paper (link) mentions obtaining the gradients of the class score y^c before softmax. However, the Keras implementation (link) does not seem to do this (added in commit e005c9014d19f3dffb0ca983b20eb5a2c3864a3a)? Is this a bug or am I interpreting it incorrectly?
Thank you!

Line 97 does dy^c/dA then line 101 computes the global average pooling in equation (1) of the paper.

Agree that the derivatives are taken after softmax here unlike the original grad-cam. Although I haven't seen visual differences between cams produced by before/after softmax.
PS. Can be easily fixed by setting the last layer's activation to None.

The only concern is that the final heatmap might not be entirely faithful since it has been distorted by a non-linear activation function?

@sravan953 , Could you please verify the commit https://github.com/keras-team/keras-io/commit/543ece4dbf0cb540796894eddca447fcecd971a0 which addressed this issue.
If you are satisfied with the above commit, feel free to close this issue. Thanks!


Update deprecated ButtonTheme.bar constructor in MyAlertDialog

The utils/my_alert_dialog.dart file is using the constructor ButtonTheme.bar and it is deprecated now. It should be updated to ButtonBarTheme.

ButtonTheme.bar is removed in Flutter version 1.26.0-17.3.pre. Please update ASAP.

No update for 9 months, I guess author forgot about this project...


Added conversion script for keras-yolo3 project annotations.

Added new extra script to support the conversion from keras-yolo3 project annotations. The extra/README.md has also been updated.

Great code! :1st_place_medal:


Cannot call method expectsOutput() on Illuminate\Testing\PendingCommand|int.

Larastan Version: 2.2.9
--level used: 8
Pull request with failing test:

Description
Hi. My tests are working well. But when i run larastan i get error in this place
Cannot call method expectsOutput() on Illuminate\Testing\PendingCommand|int.
Cannot call method doesntExpectOutput() on Illuminate\Testing\PendingCommand|int.

Laravel code where the issue was found
$this->artisan('import:genres')
            ->expectsOutput('Import Genres - Success')
            ->assertExitCode(0);

$this->artisan('import:genres')
            ->doesntExpectOutput('Import Genres - Success')
            ->assertExitCode(0);

Hi! 👋🏻 Do you mean they never return an integer?

I am new to larastan/phpstan. And I don't understand this error. And I want to solve it. I thought the Laravel code should work without errors

In other words what can $this->artisan('import:genres') return?

In other words what can $this->artisan('import:genres') return?
return void

//File - App\Console\Commands\ImportGenres
    /**
     * Execute the console command.
     *
     * @param Kodik $kodik
     * @return void
     */
    public function handle(Kodik $kodik): void
    {
        try {
            $kodik->importGenres($kodik->getGenresByApi());
            $this->info('Import Genres - Success');
        } catch (\Exception $exception) {
            $this->error('Import Genres - Something went wrong.' . $exception->getMessage());
        }
    }

// File  App\Services\Kodik;
/**
     * Import genres
     *
     * @param array<stdClass> $genres
     *
     * @return void
     */
    public function importGenres(array $genres): void
    {
        foreach ($genres as $genre) {
            Genre::firstOrCreate([
                'name' => $this->ucfirstGenre($genre->title),
            ]);
        }
    }

@szepeviktor szepeviktorThis is base laravel method and he return - @return \Illuminate\Testing\PendingCommand|int

It seems it depends on that if condition.
Do you what that mockConsoleOutput is?

@szepeviktor Don't know. This is the base code from the Laravel 9 repository

You can add a stub with conditional return type?
Would you do that or rather copy it from my comment?

parameters:
	stubFiles:
		- stubs/InteractsWithConsole.stub

namespace Illuminate\Foundation\Testing\Concerns {

trait InteractsWithConsole
{
    /**
     * @param  string  $command
     * @param  array  $parameters
     * @return ($this->mockConsoleOutput is true ? \Illuminate\Testing\PendingCommand : int)
     * @return
     */
    public function artisan($command, $parameters = []);
}
}

namespace Illuminate\Testing {

class PendingCommand {}
}

I'm not sure about $this->mockConsoleOutput
https://phpstan.org/blog/phpstan-1-6-0-with-conditional-return-types

@szepeviktor Thanks a lot ! I checked and it works.
Is it possible to replace the stub with a comment like  /** @phpstan-assert-if-true !null $this->getName() */  ?
https://phpstan.org/writing-php-code/narrowing-types

Is it possible

I do not know that.


Off Entry Point Patching (PE)

Because it's not that hard.  No reason to execute a binary in memory (like other tools) to patch at random spots in the in binary.

New resume execution stubs will need to be completely position independent. Make for x86/x64 payloads.
Use the following method to find ASLR offset: PEB imagebase - expected imagebase (then correct for signed-ness):
"\x31\xd2"             # xor edx, edx                           ;prep edx for use
"\x64\x8b\x52\x30"     # mov edx, dword ptr fs:[edx + 0x30]     ;PEB
"\x8b\x52\x08"         # mov edx, dword ptr [edx + 8]           ;PEB.imagebase

Another note, will need to patch in payloads at end of sections (slack space) vs any code cave as determining if a cave is valid at this point is indeterminate.  Prior solutions involve clearing caves in memory prior to continuing main process execution - which is not an option when off entry patching.

https://github.com/secretsquirrel/the-backdoor-factory#the-backdoor-factory-is-no-longer-maintained-or-supported


Website

Uploading CyberTech services.zip…

<EMAIL_ADDRESS>

<EMAIL_ADDRESS>

Uploading CyberTech services.zip…


Not available in this source

I'm unable to sync the packages. Even after connecting to the feed, I still get a warning icon on the packages. And in Nuget Package Manger console I'm getting "Not available in this source"
Just wanted to check, in the Feeds in my Azure account I see this.

No packages have been promoted to this release view
Look for the Promote button on any package.
Learn more about views

Is this what caused the nugget packages to not update in my solution?

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

ID: f5b066ca-c13e-9f25-3add-844012d105f1
Version Independent ID: 47ac81a1-d4a7-8d74-b59a-2cf143a9684c
Content: Get started with NuGet packages - Azure Artifacts
Content Source: docs/artifacts/get-started-nuget.md
Product: devops
Technology: devops-artifacts
GitHub Login: @ramiMSFT
Microsoft Alias: rabououn

@pradeepradyumna - Thanks for your question. It looks like you're working through an issue with your scenario or implementation, rather than an issue with the documentation. Please consider these resources:

Azure DevOps Services
Azure DevOps Support Bot
Azure DevOps on Stack Overflow


xaxis showing non-existed label

Bug report
Here is my codepen: https://codesandbox.io/s/react-basic-example-9d4hx
Before updating chart, the last label of xaxis is at the bottom of right yaxis. After updating, the first xaxis label is missing.

Your codesandbox shows this

Can you please update the codesandbox?


Adjust Gallery Profile Page content

Changes

Bump up username header font size
adjust spacing
Add Curator since {created_at}
Fix word break/wrapping for bio text  and reduce total width of bio text box

Blocked by backend change to return created_at for User Get

Backend PR: https://github.com/gallery-so/go-gallery/pull/161/files


Csv replacements

Coverage decreased (-2.23%) when pulling 6983b807ec1641ff933a5d56613b06c78e2a7cc8 on csv_replacements into ef972f95e0be65b1536684659d592e84b18c9d6e on master.

Changes Unknown when pulling 0e2e8aa83e138ee43171ce4fc59ef7a9b6f9f995 on csv_replacements into ** on master**.

Coverage increased (+0.26%) when pulling 0e2e8aa83e138ee43171ce4fc59ef7a9b6f9f995 on csv_replacements into e87d406f412b640de46e2b1162e879cec7f3c14d on master.


Port to CHICKEN 5

Since I needed this tool to generate the wiki pages for the OpenGL related eggs, I ported it to CHICKEN 5.
The changes make this repository compatible to both CHICKEN 4 and CHICKEN 5.

Sweet. Thanks, Kooda!

Could you also tag 0.3.0 please? :)
That’s the only thing left to do for me to add the egg to the repository.

💥


kibana_dashboard_only_user error for visualizations created in kibana-datasweet

Hello datasweet team,
I was super excited when I came across your plugin yesterday. I created a simple ratio of two aggregations and added them to a dashboard 📈.
However, when viewing this dashboard in dashboard_only_mode, all my regular visualizations were displayed properly except for the one I created with datasweet 📉 .
Below is my role configuration for the user with kibana_dashboard_only_user role. I tried elevating him and granted him access to .kibana index and all privileges but I still get the same error:
Visualize: undefined is not an object (evaluating 'agg.type.postFlightRequest')
Note that I do not see this error with the superuser. I tried giving my dashboard only user privileges similar to a superuser but I still get the same error with no visualization (the data is there though available for export)
Below are some screenshots for this issue.
Please help us out as this is breaking our dashboard.
Happy to assist in any way I can,
George

Hi @georgezoto
Please try the last release (v1.1.0)


BAU Add (TMP) CSPs for card payment page

adds helmet
basic configuration for reporting on CSP violation (report only)
new keys have been generated for this test waiting on the decision to use sentry or not

That was cleaned up and properly implemented in https://github.com/alphagov/pay-frontend/pull/1172


DefaultCursor does not work with Motion Controller Teleportation

Teleportation does not work if you are using the default cursor prefab in your scene, works fine when using Cursor prefab

Hmm, I wonder what the difference is.

Hmm, that's odd. Granted I've only used cursor so far and haven't tried the others. Will investigate


Running Nobara 40 Wayland on 4k resolution fonts are so small

Running Nobara 40 Wayland on 4k resolution fonts are so small
installed thru flatpak but can't change the fonts thru
--force-device-scale-factor=1.6
flatpak run com.ktechpit.whatsie --force-device-scale-factor=1.6 QSocketNotifier: Can only be used with threads started with QThreadqt.qpa.qgnomeplatform: Could not find color scheme  "" WhatSie: Unknown option 'force-device-scale-factor'.
I did the same command and edit it on spotify.desktop and it working flawlessly but on this app doesn't work
please help

I wanna know how to change font size as well

I found a zoom option in settings that solved my problem

I found a solution by right clicking on the dash menu then settings
and then change the zoom factor when normal to 1.75
when in full screen to 2.25

If your system do not have a system try icon, you can open the applicaton settings using shortcut Ctrl+P


Added tests for BT/BTS/BTR/BTC instructions

Follow-up patch for #122.
Signed-off-by: Alexandro Sanchez Bach<EMAIL_ADDRESS>

All done!

and unnecessarily introducing the readonly_dst parameter. Sorry!

It's alright, I will probably fix it in a future PR since I wanted to improve the flexibility of the test_insn_xN_xN functions anyway. Specifically, I wanted to template them over both integers N and M: test_insn_xN_xM. But I'll queue that for a future PR.


OAuthTest failed on all platforms since added with jdk17

OAuthTest failed on all platforms since added on Nove 9th.
The last successful build on Nov 7th. https://ci.adoptopenjdk.net/job/Test_openjdk17_hs_extended.system_x86-64_windows/
09:21:35  STF 22:21:34.913 - |
09:21:35  STF 22:21:34.913 - Monitoring processes: CLI
09:21:35  CLI log in YES!
09:21:35  CLI 8889
09:21:36  CLI stderr Exception in thread "main" java.lang.RuntimeException: unexpected result
09:21:36  CLI stderr 	at net.adoptopenjdk.test.auth.Client.main(Client.java:66)
09:21:36  STF 22:21:36.434 - **FAILED** Process CLI ended with exit code (1) and not the expected exit code/s (0)
09:21:36  STF 22:21:36.434 - Monitoring Report Summary:
09:21:36  STF 22:21:36.434 -   o Process CLI ended with exit code (1) and not the expected exit code/s (0)
09:21:36  STF 22:21:36.434 - Killing processes: AUTH CLI SER
09:21:36  STF 22:21:36.434 -   o Process CLI pid 30296 is not running
09:21:36  STF 22:21:36.434 -   o Process AUTH pid 13152 stop()
09:21:36  STF 22:21:36.435 -   o Process AUTH pid 13152 killed
09:21:36  AUTH stderr java.io.IOException: headers already sent
09:21:36  AUTH stderr 	at jdk.httpserver/sun.net.httpserver.ExchangeImpl.sendResponseHeaders(ExchangeImpl.java:206)
09:21:36  AUTH stderr 	at jdk.httpserver/sun.net.httpserver.HttpExchangeImpl.sendResponseHeaders(HttpExchangeImpl.java:85)
09:21:36  AUTH stderr 	at net.adoptopenjdk.test.auth.AuthCenter$ProtectedResourceHandler.handle(AuthCenter.java:133)
09:21:36  AUTH stderr 	at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:95)
09:21:36  AUTH stderr 	at jdk.httpserver/sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:82)
09:21:36  AUTH stderr 	at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:98)
09:21:36  AUTH stderr 	at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:728)
09:21:36  AUTH stderr 	at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:95)
09:21:36  AUTH stderr 	at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:695)
09:21:36  AUTH stderr 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
09:21:36  AUTH stderr 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
09:21:36  AUTH stderr 	at java.base/java.lang.Thread.run(Thread.java:833)
09:21:36  STF 22:21:36.435 -   o Process SER pid 13708 stop()
09:21:36  STF 22:21:36.436 -   o Process SER pid 13708 killed

@joeyleeeeeee97 could you take a look at this?

https://github.com/adoptium/aqa-tests/issues/3223#issuecomment-1015602055

Also failing on sparcv9_solaris jdk8 (see https://github.com/adoptium/aqa-tests/issues/4518#issuecomment-1516315745).


Ilan/katalyst

updating search best rate to search best dest amount
naming;
slippageRate to worstRate
slippage is the wrong name.

Don't forget to handle backwards compatibility


[BUG] Helm Chart's templates do not use the tolerations except in the Deployment yaml

Do you want to request a feature or report a bug?
Bug
What did you do?
I created a cluster with tainted server nodes:
k3d cluster create dev --api-port 6551 --port "8081:80@loadbalancer" --servers 3 --k3s-server-arg --node-taint="CriticalAddonsOnly=true:NoExecute" --k3s-server-arg "--no-deploy=traefik"

Then I tried to install Traefik from the Helm chart with added tolerations
helm install traefik traefik/traefik --set tolerations[0].key=CriticalAddonsOnly --set tolerations[0].operator=Exists --set tolerations[0].effect=NoExecute

When I try to reach the dashboard, I get a 404.
kubectl port-forward $(kubectl get pods --selector "app.kubernetes.io/name=traefik" --output=name) 9000:9000

# I then went to http://<IP_ADDRESS>:9000/dashboard/

What did you expect to see?
The dashboard
What did you see instead?
A 404 Not Found message.
Output of traefik version: (What version of Traefik are you using?)
2.3.6

The Workaround
I was able to get it to work by:

Uninstalling Traefik helm uninstall traefik
Creating non-tainted worker nodes k3d node create worker --cluster dev --replicas 3
Reinstalling traefik

Then I was able to reach the dashboard. But I should have been able to add tolerations to everything Traefik installs.

Hello @dmusicant-dk,
Sorry for late answer :-)
I'm not able to reproduce your issue with the current helm template and traefik versions.
k3d cluster create --k3s-arg '--no-deploy=traefik@servers:*' --k3s-arg '--node-taint=CriticalAddonsOnly=true:NoExecute@all:*' --image="rancher/k3s:v1.23.13-k3s1"

helm repo add traefik https://helm.traefik.io/traefik
helm repo update
helm install traefik traefik/traefik --set tolerations[0].key=CriticalAddonsOnly --set tolerations[0].operator=Exists --set tolerations[0].effect=NoExecute

kubectl port-forward $(kubectl get pods --selector "app.kubernetes.io/name=traefik" --output=name | head -n 1) 9000:9000

It works:
$ curl -XGET http://<IP_ADDRESS>:9000/dashboard/ -I
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 3124
Content-Security-Policy: frame-src 'self' https://traefik.io https://*.traefik.io;
Content-Type: text/html; charset=utf-8
Date: Wed, 09 Nov 2022 14:21:47 GMT

and tolerations are correctly set:
$ kubectl get deployments.apps traefik -o jsonpath='{.spec.template.spec.tolerations}'
[{"effect":"NoExecute","key":"CriticalAddonsOnly","operator":"Exists"}]

Same thing with daemonset deployment kind:
$ kubectl get daemonsets.apps traefik -o jsonpath='{.spec.template.spec.tolerations}'
[{"effect":"NoExecute","key":"CriticalAddonsOnly","operator":"Exists"}]

Feel free to reopen the issue if needed.
Rémi


Small home page usability improvements

Added bootstrap badges to tabs that have rentals available for processing and a separate tab for upcoming rentals(ones with a start_date of the current day or the next)

Like it!


Simplify search engine configuration updates

Every time a search engine changes the source markup of its results page, the extension needs to be updated so it can figure out where and when to apply colour treatments. This isn't a surprise, per se, but after several back-to-back changes by a certain unnamed world-dominating search conglomerate it's become a bit of a pain to have to issue an entirely new version every time a querySelector string needs to be updated.
Which begs the question of why these common configuration values, which are just simple strings, should be hard-coded into the extension. It may be better better to store them remotely somewhere they can be more easily updated, like a GitHub gist, and just retrieve them as necessary via API. This would decouple them from the extension's version cycle and improve responsiveness to the issue of changing result page markup, which will likely always exist.

Resolved as part of the v0.4.0 release. Additional details in #49.


[SPARK-45724][SQL][TESTS] Add a separate LogAppender for tests that need to print RuleExecutor.dumpTimeSpent() to avoid truncation of Metrics

What changes were proposed in this pull request?
https://github.com/apache/spark/pull/42627 set a character length limit for the error message and a stack depth limit for error stack traces to the console appender in tests, but this prevents test cases that want to print RuleExecutor.dumpTimeSpent() from printing the full content of Metrics of Analyzer/Optimizer Rules.
For example, when we execute build/sbt "sql/testOnly org.apache.spark.sql.TPCDSQuerySuite" , we expect to print the following content:
21:17:33.114 WARN org.apache.spark.sql.TPCDSQuerySuite:
=== Metrics of Analyzer/Optimizer Rules ===
Total number of runs: 182086
Total time: 4.221805454 seconds

Rule                                                                                Effective Time / Total Time                     Effective Runs / Total Runs

org.apache.spark.sql.catalyst.optimizer.Optimizer$OptimizeSubqueries                  656391832 / 657761083                           45 / 312
org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveReferences                     209532917 / 286447546                           573 / 1234
org.apache.spark.sql.execution.datasources.PruneFileSourcePartitions                  238715661 / 241609707                           203 / 312
org.apache.spark.sql.catalyst.optimizer.ColumnPruning                                 63600753 / 234425780                            387 / 2044
org.apache.spark.sql.catalyst.analysis.DeduplicateRelations                           59485458 / 206222280                            155 / 1234
org.apache.spark.sql.catalyst.analysis.UpdateAttributeNullability                     3079208 / 137877995                             4 / 934
org.apache.spark.sql.catalyst.optimizer.PruneFilters                                  4147166 / 132285283                             4 / 1732
org.apache.spark.sql.catalyst.optimizer.PushDownPredicates                            107897509 / 125084462                           931 / 2238
org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveSubquery                       109012041 / 114366501                           53 / 1234
org.apache.spark.sql.catalyst.optimizer.InlineCTE                                     101349876 / 101466710                           54 / 312
org.apache.spark.sql.catalyst.optimizer.InjectRuntimeFilter                           0 / 92098873                                    0 / 312
org.apache.spark.sql.catalyst.analysis.TypeCoercionBase$CombinedTypeCoercionRule      44246780 / 91358601                             184 / 1234
org.apache.spark.sql.catalyst.optimizer.InferFiltersFromConstraints                   81556996 / 82063666                             271 / 312
org.apache.spark.sql.execution.datasources.FindDataSourceTable                        74798168 / 78256868                             223 / 1234
org.apache.spark.sql.execution.datasources.SchemaPruning                              0 / 76585252                                    0 / 312
org.apache.spark.sql.catalyst.analysis.ResolveSessionCatalog                          37733330 / 64439109                             24 / 1234
org.apache.spark.sql.catalyst.optimizer.RewriteCorrelatedScalarSubquery               39675751 / 62437365                             7 / 1420
org.apache.spark.sql.catalyst.optimizer.Optimizer$FinishAnalysis                      44831887 / 60677804                             150 / 312
org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveFunctions                      51808084 / 59051168                             312 / 1234
org.apache.spark.sql.catalyst.optimizer.BooleanSimplification                         4117502 / 56255045                              5 / 1732
org.apache.spark.sql.catalyst.optimizer.FoldablePropagation                           3021751 / 54461997                              24 / 1420
org.apache.spark.sql.catalyst.optimizer.ConstantFolding                               26801791 / 50801422                             208 / 1420
org.apache.spark.sql.catalyst.optimizer.MergeScalarSubqueries                         7459001 / 49317670                              3 / 312
org.apache.spark.sql.catalyst.optimizer.RemoveRedundantAliases                        6183629 / 49123627                              46 / 1732
org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveRelations                      37477343 / 40669791                             223 / 1234
org.apache.spark.sql.catalyst.analysis.Analyzer$AddMetadataColumns                    0 / 39216905                                    0 / 1234
...
org.apache.spark.sql.catalyst.analysis.ReplaceCharWithVarchar                         0 / 280084                                      0 / 306
org.apache.spark.sql.catalyst.optimizer.Optimizer$UpdateCTERelationStats              0 / 156218                                      0 / 312

21:17:33.116 WARN org.apache.spark.sql.TPCDSQuerySuite:
=== Metrics of Whole-stage Codegen ===
Total code generation time: 0.0 seconds
Total compile time: 0.0 seconds

but the content printed after SPARK-44929 as follows:
=== Metrics of Analyzer/Optimizer Rules ===
Total number of runs: 182086
Total time: 4.355138411 seconds

Rule                                                                                Effective Time / Total Time                     Effective Runs / Total Runs

org.apache.spark.sql.catalyst.optimizer.Optimizer$OptimizeSubqueries                  676293539 / 677834369                           45 / 312
org.apache.spark.sql.catalyst.analysis.A...
21:19:12.466 WARN org.apache.spark.sql.TPCDSQuerySuite:
=== Metrics of Whole-stage Codegen ===
Total code generation time: 0.0 seconds
Total compile time: 0.0 seconds

Similar problems exist for other test cases that need to print RuleExecutor.dumpTimeSpent(). They include: SQLQueryTestSuite,LogicalPlanTagInSparkPlanSuite,SSBQuerySuite,TPCDSQueryANSISuite,TPCDSQuerySuite,TPCDSQueryWithStatsSuite,TPCHQuerySuite, HiveCompatibilitySuite and ThriftServerQueryTestSuite.
So this pr customizes a new LogAppender for them to ensure the completeness of the RuleExecutor.dumpTimeSpent() print information.
Why are the changes needed?
Ensuring the completeness of the RuleExecutor.dumpTimeSpent() print information.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Manually execute the following test commands and check the completeness of the RuleExecutor.dumpTimeSpent() printout information:

build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite"
build/sbt "sql/testOnly org.apache.spark.sql.execution.LogicalPlanTagInSparkPlanSuite"
build/sbt "sql/testOnly org.apache.spark.sql.SSBQuerySuite"
build/sbt "sql/testOnly org.apache.spark.sql.TPCDSQueryANSISuite"
build/sbt "sql/testOnly org.apache.spark.sql.TPCDSQuerySuite"
build/sbt "sql/testOnly org.apache.spark.sql.TPCDSQueryWithStatsSuite"
build/sbt "sql/testOnly org.apache.spark.sql.TPCHQuerySuite"
build/sbt "hive/testOnly org.apache.spark.sql.hive.execution.HiveCompatibilitySuite" -Phive
build/sbt "hive-thriftserver/testOnly org.apache.spark.sql.hive.thriftserver.ThriftServerQueryTestSuite" -Phive-thriftserver

Was this patch authored or co-authored using generative AI tooling?
No

cc @yaooqinn

Yes, FileAppender contains the complete content, this is fine for me, I will close this pr. Thanks @yaooqinn


Stop-Function: Hid warning with exception

Type of Change

[x] Bug fix (non-breaking change, fixes #)
[ ] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] Nunit test is included
[ ] Documentation
[ ] Build system

Changes

Changed Stop-Function to again hide warning when used together with -EnableException (will still be logged though)
Fixed error where calling Write-Message -Once on a host level would not cause it to write the message

i effed up dev tabs vs spaces for a sec so just merged in dev so your tests dont fail 👍

failure unrelated to your changes


[CARBONDATA-3380] Fix missing appName and AnalysisException bug in DirectSQLExample

Fix two bug in DirectSQLExample

fix missing appName which is writing the carbondata files.
fix AnalysisException bug because of carbonfile

Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:

[x] Any interfaces changed? NO

[x] Any backward compatibility impacted? NO

[x] Document update required? NO

[x] Testing done YES
Please provide details on
- Whether new unit test cases have been added or why no new tests are required? It's a example.
- How it is tested? Please attach test report.
- Is it a performance related change? Please attach the performance test report.
- Any additional information to help reviewers in testing this change.

[x] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3164/

Build Success with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11429/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3362/

Hi, @xubo245, can you please take a look?

Please update the PR content. @lamber-ken

Please update the PR content. @lamber-ken

Thanks for your comment, but I can't get your point.

retest this please.

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3359/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3357/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3559/

Build Success with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11626/

hi, @xubo245 , the qa gone through, do you have time to check again? thanks.

LGTM

@zzcclp Can you help to review it?

retest this please

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3609/

Build Failed  with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11883/

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3817/

@lamber-ken  Why it failed?

@zzcclp @kunal642 Can you help to review it?

@lamber-ken Why it failed?

hi @xubo245 , I'll retest it again

retest this please

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3626/

Build Failed  with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11900/

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3833/

retest this please

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3639/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3641/

Build Failed  with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11915/

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3845/

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3850/

retest this please

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3644/

Build Failed  with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11918/

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3854/

retest this please

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3647/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3857/

Build Success with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11921/

retest this please

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3650/

Build Success with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11924/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3860/

@xubo245 please review again, thanks.

LGTM

OK, I will merge this pr after retest successfully.

retest this please.

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder2.1/3687/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/3897/

Build Success with Spark 2.3.2, Please check CI http://<IP_ADDRESS>:8080/job/carbondataprbuilder2.3/11962/


Add

Motivation
Add gas fee
Add Button History transaction And Add Profile History
Add NFT wallet
Add Change Network
Scroll Windows Left Or right side For easy use
Usage example
No response
Possible implementations
No response

@Fireday777 Thanks for the issue. Some of these features are already available, and some are going to be implemented. Please keep track of the progress to see the Wallet receiving these features. If you'd like to help improve the Wallet even more, please create issues for each specific request with more detailed information about what you mean about each of these items.


EVEREST-458 Increase timeout for restarting pod

CHANGE DESCRIPTION
Problem:
EVEREST-458
Short explanation of the problem.
One minute is not enough to wait for the pod to be running
Cause:
Short explanation of the root cause of the issue if applicable.
Solution:
Short explanation of the solution we are providing with this PR.
Increased timeout to 5 minutes
CHECKLIST
Jira

[ ] Is the Jira ticket created and referenced properly?

Tests

[ ] Is an Integration test/test case added for the new feature/change?
[ ] Are unit tests added where appropriate?

Codecov Report

Merging #180 (908daa1) into main (529d5e8) will not change coverage.
Report is 1 commits behind head on main.
The diff coverage is 50.00%.

@@          Coverage Diff          @@
##            main    #180   +/-   ##
=====================================
  Coverage   5.01%   5.01%
=====================================
  Files         13      13
  Lines       3009    3009
=====================================
  Hits         151     151
  Misses      2831    2831
  Partials      27      27

Files
Coverage Δ

pkg/version/version.go
31.81% <100.00%> (ø)

pkg/kubernetes/kubernetes.go
15.31% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Add a PendingRelease notes file

Also update the CONTRIBUTING file with a description of how to work
with this file.

@DaanHoogland It's purely a initial filling of the file. After the PR merges the file gets cleaned and we put in the 4.11 -> 4.12 release notes.
I didn't want to leave it empty. The text should be clear right that this is purely fictional.

@DaanHoogland I've added some comments to show these are examples. Nothing to take very seriously.

guess I'm the moinority, anyway. Let's move


Does not work with Ember 1.8.1

This adapter worked for me through Ember 1.7, but when I tried Ember 1.8, it breaks and I get Uncaught TypeError: undefined is not a function on ember.js:17100 which is this line here for me:
var isPathCache       = new Cache(1000, function(key) { return key.indexOf('.')      !== -1; });

I just updated to ember-data.beta.14.1 and it works :grin:


Add exports field to package.json for modern JS

As we use es2020. exports can be used from es2019.

I need to investigate if exports is node only or browser too.

After further research it seems to be node specific


No foreground is detected when testing

Hi @kbardool ,
Thanks for share this useful code.
I train the model using command like this:
python3 train_frcnn.py -p /path/to/VOCDevkit

After training for 100 epochs, I test trained model on VOC images:
python3 test_frcnn.py -p ../VOCdevkit/VOC2012/JPEGImages

However,  The output is like this:
2007_000121.jpg
Elapsed time = 0.6811630725860596
[]

After debug, I find testing images are all treated as background, i.e., the network classify them to bg class.
Can you tell me what should I do to further solve this problem? Thanks :)

Hi @vra
are you getting this exception

Could not load pretrained model weights. Weights can be found in the keras application folder 		https://github.com/fchollet/keras/tree/master/keras/applications

same problem happening with me. I think we need to start with pretrained models using

--input_weight_path
but I'm still unable to solve this problem. is there any solution you found?
Thanks

Hi @Arham-Aalam,
I finally figure out I got this exception because I changed default settings in keras_frcnn/config.py. When I reset the default settings and train after 100 epochs, I got output finally. Before that, only background is outputed.
You can try train more epochs and see if everything is okay. I have trained almost 1000 epochs and I plan to share the checkpoints in the future.

okay @vra,
Do you know how to train it using pretrained models like resnet50, I'm stuck in large training time.
could you help?
Thanks for your response.

Yes It's very slow to train the model. I use 8 2080Ti GPUs and I need almost 500 seconds to train one epoch! When I review the code, I found maybe the batchsize is too small, because the code here seems shows that only one sample is yielded at each time. Maybe you can try to improve the code near here to speed up your training. I searched before but I didn't figure a good solution yet. Some discussiosn at here and here may be useful for you.

I think there are some solution to your situation:

Use GPUs. You can buy a vps with GPUs on Google Cloud, AWS etc
Use CPUs, but with smaller input size, e.g., change 512x512 to 256x256
Use CPUs, but with less parameter settings, e.g., you can change to #num_ious to a smaller  value thus it will be faster
Use CPUs, but use ConvNet Prune techniques to make a network smaller.


Provide jni usage example

Description

A working example of jni usage thanks to @liucijus with a small documentation referencing it

Motivation

It is not obvious how to use jni, hence a documentation can be helpful

@googlebot I signed it!

@googlebot I signed it!

Two good news and one bad.
Good:

CI now checks examples folders (those which don't have their own WORKSPACE file)
JNI examples pass on Linux
Bad:
JNI examples don't pass on OS X.
@lgirault any chance you can fix the example to be cross platform?

Two good news and one bad.
Good:

CI now checks examples folders (those which don't have their own WORKSPACE file)
JNI examples pass on Linux
Bad:
JNI examples don't pass on OS X.
@lgirault any chance you can fix the example to be cross platform?

I'm sorry, I've never use OS X so I may not be the best fitted for this task :-/

I'm sorry, I've never use OS X so I may not be the best fitted for this task :-/

Understood.
@liucijus do you think you could modify this in a few minutes or we're talking hours?

Understood.
@liucijus do you think you could modify this in a few minutes or we're talking hours?

Unfortunately I don't see where the problem is, and I'm also on Linux machine.

Unfortunately I don't see where the problem is, and I'm also on Linux machine.

for some reason mac build passes on my machine :(
not sure why and I've held up this simple PR for too long.
Removed the building of the example and I hope it won't grow too stale too fast.
Thanks for your efforts and for your patience!

for some reason mac build passes on my machine :(
not sure why and I've held up this simple PR for too long.
Removed the building of the example and I hope it won't grow too stale too fast.
Thanks for your efforts and for your patience!

@googlebot I consent

@googlebot I consent

@googlebot I consent.

@googlebot I consent.

@liucijus the test version is failing on BK but passing locally for me.
Sent https://github.com/bazelbuild/rules_scala/pull/1197 to check both it and the linter.
The linter fails there as well.
Can you take a look into it? I ran ./lint.sh fix already btw and it didn't fix the issue

@liucijus the test version is failing on BK but passing locally for me.
Sent https://github.com/bazelbuild/rules_scala/pull/1197 to check both it and the linter.
The linter fails there as well.
Can you take a look into it? I ran ./lint.sh fix already btw and it didn't fix the issue

test version passes also on the other PR I opened.
It seems like a core crash which is a fluke. Wondering if we should run this test something like 100 times to see if it happens.

test version passes also on the other PR I opened.
It seems like a core crash which is a fluke. Wondering if we should run this test something like 100 times to see if it happens.

Thanks for your efforts and for your patience!

Thank YOU for your persistence !
Sorry this doesn’t go more smoothly.

Thanks for your efforts and for your patience!

Thank YOU for your persistence !
Sorry this doesn’t go more smoothly.

@liucijus the test version is failing on BK but passing locally for me.
Sent #1197 to check both it and the linter.
The linter fails there as well.
Can you take a look into it? I ran ./lint.sh fix already btw and it didn't fix the issue

#1197 seems to work correctly:
~/projects/rules_scala_prs$ ./lint.sh
INFO: Analyzed target //tools:lint_fix (0 packages loaded, 1 target configured).
INFO: Found 1 target...
Target //tools:lint_fix up-to-date:
  bazel-bin/tools/lint_fix.bash
INFO: Elapsed time: 0.200s, Critical Path: 0.01s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action

~/projects/rules_scala_prs$ git status
On branch ittaiz-patch-9
Your branch is up to date with 'origin/ittaiz-patch-9'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   WORKSPACE

@liucijus can you try to run also this PR? lint check and fix pass and nothing to push

@liucijus can you try to run also this PR? lint check and fix pass and nothing to push

This PR has only part of linting changes merged, please add this commit too:
git cherry-pick c3750b0b3186ce7b1c52492632b4447f9a7f90f8

@liucijus can you please consent and then merge the PR?

@liucijus re 2- do you think that if no one will take the mac support then we should not merge it?

@liucijus re 2- do you think that if no one will take the mac support then we should not merge it?

This example incorrectly addresses architectural differences, I believe they need to be solved first before it is a valuable example.

@lgirault it seems @liucijus and me are in a bit of a disagreement here and our default is to reject a conflicted change.
Are you interested in tackling the mac area and the other changes requested by @liucijus ?
If not I completely understand that and I apologize for the time it took us to get to this point

Hi, sorry I've never used a mac environment and I don't really have the time nor the will to learn it in addition to actually solve the problem. Actually I'm sorry to have caused all this :sweat_smile:
Not sure what are the other points ? Moving the code under //tests ? that I can do, but I'm not sure it will be useful if it's not working on mac.
Thank you for all the time you both took on this matter.

@lgirault i think that for Vaidas running on Mac is essential. I suggest we close this PR for now. Wdyt?

This is fine by me ^_^

Thanks And sorry again

No problem :sweat_smile:


add button only mods

i keep clicking the background i almost bricked my vita while setting up the cpu, i have to use touchscreen to avoid that.

What exactly are you requesting and how did you manage to almost brick your Vita from quick menu? You can already control it with physical buttons if the feature is enabled in Settings app.

I think he had some other app on the background.
When using the quick menu the buttons still register in the back, if you have a game for example with pause menu while you change the settings, pressing X in the QuickMenu will also press Resume in the game.

Buttons do not register in the app when quick menu is opened. If they do, you have installed something that breaks the way system should operate and you should uninstall it.


Add more customization for auto pan

Thanks a lot for this great project!
One of the issue (the only really) I ran into when integrating this in our product is around the auto-pan feature. I wanted to be able to customize the zone where auto-pan is triggered and the amount of space it shifts. So I added a bunch of properties:

autoPanProps.length: length of the auto pan area on each side
autoPanProps.width: length of the auto pan area on the left and right, overrides length
autoPanProps.height: length of the auto pan area on the top and bottom, overrides length
autoPanProps.delta: amount of pixel to shift when auto panning
autoPanProps.easing: easing function which must return the amount of pixel to shift given t [0, 1], 0 being the start of the panning area, 1 being the edge of the viewer, overrides delta

The default behavior is still the same and corresponds to autoPanProps={{length: 20, delta: 2}}.
Another change I included was around the action used by auto-pan, changing it from ACTION_PAN to ACTION_AUTO_PAN, which is a breaking-change, but I needed to be able to distinguish regular panning from auto-panning (as our SVG is draggable as well and I want to disable regular panning when that is going but not auto-panning).
Last but not least, I just added a prepare script to allow to use the repository with npm link or file:// in package.json.
Don't hesitate to give me a lot of feedback about issues with these changes (especially ACTION_AUTO_PAN) as I am really keen to get these behaviors in! :)

Hi, since I selected "main" branch as the new default branch (instead of master), GH closed this PR. Feel free to submit a new PR on the "main" branch.

Hi, since I selected "main" branch as the new default branch (instead of master), GH closed this PR. Feel free to submit a new PR on the "main" branch.


Feature request: Add Instagram to supported players

Feature request
Add also Instagram images/videos to be embedded by this streamlit component.

Hello @Franky1,
This component use React player to provide embeds of multiple services. Unfortunately If it does not support instagram, this component won't neither.


Test Mode: Getting an exception on deleting a test case that has been ran successfully once

Steps to reproduce:

Configure the whole topology
Go to test mode => create & configure a test case (Suppose, TC1)
Run the test case and let it complete.
Create & configure another test case  (Suppose, TC2)
Now try to delete TC1, it throws error:

{"responseMessage":"An exception with message [com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (streamline_db.topology_test_run_histories, CONSTRAINT topology_test_run_histories_ibfk_2 FOREIGN KEY (testCaseId) REFERENCES topology_test_run_case (id))] was thrown while processing request."}

This is due to FK so I would like to drop FK in streamline_db.topology_test_run_histories, but I'm stuck on creating a new sql file for flyway which drops existing foreign key in existing table.
We don't use constraint symbol, so we should fetch the name from meta of RDBMS, which I feel not trivial to make it only from SQL statements.
@arunmahadevan @raju-saravanan Any ideas?

@HeartSaVioR was the table topology_test_run_histories present in earlier release ? if not can we update the create_tables.sql itself and drop the constraint. We also need to review the sql and see if all the constraints are droppabe with alter constraints for future.

Raised https://github.com/hortonworks/streamline/issues/911 for reviewing create tables script

@arunmahadevan Topology test feature was hidden in UI but available in backend. I think we included  the table in earlier released version(s). Moreover if we would want to drop constraint from another table the issue will be raised again.

I'm not familiar with stored procedure both MySQL and PostgreSQL, but googled it a bit, looks like we might be able to drop all existing foreign keys in tables.
If then we could add a sql file which drops all existing keys (not only foreign key but also index key regardless of uniqueness other than primary key) and alters tables to re-add all keys with naming them.
So maybe we need to find MySQL and/or PostgreSQL procedure experienced folks, and also need to check that Flyway can execute stored procedure without any issue.

I just tried out MySQL stored procedure for dropping foreign keys (we could even drop all keys) in a table.
DROP PROCEDURE IF EXISTS dropForeignKeysFromTable;

delimiter ///
create procedure dropForeignKeysFromTable(IN param_table_name varchar(255))
begin
    declare done int default FALSE;
    declare dropCommand varchar(255);
    declare dropCur cursor for
        select concat('alter table ',table_schema,'.',table_name,' DROP FOREIGN KEY ',constraint_name, ';')
        from information_schema.table_constraints
        where constraint_type='FOREIGN KEY'
            and table_name = param_table_name
            and table_schema = database();

    declare continue handler for not found set done = true;

    open dropCur;

    read_loop: loop
        fetch dropCur into dropCommand;
        if done then
            leave read_loop;
        end if;

        set @sdropCommand = dropCommand;

        prepare dropClientUpdateKeyStmt from @sdropCommand;

        execute dropClientUpdateKeyStmt;

        deallocate prepare dropClientUpdateKeyStmt;
    end loop;

    close dropCur;
end///

delimiter ;

After registering stored procedure, CALL dropForeignKeysFromTable('topology_test_run_histories'); can drop all foreign keys in topology_test_run_histories.
This also works with Flyway, so we could apply what I've described from previous comment: add a sql file which drops all existing foreign keys and alters tables to re-add all foreign keys with naming them.
We don't have keys only for indexing, and looks like all unique keys are having symbol, so looks like we only need to handle FK for keys for now.

@HeartSaVioR nice. Assuming we can come up with something similar for Postgres, we can go with this.

@arunmahadevan OK. I guess I found similar stored procedure for PostgreSQL, but I haven't used PostgreSQL for a while so need to set up for my local. Will update with the result.