[ActivityIndicator][iOS] color doesn't work on ActivityIndicator with a testID prop on iOS

[x] Review the documentation: https://facebook.github.io/react-native
[x] Search for existing issues: https://github.com/facebook/react-native/issues
[x] Use the latest React Native release: https://github.com/facebook/react-native/releases

Environment
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
Memory: 499.50 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 9.8.0 - ~/.nvm/versions/node/v9.8.0/bin/node
Yarn: 1.9.4 - /usr/local/bin/yarn
npm: 5.6.0 - ~/.nvm/versions/node/v9.8.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
Android SDK:
Build Tools: 23.0.1, 23.0.3, 24.0.3, 25.0.0, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.1
API Levels: 23, 24, 25, 26, 27
IDEs:
Android Studio: 3.1 AI-173.4819257
Xcode: 10.0/10A255 - /usr/bin/xcodebuild
npmPackages:
@storybook/react-native: 3.4.11 => 3.4.11
react: 16.6.0-alpha.8af6728 => 16.6.0-alpha.8af6728
react-native: 0.57.3 => 0.57.3
Description
color doesn't work on ActivityIndicator with a testID prop on iOS.
The ActivityIndicator stay white if it also get a testID prop (only on iOS, work well on Android).
Reproducible Demo
Snack here : https://snack.expo.io/rylAF2uqm
Code to reproduce :
import * as React from 'react';
import { View, StyleSheet, ActivityIndicator } from 'react-native';

export default class App extends React.Component {
  render() {
    return (
      <View style={styles.container}>
        <ActivityIndicator
          testID='activity-indicator' // comment this line to see the indicator in red
          size="large"
          color="#CF000A"
        />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
    backgroundColor: '#D4D4D4',
  },
});

I think there is an issue with @react-native-bot because I'm using the last React-Native version : 0.57.2 …

I just ran into this issue on 0.59.1.

I'm having the same issue as well, on 0.59.9.


[FR]: Have gazelle js language pick up tsconfig targets from parent directories

What is the current behavior?
Currently, the js gazelle language does not automatically discover tsconfig files and those generates targets like:
ts_project(
  name = "xyz"
)

If you do not have a ts_config target in that package, then the rule fails.
Describe the feature
Our standard repository layout is all React apps where we use a single tsconfig.json file at the root of the repository for the project and tests:
typescript/react_app1
  tsconfig.json
  src/
    pages/
   components/
typescript/react_app1
  tsconfig.json
  src/
    ...
typescript/react_app1
  tsconfig.json
  src/
   ...

For all of the ts_project targets generated under src/ (or any subdirectory of react_appX), it would be helpful if the generated ts_project would point to the tsconfig in the root of the application directory. It would be fine if this was discovered via a setting that set a convention or if you had to specify the tsconfig.json to use via directive at the root of each application.
At currrent, the workaround is to use map_kind to map ts_project to a macro where we manually override the value.

An initial version has been added, see https://github.com/aspect-build/aspect-cli/commit/437429255b3a22bb4602bf7071967eedaf2e6d48


Matchers support

Matchers support, at the moment for 3.0.x but going to make another for master branch.

Looks good to me. A few comments:

Can you target the 3.1.x branch I created? If it's too complicated, keep things that way

Can you upgrade the version to 3.1.x? (in the pom.xml file)

Can you update the README with the new versions and the new capabilities (please use the same text as available in the https://github.com/pac4j/j2e-pac4j project?

Can you also update to pac4j v2.1 by the way (you won't have no change)?

Can you update the demos to test that new feature?

On it. For demo projects, I understand that I should wait for this PR to be merged. Is it right?

Really excellent! Thanks for your contribution. I'm merging the pull request so you will be able to easily update the demos...

And don't forget the PR for the master...

Few things:

It seems that the new version should be in maven in order to be able to use it in the demos
We need to fix versions and small bits of other text in Readme.md
I will create a PR for master after updating demos, if it's ok.

You're right, I fixed the README and the build: https://oss.sonatype.org/content/repositories/snapshots/org/pac4j/play-pac4j/3.1.0-SNAPSHOT/
You can now update the demos, I created the 3.1.x branch for that on both demos.
Then, you'll need to do the same again for the master branch (both on the library itself and on the demos)...


Nvenc 5.0

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Since @h-vetinari approved https://github.com/conda-forge/ffmpeg-feedstock/pull/145 I'm going to merge this once the CIs pass.


fix(blame): Adapt default config to latest blame changes

[x] Have you read CONTRIBUTING.md?

You updated the README but not the default config ;-)

Are you sure you read CONTRIBUTING.md? One of the first lines says:

Do not edit files in the lua dir.

Yet this change only has changes to lua files.


Type hints

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I'm always frustrated when I have to look at the source codes to check the type of arguments/return.
Describe the solution you'd like
A clear and concise description of what you want to happen.

Type hints (PEP484) are written to source codes like

def greeting(name: str) -> str:
    return 'Hello ' + name

(Eventually) enforce type checking during pre-commit

For example by flake8-mypy
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Depending on the editor (PyCharm, etc.), type/rtype documentation like below gives you type hinting.
However, I'm not sure this is equivalent to the type hints (PEP484).
def greeting(name):
    """
    greeting

    :param name: description
    :type name: type description
    :return: description
    :rtype: type description
    """
    return 'Hello ' + name

Additional context
Add any other context or screenshots about the feature request here.

This is definitely a good idea!!! Let's do this!

Any suggestions?

PyAnnotate looks good. This is a tool that auto-generates PEP-484 annotations.
This has been developed by the same team, at Dropbox, who has originally developed mypy.
Let me try PyAnnotate for a while.
By the way, I don't know exactly what you mean by the following, but I don't think we need a folder 'type' for type hinting. Let me know if I'm mistaken.

One more question about typing: do you think it's a good idea to have type folder to include all types in Fonduer?

https://github.com/Instagram/MonkeyType could be another option.

So basically, both MonkeyType and PyAnnotate do the same thing: 1. collect types at runtime and 2. insert collected types to the source code.
I ran pytest tests with each but none of the two traced the calls of Fonduer methods because pytest tests ran against the Fonduer package installed in site-packages, which is ignored by MonkeyType and PyAnnotate by default.
Fortunately, MonkeyType takes care of such a case by specifying the package to be traced in an environment variable (see here).
The following works with Fonduer,

Collect types

$ pip install pytest-monkeytype
$ export MONKEYTYPE_TRACE_MODULES=fonduer
$ cd fonduer # move to the root directory
$ py.test --monkeytype-output=./monkeytype.sqlite3

Insert collected types

$ cd src
$ mv ../monkeytype.sqlite3 ./
$ # Get a listing of modules annotated by monkeytype
$ monkeytype list-modules
$ # Insert the collected types to a module (e.g., fonduer.parser.parser)
$ monkeytype apply fonduer.parser.parser

*You may not want to set CI=TRUE as it produces a huge file of monkeytype.sqlite3 (like more than 3GB).

Great! I think this is definitely a great tool. If I understand it correctly, we can use this tool to auto insert the type and manually correct the wrong ones and add dynamic typing checking using travis test. Does this sound correct?

Yes, you understood it correctly.
It doesn't make any mistake but the coverage is not necessarily perfect depending on the code that runs during the type collection.
The following is one snippet example:
     def apply(
-        self, doc_loader, pdf_path=None, clear=True, parallelism=None, progress_bar=True
-    ):
+        self, doc_loader: HTMLDocPreprocessor, pdf_path: None = None, clear: bool = True, parallelism: Optional[int] = None, progress_bar: bool = True
+    ) -> None:

doc_loader should be typed DocPreprocessor instead of HTMLDocPreprocessor.
HTMLDocPreprocessor has been chosen because the (test) code only uses it.
So yes, we have to manually correct the wrong ones but the tool would do a great job.

Super! Let's do it. This will make Fonduer much easier to use.


[feature request] Batched scale boxes given original reference image size and target image size

🐛 Describe the bug
This is a frequently needed utility to bring back computed detections to a common / original coordinate frame.
Versions
N/A

@vadimkantorov we appreciate for proposal.
Could you please resubmit it as a "feature request" as opposed to "bug"? Our Github forms adapt to the type of issue you submit and this one is currently missing the necessary fields that help us triage the request. Please try to include as much information as possible to make the feature request self-explanatory. This can help other open-source contributors tackle it and potentially us prioritize it.
Closing, this one as it's of the wrong issue type, looking forward to your new one. Thanks!


fix: wrong image showing in highlighted places

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 44.09%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
247

Relevant Lines:
392

💛  - Coveralls


Create dataset loader for Myanmar Part-of-Speech (myPOS) v3.0

Dataloader name: mypos_v3/mypos_v3.py
DataCatalogue: http://seacrowd.github.io/seacrowd-catalogue/card.html?mypos_v3

Dataset
mypos_v3

Description
This version of the myPOS corpus extends the original myPOS corpus from 11,000 to 43,196 Burmese sentences by adding data from the ASEAN MT NECTEC corpus and two developed parallel corpora (Myanmar-Chinese and Myanmar-Korean). The original 11,000 sentences were collected from Wikipedia and includes various topics such as economics, history, news, politics and philosophy. The format used in the corpus is word/POS-tag, and the pipe delimiter "

Subsets
-

Languages
mya

License
Creative Commons Attribution Non Commercial Share Alike 4.0 (cc-by-nc-sa-4.0)

Homepage
https://github.com/ye-kyaw-thu/myPOS/tree/master/corpus-ver-3.0

HF URL
-

Paper URL
https://ieeexplore.ieee.org/document/9376835

#self-assign


lwjgl NullPointerException when finding display due to xrandr config problem

Admin Edit: This issue documents a problem we can't do anything about beyond upgrading to LWJGL and is here for troubleshooting issues in case anybody else hits it. We'll upgrade eventually then this will no longer be an issue :-)
What you were trying to do
Just trying to run the game on Ubuntu 18.04.
What actually happened
The Terasology Engine's calls to lwjgl's XRandr class - find primary display function throws a null pointer exception, causing a crash.
How to reproduce
Set up a custom resolution with xrandr commands.
If the custom mode's name does not match the format "3000x2000", the game will crash on launch.
i.e. a custom resolution named "3000x2000_60.00" will cause the game to crash.
Log details and game version
java.lang.ExceptionInInitializerError
    at org.terasology.engine.subsystem.lwjgl.LwjglDisplayDevice.setDisplayModeSetting(LwjglDisplayDevice.java:106)
    at org.terasology.engine.subsystem.lwjgl.LwjglGraphics.initDisplay(LwjglGraphics.java:193)
    at org.terasology.engine.subsystem.lwjgl.LwjglGraphics.postInitialise(LwjglGraphics.java:146)
    at org.terasology.engine.TerasologyEngine.postInitSubsystems(TerasologyEngine.java:290)
    at org.terasology.engine.TerasologyEngine.initialize(TerasologyEngine.java:222)
    at org.terasology.engine.TerasologyEngine.run(TerasologyEngine.java:390)
    at org.terasology.engine.Terasology.main(Terasology.java:156)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
    at org.lwjgl.opengl.XRandR.findPrimary(XRandR.java:326)
    at org.lwjgl.opengl.XRandR.ScreentoDisplayMode(XRandR.java:315)
    at org.lwjgl.opengl.LinuxDisplay$3.run(LinuxDisplay.java:746)
    at org.lwjgl.opengl.LinuxDisplay$3.run(LinuxDisplay.java:743)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:743)
    at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
    ... 7 more

How to Fix
Change the custom resolution's name in xrandr to match the stated format.

Sorry but how to reproduce again?

Responded on Discord earlier: in short this is an issue just to document the problem, there's nothing else to really troubleshoot or fix, we need to close this out when we manage to upgrade to LWJGL 3 which is supposed to resolve this :-)
Thanks again @cheongsiuhong for hunting down the details! It is also noted in the wiki at https://github.com/MovingBlocks/Terasology/wiki/Common-Issues#linux

Noticed this still open by chance. We've actually upgraded to LWJGL 3 now! In theory this should be fixed, so I'll close this. If you happen to notice this @cheongsiuhong and want to validate please grab one of our recent builds - the LWJGL 3 upgrade has been live for a little while now 👍

Noticed this still open by chance. We've actually upgraded to LWJGL 3 now! In theory this should be fixed, so I'll close this. If you happen to notice this @cheongsiuhong and want to validate please grab one of our recent builds - the LWJGL 3 upgrade has been live for a little while now 👍


Update whats-new-azure-monitor.md

Updating for new minor version release.

@losillim : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Hi @losillim - This pull request was opened in the public repo. PMs should work in the private repo, per the Microsoft Docs contributor guide. Would you make this content update in the private repo instead? Thank you! This pull request will be closed.


Speech API Operation Class doesn't return full results

In google-cloud-php/src/Speech/Operation.php
public function results(array $options = [])
{
    $info = $this->info($options);
    return isset($info['response']['results'])
        ? $info['response']['results'][0]['alternatives']
        : [];
}

This function assumes that the results are fixed to 1 alternative, putting max_alternatives > 1, however, can result in more alternatives being returned.  There are other optional settings to the RecognizeRequest that can change the contents of the results to include information other than just the alternatives, so I'm not sure how users are supposed to access that data.

Update: After reading more of this, with sufficiently long audio, this will simply return the wrong result.  With long audio, there are multiple results, corresponding to sequential segments of audio, this will return all of the alternatives from the first segment, and nothing for subsequent segments.

link to relevant code

Thanks for the report @adziuk, I'll get this fixed today.
Do you know under what conditions a response is broken into multiple result sets? I was originally under the impression the multiple result sets were for streaming calls.

When you set maxAlternatives (from https://cloud.google.com/speech-whitelist/docs/reference/rest/v1/RecognitionConfig) to a value greater than 1 then the API returns more than one alternative, regardless of whether you use recognize or LongRunningRecognize. The confidence scores for the results beyond first one are usually missing.

Things are generally broken into multiple result sets with longer audio, Audio around 60 seconds long looks like it's generally broken into multiple "results", for example, from the attached file (LINEAR16, sample rate = 44100) :
Sync Recognize response: results {
alternatives {
transcript: "Pediatrics is my number one career choice. In many ways, it also reflects my second, third, and fourth career choices. Educated teach and Lead young people toward success."
confidence: 0.9123565
}
}
results {
alternatives {
transcript: " Legislators draft policies that improve processes for their constituents."
confidence: 0.93561065
}
}
results {
alternatives {
transcript: " Professional golfers commit themselves to extensive study and practice to master the skills of their profession."
confidence: 0.96668166
}
eninv_45.wav.zip
}
results {
alternatives {
transcript: " as a pediatrician, I see myself incorporating all three"
confidence: 0.9412657
}
}


When deleting an image- it's not removed from storage.

Bug report
Title
When an image is deleted, for example, a product image, the database loses the reference to the file, but the file itself is not removed from public/product/<prod #>
Issue Description
The file should also be deleted from storage.
Steps to reproduce
1. Upload an image, to a product for example.
2. Check storage dir
3. Delete image in Admin > Catalog
4. The image is taken out of the UI, but the physical file is still on disk.

Expected result
That when a image is deleted, it should also be deleted from storage.
For small systems, not much of an issue, but with a fast moving e-commerce site, a lot of wasted space can accumulate very quickly.

Hi @adavie1
Image gets deleted but folder name in which image is stored, does not gets deleted.

@rahulshukla-webkul the actual image doesn't get deleted from storage directory.

Hi @adavie1
Can you mention version of bagisto ?

Current master, just updated 3 days ago.

Hi @adavie1
You can check APP_VERSION in .env file and we are not getting this issue at our end.

What seems to be happening with many the errors I'm experiencing, Velocity issues, etc. Because I've being to git pull and php artisan migrate calls, from a clean install two weeks ago, things aren't being updated correctly. I've been using the same database connection though.
With a totally fresh install, including the database, no issues found.


Load the user from the database each time it's fetched from the cache by default

As described in the docs the fetched user object assigned as current_user may be stale. This is more performant as a db lookup isn't necessary for each load. However, I think for the majority of use cases the user is expected to have been fetched from the database. This default is probably confusing for many. So I think it's better to load the current_user from the database by default, and let it be easy for devs to optimize later on.

Hi @danschultzer ^^
I would suggest to make it configurable. For example we can add a key to pow config like :force_sync that will default to true so that we have by default the current_user is fetched from the database on every request. This way people who already rely on the current behaviour will just set this key to false when upgrading their projects dependies. For example in a project I have in production I reload the current_user on specific pages. If Pow defaults change the current_user will be loaded twice on that pages so I can just set the new config to keep my project working as before.

Yup, it will be configurable. I just have a strong distaste for configs, I prefer explicit logic where-ever possible so have to think about what can be a good approach here 😄  I might also push this to 1.1.0 release which will have all breaking changes.

For example in a project I have in production I reload the current_user on specific pages. If Pow defaults change the current_user will be loaded twice on that pages so I can just set the new config to false to keep my project working as before.

The reload logic could also be removed?

The reload logic could also be removed?

Yep of course it can be. I was just a bit lazzy about reviewing it. ^^
With less configs, we have a cleaner code for sure.
I'm kind excited to see thoses breaking changes in a sens... This means also we will have a more robust library.

Hey @danschultzer, had a two questions/observations here with this change that maybe you could provide some insight into both which relate to changes currently on master...

Possible to delete the session from within a custom get_by/1 if no record is found

I had previously left you a question Help in understanding custom contexts/purpose of get_by/1 where you had recently introduced a fix (works great by the way).
With the changes here with (which are great and removes the need to have a separate plug for reloading the user) I'm wondering if you have a way such that if the custom get_by/1 doesn't return a record we can somehow delete the session.  The reason being that I want to be able to better support my app by modifying active and deleted_at records at the db level and as I have those as where statements in the get_by/1 itself. So while I can make current_user not find a record and I get redirected to the sign in page, the session is not actually deleted.

get_by/1 clauses vary between :email and :id

I've noticed with the newest changes that when I sign in the single keyword within clauses for the custom get_by/1 is :email, but for each subsequent request, the value of clauses contains only :id. Was there something I'm missing here as with the custom get_by/1 I have to check to see which keyword is included (:email or :id) and adjust my where clause accordingly.
Thoughts on both/more information needed?
Thanks again.

I'm wondering if you have a way such that if the custom get_by/1 doesn't return a record we can somehow delete the session.
Should the custom get_by/1 and built in get_by/2 be followed with a check within Pow itself to delete the session if they resolve to no record found?

Great point! I've opened PR #573 to solve this. At first I was a bit unsure if it could introduce race condition, but that shouldn't be an issue here at all. Also, #567 kinda touches this, where all sessions for a user that's being deleted should be expired.

Was there something I'm missing here as with the custom get_by/1 I have to check to see which keyword is included (:email or :id) and adjust my where clause accordingly.

The get_by/1 is generic, so Pow just sends in various where clauses (e.g. for PowEmailConformation it's [email_confirmation_token: token]). It would be best if you just feed the clauses into the query rather than checking what the clauses are.
It could look like:
MyApp.Users.User
|> Repo.get_by(clauses)
|> case do
  %{deleted_at: nil} = user -> user
  _any -> nil
end

Or maybe it's possible with a where clause (not sure if the macro accepts this though):
MyApp.Users.User
|> where([u], ^clauses)
|> where([u], is_nil(u.deleted_at))
|> Repo.one()


Update ru.coffee

Few lines were translated into Russian

@ChampX2005 Please don't forget uncomment sections where do you add translations.

Ok, my bad


Can I update CVE database on local server?

I would like to update the CVE database on local server.
When I used SwiftBOM on internet (https://sbom.democert.org/sbom/), I think that this database is latest.
I would like to know how to update CVE database.

Hello @147sugiura
We use active lookup of CVE program GitHub site as the official location to get the CVE information from For Example CVE-2024-0709 will be collected from the https://olbat.github.io/nvdcve/CVE-2024-0709.json
If a CVSS score is available it is pulled up and provided. If not, one can manually add other sources of CVSS score such as NVD or the Vendor advisory itself.

Hi @sei-vsarvepalli
Thank you for your response.
I understand how to get the CVE information.
How do you get vendors and products to use in CPE?
Also, do you have any plans to upload SwiftBOM Version 5.2.7 to GitHub?

The CPE data was initially using CPE database from NIST - https://nvd.nist.gov/products/cpe ; As it turns out this CPE data is now being archived and less reliable. So the development of actually puling CPE was stopped. CPE data can be appended locally without having to lookup the NIST one, meaning the NIST data is only convenience to avoid duplicates. A new entry outside of NIST data can be freeform and will be accepted as-typed by the user.
Surely will work on porting over 5.2.7 to GH may be in the next couple of weeks. Thanks for catching that.

It is also documented here https://github.com/CERTCC/SBOM/tree/master/SwiftBOM/cpe_lookup


Install aptible for windows

Hi ,
I'm new to aptible and I'm trying to install aptible for windows . https://www.aptible.com/support/toolbelt/#download-osx - I dont see a suitable version for windows . Any help for this would be appreciated . Not sure if I'm missing something here .
Thanks

Hello @nandusiyer. Aptible CLI is not currently supported on Windows. Windows support is on our road map, but not close enough to estimate delivery.
In the mean time, we recommend installing the Aptible Toolbelt, https://www.aptible.com/support/toolbelt, on a Linux VM.

Thanks Gib !
Does that mean that I need to have a linux VM, start aptible on linux VM and then run the app on linux VM ?

Yes. I've used and like VirtualBox https://www.virtualbox.org/

If you're using a recent version of Windows, you could also try using "Bash for Windows" (which is a Linux emulation system built right into Windows itself, so you won't need a separate VM).

Hi Krallin ,
I have windows 7 installed , not sure if that would work .

Pretty sure it won't; in that case you'll need to use a VM like @gib suggested.

So I upgraded my OS to windows 10 , and was able to install the bash on Ubuntu on Windows . And then when I tried to install aptible , I could not succeed .
This is the error -
Command - gem install aptible-cli
Building native extensions. This could take a while...
ERROR: Error installing aptible-cli:
ERROR: Failed to build gem native extension.
         /usr/bin/ruby1.9.1 extconf.rb

creating Makefile
make
sh: 1: make: not found
And I did run sudo apt-get install ruby-full , before installing aptible

@nandusiyer it appears you're missing build dependencies here. You would need to apt-get install -y build-essential to download those. Do note that you appear to be using Ruby 1.9.1, which is a very old version of Ruby (it's also completely unsupported at this point, and it's unlikely the CLI and its dependencies will work with it).
Unless you're very familiar with Ruby and for some reason prefer the gem installation method, please install the Aptible Toolbelt: https://www.aptible.com/support/toolbelt/#download-ubuntu — it's a pre-packaged version of the Aptible CLI that ships with all the dependencies it needs to run.

@krallin , but like I said I have only windows installed . So I dont have a choice for Aptible Toolbelt .

Yes, I know you have Windows installed.
However, like I said earlier, "Bash on Ubuntu on Windows" is a Linux emulation system for Windows. So, you can install the Aptible Toolbelt within Bash on Ubuntu on Windows.

Thanks a lot . Was able to install it . I'm trying to run this command and see the following error -
nandy@NAMRATHA:/mnt/c/Users/Namratha/Downloads$ aptible login
Email<EMAIL_ADDRESS>Password:
Token written to /home/nandy/.aptible/tokens.json
This token will expire after 7 days (use --lifetime to customize)
nandy@NAMRATHA:/mnt/c/Users/Namratha/Downloads$ aptible db:tunnel sqldb-dev
Creating tunnel...
/opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/aptible-cli-0.7.3/lib/aptible/cli/helpers/tunnel.rb:61:in kill': No such process (Errno::ESRCH)         from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/aptible-cli-0.7.3/lib/aptible/cli/helpers/tunnel.rb:61:in stop'
from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/aptible-cli-0.7.3/lib/aptible/cli/helpers/tunnel.rb:50:in rescue in start'         from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/aptible-cli-0.7.3/lib/aptible/cli/helpers/tunnel.rb:56:in start'
from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/aptible-cli-0.7.3/lib/aptible/cli/helpers/database.rb:61:in with_local_tunnel'         from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/aptible-cli-0.7.3/lib/aptible/cli/subcommands/db.rb:79:in block (2 levels) in included'
from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in run'         from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command'
from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor.rb:359:in dispatch'         from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in start'
from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/aptible-cli-0.7.3/bin/aptible:11:in <top (required)>'         from /usr/local/bin/aptible:50:in load'
from /usr/local/bin/aptible:50:in `'

hi , still facing the same issue , could someone help me ?
Thanks

@nandusiyer
This looks like a Windows-specific issue (this is crashing because we send a signal to a process that is already dead, but this actually does work on Linux — it's possible it doesn't on Windows though).
Can you try and make the following change (this should still throw an error, but we should know more about the issue):
Edit line 61 of /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/aptible-cli-0.7.3/lib/aptible/cli/helpers/tunnel.rb, by adding rescue Errno::ESRCH after Process.kill('HUP', @pid). The resulting line should look like this:
Process.kill('HUP', @pid) rescue Errno::ESRCH

Then, re-run the tunnel, and let us know what happens.
Cheers,

hi @krallin , thanks for the instructions .
Here is the actual error -
nandy@NAMRATHA:~$ aptible db:tunnel sqldb-dev
Creating tunnel...
/opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/aptible-cli-0.7.3/lib/aptible/cli/helpers/tunnel.rb:53:in rescue in start': Tunnel did not come up, is something else listening on port 60387? (RuntimeError) bind: Address already in use (8ミ | INFO: Connecting to database... (8ミ | ERROR: 403 (access_denied)         from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/aptible-cli-0.7.3/lib/aptible/cli/helpers/tunnel.rb:56:in start'
from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/aptible-cli-0.7.3/lib/aptible/cli/helpers/database.rb:61:in with_local_tunnel'         from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/aptible-cli-0.7.3/lib/aptible/cli/subcommands/db.rb:79:in block (2 levels) in included'
from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in run'         from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command'
from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor.rb:359:in dispatch'         from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in start'
from /opt/aptible-toolbelt/embedded/lib/ruby/gems/2.2.0/gems/aptible-cli-0.7.3/bin/aptible:11:in <top (required)>'         from /usr/local/bin/aptible:50:in load'
from /usr/local/bin/aptible:50:in `'
It seems to be related to access , but I do have access to the database .
Your help on this would be appreciated .
Thanks

I'm sorry, I can"t say what might be causing this issue here, and attempting to reproduce on Windows doesn't yield any issues. Did you do anything special with your Bash for Windows install after setting it up?
At this point I'd recommend just setting up a Linux VM until we have full support for the Aptible CLI on Windows.

@nandusiyer this error is probably coming up because you have read-only permissions on the environment this database is in. You might want to try using a user with manage permissions.
Cheers,

@krallin , you mean a different aptible user before running the db:tunnel command ?

@nandusiyer Yes; I mean you need to log in as a user that has manage permissions.

If you have msysgit (git) installed you can add <install_dir>/git/user/bin to your path and their shouldn't be any issues running the CLI (up to version 0.7.4) on windows. I've been using it on windows (10) for the last 18 months.

This is now supported: https://www.aptible.com/blog/windows-cli/


Use Kubernetes networking v1

Signed-off-by: sheetalsingala<EMAIL_ADDRESS>Fixes #139

/lgtm


consensus: fast-sync mode: Skip dead reckoning

This PR makes parallel analyzers (which have been possible to instantiate since #456) actually work. To achieve this, it implements "fast-sync" mode for block analyzers:

During it, the analyzer avoids producing SQL queries/updates whose effect will be overridden by parsing the genesis (for consensus) or by running item analyzers (for EVM runtimes); this mostly means it disables dead-reckoning.
Skipping dead-reckoning and similar updates also prevents the DB constraints from being violated even when blocks are processed out of order.

Getting this to work involved finding and plugging multiple holes. I only spun off two PRs; most other fixes are relatively small in terms of lines of code, so I recommend just reviewing this commit by commit. Explanations for individual commits follow, in order:

analyzer/consensus: fast-sync: reduce dead-reckoning, data fetching
analyzer/runtime: fast-sync: reduce dead-reckoning

This and the previous commit are the core of the PR; see PR-level description

analyzer/block: unlock blocks when terminating; do not work on expired blocks

Adds more explicit unlocking of any blocks that the analyzer locked but couldn't process before being shut down. I found this useful in local development, when recompiling+running frequently without wiping the db.

genesis: Use DELETE b/c TRUNCATE does not respect txs

There is no DB tx-level isolation for TRUNCATE. We use TRUNCATE in genesis processing. I don't think we ever run multiple of these in parallel, so this is a "just in case". Our tables are small enough that DELETE is not appreciably slower.

genesis: populate runtimes table before runtime_nodes, because the latter references the former`

Having the order the other way around can lead to violated foreign keys during genesis processing.

debug: Optionally dump genesis JSON

Was helpful for debugging node registry stuff, see below

genesis: StateToGenesis(height): Fetch nodes separately

StateToGenesis() is designed primarily with dump-and-restore in mind. So when it dumps nodes, it ignores everything but validator nodes because others "will reregister immediately [after the dump-restore upgrade] anyway", per Jernej. Our use case is a little different; we need the full state of nodes at height H after having run fast-sync up to H. This commit makes it so we fetch the full set of nodes with a separate RPC, in addition to StateToGenesis().

bugfix: analyzer/consensus: Reset nodes voting power

Bug in our consensus analyzer. We always fetch the full set of validators from the node. Then we need to update the voting power of the nodes in the RPC response (old code already does that), but we also have to update the voting power of all other validators to 0 (= this fix).

consensus/consensus,genesis: ignore expired-on-arrival node registrations

oasis-node can return outdated node registrations, both in node events and in StateToGenesis. In both cases, when queried at height H, it can report that a node has registered and the registration will expire at height H'<H. This commit ignores such registrations.

Post-review edit: Here are more changes I made after the review.
I believe they are non-controversial, so I'll (ab)use the LGTM and merge this PR pretty soon. Happy to address review comments in follow-up PRs though; there will be more work.
Additional changes/commits; trivial commits and commits addressing review feedback are skipped:

(bugfix) api: do not count accts with 0 balance among token holders

What it says. Discovered because fast-sync vs slow-sync produce a different set of accounts with 0 balance (as opposed to never creating DB rows for those accts)

analyzer/batch: If batch deadline expires, do not attempt further blocks

Mostly for ease of reading logs. Previously, on an expired batch context, the analyzer would try every remaining block, and have each of them fail deeper down the stack because of the expired context. Those failures spammed the logs.

analyzer/runtime: fast-sync: do not dead-reckon runtime_accounts.num_txs
analyzer/runtime: fast-sync: do not dead-reckon runtime_accounts.gas_for_calling

This and previous: These previously dead-reckoned values were causing a bunch of deadlock in Emerald when running with parallelism > 1 because some accts appear in most txs.

Remove chain.runtime_{withdraws,deposits} tables

They are unused, and will likely remain so. The explorer will use events.

bugfix: genesis: correctly insert proposal cancellations

Minor, we were inserting 5 empty to represent 4 null strings (a little ugly) and 1 null int (postgres error)

Testing:
e2e from #525 , with and without parallelism. ~A future test will be deploying this in staging. That's also when I plan to measure real-world speedups, and see how bad the DB contention is.~ Deployed in staging; indexed entire testnet (and found the "correctly insert proposal cancellations" bug), indexing of mainnet in progress (and prompted the reductions in runtime dead-reckoning).

Thank you @ptrus !
I added some more changes; since they were related, I just piled them on ather than arbitrarily split the work into two PRs. See the update description. I plan to submit Tue morning my time, but can address comments later too.


Service Worker script does not exist at the given path

Hello, we have a storybook running in a subdirectories (for PRs and also one stable version). Msw was not working out of the box for this setup, but then I used #75 setup.
  serviceWorker: {
    url: `blabla/blabla-storybook/${STORYBOOK_SHA ?? "latest"}/mockServiceWorker.js`,
  }

Issues is, we are still getting an error that file does not exist in the path. But when I click on the link in the error message, I am taken to mockServiceWorker.js, so it obliviously exist in the location.
Uncaught (in promise) Error: [MSW] Failed to register a Service Worker for scope ('https://cdn.blabla.no/') with script ('https://cdn.blabla.no/blabla/blablabla-storybook/${commitSHA}/mockServiceWorker.js'): Service Worker script does not exist at the given path.

Did you forget to run "npx msw init <PUBLIC_DIR>"

We are using React with CRA and latest version of storybook.
Is anyone able to help with this, please? I have no clue at this point what might be the issue.

Hey, @fhavrlent.
Just to clarify, do you confirm that the worker script is accessible via this URL?
https://cdn.blabla.no/blabla/blablabla-storybook/${commitSHA}/mockServiceWorker.js

Even if it is, I think it won't be able to register at the https://cdn.blabla.no scope. Service Workers can register and control client routes that are equal to the worker script's location or are its children. I'm talking about this in here.

Hello @kettanaito ,
yes, the script is accessible via that URL + the storybook is placed in the same folder, so intercepting requests should not be an issue. At least I have no way to test it since it is acting like there is no worker script at all.

Double-checking is your Storybook also running on https://cdn.blabla.no/blabla/blablabla-storybook? The origin of the worker and the origin of your Storybook must be the same, otherwise worker wouldn't register. You should really see error messages in your case anyway, the silent registration failure usually means you're not calling setupWorker (in the context of this add-on, you're not setting it up correctly).
I would kindly ask you to provide a reproduction repository around this. Or, at least, share a public URL of your deployed Storybook, maybe I would be able to understand what's going on in runtime.

So, I kinda have the same problem.
I have a SignIn View that mocks the login request at the stories in the Storybook. If I run it local, it works as expected, but it won't work at my GitHub repository as it can't find the mockServiceWorker.js file.
My application: https://guissimatheus.github.io/design-system-react
My repo: https://github.com/guissimatheus/design-system-react
If you go to the browser network tab, you can see the msw get request url https://guissimatheus.github.io/mockServiceWorker.js with status code 404. I can access the worker file at https://guissimatheus.github.io/design-system-react/mockServiceWorker.js
I dunno how I can config my project to change the url and get the mock to work on GitHub.

Ran into this myself.
Work around is to tell MSW where to look for the file. One gotcha is you'll likely want to have it be different for github pages vs running locally.
let options = {};
if (location.hostname === "username.github.io") {
  options = {
    serviceWorker: {
      url: "/repo-name/mockServiceWorker.js",
    },
  };
}

initialize(options);

https://msw-sb.vercel.app/?path=/story/guides-getting-started--page#configuring-msw
https://mswjs.io/docs/api/setup-worker/start#serviceworker

I tried to deploy in chromatic with next script
"chromatic": "npx chromatic --project-token=", but have the next problem
and have the next problem
2Skeleton.js:133 Uncaught (in promise) Error: [MSW] Failed to register a Service Worker for scope ('https://62f2d36646e231f4cad67bc1-ichzqcmzpg.chromatic.com/') with script ('https://62f2d36646e231f4cad67bc1-ichzqcmzpg.chromatic.com/mockServiceWorker.js'): Service Worker script does not exist at the given path.

Did you forget to run "npx msw init <PUBLIC_DIR>"?

Learn more about creating the Service Worker script: https://mswjs.io/docs/cli/init
    at getWorkerInstance (Skeleton.js:133:1)
    at async Skeleton.js:133:1
    at async SetupWorkerApi.start (Skeleton.js:133:1)

In local i have the next script
"storybook": "start-storybook -p 6006 -s public ",
How put to deploy that take the msw?

@santilp95, can you please check if your Storybook build command also has the -s flag included for the static /public directory? As I recall, local dev and build are two separate commands, and I'd expect Storybook to use the build command on CI builds.

@kettanaito yes, it work It works, I had to change the build, thank you very much
 "build-storybook": "build-storybook -s public",

@fhavrlent, could you please try @WesleyKapow's suggestion and let me know? I believe it should resolve your issue.

-s public

Hey, what about url: "./mockServiceWorker.js", instead of full static link. Works just fine for me.

if (location.hostname === "username.github.io") {
  options = {
    serviceWorker: {
      url: "/repo-name/mockServiceWorker.js",
    },
  };
}

Hey, what about url: "./mockServiceWorker.js", instead of the full static link? Works just fine for me.


No way to know if SDF is actually installed

It's possible to run the plugin and navigate the menu system without actually having sdfcli installed. Running any command produces a silent fail.

Don't really like this solution. I think I'd really prefer to go to decorators instead of this verbose method, but I couldn't get the decorators to do what I want.
I'll have to look into decorators again later.
I will push a release to the VS Code marketplace with this fix soon.


Special characters are not escaped by search queries

The following characters are illegal in the "query" attribute for some query types (MultiMatch, Match, etc):

&& || ! ( ) { } [ ] ^ " ~ * ? : \ /

Documentation on this found here (under reserved characters):
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html
These really should probably be escaped by this library by replacing all of these chars with a preceding slash.


Can you help fix my corrupt exe.xml file?

Software version
0.8.2
Location of my exe.xml file
C:\Users\cigay\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\exe.xml
Contents of my exe.xml file
<?xml version="1.0" encoding="Windows-1252"?>
<SimBase.Document Type="Launch" version="1,0">
	<Descr>Launch</Descr>
	<Filename>exe.xml</Filename>
	<Disabled>False</Disabled>
	<Launch.ManualLoad>False</Launch.ManualLoad>
	<Launch.Addon>
		<Name>FenixA320</Name>
		<Disabled>False</Disabled>
		<Path>C:\Program Files\FenixSim A320\deps\FenixBootstrapper.exe</Path>
</SimBase.Document>

The installation error
The 'Launch.Addon' start tag on line 7 position 3 does not match the end tag of 'SimBase.Document'. Line 11, position 3.

Hi @cigayi
Your exe.xml file is missing a close </Launch.Addon> line just before the end. Here's what you need:
<?xml version="1.0" encoding="Windows-1252"?>
<SimBase.Document Type="Launch" version="1,0">
	<Descr>Launch</Descr>
	<Filename>exe.xml</Filename>
	<Disabled>False</Disabled>
	<Launch.ManualLoad>False</Launch.ManualLoad>
	<Launch.Addon>
		<Name>FenixA320</Name>
		<Disabled>False</Disabled>
		<Path>C:\Program Files\FenixSim A320\deps\FenixBootstrapper.exe</Path>
	</Launch.Addon>
</SimBase.Document>

Out of interest, could I ask what addons you've installed and uninstalled in the past? Your exe.xml file only seems to have one thing in it, and that's broken, which is suggesting that there might be a bug in the Fenix A320 installer. Have you installed and uninstalled any other software like that?

This is now the second broken exe.xml file I've seen, with the Fenix A320 in it and exactly the same problem.
See also #53

First off, thank you, I haven’t coded since compsci classes in uni 20+ years ago.  As for other addons, besides fenix I have the fwb 320 and salty, both using the fwb installer. Hope this helps you with future exl file issues.
Cigayi
Sent from Yahoo Mail for iPhone
On Sunday, October 30, 2022, 10:59, Royston Shufflebotham @.***> wrote:
Hi @cigayi
Your exe.xml file is missing a close </Launch.Addon> line just before the end. Here's what you need:

<SimBase.Document Type="Launch" version="1,0">
Launch
exe.xml
False
<Launch.ManualLoad>False</Launch.ManualLoad>
<Launch.Addon>
FenixA320
False
C:\Program Files\FenixSim A320\deps\FenixBootstrapper.exe
</Launch.Addon>
</SimBase.Document>
Out of interest, could I ask what addons you've installed and uninstalled in the past? Your exe.xml file only seems to have one thing in it, and that's broken, which is suggesting that there might be a bug in the Fenix A320 installer. Have you installed and uninstalled any other software like that?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Thanks @cigayi. If this is a standard fault of one of those installers, I'll teach BBL about it so that it can automatically fix this one.


Cannot Connect to Azure SQL VM 2014

While trying to Connect using ippaddress i cannot connect to the server in DMS as a source. It genereates a errro saying server not found.
Error Details are as follows:
The most common cause of this error is entering an invalid server name.  Please check the server name you entered.  Consider entering a Fully Qualified Domain Name (FQDN) or IP address of the server.  Please also make sure to choose a VNET which provides site-to-site connectivity to your on-premises source servers by using either ExpressRoute or VPN

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

ID: 9a49a982-613b-76a9-4a0a-7132d6058dcb
Version Independent ID: b2a280d2-ea2c-1836-f265-ccaa2c6758b3
Content: Use the Azure Database Migration Service to migrate SQL Server to Azure SQL Database
Content Source: articles/dms/tutorial-sql-server-to-azure-sql.md
Service: dms
GitHub Login: @edmacauley
Microsoft Alias: edmaca

@saachinvettiyattil Have you carefully gone through the Prerequisites area  of this document?
also, can you please tell me exactly where you are getting this error?

@saachinvettiyattil We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Add List.exactlyOne documentation

:warning: Validation status: warnings

File
Status
Preview URL
Details

docs/conceptual/collections.list-module-[fsharp].md
:warning:Warning

Details

docs/conceptual/list.exactlyone['t]-function-[fsharp].md
:white_check_mark:Succeeded

docs/conceptual/collections.list-module-[fsharp].md

Line 42: [Warning] Invalid file link:(~/list.chunkBySize['t%5D-function-%5Bfsharp%5D.md).
Line 44: [Warning] Invalid file link:(~/list.comparewith['t%5D-function-%5Bfsharp%5D.md).
Line 46: [Warning] Invalid file link:(~/list.contains['t%5D-function-%5Bfsharp%5D.md).
Line 47: [Warning] Invalid file link:(~/list.countby['t,'key%5D-function-%5Bfsharp%5D.md).
Line 48: [Warning] Invalid file link:(~/list.distinct['t%5D-function-%5Bfsharp%5D.md).

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

LGTM


Include of non-modular header inside framework module 'Nimble'

The Travis CI job that builds and tests the SwiftGit2-iOS scheme sometimes – nondeterministically – fails with the following error:

Include of non-modular header inside framework module 'Nimble': '/Users/travis/build/SwiftGit2/SwiftGit2/Carthage/Checkouts/Nimble/Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/Mach/CwlPreconditionTesting.h'

I managed to reproduce this error on my own machine, and as far as I can tell, it seems to be caused by Xcode attempting to resolve the Nimble framework dependency by compiling the Nimble-tvOS scheme instead of Nimble-iOS. Nimble imports different source headers into the module's umbrella header based on the target platform, so when it builds the tvOS target for iOS, it builds with one header, but them attempts to #import the other, causing the build to fail.
This may or may not be the same issue as this four-year-old radar: https://openradar.appspot.com/20490378
For now, manually re-running the Travis job when it fails with this error will eventually get the build to pass.

I'm sure it's the issue described in that Radar. It plagues a bunch of open source projects.


Gunfire Reborn Linux support, Works perfectly, Developers even provided support to linux users when they broke support with anticheat in the past

Game Title
Gunfire Reborn
Game Website
https://twitter.com/GunfireReborn
Anti-Cheat Software
Other
Status of the Anti-Cheat
⭐ Supported
Proof of Mention
https://www.protondb.com/app/1217060

Developers don't have a specific website hence linking there twitter page, not sure what anti cheat system there use specifically due to it being developed by the Dev's for the game.


macOS 10.14.2 no services or characteristics being broadcast on Android

Since updating to 10.14.2, I haven't been able to see any services or characteristics, although I can connect to the device just fine. Seeing as this was not the issue with 10.14.1, I'm suspecting some change in how CoreBluetooth handles adding services "on-the-fly". I'm investigating it as well, but any pointers to where to start would be greatly appreciated.
It seems that this only affects Android for now.

Which version of Android are you using ? Are you using a particular framework on top of the Android APIs ?
My current tablet is running Android 8, I am using https://github.com/Polidea/RxAndroidBle.
My JS code runs on Mojave 10.14.2, no problem - except when writing quickly on the characteristic (see #1)

If you have a small repro in how you're adding "on-the-fly", I'll take a look when I get a chance. Nothing comes to mind why it'd be an issue though :(

@saiimons Exact same framework, and Android 9 (Pie) on a OnePlus 5T. I'm seeing the services fine on iOS, so I'll try to reproduce in a separate repo

I don't have a (modern enough) Android device to test this on so I'm not sure how much help I'll be able to be here, sorry. Hope you folks can figure it out though, and I'll take a look through any repro you've got!

OK, after testing on a colleagues device, I've found the issue to be in relation to the bonding information. Since the device has previously been bonded before the update, there seems to be some mismatch between the client's bond information and / or service information and the actual information being broadcast by BLENO. The solution turned out to be to "forget" bonding information, whereafter the issue practically resolved itself. Thank you for the quick response, however!


Finish support for Kubernetes with reusable pods

Initial support was started in #187

[x] Don't reuse pods if they're already running another job (plan is to use the Ready status on containers) #190
[x] Handle errors setting up the job (i.e. right now we don't poll for process_state uploads) 3d67c1b
[x] Support ports and resources eb1efe8
[ ] Implement wait_for_result options
[x] Support custom container images #201
[x] Support run_function and run_command #201

Declaring initial version of resuable pods in Kubernetes done. Remaining item will be tracked in https://github.com/meadowdata/meadowrun/issues/217


Added Request and Request Or Query Extractor

Added two new Extractors:

Request Extractor: Get an API Key from a POST variable
Request Or Query Extractor. First try to get an API Key from a GET variable. Second try if there is any POST variable.

If you update this ill merge it

@aequasi Update what exactly?

The Pull request had conflicts


prettify flash message

merged. would like further enhancement: https://trello.com/c/FMlRzk3y/196-be-able-to-click-dismiss-flash-message


Add missing libvirt mount to kepler

Kepler needs libvirt mount to fetch names assigned by Nova Also, remove a few flags of unwanted metrics.

/cherry-pick 18.0-fr1


Feature request: Users confused by dolt.engine. Should have a public dolt.get_engine()

It's also in the docs as get_engine().
https://www.dolthub.com/docs/tutorials/reading-from-dolt/#python
We need to fix this asap.

https://github.com/liquidata-inc/ld/pull/5001
Docs fix.

This is bug, and it's now been resolved.


Support to run a keyword from different geo location

Scenario:
There could be many application where user can login from different geo location at the same time or different time. this is mostly hits some api and assess the load of a system.
If a provision could be made to do such operations via framework, would be amazing.

This ought to be possible already now via custom libraries. In some context could be possible to create generic libraries as well. Anyway, definitely not something that belongs to Robot Framework core.


Do you plan to merge it to emacs in the future?

I am reluctant to move in this direction for several reasons.
Primarily, I believe that Emacs should not bundle so much Lisp code, since doing so makes it less modular and less dynamic. Instead, I believe that the answer is in creating both modular packages and an excellent package manager. This is why I wrote straight.el.
The concrete disadvantages of merging el-patch into Emacs core would be as follows:

Users would be locked to an outdated version of el-patch since Emacs has a slow release cycle.
el-patch would be more difficult to modify for the end user.
Contributing changes to el-patch would be more difficult.
There would be multiple canonical versions of the package, creating confusion.

On the other hand, I would have no objection to adding el-patch to GNU ELPA or other package repositories.
However, there are further complications. At present, the most important is

I am not willing to assign the copyright for el-patch to the FSF, nor am I willing to request copyright assignment from my contributors.

The reason I am not willing to do this is that it would harm the growth of el-patch by making it more difficult for first-time contributors to help out, and I wish to make it clear that I believe the copyright assignment process is a detriment to the Emacs community in general, not just to el-patch.
There is also a minor note:

I am not willing to relicense el-patch under the GNU Public License.

The reason I am not willing to do this is that it would limit the rights of the users of el-patch, and it would burden them with the necessity of considering matters of copyright anytime they interacted with el-patch.
As the MIT License is more permissive than the GNU Public License and allows sub-licensing, I don't imagine this to be a real problem.
If you have any further questions, I'd be happy to oblige.

thanks for the answer:-)

If it's fine by you, I'll leave this issue open for a while so that it has increased visibility for other people wondering about this, and then close it.
(The waiting on response tag just indicates that the issue will be closed eventually if nobody else comments, not that I need more information from you.)

ok

I am not willing to relicense el-patch under the GNU Public License.

So similar to https://github.com/raxod502/straight.el/issues/103#issuecomment-337833855, requiring subr-x and cl-lib probably means that you're required to anyway. Honestly if one is in the business of patching emacs packages and such, it's extremely likely that they'd be burdened with the necessity of considering matters of copyright anyway (due to all the copylefted packages/libraries), so I personally don't really see too much of an additional 'issue' than what already exists, though I understand your point of view too.

Oh wow nice work @SkySkimmer, if the GPL FAQ itself doesn't say that copyleft applies, then things seem alright as it stands. :+1:
I also think for reference it's important to highlight the previous paragraph to the one you quoted:

Another similar and very common case is to provide libraries with the interpreter which are themselves interpreted. For instance, Perl comes with many Perl modules, and a Java implementation comes with many Java classes. These libraries and the programs that call them are always dynamically linked together.

So in this case, subr-x and cl-lib I'm pretty sure can be considered analogous to the "libraries with the interpreter [emacs] which are themselves intepreted" in their explanation. (Disclamer: I'm no lawyer so to be sure about this don't trust me and talk to an actual ip lawyer.)

As per https://github.com/raxod502/straight.el/issues/103#issuecomment-337990117, I do not believe there are any problems of copyright (or copyleft) for el-patch. However, the copyright status of Radian is indeed questionable, since it includes some source code from GPL-licensed libraries in the form of patches. If this is challenged, then I will look into adding functionality to el-patch to allow patches to be loaded from external files that can be versioned in a separate repository from Radian.


Function does not presented in serverless.yml

Hi. From 2.1.0 version custom.stepFunctionsOffline is deprecated. I am deleted this from yml.
When I try start  "sls step-functions-offline --stage=dev --stateMachine=test" I get error
Function "servicename-dev-hello" does not presented in serverless.yml
functions:
  hello:
    name: ${self:service}-${opt:stage}-hello
    handler: handler.hello

and
States:
          hello:
            Type: Task
            Resource: "arn:aws:lambda:#{AWS::Region}:#{AWS::AccountId}:function:${self:service}-${opt:stage}-hello"

Hi @Hedgehogwork .
Oops, I missed that point when name of function can be declared in field name.
I am going to create new version 2.1.1 where I will return the previous implementation.
Sorry for trouble

@Hedgehogwork I have released 2.1.1 where I returned previous implementations of that.
Can you try ?

Sorry for late. Yes it is work but v 2.1.0 was better because I add only NAMEservice with stage and other params used from yml like for online:
NAMEservice is ${self:service}-${opt:stage}
 <NAMEservice>-hello:
    handler: handler.hello

yes it is not the good solution but it is better like add full information about stepFunction ymal.
May be will be good add to section "custom" only name with self:service and  opt:stage like:
custom:
 function:
   ${self:service}-${opt:stage}-hello
     handler: handler.hello

@Hedgehogwork  I will close this issue for now because problem fixed
For another implementation, I will open feature issue


Login and Signup broken

console.fonoster.io returns 404
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

send a GET request to console.fonoster.io
See a 404

Expected behavior
Signup redirect
Screenshots

System information (please complete the following):

OS: [e.g. Arch Linux]
Browser: Firefox

Thanks for the notification. The issue has been resolved.

thanks a lot for your quick response and resolution of this issue.


Error when trying to run make generate

Hello, I'm on a Mac running Python 3.11.1 and receiving an error when running the make generate build script.
Below is an output from CLI
python3 generate.py /private/tmp/test/leetcode-anki/generate.py:215: DeprecationWarning: There is no current event loop   loop: asyncio.events.AbstractEventLoop = asyncio.get_event_loop() Traceback (most recent call last):   File "/private/tmp/test/leetcode-anki/generate.py", line 216, in <module>     loop.run_until_complete(main())   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete     return future.result()            ^^^^^^^^^^^^^^^   File "/private/tmp/test/leetcode-anki/generate.py", line 211, in main     await generate(start, stop, page_size, list_id, output_file)   File "/private/tmp/test/leetcode-anki/generate.py", line 184, in generate     task_handles = await leetcode_data.all_problems_handles()                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/private/tmp/test/leetcode-anki/leetcode_anki/helpers/leetcode.py", line 274, in all_problems_handles     return list(self._cache.keys())                 ^^^^^^^^^^^   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/functools.py", line 1001, in __get__     val = self.func(instance)           ^^^^^^^^^^^^^^^^^^^   File "/private/tmp/test/leetcode-anki/leetcode_anki/helpers/leetcode.py", line 143, in _cache     problems = self._get_problems_data()                ^^^^^^^^^^^^^^^^^^^^^^^^^   File "/private/tmp/test/leetcode-anki/leetcode_anki/helpers/leetcode.py", line 240, in _get_problems_data     problem_count = self._get_problems_count()                     ^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/private/tmp/test/leetcode-anki/leetcode_anki/helpers/leetcode.py", line 76, in wrapper     return func(*args, **kwargs)            ^^^^^^^^^^^^^^^^^^^^^   File "/private/tmp/test/leetcode-anki/leetcode_anki/helpers/leetcode.py", line 148, in _get_problems_count     api_instance = self._api_instance                    ^^^^^^^^^^^^^^^^^^   File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/functools.py", line 1001, in __get__     val = self.func(instance)           ^^^^^^^^^^^^^^^^^^^   File "/private/tmp/test/leetcode-anki/leetcode_anki/helpers/leetcode.py", line 134, in _api_instance     return _get_leetcode_api_client()            ^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/private/tmp/test/leetcode-anki/leetcode_anki/helpers/leetcode.py", line 38, in _get_leetcode_api_client     csrf_token = leetcode.auth.get_csrf_cookie(session_id)                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/private/tmp/test/leetcode-anki/leetcode-anki/lib/python3.11/site-packages/leetcode/auth.py", line 12, in get_csrf_cookie     return response.cookies["csrftoken"]            ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^   File "/private/tmp/test/leetcode-anki/leetcode-anki/lib/python3.11/site-packages/requests/cookies.py", line 334, in __getitem__     return self._find_no_duplicates(name)            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/private/tmp/test/leetcode-anki/leetcode-anki/lib/python3.11/site-packages/requests/cookies.py", line 413, in _find_no_duplicates     raise KeyError(f"name={name!r}, domain={domain!r}, path={path!r}") KeyError: "name='csrftoken', domain=None, path=None" make: *** [generate] Error 1
Any suggestions on how to fix this? I have followed the README steps to a T.

yeah, seems to be broken. Looks like leetcode has changed something on their side. Will take a look if I have time

so, I kindly resolved the issue, and additionally by providing a new feature. But, as the new feature is optional, you could just use the code with provided flow in README.md
git clone -b alcibiadesCleinias/fetch-user-submission https://github.com/AlcibiadesCleinias/leetcode-anki.git

https://github.com/AlcibiadesCleinias/leetcode-anki.git

Hi @AlcibiadesCleinias. Thanks for working on that and your PR! I need to look at it a bit closer, but don't have time at the moment. I'll try to do so in the next few days.
At the first glance it looks ok, but I'm not completely convinced about including more data to the card. I mean we can include anything there but uncontrolled inclusion of everything will eventually lead to a complex logic with a lot of branching based on the feature flags.
Anyway, one thing I know for sure is that we need to split your PR into two:

Fix of the CSRF token issue
This experimental feature

It will be much easier to assess those changes independently.
I think I also need to actually remove this csrf method from the python-leetcode lib, because it is not working, but this is another issue

Thank you so much! Your pull request works for me!


cmake/rv-virt: usage error with Ubuntu stock gcc-riscv64-unknown-elf toolchain

When using CMake subsystem on Ubuntu Jammy with stock gcc-riscv64-unknown-elf toolchain, got the following error:
$ cmake -S ~/Projects/Nuttx/nuttx/ -DBOARD_CONFIG=rv-virt/nsh64
-- Initializing NuttX
--   Board:  rv-virt
--   Config: nsh64
--   Appdir: /home/yf/Projects/Nuttx/nuttx/../apps
-- The C compiler identification is GNU 10.2.0
-- The CXX compiler identification is GNU 10.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/riscv64-unknown-elf-gcc
riscv64-unknown-elf-gcc: error:  -Wstrict-prototypes -fno-common -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas: No such file or directory
riscv64-unknown-elf-gcc: error: unrecognized command-line option '-mcpu=sifive-u54'
riscv64-unknown-elf-gcc: error: unrecognized command-line option '-mcpu=sifive-u54'
riscv64-unknown-elf-gcc: error:  -Wstrict-prototypes -fno-common -Wall -Wshadow -Wundef -Wno-attributes -Wno-unknown-pragmas: No such file or directory
riscv64-unknown-elf-gcc: error: unrecognized command-line option '-mcpu=sifive-u54'
riscv64-unknown-elf-gcc: error: unrecognized command-line option '-mcpu=sifive-u54'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yf/tmp/aaa

You need to update your toolchain to a newer version. These processor modules are only supported in gcc versions after 12:
https://github.com/apache/nuttx/blob/282feec9a3560304b1248e6df8063ea510909fab/tools/ci/cibuild.sh#L357-L361


istioctl commands graduate out of experimental

(This is used to request new product features, please visit https://discuss.istio.io for questions on using Istio)
Describe the feature request
As part of 1.3 release, we should consider certain commands to be graduated out of experimental.  I would recommend at least dashboard.
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[x ] User Experience
[ ] Developer Infrastructure
Additional context

@linsun Are you asking for specific commands to be graduated?  Or for the community to define a process for how commands are graduated?

@esnible I opened this to track which istioctl cmds we can graduate in 1.3.  I was looking for dashboard cmd last night, I had thought it is already graduated but still in experimental.

Would it help all of the experimental commands istioctl X print Use istioctl experimental X?
I don't want them to do the work, but it might help users who forget which commands have graduated?

@esnible that is helpful, I had thought that is already done but it is not.
We still need to graduate good commands that has been around for 1-2 releases.

The commands we have are
auth            Inspect and interact with authentication and authorization policies in the mesh
convert-ingress Convert Ingress configuration into Istio VirtualService configuration
dashboard       Access to Istio web UIs
metrics         Prints the metrics for the specified workload(s) when running in Kubernetes.
dashboard was new in 1.2.
auth was reworked in 1.2.
convert-ingress and metrics have been in use for a while and have no complaints.  I rarely use them and don't know if they are worthy of graduation or merely obscure.
  Which items do you recommend?
I will create tiny commands for the others directing users to the experimental subcommand.


Epinio UI test - Create a service using "Read from File" button

Test steps
-> Go to the service tab
-> Create a service through UI by using "Read from File" button

Expected Results
-> You should see your new service in the service tab with all the data

Bug found, checked with Ricard: it's a known one which should have been already fixed. The code is here but disabled, Richard is on it (no need to a new issue).

Done in PR #57.


Added Types-of-events-motion-animation in CSS

#<21  Added Types-of-events-motion-animation in CSS
Close #<21
Checklist:

[X] I have mentioned the issue number in my Pull Request.
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have created a helpful and easy to understand README.md

Can you please add the hacktober fest added tag over it @pranjay-poddar


"SAME" padding for avg_pool2d yields different results than explicitly 0-padded input with "VALID"

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 20.04
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): v2.3.0-rc2-23-gb36436b087 2.3.0
Python version: 3.8.5

Describe the current behavior
When using padding "SAME" with average pooling, the results on a small input look wrong. If I use average pooling on a completely empty matrix with only 1 value of the matrix at  1, using the "SAME" padding algorithm I don't get a correct average value. If I explicitly 0-pad the input and use "VALID", I get the correct value.
Describe the expected behavior
The behavior should be the same using :

an explicitly 0-padded matrix with tf.pad and the "VALID" algorithm
The "SAME" padding algorithm

Standalone code to reproduce the issue
"SAME"
import tensorflow as tf
import numpy as np
generated = np.zeros((4,4))
generated[2,1] = 1
gen_nhwc = tf.constant(generated[np.newaxis,:,:,np.newaxis])
pool = 3
res = tf.nn.avg_pool2d(gen_nhwc, (pool,pool), (1,1),"SAME")
result = np.squeeze(res.numpy())
print("Input:\n",generated)
print("Output\n",result)

Input:
 [[0. 0. 0. 0.]
 [0. 0. 0. 0.]
 [0. 1. 0. 0.]
 [0. 0. 0. 0.]]
Output
 [[0.         0.         0.         0.        ]
 [0.16666667 0.11111111 0.11111111 0.        ]
 [0.16666667 0.11111111 0.11111111 0.        ]
 [0.25       0.16666667 0.16666667 0.        ]]

tf.pad and "VALID" results:
import tensorflow as tf
import numpy as np
generated = np.zeros((4,4))
generated[2,1] = 1
gen_nhwc = tf.constant(generated[np.newaxis,:,:,np.newaxis])
pool = 3
paddings = [[0,0],[pool//2,pool//2],[pool//2,pool//2],[0,0]]
gen_pad = tf.pad(gen_nhwc, paddings, "CONSTANT")
res = tf.nn.avg_pool2d(gen_pad, (pool,pool), (1,1),"VALID")
result = np.squeeze(res.numpy())
print(generated)
print(result)

Input:
 [[0. 0. 0. 0.]
 [0. 0. 0. 0.]
 [0. 1. 0. 0.]
 [0. 0. 0. 0.]]
Output
 [[0.         0.         0.         0.        ]
 [0.11111111 0.11111111 0.11111111 0.        ]
 [0.11111111 0.11111111 0.11111111 0.        ]
 [0.11111111 0.11111111 0.11111111 0.        ]]

I have tried in colab with TF 2.2, 2.3 and nightly version(2.5.0-dev20201210) and was able to reproduce the issue. Please, find the gist here.Thanks!

Thanks for creating issue, thought about doing so as well according to my yesterdays question on SO (Question). This happened to me in colab with TF 2.3 as well as at windows 10, python 3.6 with TF 2.2 and 1.14, seem to be a bug across all versions, can somebody confirm?

Was able to Reproduce the issue in TF 2.5 as well. Please find the gist here.Thanks!

@Lescurel,
I tried to execute the code in the alternative approach and it was executed without any issue/error & also the output was also the expected and similar to the initial code. Kindly find the gist of it here. Thank you!


fix: make webhook api call honor webhook component as input

Webhook API call runs all components but it should use the Webhook Input as start component and just run that path.

Tested here, and it is still running isolated components.
And I just tested both /run and /webhook and they seem to trigger all components.

With /webhook :

With /run:

But at least that issue with async code that I had mentioned is gone.

Tested here, and it is still running isolated components.
And I just tested both /run and /webhook and they seem to trigger all components.

With /webhook :
With /run:
But at least that issue with async code that I had mentioned is gone.

Should be good now.

Working as expected now!


Google Chrome not installing latest version on Intel Macs

The max version of Google Chrome being installed and patched on Intel based Macs (x86_64) is 98.0.4758.102. The issue is the same across multiple devices.
Apple Silicon (arm64) Macs are correctly installing the latest version (currently 105.5195.125 at time of writing).

What label are you using for Google Chrome?
Did you read the release notes for version 9.2, and use googlechromepkg?

You're correct, was using the wrong label. Closing issue.


Add some ways to debug polymer elements

Our application is built from Polymer elements (custom and written by us) and we need a way to debug elements: to see when they're "ready", "attached", to see registered observers and property changes.
How can we achieve that?
Could you please add some variables to enable debug mode?

Everything you describe is possible using chrome devtools out of the box.

Closing per above comment. Chrome dev tools should be sufficient to be able to keep track of the lifecycle of elements.


virtualenv for python2

a user reports that on ubuntu, they installed anaconda python3, then created a virtualenv with python2, put the path in prefs.json, and were not able to start IPython.

In windows I managed it to work. At least in 1.4. Have not checked in 1.5.

I have opinion that user did not create full python2 env.
I used commands
virtualenv ~/py2k -p python
~/py2k/bin/pip install ipython jinja2 tornado pyzmq pandas jsonschema jupyter
sudo ~/py2k/bin/ipython kernelspec install-self
~/py2k/bin/pip install matplotlib scipy
Also I added to the my prefs
"IPython" : {
"path" : "/home/kpaharelau/py2k/bin"
}
And all ok

please use a fresh VM and test with anaconda on ubuntu, we don't normally use that so it could be different.

All works fine

execute install-runtime-core-dependencies.sh
execute

install beaker dependencies on ubuntu 14.04
sudo apt-get install -y python g++ make
sudo apt-get install -y python-software-properties
sudo apt-get install -y git
gradle
sudo add-apt-repository --yes ppa:cwchien/gradle
sudo apt-get update
sudo apt-get install -y gradle-2.4
npm
Note the new setup script name for Node.js v0.12
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install -y nodejs
for cpp
sudo apt-get install -y clang
for zmq, needed by ipython and iruby
sudo add-apt-repository --yes ppa:chris-lea/zeromq
sudo apt-get update
sudo apt-get install -y libzmq3-dbg libzmq3-dev libzmq3
ruby
sudo add-apt-repository -y ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install -y ruby2.1 ruby2.1-dev libtool
sudo gem install iruby
sudo gem install sass
iruby register

from https://www.continuum.io/downloads download Anaconda3-4.0.0-Linux-x86_64.sh and execute
bash  Anaconda3-4.0.0-Linux-x86_64.sh

execute
conda create -n py2k python=2.7 anaconda
conda install -n py2k ipython jinja2 tornado pyzmq pandas jsonschema jupyter matplotlib scipy (all must be installed by previous command)
sudo /home/{username}/anaconda3/envs/py2k/bin/ipython kernelspec install-self

add to pref file
"languages" : {
"IPython" : {
"path" : "/home/osboxes/anaconda3/envs/py2k/bin"
}
}

It works!  Thanks for your help!

awesome


Add docs around database backup, update mkdocs.yml

Closes: #3386
What's Changed

Add database-backup.md with links to the PostgreSQL and MySQL documentation on database backups.
Add appropriate cross-references to this file.
mkdocs was complaining about a number of docs files being left out of the table of contents in mkdocs.yml, so I've added those.

TODO

[x] Explanation of Change(s)
[x] Added change log fragment(s) (for more information see the documentation)
n/a Attached Screenshots, Payload Example
n/a Unit, Integration Tests
[x] Documentation Updates (when adding/changing features)
n/a Example Plugin Updates (when adding/changing features)
[x] Outline Remaining Work, Constraints from Design

I noticed a small bug that I introduced in the headings for nautobot/docs/user-guide/administration/installation/ubuntu.md. Would you mind changing line 217 for me as part of this PR?
Should be ## Install Node.js instead of ### Install Node.js so it doesn't show up under the Redis Setup section


Merge pull request #1 from mahtin/martin/7/fix-get_peer_status-return…

…-value
return [] vs None when using get_peer_status(peer="foo") fails to fin…

Codecov Report

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

@@           Coverage Diff           @@
##           master      #11   +/-   ##
=======================================
  Coverage   82.97%   82.97%
=======================================
  Files           1        1
  Lines         376      376
=======================================
  Hits          312      312
  Misses         64       64

Continue to review full report at Codecov.

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


github topics should be added

It is hard to search for me.
ddu-vim and ddu-source should be added.

Added ddi-vim.


Upgrade Unity Ads SDK Into 4.9.3 Android & IOS

unity_ads_plugin: 0.3.12 has been released with the 4.9.3 versions of the Unity Ads SDK


Help with understanding grad_clip parameters - is it a feature or bug

Describe the bug
Gradient clipping seems to work in some experiments, and does not work in other runs with same parameters (unstable).
All experiment parameters (configuration file, code version, dataset) kept the same, the clipping works in some runs, and in other runs the gradient can have large values (larger than the max_norm parameter). Runs are in the same environment, on the same worker.  We are not using Deterministic or seed.

What command or script did you run?

tools/train.py + customized config file

Did you make any modifications on the code or config? Did you understand what you have modified?

Config changes:

Added the cyclic lr scheduler with linear warm up + cyclic momentum scheduler
Custom anchors
albumentations based training dataset augmentation pipeline
1 GPU, base_batch_size=64
grad_clip=dict(max_norm=35, norm_type=2)
Code changes:
Custom ClearML logging hook on top of mmcv clearmllogger. Only has after_train_epoch callback implemented, but spikes occur at any iteration.

What dataset did you use?

Custom datasets in coco format

Please run python mmdet/utils/collect_env.py to collect necessary environment information and paste it here.
collect_env.py

sys.platform: linux
Python: 3.8.12 (default, Oct 12 2021, 13:49:34) [GCC 7.5.0]
CUDA available: True
GPU 0: Tesla T4
CUDA_HOME: /usr/local/cuda
NVCC: Cuda compilation tools, release 11.3, V11.3.109
GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
PyTorch: 1.11.0
PyTorch compiling details: PyTorch built with:
  - GCC 7.3
  - C++ Version: 201402
  - Intel(R) oneAPI Math Kernel Library Version 2021.4-Product Build 20210904 for Intel(R) 64 architecture applications
  - Intel(R) MKL-DNN v2.5.2 (Git Hash a9302535553c73243c632ad3c4c80beec3d19a1e)
  - OpenMP 201511 (a.k.a. OpenMP 4.5)
  - LAPACK is enabled (usually provided by MKL)
  - NNPACK is enabled
  - CPU capability usage: AVX2
  - CUDA Runtime 11.3
  - NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_37,code=compute_37
  - CuDNN 8.2
  - Magma 2.5.2
  - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.3, CUDNN_VERSION=8.2.0, CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/c++, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.11.0, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=OFF, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF,

TorchVision: 0.12.0
OpenCV: 4.6.0
MMCV: 1.5.2
MMCV Compiler: GCC 7.3
MMCV CUDA Compiler: 11.3
MMDetection: 2.25.1+d49d92a

You may add addition that may be helpful for locating the problem, such as

How you installed PyTorch [e.g., pip, conda, source]
Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)

PATH
/opt/conda/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LD_LIBRARY_PATH
/usr/local/nvidia/lib:/usr/local/nvidia/lib64
Docker file
ARG PYTORCH="1.11.0"
ARG CUDA="11.3"
ARG CUDNN="8"

FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel

ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0 8.0+PTX"
ENV TORCH_NVCC_FLAGS="-Xfatbin -compress-all"
ENV CMAKE_PREFIX_PATH="$(dirname $(which conda))/../"

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC \
    && apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 libcurl4 mlocate nano \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# Install MMCV
RUN pip install --no-cache-dir --upgrade pip wheel setuptools
RUN pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
RUN pip install --no-cache-dir mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.11.0/index.html

# Install ClearML & Tensorboard
RUN pip install clearml future tensorboard

# Install FiftyOne
RUN pip install --index-url<EMAIL_ADDRESS>-U fiftyone

# Install MMDetection and requirements
RUN conda clean --all
#RUN git clone https://github.com/open-mmlab/mmdetection.git /mmdetection
#WORKDIR /mmdetection
#ENV FORCE_CUDA="1"
#RUN pip install --no-cache-dir -r requirements/build.txt
#RUN pip install --no-cache-dir -r requirements/albu.txt
#RUN pip install --no-cache-dir -r requirements/tests.txt
#RUN pip install --no-cache-dir -r requirements/runtime.txt

# RUN pip install --no-cache-dir -e .

Error traceback
No error, the training runs regularly, and no error traceback. But we have gradients larger than max_norm, causing spikes in loss functions as well.

In my experiment, grad_clip can avoid NaN in loss very well. We welcome you to share your in-depth research.


[Tools] Fix macro demangling.

The code in swift-demangle to cope with macro demangling was slightly wrong.  Fix it.
rdar://109649226

Explanation: Fixes an error in swift-demangle when scanning for macro manglings.
Risk: Low. Only affects swift-demangle.
Original PR: https://github.com/apple/swift/pull/66049
Reviewed by: @DougGregor
Resolves: rdar://109151498 (original resolved rdar://106375185)
Tests: There are already a couple of manglings of this kind in test/Demangle/Inputs/manglings.txt, so this should fix the test (not that I've seen a test failure here — I just spotted this bug while looking at the code.)

@swift-ci Please test


Superpower v2

A v2 of Superpower, which this library uses for parsing expressions, is in the works. The PR just keeps things up-to-date with respect to some minor changes in the v2 API.
(This library can't, unfortunately, make use of the main v2 feature - TokenizerBuilder - because the /regex/ syntax creates an ambiguity which the hand-built tokenizer resolves programmatically.)

This is ready to go; will press the button once the final v2 of Superpower is in; :eyes: in the meantime appreciated :-)

Ready now :+1:


select on specific field of an Object in form of AsyncValue

Hi.
I have a StreamProvider to listen changes of a specific row in my (moor) database table:
final dbStreamProvider = StreamProvider.family<Object, String>((ref, columnValue) {
  return ref.watch(dbProvider).ObjectDao.watchByColumnX(columnValue);
});

So I have a AsyncValue in my widget :
final dbStreamProvider = ref.watch(dbStreamProvider(columnValue));

Now I want to only update UI if a specific column of my object is changed, So I want to use select :
final dbStreamProvider = ref.watch(dbStreamProvider(columnValue).select((value) => ???));

How do I have to specify a field of my object instead of ??? in the above code?

You can use whenData
final dbStreamProvider = ref.watch(dbStreamProvider(columnValue).select((value) => value.whenData((data) => data.property);

@rrousselGit  thank you.
Can I listen two property by one provider?
for example, I have two boolean property that I want to listen their change by the below provider:
final dbStreamProvider = ref.watch(dbStreamProvider(columnValue).select((value) => value.whenData((data) => (data.property1 || data.property2));

Is the above true?

No, use select twice

thanks


Update mdfc-recs-aws-data.md

Fixed type: in "Elastic Beanstalk managed platform updates should be enabled", the description was missing "T" as the beginning of "This"

@odbergma - nice catch! thanks.


How are all options requests released?

What steps will reproduce the problem?
restful api
How are all options requests allowed?
"OPTIONS, POST"=>"login"
"OPTIONS, POST"=>"register"
"OPTIONS, POST"=>"xxx1"
"OPTIONS, POST"=>"xxx2"
"OPTIONS, POST"=>"xxx3"
......

What is the expected result?
restful api
How are all options requests allowed?
What do you get instead?
Additional info

Q
A

Yii version
2.0.?  latest version（<IP_ADDRESS>）

PHP version
7.4

Operating system
win10 20H  x64

Are you using yii\rest\UrlRule for defining those?


Windows machine for JCK testing

We need to run the JCK suite on WIndows and it's access needs to be locked down so it cannot be shared with other jobs.
Needs to have a fast disk (so I'd say SSD) and ideally powerful cores (but doesn't need many of them) so something like 2 core/8Gb/100Gb SSD should suffice. Perhaps 16Gb+ if we decide to use a ramdrive for holding the JCK test suite itself.
Windows version TBD - what do Oracle test on?

Waiting for "Windows version TBD"

I think that we agreed 2012 R2? I will double check

Gut feel is that that would be a sensible version to go for.


Added OCaml version

The immutable version is comparable to the Haskell implementation. It's slower, but safer and more idiomatic.

Thank you!

I have just updated the scoreboards!


Use relative assets path

I hope this will avoid OS errors when beginners like me try to compile the source code like me.

Hello Julio! Thanks a lot for your suggestion. I was actually fixing that just now. I went with an alternative approach though.
I wanted to do it just as you propose, but I figured that providing a relative path doesn't really work, mainly because when you build the project using cargo, Cargo will not pull the assets directory to the build directory. I decided to make it so the user passes the assets directory path through the command line, and then I will add instructions in the README to do just that. Hopefully, it ends up being a nice solution!


vaadin-date-picker-light missing vaadin-date-picker-styles

vaadin-date-picker-light missing link import vaadin-date-picker-styles.html

@tomivirkki does this have any impact on the LAF of the date-picker-light? Looks very simplistic, Will like to take it off this list.


writeHandle() parameters?

Hi,
firstly, thanks a lot for you great work!
I was wondering how a concrete writeHandle() command would look like?
After having connected I wasn't successfully with the following parameters yet:
...
peripheral.writeHandle('0017', new Buffer([0x01, 0x00, 0x00]), true, function (error) {
            console.log('BLE: Write handle Error: ' + error);
            peripheral.disconnect();
});

The following screenshot shows the characteristic I would like to write 3 Bytes into (Handle 0x0017):

How would the wright parameters look like? Whats the right format for the handle?
And here another somehow related question:
If I register for a certain notification by writing 0x010000 into the notification characteristic using a handle shortcut, how can I receive the notification events? (I don't want to go through the whole service and characteristics discovery everytime just to set the notify-listener as described in the last part of the "Getting Started Guide" at https://github.com/sandeepmistry/noble/wiki/Getting-started)
Thanks a lot!
Tom

sandeepmistry ,
Thank you very much.
peripheral.on('handleNotify', function(handle, value) {}
works perfectly.


Fix minimap rect drawing

The Ground Markers plugin is using the following to draw a minimap square:
OverlayUtil.renderMinimapRect(client, graphics, posOnMinimap, 4, 4, color);

However, this results in a 5x5 square rather than a 4x4 square at a slightly wrong position.
This fix solves this by slightly changing the renderMinimapRect function in OverlayUtil.java.

Before
After

I don't think this is correct, here is a counter example:
center=50, 50 width=3 height=3
results in:
x = 50 - 3/2 + 1 = 50
y = 50 - 3/2 + 1 = 50
w = 2
y = 2
So it would be a 3x3 square at 50-52 inclusive despite the center point being 50,50. The expected result would be at 3x3 square at 49,49 - 51,51 inclusive.
It may also be good to write a test so you can verify out the math works correctly.

4597452aa8839714fa62ca675b26614e5f062bc3 should hopefully account for all exceptions

Width
Center
Corner
Corner calculation

1
50
50
50 - 1 / 2 + 0 = 50

2
50
50
50 - 2 / 2 + 1 = 50

3
50
49
50 - 3 / 2 + 0 = 49

4
50
49
50 - 4 / 2 + 1 = 49

5
50
49
50 - 5 / 2 + 1 = 49

6
50
48
50 - 6 / 2 + 1 = 48

7
50
48
50 - 7 / 2 + 1 = 48

8
50
47
50 - 8 / 2 + 1 = 47

9
50
47
50 - 9 / 2 + 1 = 47

62cb968f332804bfef47cccc9a79361df82be8ab has now properly centered the rect.

fixed in 4ca3db63588e037bcd16fb4dec999a6ab057943e


Automatic batch-size scaling is missing properties

  File "envs/demo2/lib/python3.7/site-packages/pytorch_lightning/trainer/training_tricks.py", line 267, in _run_power_scaling
    trainer.fit(model)
  File "envs/demo2/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 839, in fit
    self.single_gpu_train(model)
  File "/lib/python3.7/site-packages/pytorch_lightning/trainer/distrib_parts.py", line 499, in single_gpu_train
    self.run_pretrain_routine(model)
  File "pytorch_lightning/trainer/trainer.py", line 981, in run_pretrain_routine
    False)
  File "evaluation_loop.py", line 326, in _evaluate
    eval_results = model.validation_epoch_end(outputs)
  File "vae.py", line 83, in validation_epoch_end
    self.logger.experiment.add_image('images', grid, 0)
AttributeError: 'NoneType' object has no attribute 'experiment'

@SkafteNicki
Looks like loggers are gone?

Loggers are disabled during the auto scaling, such that all the small runs that are done inside the auto scaling is not logged. This works fine if the user does not explicit call the logger inside their model (i.e. only called by lightning in the background). I am not sure the way around this, of cause the simplest solution would be to ask the user to do something like:
if self.logger:
   self.logger.experiment.add_image('images', grid, 0)

But that is not a good idea...

Also this problem should also be present for the learning rate finder...

yeah, can’t ask the user to do that. maybe replace with a logger that has a no op somehow?

Yes, I think you are right that we just initialize a dummy logger. Something like this should work
from pytorch_lightning.loggers import LightningLoggerBase

class DummyExperiment(object):
    def nop(*args, **kw): pass
    def __getattr__(self, _): return self.nop

class DummyLogger(LightningLoggerBase):
    def __init__(self):
        self._experiment = DummyExperiment()

    @property
    def experiment(self):
        return self._experiment

    def log_metrics(self, metrics, step):
        pass

    def log_hyperparams(self, params):
        pass

    @property
    def name(self):
        pass

    @property
    def version(self):
        pass

logger = DummyLogger()
logger.experiment.add_image('hest', [1,2,3], global_step=3) # has no effect, but still exist


Replace deprecated use of node-pty

<EMAIL_ADDRESS>has deprecated the on event format and conpty support to stable. This PR switches to the new methods.

Hrm no idea why the CI failed

Directory: /Users/distiller/repo/target/node_modules/node-pty
Output:
gyp info it worked if it ends with ok
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| darwin | x64
gyp http GET https://electronjs.org/headers/v6.0.12/node-v6.0.12-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: This is most likely not a problem with node-gyp or the package itself and
gyp ERR! stack is related to network connectivity. In most cases you are behind a proxy or have bad
gyp ERR! stack network settings.

https://ci.appveyor.com/project/zeit/hyper/builds/28301568#L68
Seems to be a network problem


Salesforce password expired

Salesforce throwing a fatal error. Looks like the password is totally expired.
Seneca Fatal Error
==================

Message: seneca: Action cmd:list,role:entity failed: The users password has expired, you must call SetPassword before attempting any other API operations.

Code: act_execute

Details: { id: 'qxc4876k0fda/m1w7zlq5dpku',
  gate: false,
  ungate: true,
  desc: 'cmd:list,role:entity',
  cb: [Function],
  plugin: { name: 'salesforce-store', tag: 'VYP' },
  fn: [Function],
  time: { start:<PHONE_NUMBER>676, end:<PHONE_NUMBER>877 },
  'orig$':
   { [INVALID_OPERATION_WITH_EXPIRED_PASSWORD: The users password has expired, you must call SetPassword before attempting any other API operations]
     name: 'INVALID_OPERATION_WITH_EXPIRED_PASSWORD',
     errorCode: 'INVALID_OPERATION_WITH_EXPIRED_PASSWORD' },
  'message$': 'The users password has expired, you must call SetPassword before attempting any other API operations',
  message: 'The users password has expired, you must call SetPassword before attempting any other API operations',
  pattern: 'cmd:list,role:entity',
  instance: 'Seneca/0.7.2/5t0a1quolzt0/1448010156180/4540/-' }

Fixed and set the profile so their password will never expire again (just for the account accessing the api)


WebView: Showing very small font size in Android

I Have used webview_flutter 3.0.1 for displaying HTML content. While it run on android it's show very small font size.

Hi @YudizAnkit, please provide a complete minimal reproducible code sample as well as the output of flutter doctor -v.
Please also provide what your expected results are.
I'm not entirely sure the webview has anything to do with how the text appears in it.