onAuthorizeFailure always triggered when authorizing google fit

Hi,
It seems like the event onAuthorizeFailure is always triggered.
I'm using the README code:
GoogleFit.onAuthorize(() => {
  console.log('success');
});

GoogleFit.onAuthorizeFailure(() => {
  console.log('failure');
});

GoogleFit.authorize();

When I am authorizing Google fit, either on simulator or real device, the failure event is always triggered, right after calling authorize (while there is still the account selection modal).
Note that onAuthorize is triggered when I select my account, so the success case is handled. I was wondering if I am doing something wrong, or if the error handling has an issue.

@PierreCavalet it's common issue when you miss something from here

In order for the library to work correctly, you'll need following SDK setups:

Android Support Repository
Android Support Library
Google Play services
Google Repository
Google Play APK Expansion Library

In order for your app to communicate properly with the Google Fitness API, you need to provide the SHA1 sum of the certificate used for signing your application to Google. This will enable the GoogleFit plugin to communicate with the Fit application in each smartphone where the application is installed. https://developers.google.com/fit/android/get-api-key

@StasDoskalenko I already provided the SHA1 sum to generate the clientID of the certificate which I directly put in the MainApplication.java like so:
...
new GoogleFitPackage("clientID....apps.googleusercontent.com"),
...

I've used the following command to generate it (mac OS):
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

I then created new credentials for an Oauth client ID and submitted the SHA1 fingerprint and package name which gave me the clientID that I used in the MainApplication.java. Is there something wrong with my procedure ? Note that I can retrieve my google fit data on my phone (in debug) which seems to indicate that it's somehow working, but maybe I missed something else.
Any idea ?

@PierreCavalet yes. You shouldn't pass clientID to GoogleFitPackage constructor.
Just use it like in installation guide. new GoogleFitPackage(BuildConfig.APPLICATION_ID)

In any case you can see the reason within:
GoogleFit.onAuthorizeFailure((error) => {   console.log('failure', error); });

I get the error:
"ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{f40b858: android.os.BinderProxy@6ca86bc}, message=null}"
Which seems to be an error when the user did not authorized the application, but what is weird is that I'm in the authorization process.

Actually, it means that you missed something from Google Docs. Please try to follow these instructions https://developers.google.com/fit/android/get-api-key really carefully.

I'm no android expert, I don't really understand what I did wrong.
(Note that I didn't do the release key part since I'm in debug, is there something wrong with that ?)
I got my SHA-1 fingerprint from the ~/.android/debug.keystore and generated my clientID with the fingerprint and package name.
What am I supposed to do with my clientID ?

Hi again,
I just wanted to provide more information in case this can help. Maybe I am wrong, but it seems that the api-key process works, because with an other keystore, it was not working (which is normal).
I went through the process again for the new keystore and I can now retrieve my data with this one. So it seems to work. The authorization also works normally on the "success scenario". The only thing which is not working seems to be the onAuthorizeFailure which is still trigger even when it works.

I have the exact same issue, GoogleFit.onAuthorize() is triggered at the exact same time as GoogleFit.authorize() is called, before user even selects his google profile. Results in an error message: ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{2438a5: android.os.BinderProxy@d4c947a}, message=null}.

@ernestasromeika statusCode=SIGN_IN_REQUIRED means that you've missed something from https://developers.google.com/fit/android/get-api-key

@ernestasromeika did you solve your problem ?

I have no idea of how, but for some reason the following seems to work for me:
Inside node_modules > react-native-google-fit > android > build.gradle, scroll all the way to the bottom and replace the version numbers of play-services-auth and play-services-fitness to +, similar to how it is for react-native. Here's what it'll look like in the end:
dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.facebook.react:react-native:+'
    compile 'com.google.android.gms:play-services-auth:+'
    compile 'com.google.android.gms:play-services-fitness:+'
}


CC88813: Changing path to the file

Hello, @rick-anderson,
This proposed file change comes from https://github.com/aspnet/Docs.pt-br/pull/97 .
Could you review this contribution and help to merge if agreed?
Many thanks in advance.

Thanks for the PR. The fix is more complicated than that as it needs to work on the VSC and VS Mac tabs. See  #10006
cc @scottaddie 	@tdykstra 	incase we get more of these before I can fix it.

Thanks @Rick-Anderson, now we saw you could fixed it here: https://github.com/aspnet/Docs/pull/10038


docs(README): use markdown

Problem
File is not being formatted beautifully like usual on GitHub.
Solution
Use markdown

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Coverage decreased (-0.03%) to 88.136% when pulling cf48fe357ddc0516664f312241f04b252da09dab on martingronlund:patch-1 into 2f8430228d5b6a0703a36507fe66e34925723a93 on twitter:master.

tvm!


subcommand convert requires static knowledge about used prefixes

Executing rdfsx convert -m dctap -x uml -f csv -s book.csv -r svg -o book.svg (from within the examples directory) fails due to missing knowledge on prefix dct (see #92).
In addition to ability to explicitly declare prefix knowledge, it would be nice with an option to query https://prefix.cc/ for missing prefixes.
It might then be helpful with an option --no-cache to skip caching, and option --cache-reset to clear the whole cache before (unless --no-cache is also set) caching from scratch.

There is an option config which can be used to inject a configuration file to the convert process.
I don't close this issue yet because we need to properly document that option.
I will add a specific issue about prefix.cc which is indeed a nice suggestion.


Cannot clone rbenv when git is not in the PATH

I tried to use the plugin in the machine where git is installed from source and not in the PATH, but git command was not found, although I set PATH properly in the global config of Jenkins.
Jenkins now has the global tool configuration where git executable is configured, now it looks like this plugin doesn't respect it.
I wish it uses the correct git executable set in the global tool configuration.
Here's the backtrace.
$ bash -c "[ -d \$HOME/.rbenv ]"
Installing rbenv...
$ bash -c "git clone https://github.com/rbenv/rbenv.git \$HOME/.rbenv && cd \$HOME/.rbenv && git checkout master"
bash: git: command not found
FATAL: (CommandError) failed: "git clone https://github.com/rbenv/rbenv.git \\$HOME/.rbenv && cd \\$HOME/.rbenv && git checkout master"
org.jruby.exceptions.RaiseException: (CommandError) failed: "git clone https://github.com/rbenv/rbenv.git \\$HOME/.rbenv && cd \\$HOME/.rbenv && git checkout master"
    at RUBY.run(/var/lib/jenkins/plugins/rbenv/WEB-INF/classes/lib/rbenv/invoke.rb:18)
    at RUBY.install!(/var/lib/jenkins/plugins/rbenv/WEB-INF/classes/lib/rbenv.rb:47)
    at RUBY.setup!(/var/lib/jenkins/plugins/rbenv/WEB-INF/classes/lib/rbenv.rb:20)
    at RUBY.setup(/var/lib/jenkins/plugins/rbenv/WEB-INF/classes/models/rbenv_wrapper.rb:65)
    at RUBY.setUp(/var/lib/jenkins/plugins/rbenv/WEB-INF/classes/vendor/gems/bundler/../gems/jenkins-plugin-runtime-0.2.3/lib/jenkins/model/environment_proxy.rb:8)
Finished: FAILURE

Same happened to me. Did you solved the problem with other config way @okuramasafumi ?

I'm closing this issue since I no longer use jenkins. Please let me know if someone still faces this issue.


Example for moved NuGet cache

Feature request

Default behaviour should be to follow symbolic links on the drives.
Also a example with symlinks: false would be welcomed.
What is the expected behavior?
Default behaviourof webüpack to follow the symbolic links.
What is motivation or use case for adding/changing the behavior?
As on system drive C: there was only little remaining space I move the NuGet cache to a secondary drive. The original directory got a symbolic link. By default configuration webpack failed to follow the link.
Original issue at Fable is linked.
How should this be implemented in your opinion?
If symlinks is not defined in the configuration, today webpack assumes true. This should be inverted: if not present, then false.
Are you willing to work on this yourself?
yes

symlinks: true follows symlinks. You want to propose to not follow symlinks by default.

This would be a pretty big breaking change no?

No, I don't think so. With the proposed change my colleagues and I are now already working for several weeks on a Fable project - see the link above. Neither me with relocated Nuget cache nor the co-workers with only one bigger drive have had any issues yet.Von meinem Huawei-Mobiltelefon gesendet-------- Originalnachricht --------Betreff: Re: [webpack/webpack] Example for moved NuGet cache (#7820)Von: Sean Larkin An: webpack/webpack Cc: Volker Milbrandt ,Author This would be a pretty big breaking change no?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/webpack/webpack","title":"webpack/webpack","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/webpack/webpack"}},"updates":{"snippets":[{"icon":"PERSON","message":"@TheLarkInn in #7820: This would be a pretty big breaking change no?\r\n"}],"action":{"name":"View Issue","url":"https://github.com/webpack/webpack/issues/7820#issuecomment-411440341"}}}
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/webpack/webpack/issues/7820#issuecomment-411440341",
"url": "https://github.com/webpack/webpack/issues/7820#issuecomment-411440341",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [webpack/webpack] Example for moved NuGet cache (#7820)",
"sections": [
{
"text": "",
"activityTitle": "Sean Larkin",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@TheLarkInn",
"facts": [
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n"commandName": "IssueComment",\n"repositoryFullName": "webpack/webpack",\n"issueId": 7820,\n"IssueComment": "{{IssueComment.value}}"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n"commandName": "IssueClose",\n"repositoryFullName": "webpack/webpack",\n"issueId": 7820\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/webpack/webpack/issues/7820#issuecomment-411440341"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n"commandName": "MuteNotification",\n"threadId": 362512645\n}"
}
],
"themeColor": "26292E"
}
]

ERROR: F:/.nuget/packages/fable.elmish/1.0.3/fable/cmd.fs doesn't belong to any of loaded projects [[F:/Repos/Company.EcoPage/source/Client/Client.fsproj, F:/Repos/Company.EcoPage/source/Client/Client.fsproj]]
   at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1379.Invoke(String message)
   at Fable.CLI.StateUtil.loop@232-6.Invoke(Tuple\`2 _arg1)

This is not a webpack error. Seem like some plugin (?) has problems with these symlinks

/cc @milbrandt problem still exits?

As mentioned above, with symlinks: false the problem is fixed for me.

https://github.com/webpack/webpack/issues/7820#issuecomment-447430307


Omitting a model definitions element breaks generation

The current generator requires a model definitions element in order for generation to succeed, omitting the model definition leads to the generated controller base trait file being generated empty.
Swagger definition:
---
swagger: '2.0'
x-api-first-package: controllers
info:
  version: 0.0.0
  title: Simple API Test
paths:
  /{bippy}:
    get:
      parameters:
        - in: path
          name: bippy
          description: A bippy
          required: true
          type: string
      responses:
        200:
          description: bippy response

Generation:
[play-swagger-test] $ compile
[info] Updating {file:/Users/marco/Code/play-swagger-test/}root...
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Compiling 17 Scala sources and 1 Java source to /Users/marco/Code/play-swagger-test/target/scala-2.11/classes...
[error] /Users/marco/Code/play-swagger-test/target/scala-2.11/routes/main/../../../../controller_skeletons/bippy.yaml.scala:6: not found: type BippyYamlBase
[error] class BippyYaml extends BippyYamlBase {
[error]                         ^
[error] /Users/marco/Code/play-swagger-test/target/scala-2.11/routes/main/../../../../controller_skeletons/bippy.yaml.scala:9: not found: value getByBippyAction
[error]   def getByBippy = getByBippyAction { in : (String) =>
[error]                    ^
[error] two errors found
[error] (compile:compileIncremental) Compilation failed
[error] Total time: 3 s, completed Oct 13, 2015 6:30:56 PM

With the addition of a (minimal) model definition, generation succeeds:
---
swagger: '2.0'
x-api-first-package: controllers
info:
  version: 0.0.0
  title: Simple API Test
paths:
  /{bippy}:
    get:
      parameters:
        - in: path
          name: bippy
          description: A bippy
          required: true
          type: string
      responses:
        200:
          description: bippy response
definitions:
  bop:
    properties:
      name:
        type: string

[play-swagger-test] $ clean
[success] Total time: 0 s, completed Oct 13, 2015 6:32:29 PM
[play-swagger-test] $ compile
[info] Updating {file:/Users/marco/Code/play-swagger-test/}root...
[info] Resolving jline#jline;2.12.1 ...
[info] Done updating.
[info] Compiling 17 Scala sources and 1 Java source to /Users/marco/Code/play-swagger-test/target/scala-2.11/classes...
[success] Total time: 7 s, completed Oct 13, 2015 6:32:38 PM

Fixed in master

Fixed in v.0.1.4


Change docker image to run the simulation on start

One less line of commands to run the simulation
Container runs server then checks that server is listening. Then runs p2lab.
The container might have to be changed at some point because the output probably won't be saved anywhere. I'd have to mount some persistent storage and save the simulation results there.

Codecov Report

Merging #61 (a75e361) into main (f151a98) will decrease coverage by 0.63%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #61      +/-   ##
==========================================
- Coverage   69.45%   68.82%   -0.63%
==========================================
  Files          15       15
  Lines         478      478
==========================================
- Hits          332      329       -3
- Misses        146      149       +3

see 1 file with indirect coverage changes

Thanks for this @boykovdn -- looks good. I'm thinking we could probably move in the direction of having this read in from a config file, as this will run the simulations with default arguments everytime. We can even use that to define the directory that docker mounts to print out results I would think!
I can happily take a look at this and build on this PR at some point, but if you have time and want to I can let you lead that :)

Nice idea, I'll maybe have a look and give it a shot soon!

Great! I'll leave this PR for the time being then -- thanks :)

Changed the main.py to run with a config file. I don't know if this is the best way to parametrise the container, and I couldn't test the full building + running because the container is build from the main branch directly 😅
I did try overriding the source in the container with the one from my local filesystem and it seemed to work, so hopefully it's fine!

@boykovdn ok this is great!
regarding the fact you clone on the fly, I think we can probably change it to just copy all the relevant files from the Dockerfile directory into the container. Then you can test it properly :)
Also, an accidental consequence of using the configfile in the way you do is that you erase the command-line arguments! So maybe you can put that back in, and add a new arg called config that is the path to the config file, which then reads all the relevant args. Then, a possible next step is that you can specify that as a docker build argument (i found this random page when googling), which makes sure to copy the config path into the container, and you can then run p2lab --config=$CONFIG_PATH or however that's fed in!
After these two changes, then we're definitely good to merge :)


Added unit test to exercise bulk import range sanity check code #1618

@cradal  would you be interested in looking over this?  Its a follow up to #1637

@keith-turner Sure.

@keith-turner The test runs fine. Looks good.


feat: Utilize "TypeScript Error Translator" VSCode plugin

This VSCode extension translates TS errors into human-readable language... the same as we are doing in hints. We can try to utilize those translations as rehearsal hints.
The issue is that the package has no license and seems not updated for a long time.

This module doesn't appear to be published on NPM, it's only available via VSCode Ext. If we can bundle the plain english errors (https://github.com/mattpocock/ts-error-translator/tree/main/packages/engine/errors) and cite/thank the contributor that'll be ideal.


Markers not being removed from MapView  [ios]

Bug report

Summary
In my MapView, I have an array of Markers maintained by a state variable markerObjs. In my actual application, I have implemented a simple custom Marker (just a green circle). My problem comes when I try to filter the markerObjs array. When a specific markerObj is filtered out (removed from the state array), the Marker is still left on the MapView. While I am unable to replicate this bug using Snack (the react-native-maps package does not seem to play nice with Expo's Snack), I have been able to reproduce the issue in a very simplified way: When I tap on the MapView, a markerObj is added to the state array, and when I press another button, the array is cleared (therefore removing all markers from the array). Except, when the array is cleared, the Marker is still on the MapView. I am testing this on an iOS device. I have been working at this problem for days now. I have seen that Markers are managed by MapView's children, but even when the MapView's children is an empty array (double checked with using a ref), the Marker remains on the screen. This is my first time reporting a bug, and I tried to exhaust all other options, but I genuinely cannot figure out what is going wrong. Please excuse me if this is a simple fix, I am reaching out for any help at all. Thank you.
Video
Here is a video example of my problem. When the marker array is cleared, as evidenced in the bottom panel, the marker remains on the screen, even if another marker is added after the first is removed. If there is any more information needed, I would be happy to provide it, just let me know. Thank you!
https://user-images.githubusercontent.com/43217788/155035970-44e43b9b-2dae-4a2e-9844-b7398c213b15.mp4
Environment info
  react-native: 0.67.2
  react: 17.0.2
  react-native-maps: 0.30.1

  Target Platform: iOS - 15.2.1 iPhone 12 Pro (using Apple Maps)

react-native info output:
 System:
    OS: macOS 11.6.3
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 90.96 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 14.18.1 - /usr/local/bin/node
    Yarn: 1.22.17 - /usr/local/bin/yarn
    npm: 8.3.1 - /usr/local/bin/npm
    Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0
    Android SDK:
      API Levels: 29, 30, 31
      Build Tools: 29.0.2, 30.0.2, 31.0.0
      System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7784292
    Xcode: 13.0/13A233 - /usr/bin/xcodebuild
  Languages:
    Java: javac 15 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.67.2 => 0.67.2
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

Follow instruction steps for this package
Add a marker by tapping anywhere in the MapView
Tap 'clear markers' to set the marker array to empty

Describe what you expected to happen:

Once the marker state array was emptied, the markers would disappear from the screen

Describe what you actually happens:

Once the marker state array was emptied, the markers remain visible on the screen
If you are using a custom marker (like I am in my actual application), then the filtered out markers will change into the default markers,  but still show on the screen

Reproducible sample code

const Discover = (props) => {
const [markerObjs, setMarkerObjs] = useState([])
const [distance, setDistance] = useState(60)
const [user, setUser] = useState({location: {lat: xxx, lng: xxx}})
const mapRef = useRef(null)

return (
    <View>
      <MapView
        ref={mapRef}
        minZoomLevel={4}
        minDelta={0.1}
        style={{ height: '100%', width: '100%' }}
        initialRegion={{
          latitude: user.location.lat,
          longitude: user.location.lng,
          latitudeDelta: distance / 54.6,
          longitudeDelta: distance / 54.6,
        }}
        onPress={e => {
          setMarkerObjs([
            {
              lat: e.nativeEvent.coordinate.latitude,
              lng: e.nativeEvent.coordinate.longitude,
            }
          ])
        }}
      >
        {
          markerObjs.map((marker, idx) => (
            <Marker
              key={idx}
              coordinate={{latitude: marker.lat, longitude: marker.lng}}
            />
          ))
        }
      </MapView>
     <Box
        p={5}
        position="absolute"
        top={insets.top}
        left={0}
        >
          <Pressable
              p={3}
              onPress={() => {
                setMarkerObjs([])
              }}>
              {({isPressed}) => (
                <Box
                  rounded={20}
                  opacity={isPressed ? 0.5 : 1}
                  p={3}
                  shadow={4}
                  bg="black"
                >
                  <Text color="white" fontWeight={300} fontSize={12}>CLEAR MARKERS</Text>
                </Box>
              )}
            </Pressable>
      </Box>
      <Box
        position="absolute"
        bottom={0}
        bg="white"
        w="100%"
        h="15%"
      >
        <Text>markerObjs: {JSON.stringify(markerObjs, null, 3)}</Text>
      </Box>
     </View>
  )
}

First of all, thank you for taking the time to write a thorough issue description, following the issue template. 👍
I tried looking into this, but I'm struggling to reproduce the bug. Could you try to provide a minimal, reproducible example? I'm aware that your example is fairly minimal, but can you strip away all unnecesarry props, states and third party components, and try to reproduce this in a clean project?
What I did trying to reproduce:

npx react-native init MyApp --template react-native-template-typescript
yarn add react-native-maps
cd ios & pod install
yarn ios

And ran the following in App.tsx:
import React, {useEffect, useRef, useState} from 'react';
import {Pressable, StyleSheet, Text, View} from 'react-native';
import MapView, {LatLng, MapEvent, Marker, Region} from 'react-native-maps';

const initialRegion: Region = {
  latitude: 55.676098,
  longitude: 12.568337,
  latitudeDelta: 1.2,
  longitudeDelta: 1.2,
};

export default function App() {
  const mapViewRef = useRef<MapView>(null);
  const [markers, setMarkers] = useState<LatLng[]>([]);

  const setMarker = ({nativeEvent}: MapEvent) =>
    setMarkers([
      {
        latitude: nativeEvent.coordinate.latitude,
        longitude: nativeEvent.coordinate.longitude,
      },
    ]);

  const clearMarkers = () => {
    setMarkers([]);
  };

  useEffect(() => console.log(markers), [markers]);

  return (
    <View style={styles.containerView}>
      <MapView
        style={styles.mapView}
        ref={mapViewRef}
        initialRegion={initialRegion}
        onPress={setMarker}>
        {markers.map((marker, idx) => (
          <Marker
            key={idx}
            coordinate={{
              latitude: marker.latitude,
              longitude: marker.longitude,
            }}
          />
        ))}
      </MapView>
      <Pressable style={styles.clearMarkersPressable} onPress={clearMarkers}>
        <Text>Remove marker</Text>
      </Pressable>
    </View>
  );
}

const styles = StyleSheet.create({
  containerView: {
    flex: 1,
  },
  mapView: {
    flex: 1,
  },
  clearMarkersPressable: {
    height: 50,
    backgroundColor: 'red',
  },
});

First of all, thank you for taking the time to write a thorough issue description, following the issue template. 👍
I tried looking into this, but I'm struggling to reproduce the bug. Could you try to provide a minimal, reproducible example? I'm aware that your example is fairly minimal, but can you strip away all unnecesarry props, states and third party components, and try to reproduce this in a clean project?
What I did trying to reproduce:

npx react-native init MyApp --template react-native-template-typescript
yarn add react-native-maps
cd ios & pod install
yarn ios

And ran the following in App.tsx:
import React, {useEffect, useRef, useState} from 'react';
import {Pressable, StyleSheet, Text, View} from 'react-native';
import MapView, {LatLng, MapEvent, Marker, Region} from 'react-native-maps';

const initialRegion: Region = {
  latitude: 55.676098,
  longitude: 12.568337,
  latitudeDelta: 1.2,
  longitudeDelta: 1.2,
};

export default function App() {
  const mapViewRef = useRef<MapView>(null);
  const [markers, setMarkers] = useState<LatLng[]>([]);

  const setMarker = ({nativeEvent}: MapEvent) =>
    setMarkers([
      {
        latitude: nativeEvent.coordinate.latitude,
        longitude: nativeEvent.coordinate.longitude,
      },
    ]);

  const clearMarkers = () => {
    setMarkers([]);
  };

  useEffect(() => console.log(markers), [markers]);

  return (
    <View style={styles.containerView}>
      <MapView
        style={styles.mapView}
        ref={mapViewRef}
        initialRegion={initialRegion}
        onPress={setMarker}>
        {markers.map((marker, idx) => (
          <Marker
            key={idx}
            coordinate={{
              latitude: marker.latitude,
              longitude: marker.longitude,
            }}
          />
        ))}
      </MapView>
      <Pressable style={styles.clearMarkersPressable} onPress={clearMarkers}>
        <Text>Remove marker</Text>
      </Pressable>
    </View>
  );
}

const styles = StyleSheet.create({
  containerView: {
    flex: 1,
  },
  mapView: {
    flex: 1,
  },
  clearMarkersPressable: {
    height: 50,
    backgroundColor: 'red',
  },
});

Interesting... I created an entirely new project to test out the minimal version you gave me, and it worked just fine. So I tried replacing everything on the specific file I had in my project with the version you gave me, and it is not working again. I assume this means something went wrong in my project, so I will figure out where the problem is stemming from. If you have any ideas I'd love to hear them, but I'm sure it will be specific to my project. I will update when I figure out what went wrong. Thank you very much for the help!

@MatthewLamperski nothing off the top of my head, unfortunately. And I don't see anything obvious in your example either. But please do give an update when you track it down :)

So, after searching for the issue for a couple days, I decided to give up because the time spent was not worth the benefit. Luckily, the project I am working on is still in its relatively early stages, so I have decided to make a fresh project and copy my files over.
In short, the map is working fantastically now. I'm still not sure where the original issue stemmed from, but if I figure out, I will follow up. Thank you @Simon-TechForm for your help! I'm going to close this issue as I am not experiencing it anymore.

I got same issue @Simon-TechForm , how we can clear markers manually?

@MatthewLamperski I've been trying to find the source of a very similar issue here and also wasn't able to initially create a demo repo where the issue occurred.
After investigation, the issue seems to be connected with react-native-reanimated.
Do you remember if you happened to use that library on your original project?

@MatthewLamperski I've been trying to find the source of a very similar issue here and also wasn't able to initially create a demo repo where the issue occurred. After investigation, the issue seems to be connected with react-native-reanimated.
Do you remember if you happened to use that library on your original project?

Hey, so sorry for the very late response. This was a while ago, but yes I definitely used reanimated in that same project at the time. I didn't use it extensively, opting for React Native's Animated library (my animations were few and far between), but I definitely used that library in that project. I restarted and the bug was fixed in my case, but great find!

Hi. I have react-native-reanimated version 2.14.4 and I applied the patch.
I went to folder /node_modules/ and added the necessary lines. This + rerunning the project using npx expo start should do the job right? Am I missing something? My markers are still not being removed. Did anyone find other workarounds?
Best, Mario


Make workarounds for servers that does not support sync_token properly

Good evening,
I tried the library with nextcloud, all works good for create ,modify ,search data into nextcloud. I have some trouble with sync_token.. when i used the function objects_by_sync_token(sync_token, load_objects=True)  after i did some change into nextcloud (for example move a meet and cancel another)
the server answer with error 418 i'm teapot ..i not understand if i wrong something ....
I also tried to do the same things but only with modify some meetings,without cancel and all was good and the function works ,and returns me all my changes correctly...
It seems likes the problem Is with delete records,Someone know why?
Thanks

Known server-side issue.  At least, it's an issue known by me ... I guess I never bothered to check up if it's known by the nextcloud developers.

This issue should be addressed with Nextcloud, since this is a bug with Nextcloud.
That said, there are many servers having issues with sync tokens.  I do have some plans to address this at the client side by downloading the full calendar for servers that does not support sync-tokens properly.  Yes, it will be slow.  And I will fix #157 first.


Go router has 16KB header limit

Thanks for submitting an issue to gorouter. We are always trying to improve! To help us, please fill out the following template.
Issue
When using custom header and passing a SAML token greater than 16kb the header gets truncated
Context
Have a cluster of apps that need to share SAML authentication. Per design, a SAML token is passed to receiving API's using a custom header SAML_RESP. If the token is larger than 16kb the header gets truncated
Steps to Reproduce
Send a header larger than 16kb and examine on the receiving end. We'll see that the header is truncated
Expected result
It would be nice if there wasn't a limit or at least if the limit was increased
Current result
Header gets truncated therefore we received an incomplete token
Possible Fix
Increase the hard limit of 16kb
name of issue Output Results
[if relevant, include a screenshot]

We would welcome a PR for this; please include a PR to github.com/cloudfoundry/routing-release to support a configurable manifest property.
Our team is currently focussed on building the Istio Pilot and Envoy based routing tier and we are not likely to prioritize doing this ourselves in the near term, but we will prioritize review and merging of a PR.


Update index.html

Added a list item
Hactoberfest contribution

Ok I will make the changes
On Tue, Oct 18, 2022, 00:30 Abel @.***> wrote:

Closed #48 https://github.com/abel-otegbola/clock-app/pull/48.
—
Reply to this email directly, view it on GitHub
https://github.com/abel-otegbola/clock-app/pull/48#event-7605036309, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AW52UNOMEWMB5MNZ772WHGLWDWO5XANCNFSM6AAAAAARHJGHPQ
.
You are receiving this because you authored the thread.Message ID:
@.***>


Ingame tracker

It would be quite helpful, especially in the early learning stages of the randomizer, to have some kind of ingame tracking.
A full map tracker would be great, something similar to https://www.nexusmods.com/subnautica/mods/12
A simpler method might be a special compass that points to the nearest not yet checked location, similar to a scanner room.

Closing this, a tracker is being built by Lurch9229


Adding missing source-map and private to deps

Installed via npm (not yarn). Also stuck on npm 2 at work.  In ran npm install -g prettier. Install worked fine.
Then I went to run:
prettier -h

And found that 2 packages were missing until I installed them: source-map and private

Ha, just writing the same PR! 👍

@MWers / @jlongster - I actually edited this via Github (for the first time ever).  I did the following locally:
cd ~/.nvm/versions/node/v4.7.0/lib/node_modules/prettier
npm install -S source-map private

Then copied those deps via Github's UI :)

Thank you! We should need the source-map dep but I'll clean this up later.


half screen issue

Hello,
I added sd-model-preview-xd to my SD Automatic1111 and the GUI only goes half-way across my web browser. No error messages, and SD still works - it's just not full screen across my browser. Left side is good, but right half is just blank. I can remove the extension and the issue goes away.
Re-installed Automatic1111, and then sd-model-preview-xd, and recreated the issue.
When I remove the extension, the problem goes away.
Running SD Automatic1111 on Windows 11. 32GB RAM on i7-8700K with and RTX 4070.
Tried this on my normal browser (Firefox - then repeated it on Chrome, and a fresh install of Opera)
Wondering if you have seen this before, or if there is a fix for it.
THANKS for all you do!!!

can you post what a1111 commit you are on? Also can you post a screenshot of the gui?

Thanks for getting back to me!
yes and no - Happy to give you the commit:   feee37d75f1b168768014e4634dcb156ee649c05
A screen shot is difficult - It's in use right now for a project, and won't be done for a few days so I can't give you the screen shot now - BUT, I saw a picture of someone else's screen that was having the exact same problem (that png is attached).  My issue was identical.

THANKS!

The SD Model Preview XD extension does alter the global layout. However, its obviously not supposed to look like that. I am running feee37d75f1b168768014e4634dcb156ee649c05 and don't have this issue. Can you link where you got this screenshot from?
Also in this screenshot they seem to be using some sort of theme that is altering their install. Do you have a similar theme installed? Its possible that another extension is also altering the CSS of the global layout and causing this.

I did have a theme - some dark theme like dracula or something... and that is what I was thinking too - but I removed the theme while I was troubleshooting on my end, so now it is just "Default". Didn't seem to matter if it was installed or not.

user.css   no - so much going on in this thing, I never even tried to edit any css files manually.

I just did a fresh install and it doesn't have the issue. I also switched to a few different themes and they all worked. Without being able to recreate the problem I cant really help you.

ok well, thanks for the effort! I appreciate your time.

since you havent replied with any new info and because this seems to be an old issue that was already fixed (I cant replicate it on the current version).... I am going to close this again.

I have the same issue, it's more like 1/3 of screen used and totally broken and unreadable with default dark theme on sd-webui commit 82a973c04367123ae98bd9abdf80d9eda9b910e2

installed extensions:

Do you want me to open a new issue?

The issue OP was talking about was the same issue as #32 and was already fixed. (where the extension limited the width of the entire UI to half the screen)
The issue you are having is different. I dont think its an issue with the extension. Your issue is most likely with your preview file not loading as you are expecting. I can try and help you with it but yea, probably best to move it to a new issue if you dont mind.

I'm thinking the issue might be elsewhere. I thought this extension dl'd the previews and html, but when I spun a new test instance of sd-webui and only this extension I get No Preview Found. If I copy in the model_name.html and .jpg files in from the original install and reload ui I get the broken display, but the thing is those files were downloaded via the civitai browser+ extension. I checked the html and the paths to the images are absolute and if I just doubleclick the html it opens in default browser with all images loaded, but I'm thinking your extension has nothing to do with it, maybe the way the other one saves the html is broken. If you're still interested here's the .html and .jpg files for openjourney_V4.ckpt: https://o.o5.ddns.net/sd In any case sorry for bothering you.
What is the "normal" method of downloading the preview files?

This extension doesn't download anything on its own. Its up to you to provide the files.
That said, as requested in issue #28 there is support to use .civitai.info files as preview files. These can be downloaded using the civitai helper extension linked in that issue. However, as I was later informed... there is apparently a new fork that people prefer to use. I'm not sure if the "civitai browser+ extension" is the same thing? or can download the same files? But that is available.
That said... if you have an html file already the extension won't show you the .civitai.info preview because it prioritizes html files. So if you go that route you'd have to remove the html files you already have.
If you want to keep the html files you already have... you will have to update all references to locally stored images and files because based on the file you supplied they are currently all hard coded absolute links when they need to be linked through the gradio file server.
Essentially what this means is you would have to go through and change each of these:
<link rel="stylesheet" type="text/css" href="T:\AI\stable-diffusion-webui\extensions\sd-civitai-browser-plus\style_html.css">

 etc

to
<link rel="stylesheet" type="text/css" href="http://<IP_ADDRESS>:7860/file=extensions/sd-civitai-browser-plus/style_html.css">
<img data-sampleimg="true" src="http://<IP_ADDRESS>:7860/file=models/Stable-diffusion/openjourney_V4_0.jpg">
<img data-sampleimg="true" src="http://<IP_ADDRESS>:7860/file=models/Stable-diffusion/openjourney_V4_1.jpg"> etc

(notice things have forward slashes instead of back slashes)
This assumes you haven't changed the IP address or port of the webui. You can test that you have the correct link by visiting it (while the webui is running). Open a browser and visit http://<IP_ADDRESS>:7860/file=models/Stable-diffusion/openjourney_V4_0.jpg. The image should load. That's how you know its correct. Also its worth noting that if you make this change, the html page will not work correctly if you load it without the webui running.
The reason direct links wont work is because of security reasons. Gradio limits you to only be able to access the files it has access to in the webserver that it runs when you turn on the webui.
If you have Notepad++ you can do a batch replace using regular expressions on all the html pages:
Find: \"T:\\AI\\stable-diffusion-webui\\([^\"]*)\"
Replace: "http://<IP_ADDRESS>:7860/file=\1"

This will turn all the links into: http://<IP_ADDRESS>:7860/file=models\Stable-diffusion\openjourney_V4_0.jpg. (Notice the incorrect backslashes)... but it should still work even with the mismatched slashes. And this is probably the quickest way to edit all of your HTML files in one go.

like i said i think this fork https://github.com/zixaphir/Stable-Diffusion-Webui-Civitai-Helper is the active one. The maintainer does seem to be relatively active and responding to issues. If you do go the .civitai.info file route you wont get a  "to txt2img button" but there is a button to copy the meta data to clipboard and then paste that into the positive prompt and load it using the ↙ button. A few more clicks than a single button but it works lol. (of course it only works if you have meta data)

from the .civitai.info preview:


[ci-actions] ci centos7 and rocky8.6

What's the difference between two docker image centos  & rocky ?


[Test] test add tutorial section for Teams app scenarios

Test some ideas to add document content, please ignore this PR for now

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/mstdd-landing.yml
100
0
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/mstdd-landing.yml
100
0
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

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

File
Status
Preview URL
Details

msteams-platform/mstdd-landing.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/TOC.yml
98
6
link
:white_check_mark:

msteams-platform/mstdd-landing.yml
100
0
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.

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

File
Status
Preview URL
Details

msteams-platform/mstdd-landing.yml
:white_check_mark:Succeeded
View

msteams-platform/TOC.yml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Acrolinx Scorecards
We currently enforce a minimum score of 80.
Click the scorecard links for each article to review the Acrolinx feedback on grammar, spelling, punctuation, writing style, and terminology:

Article
Score
Issues
Scorecard
Processed

msteams-platform/TOC.yml
98
5
link
:white_check_mark:

msteams-platform/mstdd-landing.yml
100
0
link
:white_check_mark:

More info about Acrolinx
Use the Acrolinx extension, or sidebar, in Visual Studio Code to check spelling, grammar, style, tone, clarity, and key terminology when you're creating or updating content. For more information, see Use the Visual Studio Code extension to run Acrolinx locally.


Live

Docs Build status updates of commit 7d39867:
:warning: Validation status: warnings

File
Status
Preview URL
Details

globalization/locale/locale-names.md
:warning:Warning
View
Details

globalization/design/internationalization.md
:bulb:Suggestion
View
Details

globalization/locale/number-formatting-in-dotnet-framework.md
:white_check_mark:Succeeded
View

globalization/locale/locale-names.md

Line 24, Column 245: [Warning-hard-coded-locale] Link 'https://docs.microsoft.com/en-us/windows/win32/intl/locale-custom-constants' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.
Line 24, Column 349: [Warning-hard-coded-locale] Link 'https://docs.microsoft.com/en-us/windows/win32/intl/locale-custom-constants' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.

globalization/design/internationalization.md

Line 2, Column 1: [Suggestion-description-missing] Missing required attribute: 'description'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Host header rewrite

I get a Invalid Host header on start which is resolved by rewriting the header. It would be nice if this could be done from this extension. Here is an example
ngrok http --host-header=rewrite 8080

Thanks for opening an issue!
This is a good idea. You can set the host_header against a tunnel definition in your ngrok config and my initial thought was that all settings should be handled through config like that.
However, I've definitely used host header on one off tunnels.
I wonder what interface would be good for this. We could add a config option in the VSCode config for host header that gets applied to one off tunnels (but not named tunnels).
I think I want to keep the start command as simple as possible. It wouldn't be a good experience for it to ask a bunch of config questions each time you try to open a tunnel.
As an extension, what do you think about a command that opens the ngrok config in the current editor?

It could be nice to be able to set an default host header in VSCode, then one can use it per workspace aswell. But to have all configuration in one place and the plugin just serves that with a command feels intuitive.
I guess it depends on how usual this Invalid Host header is over all. This plugin is my entry to ngrok so I cant answer that one :)


Update creating-a-personal-access-token.md with correct screenshot for Step 6 (lines 28 - 29)

What is the current behavior?
The screenshot image for Step 6 'Give your token a descriptive name' is incorrect. This can cause confusion for developers who are new to GiHub, especially since all the other steps have correct screenshots.
What changes are you suggesting?
#867
Additional information
No, I just wanted to apologize for having to resubmit the same pull request. This is my first pull request and I think I've been a little nervous about doing it correctly. Thanks for your patience :)

Thank you so much for opening this issue and thoughtfully explaining what needs to be updated in the docs @MeetYourCreator 💛 This issue is going to take a bit of internal investigation to figure out when this screen was updated and whether or not we need to backport the change (which can only be done with certain permissions), so I've created an issue in our internal repo and I'll close this one out.
Thanks again!

Hi @janiceilene, Thanks so much for your positive feedback! I'm really glad I could contribute, and I appreciate knowing that I'm submitting my pull requests correctly. I'd value any suggestions you might have as far as next steps for me to take in contributing to Github docs.
Thanks again, @janiceilene! 🙏
-Rami

👋 @MeetYourCreator If you're looking for potential contributions, keep an eye on the issues page to see what new things come up! If you see something there you'd like to work on, feel free to open a PR 👍 You can also ask questions or participate in conversations in discussions 💖

Thanks so much @janiceilene . I'll keep an eye in the issues page to see if there's something that I can help out with 😀


FAST creates telemetry streaming related objects in /Common/Shared

Environment

FAST RPM Version: 1.22.0
BIG-IP Version: <IP_ADDRESS>

Summary
FAST creates telemetry streaming related objects in /Common/Shared. It does so even when telemetry streaming is not installed.
This seems undocumented and is not desirable in all use-cases.
Appendix A: API Reference of FAST provides a FAST settings schema which suggests enable_telemetry controls log forwarding to telemetry streaming.
Setting enable_telemetry: false has no effect on the created configuration objects.
{
  "type": "object",
  "properties": {
    "enable_telemetry": {
      "type": "boolean",
      "title": "Enable Telemetry Streaming log forwarding",
      "description": "Automatically setup log forwarding for Telemetry Streaming when deploying FAST applications.\nMore information can be found [here](https://clouddocs.f5.com/products/extensions/f5-telemetry-streaming/latest/event-listener.html)\n",
      "propertyOrder": 0,
      "format": "checkbox"
    },
...
  "title": "FAST Settings",
  "description": "",
  "definitions": {},
  "$schema": "http://json-schema.org/schema#"
}

Here is a list of objects created by FAST, it may not be complete:
ltm pool /Common/Shared/fast_telemetry
ltm rule /Common/Shared/fast_telemetry_local_rule
ltm virtual /Common/Shared/fast_telemetry_local
ltm profile request-log /Common/Shared/fast_telemetry_traffic_log_profile
security log profile /Common/Shared/fast_telemetry_afm_security_log_profile
security log profile /Common/Shared/fast_telemetry_asm_security_log_profile
sys log-config publisher /Common/Shared/fast_telemetry_publisher
sys log-config destination remote-high-speed-log /Common/Shared/fast_telemetry_hsl
sys log-config destination splunk /Common/Shared/fast_telemetry_formatted

Steps To Reproduce
Install FAST extension.
Expected Behavior
FAST does not create telemetry streaming related objects in /Common/Shared, especially when telemetry streaming is not even installed.
In addition creation is configurable by a flag like enable_telemetry.
Actual Behavior
FAST always creates configuration objects.

You can create objects in /Common/Shared with AS3 before and/or after FAST creates its TS objects there.
AS3 will be the source of truth in this case, and we just stitch our objects into their existing declaration.
Please let me know if you have any questions about this.

You will have to include the Shared config in your AS3 declaration whenever you update it, but if you forget the TS objects, they will get stitched in each time the FAST config is saved.

@joelkeener thank you for the detailed information. Knowing that we can use other means to create objects in /Common/Shared is fine to me.

Closing. We will update our documentation and add some troubleshooting steps when this situation occurs.

Closing. Our documentation was updated with Release 1.23.0.


Please add Azure Powershell on-demand evaluation scan snippet

To trigger on-demand evaluation scan one has to open cloud shell and execute Invoke-AzureRmResourceAction -ResourceType Microsoft.PolicyInsights/policyStates -Action triggerEvaluation -ResourceName latest -ApiVersion 2018-07-01-preview. There is no need to mess around with any sort of setup additional plumbing to make it happen. Based on current instructions it's very complex and long journey to make it happen while it's single line of Powershell.

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

ID: 7a6a5887-ea7a-5cae-b0a0-62ebc5a140ae
Version Independent ID: 84476c7d-ab41-1f02-44c9-25ce1eaa1315
Content: Get policy compliance data - Azure Policy
Content Source: articles/governance/policy/how-to/get-compliance-data.md
Service: azure-policy
GitHub Login: @DCtheGeek
Microsoft Alias: dacoulte

#assign:DCtheGeek

@artisticcheese Thanks for the feedback.  While the on-demand evaluation could be done that way, the reason for showing it in REST API is to make it accessible to everyone, not just those using PowerShell.
If you want to do it in PowerShell, there's an even easier way now, with Start-AzPolicyComplianceScan.  The cmdlet is in reference docs already and this specific article will be updated today to add this PowerShell specific method of triggering an on-demand evaluation. I'm linking this issue to that PR so that when it merges, this issue is automatically closed.  Thanks for the feedback!
@MicrosoftDocs/azure-cxp-triage Please label 'doc-enhancement' and #in-progress.


fix(pkg/chart): do not install CRDs for disabled dependencies

What this PR does / why we need it:
closes #8508
The original implementation installs all CRDs from dependencies without checking whether the dependency will actually be installed or not. This fix moves the CRD collection and installation process (CRDObjects()) a few lines down so the dependency check happens first, marking dependencies to be installed or not (Metadata.Dependencies[].Enabled). Furthermore, the CRDObjects() implementation is modified to actually check for this flag and only collect CRDs from enabled dependencies.
Special notes for your reviewer:
Unit tests are added for 2 cases: CRDObjects() call with a dependency that is enabled and has a CRD definition; and a variant where the dependency is disabled (and in this case we expect the dependent CRD to NOT get installed). The latter test would fail without this patch being applied.
If applicable:

[ ] this PR contains documentation
[x] this PR contains unit tests
[ ] this PR has been tested for backwards compatibility

Given the case where CRDs will not be installed during an update (#6581), this would introduce an issue when a dependency is initially disabled, but then eventually enabled as part of a helm upgrade.
How does this intend to address that particular case?

@bacongobbler I feel like the case you raise would fall under the concern of #6581 if/once it's picked up no? As you point out there the behavior that exists today (until #6581 is completed) is that the effect of re-enabling dependency CRDs later is materially the same as adding new CRDs to an already deployed chart later.
Am I misunderstanding? I don't think this PR can handle the case you mention without generally being the PR that resolves the feature describe in #6581.

Exactly. Which is why I'm saying that we cannot merge this PR as it will introduce cases where a release will enter an unrecoverable state.
In other words, it is better to retain the current behaviour until #6581 is addressed.

Closing for now. We can re-open this for discussion once we resolve these edge cases.


Make release the default build type

Prior to this commit, the default when
running make was to create a debug
build. This is fine for pony developers
but pony first time users might be unaware.
Our stated guiding principle for defaults
is to use the best performing option that
wouldn't violate the principal of least
surprise. And so, this commit.

Makes sense to me.

The merge of this to master failed CI because the "Fix Travis OSX builds" commit hadn't been merged to master yet. See #1230


Add file_hash field to Document

Same as https://github.com/wagtail/wagtail/pull/4516 but for documents
Needs tests, going to wait for #4517 and #4525 to be merged before implementing them

Completed in #4862


London Class 7 - Tanika Robinson - Git and GitHub - Week 1

Code Pen export of landing page website added
#Your details
Tanika
London
Tanika Robinson
#Homework Details
Git and GitHub - Add Landing page website to GitHub
Week 1

Well done!

I like that you've moved your files into the root folder with the second commit - it's matches the example solution.
Tip: You can choose whatever commit name you want, but it's usually nice to name commits with a name reflecting what changes they introduce to the repository. In this case, you can name the second commit "Reorganise file structure" instead of "Landing Page Website" (or "File structure reorganised", to match the naming style of your first commit). This gives your colleagues a better idea of what code changes are contained in that specific commit.


fix: 🐛 #3: Avoid error with undefined current

✅ Closes: #3

I tested this and it works.
https://github.com/gh640/test-npm-outdated-action/actions/runs/11471326662


SQLite except config generating models

# bobgen.yaml
wipe: true
sqlite:
  dsn: "foo.db"
  except:
    migrations:

Also have tried main.migrations but migrations still getting generated

Thanks for spotting this. It should be fixed in db7bade. Try it out and let me know.


[wip] snabbmark: Add preliminary "byteops" benchmark

Fun weekend hack...
This branch adds a new command snabbmark byteops that measures byte-oriented operations with diverse parameters and produces a comprehensive CSV file. The intention is to systematically measure and compare the performance of operations like memcpy and checksum at different levels of the cache heirarchy, with different alignments, and with different distributions of input sizes. This is in the same spirit as #688 and #744
.
TLDR: Full CSV output for 10 runs on lugano-1. (45K rows.)
The parameters tested are:

Function: memcpy, cksum, cksumavx2. (This program seems to "fuzz" a problem in cksumsse2 that needs to be looked into!)
Displacement: maximum value for random displacement of source/destination arrays in memory. Uses different values intended to exercise L1/L2/L3/DRAM.
Distribution of input sizes: 64 bytes, 256 bytes, 1500 bytes, uniform distribution 0..10240, loguniform (proportionally more smaller values) distribution 0..10240
Individually, the alignment of src/dst/len values to 1/2/4/8/16/32/48/64 byte boundaries.
This benchmark comprehensively measures the performance of various
byte-oriented operations (copy, checksum) with many different
variations (implementation; distribution of input sizes; alignment of
src/dst/len; etc).

The resulting CSV file includes:

nbatch: Aggregate number of iterations measured using the same parameters.
nbytes: Aggregate bytes for all iterations in the batch.
nanos: Nanoseconds elapsed to process the whole batch.
cycles, ref_cycles, instructions, l1-hits, l2-hits, l3-hits, l3-misses, branch-misses: Performance counter report for the batch

Here is some example output:
@@ cpu       ;name      ;nbatch    ;nbytes    ;disp      ;lendist   ;lenalign  ;dstalign  ;srcalign  ;nanos     ;cycle     ;refcycle  ;instr     ;l1-hit    ;l2-hit    ;l3-hit    ;l3-miss   ;br-miss
@@ E5-1650 v3;cksum     ;10000     ;50635943  ;10475520  ;uniform   ;1         ;1         ;1         ;90059546  ;313139680 ;0         ;404778783 ;177018645 ;156826    ;0         ;0         ;143315
@@ E5-1650 v3;cksumavx2 ;10000     ;51742863  ;10475520  ;uniform   ;1         ;1         ;1         ;3405091   ;9773415   ;0         ;17941408  ;484452    ;353159    ;0         ;0         ;29045
@@ E5-1650 v3;memcpy    ;10000     ;50969828  ;10475520  ;uniform   ;1         ;1         ;1         ;15737622  ;19974604  ;0         ;504955    ;225133    ;67525     ;0         ;0         ;4150
@@ E5-1650 v3;cksum     ;10000     ;11307167  ;0         ;loguniform;1         ;1         ;1         ;19444333  ;65850861  ;0         ;63286809  ;41024066  ;2504      ;0         ;0         ;25362
@@ E5-1650 v3;cksumavx2 ;10000     ;11008282  ;0         ;loguniform;1         ;1         ;1         ;10229210  ;2220052   ;0         ;4907108   ;882071    ;1550      ;0         ;0         ;29783
@@ E5-1650 v3;memcpy    ;10000     ;11375385  ;0         ;loguniform;1         ;1         ;1         ;922086    ;1070289   ;0         ;505070    ;454292    ;600       ;0         ;0         ;16904

Is there anybody brave enough to try and analyze this data? :-)

@petebristow what do you think about this in the context of #692?
I am thinking that this PR basically steals that idea but keeps everything local inside snabbmark and so defers the discussion about a more generalized benchmarking library/framework until the future when we have more code and experience and are thinking about how to refactor everything based on lessons learned.
I can imagine having additional functions for benchmarking apps and app networks alongside this one for benchmarking byte-oriented functions. (This one can also be improved a bit e.g. to recognize the checksum tests ignore the destination arguments and so prune those out of the permutation space.) These could initially share code via subroutines in snabbmark.lua.

Baby steps...
I asked my mum about this kind of data analysis (she's good with statistics) and the keyword she gave me was SST (Total Sum of Squares). This lead me to the Kahn Academy videos on Analysis of Variance (Inferential Statistics). Looks promising.
"A little knowledge is a dangerous thing"... early days yet. Please pipe up if you are interested in these things :).

Closing this PR for now. I will reopen when I have something new to show.

My mum tells me that she did an analysis of variance with a few variables and it says that the benchmarks are not sensitive to the alignment of the source operand but they are sensitive to the combination of operation (cksum, cksumavx2, memcpy) and displacement (cache level).
Here is a picture of the latter:

This seems to be saying that the base checksum is always slow, the AVX2 checksum varies by a factor of 2 depending on L1/L2/L3/DRAM, and the memcpy operation is dramatically faster in L1 cache (up to 12KB working set size).
I find it encouraging that this kind of thing can be detected purely numerically without any explanation of what the data actually represents.
Everything with a grain of salt at this stage, but still... feels like progress.

So, seriously, is R the coolest thing in the universe? Probably.
I very easily loaded the CSV file into R:
> d <- read.csv(file='data4.csv', sep=';')
> df <- data.frame(d$byte.cyc, d$disp, d$lendist, d$l1.hit, d$srcalign, d$lenalign, d$name)
> d$disp <- as.factor(d$disp)

and then, completely by magic, it is able to just tell me the answers to all of these big questions I have been wondering about. Like:
> summary(aov(d.byte.cyc ~ d.srcalign * d.lenalign * d.disp, data=df))
                                Df Sum Sq Mean Sq  F value Pr(>F)
d.srcalign                       1     86      86    4.364 0.0367 *
d.lenalign                       1    125     125    6.343 0.0118 *
d.disp                           4 139577   34894 1773.645 <2e-16 ***
d.srcalign:d.lenalign            1      0       0    0.003 0.9551
d.srcalign:d.disp                4     78      20    0.993 0.4098
d.lenalign:d.disp                4     20       5    0.250 0.9095
d.srcalign:d.lenalign:d.disp     4      0       0    0.004 1.0000
Residuals                    46060 906175      20
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

which says to me that:

The maximum displacement of data in memory (disp) makes a big difference. This is effectively the working set size i.e. which level of the memory hierarchy will be serving the requests.
The source and destination data alignments don't matter: not individually, not in combination with each other, and not in combination with the memory hierarchy. (This is expected on Haswell: it would be interesting to compare with a Sandy Bridge machine where various SIMD instructions carry penalties for unaligned access.)

Holy smokes! Imagine taking hours of benchmarking numbers are getting a details analysis of them in one second. Mind: blown.
This seems like exactly the tool that I need to move forward with micro-optimizations like the asm blitter in #719 where I want to understand how robust the optimization is to different workloads.

ahem :)
I think the conclusion above is okay but the details are wrong: I didn't properly declare that some more of the numeric columns in the CSV file are "factors". Correcting that we get a similar table:
> summary(aov(d.byte.cyc ~ d.srcalign * d.disp * d.lenalign, data=df))
                                Df Sum Sq Mean Sq  F value Pr(>F)
d.srcalign                       7    134      19    0.965  0.455
d.disp                           4 139577   34894 1762.442 <2e-16 ***
d.lenalign                       7    167      24    1.207  0.295
d.srcalign:d.disp               28    146       5    0.263  1.000
d.srcalign:d.lenalign           49      0       0    0.000  1.000
d.disp:d.lenalign               28     41       1    0.073  1.000
d.srcalign:d.disp:d.lenalign   196      1       0    0.000  1.000
Residuals                    45760 905995      20
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

where column Df (degrees of freedom) is now consistent with the number of possible values. This analysis took more like a minute to run on my little Chromebook.
Grain, salt, etc.

If anybody wants to try then here is the full script:
#!/usr/bin/env Rscript
print('loading data4.csv file')
d <- read.csv(file='data4.csv', sep=';')
# Columns that are "factors" in the experiment.
# (R would auto-detect if the values were non-numeric.)
d$srcalign <- as.factor(d$srcalign)
d$lenalign <- as.factor(d$lenalign)
d$disp     <- as.factor(d$disp)
# Create a "data frame" with some columns to look at
df <- data.frame(d$byte.cyc, d$disp, d$srcalign, d$lenalign, d$name)
# run the analysis of variance
print('running analysis of variance')
summary(aov(d.byte.cyc ~ d.srcalign * d.disp * d.lenalign, data=df))

which expects to find data4.csv in the same directory.

Handy link: R Tutorial that was the best one I found.

Here is a Google Doc summarizing some more thoughts that my mum shared about this data set. I haven't fully digested them yet.


DPL-632 - As developers we need to understand if there will be any impact on accessioning based on the EBI changes to the API [Time Sensitive - 1/2/23]

Description
Subject: [Ena-announce] Change to presented ENA Sample XML content 1st of February 2023 [EXT]
Dear Colleagues, a happy new year to you!
This is for the attention of anyone who retrieves Sample metadata in the XML format from the ENA Browser or the ENA Browser API.
In ENA, a sample is identified by its BioSample accession (starts with SAM. e.g. SAMEA8005050) or its SRA accession (starts with ERS/SRS/DRS. e.g. ERS5692297).
Currently, when fetching the Sample XML using either the BioSample accession or the SRA sample accession, the SRA sample accession is returned as the primary ID.
For example: https://www.ebi.ac.uk/ena/browser/api/xml/SAMEA8005050 [ebi.ac.uk]
...
<SAMPLE accession="ERS5692297" alias="COVID-1" ...>

<PRIMARY_ID>ERS5692297</PRIMARY_ID>
<EXTERNAL_ID namespace="BioSample">SAMEA8005050</EXTERNAL_ID>
...
On 1st of February 2023, we will change the returned XML content so that when retrieving by BioSample accession the primary ID will be the Biosample accession, and the SRA sample accession, if it exists, will be returned as the secondary ID:
...
<SAMPLE accession="SAMEA8005050" alias="COVID-1" ...>

<PRIMARY_ID>SAMEA8005050</PRIMARY_ID>
<SECONDARY_ID>ERS5692297</SECONDARY_ID>
<EXTERNAL_ID namespace="BioSample">SAMEA8005050</EXTERNAL_ID>
...
This change is required as we will switch to BioSamples (https://www.ebi.ac.uk/biosamples [ebi.ac.uk] as the source authority for the sample metadata presentation in ENA. The change will allow us to present samples that do not have an SRA sample accession, e.g. SAMN05284377.
For backward compatibility, when retrieving by SRA sample accession the primary ID will remain the SRA sample accession and the secondary ID will remain the BioSample accession.
The new Sample XML content can already be retrieved from our development service for testing purpose.
New Sample XML with the BioSample accession only, requested using the BioSample accession:
https://wwwdev.ebi.ac.uk/ena/browser/api/xml/SAMN05284377 [wwwdev.ebi.ac.uk]
New Sample XML with both the BioSample accession and the SRA sample accession, requested using the BioSample accession:
https://wwwdev.ebi.ac.uk/ena/browser/api/xml/SAMEA8005050 [wwwdev.ebi.ac.uk]
New Sample XML with both the BioSample accession and the SRA sample accession, requested using the SRA sample accession:
https://wwwdev.ebi.ac.uk/ena/browser/api/xml/ERS5692297 [wwwdev.ebi.ac.uk]
If you have any questions or concerns about this change please contact us via the ENA support form: https://www.ebi.ac.uk/ena/browser/support [ebi.ac.uk]
Best regards,
Suran
Knowledge or Stake holders
Other people that may have specific knowledge about this work or have a stake in how it is implemented. e.g. John Smith is an expert on x
Additional context or information
Any other useful context or information that may be useful.

No changes required as we are not using this SAMPLE_SET XML response in our applications.


Database Builder

I have tried to use EVE SDE Database Builder, but when I select all item to import,the program crashed. And how do I import Chinese data?

Try asking at: https://github.com/EVEIPH/EVE-SDE-Database-Builder


admin users: Clean up code

This series cleans up admin.js so that most of the jQuery stuff that we need for email -> user_id is in one place.  We can merge this, but then we still need to figure out some more stuff to make everything user-id-driven.  The problem here is that admin.js has its own data structure for users, which we get from /json/users.  The admin.js users can be a superset of the users in people.js, since admins may be dealing with deactivated users.  I want to decide whether we just keep our own separate userid/email mapping inside of admin.js, or maybe we just make sure to download deactivated users for admins during page load.  I'm leaning toward the latter, although things will get tricky if somebody makes you an admin.

Automated message from Dropbox CLA bot
@showell, it looks like you've already signed the Dropbox CLA. Thanks!

Merged, thanks @showell!


Refactoring and various improvements

This PR changes three things:

Makes the out_dir options relative to the application directory as opposed to the project directory, turning the plugin usable in umbrella projects.
Fixes type specs in the generated client code. I haven't spent much time looking at grpcbox code, so the specs might be excessive, but the goal was to fix dialyzer warnings in my code, in particular matching on {error, Error}.
Speeds up subsequent rebar3 runs quite significantly by checking what files need to be regenerated. While doing this, I ended up refactoring pretty much the entire thing and I am really sorry about that.

Awesome, thanks, this looks great.
I'm starting on a new project using grpcbox for the client so will give this a try with it. I wanted to add some features too (like optionally only generating the client).

Nice!
I've pushed generating only the server because why not (I assume you've meant server, because generating only the client was already there).

Ah nice, thanks. I actually meant generating the client only, but I had forgot it was already added :)


add generic tcp support

Can you make this support multiple tcp port mappings?

@longnguyen11288 @shinji62 how does this look? Will rebase off latest master if the multi-SSL branch gets merged

merging in my PR like a boss


Additional source set

I was led to this plugin (rgoldberg.experimental-jigsaw) as it was based on the gradle wiki version, and had carried on from that (it was also the most recently modified jigsaw plugin).
I have an additional test source, which I called sharedTest, but what seems to be happening is that the plugin did not seem to be updating the compileShareTestJava task with all the javac options.  I took the original groovy tasks and modified it for my needs:
compileSharedTestJava {
    doFirst {
        options.compilerArgs = [
            '--module-path', classpath.asPath, // <1>
            '--add-modules', 'junit,org.mockito',  // <2>
            '--add-reads', "mymodule=junit,org.mockito", // <3>
            '--patch-module', "mymodule=" + files(sourceSets.sharedTest.java.srcDirs + sourceSets.test.java.srcDirs).asPath, // <4>
        ]
        classpath = files()
    }
}

Unfortunately I am not so expert in actually developing Gradle plugins, so I couldn't really see from the code if I need to do something special to generate this via your plugin, or there is a genuine bug.  If you could advise if that is the case.
Also, there is obviously the chainsaw project and I wondered if we should put effort into improving that, or if plan to continue working on this plugin (which I would consider helping on too if I can get my head around plugin dev).
For context, we are trying to move to Java11 and, in fact, we have had to jump to a nightly release build of Gradle 5 to actually make any sort of progress.
Thank you for any help/advice.

Can you provide your build.gradle & your settings.gradle?
I've tested using the Gradle Kotlin DSL, which is better than the Gradle Groovy DSL.

Regarding Chainsaw: it's broken in many ways, so I'd avoid using that.  The maintainer didn't respond when I & others filed bugs, so I don't think it's maintained much anymore…

The plugin only sets up a non-modular source set as test code with modular access to the modular source sets in the project if the name of the non-modular source set is test.  The name of your shared test source set, however, is sharedTest.
How do you specify in your build.gradle that sharedTest contains test code?
Once I know that, I can modify the plugin to automatically modularize each registered test source set for modular access to all of the modular source sets in the project.
I imagine that you might create a Test task, and set its testClassesDir to the output.classesDir of the additional test source set, but I'm not 100% sure if that's what you use, or if that's the "Gradle approved®" way to do it…

Also, I've been using the most recent stable Gradle (currently 4.10.2) & the most recent Oracle JDK (currently 11+28) with my plugin.  I've never needed to try any builds of Gradle 5.0.  Was that necessary for my plugin, or for other parts of your build?  If the former, can you try with Gradle 4.10.2?

Wow, thanks for the quick reply.  Moving to Gradle 5 was not an issue with this plugin, I think it was just a Java11 issue in combination with other stuff.
Hmm, I don't explicitly say sharedTest has test code...I declare it in sourceSets:
sourceSets {
	sharedTest {
		compileClasspath += sourceSets.main.output + sourceSets.test.compileClasspath
	}
}

But the configurations may hint that it is a test config by the following:
configurations {
        sharedTestCompile.extendsFrom compile, testCompile
        sharedTestRuntime.extendsFrom runtime, testRuntime, sharedTestCompile
		integrationTestCompile.extendsFrom compile, sharedTestCompile
		integrationTestRuntime.extendsFrom runtime, sharedTestRuntime

}

My build structure is pretty much based on what I gleaned from:
https://discuss.gradle.org/t/add-the-compile-runtime-classpath-of-a-source-set-as-a-dependency/5030

You might be able to modularize sharedTest & integrationTest by creating the correct module-info.java for each of them.  If javac options provide functionality that isn't available in module-info.java, or if you'd rather that your test code works without having to bother writing module-info.java for each test source set, then I have a few questions to understand your setup:

How do you get Gradle to run the tests that aren't part of the standard test source set?
Why do sharedTest* extend from test*? Shouldn't test* extend from sharedTest*? This could be achieved by following configurations block:

configurations {
    sharedTestCompile     .extendsFrom(compile)
    sharedTestRuntime     .extendsFrom(runtime)
    testCompile           .extendsFrom(sharedTestCompile)
    testRuntime           .extendsFrom(sharedTestRuntime)
    integrationTestCompile.extendsFrom(sharedTestCompile)
    integrationTestRuntime.extendsFrom(sharedTestRuntime)
}

Or the following block, if your sharedTest source set doesn't depend on your main source set:
configurations {
    testCompile           .extendsFrom(sharedTestCompile)
    testRuntime           .extendsFrom(sharedTestRuntime)
    integrationTestCompile.extendsFrom(sharedTestCompile, compile)
    integrationTestRuntime.extendsFrom(sharedTestRuntime, runtime)
}

This way, the shared test code is shared between test & integrationTest.
FYI: you should use implementation & runtimeOnly instead of compile & runtime, respectively, since the former are the new, improved names for the latter, which are both depereacted.

Good spot on my extensions...I remember I had it the other way round and then changed it back without thinking for some reason.
Re: running the shared test, we don't run them (I didn't realise that until you asked - but there is only 1 test there anyway).  The idea of shared test is really hold test support objects that are common for integration and test.  But they are dependent on junit and Mockito.   I have now added a task to run them!
/** Shared test task. */
task sharedTest(type: Test) {
	description "Runs shared tests"
	group = "verification"
    dependsOn sharedTestClasses
	testClassesDirs = sourceSets.sharedTest.output.classesDirs
    classpath = sourceSets.sharedTest.runtimeClasspath + sourceSets.main.output
	reports.junitXml.destination = file("${buildDir}/test-results")
	reports.html.destination = file("${buildDir}/reports/shared")
}

I have also been able to do away with my groovy compileSharedTestJava!
Thanks for the help!

I imagine that you need to use equivalent setups for both sharedTest & integrationTest.  Let me know if I'm wrong.
I imagine that compileSharedTestJava isn't actually using the module path, rather it's just using the class path.  To verify this, you can debug the Gradle build with a breakpoint at the beginning of JavaCompileTaskConfigurer#configureTask(JavaCompile, JigsawPlugin).  (warning: the source in my github fork might be out of date relative to the published plugin, or vice versa)
In order to make it use the module path, I'd have to change the plugin as per my earlier post: treat as test code all source sets whose output.classesDir is a Test#testClassesDir, and configure all such source sets to use modules if they depend on any source set that defines a module.
I might not have time to implement this right away.

Yes, I did already have an integrationTest task and integration tests are running nicely in the build, I just hadn't spotted the 1 shared test wasn't running (which is actually a test for checking some functionality of another object that is shared across several projects)!
So now I have done a bit more research:

the
task sharedTest does not actually work and I think it is a Gradle issue that is not related to this plugin.  I tried v4.10.2 and I get a "failed to read .class".  It seems this is an occurring issue with gradle, but didn't know the exact solution, but moving to 5.x got past this.  Using the nightly build I still could not run this task,  with the following exception org.gradle.api.internal.tasks.testing.detection.TestFrameworkDetector.processTestClass(Ljava/io/File;)Z.  So I just ignored that, as I couldn't get to the bottom of what might cause that (perhaps I should get more serious Gradle!).

the plugin does not seem to work with apply plugin: "org.springframework.boot" as this plugin, it seems, mangles the compiler options back to only having a classpath.  I am using the latest 2.0.5-Release version.  I am not sure if there is anything we can do about that!

Can you:

switch to the Gradle Kotlin DSL instead of the Groovy DSL (if it won’t take too much time for you; it should be beneficial to you longterm besides the shortterm benefit of ensuring that Groovy isn’t causing problems that don’t occur in Kotlin)

share your Gradle build & settings files

provide the exact version number for the Gradle version experiencing the problems

Can you also try the sharedTest task on 5.0 without my plugin, to isolate if that problem is from my plugin or elsewhere?

I've figured out the org.springframework.boot problem.
That plugin creates a bootJar Jar task.
My plugin expected every Jar task to have created a corresponding source set, but bootJar didn't, so I got an exception when I looked for a source set named boot.  I've fixed it.  I'll deploy the fix soon.

I've pushed the code to github, and published the binary to the Gradle Plugin Portal as version 0.4-SNAPSHOT (since I couldn't delete or overwrite 0.3-SNAPSHOT).
So, once you change the version of the plugin, apply plugin: "org.springframework.boot" should work.

FYI: I tested with org.springframework.boot version 2.0.6.RELEASE, as that was just released.  Shouldn't make a difference, but you might want to update that, too.

Thank you very much, I'll take a look into this when I return to my spring projects...I was able to skip using the spring plugin for some of my projects, but it will return to it soon.

plugintest.zip
I have attached a zip file to try and give a cut down version of what I am experiencing, both in 4.10.2 and 5.x.  I have two projects, project1 main project and project2 a depencency of project1.  Both require spring, but only project1 is an app, project2 is simply a library but requires spring plugin to resolve its spring dependency versions.  I have just picked on mongo as that is what I am using.  I do not actually use mongo in the demo, just make sure the dependency is in the code as a module/requires etc.  Also note, that project2 has the bootJar task disabled as it does not have a mainClassName to actually run, but the jar task is enabled so the jar is created.
I then go a gradle clean and gradle build, and often the build fails on compiling the module.  I can reissue the gradle build again (without clean), and then it can build...or not...but eventually after issuing sufficient gradle build instructions it will build.
I am using 0.4-Snapshot of the plugin.

Clarifying above...I would have expected gradle build to behave the same every time (either always failing because of some issue in my module path or gradle issue) or succeeding (the preferable solution!).  It is kind of strange that it is non-deterministic...I haven't a clue where to look to solve it...and what I am not sure is is if this is a quirk of multi-project setups.

Very odd.
When run with Gradle 4.10.2 from the command line, :project2:compileJava incorrectly uses the class-path instead of the module-path.
When run or debugged in the current IntelliJ 2018.3 Ultimate EAP, that task correctly uses the module-path.
I'll have to investigate.  It might be hard to figure this out since it works in the debugger, so I can't easily determine where it's failing.  I guess I'll have to use printlns…

I have had another look at the two projects I sent you, and I am not sure if this is a plugin issue, or an issue of my understanding of modules...but if I comment out requires spring.boot.autoconfigure; I would have expected the build to fail as this requirement is needed for the SpringBootApplication annotation.  Furthermore, I see the spring mongo db jar being used (spring-data-mongodb-2.0.11.RELEASE.jar) has not been modularised, so I do not see any reason for the requirement for spring.boot.autoconfigure to be implied from the requires spring.data.mongodb.  The effect of this is that Gradle builds, but in a pure Eclipse (currently my working IDE) project (i.e. non-Buildship) it complains that the SpringBootApplication is not available as I have not required the spring.boot.autoconfigure module.  So,

Should I be explicitly declaring spring.boot.autoconfigure (my understanding is I should)?
It feels like the plugin is putting dependencies and their dependencies on the module path making it not necessary to explicitly declare a requires...is this and issue with my configuration or the plugin?

By the way, for now, I am quite happy to accept a gradle build succeeding even though my module-info.java's are not perfect.  I am happy to use my IDE to sort that issue out.  But I just wanted to know for sure if this is a plugin issue or my issue (largely due to my lack of full confidence in my understanding of modules)

When you build from the command line, are you sure that the module-info.java is included in the source file list? If it’s not there, then your compilation wouldn’t care about modules, right? I’ll have to investigate some…

Yes, it is definitely included in the source, as I think you decided as you wrote the last comment.  Thanks for all your help on this, I am sorry I cannot be more constructive than just discovering (and writing!) bugs at the moment...I would actually like to help fix stuff too!  I am also surprised that Gradle does not support modules straight out the box, especially as they have been around for a while now.  Anyway, we are where we are, and hopefully we can move this forward together...I am trying to dabble, as best I can, in understanding how Gradle/plugins work, so I may get fixing soon.

BTW, for avoidance of any doubt, the project1/project2 setup I sent you should show that module-info.java is included in the source folders.  Simply commenting the requires spring.boot.autoconfigure; in the project1 module-info.java and then doing enough gradlew build commands will see that it eventually results in a successful build, suggesting that: 1) when it fails it is definitely using the module-info.java and 2) when it succeeds it seems reasonable to assume that it is still using module-info.java and because it is not complete I would have expected the build to continually fail because it cannot find the annotation provided by the commented out module.

:project2:bootRun (with a type which is a subclass of JavaExec) has a decorated getMain() that throws an InvalidUserDataException when its main class isn't set.
That exception is silently swallowed by some Gradle code, so it didn't show in the logs.
The task configurers in my plugin were in a HashSet, so they had a random Iterator order.  Sometimes, the JavaCompile configurer ran before the JavaExec configurer.  If so, then compileJava was configured to use the module-path; if not, then compileJava wasn't configured by my plugin.
The task configurers are now in a LinkedHashSet, so their order will be consistent.
InvalidUserDataException is now caught & logged in the JavaExec configurer, so that specific exception won't break the plugin anymore.
I'll publish it as version 0.4.1-SNAPSHOT.

Great, thanks!  Will give it a try.

@sharpplayer Did you ever get a chance to try out my fix? Are you still using the plugin? Did you experience any other issues? Thanks.

Due to poor support in our IDEs and auto module naming in the versions of some libraries we were using, we were unable to carry on with using this plugin.  We have just disabled modularisation for the moment, so we reference this plugin, but are not using it as yet.  Glad you're still working with it though.

Cool. If you ever try using modules again in the future, please let me know if these issues are fixed, or if you run into any other issues, need other features, etc. Good luck with your work.


Support development mode

This PR enables developer mode which allows:

load the ImJoy-fiddle plugin to allow writing and running scripts
once new plugin is loaded, a development icon will show on each resource item, so the developer can test it directly on each item.

Usage:

Enable developer mode by adding ?dev=1 to the URL, for example: https://bioimage.io/#/?dev=1
After the paged loaded, click the ImJoy icon located on the upper-right corner, and select the ImJoy Fiddle plugin.
Edit the code and run it, leave the editor window open while debugging
You will then see a DEV icon appear on each item
You can test run your plugin in the DEV menu, modify code in the editor and re-run it.

@FynnBe

amazing stuff! 👍
just played with that around and found a funny bug: the magnifying glass always sits on top and, which actually got me to post about it, the top bar as well... (no idea how I managed to drag that up there^^)

@FynnBe Thanks for the feedback. I also noticed a few bugs with the window which requires digging into the code of one of the window library we used, but I guess with some extra effort (e.g. don't go fullscreen window) you can get it to work?

@oeway yes, it works well. the window issues are not urgent at all!


Fixed Event Pending Description so the description body isn't wrapping around the buttons

I changed the margin-left from 120px to 150px in the joindin.css file.

Can one of the admins verify this patch?

ok to test


Move FullScreenQuad into class def

Move FullScreenQuad into class definition.
This was a fairly intuitive refactor, but I'm new to this and would love a gut check on how I did this.

Why

What

Checklist

[ ] Documentation updated
[ ] Storybook entry added
[ ] Ready to be merged

part of #13

@joshuaellis Can you gut check this for me? I'm going to do this for the other classes as well if this looks right. I wasn't exactly sure the best way to test this.


[GE] CSS and HTML Changes for PropertyTabComponents

Still missing:
-Changes for combo box section
-Correct styling for sliders
-Correct styling for checkboxes
Notes:
"divider" is the class allowing 2 line components to be on grouped on a line.

I wonder if the source field could be bigger ?


Syringe Architectural Changes

Considering a few changes:

Make the API server totally stateless. Keep state only in the scheduler, via Kubelab.
De-couple the scheduler into it's own running binary. Communicate between scheduler and api via message queue
Use database behind scheduler (shouldn't need this for API)

A much more exhaustive proposal is available at https://github.com/nre-learning/proposals/pull/3


Build failure

vendor/github.com/go-xorm/xorm/engine.go:181:23: engine.dialect.QuoteStr undefined (type core.Dialect has no field or method QuoteStr)

version 0.7.0

Please upgrade your xorm to latest version.

xorm.io/core : v0.7.0
xorm.io/builder: v0.3.5
github.com/go-xorm/xorm : v0.7.4

I've upgrade to latest version, but still got same error.

github.com/go-xorm/xorm : v0.7.5

Thanks, it works.


Proposal: Beatwave is a decentralized platform that allows musicians and music producers to buy and sell beats safely, efficiently and transparently.

Description
BeatWave Music Platform
Overview
BeatWave is a platform for discovering, buying, selling, and leasing music beats through a decentralized smart contract system. It offers various features for beat owners and users, including ownership transfers, revenue sharing, and more.
Features
1. Explore Beats

Users can search and explore beats by genre, mood, artist, and other criteria.

2. Buying and Selling Beats

Smart Contract Transactions: Facilitates the buying and selling of beats through secure smart contract transactions.

3. Sell Ownership

Beat owners can list their beats for sale and transfer ownership through the platform.

4. Lease Beats

Owners can lease their beats for various purposes, such as:

Video creation
Livestreams

Leasing terms can be negotiated based on the usage purpose, and revenue sharing is available.

5. Beat Information
Users can view detailed information about each beat, including:

Beat ID
Owner information
Number of plays
Number of leases
Number of likes

6. Personal Beat Management

View Owned Beats: Access all beats the user owns.
Leased Beats: View a list of beats the user has leased.
Transfer Ownership: Allows owners to transfer beat ownership to another user.

7. Upload Beats

Users can upload beats to the platform, enabling the use of features such as selling, leasing, and more.

8. Donation to Authors

A donation feature that allows users to support their favorite beat creators.

Revenue Generation
1. Listing Fees

A fee is applied when listing a beat for sale or customization. The fee amount varies depending on the type of currency used.

2. Transaction Fee

A 5% fee is charged for every successful purchase or lease transaction.

3. Revenue Sharing Fee

A 3% fee is applied to shared revenue from beat leasing.

4. Advertisements

Beat creators can rent advertising space to promote their beats on the platform.

Getting Started
To start using the BeatWave platform, create an account, upload your beats, and explore the features mentioned above!

Approved. Take a crack at it. Maybe clarify in the DApp saying what exactly they are buying/selling (like is this a full license, full rights, etc.)?


az webapp new - Fix Node.js errors

Fixed #72 - Node.js deployments stopped working
Fixed #73 - Logic for defaulting node version was faulty
Fixed #70 - Errors when app was empty

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/anthonychu/azure-cli-extensions.git@webapp-fix-indexoutofrange#subdirectory=src/$EXT&egg=$EXT"

@panchagnula Thanks. You should be able to push to this branch if it's easier to do that here.


Generating more complex scenarios

Dear author,
You have shown good results in generating data distribution like ImageNet, CIFAR-10 and iNaturalist, which are category-based datasets. I wonder whether you have experimented on generating more complex scenarios, such as DIV2K, LSDIR ?

Thanks for your interest! We choose ImageNet and CIFAR-10 because they are the most common benchmarks for (unconditional) image generation. We also evaluate RCG on iNaturalist, which contains 10000 categories and 2.6M images, to demonstrate its ability in modeling very complex image distributions.
Generating high-resolution images could be an interesting future direction of RCG. However, DIV2K (1000 images) and LSDIR (84,991 images) might be too small to train a good high-resolution generative model. Our future plan is to scale the current model to large-scale unlabeled datasets, such as OpenImages or DFN, which contain images with high resolution and multiple objects.