d/mirrors.tuna.tsinghua.edu.cn%2547dart-pub/stream_channel-2.0.0/lib/
[        ]     |
string_scanner:file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hoste
d/mirrors.tuna.tsinghua.edu.cn%2547dart-pub/string_scanner-1.0.5/lib/
[        ]     |
term_glyph:file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mi
rrors.tuna.tsinghua.edu.cn%2547dart-pub/term_glyph-1.1.0/lib/
[        ]     |
test_api:file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirr
ors.tuna.tsinghua.edu.cn%2547dart-pub/test_api-0.2.17/lib/
[        ]     |
typed_data:file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mi
rrors.tuna.tsinghua.edu.cn%2547dart-pub/typed_data-1.2.0/lib/
[        ]     |
vector_math:file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/m
irrors.tuna.tsinghua.edu.cn%2547dart-pub/vector_math-2.0.8/lib/
[        ]     | foo:lib/
[        ] IO  : Writing 5497 characters to text file
./.dart_tool/package_config.json.
[        ] FINE: Contents:
[        ]     | {
[        ]     |   "configVersion": 2,
[        ]     |   "packages": [
[        ]     |     {
[        ]     |       "name": "async",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/async-2.4.2",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.2"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "boolean_selector",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/boolean_selector-2.0.0",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.4"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "characters",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/characters-1.0.0",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.6"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "charcode",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/charcode-1.1.3",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "clock",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/clock-1.0.1",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "collection",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/collection-1.14.13",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.3"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "cupertino_icons",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/cupertino_icons-0.1.3",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "fake_async",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/fake_async-1.1.0",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.2"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "flutter",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/packages/flutter",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.9"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "flutter_test",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/packages/flutter_test",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.2"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "matcher",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/matcher-0.12.8",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.4"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "meta",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/meta-1.1.8",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "1.12"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "path",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/path-1.7.0",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "sky_engine",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/bin/cache/pkg/sky_engine",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "1.11"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "source_span",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/source_span-1.7.0",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.6"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "stack_trace",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/stack_trace-1.9.5",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "stream_channel",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/stream_channel-2.0.0",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "string_scanner",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/string_scanner-1.0.5",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "term_glyph",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/term_glyph-1.1.0",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "1.8"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "test_api",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/test_api-0.2.17",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.7"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "typed_data",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/typed_data-1.2.0",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.4"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "vector_math",
[        ]     |       "rootUri":
"file:///home/flutter/snap/flutter/common/flutter/.pub-cache/hosted/mirrors.tuna
.tsinghua.edu.cn%2547dart-pub/vector_math-2.0.8",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "foo",
[        ]     |       "rootUri": "../",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.7"
[        ]     |     }
[        ]     |   ],
[        ]     |   "generated": "2020-09-27T16:29:18.263465Z",
[        ]     |   "generator": "pub",
[        ]     |   "generatorVersion": "2.9.2"
[        ]     | }
[        ] MSG : Changed 22 dependencies!
[  +14 ms] Running "flutter pub get" in foo... (completed in 1.2s)
[ +135 ms] Generating
/home/flutter/桌面/foo/android/app/src/main/java/io/flutter/plugins/GeneratedPlugi
nRegistrant.java
[   +3 ms] Wrote 71 files.
[        ]
All done!
[  +13 ms] executing:
/home/flutter/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/193.6626763
/jre/bin/java -version
[  +54 ms] Exit code 0 from:
/home/flutter/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/193.6626763
/jre/bin/java -version
[        ] openjdk version "1.8.0_242-release"
OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
OpenJDK 64-Bit Server VM (build 25.242-b3-6222593, mixed mode)
[  +15 ms] executing:
/home/flutter/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/193.6626763
/jre/bin/java -version
[  +57 ms] Exit code 0 from:
/home/flutter/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/193.6626763
/jre/bin/java -version
[        ] openjdk version "1.8.0_242-release"
OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
OpenJDK 64-Bit Server VM (build 25.242-b3-6222593, mixed mode)
[   +8 ms] executing: [/home/flutter/snap/flutter/common/flutter/] git -c
log.showSignature=false log -n 1 --pretty=format:%ar
[   +7 ms] Exit code 0 from: git -c log.showSignature=false log -n 1
--pretty=format:%ar
[        ] 13 天前
[  +11 ms] executing:
/home/flutter/snap/flutter/common/flutter/bin/cache/artifacts/engine/android-arm
-profile/linux-x64/gen_snapshot
[   +5 ms] Exit code 255 from:
/home/flutter/snap/flutter/common/flutter/bin/cache/artifacts/engine/android-arm
-profile/linux-x64/gen_snapshot
[        ] At least one input is required
Usage: gen_snapshot [] []
       Common options:

       --help

         Display this message (add --verbose for information about all VM
         options).
       --version

         Print the SDK version.

       To create a core snapshot:

       --snapshot_kind=core

       --vm_snapshot_data=<output-file>

       --isolate_snapshot_data=<output-file>

       <dart-kernel-file>

       To create an AOT application snapshot as assembly suitable for
       compilation
       as a static or dynamic library:

       --snapshot_kind=app-aot-assembly

       --assembly=<output-file>

       [--strip]

       [--obfuscate]

       [--save-debugging-info=<debug-filename>]

       [--save-obfuscation-map=<map-filename>]

       <dart-kernel-file>

       To create an AOT application snapshot as an ELF shared library:

       --snapshot_kind=app-aot-elf

       --elf=<output-file>

       [--strip]

       [--obfuscate]

       [--save-debugging-info=<debug-filename>]

       [--save-obfuscation-map=<map-filename>]

       <dart-kernel-file>

       AOT snapshots can be obfuscated: that is all identifiers will be
       renamed
       during compilation. This mode is enabled with --obfuscate flag.
       Mapping
       between original and obfuscated names can be serialized as a JSON
       array
       using --save-obfuscation-map=<filename> option. See dartbug.com/30524

       for implementation details and limitations of the obfuscation pass.

[   +8 ms] java -version
[  +72 ms] executing: /home/flutter/Android/Sdk/tools/bin/sdkmanager --licenses
[+2985 ms] executing: /home/flutter/Android/Sdk/platform-tools/adb devices -l
[  +15 ms] List of devices attached
       * daemon not running; starting now at tcp:5037
       * daemon started successfully

[   +7 ms] executing: /home/flutter/Android/Sdk/platform-tools/adb devices -l
[   +7 ms] List of devices attached
[   +1 ms] [✓] Flutter: is fully installed. (Channel stable, 1.20.4, on Linux,
locale
zh_CN.UTF-8)
[✓] Android toolchain - develop for Android devices: is fully
installed.
(Android SDK version 29.0.3)
[!] Android Studio: is partially installed; more components are
available.
(version 4.0)
[✓] VS Code: is fully installed. (version 1.49.2)
[!] Connected device: is not available.
       Run "flutter doctor" for information about installing additional

components.
[        ] In order to run your application, type:
         $ cd foo
         $ flutter run

       Your application code is in foo/lib/main.dart.

[        ] "flutter create" took 4,916ms.
[ +258 ms] ensureAnalyticsSent: 253ms
[   +2 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 0

flutter doctor can find andstudio,but cant find idea community.

flutter doctor
✓] Flutter (Channel master, 1.23.0-8.0.pre.105, on Linux, locale zh_CN.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.49.2)
[!] Connected device
    ! No devices available

Androidstudio cannot find flutter sdk.


Dave.test

According to Elvis:

Dependency 'trails' is not using appropriate protocol, please change this to something like 'git://.*'

According to Elvis:

Dependency 'xref_runner' is not using appropriate protocol, please change this to something like 'git://.*'

According to Elvis:

Dependency 'sync' is not using appropriate protocol, please change this to something like 'git://.*'

According to Elvis:

Dependency 'aleppo' is not using appropriate protocol, please change this to something like 'git://.*'

According to Elvis:

Dependency 'jiffy' is not using appropriate protocol, please change this to something like 'git://.*'

According to Elvis:

Dependency 'mixer' is not using appropriate protocol, please change this to something like 'git://.*'

According to Elvis:

Dependency 'shotgun' is not using appropriate protocol, please change this to something like 'git://.*'


Not an issue, but question: How to import all markdown files and render it in v-for to components?

I would like to import all markdwon files at once and render them in a v-for-loop as components, like:
<template lang="pug">

template(v-for="version in allVersions")
  component(:is="version")

</template>

<script lang="ts" setup>
  // VUE
  import { computed } from 'vue'
    // CONTENT
    const allVersions = import.meta.globEager('/src/content/pages/about/*.md');

      const component = computed(() => {
        if (allVersions) {
          const versionComponents = {};
          for (const version in allVersions) {
            if (Object.prototype.hasOwnProperty.call(allVersions, version)) {
              const element = allVersions[version];
              // const newVersionKey = String(version).replace(/\/src\/content\/pages\/about\/.*\.md/, '')
              const newVersionKey = String(version).replace('/src/content/pages/about/', '').replace('.md', '');
              // const newVersionKey = String(version).replace('/src/content/pages/about/', '')
              console.log(newVersionKey);
              versionComponents[newVersionKey] = element;
            }
          }
          return versionComponents;
        } else {
          return false;
        }
      }]]
</script>

So I get the files but I can not render them ...
Is there a way to make it work.
Thanks in advance

Hi @sdoerger , actually you're not far from something working.
I think you forgot to extract the default export in your object.
I don't really understand why you're doing all this computation on your array. The code I would write myself would be:
    const allVersions = Object.values(import.meta.globEager('/src/content/pages/about/*.md'))
	  .map(({ default: component }) => component)

and so you have an array of version components that you can iterate and pass to component :is
👋
Mathieu

Yeeees. Thank you so much @mathieutu. Can't tell how happy that makes me.
Yes, that is much more elegant. I rarely use actually .map.
So my new year resolution: More .map :)
So, here I map over just the object values of the import and from there I "pass" the key-value-pair default: component and return just the value of it, which gives much a clean array of components?
Thank in advance

Glad to see it helps.
An export can be named, or default :
import { named1, named2 }, defaultExport from 'foo
When you import all the module, you will have an object with
{
	default: ...,	// default export
	named1: ..., 	// named export
	named2: ...,	// named export
}

Here you just want the default export, so you can map over the modules, to get only it.
And by the way I can only recommend you to ban for loop from your code, and use the dedicated utilities like map, filter, reduce etc. You code will only be better and more readable! 😉


Fixed search filter on application listing page only takes first word of input

Target #1561

@Bahugunajii The search filters are not working as expected. The value of search input is not being restored if we switch the tab from open applications to closed or something else. Could you fix that and assign it for review? For reference, you can check out the job filter, like its value is restored in the filter parameters upon tab switching as well. Let me know if you have any questions.


Improve lighthouse scores for mobile

Several of our lighthouse mobile scores could be improved to increase mobile usability and SEO.
Lighthouse Tests
How to run Lighthouse test
To run a Lighthouse test for any page:

Install Lighthouse extension
Go to Manage Extensions
Enable Lighthouse for Incognito. This is because your other extensions might impact the Lighthouse scores:

Open Incognito Chrome
Open napari hub page
Open Chrome Dev Tools
Go To Lighthouse

Start load test with these settings

Lighthouse Scores for each page

@codemonkey800 to define this ticket specific to SEO, Accessibility, Best Practices as Lighthouse is more specific on insights to how we can improve. A new ticket will be created for Performance; requires more evaluation and monitoring.


add new listing to active listings

We need to add the newly created listing to the state with active listings.
After adding this line, subscribing to the index server is working for me. :tada:

pog


refresh_token 400

Hi, What is wrong？

Hi. Actually - I don't know. This functionality managed by Filsh's extension and I haven't tested it yet. I thing, you should:

Check if exists refresh token in db
Check if valid expiration date of it
If everything ok - update Filsh extension
If problem will be present - you can debug yourself or create/find issue in Filsh or, even, bshaffer (https://github.com/bshaffer/oauth2-server-php) extension.

Sorry, but I haven't time to check it on my local project.


Replace gas_available with gas_used in the description of apply_body

What was wrong?
The first return value in the description of apply_bodyis gas_available instead of gas_used.
How was it fixed?
Replacing gas_available with gas_used.
Cute Animal Picture

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (1fed0c0) 74.11% compared to head (f60cfb2) 74.11%.

:exclamation: Current head f60cfb2 differs from pull request most recent head 4fd0eb1. Consider uploading reports for the commit 4fd0eb1 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #872   +/-   ##
=======================================
  Coverage   74.11%   74.11%
=======================================
  Files         572      572
  Lines       32411    32411
=======================================
  Hits        24022    24022
  Misses       8389     8389

Flag
Coverage Δ

unittests
74.11% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Require license badge

As per now the README file doesn't include license badge which is a good idea to be included.

I don’t agree that it’s necessary


Add mongodb enhancements

This PR adds the enhanced otel mongodb metrics

Sure, mongodb enhancements got added in when the operations collector upgraded to 0.57.2. The Otel release v0.57.2 with this issue and this otel pr.  I also rebuilt the docker image and tested on a vm to confirm that I am receiving the newest metrics.

I noticed the operations collector just got updated with go  1.18 update. So I can updated  submodule opentelemetry-operations-collector to that 1.18. I ran a test pr with kokoro on latest otel version to confirm there were no new breaking changes being introduced.

@JonathanWamsley

I noticed the operations collector just got updated with https://github.com/GoogleCloudPlatform/opentelemetry-operations-collector/pull/113. So I can updated submodule opentelemetry-operations-collector to that 1.18.

I would advise not doing this for this current PR as it's not necessary. The postgres updates @schmikei is working on will require an operations collector update that will pull in the 1.18 update. @ridwanmsharif is this ok with you?

Yup agreed with @cpheps, merging this as in now. Thanks for the explanation


Test Driven Development

Possible Outline:

Shallow intro to 1 or 2 of the main testing frameworks
Component testing
Examples of feature/Integration/End-to-end testing (is that a thing in React?)
Example of plugging tests to existing code

References:

Facebook test utils
Rails has feature testing using rspec + capybara

Hi @pawel2105, thanks for the suggestion.
My initial reaction is that Test Driven development is too big for a 5-10 minutes screencast, but there certainly is space for one (and even more) episodes covering different aspects of testing.
For additional reference, this is a very interesting article by Dave Ceddia: Worthwhile Testing: What to Test in a React App (and Why)

I'll close this issue due to inactivity.
Again, thanks for the suggestion, please don't feel discouraged to make further suggestions in the future because this one wasn't used.


[Error Log] RuntimeException at SpongeCommandManager.getSuggestions

https://gist.github.com/Vohras2/db889d417328b070d9c0fbb703423a77

Will have to be re-tested with newest Sponge.


Lab 5 Level 4

Summary
Description of the question / problem here.
Description:
Im not able to get the last 3 test cases, my method compares this == object, and checks whether the object is an instance of Log before using the standard equals function to compare the orignal object and String
Code Snippets
Attach code snippets (if any)
Screenshots

The problem may be related to your flatMap method. You could try Log.of(5)).flatMap(x -> Log.of(x)) to see the output and adjust conditions of returning a new String in your flatMap accordingly

The problem may be related to your flatMap method. You could try Log.of(5)).flatMap(x -> Log.of(x)) to see the output and adjust conditions of returning a new String in your flatMap accordingly

yup thanks i realised there were several trailing empty lines that were causing the equals method not to trigger

u can check whether your output have empty line maybe u use \n but never check whether your original this.log is empty or not


Issue while displaying server-icon in the multiplayer list

It's not possible to see server-icons of servers using the Spigot version <= 1.12 while using the 1.13 client
(Note: This issue is not caused by ViaVersion)
I'm not sure if this is fixable, but it would be really cool.
What is the output link of /viaversion dump?
https://dump.viaversion.com/59b729685f0b5fbc79122489d9c7256caca275497dcec77c604dc56b781ed7cb
Are you using any additional software like BungeeCord? If so, what software and version? (Please list your plugins as well)
I'm only using Spigot 1.12 (and ViaVersion-1.4.1) with no additional software, but this issure also affects other Spigot versions.
How does this error happen? login? Using an item?
This issure appears in the client-server-list (Multiplayer-List)
Is there an error in the console? Use pastebin.com. Is there a kick message?
None

Update ViaVersion should be fixed by #900

For me this error occures only when i start MC 1.13.
All other versions are showing the icon as usual.

Ive installed the latest Version but stil have this issue.

That issue is solved on my side, Paper 1.12.2 #1500 with ViaVersion 1.4.2-snapshot #214

Fixed in the latest devbuild.


AsyncAPI open meeting, Tuesday Aug 18 2020 4PM UTC

This is the meeting for the AsyncAPI Special Interest Group (SIG). You're invited to join us and ask questions. The meeting takes place on alternate Tuesdays. Recordings from the previous meetings are available in this playlist on YouTube.
This time we meet at 4PM UTC
If you want to make proposals for the specification and/or the tooling, please reach out in our Slack workspace or just leave a comment below.
Join this mailing list to get an always-up-to-date invite to the meeting in your calendar.
Attendees

Join us if you want to know more about AsyncAPI! The meeting is open to the public.

Agenda

Don't wait for the meeting to discuss topics that already have issues. Feel free to comment on them earlier.

Q&A
(Leave a comment below to add your item to the agenda)
Generating the HTML template from the React component to remove duplicates (issue) (@fmvilas ) <- moved to next meeting when Fran is back
Generator and parser releases status (@derberg)
Error handling in parser https://github.com/asyncapi/parser-js/issues/119 (@derberg)

custom errors
what about warnings

CI Workflow improvements https://github.com/asyncapi/asyncapi/issues/423 (@derberg)

forks support!
merging through labels

Q&A

Notes
Notes for the issues mentioned above are added directly to the issues.
We also talked about this installation issue, that it is happening not only for the generator used from sources, but also when used as npm global installation. @derberg will investigate further.
We also talked about the NATS projects, and to be more specific the future of JS client and also the best way to use C# client in the code generator that @jonaslagoni works on. Thank you @aricart for joining the call and all the support during it. I'd love to pay back, in case you are interested more in our GitHub Actions pipeline and how we fully automated releases with conventional commits, have a look at my blog post about it https://www.asyncapi.com/blog/automated-releases/ and feel free to ping me on AsyncAPI or NATS slack workspaces when you have some questions.
Recording
https://youtu.be/U3IbRSVK2vk

@derberg it was a pleasure to participate!

@derberg I'm a noob to this project. What are the "NATS projects"?

@matthewadams he is referring to the open source messaging system NATS which @aricart is apart of, where in the meeting we talked about the status of their clients and some questions I had in regards to wrapping it in templates for Node js / Typescript and .NET 😄


⚠ Cioos National CKAN has degraded performance

In 2bcad7e, Cioos National CKAN (https://catalogue.cioos.ca/) experienced degraded performance:

HTTP code: 200
Response time: 5927 ms

Resolved: Cioos National CKAN performance has improved in bbb1a6f after 13 minutes.


error send to emby

Description of the bug
it seem able to detect the trigger but have error on target emby on my config.yaml sorry .....I very new to autopulse.
triggers:
my_notify:
type: "notify"
paths:
- "/mnt/movies"
timer:
wait: 30
targets:
emby:
type: emby
url: http://<IP_ADDRESS>:8099
token: xxxxxxxxxxxxxxx09eff660f07bf1
Steps To Reproduce
just add some file from riven and able detect but interact with emby seem got error
Additional Information
2024-09-21T16:07:52.701237Z ERROR autopulse::service::runner: failed to process target 'emby': error decoding response body
all values are hidden
Caused by:
expected value at line 1 column 1
2024-09-21T16:07:52.714473Z  INFO autopulse::service::runner: sent 4 files to targets

Hmm, I'll spin up an Emby and check this out to see what seems to be the issue

developer the problem is solved, because the api key i copy from emby no completed.
thanks.


Updated init(color: size:) to add a default value for the size parameter.

Reference from https://stackoverflow.com/questions/26542035/create-uiimage-with-solid-color-in-swift
Checklist

[x] I checked the Contributing Guidelines before creating this request.
[x] New extensions are written in Swift 5.0.
[x] New extensions support iOS 10.0+ / tvOS 9.0+ / macOS 10.10+ / watchOS 2.0+, or use @available if not.
[x] I have added tests for new extensions, and they passed.
[x] All extensions have a clear comments explaining their functionality, all parameters and return type in English.
[x] All extensions are declared as public.
[x] I have added a changelog entry describing my changes.

          1 Message

:book:
Thank you for submitting a pull request to SwifterSwift. The team will review your submission as soon as possible.

  Generated by :no_entry_sign: Danger

English is not my native language; please excuse typing errors.

There is one thing that confuses me when optimizing that method.
UIGraphicsBeginImageContextWithOptions(_ size: CGSize, _ opaque: Bool, _ scale: CGFloat)

The third scale parameter of this function is passed a value of 0 in stackoverflow or other publicly available examples, whereas our previous implementation passed a value of 1.
From Apple's documentation.

The scale factor to apply to the bitmap. If you specify a value of 0.0, the scale factor is set to the scale factor of the device's main screen.

If you set this parameter to 0, the resulting image size can be automatically scaled to fit the screen. We should also set it to 0, or leave the choice to the developer, like this.
init(color: size: scale:)

I am concerned that if the generated images are not automatically adapted to the screen size, the images will cause off-screen rendering problems when displayed due to scaling.

The third scale parameter of this function is passed a value of 0 in stackoverflow or other publicly available examples, whereas our previous implementation passed a value of 1.

This is a very old extension in this repo, so I don't know the reason for that. Not sure, but I guess in this case scale wouldn't make any difference because the whole image is a single color.

The discussion seems to have come to a standstill and I am considering closing the pull request.

The discussion seems to have come to a standstill and I am considering closing the pull request.

Sorry for that @Andy0570, the team is busy with other things and we are actually thinking about the future of this project in a more general sense. See https://github.com/SwifterSwift/SwifterSwift/issues/967
Thanks for the PR, but I guess we can close this for now =]


Test apps/repos that have no knowledge of Docker

User story:
As a user of this test framework, I want to test an app that just builds a war and does not use Docker or have a Dockerfile
Additional detail:
Not all apps use Docker in production, or may not have a Dockerfile written. For these cases, we can still provide easy setup/run through Docker if we build a Docker image for them automatically using a vendor-specific standard Dockerfile.
For example, the standard OpenLiberty Dockerfile looks like:
FROM open-liberty:<PROFILE>
ADD build/libs/<USER_APP>.war /config/dropins
COPY src/main/liberty/config /config/

Implemented by the vendor-specific adapter modules


Update how-to-submit-changes.html.hbs

Thanks for this, but I don't think we need a link to the src folder because the line right above that links directly to the src/group-icons folder.


Issue with old line artifacts

Great stuff!  Thanks for this!  It was exactly what I was looking for and I'm hoping it use it pretty extensively.
I have run into one thing that I'm not sure how to resolve, and it may be my inexperience with integrating thes kinds of graphic libraries.
My app...draws two objects (say <p>) on the screen and then the leader-line draws the line between them (with characteristics based on metrics of the objects).  It's a weather app (at the moment) so it connects things like Actual Temp and Relative Humidity leading to Dew Point (for example).
The way I have it set up though, when I refresh the page (by submitting a new location),the leader-lines persist on the page (if the <p>'s move, which they do with location name changes), until I resize the page (or something else to redraw it).  I can't seem to find the lines in the DOM to remove them programatically either.
I'm thinking there's a pretty simple solution for this, but after looking for a few hours, I decided to ry and come to the source.

Sorry...the objects are connecting
<p> tags

Hi @RobotPirateNinja, thank you for the comments.
You have to call position method when the layout was changed without resizing the window.
See document: https://anseki.github.io/leader-line/#position

I'm a little confused about where to invoke that.
self = line.position()
Here's one line being created...
temptoFeelslike = new LeaderLine(coreTempUI, spanfeelslike, {                     startPlugColor: '#FF0000',                     endPlugColor: '#0000FF',                     gradient: true,                     dash: {len: 4, gap: 12, animation: true},
How/when do I call the position method?    I have these currently as the function of a setTimeout, so it doesn't even try to draw them until everything else is rendered.

I have read your comment (https://github.com/anseki/leader-line/issues/135#issue-625211768), then, sorry, I couldn't understand that well (e.g. "two objects (say) on the screen").
However, I took notice of this line:

The way I have it set up though, when I refresh the page (by submitting a new location),the leader-lines persist on the page (if the's move

I couldn't understand the "if the's move", but I guessed that the "I refresh the page" above means that you changed the layout without resizing the window. Is it right?

Yes, sorry, I was trying to say that the <p> tags move, but Github rendered them because I didn't use the "code" markup here.

I guessed that the "I refresh the page" above means that you changed the layout without resizing the window. Is it right?

Correct.  It leaves the old lines up until there is some resize of the window.  Then they immediately disappear.

Here's an example..
https://www.youtube.com/watch?v=lTjQC8jKjrg&feature=youtu.be

If the "refresh the page" changes the layout, you have to call position method when you "refresh the page".

For example: https://jsfiddle.net/msj8tzfo/
Click "REFRESH" button.

Hrrrm.  I"m trying to have it so there's not a need for additional interaction after the submit > location action.  Essentially the "refresh" is submitting a new location, which goes and gets the new weather data object and then lays everything out...then redraws the LeaderLines.
The problem is that it's creating new Leaderline objects when it comes back, so can't call them to change it since they don't exist yet. (and calling "temptoFeeslLike.position()" right after creating the new version doesn't seem to affect the old one)
I need a way to trigger the "refresh" without a button. I guess I could just a listener to any mouse movement?

Progress....I got an event listener working on click to redraw the lines the right place....
Now it just seem to be keeping the old attributes (like Size).
Anyway, I think this gets me most of the way there.  I'll have to try again tomorrow evening.  Thanks again for your help!  And the code...pretty awesome stuff!

Umm... Sorry, I couldn't understand that well.
Do you mean that you want to remove an existing line?

Or, to reproduce the issue, could you show an example by using e.g. https://jsfiddle.net/ ?

Do you mean that you want to remove an existing line?

Yes, if there is one from a previous request.
The page starts out empty.  Someone submits a location.  The API's go and get some Lat and Long and Weather information.  The weather object is passed back and rendered on the page (using nbs with node).
The issue I'm having is on the SECOND PASS.  When someone, from the same page after getting their first response, sends another request...this causes a small shift in the tags used as endpoints for the Leaderlines, and so it draws new lines (for the second pass), but the lines from the first pass are still visible (until either a manual page resize or an event...I currently have it set-up for "mouseover").
I need some sleep, so If this doesn't make sense I'll do another video tomorrow.
I'm not sure how much I can put in a fiddle, since the API's all need private keys to function.

If you want to remove a line, you can use remove method.
I don't know your App, then I don't know whether the removing the line instead of updating the line is better way or not.
Usually, videos don't make sense to reproduce an issue because nobody can find problem in the code without reading the code.
Therefore, better way to reproduce that is the indicating an example code. In other words, you have to reproduce that in other person's computers, not yours.
You can write an example code in JSFiddle without calling the API because there is a problem in your code other than code that calls API maybe.

I'm still trying to set up a fiiddle that recreates the issue.

If you want to remove a line, you can use remove method.

That seems to remove the new line as well.  So I end up with no lines.  One thing I have noticed...I've been logging the "leader-line" object in my event handler for the submit on the form.
The first pass it shows empty.  Then it adds an svg for each line, and each pass, it adds a new set.   These seems to persist on each submission until I refresh the page.
   const oldLeaderLine = document.getElementsByClassName("leader-line")     if (oldLeaderLine) {         console.log(oldLeaderLine) }

This would be an example with 3 leaderlines being called.  The first pass shows it empty.  The second pass keeps the 3 old objects.  The third pass keeps all six from the first two.
And it seems to maintain the formatting for the old ones as well.   Getting the "position()" to fire has worked to get the lines to reset in position, but not in format.
I made another video.  I understand they don't help that much, but it's the easier way for me to show you what I'm seeing.   I can show you more code if that would help, you think.
Essentially you can see the issue in the video, where I re-submit a location, it gets new data, draws news lines...but then I have to call the position with the event listener to remove the old lines, and their formats (like the width on the "wind speed" one) keep persisting.
https://www.youtube.com/watch?v=Xh15iLJ5bTY&feature=youtu.be

That seems to remove the new line as well.

Do you mean that you called the remove method of new line?
If so, of course the line that own remove method was called is removed.
In other words, if you want to remove old line, you have to call the remove method of the old line.
Nobody can find bug in your code without reading the code.
However, I guess that you mistook the target and the time to call remove method.
For example, if you want to clear (i.e. remove) lines when the form is submitted, you have to call the remove method of existing lines in submit event listener (this might clear the page also).
To pass the lines to the event listener, you have to save instance of line when you made the lines.
For example:
const lines = []; // Lines container

// This function is called when the page was rendered.
function drawLines() {
  // Add a line as you like, and add the instance into container.
  lines.push(new LeaderLine(elementA, elementB));
  // Add more lines if you want.
  lines.push(new LeaderLine(elementC, elementD));
}

// This function is called when the page is cleared. (form is submitted)
function clearLines() {
  // Remove all existing lines.
  lines.forEach(line => { line.remove(); });
  // Clear the container.
  lines.length = 0;
}

That did it.   It was really just the question of when to do each thing.   So now I create the lines array/container in the main, call the clearLines after the submit, and call the drawLines after the timeout completes (and the data has been received and mutated).  And it all cleans up nicely on each refresh.
Thanks again for your help!   This gets the last thing out of the way for me to really start playing with this stuff.

I copied the example above to JSFiddle.
https://jsfiddle.net/yzax95nd/
Click the button.
In this way, to solve it faster, you can indicate an example without things that you don't want show such as API or something.
So, the issue was solved?

So, the issue was solved?

Yes, I used the pattern you suggested earlier, and now everything is working as expected.  Thanks again for your help!  I really appreciate it!

I'm glad if I could help you. :smile:
So, could you close this issue if it was solved?

Things are working perfectly now.  Thanks again for all your help!!!


feat: completion of the basic ShortComplex.Homology API

This PR marks the completion of the file Algebra.Homology.ShortComplex.Homology. It adds various API definitions and lemmas, including a comparison of the homology in a category and its opposite category.

[x] depends on: #7192
[x] depends on: #7193
[x] depends on: #7194

LGTM, thanks!
bors d+

Thanks @riccardobrasca for your suggestions, which I have mostly followed.
I do not intend to add any more material to this file. With this PR, the three large files LeftHomology.lean, RightHomology.lean and Homology.lean shall be exactly as they are in my dev branch https://github.com/leanprover-community/mathlib4/pull/4197, and these are the only three files that shall be >1000 lines long in this directory.
Next, I plan to develop a little bit more PreservesHomology.lean (following https://github.com/leanprover-community/mathlib4/pull/7197) before I return to Exact.lean (following https://github.com/leanprover-community/mathlib4/pull/7052).

bors merge


[cmake] Propagate lit_jobs to LLVM_LIT_ARGS

Missed this when I originally added the --lit-jobs build-script option in #61096, propagate the value provided to LLVM_LIT_ARGS in addition to SWIFT_LIT_ARGS.

@swift-ci please test


fix: change RBAC subject to serviceAccountName helper

This change will fix the subject Name in the RoleBinding definition so that when a custom service account name is used that will be reflected in the rolebinding as well.
This is in regards to issue 89

@henryjarend thanks for PR, please amend your git message. we need semantic commit message for new helm chart release. fix: change RBAC subject to serviceAccountName helper

done!

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


sendRawTransaction support --to param

to means contract address，sendrawTransaction has --address param is the contract address ，default "0x"

ok.  I did't run '--help'. only chekc the USAGE:     cita-cli rpc sendRawTransaction --code <code> --height <height> --private-key <private-key>

@kaikai1024  Only required arguments show in USAGE


Cant apply "--transparent-window-controls" to Spotifty shortcut

I can't figure out how to add "--transparent-window-controls" to the end of the Target field. I keep getting an error saying
"The name 'C:\Users[USER]\AppData\Roaming\Spotify\Spotify.exe ----transparent-window-controls' specified in the Target box is not valid. Make sure that the file path and filename are correct."

The double quote at the end is unnecessary

Without the quotation marks it just gives the error "The name 'C:\Users[USER]' specified in the Target box is not valid. Make sure that the file path and filename are correct."

Just wrap the double quote in spotify.exe path, do not include the flag

Thanks, that worked. I could've sworn I tried that already haha. Thanks again for dealing with my incompetence, I really do love the theme :) .


Add two additional commands to autocomplete

Adding setup:db-declaration:generate-patch and setup:db-declaration:generate-whitelist to autocomplete

Thank you for contribution @nikolalardev
Merged


cli glob nested routes issue

Hi guys, I came across an issue with the CLI not watching nested files deeper than two levels. For example, with the command unocss ./app/**/*.{ts,tsx} -o ./app/styles/uno.css --watch It is watching anything up to ./app/routes/Form.tsx but say I have ./app/routes/resources/index.tsx that file isn't being watched. I'm assuming this is an issue with the glob rules?
For some more context this is what is printed to the console:

When the directory looks like this:

Closing this issue as was a mistake on my behalf. My glob patterns weren't wrapped in quotation marks which caused the above behaviour. Hopefully this helps others who also come across this.


Training using multiple GPUs returns Inf values for loss and Nan for grads.

I have two Tesla K80 cards (2 GPUs per card) and I spent few days testing a MNIST classification model using multiple GPUs. What I found is that the training process would always diverge (got Nan for grads and Inf for loss) when I use two GPUs which are in the same card, however when I allocated two GPUs to my training operation from different cards, it would lead to convergence. By the way, everything worked well on a single GPU.
I am not sure about how GPUs compute those networks and it is really weird two GPUs from the same card make my model diverge and from different cards can make it converge.
The output for divergence is like the below:
2017-02-13 12:30:11.255323: step 10, loss =<PHONE_NUMBER>333771039308345507840.00 (980.7 examples/sec; 0.102 sec/batch)
2017-02-13 12:30:14.131089: step 20, loss =<PHONE_NUMBER>526597403246592.00 (793.5 examples/sec; 0.126 sec/batch)
2017-02-13 12:30:16.995940: step 30, loss = 2.30 (787.6 examples/sec; 0.127 sec/batch)
W tensorflow/core/framework/op_kernel.cc:975] Invalid argument: Nan in summary histogram for: layer2/weights_1
	 [[Node: layer2/weights_1 = HistogramSummary[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"](layer2/weights_1/tag, layer2/weights/read/_117)]]

I used cpu to preprocess the input data read from tfreords. My code for computing the average grads:
def average_gradients(tower_grads):
    average_grads = []
    for grad_and_vars in zip(*tower_grads):
        grads = []
        for g, _ in grad_and_vars:
            expanded_g = tf.expand_dims(g, 0)
            grads.append(expanded_g)
        grad = tf.concat(0, grads)
        grad = tf.reduce_mean(grad, 0)
        v = grad_and_vars[0][1]
        grad_and_var = (grad, v)
        average_grads.append(grad_and_var)
    return average_grads

The training_op:
def main(argv=None):
    with tf.Graph().as_default(), tf.device('/cpu:0'):
        x, y_ = get_input()
        regularizer = tf.contrib.layers.l2_regularizer(REGULARAZTION_RATE)

        global_step = tf.get_variable('global_step', [], initializer=tf.constant_initializer(0), trainable=False)
        learning_rate = tf.train.exponential_decay(
            LEARNING_RATE_BASE, global_step, 60000 / BATCH_SIZE, LEARNING_RATE_DECAY)

        opt = tf.train.GradientDescentOptimizer(learning_rate)

        tower_grads = []
        for i in range(N_GPU):
            with tf.device('/gpu:%d' % i):
                with tf.name_scope('GPU_%d' % i) as scope:
                    cur_loss = get_loss(x, y_, regularizer, scope)
                    tf.get_variable_scope().reuse_variables()
                    grads = opt.compute_gradients(cur_loss)
                    tower_grads.append(grads)

        grads = average_gradients(tower_grads)
        for grad, var in grads:
            if grad is not None:
            	tf.summary.histogram('gradients_on_average/%s' % var.op.name, grad)

        apply_gradient_op = opt.apply_gradients(grads, global_step=global_step)
        for var in tf.trainable_variables():
            tf.summary.histogram(var.op.name, var)

        variable_averages = tf.train.ExponentialMovingAverage(MOVING_AVERAGE_DECAY, global_step)
        variables_averages_op = variable_averages.apply(tf.trainable_variables())
        train_op = tf.group(apply_gradient_op, variables_averages_op)

What's your peer-to-peer matrix like (printed when you use tensorflow). I expect that if you use two chips from same card, it would configure it for peer to peer transfer and use DMA to transfer data. So perhaps there's some difference when using DMA that causes the discrepancy

Peer to peer matrix, GPU 0 and 1 caused the discrepancy, 1 and 2 worked well.
 IE, if TensorFlow is reading from GPU variable while another op is writing to it at the same time. Normally, in such situation, the variable would be partially updated, but updates do not cross boundaries of individual components. @poxvoculi is there an easy way to rule out GPU variable read reading a scalar in the middle of DMA write happening to it?

@zheng-xq
I have experienced a similar problem that I have not yet been able to fully diagnose.  Briefly, I've experienced NaNs on k80s and p100s that I suspect are due to simultaneous read/write operations on the same memory area resulting in corrupt values.  But I don't really have proof of this.  In my case, it occurs when using GPUDirect to DMA out of a GPU while the GPU is also doing compute.  My best understanding of these devices is that memory operations should be atomic at the cache line level: if DMA reads are asynchronous with writes, the read should get the value prior to the write or after, but never a mixture of before/after bits.  Since I'm seeing NaNs downstream in the gradient computations I guess in principle it's possible that they result from too much asynchrony in the computation (i.e. the computation sees legitimate values mixed from multiple phases, rather than corrupt values), but I'm doubtful.
My working solution is to make a temporary local copy on the GPU of a value prior to DMA'ing it off device.  This causes the NaNs to go away, at the cost of extra memory use.
According to the NVIDIA documentation I've seen, the two GPU dies on one k80 card "should" act like two separate GPUs, and communication between them still uses DMA via the PCI bus.  So, the differences you see may be due to timing rather than fundamentally different memory access behavior.
You might try the temporary copy technique to see whether it avoids the problem.  I'd be interested in any further insights you gain into this problem.

I also trained the full imagenet model on the same machine using multiple gpus, but this problem did not occur. The only difference in my view is the processing speeds of MNIST model and inception.

@poxvoculi Regarding your working solution, could you be more specific? Did you change the TensorFlow code or just changed some system configure?

In my case I changed the TensorFlow source code in C++.   I'm working on a part of the internal system that is not (yet) open source, so I can't give you a code snippet to apply, but the basic idea is to copy values into a temporary write-once buffer and use that for the source whenever a Tensor is to be used by an Op on another device..     There is not a system config in TF to do this,  If it turns out to be a general problem affecting many users, I could make one.
The easiest way to try this would be to examine your program and look for every place where the output of an Op on one device becomes an input to an Op on a different device.  In each such case, create a distinct, identical value not with Id (because that doesn't force a copy), but by adding 0 (or mul by 1.0), then use that copy value as the input to the other Op.  Make sure that the copy is local to the  device where the first value was produced, so the DMA from one device to another reads from the copy.

PS: I had a brief discussion with @zheng-xq about this, and he says that ops typically don't write to GPU directly across GPU boundaries, even with DMA enabled. IE, if you do GPU0 assign to GPU1 variable, it'll first create a temporary tensor on GPU1, use DMA to transfer it over, then copy temporary tensor on GPU1 to variable on GPU1

@yaroslavvb Thanks very much! I am not familiar with memory and GPU, could you please be more specific about how to implement it?

@YiMX I think Paul is suggesting to do the following, instead of
with tf.device("gpu:1"):
  a =   gpu_0_tensor + b

to do this
with tf.device("gpu:1"):
  gpu_0_tensor_moved = gpu_0 + 0
  a = gpu_0_tensor_moved + b

The gpu_0_tensor_moved is a copy of gpu_0_tensor created on gpu1, so that now a+b works on Tensors on the same device. Do this to enough tensors so that every other operation only works on tensors from the same GPU

Actually what I'm suggesting is this:
Instead of
with tf.device("gpu:0"):
a = Foo()
with tf.device("gpu:1"):
b = Bar()
c = Baz(a, b)
Do
with tf.device("gpu:0"):
a = Foo()
a_copy = a + 0.0
with tf.device("gpu:1"):
b = Bar()
c = Baz(a_copy, b)
The idea being to create an immediate one-time-use, read-only copy of any value that's going to be used on another device.  The copy should be local to the same device as the original value.

@YiMX , let us know if @poxvoculi's suggestion solves your problem. Thanks!

I tried your ideas to specify those variables, but the problem still exists, even if I split the loop into the below form to let every variable has a unique name.
with tf.device('/gpu:0'):
     with tf.name_scope('GPU_0') as scope:
        loss0 = get_loss(x_splits[0], y_splits[0], regularizer, scope, reuse_variables)
        reuse_variables = True
        grads0 = opt.compute_gradients(loss1)
        tower_grads.append(grads0)

with tf.device('/gpu:1'):
    with tf.name_scope('GPU_1') as scope:
        loss1 = get_loss(x_splits[1], y_splits[1], regularizer, scope, reuse_variables)
        reuse_variables = True
        grads1 = opt.compute_gradients(loss1)
        tower_grads.append(grads1)

I think you've made explicit what the original code did, but haven't introduced any new temporary local copies.  What I'm suggesting is intrusive to the code, to the degree that values go back and forth between devices.
My apologies if I don't understand your example well, I rarely work with TF at this level.  I think 'tower_grads' is located on the CPU, and a separate instance of 'grads' is located on each GPU.
The line
tower_grads.append(grads)
is going to force an inter-device copy from each GPU to the CPU.  Try substituting
      grads_copy = grads + 0.0
      tower_grads.append(grads_copy)

I think the average_gradients function is computing entirely on the CPU, if I'm wrong, you'll need some tmp copies in there too.
Frankly, it doesn't look likely that this is going to solve your problem.  I'd be more hopeful if the source of the inter-device copy were a Var.  Is is possible that opt.compute_gradients() or opt.apply_gradients is hiding some inter-device copies?

I added some copies, but there was something wrong if I did this to grads because it is a list not a value (I got errors of NotimplementError at apply_gradient_op = opt.apply_gradients(grads, global_step=global_step)). I am still working on this, but something I found might be useful. This time I changed
grads = average_gradients(tower_grads)

to
grads = tower_grads[0]

It worked but grads = tower_grads[1] still caused discrepancy. The problem I think might be caused by the second GPU.

Any update? I'm currently having this problem. Worked fine on CPU but NaN on GPUs.

Can you clarify: What program are you running, on which release, hardware platform, etc.?

Apologies, my problem is actually much better described in this thread https://github.com/tensorflow/tensorflow/issues/2037 - I'll follow up there.

Any update? I've been struggling with this problem for a while. I have 8 M40 cards and the problem is very similar with @YiMX. Everything works well on single card but diverging when using multiple cards together. The most weird part is that when I allocate computation on two different gpus between which the peer to peer access is not supported, everything works well again. For example, it works well on gpu0 with gpu4 or 5 or 6, but fails on gpu0 with gpu1 or 2 or 3.

Ok, it finally got solved.
In my case, The bug is pear to pear data access between gpu0 and gpu1,2,3 doesn't work. This abnormalty can be verified with "simpleP2P" test. The test reports an "verification error" with nan in my case. But the reason behind this behaviour could be various. For me, it's because there's a conflict of virtual memory existing between one of my cpu and gpu0, which can be  solved by simply disabling the VT-d function. After that, the simplep2p test got pased and NAN problem for the training disapeared.

I had a same problem and solved by disable ACSCtl.
Check your ACSCtl status.
Ref:
https://devtalk.nvidia.com/default/topic/883054/multi-gpu-peer-to-peer-access-failing-on-tesla-k80-/
https://github.com/twitter/torch-ipc/issues/17

@milanfeind why do you think SGD had problem with multiple GPUs?

I also meet this problem with the offical lexample
https://github.com/tensorflow/models/blob/master/tutorials/image/cifar10/cifar10_multi_gpu_train.py
I try to write another program follow the cifar10_multi_gpu_train.py, but I get NaN loss error.
tf version 1.12.0
Ubuntu 16.04.5 LTS
2 1080 Ti cards
CUDA-9.1/cuDNN-7.0.5

I have the same problem. The environment is: Ubuntu 16.04, 2 GTX 1080Ti cards, tensorflow 1.15, compiled from source with cuda 10.0+cudnn 7.6.4.
(1) When using one card with batch_size=2, the training is OK.
(2) When uisng two cards with batch_size=2, the training is OK.
Then I copied the code to another machine (which has V100, four GPU cards.
(3) training with four cards with batch_size=4, the training will stop with Nan after several iterations.


Could not find these documents

Hello @YAyaXM, could you please provide your environment and steps in detail?


Neutral reviews in dataset

Hi, have neutral reviews been removed from your dataset? If so, do you have the version with neutral reviews?

Yes. This pickle data is raw https://github.com/Proteusiq/DanishSentiments/blob/master/sentiment_data

Great, thanks. That worked perfectly. I'm just curious how you did your processing, as there's some variation in counts for 1, 2, 4 and 5 star reviews between that pickle object and the dataset used in Hisia. Did you randomly sample 5 star reviews or did you use another metric?

I gave a talk in PyData Copenhagen where I shared my decisions: https://github.com/Proteusiq/DanishSentiments/blob/master/notebooks/EDA.ipynb
TLDR: There exists a huge data imbalance between negative reviews(1-2) and positive reviews(4-5). To equal out, I selected randomly number of positive to match the maximum number of negative.
Does that answer your question?

Makes perfect sense, thank you :)


Started collecting repo descriptions (Issue #246)

Updated discover-repos.rb to also include the repo description as suggested in issue #246. Wrapped it in double-quote characters to sustain the csv file structure.
TODO: upgrade the description processing further to escape the double-quotes found inside.

@MoromugHSE please, don't forget to update the test too, to make sure we test this new functionality

Something strange is going on with the workflow: I've used the same GH Actions (also disabled sonarcloud), yet in my repo this PR passes all the checks -- here it doesn't.

@MoromugHSE thanks!


Style improvements

Hi there! I realized that the profile collection's dump doesn't preserve the right ordering of op.query.$hint and op.query.$order_by. I'll send a separate PR about that, but decided to improve the style of the code a bit first, so that it's more readable. I believe this PR makes it a lot cleaner. Let me know what you think.

Agree this needed cleanup. Thanks for taking a thorough look at this.


Remove broken node before repairing

Removing the broken node from the current cluster before doing an actual repair which can avoid some potential conflicts on the cloud providers side.
Based on the current implementation for the OpenStack cloud provider, the new node may be failed to start due to a timing issue.

/ok-to-test

/lgtm

/retest

/test cloud-provider-openstack-acceptance-test-e2e-conformance

/lgtm
/approve


Symfony 5.3.3

Coverage remained the same at 96.273% when pulling 19fdc809e117ab58430078414b3df4b15f74e6d7 on symfony-5.3.3 into 0d9d7738f742f004aaf03065563238ca9d95c28a on master.


What is the type of cookies ?

Like basically the cookies recovered by the stealer can be used or not with cookie editor ?

and what is the output file

u can use cookies in editors, cookie type is netscape if ur editor doesnt support netscape cookies u can convert netscape cookies to json w online tools, and the output file type is txt


Remove empty jbr directory from build script.

In com.mbeddr.formal.safety.build.com.mbeddr.formal.safetyDistribution, a "jbr" folder is referenced in the MPS directory. This directory does not exist for a fresh copy of MPS, which causes the gradle script to fail in the packaging step.
This commit removes the copying of this directory in the build script.

Hi Bentley,
the jbr directory contains a JVM - this is shipped with FASTEN such that it can be used also on computers that DO NOT have JVM installed (or not the adequate version).
Please download a version of MPS that contains the jar directory - e.g. http://download.jetbrains.com/mps/2019.3/MPS-2019.3.4.exe
Use this as MPS-home (or simply copy the jar directory from there into your MPS instance)
Please let me know if this works.
Dan

this issue has been solved - I am closing this PR


test: add stories for onboarding

Stories for the two views seen in onboarding, and the terms details

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


Add Ipv6CIDRBlock support in VPC

Signed-off-by: vaspahomov<EMAIL_ADDRESS>Description of your changes
Add support IpV6CIDRBlock, AmazonProvidedIpv6CIDRBlock options in VPC. Feature allows create ipv6 nets in aws.
I have:

[x] Read and followed Crossplane's contribution process.
[x] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested
Manualy tested on my crossplane/provider-aws installation

@vaspahomov LGTM - can you please rebase ?

@vaspahomov LGTM - can you please rebase ?

@haarchri Done!


[Key Vault] Prepare keys beta release

Description
This preps a beta of the next minor version, which will drop Python 3.6. The changelog has been updated to reflect new IV-generating behavior and bump to our required azure-core minimum version.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

Validating CI run that skips ApiStubGen: https://dev.azure.com/azure-sdk/public/_build/results?buildId=1778053&view=results

/check-enforcer override


[API breaking] Add types to inbound/outbound debug handlers

Add generic types to inbound and outbound debug handlers. The current implementation is API-breaking, however it's entirely possible to implement in a "minor-version" way (detail below).
Motivation:
I've found that the provided debug handlers are not massively useful without types, as it's not possible (as far as I'm aware) to unwrap the data inside NIOAny outside of a channel handler. This means that to debug-print data inside my application I have to essentially recreate the logic provided by the print handlers. This seems redundant, and it would be nice to have an "official" implementation.
Modifications:
Add generic types T to both Inbound and DebugOutboundEventsHandler. Inside the read event, instead of passing down a NIOAny, pass the unwrapped data.
Result:
[After your change, what will change.]
Notes:
This is an API-breaking change. It's also possible to create new classes, e.g. TypedDebugInboundEventsHandler, etc. Alternatively we could cleverly expose something from NIOAny to allow unwrapping outside of a ChannelHandler. E.g. nioAny.unwrap(as: T).

@swift-server-bot test this please

Yeah, it should’ve been data(Any) not NIOAny... we can also make it fully typed but either solution is API breaking so will probably need to wait until NIO 3 (NIOExtras 2)

@swift-nio-bot add to whitelist

@swift-server-bot test this please

@weissi as a short-term win, what do you think of implementing a similar but typed TypedDebugInboundPrintHandler for use now?

Are we explicitly opposed to having a public unwrap(as:) method for NIOAny?

Are we explicitly opposed to having a public unwrap(as:) method for NIOAny?

Yes. It’s deliberately opaque and allowing manual unwrapping doesn’t really enable anything that you couldn’t achieve today. Set your InboundIn to Any, then you have self.unwrapInboundIn to Any and from there to anywhere

IMO something doesn't feel quite right about using Any, personally I would say fully-typed is generally better as it allows for less misuse

@Davidde94 this handler doesn’t have type information so typing it is impossible (without changing its type). It was designed to handle Any but by accident saved a NIOAny in the Event enum, we just missed this on review

Updated this PR to target main.


Any plan migrating to socket.io 1.x

Well, socket io has been upgraded to 1.x for quite sometimes, would you upgrade your code accordingly ?

I would like to see this happen too.


This gem depends on relaton-nist

This gem is supposed to be used in the relaton-nist isn't it? But it depends on the relaton-nist,
https://github.com/metanorma/pubid-nist/blob/98dfdb37498ed6ec8beed82d7355d8e0988d0fa7/pubid-nist.gemspec#L32
so it's impossible to include this gem to relaton-nist dependency
bundle update
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Your bundle requires gems that depend on each other, creating an infinite loop. Please remove either gem 'pubid-nist' or gem 'relaton-nist' and try again.

Can we remove the relaton-nist dependency from this gem?

Yes we must remove Relaton-NIST as a dependency. There is no reason to include it here.


Add TOC for README

Add TOC for README.

Added with https://github.com/iamazeem/fluent-plugin-json/commit/093ff857138fe17b939ad51634bc130f22e46575.


Removal of data argument in utils.run_algorithm function

Dear Zipline Maintainers,
Is it possible to run backtesting for local pandas.Panel data structure through data argument in utils.run_algorithm function. I was using zipline1.3.0, in which this argument was present.
Regards

It is not possible to use data parameter. We have to use bundle format for data. Thanks


Add pkcs11 submodule from oasis-tcs/pkcs11

Description
Add pkcs11 submodule from oasis-tcs/pkcs11, and modify project files to point to new location.
Checklist:

[ ] I have tested my changes. No regression in existing tests.
[ ] My code is Linted.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

:( I don't really like pointing towards a path called /published/2-40-errata-1/ in our repo.  Can't we just maintain our own copy in a repo?  Regardless of whether we maintain the repo or they do, it iwll be work to do an update since we would have to change the file path in all the cmake and project folders.
To me it seems more convenient to change the files in our repo than to change the path every time we do a update.  And our file paths will be prettier.

Not relevant anymore. Merged in https://github.com/aws/amazon-freertos/pull/1378


Memory leak in mesh refinement

Running ex0p with pyramids resulted in memory leaks:
==1747452== 40 bytes in 1 blocks are definitely lost in loss record 4 of 4
==1747452== at 0x483BE63: operator new(unsigned long) (vg_replace_malloc.c:344)
==1747452== by 0x2D24EA: mfem::Mesh::UniformRefinement3D_base(mfem::Array, mfem::DSTable, bool) (mesh.cpp:8625)
==1747452== by 0x3BD2DA: mfem::ParMesh::UniformRefinement3D() (pmesh.cpp:4602)
==1747452== by 0x2D74B6: mfem::Mesh::UniformRefinement(int) (mesh.cpp:9406)
==1747452== by 0x172FC1: main (ex0p.cpp:44)
mesh.zip

The Tetrahedron allocations here https://github.com/mfem/mfem/blob/349ddfd9547cd1fb3dd489c62a5e17a748f4d8e6/mesh/mesh.cpp#L8611-L8625
should be done differently when MFEM_USE_MEMALLOC is defined (it is defined by default).
Instead of using new one needs to use something like this: https://github.com/mfem/mfem/blob/349ddfd9547cd1fb3dd489c62a5e17a748f4d8e6/mesh/mesh.cpp#L8467-L8469

Another option that will avoid the need for #ifndef MFEM_USE_MEMALLOC is to allocate Tetrahedron elements using the method https://github.com/mfem/mfem/blob/349ddfd9547cd1fb3dd489c62a5e17a748f4d8e6/mesh/mesh.cpp#L3848

@bslazarov Does https://github.com/mfem/mfem/pull/3438 fix this leak?

Do we only need pattern for tets?  There are a lot of other other kinds of elements news in there.

Do we only need this pattern for tets?  There are a lot of other other kinds of elements new commands in there.

Seems like the _USE_MEMALLOC flag only does something for tets throughout the library. Not sure if the origins but this fix is consistent with the rest of the Mesh class.


csproj merge conflict

Hey guys, I`ve been searching for a solution to work around the csproj merge conflicts, we have to solve on our own.
Well, in this case we just really just have to merge it manually I guess. I havent found any well working way to merge the csproj xml file properly. One of my findings is, that we could use the union merge which kinda works... Anyways this merging mode does some pretty silly stuff sometimes, so I would not recommend it to us.
Thats how we should approach:

Take a sip of your energy drink while programming your sweet code.
Commit and Push your changes up to the server.
Conflicting:

Choose the Server file as base
Add only those changes, which you have made.

Continue pushing.

Kind regards,
BQ mc. PascalCase

Hi @BitquakeProgramming,
your approach is a good way to go on with our project, but I have a second suggestion:
Maybe we should work on branches to avoid merge conflicts, because we don't touch the master branch.
Let us try your approach and if we still can not go on, we will try to work on own branches.
Looking forward and best Regards,
Roman


support image search function

ref https://github.com/postgrespro/imgsmlr
Sent with GitHawk

We have another experimental task that will be implemented before:

semi-duplicate text search with locality sensitive hashing (simhash/minhash).

PS. No one is going to store images in ClickHouse, but storage of short fingerprints along with image metadata is considered Ok.

You're right image binary external save，vector internal save。
Sent with GitHawk


How do we get the sub tier?

Actual behaviour:
None
Expected behaviour:
Get sub tier on each message
I'd like to programatically know when a chatter is a Tier 2 or Tier 3 sub instead of a Tier 1 but I cant find a way to do it. Is is just not possible or am I missing it? 🤔
Current code:
const opts = {
	//REDACTED
};
// Create a client with our options
const client: Client = tmi.client(opts);

client.on("message", onMessageHandler);

function onMessageHandler(
	target: string,
	userState: ChatUserstate,
	msg: string,
	self: boolean
) {
	console.log(userState);
	// ???
}

Configuration

tmi.js version: ^1.8.5
Node version (if applicable): v16.18.1
Operating system: Linux

Here is the log of a userState from with Tier 3:
{
  'badge-info': { founder: '25' },
  badges: { vip: '1', founder: '0', 'hype-train': '1' },
  'client-nonce': 'REDACTED',
  color: '#FF69B4',
  'display-name': 'REDACTED',
  emotes: null,
  'first-msg': false,
  flags: null,
  id: 'REDACTED',
  mod: false,
  'reply-parent-display-name': 'REDACTED',
  'reply-parent-msg-body': 'REDACTED',
  'reply-parent-msg-id': 'REDACTED',
  'reply-parent-user-id': 'REDACTED',
  'reply-parent-user-login': 'REDACTED',
  'returning-chatter': false,
  'room-id': 'REDACTED',
  subscriber: true,
  'tmi-sent-ts': 'REDACTED',
  turbo: false,
  'user-id': 'REDACTED',
  'user-type': null,
  vip: true,
  'emotes-raw': null,
  'badge-info-raw': 'founder/25',
  'badges-raw': 'vip/1,founder/0,hype-train/1',
  username: 'REDACTED',
  'message-type': 'chat'
}

This person is a founder. There's no information on if they're a tier 3 subscriber if they have the founder badge enabled. You would need to remember their tier when they send a resub message (this can be unreliable) or use the Helix API to check it at any time.

I see. So its not possible to obtain this info on a normal message. Only when subbing/resubbing or using Helix API right? 🤔
So I would have to keep a database/file of the Tier 2/3 subs and check it every message? Ok.

also: where exactly do I get "Tier 3" when they sub/resub?
for now Im gonna log this ones to see what they contain:
client.on("resub", (channel, username, months, message, userState, methods) => {
	console.log("Resub: " + username);
	console.log(methods.plan);
	console.log(methods.planName);
	console.log(methods.prime);
	console.log(userState);
});

methods.plan will be "1000", "2000", "3000", or "Prime" which is tier 1, 2, 3, and 1 respectively. (Twitch docs)


Store Bot prototype

[ ] Store bot on shared KUBE

https://github.com/dxos/kube/issues/699
[ ]

Blocked on proxying implementation on mac


What is the pipline and installation guideline?

What is the pipline and installation guideline?

Hi, thanks for the interest in our work. The inference pipeline is just merged: https://github.com/microsoft/i-Code/pull/50.


python311Packages.google-cloud-texttospeech: 2.16.2 -> 2.16.3

Changelog: https://github.com/googleapis/google-cloud-python/blob/google-cloud-texttospeech-v2.16.3/packages/google-cloud-texttospeech/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 293872 run on x86_64-linux 1

2 packages marked as broken and skipped:

python312Packages.google-cloud-texttospeech
python312Packages.google-cloud-texttospeech.dist

2 packages built:

python311Packages.google-cloud-texttospeech
python311Packages.google-cloud-texttospeech.dist


Fresh branch of mangrove notebook

Replacement for PR #100 after I messed up the branch.
Uplift of Mangroves notebook
Checklist (replace [ ] with [x] to check off)

[X] Remove any unused Python packages from Load packages
[X] Remove any unused/empty code cells
[X] Remove any guidance cells (e.g. General advice)
[X] Ensure that all code cells follow the PEP8 standard for code. The jupyterlab_code_formatter tool can be used to format code cells to a consistent style: select each code cell, then click Edit and then one of the Apply X Formatter options (YAPF or Black are recommended).
[X] Include relevant tags in the final notebook cell and re-use tags if possible
[X] Clear all outputs, run notebook from start to finish, and save the notebook in the state where all cells have been sequentially evaluated

Totally agree with @caitlinadams' comments above, a really nice notebook with some great plotting examples.
Two thoughts:

Should we use Sentinel-2? Then this notebook could be run anywhere.  We'd only have three years to analyse but might still be worth it.
Should we be tidally filtering the annual time-series before calculating the geomedian? +- some range around the median tide-height? It seems plausible to me that the change in mangrove extent might be simply due to water inundation masking the NDVI rather than a real change.

Thanks for your suggestions, @cbur24. I think we can leave it as Landsat for now, as that was the original use-case, but we could swap to Sentinel in future.
It's a good point about the tide filtering. @andrewdhicks -- would you be able to implement this and report back on whether it changes the results?
Noting as well that Ken has also asked whether this notebook can include an animation -- I think Andrew is already working on implementing this.

@andrewdhicks @caitlinadams Any updates on this notebook that I should be aware of? Otherwise, I'm considering merging it rather than leaving it to grow stale as a PR....


feat: implement attrs-based message models (#1)

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@b94bfc4). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff            @@
##             main        #2   +/-   ##
========================================
  Coverage        ?   100.00%
========================================
  Files           ?         4
  Lines           ?        82
  Branches        ?         0
========================================
  Hits            ?        82
  Misses          ?         0
  Partials        ?         0

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Save in-progress posts to localStorage.

Currently, if a user is working on a post, and either the API or the browser has problems, there is no in-browser backup. They must close the window and thereby lose their post. I think we should have some way to cache a post while it is being written. Once it is saved successfully (published or as a draft), the instant cache can be cleared.

Agreed, way overdue. #388 covers this as well, we should track the request there.


[minor refactor] sometimes uses .getPlugin().getLogger()...

...instead of .getMainLogger().
but then why do you have a helper function for that if you only sometimes use it and othertimes use the verbose version?

I created it later in time and had no time to refactor the other functions.
If you want you can do that!


fix replace lmhead issue when ckpt not load

When the checkpoint does not load, lm_head will not replace the module. We adjusted the position of replaced lmhead module.

@RezaYazdaniAminabadi @delock, Pls kindly review. Thanks~

@Yejing-Lai can you elaborate a little on the use case that this PR fixes? i.e. which workload, software configuration, etc.

When the checkpoint does not load, lm_head will not replace the module. We adjusted the position of replaced lmhead module.

Hi @RezaYazdaniAminabadi , just checked with @Yejing-Lai that this PR makes lm_head fit for use case that the weight tensor are not loaded from checkpoint.  This could happen i.e. in unit test where checkpoint loading is not mandatory.   Could this PR be reviewed?  Thanks!

@delock - just checking, still a priority to review this PR and get it merged in?

Hi  @loadams we discussed this PR internally.  The issue behind this PR only manifests in unit test not real life workload.  So the priority of this PR is not as high as others.  We will close this PR to keep focus on real model related issues.  Thanks!

@delock - just checking, still a priority to review this PR and get it merged in?


Blender python client

Simple script (blender's python) to put render jobs to batchd's queue.

It is very simple but already useful.
Installation:
$ cp -R .../batchd/python/batchd ~/.config/blender/2.78/scripts/addons/

After that, start blender and enable the addon in addon settings (search by "batchd"). You will have to specify manager URL, user name and password there. Also it is required to specify name of job type.
It is required that this job type has one InputFile parameter named "input" and one OutputFile parameter named "output".
Go to T panel in 3D view -> Misc -> Submit to batchd. Output file path will be taken from rendering settings.


NK3AN: U2F register request restart fails with panic

Generally registering works, but if you restart the process as described below the NK3AN will panic...
Tested on gitlab + chromium (110):

click "set up new device"
(device asking for UP)
click "USB-Security-Key"
click "try another way"
nk3an panics (red LED)

maybe partly related to #199 ?

The panic was actually caused by ctaphid-dispatch not supporting cancelled requests, so once the UP returned (or timed out), the request was continuated and it failed to respond.
The panic is fixed in https://github.com/trussed-dev/ctaphid-dispatch/pull/2/files

The fixed was included in #279


How does this work?

The way I understand Kroki, it generates an image and serves it via HTTP. Does this extension generate static files when used with Docusaurus? E.g., when building the site?

Generating static files will make many things out of control, this plugin will convert the image into a base64 string to become a part of markdown. It's simple and compatible with many tools.


Retry resolving target's hostname after a certain number of failed requests

Summary
If a hostname is given, it could be beneficial to retry resolving it after a certain amount of probe failures since tcping could be used to check and analyze Anycast sites. However automatically doing this might yield undesirable results.
It could be better to introduce a flag to give users control.

I'd like take up this issue.

Hi, @pouriyajamshidi.
Can I change format of tcping args to like below?
tcping -h <hostname/ip> -p <port number> -r
or
tcping -h <hostname/ip> -p <port number>
Beacause, more arguments may be specified in the future as far as I read other Issues.
If it is not a problem, I will use the flag package.

Hi @icemint0828 ,
Thanks for your contributions. It is more than ok to do so. However, please note that tcping still has to work similar to what it does now, without specifying the flags. Like the ping utility.

@pouriyajamshidi
Ok, I see.
The work will be divided into two phases.

Replacement with the flag package
Add flag to retry resolving target's hostname

tcping -h <hostname/ip> -p <port number>

I change to below in #13.
tcping <hostname/ip> -p <port number>
I think it is better form.

tcping -h <hostname/ip> -p <port number>

I change to below in #13.
tcping <hostname/ip> -p <port number>
I think it is better form.

Hi, left my comment there.
thanks!


Variant for ESP32 / espHome

Not sure if this would even be possible but one can only ask.
As the title implies, would it be possible to use this integration together with a Bluetooth proxy from esphome?

I brought this topic earlier today in a chat with @iainbullock & @raphmur
The current reality; to send a command to the car the add-on currently uses the official from Tesla tesla-control app.
tesla-control is designed to send commands to the car over Internet (Tesla Fleet API) or over BLE with the use of a hardware Bluetooth dongle. ESPHome Bluetooth Proxy integrates magically into Home Assistant but tesla-control being written in Go makes things harder as there's no HA Go library available.
We can leave this Issue open for now, hoping others will chip in some ideas to make this happen.

I always mistakenly thought that the proxy would present itself to the machine as a Bluetooth dongle, making it easy to implement.
In the meantime I will just dust off a raspberry pi I have laying around and try it as a standalone.

Tested the proxy --> Useless.
However there are theses repos that could be interesting to robustify and / or port on esp.

ESP https://github.com/robin-thoni/tesla-ble-esphome
Python https://github.com/kaedenbrinkman/PyTeslaBLE
HTTP proxy in Go https://github.com/wimaha/TeslaBleHttpProxy

Another promising project to move to ESP32 is TinyGo. It doesn't support Wifi/BLE yet but there's a draft PR.
https://tinygo.org/
https://github.com/tinygo-org/drivers/pull/650
tesla-control could probably be compiled (with few changes?) but until TinyGo merges 650, it's difficult to know.

This is very promising: https://github.com/robin-thoni/tesla-ble-esphome

This is very promising: https://github.com/robin-thoni/tesla-ble-esphome

This ESP implementation is based on the reversed engineered protocol of the Android app  - done by Alex L few years back. It still works in parallel with the new official tesla-command BLE protocol but the two protocols are different.

Thanks for sharing this @BogdanDIA, if I understand well, this project (based on Alex L's work) is only implementing the VCSEC protocol, which is only part of what the BLE communication with the Tesla covers?

@raphmur  - is is not only for the covers. The protocol is used to authenticate with the CAR (VCSEC part of it) for opening and driving, it is used for sending commands from keyfob to the car, from phone to the car when no internet exists, from the TPMS sensors to send their data. During revers engineering times around 2019 the "SEC" in VCSEC what thought to mean Secondary but actually it means Security. It worth reading through what the guys at trifinite.org did:
https://trifinite.org/Downloads/20220629_tempa_presentation_troopers22_public.pdf
BTW, one of the latest changes in the FleetAPI introduced a new option for tesla-control: body-controller-state. First command to return status (not useful for charging though), yay

It appears this project https://github.com/yoziru/esphome-tesla-ble is working well already.
Closing this issue.

It is ok to close this. Although the implementation in https://github.com/yoziru/esphome-tesla-ble needs to be updated every time large changes are added by Tesla in vehicle-control impl. I have another implementation, will write in the tesla-local-control.


Update references according to APA

I'm wondering, why all the links?
If no particular reason, is it possible to align with Bibliography? @MargaritaRad

Well, did not add the links myself, I would ask Philipp if he wants to keep them as he did not mention it in the meeting, could you please tag and ask him? Thank you!

Ok let's just remove the links… keep the DOIs if it's not too much work.

So, shall we enter DOI-Links on the place of the existing links?

No links in the entry, and if there is a DOI link, put it after the entry. Take a look at Bibliography — econsa 0.01 documentation to get some ideas…

Ah, I see! Thanks a lot! Will do that, then. Is tomorrow morning fine? From: LeiqiongSent: 15 July 2020 19:30To: OpenSourceEconomics/econsaCc: Margarita Rad; MentionSubject: Re: [OpenSourceEconomics/econsa] Update references according to APA (#46) No links in the entry, and if there is a DOI link, put it after the entry. Take a look at Bibliography — econsa 0.01 documentation to get some ideas…—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.

Thank you! I have changed the due date on ClickUp.

Thank you very much! From: LeiqiongSent: 15 July 2020 19:36To: OpenSourceEconomics/econsaCc: Margarita Rad; MentionSubject: Re: [OpenSourceEconomics/econsa] Update references according to APA (#46) Thank you! I have changed the due date on ClickUp.—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.

Replaced by #47.


Issue on interp_image no 'input_car.png'

(cl) ~/work/p1/pyopencl-in-action$ python -m "ch6.interp_image"
Using GPU: Intel(R) Gen9 HD Graphics NEO
On platform: Intel(R) OpenCL HD Graphics (OpenCL 2.1)

Traceback (most recent call last):
  File "/home/ubuntu/anaconda3/envs/cl/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/ubuntu/anaconda3/envs/cl/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/ubuntu/work/p1/pyopencl-in-action/ch6/interp_image.py", line 64, in <module>
    im_src = imread('input_car.png').astype(dtype=np.uint16)
  File "/home/ubuntu/anaconda3/envs/cl/lib/python3.6/site-packages/skimage/io/_io.py", line 62, in imread
    img = call_plugin('imread', fname, plugin=plugin, **plugin_args)
  File "/home/ubuntu/anaconda3/envs/cl/lib/python3.6/site-packages/skimage/io/manage_plugins.py", line 214, in call_plugin
    return func(*args, **kwargs)
  File "/home/ubuntu/anaconda3/envs/cl/lib/python3.6/site-packages/skimage/io/_plugins/pil_plugin.py", line 35, in imread
    with open(fname, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'input_car.png'

requesting 'input_car.png' file even it's in directory?

Same issue as with kafka.txt. Fixed now


Alerts are not being removed for the searches that were deleted

If I delete Search before I resolve all alerts that it produced those alerts are staying forever on Alerts page - no matter what I do (Resolve, Acknowledge etc):

They can be deleted manually from the elasticsearch index that should look something like: 411_alerts_1
Haven't figured out a better way yet

Not optimal, but you can delete that index and do a resync with
"bin/es_sync.php --site=1". I'll take a look at this when I have time.
On Fri, Oct 14, 2016, 13:30 kbiedermann<EMAIL_ADDRESS>wrote:

They can be deleted manually from the elasticsearch index that should look
something like: 411_alerts_1
Haven't figured out a better way yet
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/etsy/411/issues/45#issuecomment-253867920, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AC-jwl2MLKlGddJI2Tl_jiqLn4FgzY9Xks5qz7xQgaJpZM4KO5lI
.

I was actually deleting index :-). But it would be harder to do when it is in actual production and more people use it.

It would be much easier to delete these alerts if we changed the type to encode the search id as well. Ex: 411_alerts_1/ping_1234 The downside is this would require a re-index.

I am running a Siemonster instance with 411 included and there is no Elasticsearch index for the alerts. So the above solution doesn't work in this instance.

Leaving this here for other Siemonster users that run into this problem
Open Rancher
Execute shell to es-client-1-1
Install curl  apk --no-cache add curl
curl -XDELETE 0:9200/411_alerts_1
Reload 411 page

@LFBernardo - what does this commands do? Will this delete all the alerts including the Searches created? I have been trying to delete this but there has been no luck. Appreciate your help. Thanks!

@khulfreedos This will only delete the orphaned (all alerts) in your Elastic instance. The searches you have configured is stored elsewhere (in db if memory serves). It seems a bit nuke like to do to clean orphaned searches but I haven't been able to spend more time on it. If I come up with a better way to do it I will come share it here. I will also be posting howto's on my git page as well as on the Siemonster support site.
P.S. your searches will be lost if you upgrade the 411 container, just bear that in mind.

Added a new job to delete Alerts via f6bfc4c798a2c18b969a2753dfb4af4d860b702e.


Delete device icon name not accessible

Area or Component
Facility form
Quick Summary
The trash can icon to remove a device is labelled simply "delete device". However, if there are multiple devices for the facility, this name is not unique. It also doesn't tell users which device they're about to delete.
Accessibility Violation
Name: The element's name is missing or incorrect: https://cdc-devtools.dequecloud.com/rule-help/en/aria-name-missing-incorrect
Action Requested
Rename the aria-label on the trash can icon to be more specific and include the selected device's name. "Delete Abbot BinaxNow" is much more descriptive than simply "delete device".
Screenshots (optional)

Original Deque Issue
https://docs.google.com/spreadsheets/d/1b6xjubAN5Uw11DV4_B5zvSu7HeDI6Z-DpV4DMcToqAY/edit#gid=1346058064&range=12:13

This ticket should be resolved when #4269 is resolved by PR #4314.


Add new receiver that scrapes prometheus endpoint of Fluentbit.

Add new receiver that scraps prometheus endpoint of Fluentbit.
Add FluentBit metric receiver to default configuration and update the golden references.

Obsolete by https://github.com/GoogleCloudPlatform/ops-agent/pull/329, right?