Release/4.0.0

These releases bring two exciting new features to the trackers: support for hybrid apps, and anonymous tracking.
Support for hybrid apps enables tracking Snowplow events in Web views. The iOS and Android trackers communicate with the WebView tracker that can be installed in Web apps to track events. This enables events to share the same session and context entities as events tracked using the native mobile trackers!
Anonymous tracking is a tracker feature that enables anonymising various user and session identifiers to support user privacy in case consent for tracking the identifiers is not given. Similar to the JavaScript tracker, the mobile trackers let you configure user anonymisation (using the userAnonymisation flag in TrackerConfiguration) to anonymise user identifiers in session and platform context and server anonymisation (using the serverAnonymisation flag in EmitterConfiguration) to anonymise the network_userid and user_ipaddress properties assigned by the Collector.
Other changes in the trackers include improvements in remote configuration that now supports switching between multiple remote configuration endpoints and gives feedback of where the configuration was retrieved from (from cache, default values or fetched over network). Additionally, the tracker.track(event) function now returns the event ID.
We are also excited to announce major improvements to the documentation that now gives more guidance on how to make use of all the tracker features!
CHANGELOG
Enhancements:

Add interface to subscribe for events tracked in Web views (#531)
Add anonymous tracking features (#540)
Return tracked event ID from the track method (#544)
Extend the onSuccess callback when setting up remote configuration to pass configuration state (#694)

Bug fixes:

Do not resume remote configuration from cache in case it has different endpoint (#533)

Under the hood:

Fix default session timeout values to 30 minutes everywhere (#542)

Thanks for your pull request. Is this your first contribution to a Snowplow open source project? Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://docs.snowplowanalytics.com/docs/contributing/contributor-license-agreement/ to learn more and sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


How to contribute - page

Fork
branch
PR

Initial page have been submitted
https://github.com/microsoft/alguidelines/pull/29


[Solved] Checksums issue on Ubuntu packages (on Virtualbox 6.1.x)

I think I might have stepped into something similar to #16976.
I've tried to install InfluxDB on a Ubuntu 20.04 VM (on Virtualbox, for testing purposes) and encountered what follows.
When I attempted to use apt (with https://repos.influxdata.com/ubuntu repo) I stepped into the following error message:
root@antigua:/usr/src# apt install influxdb
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  influxdb
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 63.4 MB of archives.
After this operation, 172 MB of additional disk space will be used.
Get:1 https://repos.influxdata.com/ubuntu bionic/stable amd64 influxdb amd64 1.8.0-1 [63.4 MB]
Err:1 https://repos.influxdata.com/ubuntu bionic/stable amd64 influxdb amd64 1.8.0-1
  Hash Sum mismatch
  Hashes of expected file:
   - SHA256:1315ae2132f4f8cc348cee9fd8799c9fd9e5d535b7a1ad4661e21843e33cc307
   - SHA1:0cab2cc53939a4cc374d57289686a5c3039c396d [weak]
   - MD5Sum:a8c2342aced20a271b1c6892bb256eb7 [weak]
   - Filesize:63416692 [weak]
  Hashes of received file:
   - SHA256:583c9bcf69b7c2637a5a3b8728820e7d9d83bbe5f18244c056e5b3fe0e120ccd
   - SHA1:eb6defb1f59cfe6519473a762616598b37fcc49a [weak]
   - MD5Sum:67242c343f2aecfdba656dc7c041d673 [weak]
   - Filesize:63416692 [weak]
  Last modification reported: Sat, 18 Apr 2020 01:32:25 +0000
Fetched 63.4 MB in 1min 18s (808 kB/s)
E: Failed to fetch https://repos.influxdata.com/ubuntu/pool/stable/i/influxdb/influxdb_1.8.0-1_amd64.deb  Hash Sum mismatch
   Hashes of expected file:
    - SHA256:1315ae2132f4f8cc348cee9fd8799c9fd9e5d535b7a1ad4661e21843e33cc307
    - SHA1:0cab2cc53939a4cc374d57289686a5c3039c396d [weak]
    - MD5Sum:a8c2342aced20a271b1c6892bb256eb7 [weak]
    - Filesize:63416692 [weak]
   Hashes of received file:
    - SHA256:583c9bcf69b7c2637a5a3b8728820e7d9d83bbe5f18244c056e5b3fe0e120ccd
    - SHA1:eb6defb1f59cfe6519473a762616598b37fcc49a [weak]
    - MD5Sum:67242c343f2aecfdba656dc7c041d673 [weak]
    - Filesize:63416692 [weak]
   Last modification reported: Sat, 18 Apr 2020 01:32:25 +0000

When I tried using "official" procedure (https://portal.influxdata.com/downloads/), following issue occurred:
root@antigua:/usr/src# dpkg -i influxdb_1.8.0_amd64.deb
(Reading database ... 121238 files and directories currently installed.)
Preparing to unpack influxdb_1.8.0_amd64.deb ...
Unpacking influxdb (1.8.0-1) ...
dpkg-deb (subprocess): decompressing archive member: internal gzip read error: '<fd:4>: incorrect data check'
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive influxdb_1.8.0_amd64.deb (--install):
 dpkg-deb --fsys-tarfile subprocess returned error exit status 2
Failed to disable unit: Unit file influxdb.service does not exist.
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
 influxdb_1.8.0_amd64.deb

SHA of downloaded file also seems to be different from expected:
root@antigua:/usr/src# sha256sum  influxdb_1.8.0_amd64.deb
**db24ddf68d3c7d652a61640de7d0c4b3d6cf5b6f9888454d8fe8a119ce78d37d**  influxdb_1.8.0_amd64.deb

is what I've got from downloaded file, while https://portal.influxdata.com/downloads/ tells me which SHA256: 1315ae2132f4f8cc348cee9fd8799c9fd9e5d535b7a1ad4661e21843e33cc307 ought to be expected.
At first I had thought this might've been a local issue. Therefore I've tried downloading the package again. And encountered the exact same result.

Followup: downloading the influxdb_1.8.0_amd64.deb file on a 18.04 Ubuntu within Virtualbox (a few minutes ago) resulted in the expected SHA:
root@bishop:/usr/src# sha256sum  influxdb_1.8.0_amd64.deb
1315ae2132f4f8cc348cee9fd8799c9fd9e5d535b7a1ad4661e21843e33cc307  influxdb_1.8.0_amd64.deb

Also  dpkg -i influxdb_1.8.0_amd64.deb worked as expected. Running apt on the same box (a new Virtualbox VM) didn't work still, with same output as above.

After multiple inconsistent and inconclusive tests during the past few days, I think I have found something related to this issue, which does not seem to be InfluxDB independent.
I will investigate and post updates about what I find here - albeit not strictly InfluxDB related, it might just be useful for someone else experiencing the same problem.
Hints I'm currently following start from here: https://stackoverflow.com/questions/61027483/cant-install-docker-hash-sum-mismatch-ubuntu-18-04-vagrant-virtualbox

Downgraded Virtualbox and attempted installation again - all works smoothly now with same exact system configuration and versions. It's now clear to me that issue wasn't due to InfluxDB but rather to Virtualbox - there seems to be a known issue about checksums: https://forums.virtualbox.org/viewtopic.php?f=6&t=97887
Sorry for the false positive, I'm leaving this here just in case it might help someone else.


User shortcut and small log fix

If you want to integrate it with the Notif system/hide the ps window (via Invisible.vbs) it's up to you :)

Another approach:
https://github.com/Romanitho/Winget-AutoUpdate/tree/User-run
Need to be integrated with your latests changes :)

https://github.com/Romanitho/Winget-AutoUpdate/discussions/135#discussioncomment-3792216

Oups

? Is it French for "../Oops, did you take offense somehow?/.."
No worry, I only meant your the one with the best knowledge of this and I've reached the end of line when it comes to PS.

Oh no, sorry ^^ I wrote Oops because I reopened your draft

Now done...

Of course, uninstall part 😇

Done, again ;)

👍

You want to put shortcut for users to check the logs? I thought it was mainly for admins :)

Information wants to be free; the more a user can tell or point to when creating a support case, the better!
We have many advanced users that's interested in what's happening.
And, no harm in it at all...

We are not fond of desktop shortcuts users can't delete. They own their personal desktops.
But, as an alternative maybe (even if it's so easy to start writing WAU from the start menu and the Check for... shortcut pops right up)...

I'll add the choice

Now, I'm lost @Romanitho ...
..."This branch has conflicts that must be resolved" - I don't know how to work with that in Github...
Before that, I need to convert Show-Toast to  Start-NotifTask.

probably because I merged few little changes, and your branch is now aligned to mine, I guess

<#
.SYNOPSIS
Handle user interaction from shortcuts and show a Toast

.DESCRIPTION
Act on shortcut run (DEFAULT: Check for updated Apps)

.PARAMETER Logs
Open the Log file from Winget-AutoUpdate installation location

.PARAMETER Help
Open the Web Help page
https://github.com/Romanitho/Winget-AutoUpdate

.EXAMPLE
.\user-run.ps1 -Logs

#>

[CmdletBinding()]
param(
	[Parameter(Mandatory=$False)] [Switch] $Logs = $false,
	[Parameter(Mandatory=$False)] [Switch] $Help = $false
)

#Load functions
. $PSScriptRoot\functions\Get-NotifLocale.ps1
. $PSScriptRoot\functions\Start-NotifTask.ps1

<# MAIN #>

$OnClickAction = "$PSScriptRoot\logs\updates.log"
$Title = "Winget-AutoUpdate (WAU)"
$Balise = "Winget-AutoUpdate (WAU)"

#Get Toast Locale function
Get-NotifLocale

if ($Logs) {
	if ((Test-Path "$PSScriptRoot\logs\updates.log")) {
		Invoke-Item "$PSScriptRoot\logs\updates.log"
	}
	else {
		#Not available yet
		$Message = $ToastLocale.local.outputs.output[5].message
		$MessageType = "warning"
		Start-NotifTask $Title $Message $MessageType $Balise
	}
}
elseif ($Help) {
	Start-Process "https://github.com/Romanitho/Winget-AutoUpdate"
}
else {
	try {
		#Run scheduled task
		Get-ScheduledTask -TaskName "Winget-AutoUpdate" -ErrorAction Stop | Start-ScheduledTask -ErrorAction Stop
		#Starting check - Send notification
		$Message = $ToastLocale.local.outputs.output[6].message
		$MessageType = "info"
		Start-NotifTask $Title $Message $MessageType $Balise $OnClickAction
	}
	catch {
		#Check failed - Just send notification
		$Message = $ToastLocale.local.outputs.output[7].message
		$MessageType = "error"
		Start-NotifTask $Title $Message $MessageType $Balise
	}
}

Not tried yet, but it should looks like something like this :)


Ansible wait_for not working as expected

Howdy,
As discussed on twitter, the wait_for module is just waiting for the TCP socket to start accepting connections which does not ensure that the Java app has finished starting. With a quick search, I found another method that would help mitigate failures on downloading the jenkins CLI.
http://stackoverflow.com/questions/23919744/how-to-restart-jenkins-using-ansible-and-wait-for-it-to-come-back

Above PR was merged, so this issue is fixed. Thanks, @tylerturk !


Arrow follows the cursor

The stripey arrow follows the cursor around wherever it goes, and changes colour on different pages
(I can't share an image because it disappears when you take a screenshot, very weird)

@nogainbar correct me if I'm wrong, but this is part of the design, no?

@rub1e closing as this is not a bug, it's part of the design.

Understood. I've changed the labels - worth keeping this open as feedback, because the arrow has been brought up by several people, in fact everyone I've spoken to


Add spell checker action WordWarden

Hi I was searching for something else in the issues and noticed you guys were considering options for spellcheckers in #1189. So I thought I'd suggest my own action. It basically does pre-processing by converting to HTML and removing code and links, then runs aspell on it. It's possible to run offline by using the script https://github.com/gevhaz/Word-Warden/blob/main/spellcheck.py
My action seems to discover more spelling issues than the one in #1189, for better or for worse (it can be annoying with too many false positives). I tried either adding them to a dictionary or 'correcting' them so that the job passes. In the case of words that are arguably 'code', such as as trigEngine, I fix the issue by adding backticks, since inline code will be removed in the preprocessing.
These things can be very subjective and I'm not attached to any choice between 'fixing' a word or adding it to the dictionary.
If you think that the changes I made to the markdown files are an improvement, consider merging this PR. Otherwise feel free to close it or ask for changes.

Hi :)
Sorry for taking so long to look at your PR, I was busy :sweat_smile:
This seems very usable, especially that there is a cli-tool so one doesn't have to wait for the action to process :+1:
One potential issue is changing the visible text of a link to a heading: it will be used to generate the link for the vim-help directly, so changing the text may break it. Can that, or only the potential for breaking, be avoided? Or is it already avoided? :D
@leiserfg WDYT?

Hey, thanks for checking it!
The link in DOCS.md with the visible text
`lsp-snippets-transformations`

looks like this in the generated docs:
|luasnip-`lsp-snippets-transformations`|

The backticks were added by me, and they explains why it breaks. I also agree that backticks is not the 'right' way to solve this 'spelling error'. Basically there are three other choices:

Add lowercase 'lsp' to the dictionary. The drawback is that you will not discover if someone writes lsp in lowercase from then on.
Uppercase LSP in the link ('LSP-snippets-transformations'). Would this work?
WordWarden also supports custom sed preprocessing as a last resort. You could allow the link to stay the same by doing a s/lsp-snippets-transformations// in such a preprocessing script. It can't be done by adding that full string to the dictionary since aspell doesn't support dashes in dictionary words.

I'll also check for similar broken link cases after hearing what solution you prefer.

Option 2 seems fine to me, let's wait for @L3MON4D3

Thank you for the detailed reply!
I agree, option 2 is fine :)
Especially because the link generated in the helptext is lowercased anyway (eg. Variables-Environment Namespaces -> luasnip-variables-environment-namespaces), so this doesn't even affect it.

Great! I've updated the PR. I also double checked that there are no other similar issues.

Is there a way to exempt links (the same way it happens with inline code)? So other links don't need to be changed (like vsnip.vim).

It's possible to add a pre-processing sed script. So it would be possible to replace the pattern [.*]( with [](, which would have the effect of excluding link texts.
I think the easiest thing would be to just add vsnip and similar to the dictionary though. It's unlikely that you ever misspell something as 'vsnip' specifically in the future, so there is no harm in it. And then you will also continue to benefit from spellchecking in other cases. For example, I changed the link text in the following line:
This can also be done much cleaner, with all the benefits that come with using a loader, by using the [loader for Lua](https://github.com/L3MON4D3/LuaSnip/blob/master/DOC.md#lua)

so that it's "Lua" instead of "lua".

Yeah I'd agree, spellchecking in links ist useful, if they contain a Word that is misspelled it should be corrected.

I've added a fixup commit which removes backticks from repo names. If it looks good, I can squash.

Good choice, that seems more consistent👍
I'm happy, feel free to squash :)

Done

Awesome, thank you very much for the contribution! :)


NickJS is making partial page screenshots instead of full page screenshots

Hi dev team,
It seems the headless chrome remote interface can make full page screenshots, by setting the right resolution in Emulation.setVisibleSize
I wasn't able to find such option in Nickjs, and I am getting the half of the screenshot:

What would you recommend?

Hey @man0l
Sorry for the delay
This was fixed by https://github.com/phantombuster/nickjs/commit/66c7bf2fd9e26c085b4c832e67abf9d4a3601d78, released in v0.3.2. NickJS now always takes full page screenshots.

Thank you, this is great feature! I will update my nickjs to the current version.
I have solved partially the issue with setting the resolution directly to the headless chrome with passing this parameter: --window-size=1280x720. It could be usefull for someone within the nickjs community.
Thank you again and regards,
Manol.


Consider pushing the non-conditional part of a match arm onto a new line, rather than splitting it

         match mode {
-            CompressionMode::DiscardNewline | CompressionMode::CompressWhitespaceNewline => ch == '\n',
-            _ => false
+            CompressionMode::DiscardNewline | CompressionMode::CompressWhitespaceNewline => ch ==
+                                                                                '\n',
+            _ => false,
         }

I feel like
+            CompressionMode::DiscardNewline | CompressionMode::CompressWhitespaceNewline =>
                ch == '\n',

could be a nicer rewrite.

Alternatively this would work, too:
+            CompressionMode::DiscardNewline |
+            CompressionMode::CompressWhitespaceNewline => ch == '\n',

This has been biting me a bit recently too


⚠ Bofrost.be has degraded performance

In 6dbe5ea, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 2755 ms

Resolved: Bofrost.be performance has improved in 21ae18a.


Can NativeBase work without expo?

Well, this is not a bug reporting.  All issue posting specs are not applicable here.
NativeBase itself doesn't depend on expo.  However, to use NativeBase,  all examples are starting with a small clip of loading expo fonts.  I am not sure if it is mandatory.  Could you give an example illustrating how to load font without Expo.Font.loadAsync?   Thank you.

Check Docs

Thats a bad way of handling that question. I had the same one.

@salamancajr Please check the examples here. The master branch has no dependency on Expo.

Also from the very first page in the official docs.
Always a good idea to read the docs 💯

Well, this is not a bug reporting. All issue posting specs are not applicable here.
NativeBase itself doesn't depend on expo. However, to use NativeBase, all examples are starting with a small clip of loading expo fonts. I am not sure if it is mandatory. Could you give an example illustrating how to load font without Expo.Font.loadAsync? Thank you.

Exact same question here, I'm having problems using my App without Expo, partially because I don't know how to load the fonts without Expo.Font.loadAsync. +1

We are using NativeBase without expo and it's working perfectly. To use any custom font you need to tell react-native to link it to your project. Check this tutorial for more information https://medium.com/react-native-training/react-native-custom-fonts-ccc9aacf9e5e

Hi @tux-tn, you are right. This is "working". I've downloaded theionicons.ttf from ionicons.com and linking etc. works just fine. Yet my Icons have changed (without me changing their name) and I can't use the names on ionicons.com to correct that, as there are errors that the referenced Icon does not exist.
I've been at that place before, how do I fix that problem ?

@njoye if you want to include a vector icon i suggest you to take a look at https://github.com/oblador/react-native-vector-icons there is many vector icons bundled including Ionicons and Font Awesome 5


Support for upcoming eventstream API

Maybe you already know about it since Q42 works/worked with Signify, but likely it is not yet wide-known: The Hue bridge API started supporting push events (not yet documented).
People at https://github.com/home-assistant-libs/aiohue included support for it - there are a lot of relevant issues/PRs but they started in https://github.com/home-assistant-libs/aiohue/pull/48.
Is this something that could be added to the Nuget package?

Yes, this library will get support for the push events.
But I am going to wait for the official documentation, so it will take me less time to implement it.

I just released the first version of the new HueApi NuGet package: https://www.nuget.org/packages/HueApi/
This package targets the new clip v2 API and can listen to the EventStream.
See the readme for a usage example: https://github.com/michielpost/Q42.HueApi#eventstream
And check out the included sample console app: https://github.com/michielpost/Q42.HueApi/tree/master/src/HueApi.ConsoleSample


Convert from V9 to H265 if it's not found in the video

Hello, I can't seem to configure the args to make the conversion from V9 to H265...
[presets.Test]
args = [  "-f", "bv*[vcodec~='^(hevc|h265)']+ba/bestvideo+bestaudio", "--recode-video", "mp4", "--postprocessor-args", "-c:v libx265" "-crf 28",]
path = ""
filename = "%(title)s.%(ext)s"
sponsorblock = 0
metadata = false
thumbnail = true

I suspect the error is because of the quote symbols in the args value.
Do you know how to fix this?
Thank you very much for developing this GUI.
Have a nice day.

Hello, I can't seem to configure the args to make the conversion from V9 to H265...
[presets.Test]
args = [  "-f", "bv*[vcodec~='^(hevc|h265)']+ba/bestvideo+bestaudio", "--recode-video", "mp4", "--postprocessor-args", "-c:v libx265" "-crf 28",]
path = ""
filename = "%(title)s.%(ext)s"
sponsorblock = 0
metadata = false
thumbnail = true

I suspect the error is because of the quote symbols in the args value.
Do you know how to fix this?
Thank you very much for developing this GUI. Have a nice day.

Hello,
Why do you want to convert VP9 to H265? Maybe just download AVC stream?

Hello, Why do you want to convert VP9 to H265? Maybe just download AVC stream?
Hello, thanks a lot for replying.
I am afraid downloading in h264 is not an option for certain YouTube videos. They will only download in MKV or MP4 with V9 codec, I think.
The goal is downloading some YouTube videos and put them in a Samsung TV. And the codec V9 does not work on that TV, but h265 does for sure.
Before considering YT-DLP presets, I tried to convert the videos using Handbrake and ffmpeg, but the configs I am using tend to make the size much bigger and that's a no-no...
After posting, I had been checking the original YT-DLP repository, and it seems other people have the same issue? (https://github.com/yt-dlp/yt-dlp/issues/7607)

Hello, Why do you want to convert VP9 to H265? Maybe just download AVC stream?

Hello, thanks a lot for replying. I am afraid downloading in h264 directly is not an option for certain YouTube videos. They will only download in MKV or MP4 with V9 codec, I think. The goal is downloading some YouTube videos and put them in a Samsung TV. And the codec V9 does not work on that TV, but h265 does for sure. Before considering YT-DLP presets, I tried to convert the videos using Handbrake and ffmpeg, but the configs I used made the video file much bigger and that's a no-no...  After posting, I had been checking the original YT-DLP repository, and it seems other people have the same issue? (yt-dlp/yt-dlp#7607)

I think your TV support AVC codec too, so you can specifiy bv[vcodec^=avc]+ba[ext=m4a] format. I will download separately AVC video stream and m4a audio stream.
If you really need HEVC (h265), i think this args will be right for you:
args = [ "-f", "bv[vcodec^=avc]+ba[ext=m4a]", "--exec", "ffmpeg -i {} -c:v libx265 -preset ultrafast {}_HEVC.mp4",]

I think your TV support AVC codec too, so you can specifiy bv[vcodec^=avc]+ba[ext=m4a] format. It will download separately AVC video stream and m4a audio stream and merge them in single mp4. If you really need HEVC (h265), i think this args will be right for you: args = [ "-f", "bv[vcodec^=avc]+ba[ext=m4a]", "--exec", "ffmpeg -i {} -c:v libx265 -preset ultrafast {}_HEVC.mp4",]
Explanation of command: bv[vcodec^=avc]+ba[ext=m4a] - get AVC video and M4A audio as separate files and merge them after download "--exec", "ffmpeg -i {} -c:v libx265 -preset ultrafast {}_HEVC.mp4" - after downloading and merging, execute ffmpeg to encode video using H265 with ultrafast preset (you should adjust it). File with saved in name of video_HEVC.mp4

Aw, thanks so much for writing this for me 🙌 Now it works!
It may be laughable, but after checking the test video files I got thanks to your presets, I think I got it right 1 of the many times I clumsily tried. I was using "-c:v libx265" for sure. But I wasn't quite sure that the codec was ‘pure h264/5’, so I kept trying other settings and then messed with the args xD. Now, with your config, I see that it is the same codec.
Thank you very much, I will use the configs you made and try to download the videos now. Finally, yay.

I was glad to help you. Don't forget to close issue 😉

I think your TV support AVC codec too, so you can specifiy bv[vcodec^=avc]+ba[ext=m4a] format. It will download separately AVC video stream and m4a audio stream and merge them in single mp4. If you really need HEVC (h265), i think this args will be right for you: args = [ "-f", "bv[vcodec^=avc]+ba[ext=m4a]", "--exec", "ffmpeg -i {} -c:v libx265 -preset ultrafast {}_HEVC.mp4",]
Explanation of command: bv[vcodec^=avc]+ba[ext=m4a] - get AVC video and M4A audio as separate files and merge them after download "--exec", "ffmpeg -i {} -c:v libx265 -preset ultrafast {}_HEVC.mp4" - after downloading and merging, execute ffmpeg to encode video using H265 with ultrafast preset (you should adjust it). File with saved in name of video_HEVC.mp4

Aw, thanks so much for writing this for me 🙌 Now it works!
It may be laughable, but after checking the test video files I got thanks to your presets, I think I got it right 1 of the many times I clumsily tried. I was using "-c:v libx265" for sure. But I wasn't quite sure that the codec was ‘pure h264/5’, so I kept trying other settings and then messed with the args xD. Now, with your config, I see that it is the same codec.
Thank you very much, I will use the configs you made and try to download the videos now. Finally, yay.

I was glad to help you! Don't forget to close the issue 😉


Misuse of resolution constraints is not checked

Currently, the following is allowed:
import { Service, Container, HostContainer, SkipSelf() } from '@typed-inject/injector';

const myContainer = Container.ofChild(Symbol());
const childContainer = Container.ofChild(Symbol());

@Service({ container: childContainer }, [
  [HostContainer(), SkipSelf() | SkipSelf()]
])
const LogService {
  constructor (private container: ContainerInstance) {
    // Due to the doubled usage of SkipSelf(),
    // the consumer may expect it to traverse up *twice*.
    // In that case, the result would be the default container.
    // However, this isn't the case, so the following is true:
    assert(container === myContainer);
  }
}

childContainer.get(LogService);

I feel like this should be documented somewhere.

Without changing the constraints API to not use bitmasks, this isn't fixable.


[FEATURE] Prototype Newsletter Creation Tools

This is a prototype implementation for newsletter creation tools. It doesn't support Note objects yet but relies on the records file idea that I have been developing for quick analyses and report building when you don't need full parsing of your notes.

Codecov Report
Patch coverage has no change and project coverage change: -0.04 :warning:

Comparison is base (5f7803d) 0.62% compared to head (7615097) 0.59%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff            @@
##             dev     #14      +/-   ##
========================================
- Coverage   0.62%   0.59%   -0.04%
========================================
  Files          3       4       +1
  Lines        159     169      +10
========================================
  Hits           1       1
- Misses       158     168      +10

Impacted Files
Coverage Δ

src/NoteMate.jl
5.26% <ø> (ø)

src/newsletter/utils.jl
0.00% <0.00%> (ø)

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


Fixed Header with Column Filter Popup

The filter popup shows within the "scrollable" area of the header only.  It works fine if using a "non-scrollable" header.

screenshot?


[beta14] ion-side-menus, cannot ng-include a template within ion-nav-bar

When you have several views that have the same button (here the button that open the sidemenu) you do not want to repeat the same button over and over in views so you create a directive or use ng-include to insert the button you need.
Unfortunately the following code do not work anymore:
<ion-nav-bar class="bar-positive">
            <ion-nav-back-button></ion-nav-back-button>

 </ion-nav-bar>

Work in beta 13:
http://codepen.io/shprink/pen/Byormd
Does not in beta 14:
http://codepen.io/shprink/pen/GgpxOr

Any update on this? I'm hitting the same problem right now.

+1

With Beta14, the nav-bar was completely restructured and now is a bit more complex than it was before. You should use ion-nav-buttons instead.
ion-view
  ion-nav-buttons[side=left]
    span[ng-include=buttons.html']

For your particular example, you don't need to include a button in every view. You just include in the ion-nav-bar and it will work fine.
http://codepen.io/mhartington/pen/bdbGWg


Added userscript

[x] I followed the contributing guidelines: https://github.com/github/explore/blob/master/CONTRIBUTING.md

I am:

[ ] Suggesting edits to an existing Topic page
[x] Curating a new Topic page

EDITING AN EXISTING TOPIC PAGE*
I'm suggesting these edits to an existing topic:

[ ] Image (and my file is *.png, square, dimensions 288x288)
[ ] Content (and my changes are in index.md)

Please explain why these changes are necessary:
CURATING A NEW TOPIC PAGE

[x] I've formatted my changes as a new folder directory, named for the topic as it appears in the URL on GitHub (e.g. https://github.com/topics/[NAME])
[ ] My folder contains a *.png image (if applicable) and index.md
[x] All required fields in my index.md conform to the Style Guide and API docs: https://github.com/github/explore/tree/master/docs

Please explain why you think this Topic page should be curated:
It's a platform. A lot of repos contain userscripts.

@KOLANICH Thanks for the topic! Can you fix up the failing tests: https://travis-ci.org/github/explore/builds/300436972?utm_source=github_status&utm_medium=notification

Thanks again for the PR, @KOLANICH! You rock!


Question: does EF core store use caching?

Hi!
I've started using the project and doing some experiments under the load, and the access time for the current keys to generate the token caught my attention and I've started digging. So I noticed that here https://github.com/NetDevPack/Security.Jwt/blob/5200210266c4563fa3ce674294d7a2767eb76618/src/NetDevPack.Security.Jwt.Store.EntityFrameworkCore/DatabaseJsonWebKeyStore.cs#L64 it does call the database, despite the cache hit. Is this something expected? I'd  think that it just has to return credentials found in the memory cache at this point. To compare - I've checked with file system store implementation - and it works as I would expect, returning credentials found in the memory cache.
Please advise.
Thanks for the great library!

I'm willing to put a PR up, if necessary :)

Definetely, this code doesnt make sense, it should return from cache instead take it again from database.
A PR will be welcome!

Great!
I've got weird issue with the change I'm making - the file I'm changing is in UTF-16LE encoding, and it gets recognized as binary by GitHub. I tried to do changes directly in GitHub, but with the same results. I'll try to work around this.

Like in here https://github.com/kirill-gerasimenko-da/Security.Jwt/commit/bd8c167a5c763f1f0fed1ab28c12020cadcd405c?diff=split#diff-02a402020f707191067d8e3ea8f99d6b1128292d2975d300001beeb37134ae49 - file is shown as binary, but if you open it up - it works and has the changes, weird.

https://github.com/NetDevPack/Security.Jwt/pull/41


[BUG] AASX cannot be viewed in AASXPackageExplorer after downloading with AAS-Web-UI

Describe the bug
When downloading an AASX from the basyx docker aas-environment-v3 using the aas-web-ui it cannot be viewed in the AasxPackageExplorer. The issue seems to be the addition of a valueId tag, that creates the error.
After I manually deleted the valueId tag, the shell can be viewed in the AasxPackageExplorer without a problem.
This is the error in the AasxPackageExplorer logs:
Error: while receiving file drop to window: PackageCentral: while performing load from Z:\Users\juliusblezinger\Downloads\Murrelektronik_556613_AAS.aasx at \PackageCentral.cs:line 83 gave: One or more errors occurred. (While opening aasx C:\users\juliusblezinger\Temp\tmpf406.aasx from source local file: Z:\Users\juliusblezinger\Downloads\Murrelektronik_556613_AAS.aasx buffered to: C:\users\juliusblezinger\Temp\tmpf406.aasx at \AdminShellPackageEnv.cs:line 491 gave: While reading the AASX C:\users\juliusblezinger\Temp\tmpf406.aasx at \AdminShellPackageEnv.cs:line 481 gave: While reading spec from the AASX C:\users\juliusblezinger\Temp\tmpf406.aasx at \xmlization.cs:line 20625 gave: The required property Keys has not been given in the XML representation of an instance of class Reference at: submodels/*[1]/submodelElements/*[7]/valueId) PackageCentral: while performing load from Z:\Users\juliusblezinger\Downloads\Murrelektronik_556613_AAS.aasx at \PackageCentral.cs:line 83 gave: One or more errors occurred. (While opening aasx C:\users\juliusblezinger\Temp\tmpf406.aasx from source local file: Z:\Users\juliusblezinger\Downloads\Murrelektronik_556613_AAS.aasx buffered to: C:\users\juliusblezinger\Temp\tmpf406.aasx at \AdminShellPackageEnv.cs:line 491 gave: While reading the AASX C:\users\juliusblezinger\Temp\tmpf406.aasx at \AdminShellPackageEnv.cs:line 481 gave: While reading spec from the AASX C:\users\juliusblezinger\Temp\tmpf406.aasx at \xmlization.cs:line 20625 gave: The required property Keys has not been given in the XML representation of an instance of class Reference at: submodels/*[1]/submodelElements/*[7]/valueId)
InnerException: One or more errors occurred. (While opening aasx C:\users\juliusblezinger\Temp\tmpf406.aasx from source local file: Z:\Users\juliusblezinger\Downloads\Murrelektronik_556613_AAS.aasx buffered to: C:\users\juliusblezinger\Temp\tmpf406.aasx at \AdminShellPackageEnv.cs:line 491 gave: While reading the AASX C:\users\juliusblezinger\Temp\tmpf406.aasx at \AdminShellPackageEnv.cs:line 481 gave: While reading spec from the AASX C:\users\juliusblezinger\Temp\tmpf406.aasx at \xmlization.cs:line 20625 gave: The required property Keys has not been given in the XML representation of an instance of class Reference at: submodels/*[1]/submodelElements/*[7]/valueId)
InnerException: While opening aasx C:\users\juliusblezinger\Temp\tmpf406.aasx from source local file: Z:\Users\juliusblezinger\Downloads\Murrelektronik_556613_AAS.aasx buffered to: C:\users\juliusblezinger\Temp\tmpf406.aasx at \AdminShellPackageEnv.cs:line 491 gave: While reading the AASX C:\users\juliusblezinger\Temp\tmpf406.aasx at \AdminShellPackageEnv.cs:line 481 gave: While reading spec from the AASX C:\users\juliusblezinger\Temp\tmpf406.aasx at \xmlization.cs:line 20625 gave: The required property Keys has not been given in the XML representation of an instance of class Reference at: submodels/*[1]/submodelElements/*[7]/valueId at    at AasxPackageLogic.PackageCentral.PackageCentralItem.Load(PackageCentral packageCentral, String location, String fullItemLocation, Boolean overrideLoadResident, PackageContainerOptionsBase containerOptions, PackCntRuntimeOptions runtimeOptions) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxPackageLogic\PackageCentral\PackageCentral.cs:line 102
   at AasxPackageExplorer.MainWindow.UiLoadPackageWithNew(PackageCentralItem packItem, AdminShellPackageEnv takeOverEnv, String loadLocalFilename, String info, Boolean onlyAuxiliary, Boolean doNotNavigateAfterLoaded, PackageContainerBase takeOverContainer, String storeFnToLRU, Boolean indexItems) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxPackageExplorer\MainWindow.xaml.cs:line 376
   at AasxPackageExplorer.MainWindow.Window_Drop(Object sender, DragEventArgs e) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxPackageExplorer\MainWindow.xaml.cs:line 3364.Inner message: One or more errors occurred. (While opening aasx C:\users\juliusblezinger\Temp\tmpf406.aasx from source local file: Z:\Users\juliusblezinger\Downloads\Murrelektronik_556613_AAS.aasx buffered to: C:\users\juliusblezinger\Temp\tmpf406.aasx at \AdminShellPackageEnv.cs:line 491 gave: While reading the AASX C:\users\juliusblezinger\Temp\tmpf406.aasx at \AdminShellPackageEnv.cs:line 481 gave: While reading spec from the AASX C:\users\juliusblezinger\Temp\tmpf406.aasx at \xmlization.cs:line 20625 gave: The required property Keys has not been given in the XML representation of an instance of class Reference at: submodels/*[1]/submodelElements/*[7]/valueId)
Inner message: While opening aasx C:\users\juliusblezinger\Temp\tmpf406.aasx from source local file: Z:\Users\juliusblezinger\Downloads\Murrelektronik_556613_AAS.aasx buffered to: C:\users\juliusblezinger\Temp\tmpf406.aasx at \AdminShellPackageEnv.cs:line 491 gave: While reading the AASX C:\users\juliusblezinger\Temp\tmpf406.aasx at \AdminShellPackageEnv.cs:line 481 gave: While reading spec from the AASX C:\users\juliusblezinger\Temp\tmpf406.aasx at \xmlization.cs:line 20625 gave: The required property Keys has not been given in the XML representation of an instance of class Reference at: submodels/*[1]/submodelElements/*[7]/valueId

To Reproduce

Upload an AASX via /upload endpoint
Add discovery entry via POST request to /lookup/shells endpoint
go to web ui on port 3000
Click on download AASX
Try to open downloaded AASX in AasxPackageExplorer

Expected behavior
Downloaded AASX should be viewable after download without any further modifications
BaSyx (please complete the following information):

BaSyx Version 2.0.0-SNAPSHOT
BaSyx Docker OTC
AAS Version DotAAS V3
AasxPackageExplorer v2024-05-08

Screenshots
If applicable, add screenshots to help explain your problem.
Used Asset Administration files (.aasx/.json/.xml)
Any file
BaSyx configuration
version: "3.7"

services:
  mongodb:
    image: mongo:5.0.10
    volumes:
      - mongodb-data-version-5.0.10:/data/db
    container_name: mongodb-aasreg-smreg-v3
    environment:
      MONGO_INITDB_ROOT_USERNAME: admin
      MONGO_INITDB_ROOT_PASSWORD: admin
      MONGODB_EXTRA_FLAGS: --wiredTigerCacheSizeGB=2
    deploy:
      resources:
        limits:
          memory: 4G
        reservations:
          memory: 2G
    ports:
      - 27017:27017
    healthcheck:
      test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s
    logging:
      driver: "json-file"
      options:
        max-size: "1g"
        max-file: "3"

  aas-registry-service:
    image: eclipsebasyx/aas-registry-log-mongodb:2.0.0-SNAPSHOT
    container_name:  aas-registry-v3
    environment:
      SPRING_DATA_MONGODB_URI: mongodb://admin:admin@mongodb:27017
      BASYX_CORS_ALLOWED_METHODS: GET,POST,PATCH,DELETE,PUT,OPTIONS,HEAD
      BASYX_CORS_ALLOWED_ORIGINS: "*"
    ports:
      - 8050:8080
    depends_on:
      - mongodb
    restart: always

  submodel-registry-service:
    image: eclipsebasyx/submodel-registry-log-mongodb:2.0.0-SNAPSHOT
    container_name:  submodel-registry-v3
    # pull_policy: never
    environment:
      SPRING_DATA_MONGODB_URI: mongodb://admin:admin@mongodb:27017
      BASYX_CORS_ALLOWED_METHODS: GET,POST,PATCH,DELETE,PUT,OPTIONS,HEAD
      BASYX_CORS_ALLOWED_ORIGINS: "*"
    ports:
      - 8051:8080
    depends_on:
      - mongodb
    restart: always

  aas-environment-service:
    image: eclipsebasyx/aas-environment:2.0.0-SNAPSHOT
    volumes:
    - ./application.properties:/application/application.properties
    container_name:  aas-environment-v3
    # pull_policy: never
    ports:
      - 8082:8081
    environment:
      BASYX_CORS_ALLOWED_METHODS: GET,POST,PATCH,DELETE,PUT,OPTIONS,HEAD
      BASYX_CORS_ALLOWED_ORIGINS: "*"
      BASYX_AASREPOSITORY_FEATURE_REGISTRYINTEGRATION: http://aas-registry-service:8080 # <--- to register the AAS in the AAS registry
      BASYX_EXTERNALURL: http://localhost:8082 # <--- to create the connection from the registry to the environment
      BASYX_SUBMODELREPOSITORY_FEATURE_REGISTRYINTEGRATION: http://submodel-registry-service:8080 # <--- to register the submodels in the submodel registry
    depends_on:
      - mongodb
    restart: always

  aas-web-ui:
      image: eclipsebasyx/aas-gui:v2-241006
      container_name: aas-web-ui
      ports:
          - "3000:3000"
      environment:
          AAS_REGISTRY_PATH: "http://localhost:8050"
          SUBMODEL_REGISTRY_PATH: "http://localhost:8051"
          AAS_DISCOVERY_PATH: "http://localhost:8083"
          AAS_REPO_PATH: "http://localhost:8082/shells"
          SUBMODEL_REPO_PATH: "http://localhost:8082/submodels"
          CD_REPO_PATH: "http://localhost:8082/concept-descriptions"
          # DASHBOARD_SERVICE_PATH: "<dashboard_service_path>" (optional; Time Series Data)
          # PRIMARY_COLOR: "<primary_color>" (optional; Corporate Design)
          # LOGO_PATH: "<logo_path_in_container>" (optional; Corporate Design)
          # BASE_PATH: "<base_path>" (optional)
          # INFLUXDB_TOKEN: "<influxdb_token>" (optional; Time Series Data)
          # KEYCLOAK_URL: "<keycloak_url>" (optional; RBAC feature)
          # KEYCLOAK_REALM: "<keycloak_realm>" (optional; RBAC feature)
          # KEYCLOAK_CLIENT_ID: "<keycloak_client_id>" (optional; RBAC feature)
      depends_on:
        - aas-environment-service

  aas-discovery-service:
    image: eclipsebasyx/aas-discovery:2.0.0-SNAPSHOT
    container_name: aas-discovery-service
    volumes:
      - ./application.properties:/application/application.properties
    ports:
      - 8083:8081
    environment:
      BASYX_CORS_ALLOWED_METHODS: GET,POST,PATCH,DELETE,PUT,OPTIONS,HEAD
      BASYX_CORS_ALLOWED_ORIGINS: "*"
    depends_on:
      - mongodb
      - aas-environment-service
      - aas-registry-service
      - submodel-registry-service
    restart: always

volumes:
   mongodb-data-version-5.0.10:
      driver: local

System (please complete the following information):

OS: MacOS Sonoma 14.6.1
CPU architecture: Apple M3 Max
Browser Google Chrome
Version

Additional context
Add any other context about the problem here.

Hi @JBlezi
Thanks for raising this issue.
Could you also please update the AASXPackageExplorer version?

I just added the version of AASXPackageExplorer under Basyx @mdanish98

Hi @JBlezi
Thanks for updating the version.
We are working on this. We will update here as soon as the analysis is completed.

Hi,
The issue is reproducible at our end. We need to analyse this issue further more in order to find the root cause.
Below is our analysis for this issue:
Reproduction Steps:

Upload an AASX via /upload endpoint
Upload Endpoint: http://localhost:8082/upload
Attachment: form-data
Key: file
Value: AASXfile
Add discovery entry via POST request to /lookup/shells endpoint
endpoint: http://localhost:8083/lookup/shells/aHR0cHM6Ly9odHctYmVybGluLmRlL2lkcy9hYXMvZGVtb2Fhc3Yz
POST Reuqest with below body as JSON:
[
{
"name": "DemoSpecificAssetId",
"value": "DemoSpecificAssetIdValue"
}
]
go to web ui on port 3000
Click on download AASX

ExampleV3_.aasx

When loaded in AAS Package Explorer before doing steps 1-4: no error
When loaded in AAS Package Explorer after doing steps 1-4: no error

104125_AAS.aasx

When loaded in AAS Package Explorer before doing steps 1-4: no error
When loaded in AAS Package Explorer after doing steps 1-4: following error

Error: Unhandled exception in AasxPackageExplorer v<IP_ADDRESS>: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (PackageCentral: while performing load from C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx at \PackageCentral.cs:line 83 gave: One or more errors occurred. (While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360)) A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (PackageCentral: while performing load from C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx at \PackageCentral.cs:line 83 gave: One or more errors occurred. (While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360))
InnerException: PackageCentral: while performing load from C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx at \PackageCentral.cs:line 83 gave: One or more errors occurred. (While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360)
InnerException: One or more errors occurred. (While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360)
InnerException: While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360 at .Inner message: PackageCentral: while performing load from C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx at \PackageCentral.cs:line 83 gave: One or more errors occurred. (While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360)
Inner message: One or more errors occurred. (While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360)
Inner message: While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360
Both the AASX files are attached here.
10415.zip
ExampleV3.zip


Move window out of state

Addresses #51

There are other places like Dialog windows that have their own window like the InstallGame module where something similar could be done but that would require a further look and hence why I don't include them in this PR

Thanks for this!
I will have a better look at it tomorrow and merge it then.
(First PR which is not mine, yay! :smile:)

No problem, let me know if anything comes out 😁

I like it! I will try that.
I can imagine, that this simplifies the state and works for the subwindows and stuff as well.
Thank you! :)


Fix linting errors

ASAR fix should be a separate ticket. I know we turned it off for a reason, but I don't know what that reason is.

@IGassmann I'm making you aware of this old ticket in case its relevant to your current efforts, otherwise I will close it.

Those are electron linting errors. I fixed the asar one when I was restructuring the file structure. Still have to check out the others.

I'll use my time on this issue to refactor the main process to follow electron's best practices and get the code closer to the functional paradigm.


Heading Color Changes

Work on making the heading colors a little more pleasant

Can I take this?

sure


NO-ISSUE: Use rhel-9 base image

/retest

/retest

/retest

/unhold

/retest

/retest

/retest

/retest
/approve
This may fix the CI.

/retest

I wonder if there is something wrong in the network config for the jobs or a problem where is running
level=error msg=Error: could not inspect: inspect failed , last error was 'Failed to inspect hardware. Reason: unable to start inspection: Validation of image href http://<IP_ADDRESS>:8084/openshift-2.initramfs failed, reason: HTTPConnectionPool(host='<IP_ADDRESS>', port=8084): Max retries exceeded with url: /openshift-2.initramfs (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f11867cbca0>: Failed to establish a new connection: [Errno 111] ECONNREFUSED'))'

/retest le'ts see how this goes

/retest

It's failing with this error:
/image-customization-server: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /image-customization-server)

i.e. trying to run a binary built under RHEL 9 in a RHEL 8 container.
That seems consistent with the fact this patch only updates the build container.

@zaneb yep, this depends on https://github.com/openshift/release/pull/48106 which is now merged

/retest

/retest

update to rhel-9 has been reverted again by the openshift-bot https://github.com/openshift/release/commit/1a465e96ceecadf3963aa0093242cdd23f4d291c#diff-c7c34d30abcbb318388e7f2ffc9f100015175065edd34e3253ab4752e3843061

You might need to update ocp-build-data first to prevent that.

@zaneb yes, that was supposed to be changed already, I'm going to open a PR

superseeded by https://github.com/openshift/image-customization-controller/pull/122


ConvPoint implementation with your Library

Dear Matt,
Could you give me some hint about constructing the ConvPoint Architecture with your library?

I am not sure what you mean with ConvPoint. Which paper are you referring to?

https://github.com/aboulch/ConvPoint
Matthias Fey<EMAIL_ADDRESS>于 2020年7月5日周日 下午5:31写道：

I am not sure what you mean with ConvPoint. Which paper are you referring
to?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rusty1s/pytorch_geometric/issues/1401#issuecomment-653902731,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APM2QBENZYISTOMZ6GT65OLR2CMDNANCNFSM4OQZDUHQ
.

This would look like the following, although I am sure there are same ways to get around the for-loop making use of batched matrix multiplication:
class ConvPoint(MessagePassing):
    def __init__(self, ...):
        super(ConvPoint, self).__init__(aggr='mean')
        self.mlp = Sequential(Linear(3, ...), ..., Linear(..., kernel_size))
        self.weight = Parameter(torch.Tensor(kernel_size, in_channels, out_channels)

    def forward(self, x, edge_index, pos, centroid):
        return self.propagate(edge_index, x=x, pos=pos, centroid=centroid)

    def message(self, x_j, pos_j, centroid_i):
        norm = self.mlp(pos_j - centroid_i)
        out = 0
        for k in self.weight.size(0):
            out += x_j @ self.weight[k] * norm[:, k]
        return out

Firstly, thank you for the code suggestion. Since i am not coder, i would be more intereted in the implementation.  i have successfully implemented edgeconv, splineconv in your package. Now, i intend to implemented this ConvPoint,Light-ConvPoint and KPConv as well.  Would it be possbile that these networks being shown as one example in your library soon?

Sure, I think adding it to the library should not be too hard. If you are willing, you can implement a first draft and send it as a PR. That would help me a lot.

@shangguan91 Have a look at : https://github.com/nicolas-chaulet/torch-points3d

i tried to implant his model, however, i have some problem of the forward pass

-forward() missing 1 required positional argument: 'input_pts'

https://github.com/aboulch/ConvPoint/blob/c8c3c7dad53904d6724b87ca5c8651328ccfd371/networks/network_classif.py
. Is there anyway to rewrite his code into your def forward(self, data) format,
def forward(self, data):         pos, batch = data.pos, data.batch         x1 = self.conv1(pos, batch)         x2 = self.conv2(x1, batch)         out = self.lin1(torch.cat([x1, x2], dim=1))         out = global_max_pool(out, batch)         out = self.mlp(out)         return F.log_softmax(out, dim=1)

@shangguan91 Have a look at : https://github.com/nicolas-chaulet/torch-points3d

Thank you


Getgroup fix

New request message for GetGroup method, as the old one required course ID to be set at all times.

Coverage remained the same at 44.906% when pulling be532932df7048e5efddb0165052c07c58bd8f39 on getgroup_fix into 0aead2ba2fd28ed9319d36ca483655672b7d492c on master.

In principle, this looks reasonable. But I didn't see where you now avoid to specify the courseID and userID.

Originally the generic RecordRequest was used in this method. I've tried to replace it with GroupRequest, but the validation method for GroupRequest wants CourseID to be always present, which is unreasonable when we want to get a group with known ID.

I see.


Patch Obit r598

A small patch to fix the a smashing error in Obit with the updated ubuntu in the base docker image and get the contim containers building again.
I'll send this fix to Bill so it can be fixed inside the Obit codebase properly but in the interim this patch will get things working again.
(Don't merge until it passes the tests)

Yep, looks like that's a bug that would cause stack smashing. Well done finding that - they're a pain to find even for experienced C programmers.


⚠ Spryr has degraded performance

In cf78e7c, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 4376 ms

Resolved: Spryr performance has improved in 02c9590 after 7 minutes.


Shift horizon and update it to stay flat with the horizon

The issue seemed to be the Julian date. The equation used for the local mean siderieal time comes from a well known book of astronomical algorithms, and so should be accurate enough to not be the problem. There must be a numerical bug somewhere. By offsetting by 42.27 minutes, the horizon is properly aligned (there is a very, very slight tilt at the arcsecond level). I tried it in a couple locations, and it seems robust. It would be good to hunt down at some point.

Great sleuthing!! Thanks so much for tracking this down, @johnarban.


Saved partially entered replies if text field loses focus

This is fixed now in the 3.2 code base.


Use Hamcrest assertions instead of JUnit in integrations/cdi/common-cdi/reference-counted-context - backport 2.x (#1749)

Part of #1749
I've already signed OCA. It's an automation problem.
Original PR

/oca-checked

/trigger


Fixed: Port annotation does not have extra characters

Codecov Report

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

@@           Coverage Diff           @@
##           master     #168   +/-   ##
=======================================
  Coverage   55.73%   55.73%
=======================================
  Files          30       30
  Lines        3913     3913
=======================================
  Hits         2181     2181
  Misses       1579     1579
  Partials      153      153

Impacted Files
Coverage Δ

monitor/linuxmonitor/cgnetcls/cgnetcls.go
4.61% <ø> (ø)
:white_check_mark:

Continue to review full report at Codecov.

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


add  horizontal bar in bold

Hello,
i'm using this library and it's awesome,
i only have a small problem, i wanna add a bold  horizontal bar  in the Line chart
in my chart.
i have three datasets, and i want to add a horizontal bar not a dataset
this is my chart

for example i need to add my horizontal bar on point 128,
i searched in the docs but i didn't find a way,
so please any help

Something like https://github.com/chartjs/chartjs-plugin-annotation is what you need but it may not work as it's not currently maintained

thank you sir, but i only want to add a trend line   which declare the average in the chart to render the chart more interactive  and readable,
the trend line should be in Bold and can choose his color


[BAT] fix test issue

Coverage remained the same at 54.093% when pulling 12a64514192fde619cfffc3c7ecc5ce90a7ac416 on wy65701436:drone into f6ac970487d143d07a133414fe1e9b662c531bef on vmware:drone.


Ensure max_cycles persists on style for non-batched plots

Fixes a bug where in non-batched mode the max_cycles on styles would be reset causing Palettes to work incorrectly. Going to try adding some tests for this.

Ready to merge.

Looks good. Merging.


Versioning for script-generator

Currently, script-generator:

depends directly on the library and wrapper-generator module i.e. whatever is on the main branch
produces a script that depends on the latest published version, for example @file:DependsOn("it.krzeminski:github-actions-kotlin-dsl:0.12.0")

That was the only viable option while I was working on it, but now this is suboptimal because:

it may use features that are not published yet, so the script doesn't compile
if there is a breaking change, you can't publish library until you have updated script-generator

It would be better to depend instead on implementation("it.krzeminski:github-actions-kotlin-dsl:0.12.0")
I think that this requires the wrapper-generator to be published too
-- Edit
wrapper-generator can be fetched from jitpack as well
see https://github.com/jitpack/gradle-modular

Quick idea: consume what's needed through JitPack. This way the clients could choose a version of the lib they use and use the corresponding script generator. I'd like to avoid publishing anything apart from the library itself to Maven Central. JitPack seems like a good, lightweight alternative.

@jmfayard I found a simpler solution: #168

Use https://pypi.org/project/mkdocs-markdownextradata-plugin/ to keep version in the docs in one place. See the comment in #168

Done in https://github.com/krzema12/github-actions-kotlin-dsl/commit/0d1110084e0dc6df5adbc6565b38b3d186120f95


BoundHub

Checklist

[X] I'm reporting a new site support request
[X] I've verified that I'm running yt-dlp version 2022.05.18 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that none of provided URLs violate any copyrights or contain any DRM to the best of my knowledge
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and am willing to share it if required

Region
Netherlands
Example URLs
Single video: https://www.boundhub.com/videos/169268/sahara-rain-extreme/
Playlist: https://www.boundhub.com/playlists/15864/wrist-cage/
Single private video: https://www.boundhub.com/videos/222627/lovely-isobel-wren-in-bondage-4/
Playlist private: https://www.boundhub.com/playlists/17351/ballgags5/
Description
Backend: KVS Player v6
Would like to download private and public videos and playlists.
Looks like single videos sometimes work with the generic type.
Verbose log
[debug] Command-line config: ['-vU', 'https://www.boundhub.com/playlists/15864/wrist-cage/']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.05.18 [b14d523] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.22000-SP0
[debug] Checking exe version: ffprobe -bsfs
[debug] Checking exe version: ffmpeg -bsfs
[debug] exe versions: ffmpeg 4.3.1-2020-10-01-full_build-www.gyan.dev, ffprobe 4.3.1-2020-10-01-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.14.1, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
Latest version: 2022.05.18, Current version: 2022.05.18
yt-dlp is up to date (2022.05.18)
[debug] [generic] Extracting URL: https://www.boundhub.com/playlists/15864/wrist-cage/
[generic] wrist-cage: Requesting header
WARNING: [generic] Falling back on generic information extractor.
[generic] wrist-cage: Downloading webpage
[generic] wrist-cage: Extracting information
[debug] Looking for video embeds
ERROR: Unsupported URL: https://www.boundhub.com/playlists/15864/wrist-cage/
Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 1395, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1465, in __extract_info
  File "yt_dlp\extractor\common.py", line 642, in extract
  File "yt_dlp\extractor\generic.py", line 4031, in _real_extract
yt_dlp.utils.UnsupportedError: Unsupported URL: https://www.boundhub.com/playlists/15864/wrist-cage/

The example provided uses a dynamic Flowplayer embed generated by javascript. It is too complex for the generic extractor to detect.

Follow in this link now
[](https://paintwandering.com/hutrs3fcau?key=be81961ad7abd736b010f4c5401eac71)

I am offering a bounty here for anyone who can create an extractor for this website, the owner of the website has made it clear that it won't be around for much longer and therefore time is of the essence and I wanted to download all my favorites from the site, https://www.webimagedownloader.com/templates/597-boundhub.com-video-downloader/ this might help in figuring things out. If anyone is interested please tag or dm me in the discord server cheesylasagna._

Also couple things to note - the generic extractor does work but it won't download playlists or private videos since the cookies aren't carried over and it only works if using --impersonate chrome command.


OverflowError: int too large to convert to float

not sure it's a bug, but in one of my the crawler I saw this error.
all settings in the default
  File "/home/crawler/venv/lib/python3.4/site-packages/twisted/internet/defer.py", line 1301, in _inlineCallbacks
    result = g.send(result)
  File "/home/crawler/venv/lib/python3.4/site-packages/scrapy/core/downloader/middleware.py", line 53, in process_response
    spider=spider)
  File "/home/crawler/venv/lib/python3.4/site-packages/rotating_proxies/middlewares.py", line 142, in process_response
    return self._handle_result(request, spider) or response
  File "/home/crawler/venv/lib/python3.4/site-packages/rotating_proxies/middlewares.py", line 150, in _handle_result
    self.proxies.mark_dead(proxy)
  File "/home/crawler/venv/lib/python3.4/site-packages/rotating_proxies/expire.py", line 64, in mark_dead
    state.backoff_time = self.backoff(state.failed_attempts)
  File "/home/crawler/venv/lib/python3.4/site-packages/rotating_proxies/expire.py", line 135, in exp_backoff_full_jitter
    return random.uniform(0, exp_backoff(*args, **kwargs))
  File "/home/crawler/venv/lib/python3.4/site-packages/rotating_proxies/expire.py", line 130, in exp_backoff
    return min(cap, base * 2 ** attempt)
OverflowError: int too large to convert to float

I have same error

It should be fixed in v0.3.1.


Including Material Design Components globally in application

Is there any way to add MD components globally so that we don't have to include it on each components.
I tried adding it to bootstrap, but when I add any of the MD component in my component's template it doesn't render that component, neither it display any error. Seems like its unable to recognize the component:
bootstrap(AccountComponent, [
    ROUTER_PROVIDERS,
    ROUTER_DIRECTIVES,
    HTTP_PROVIDERS,
    MdButton,
    MD_CARD_DIRECTIVES,
    MD_CHECKBOX_DIRECTIVES,
    MD_GRID_LIST_DIRECTIVES,
    MdIcon,
    MD_INPUT_DIRECTIVES,
    MD_LIST_DIRECTIVES,
    MD_PROGRESS_BAR_DIRECTIVES,
    MD_PROGRESS_CIRCLE_DIRECTIVES,
    MD_RADIO_DIRECTIVES,
    MdSidenavLayout, MdSidenav,
    MD_SLIDE_TOGGLE_DIRECTIVES,
    MD_TABS_DIRECTIVES,
    MD_TOOLBAR_DIRECTIVES,
    MdIconRegistry,

    provide(PLATFORM_PIPES, { useValue: [JSONToDate], multi: true }),
    provide(RequestOptions, { useClass: DefaultRequestOptions }),
    provide(Http, {
        useFactory:
        function (backend, defaultOptions) {
            return new Http(backend, defaultOptions);
        },
        deps: [XHRBackend, RequestOptions]
    })
]);

@naveedahmed1 you cannot include components globally because each component containing another components (e.g you custom component contains material2 components) should explicitly declare them in a directives array, that's what Angular2 requires.
@Component({
  selector: 'my-component',
  template: ...
  directives: [MD_CARD_DIRECTIVES, AnotherCustomComponent]
})

You can check Tour of Heroes for more explanation.

Thanks, Got it!


Helpful error message on non roc files

fixes #6418
This allows the compiler to detect two new errors:

files with extensions other than .roc
files with no extension, but also no shebang and roc, like #!/bin/roc

It doesn't change the behavior when a file has a .roc extension and a shebang

Hmm, I just tried running the repl, and it seems to use a file with an empty string as its name. Is it reasonable to let that case slide?

I've changed the empty filename used by the repl in https://github.com/roc-lang/roc/pull/6516.
We can merge this once that one is merged.


[RFC] MISRA-C/C++ Compliant Runtime

For a long time, the development of TVM has been focused on optimizing deep learning inference for almost any processing systems, and it has been used widely in many applications fields. However, when users of TVM were trying to use theirs pretrained & quanitzed model in critical systems (e.g. aircraft control and autonomous driving), the running source code is expected to be extremely reliable and compact. This RFC intends to bring and discuss the possibility to port an essential part of the runtime code base to MISRA-C compliant form, so that the pretrained & quantized model can be potentially used in safety critical systems.
Features Proposed to be MISRA-C/C++ Compliant

load_json and load_params related functions, ndarray class, graph_runtime class
Interface with Zephyr RTOS (e.g. memory allocation, storage device, network related)

apps/bundle_deploy/bundle.cc have concluded the essential source code files:
#include "src/runtime/c_runtime_api.cc"
#include "src/runtime/cpu_device_api.cc"
#include "src/runtime/workspace_pool.cc"
#include "src/runtime/module_util.cc"
#include "src/runtime/module.cc"
#include "src/runtime/registry.cc"
#include "src/runtime/file_util.cc"
#include "src/runtime/threading_backend.cc"
#include "src/runtime/thread_pool.cc"
#include "src/runtime/ndarray.cc"
#include "src/runtime/system_lib_module.cc"
#include "src/runtime/graph/graph_runtime.cc"

Proposed Changes

MISRA-C/C++ compliant code should be available at src/crt directory
Test cases should be created to check consistency between c++ implement and MISRA-C/C++ compliant versions.

Notable Coding Rules in MISRA-C
Control flow
14.1 (req) There shall be no unreachable code.
14.5 (req) The continue statement shall not be used.
14.7 (req) A function shall have a single point of exit at the end of the function.
14.10 (req) All if ... else if constructs shall be terminated with an else clause.

Pointer type conversions
11.1 (req) Conversions shall not be performed between a pointer to a function and any type
other than an integral type.
11.2 (req) Conversions shall not be performed between a pointer to object and any type
other than an integral type, another pointer to object type or a pointer to void.

Functions
16.1 (req) Functions shall not be defined with a variable number of arguments.

Standard libraries
20.4 (req) Dynamic heap memory allocation shall not be used.

Integration Tests

Coverity can be used freely in open source projects to scan potential violation of MISRA rules.

Discussion Topics

Shall we preserve Registry based function construction framework in MISRA-C/C++ compliant runtime?
Which MISRA-C/C++ standard shall we comply with in evaluation of the runtime?
(choices: MISRA-C 2004, MISRA-C++-2008, MISRA-C-2012)

Reference
[1] MISRA-C & MISRA C++
[2] Guidelines for the use of the C++14 language in critical and safety-related systems
[3] MISRA-C related issues in Zephyr RTOS
[4] An Analysis of ISO 26262: Using Machine Learning Safely in Automotive Software

@liangfu this looks quite interesting. Does MISRA compliance affect the compiler or the generated code as well (i.e. how do we certify that the output of e.g. LLVM is correct, doesn't segfault, etc?).
WRT to the minimal runtime I put together that bundle_deploy.cc list quite quickly, I think with a bit of pruning (e.g. if we enforce single threaded use from MISRA, we can get rid of threading_backend/thread_pool, etc). IIRC @nhynes and co were potentially interested in a minimal Rust runtime which might be useful as well here?

minimal Rust runtime which might be useful as well here?

For sure. The Rust runtime has all of the features required for running syslib modules, but it makes use of alloc and some tasteful unsafety, which are disallowed by MISRA. If we really wanted to have an ultra-safe runtime, we could do a bit better there. Rust is probably closer to complete safety than rewriting the C++ runtime, though.
Of course, as @Ravenwater has oft mentioned, adopting Rust for existing projects is something of a nonstarter. Perhaps if we could enumerate which platforms (and users) would want a Safe runtime, we could determine whether C++ is truly necessary or just the first thing that comes to mind.

Does MISRA compliance affect the compiler or the generated code as well?

In my observation, the compliance does affect the compiler and the code generator. However, as a first step towards making TVM available for the critical and safety related systems, I think it's important to consider the runtime design first.

Perhaps if we could enumerate which platforms (and users) would want a Safe runtime

It's difficult to enumerate all the platforms and users who want such runtime. However, it would be a good start to consider how could a developer use TVM to perform the perception task in a fully automated driving vehicle. There are a number of platforms that are already certified by ISO 26262 (e.g. QNX ), and for the open source world, I think it's good to start with Zephyr RTOS.
On the other hand, in order to reduce the effort in rewriting another minimal runtime, I think we should try to eliminate the usage of malloc, or at least conclude required memory allocation to input, intermediate and output buffers only.

Memory allocation is fine, as long as we have a pre-allocated heap that provide a sufficient amount of meory

A software implemented with malloc would only reach functional safety level of QM. It would be far from to be graded as ASIL-D. See ISO 26262 Table 8 Topic 2 in Meeting ISO 26262 Guidelines with the Synopsys Software Integrity Portfolio

It's definitely possible to fixup the TVM runtime so that the buffers are included as part of the static library and to inline the pointers at compile time. If the graph is also constructed at compile time (something I've been wanting to do in the rust runtime anyway) then there's not much outside of (Workspace|Thread)Pool that needs allocation.

Yes, what I mean is to pre-calculate the space necessary and mimic device-alloc with the fix size heap

mimic device-alloc with the fix size heap

From what I can tell, writing a user malloc is against the spirit of MISRA. Part of the benefit is knowing exactly what will happen in the memory manager, but I'm not sure whether it's reasonable to ask people to bring their own libc. We actually don't need dynamic memory management at all, though.

I don't mean to bring our own libc, but just to implement the DeviceAPI::Alloc with a fixed pre-allocated heap.

Ah, that makes total sense: a non-trivial implementation of DeviceAPI. Gee, what a nice abstraction! I still kind of want the static graph, though :)

If I understand correctly, using a fixed pre-allocated heap would lead us to convert a fragment of the storage pool (which is a fixed-sized static memory) into the specific data type for computation. This violates another rule that restrict (or avoid) using data type conversion. In this case, I think building static graph is preferred.

@liangfu Good to know you are using Zephyr RTOS for the development of this RFC. Can you share more details about your effort to integrate TVM with Zephyr? I'm also interested in it.

@JammyZhou The runtime part is actually OS independent. I refer to Zephyr RTOS as an example of OS that provides MISRA-C compliance. As Zephyr RTOS is designed to be architecture independent, I worked on building the runtime with Zephyr RTOS on top of qemu_x86, so that the complete system would be considered to be MISRA-C compliant, and it can be easily ported to other platforms with high reliability.

@liangfu Thanks for your reply. I would assume some implementation is required in the runtime to call APIs provided by Zephyr (e.g, memory allocation, etc). Is there some base I can use as a start? I have several Arm boards with Zephyr support on hand, so I can try the TVM support on these real hardware.

#3934


Support spark translate function

@mbasmanova, I am proposing this patch for spark translate function. Could you help review it? Thanks!

@PHILO-HE Hi, which company are you from and which project are you working on? Please, review contributing guidelines and update the PR as necessary. For example, I see that documentation for the new function is missing.

@PHILO-HE Hi, which company are you from and which project are you working on? Please, review contributing guidelines and update the PR as necessary. For example, I see that documentation for the new function is missing.

Hi @mbasmanova, I'm from Intel Gluten team. Just updated doc for this new function. Thanks!

@mbasmanova, could you please review this patch again? Thanks! A CI failure looks not relevant to this PR.

CC @kgpai @assignUser Folks, is the CI failure here expected?

@mbasmanova, please review again. Thanks!

@mbasmanova I suppose any CI failure was transient , if not please post a link so we can investigate more.

@mbasmanova, could you please further review this PR? Thanks so much!

@PHILO-HE There are CI failures. Would you rebase to see if they clear? CC: @xiaoxmeng
Also, please, squash comments. There are 35 commits now. GitHub gets slow when there are large number of commits.

@mbasmanova, I have squashed the commits and rebased the code. All checks have passed now. If you have any further comment, please let me know. Thanks!


QUESTION: Does HMR for Server Actually Reload HTML Without Page Refresh

I've been playing around with Razzle and how the Server HMR works.
I generated a Razzle Project and run it

npx create-razzle-app my-app
cd my-app && yarn start

If I now edit the src/Home.js I see hot reloading working in the browser and I see the server.js being re-required by the index.js. But if I open my dev tools "view page source" my changes are not actually in the HTML. Is this expected behavior. If I reload it triggers the route compilation so I do see my HTML changes.
🔁  HMR Reloading `./server`...
[HMR] Updated modules:
[HMR]  - ./src/Home.js
[HMR]  - ./src/App.js
[HMR]  - ./src/server.js
[HMR] Update applied.

I've noticed in NextJS that the hot reloading of the server code actually will show up in the HTML without reloading the server.

As I recall NextJS "hot reloading" is actually just an autoreload, which would indeed reflect in the initial HTML show in "view source".

good question or bug report, I have the same problem with after.js app too.
I will get back to this issue soon.

https://github.com/jaredpalmer/razzle/issues/992#issuecomment-501119226

#925 was linked to here and closed... not sure they are the same... so I commented there.
With my dirty hack to fix the development process.
https://github.com/jaredpalmer/razzle/issues/925#issuecomment-642313711

Fixed in dev

Fixed in dev

Just upgraded to razzle 3.3.0, and I see the same behaviour.
HTML reloads in browser, but I see the old content.
Then I edit code again - html reloads - I see the first changes, do not see the latest changes.
In other words, the browser shows "one edit ago" app version.
Is it expected in 3.3.0?
If Yes - when it is expected to release? And how can I switch to dev version.
npx razzle -v
razzle, 3.3.0

I should be more specific. Fixed in 4.0.0-finch :)

https://github.com/jaredpalmer/razzle/issues/1377


[BUG][Peek]CPU usage surges abnormally

Microsoft PowerToys version
0.74.1
Installation method
GitHub
Running as admin
Yes
Area(s) with issue?
Peek
Steps to reproduce
Access the Windows 10 virtual machine created in esxi through remote desktop, run powertoys and enable the peek function. When mstsc is minimized, the peekui process causes high CPU usage and a significant increase in server fan speed. When restoring from the minimized state, peekui abnormal CPU usage disappears.

✔ Expected Behavior
Peekui's CPU usage does not spike abnormally when mstsc is minimized
❌ Actual Behavior
Peekui's CPU usage spikes abnormally when mstsc is minimized
Other Software
No response

May be related to https://github.com/microsoft/PowerToys/issues/27294
Does the CPU spikes happen even after have used Peek at least once to preview a file?
/needinfo

After testing, after using the peek function once, this phenomenon no longer occurs. But I noticed that once the peek setting interface of powertoys is opened and mstsc is minimized, the CPU usage still spikes abnormally. The protagonist this time is Settings

May be related to #27294 Does the CPU spikes happen even after have used Peek at least once to preview a file? /needinfo

Not able to repro this, going to close. Let us know if you see this again!


Botorch settings for non-substance cases

Changes the priors to botorch defaults for non-substance settings
Replaces the MLL optimizer
Sets UCB beta to 0.1

Hi @AVHopp, @Scienfitz, I've prepared the necessary changes, which serve as a hotfix for the issues noticed yesterday. Still, the matter requires a proper investigation when there is enough time for it. I still need to check if the backtesting example works as expected, but I've already created the PR so that you can have a look and perhaps even double-check yourself 👍🏼


Select _avg from relation and also return the parent entity

Problem
At the moment it's not possible to get a single entity from the database with prisma including an average of a relations field.
Suggested solution
Allow _avg on relations, something like this:
let courses = await prisma.course.findMany({
  where: {
    topic: {
      slug: topic.slug,
    },
  },
  select: {
    id: true,
    name: true,
    slug: true,
    reviews: {
      _avg: {
        rating: true,
      },
    },
  },
});

Alternatives
What works right now is getting the courses in one query and make a second query to get the averages. This has to be merged manually afterwards.

we need this too please

please yes we need this, it will be so practical..

Please so many need this.

yes would be better if we could implement this.

Yes this would be so good

any traction or updates on this?

Yes please!! have the exact same setup, a review table with a rating field - having to break into raw sql (which is not so bad) to get average rating.

YES PLEASE JUST DO IT ^^

Any update?

Anything?


Won't Add to Homebridge - yet logs seem fine. (Will add under older version, but won't respond)

Hi, Ive tried and tried with this plugin to add them, with no luck please can you help?.
Ive tried the UDP way and tried putting the IP addresses in (logs still state its broadcasting UDP this way?)
I tried an older version which does add the bulb but doesn't do anything. If I update after it keeps the bulb but no response still.
logs I can see are:
[1/22/2022, 11:01:59 AM] [Wiz] [Socket] Setting up socket on <IP_ADDRESS>:38899
[1/22/2022, 11:01:59 AM] [Wiz] [Discovery] Sending discovery UDP broadcast to <IP_ADDRESS>:38899
And that's it, no more logs. (I can see)
Am I missing something?, Ive read all the issues and seen similar things but no answers or anything that has worked.

To add I've toggled the switch in the settings "Allow local communication" both not worked. The Wiz App works fine.

@JRMaca the only explanation I have is that your Homebridge server is somehow firewall'd off from the your bulbs. Were you able to resolve this?

Thankyou for your comment. Actually you were correct. I had an extra Skynet firewall running on my router. Couldn't figure out yet how to bypass that port. However disabling it did work. So thank you very much.


release: v0.3.0

Description: 概要

Changes: 変更内容

Changes

feat: add feature to select time (closes #42) (#43) @technote-space
chore: remove debug output (fd4ca3f70bab308a8e19481ad39366ecdd9e8052)
chore: tweaks (5503535ac93c9be66494d3429bdbc2ddb58c040a)
chore: ignore known lines (e1d5a1f89c4fe7440f410bf7a9545fb8bbce4c8f)
chore: add tests (2623db4fdfa7463b751c56479717bf845ff1870a)

Expected Impact: 影響範囲

Operating Requirements: 動作要件

Additional context: 補足

Codecov Report

Merging #44 (7ea8a53) into main (3a53131) will increase coverage by 0.42%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #44      +/-   ##
==========================================
+ Coverage   97.47%   97.89%   +0.42%
==========================================
  Files          82       82
  Lines        1227     1237      +10
  Branches      130      132       +2
==========================================
+ Hits         1196     1211      +15
+ Misses          9        5       -4
+ Partials       22       21       -1

Impacted Files
Coverage Δ

src/_pages/dashboard.tsx
96.29% <ø> (-0.04%)
:arrow_down:

src/_pages/guests.tsx
100.00% <ø> (ø)

src/_pages/reservations.tsx
92.00% <ø> (-0.31%)
:arrow_down:

src/_pages/rooms.tsx
100.00% <ø> (ø)

src/pages/index.tsx
100.00% <ø> (ø)

src/utils/api.ts
89.28% <ø> (+8.64%)
:arrow_up:

src/components/reservations/Calendar.tsx
96.42% <100.00%> (+1.83%)
:arrow_up:

src/utils/calc.ts
100.00% <0.00%> (+28.57%)
:arrow_up:

Continue to review full report at Codecov.

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

Codecov Report

Merging #44 (7ea8a53) into main (3a53131) will increase coverage by 0.42%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #44      +/-   ##
==========================================
+ Coverage   97.47%   97.89%   +0.42%
==========================================
  Files          82       82
  Lines        1227     1237      +10
  Branches      130      132       +2
==========================================
+ Hits         1196     1211      +15
+ Misses          9        5       -4
+ Partials       22       21       -1

Impacted Files
Coverage Δ

src/_pages/dashboard.tsx
96.29% <ø> (-0.04%)
:arrow_down:

src/_pages/guests.tsx
100.00% <ø> (ø)

src/_pages/reservations.tsx
92.00% <ø> (-0.31%)
:arrow_down:

src/_pages/rooms.tsx
100.00% <ø> (ø)

src/pages/index.tsx
100.00% <ø> (ø)

src/utils/api.ts
89.28% <ø> (+8.64%)
:arrow_up:

src/components/reservations/Calendar.tsx
96.42% <100.00%> (+1.83%)
:arrow_up:

src/utils/calc.ts
100.00% <0.00%> (+28.57%)
:arrow_up:

Continue to review full report at Codecov.

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


Update package.json repository fields

Problem
Tools such as Renovate can use the repository field to point to changes in new releases; posthog-node's repository field was out of date, causing Renovate to link to the old 1.x repository.
Changes
Update package.json repository fields. See https://docs.npmjs.com/cli/v6/configuring-npm/package-json#repository
Release info Sub-libraries affected
Bump level

[ ] Major
[ ] Minor
[X] Patch

Libraries affected

[X] All of them
[ ] posthog-web
[ ] posthog-node
[ ] posthog-react-native

Changelog notes

Update package.json repository fields

Good catch, thanks @joshkel


Access to jest runtime from setupTestFrameworkScriptFile

I'd like to add some more mocking methods to jest but there doesn't seem to be an easy way to add methods to the jest object.

:+1:


Add docs version tag

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/4171/
Test PASSed.

alluxio-bot, merge this please.


Reimplement filterEscape and restore pre 0.7 convo behavior

I'm not really convinced this is the right behavior for convo, but it's what the web client does now. After updating the convo tests and a conversation with @pcl, I'm reasonably convinced the right behavior is to reject messaged with disallowed html. That, however, is a PM/UX decision that'll need to be made product wide. Until then, this seems to be the "most correct" of the available options.

Yea, it looks fine, but I agree, not the optimal way to do it... although I don't think that rejecting the message is the right way to do it either. I would think it would be to escape anything that isn't allowed. How do other messaging platforms do it?

this is escaping the stuff that isn't allowed, but it still seems od to me that if i type <b><script>console.log(1)</script></b> that part of it would be escaped. Though, that does appear to be github's behavior:

i guess a rejection seems appropriate since we've (currently) taken the stance that users shouldn't enter html directly. therefore, if disallowed html makes it as far as the sdk, it's a bug in the consumer. We should revisit this soon and come up with a better method that both gives control but continues to protect the system.


fMRIPrep on TBI data

Hi,
I used https://fmriprep.org/en/stable/workflows.html#cost-function-masking-during-spatial-normalization approach.
I ran two analysis, one with lesion nii in the anat folder and one without. The fMRIPrep output nowhere points to the lesion file, so I am not able to understand if lesion is taken care of or not. Attaching here the output files. It would be great if you can guide me in this.

With lesion

Without lesion

With lesion

Without lesion

Thanks and regards,
Shilpi

The effect of a lesion mask should be visible in the template normalization. Without the lesion mask, you will typically see significant shrinking of the lesion.
We do not currently plot the lesion ROI, which would be a good addition.

Template normalization for both with and without lesion input in the 'anat' folder
sub-S0001_without_lesion_Roi_compressed.pdf
is appearing similar. Attaching
sub-S001_with_Lesion_nii_compressed.pdf
the entire fMRIPrep output.

Attaching here the entire fMRIPrep output (for both with and without lesion files in the anat folder).
Kindly comment if with lesion approach is giving correct output.
sub-S001_with_Lesion_nii_compressed.pdf
sub-S0001_without_lesion_Roi_compressed.pdf

Kindly check the template normalization in the attached pdfs above.

Yeah, neither of those looks good to me, and it's probably down to the bad mask. I would suggest skull-stripping on your own and passing the skull-stripped brain to fMRIPrep, and then using --skull-strip-t1w skip. I would try antsBrainExtraction.sh.

Hi,
As per your suggestion, I did skull stripping using antsBrainExtraction.sh and then passed skull-stripped brain to fMRIPrep and used --skull-strip-t1w skip
Attached here are the results on 2 subjects. Please comment.
sub-S2_compressed.pdf
sub-S01_compressed.pdf

Hi,
Kindly comment on the above fMRIPrep outputs.
Thanks,
Shilpi

It looks like the tissue segmentation and surface reconstruction around the lesion is bad, as expected. The brain mask looks reasonable. The susceptibility distortion correction does not look good.

Thanks so much.


Teach TGO and RunObserver to work in concert

The TopGraphObserver (TGO) is meant to be more lightweight than the RunObserver.
A new instance is created for each run (it doesn't keep track of runs) as it progresses.
We need a way to recreate a TGO instance from a given InspectableRun, so that it could be used to display historical data.

TODO

[x] Split up top-graph-observer.ts into multiple files
[ ] Teach TGO to recall last run results
[ ] Teach TGO to produce an instance based on a historical run

Conceptually:

The "activity log" becomes the mirror image of the app view activity log. It's primarily for interacting with the board, not debugging.
The editor itself becomes the primary debugging tool.

How the editor becomes the debugger:

When I run the board, the wire data flows over the wires, showing up in the editor.
I can click on every wire and examine the data
When a component is composite (it's a board itself), a tiny activity indicator spins/flows/combabulates inside of the component in the editor, showing me the progress of the board being run.
When I click on that indicator, a new tab opens up, displaying the underlying composite board in a read-only view. This is an "inspect a run" view.
The "inspect a run" view has a slightly different visual treatment, indicating that this is historical, rather than live data (background color? etc.)
Otherwise, it's just like the ordinary editor view. I can click on all the wires and examine the data.
Recursively, if a component within this view is a composite component itself, I can see the activity indicator and click on it to zoom into that component's underlying board.
The effect is that I can zoom in and out of the run across the entire tree of boards and use the wires to see exactly what happened.

Declary victory-ish! 🚢


Formatting Input to ONNX Sklearn converter

Hello :) I'm working on embedding a trained RandomForest model into a simulation so i can see how the results of the model influence behavior. I just found the ONNX Helper and so far so awesome. I was hoping for some help in figuring out how to prepare inputs in the simulation model for ONNX. I'm using the sk_learn converter and it expects output in a format that looks like this: initial_type = [('input', FloatTensorType([None, 4]))]. I have tried passing the input from the model as a simple array [4], HashMap (String, int[4]) and Pair (String, int[4]). The first one (simple array) fails and I get an error stating: Object at index 0 (shape 4) failed to match expected size (input 'X', shape *,4). The last two also fail and I get a NullPointerException. When I trace, it's failing at onnx_wrapper.OnnxHelper.findArrayDims. Any help is appreciated, thank you!
Below is my AnyLogic Attempt
int[] input0 = new int[]{1, 2, 4, 1}; //Map<String, int[]> inputs = new HashMap<>(); //inputs.put("X", input0); Pair<String, int[]> inputs = new Pair("X", input0); traceln(inputs); //output = onnxHelper.predict(inputs); int[] output = onnxHelper.predict(int[].class, input0); traceln(output);
Here's my ONNX model:
initial_type = [('float_input', FloatTensorType([None, 4]))] onx = convert_sklearn(clf, initial_types=initial_type) with open("rf_test.onnx", "wb") as f:     f.write(onx.SerializeToString())

Hi! Your [None,4] input shape (referred to as *,4 in the helper) indicates the first dimension is variable sized. If you're only passing one value, then just wrap it in another array (e.g., new int[][]{{1,2,4,1}}). If you're still running into issues, uploading it here would be helpful, if it's not anything confidential.
Also, if the tensor is a float type, you should use float instead of int (but you can double check what it expects by looking clicking the helper during runtime to see the inspection window).

Thank you so much for responding! I should have thought of wrapping the array! That resolved the shape problem but I'm having data type issues despite aligning all data types. ONNX doesn't support Int32 so i just changed everything to float but now I'm getting errors stating that there are mismatches with the input as double? I've attached my testing model (my actual model is different but the way it works is the same). Thanks again for helping :)
Sales Funnel_Test.zip

Glad to help! And thank you for attaching the test model, it was helpful to see the full context.

there are mismatches with the input as double

If you check the inspection window during runtime, you'll see the input needs to be a double.

I confirmed this information is the same as in Python (i.e., not a bug with the helper) by printing out onx.graph.input and onx.graph.output. So it seems it's an issue with how skl2onnx converts the classifier to an ONNX file.
Though, regarding parsing the output, there is an issue with the helper in that it assumes you requesting a single output means there's only one output in the model (which doesn't work in this case, as there's two outputs). I'll look into adding type detection to the helper 🙂
In short, with the current ONNX file, you need to make two changes to your AL code:

Change the input type to double
Use the single-argument form of predict (returns a map) and get the labels by querying the input name

i.e.,
double[][] input0 = new double[][]{{1,2,4,1}};

// To get labels and probabilities:
//Map<String,Object> outputs = onnxHelper.predict(input0);
//long[] labels = (long[]) outputs.get("output_label");
//List<Map<Long,Double>> probs = (List) output.get("output_probability");

// To just get labels:
long[] labels= (long[])onnxHelper.predict(input0).get("output_label");
traceln(labels[0]);

BTW, ONNX does seem to support int32, as per their spec doc.

Thank you so much Tyler!!! Worked like a charm after applying to my main model. I really appreciate the help and I appreciate ONNX Helper. I'm excited to run experiments now.