only audio and black screen on both emulators for iso and android

Platform
Which player are you experiencing the problem on:

iOS
Android

Environment info
npx react-native info
info Fetching system and libraries information...
System:
OS: macOS 13.4
CPU: (8) arm64 Apple M1
Memory: 72.91 MB / 8.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.4.0
path: /opt/homebrew/bin/node
Yarn:
version: 1.22.19
path: /opt/homebrew/bin/yarn
npm:
version: 9.7.2
path: /opt/homebrew/bin/npm
Watchman:
version: 2<IP_ADDRESS>
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.12.1
path: /Users/ivanvilches/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.4
- iOS 16.4
- macOS 13.3
- tvOS 16.4
- watchOS 9.4
Android SDK:
API Levels:
- "33"
- "34"
Build Tools:
- 30.0.3
- 33.0.0
- 34.0.0
System Images:
- android-34 | Google APIs ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode:
version: 14.3.1/14E300c
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.19
path: /opt/homebrew/opt/openjdk@11/bin/javac
Ruby:
version: 3.2.1
path: /Users/ivanvilches/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.2
wanted: 0.72.2
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
Steps To Reproduce
when i run the project using npx react-native start then i open the emulator for ios and android, in both i can only listen the audio but the video player is on Black
...
Expected behaviour
Watch the video
Reproducible sample code
my code is
`import React, { useRef } from 'react';
import { SafeAreaView, StatusBar, useColorScheme, StyleSheet } from 'react-native';
import Video from 'react-native-video';
import { Colors } from 'react-native/Libraries/NewAppScreen';
interface BufferInfo {
isBuffering: boolean;
}
interface VideoError {
error: {
code: number;
domain: string;
};
}
const App = () => {
const isDarkMode = useColorScheme() === 'dark';
const player = useRef(null);
const backgroundStyle = {
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
};
const onBuffer = (bufferInfo: BufferInfo) => {
console.log("Buffering:", bufferInfo);
};
const videoError = (error: VideoError) => {
console.log("Video error:", error);
};
return (

<StatusBar
barStyle={isDarkMode ? 'light-content' : 'dark-content'}
backgroundColor={backgroundStyle.backgroundColor}
/>
<Video
source={{uri: "https://live.forstreet.cl/live/livestream.m3u8"}}
ref={player}
onBuffer={onBuffer}
onError={videoError}
style={styles.backgroundVideo}
controls
pictureInPicture={false}
  />
</SafeAreaView>

);
};
const styles = StyleSheet.create({
backgroundVideo: {
width: '100%',
height: 300,
// backgroundColor: 'black', // Agregamos un color de fondo
},
});
export default App;
`
Video sample
https://www.loom.com/share/415f6e6ef3de41a4bd895ec8cdbbac65

Try removing android:hardwareAccelerated="false" from AndroidManifest.xml file

I'm having kind of the same issue here video DRM protected content, but in my case I get a black screen AND no audio but I can retrieve video data, I can see the progress bar move properly.
In the rare where it works is that, is when: I put two Video components on the screen, I refreshed the app (still got black srcreen and no audio), then remove one of the Video Components and refresh again (here the video and audio play correcly). If I refresh again it stops working again.
here are my logs:
npx react-native info
info Fetching system and libraries information...
System:
    OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
    Memory: 4.79 GB / 15.40 GB
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 20.2.0 - /usr/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.8.0 - ~/Bureau/TD_repo/multiplatform_application_vialis/node_modules/.bin/npm
    Watchman: 20230430.125247.0 - /usr/local/bin/watchman
  SDKs:
    Android SDK:
      API Levels: 31, 33, 34
      Build Tools: 30.0.3, 33.0.0, 34.0.0
      System Images: android-34 | Google APIs Intel x86_64 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: AI-213.7172.25.2113.9123335
  Languages:
    Java: 11.0.19 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0
    react-native: 0.71.8 => 0.71.8
  npmGlobalPackages:
    *react-native*: Not Found

My code sample:
import React, { useRef, useState, useEffect } from "react";
import { View, Text, TouchableOpacity, StyleSheet } from "react-native";
import Video, { DRMSettings, DRMType } from "react-native-video";
import VideoPlayer from 'react-native-media-console';

const VideoPlayerView = () => {

    const drmSettings: DRMSettings = {
        type: DRMType.WIDEVINE,
        licenseServer: "https://cwip-shaka-proxy.appspot.com/no_auth",
    };

    return (
        <View>
            <Text style={{ textAlign: 'center' }}>
                Demo Video Player
            </Text>

            {/*  TRY ADDING THIS, refresh, then remove and refresh again
             <View style={{ backgroundColor: "red", height: 300 }}>
                <Text>
                    VideoPlayer Component
                </Text>

                <VideoPlayer
                    style={styles.backgroundVideoPlayer}
                    source={{ uri: "https://storage.googleapis.com/shaka-demo-assets/angel-one-widevine/dash.mpd" }}
                    controls={true}
                    paused={false}
                    onLoad={(onLoadData) => { console.log('VIDEO_PLAYER: ' + onLoadData) }}
                    navigator={null}
                    drm={drmSettings}
                />

            </View>  */}

            <View style={{ backgroundColor: "blue", height: 300 }}>
                <Text>
                    Video Component
                </Text>
                <TouchableOpacity>
                    <Video
                        style={styles.backgroundVideo}
                        source={{ uri: "https://storage.googleapis.com/shaka-demo-assets/angel-one-widevine/dash.mpd" }}
                        controls={true}
                        paused={false}
                        onLoad={function (onLoadData) {
                            console.log('Video Component onLoadData: ', onLoadData);
                        }}
                        drm={drmSettings}
                        onReadyForDisplay={() => {
                            console.log('onReadyForDisplay')
                        }}
                    />
                </TouchableOpacity>
            </View>
        </View >
    );
}

const styles = StyleSheet.create({
    backgroundVideo: {
        height: 250,
        position: 'relative',
        top: 0,
        left: 0,
        bottom: 0,
        right: 0,
    },

    backgroundVideoPlayer: {
        height: 250,
        width: 250,
        backgroundColor: 'red',
        position: 'relative',
        top: 0,
        left: 0,
        bottom: 0,
        right: 0,
    },
});
export default VideoPlayerView;

Just try this url on V6.0.0 version, on androidTV emulator, I don't have any issue.
Are you able to reproduce the issue on V6 ?

I am facing the same issue of black screen for my local video
How should i solve it ?


Show current projects

What are we working on RIGHT NOW? Ideally have a page or post for each, but at a minimum just link to the corresponding GitHub repo for now.

Project summary
Who is working on it (href to member page)
Tags (see #86)

Good start on projects page template. Needs to DRY out but otherwise a functional base to start from: https://github.com/CodeForFoco/codeforfoco.github.io/commit/49882bb2a88bfc8f4d2394ce076a4727127aab24


The version of the JDK affects the tomcat's collection

We monitor a tomcat application.
When we use JDK1.6.0 _45, can be collected data.
But when we use JDK1.6.0 _07, we won't be able to collect the data.At that time we modify parameters : profiler.tomcat.conditional.transform=false  and can be collected data.
We want to know whether pinpoint supports the version of  JDK1.6.0_07?
and What is the meaning of profiler.tomcat.conditional.transform?

Hi @Aaron-liuzl
The profiler.tomcat.conditional.transform was added to stop multiple class file transformers being registered to the same class (ie Tomcat and JBoss plugin both adding class file transformers to StandardHostValve).
The option checks for the application server type and then registers the appropriate transformers from their respective plugins.
The reason why this doesn't work for you (more specifically for jdk 1.6.0_27) is because application server type can only be detected properly from jdk 1.6.0_25 onwards.
What you can do to work around the problem is

do what you've done and set profiler.tomcat.conditional.transform=false and leave profiler.jboss.conditional.transform=true, or
upgrade your java version to 1.6.0_25 or later

Hope I've explained everything clearly, let me know if you've more questions.
Thank!

Why can the pinpoint 1.5.2  monitoring the  application of jdk1.6.0 _07?
What changed in pinpoint1.6.0?

The conditional check for class file transformer registration is what's been added.
In 1.5.2, there was no JBoss plugin, so we didn't need this check, and Tomcat plugin always added it's class file transformers.
But as the JBoss plugin got merged, pinpoint agent would throw an error because both Tomcat plugin, and JBoss plugin would add their own transformers for StandardHostValve class.
It was either this, or manually having to force users enable/disable Tomcat/JBoss (and SpringBoot) plugin depending on the application type they were running.


i cant use groupBy please help me

my error
400 Bad Request: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Fielddata is disabled on [vendor_id] in [report_vendors]. Text fields are not optimised for operations that require per-document field data like aggregations and sorting, so these operations are disabled by default. Please use a keyword field instead. Alternatively, set fielddata=true on [vendor_id] in order to load field data by uninverting the inverted index. Note that this can use significant memory."}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":
my model
`<?php
namespace App\ElasticModels;
use PDPhilip\Elasticsearch\Eloquent\Model as EloquentModel;
class ReportVendor extends EloquentModel
{
public $connection = 'elasticsearch';
protected $mapping = [
'properties' => [
'vendor_name' => ['type' => 'text'],
'vendor_id' => [
'type' => 'text',
'fielddata' => true,
],
'availability_id' => ['type' => 'keyword'],
'manufacturer_name' => ['type' => 'text'],
'availability_created_at' => ['type' => 'date'],
'vendor_rfq_id' => ['type' => 'keyword'],
'rfq_id' => ['type' => 'keyword'],
'vendor_rfq_created_at' => ['type' => 'date'],
'rfq_created_at' => ['type' => 'date'],
],
];
protected $guarded = [];

}`
?>
my query
$result = ReportVendor::where('availability_source', 'Skype / WeChat'); $result = $result->groupBy('vendor_id');

As the error states, Elasticsearch cannot sort on text fields, index vendor_id as a keyword type.
and/or try
ReportVendor::where('availability_source', 'Skype / WeChat')->groupBy('vendor_id.keyword')->get()

Haven't heard back and assuming you fixed your issue, no bug and closing this


Shell runner tasks

Introduce basic shell tasks that consumes {"command": "", "args": ""}
executes, and timeouts after a default of 10 minutes.
Pass "timeoutInSeconds": [timeout in seconds] to override
Signed-off-by: Roy Golan<EMAIL_ADDRESS>FLPATH-162

/hold
(test label)

/hold cancel

The lgtm label should have been applied. Not sure why its still saying its not. Going to go ahead and merge this

@rgolangh This code should be located in prebuilt-tsks module, no?


replacing some baselayers for making thumbnails correctly

This addresses https://github.com/VEuPathDB/web-eda/issues/1142.
TL;DR: I recommend to switch two layers to another ones as temporarily added to the existing tilelayers, named as Terrain_Alt1 and Light_Alt1.
I have dug several parts of functions to figure out the reason why some tilelayers did not work for making thumbnails correctly, however, in a code wise, I could not spot on something special.
After testing more extensively, I figured it out that only two tilelayers such as Terrain and Light did not work out: the latter sometimes worked but was not that consistent. I recalled myself that the two titlelayers were relatively new ones to be added because previous ones seemed to be no longer supported. Those two come from the same provider, and I suspect that they are like an overlay style layer on top of OpenStreetMap layer: though I could not find that info, just my pure guess. Whenever making a thumbnail from one of the two tilelayers, it shows OpenStreetMap layer, not their own layer.
Accordingly, I tried to find alternatives for those two layers, which worked just fine for thumbnails without specific issue. FYI, below are screenshots of alternative tilelayers. If those are acceptable, then I will replace with them.

Terrain alternative (more like topographic map)

Light alternative

Fascinating!

Hi @moontrip - which layers are not working in the thumbnails?  In FF they are all working for me.

Oh, I see it's very patchy in Chrome...

@bobular Thank you for your tests! Honestly, I didn't know it worked fine at Firefox: in most cases I use Chrome.
As shown in your screenshot, that's the reason why I said inconsistent behavior in the mtg.

Is there any way to confirm that the screenshot is taken after all parts of the layer have been loaded and rendered by the browser? It almost looks like it is taken before the layer has finished loading.

@dmfalke I think it might be the reason why Connor did set a timeout (1000 ms) when he implemented the thumbnail capture (screenshotter), allowing some time.

Closing after discussion in EDA dev mtg


Why is initialized not @view ?

https://github.com/OpenZeppelin/cairo-contracts/blob/main/src/openzeppelin/security/initializable.cairo#L13-L21

it should!

https://github.com/OpenZeppelin/cairo-contracts/pull/276


When using in listview. How to correctly recyle GifImageView?

Currenly it shows first frame of recycled GifImageView. Then starts the new gif bytes.

Any pointers?

Answered by #29.


Various veOCEAN features

Closes #nothing
To test this go to https://test-df.oceandao.org/data (on goerli) lock ocean and then allocate. All the feature respect the network selection.

Update top message to [Lock your $OCEAN](https://df.oceandao.org/) to get veOCEAN, earn rewards and curate data.  (still in discussion with marketing)

Added Assets with allocations in home page (if no allocations exist then that section is not displayed ) . This could have been in the profile page, but I intentionally added it on the homepage to increase the importance of df.

Added locked ocean in profile

View own allocation on an asset (if available)

Added new sort options : Sales, Price, Total Allocation

ToDo (@kremalicious  assistance required 😀 ) :

when you have no locked ocean i intentionally added a tooltip to "encourage" the user to go lock 😁 , but it looks .....

For locked ocean should we display also the actual ocean amount not just the conversion?
the sort tab looks kinda off now

Started some refactor on front-page but not sure we want to go there. We might want to just leave out that front-page allocated asset section.
Problem is that if we show assets based on a metric, we also have to show that metric and order the list by it. This is not happening right now. On top of that, all those asset teasers on front-page are quite distracting if we use them for each and every section. Then again, asset teasers include metric numbers for all other sections, but not for the own allocation.
To combat both, started rendering this in a list:

But then still the issue remains to get allocations for each asset rendered. Will push what I have. We can still decide to kick it out, or figure out how to add own allocations for each asset on there

Ok, leave that home component as it is, I'll add the allocation, btw they are percentages

Regarding profile stats, all debatable which currency to show. Tinkered around with hasAllocation/has no allocations states and switched to showing the OCEAN value on there to stay consistent with what df-web shows.
Something is locked:

Nothing is locked:

Another variant is this one when something is locked, combines both but still think a bit unclear what that is exactly:

Percentages are now displayed in the table

Should be ready for testing.

Fixed


Issue with Add-PnPGroupMember that works for O365/M365 groups but not for security groups apparently?[BUG]

Reporting an Issue or Missing Feature
When trying to execute the following, I got no error, but nothing gets added either:
Add-PnPGroupMember -Group "EG-TF-NCAP_P Visitors" -EmailAddress<EMAIL_ADDRESS>It works for O365/M365 groups but not for security groups apparently?
Expected behavior
That it adds the email address for both O365/M365 groups and for Security Groups
Actual behavior
It works for O365/M365 groups but not for security groups apparently?
Steps to reproduce behavior
Add-PnPGroupMember -Group "EG-TF-NCAP_P Visitors" -EmailAddress<EMAIL_ADDRESS>Where<EMAIL_ADDRESS>is a Security Group.
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing Get-Module -Name "PnP.PowerShell" -ListAvailable)
ModuleType Version    Name                                ExportedCommands

Manifest   1.4.19     PnP.PowerShell                      {Add-PnPClientSidePage, Add-PnPClientSidePageSection, Add-PnPClientSideText, Add-PnPClientSideWebPart...}
Manifest   1.4.0      PnP.PowerShell                      {Add-PnPClientSidePage, Add-PnPClientSidePageSection, Add-PnPClientSideText, Add-PnPClientSideWebPart...}
Manifest   1.3.0      PnP.PowerShell                      {Add-PnPClientSidePage, Add-PnPClientSidePageSection, Add-PnPClientSideText, Add-PnPClientSideWebPart...}
Manifest   1.2.0      PnP.PowerShell                      {Add-PnPClientSidePage, Add-PnPClientSidePageSection, Add-PnPClientSideText, Add-PnPClientSideWebPart...}
Which operating system/environment are you running PnP PowerShell on?

[X] Windows
[ ] Linux
[ ] MacOS
[ ] Azure Cloud Shell
[ ] Azure Functions
[ ] Other : please specify

@mvanders - I have no issue on my side with a mail-enabled security group - I'm currently using v1.4.20 (although we've got v1.5 released). Can you please update your module and feedback.

@mvanders, you may also want to try -LoginName as well. It works for like a charm. ( I am on 1.5.0 though)

@YuriySamorodov Tried, but failed...

@mvanders - Still no issue on my end even when I use the -LoginName parameter.
I can only reproduce your issue above if (like the message says) the group doesn't exist.

I'd suggest you check the following:

Make sure the group exists (for example, you can run Get-PnPAzureADGroup | Where-Object {$_.SecurityEnabled -eq "true" -and $_.DisplayName -eq "YOUR-DISPLAY-NAME-HERE"})

Try adding this group to another test site

Try adding another (similar) group to your target site

I updated my PnP.PowerShell and suddenly it all works... :-)

That was TOO quick. Now I tried to remove a M365 group and I get this:

Then if the "add" command is working, we can close this issue and open another one for the Remove-PnPGroupMember.
However, please do the minimum of troubleshooting mentioned above before opening the issue, because I don't see a problem with the Remove-PnPGroupMember.


CMake : add install target

Looks like #64 does the same in a slightly less hardcoded way. I'm going to close this one, and merge the other one, ok?

Perfect! :)


Breakdown RPC / API and REST Docs

This PR intends to break down the RPC Endpoints and REST Server API documents, from a single monolithic file to a bunch of smaller topic-specific articles.
Breakdown structure:
RPC Endpoints

Setup
Access Keys
Accounts / Contracts
Block / Chunk
Gas
Protocol
Network
Transactions
Sandbox

REST Server

Overview
Contracts
Utils
NFTs

Looks good to me. My only concern is the old links which used to point to /api/rpc page, and usually with an anchor to a specific section. It seems those will be lost 😞

Thanks for the feedback @frol ! I will add a redirect on Render so /api/rpc doesn't go to a dead link 404. I'll take a look if something can be done for the anchors.

@thisisjoshford hey! Any ETA when this PR will be merged? I've finished the PR based on this one #811, don't want to mess things up.

@thisisjoshford hey! Any ETA when this PR will be merged? I've finished the PR based on this one #811, don't want to mess things up.

Hi @khorolets,
From my side, this PR is ready to be merged. I'll ping @thisisjoshford so he can review it.

@thisisjoshford hey! Any ETA when this PR will be merged? I've finished the PR based on this one #811, don't want to mess things up.

Approved and ready to merge. Just wanted to make sure we had our redirects ready in Render.


Receipt should be on the left

Didn't update the image in the readme yet.

It's a bit more complex than swapping around two panels, I'm afraid. The QR POJO currently supports validation only as far as version 2.0 of the specification. Simply swapping around two panels will result in losing backward compatibility and in fact validating the QR Bill object will probably fail.
I'm going to reject your merge request, as it's going to require the implementation of versions 2.1, 2.2 and 2.3, which is going to be a more complex matter. It may make sense to abandon backward compatibility, in which case I have to remove any version validation coded, but I have to think about it first.

Thanks for checking this so quickly! The only issue this is trying to fix is the wrong headers on the payment and receipt parts. Without this change, what should be called the payment part, is called receipt and vice versa. I guess it's safe to accept this PR.

Just took another look at your change and you're right, it was an error that flew under my radar - I've applied it. Nonetheless, I've neglected this project long enough for Six to have updated the specification twice and will need to bring it up to date with the latest version. Thanks again for the review.


Lookup Geo location for country PBF

Lookup Geo location for country PBF

Works, but unable to create routedb from pbf on phone. Too resource intensive. Used filepickere to select pre-created routedb file


New Feature: createSchema()

I'd like to add a new createSchema() function that would basically act as a thin wrapper around new SimpleSchema().
The main reason would be to get rid of the confusing foo.$ SimpleSchema syntax for array items. Instead we could specify type and itemType and createSchema() would take care of creating the new foo.$ field with the correct itemType schema.
As @doronrk suggested, this could eventually also help dissociate the database and API fields, for example if you wanted fields that exist in your API but not in your SimpleSchema (currently every field has to be included in your SimpleSchema schema whether it actually lives in the database or not).

This might be basic, but how does the createSchema wrap?
e.g. how would I change my nested schema for 'articles' (articles.$)?
My guess is you remove articles.$ something like this..basically I don't know where I'd have to put createSchema. Overall it makes sense for me though, simplifies it and makes it more intuitive imo
Before:
    articles: {
      type: Array,
      canRead: ['guests'],
      group: articleGroup,
      optional: true,
      blackbox: true,
      canCreate: ['members'],
      canUpdate: ['members'],
    },
    'articles.$': {
      canRead: ['guests'],
      type: articleSchema,
    },

After:
    articles: {
      type: Array,
      canRead: ['guests'],
      group: articleGroup,
      optional: true,
      blackbox: true,
      canCreate: ['members'],
      canUpdate: ['members'],
      createSchema:articleSchema <<<<<<<<<??
    }

Almost, it's:
articles: {
      type: Array,
      canRead: ['guests'],
      group: articleGroup,
      optional: true,
      blackbox: true,
      canCreate: ['members'],
      canUpdate: ['members'],
      itemType:articleSchema <<<<<<<<<
    }

And createSchema is then called transparently in the background (inside createCollection) to transform that into the two separate fields.

Actually it'll be
arrayItem: { type: String }

instead of
itemType: String

This way you can just specify any property that would normally go on the array item in there and it simplifies the logic.

As @doronrk suggested, this could eventually also help dissociate the database and API fields

It's probably worth digging into this further. For example, we could imagine a new format for schemas along these lines:
const schema = {
  database: {
    foo: {...},
    bar: {...}
  },
  api: {
    bar: {...},
    baz: {...},
  }
}

Or alternatively maybe:
const schema = {
    foo: { database: true, api: false, ...},
    bar: { database: true, api: true, ...},
    baz: { database: false, api: true, ...},
}


Add pkg-config for libbsd and bcm_host.

Signed-off-by: Julien Gueytat<EMAIL_ADDRESS>

OK I will test it on Raspbian.

It doesn't work on Raspbian. I would have been surprised if pkg-config knew about bcm_host
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for module 'bcm_host'
--   package 'bcm_host' not found
-- checking for module 'libbsd'
--   found libbsd, version 0.7.0
-- Configuring done
-- Generating done
-- Build files have been written to: /home/andrew/code/vc/dispmanx/raspi2fb/build

The point is to check if there is any relation between https://github.com/raspberrypi/userland and the Raspbian distribution.
I have manage to push the *.pc files there first. There are already some patches providing then in my installation. I'll try to extract them.
I keep you informed.

Sorry for the deletion of the branch. I just updated my master branch on the version I will definitely use. I will push the missing pkgconfig files on the userland repository so that you can use this update.
Best Regards,

It's on its way! :)
https://github.com/raspberrypi/userland/issues/245
So I still need to know exactly against which libraries you need to link. If they are related to bcm_host, egl or glesv2. I'm not really sure about the purpose of each. I asked the question on the userland ticket.


Partitioning Strategy Error

Read query fails when using the default or aggressive strategy.  Works with a restrictive or custom strategy.
CosmsoDB Error:
ClassName": "InternalServerErrorException",
"userAgent": "azsdk-java-cosmos/4.16.0-beta.2 Linux/5.4.0-1046-azure JRE/1.8.0_275",
"statusCode": 500,
"error": "{"Errors":["An unknown error occurred while processing this request. If the issue persists, please contact Azure Support: http://aka.ms/azure-support"]}",
"innerErrorMessage": "["An unknown error occurred while processing this request. If the issue persists, please contact Azure Support: http://aka.ms/azure-support"]",

@kushagraThapar could you assign this to the appropriate person

@mbhaskar  - can you please help take a look at this ?

Close because of inactivity.
Please try the latest SDK and reopen a new issue if the issue still exists.


Update 5.5.0 to 5.6.0 migration scripts

Migration scripts should be updated for the changes introduced with carbon-identity-framework#1616

Latest script contains changes


[doc] Client Features Matrix - To be Updated to 2.4.2

Describe the bug
Client Feature Matrix is not updated to the latest released version 2.4.2
To Reproduce
Steps to reproduce the behavior:

Go to webpage https://pulsar.apache.org/docs/en/client-libraries/#feature-matrix
Click 'Client Features Matrix' link under feature-matrix
It will take you to https://github.com/apache/pulsar/wiki/Client-Features-Matrix
Matrix was last updated for 2.3.0

Expected behavior
Client Feature Matrix of 2.4.2 to be updated.

Thanks @kavi-n for help rise up this up this issue.

Time to update to 2.6.0

just to push it a little since this is imho an important part of doc
2.6.2 was already released. Matrix is still 2.5.0
https://github.com/apache/pulsar/wiki/Client-Features-Matrix

I've updated the page to the latest release https://github.com/apache/pulsar/wiki/Client-Features-Matrix

I think we need to add a workflow to remember update this page before each release.
Thank you all for your reminder.

@Jennifer88huang Thanks for the update! However it's not enough, there's a dozen of other features that clients should support and they should also be reflected on the matrix

@Lanayx Thanks. Would you like to update on the WIKI page?
I was wondering whether it would be better to add a table directly in http://pulsar.apache.org/docs/en/next/client-libraries/#feature-matrix

@Jennifer88huang it really might be better to move it to the site page as it would allow sending PRs there. I can enumerate the features that should be added, but the research should be made to figure out which libraries support which features. As for features I can name: e2e encryption, batchReceive, statistics, receive cancellation, batchIndex acks, chunking support, retryLetterTopic, SNI, producer blockIfQueueFull and I must have missed some other features as well

@Lanayx Would you like to create a table in http://pulsar.apache.org/docs/en/next/client-libraries/#feature-matrix and add the features you mentioned here? Or we can create the table, so everyone can help to update with PRs.
Never mind that you might miss some, you can add more in the following PRs.

@Jennifer88huang can you please create a table, managing markup is not my strength :)

@Lanayx sure, we can do that soon.

Hi all, thank you very much for your support in this issue.
We're summarizing the Client Feature Matrix in a more detailed way, and will share the google sheet soon first, and then you all can help contribute in the sheet. It will be easier to do this first in google sheet.

just another topic to be updated in feature matrix: https://github.com/apache/pulsar/issues/2687

this topic could be added to feature matrix too: https://github.com/apache/pulsar/issues/9483

some more interests in a detailed feature matrix and in addition in harmonizing defaults and features: https://github.com/apache/pulsar/issues/9723

Hi all, thank you for raising the issue, we've summarized the client matrix and Function Features in https://docs.google.com/spreadsheets/d/1iTzn6QnOpTYK8QQHxXRb6a25nvuTNGPPJDdUQHGBUS4/edit#gid=1784579914
I'll upload this sheet on the Client Feature Matrix page soon. If you find anything to be updated, feel free to comment in the google sheet directly.  Thank you very much for your patience and support~

Closed as stale. There can be other issues about the Client Features Matrix, but we don't continue everything about it under the certain "To be Updated to 2.4.2" issue.
Open-ended discussion can be posted at the Discussions forum.


Running Tweaks > Desktop Breaks Start Menu Search

Describe the bug
Running Tweaks > Desktop breaks start menu search for apps installed/uninstalled after the tweak has been run. As an example, I'll describe the scenario as experienced on my clean install of Windows 10, which had the Windows Store version of Spotify installed. If you run the Tweaks > Desktop tweak, uninstall the Windows Store version of Spotify, install the normal Desktop version of Spotify, then attempt to search for Spotify using the start menu search feature, only the Windows Store version will be suggested, but the link will not function correctly (no app starts and there are no options to run as administrator, open file location, etc.). It seems that this action freezes the search functions view of applications installed to before the Tweaks > Desktop tweak is run, which is further supported by the start menu not finding Gimp, which I installed after having run the tweak.
To Reproduce
NOTE I attempted to reproduce this issue both by running the Tweaks > Desktop tweaks, installing ImgBurn, then running a start menu search and by uninstalling Agent Ransack then running a search, but ImgBurn does still show up in the search correctly for whatever reason. AgentRansack, however, exhibits the same behavior as described above. I'm not sure why ImgBurn still shows up in searches correctly. What I do know is that setting the Let apps run in the background option to true resolved my problem and that running Tweaks > Desktop reset the Let apps run in the background toggle to false.
Steps to reproduce the behavior:

Follow instructions here until you get to Tweak
Select the Desktop option under Recommended Selections, then click Run Tweaks
Install a new application
Press the Win key and type the name of the newly installed application
NOTICE that windows cannot find the application, even if links to that application exist within the search indexer's path
NOTICE that re-enabling the Settings > Background Apps > Let apps run in the background setting fixes the issue.

Expected behavior
Using the start menu's search feature should continue to operate as it did before the tweak was run.
Screenshots
Tweak Run > Agent Ransack uninstalled:

Search still reports Agent Ransack results:

This was removed in PR #94


Formal Logging

Implements formal logging for the Uvicorn API server.
Opened in draft to check current implementation is correct before implementing for other endpoints. Currently there is only logging for the Opal POST request endpoint.
Closes  https://github.com/ImperialCollegeLondon/gridlington-datahub/issues/78.

Requested changes have been made. As for the default FastAPI logs not working, I'm not sure what's going on there as they appear when I run the server on my machine. Below is my console when I run the server, is there something else that should be showing?

The fastAPI logs are appearing on the console, but not in the logging file. I've done a little search and found that it is the uvicorn logs that need to be configured: https://github.com/ImperialCollegeLondon/gridlington-datahub/pull/98#issuecomment-1637738008
Also, I've just merged develop into this branch because there was a conflict in the docker-compose now.


Is it expected that v1.8.0-1b should no longer respect theme colors on export?

Describe the bug
Theme colors are respected in v1.7.3 but not all of them are respected in v1.8.0-1b.
Aside: except for that issue, I'm loving this beta release (my first) compared to v1.7.3.
Operating System
Fedora Linux
Screenshots
Instead of screenshots, you can just compare https://b19.org (v1.7.3) with https://b19.org/testjunk (v1.8.0-1b)
IMPORTANT: Error Log

This is not expected but it seems the problem is just that the body classes have not been copied correctly. Can you try doing the export a second time and see if that fixes it? I will try and track down the source of that bug because I beleive I have experienced it too a few times. In my experience re-exporting always fixed it.

(To make re exporting faster you can enable the "Only Export Modified" under the experimental section)

This is not expected but it seems the problem is just that the body classes have not been copied correctly. Can you try doing the export a second time and see if that fixes it? I will try and track down the source of that bug because I beleive I have experienced it too a few times. In my experience re-exporting always fixed it.

Hey Nathan! Thanks for the reply! No, this doesn't seem to make a difference. I've done the export 5 times and it's always the same, i.e.:

none of the header colors come through (H1, H2, etc)
the link color doesn't come through for dark colorscheme (goes back to standard purple) but DOES come through for light

Where are the header colors and link colors defined? Is that from Style Settings? Or are those custom snippets?

Where are the header colors and link colors defined? Is that from Style Settings? Or are those custom snippets?

No custom snippets, no style settings plugin. Just the Everforest theme.

Hmm okay, I'll check it out, I can only assume that the theme is accidentally being loaded before the obsidian themes, so a lot of them get overwritten

Actually that's not true. But I will look into it and get that fixed. Are the headers and links colors the only things that are not correct?

Actually that's not true. But I will look into it and get that fixed. Are the headers and links colors the only things that are not correct?

It seems the font faces aren't being respected either. Example:

I like that the heading collapse buttons are no longer always visible with the new output... I assume that was a bugfix because the beta brings that more in step with what Obsidian itself shows.

Hmm yes I see that, I am also able to reproduce these exact same problems using this theme on my own vault. Yes the collapse buttons were a bugfix, not only with them being visible before but also being weirdly offset lol

This should be fixed in 1.8.0-2b


Set min and max on time inject

I want to send a message at sunrise with the Time Inject Node, but I don't want it to be sent before a certain time. Can I configure this with the Time Inject Node? Thank you.

This is may not so easy to setup. You can achive this with the Timer node which is also in the package.


cli test should use local devenv module

One change from #1421 that wasn't part of #1427. (Both PRs addressed the same bug in devenv container build shell, and the latter was merged.)
While working on #1421, I noticed tests/cli, which runs devenv container build shell as part of its test script, wouldn't fail as it should've when the bug was present. I believe it's because tests/cli/devenv.yaml doesn't override the devenv input like devenv-run-tests or tests/clean/devenv.yaml does.
https://github.com/cachix/devenv/blob/9ff4999b3555936942ee84f6c11fbb103ca52b3e/devenv-run-tests/src/main.rs#L80-L85
https://github.com/cachix/devenv/blob/9ff4999b3555936942ee84f6c11fbb103ca52b3e/tests/clean/devenv.yaml#L1-L3

Thanks for catching this one! I wonder if there's a better design to make sure devenv cli always uses the override in all commands.

I'm going to let @sandydoo chip in next week if we could expose devenv on $PATH with correct devenv input override.


Is it possible to wrap concrete Components with DragDropContext rather than entire application

Is it necessary to wrap the entire application with DragDropContext?
And could two or more wrapped Components safely exist on the same components nesting level?

A shared DragDropContext is needed somewhere close to the top so components share the current drag and drop state. It subscribes to the global events once. If you have two DragDropContext with the same backend, they will conflict.

It's just like a router of a Flux library. Since there is a shared state, it needs to be owned by some component at the top. It doesn't make sense to have two <Router> or two <FluxContainer> components.

Thanks! :+1:


fix command typo

just do it should be just do-it

Summary by CodeRabbit

Documentation

Updated the command usage instructions for consistency and clarity in the Quick Start guide.

lgtm. Had the same issue. This command works.

Thanks! Also fixed in #47


Inconsistency of provided services between classpath and modulepath

The file
jaxb-ri/runtime/impl/src/main/resources/META-INF/services/javax.xml.bind.JAXBContext
says that this jar provides a service javax.xml.bind.JAXBContext with the implementation
com.sun.xml.bind.v2.ContextFactory
This looks inconsistent with the content of the file
jaxb-ri/runtime/impl/src/main/java/module-info.java
which provides javax.xml.bind.JAXBContextFactory with com.sun.xml.bind.v2.JAXBContextFactory
Shouldn't these two locations contain the same content?

not necessarily - there is no requirement on the provider for the factory to implement JAXBContextFactory. But I agree it's better to be consistent here.

The current situation means that some modular library code will just stop working if a user dares to put it on the classpath instead of the module path, which he should be able to do. This can also happen accidentally in test code if you look at the magic that, e.g., Maven does to get tests working in a modular setup.

thanks for catching this! I apparently run wrong set of tests on my end :-/ Should be OK now

Yes, looks ok now. But you might consider adding the old service to the module-info.java too in order to make the transition from non-modular to modular java easier. But that is a political decision whether you want to actually remove the old service here or not.

The longer I think about this the more I come to the conclusion that the declarations in module-info.java and META-INF/services should ALWAYS be identical. If you actually want to remove some deprecated API then you should also do it consistently in both places and don't create any confusion between modular and non-modular behaviour.


BUG: Some merged PRs that should qualify as "reviewed" are not being tagged as such

Describe the bug
spring-core is getting reported as not doing code review, but it appears that recently-merged changes do qualify as reviewed based on the description of that check.  Here’s the API results:
https://api.securityscorecards.dev/projects/github.com/spring-projects/spring-framework
And here is an example of a PR that I think should qualify (merged by someone other than the committer (implicit review)):
https://github.com/spring-projects/spring-framework/pull/28753
Here is the description of the "code review" check:
https://github.com/ossf/scorecard/blob/main/docs/checks.md#code-review
And the relevant excerpt from the description:
"If this fails, the check determines whether the most recent (~30) commits have a Github-approved review or if the merger is different from the committer (implicit review)"
Reproduction steps
Steps to reproduce the behavior:

View the API link above
View the PR linked above

Expected behavior
I had expected the linked PR to count as code review (maybe with a low score -- not as good as branch protection with required review but better than nothing).
Additional context
None

Curious, maybe it just happens to be that way in the recent commits.  But NumPy still shows few commits as reviewed, even though I would think they are reviewed based on "implicit" review?
https://api.securityscorecards.dev/projects/github.com/numpy/numpy

@seberg Code review must be from someone other than the PR opener [1], I see only one changeset in numpy (PR 23066) that scorecard marks unreviewed and it's because of this requirement.
This requirement is known to be a problem for single-maintainer projects, so we are looking to improve it with the release of structured results.

Ah OK, so maybe just a temporary thing since there were uncommonly many such commits recently.  Of course it must be someone else, it just isn't particularly typical on the main branch (it is pretty typical for backports for us).


Documentation for linux users

Hi I noticed there was not enough information on installation and CLI uses for Linux users. It might be as same as given for the windows users but it would be much better if detailed documentation was available for Linux uses. It would very much help in troubleshooting the issues.

Hi @sutha64 Thank you for going through , Sure I would love to create documentation for linux users , Following Readme can you give me some specific problems you have encountered while installing osmsg ? I will create documentation accordingly


Specific border color properties not merging correctly with border-color shorthand properties

Input
.test {
    border-color:rgb(228, 118, 23);
    border-color:rgba(228, 118, 23, 0.9);
    border-right-color:transparent;
}

Expected output
.test{border-color:#e47617 transparent #e47617 #e47617;border-color:rgba(228,118,23,.9) transparent rgba(228,118,23,.9) rgba(228,118,23,.9)}

or
.test{border-color:#e47617;border-color:rgba(228,118,23,.9);border-right-color:transparent;}

Actual output
.test{border-color:#e47617 transparent #e47617 #e47617;border-color:rgba(228,118,23,.9)}

I'm guessing the issue here is that merging border-right-color with the border-color containing the rgba  value will actually result in more characters than keeping them separated, but then the border-right-color is merged with the first border-color which means that browsers with rgba support will not get the transparent bottom border.

Thanks for reporting this @hejmartin - I can clearly reproduce it but need to do some investigation to find out why it happens.


how to position zoom control?

i've tried a number of things .. is it supported?
if not, where should I add this and PR?

In your map options, set zoomControl to false.
And then add your own zoom control to the map in the leafletMapReady callback.
E.g.,
options = {
	layers: L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 10, attribution: '...' }),
	zoom: 5,
	zoomControl: false,
	center: L.latLng(46.879966, -121.726909)
};

mapReady(map: L.Map) {
	map.addControl(L.control.zoom({ position: 'bottomright' }));
}

Gonna close this unless there are any follow-up questions.

Is it still the only way to do this?

I'd say there is no need for setting zoomControl: false in options. Maybe slightly cleaner without the need for importing * as L.
.ts file
import { Map, Control , etc. } from "leaflet";

private map: Map;
private control: Control;

// other code

onMapReady(map: Map) {
        this.control = map.zoomControl;
        map.addControl(this.control.setPosition('topright'));
}

.html file

Have anyone tried that attempt? It's no working for me, but according to docs it should
.ts
export class MapComponent implements OnInit {
[...]
  zoomOptions: Control.ZoomOptions = {
    position: 'bottomleft'
  };
[...]
}

.html

@juserror When I don't set zoomControl: false in options, then second control panel appear on the map


Update include.gradle

Facebook has terminated support for embedded browsers on android SDK lower than version 8.2.
My proposed change sets it to use the latest released SDK to help bypass this issue.

@cla-bot check

@cla-bot check


Add book label class

Create a Book class in a separate .rb file.
Create a Label class with an association to the Item class (in a separate .rb file).

Pull Request Approved! 🎉🎉
Nothing else to say but it's time to merge it!


some question about unfair compare

Hi， xuyang，I reproduce the result of transfusion-l-pillar model, as it did have improvement compared with center point-pillar, I just wonder where the improvement come from? So I did some experiment. I find when I use some training config which is used by transfusion(like use 10 sweep, setting dataset config's valid_mask=false, gtaug fade strategy) to train centerpoint-pillar, centerpoint's performance also boost, and interestingly, centerpoint's nds is higher than transfusion-l-pillar more than 1point, and centerpoint's map is lower than transfusion only 0.1 point. what's more, For all the experiment, I only do once. So it's very interesting that whether transformer is indeed better 。

Hi @AndyYuan96 Thanks for your interest in our work. The fade strategy indeed has a large effect on the final performance by reducing many FP, and I never hide this fact. And similar with your experiment, we have tried TransFusionL_VoxelNet without the fade strategy and find it achieves 61.4 mAP & 68.1 NDS on the nuScenes benchmark, you can check it here. And this performance already surpasses CenterPoint (58.1 mAP & 67.1 NDS) with similar settings.
Personally, Transformer is good because 1). the transformer-based detection head with bipartite matching loss alleviates the need for NMS post-processing, and makes the detection system end-to-end and fast. 2) the transformer architecture is naturally compatible with our soft-association idea where the multi-modal fusion is conducted using an attention mechanism to dynamically learn what and where to fuse. 3). the attention provides the change to leverage long-term dependency and a large receptive field, which could be helpful for detection or other downstream tasks.

I get it。I just want to sharing the result about pillar backbone’s result，I will also try voxel backbone to see the result。


value_and_grad(odeint(...)) doesn't work

I'm attempting to get gradients through odeint. I have the following code,

Repro code
  import jax
  from jax import random
  from jax import value_and_grad
  import jax.numpy as jp
  from jax.experimental.stax import Dense
  from jax.experimental import ode

  def pendulum_dynamics(mass: float, length: float, gravity: float,
                        friction: float):
    def f(state, action):
      assert state.shape == (2, )
      assert action.shape == (1, )

      theta = state[0]
      theta_dot = state[1]
      u = action[0]

      theta_dotdot = (-gravity / length * jp.sin(theta) - friction * theta_dot +
                      u / (mass * length**2))

      return jp.array([theta_dot, theta_dotdot])

    return f

  def policy_integrate(dynamics, cost, policy):
    def ofunc(y, _t, policy_params):
      x = y[1:]
      u = policy(policy_params, x)
      return jp.concatenate((cost(x, y).reshape((1, )), dynamics(x, u)))

    def eval_policy(policy_params, x0, total_time):
      return ode.odeint(ofunc, jp.concatenate((jp.zeros((1, )), x0)),
                        jp.array([total_time]), policy_params)[0, 0]

    return eval_policy

  def main():
    dynamics = pendulum_dynamics(
        mass=0.1,
        length=1.0,
        gravity=9.8,
        friction=0.0,
    )

    def cost(x, u):
      return (x[0] - jp.pi)**2 + 0.1 * (x[1]**2) + 0.001 * (u[0]**2)

    policy_init, policy = Dense(1)
    _, policy_params = policy_init(random.PRNGKey(0), (2, ))

    run = value_and_grad(policy_integrate(dynamics, cost, policy))
    run(policy_params, jp.zeros((2, )), total_time=30.0)

  if __name__ == "__main__":
    print(jax.__version__)
    main()

which produces,
0.1.59
/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/lib/xla_bridge.py:122: UserWarning: No GPU/TPU found, falling back to CPU.
  warnings.warn('No GPU/TPU found, falling back to CPU.')
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/skainswo/dev/research/research/diffphysics/jaxbug.py", line 56, in <module>
    main()
  File "/Users/skainswo/dev/research/research/diffphysics/jaxbug.py", line 52, in main
    run(policy_params, jp.zeros((2, )), total_time=30.0)
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/api.py", line 407, in value_and_grad_f
    ans, vjp_py = vjp(f_partial, *dyn_args)
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/api.py", line 1285, in vjp
    out_primal, out_vjp = ad.vjp(flat_fun, primals_flat)
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/interpreters/ad.py", line 119, in vjp
    out_primals, pvals, jaxpr, consts = linearize(traceable, *primals)
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/interpreters/ad.py", line 110, in linearize
    assert all(aval_primal is None for aval_primal in aval_primals)
AssertionError

I see that there's

my_odeint_grad
my_odeint_jacrev
vjp_odeint
build_odeint

in jax.experimental.ode and it's not clear to me if I should be using one of these instead. If so, I'm not 100% clear on what all the differences are. Am I doing something wrong? What's the correct approach to getting forward/reverse mode gradients out of odeint? (In this particular case I'm looking for vjp.)

Thanks for raising this, Sam!
I think it's an issue with the custom VJP rule machinery, which I aim to fix by merging #2026. That PR also includes a rewrite of odeint.
Any chance you could experiment on that branch and see if the issue persists? If it does, I'll fix it there.

Hey Matt! I'm working with pipenv right now so checking out a branch may take me a bit of time. I'll give it a shot.
I ended up settling on vjp_odeint, but now I'm running into some new issues. In particular, it looks like the VJP doesn't work with only a single t specified:
import jax
from jax import random
import jax.numpy as jp
from jax.experimental.stax import Dense
from jax.experimental import ode

def pendulum_dynamics(mass: float, length: float, gravity: float,
                      friction: float):
  def f(state, action):
    assert state.shape == (2, )
    assert action.shape == (1, )

    theta = state[0]
    theta_dot = state[1]
    u = action[0]

    theta_dotdot = (-gravity / length * jp.sin(theta) - friction * theta_dot +
                    u / (mass * length**2))

    return jp.array([theta_dot, theta_dotdot])

  return f

def policy_integrate_and_grad(dynamics, cost, policy):
  def ofunc(y, _t, policy_params):
    x = y[1:]
    u = policy(policy_params, x)
    return jp.concatenate((jp.expand_dims(cost(x, u), axis=0), dynamics(x, u)))

  def value_and_grad(policy_params, x0, total_time):
    y0 = jp.concatenate((jp.zeros((1, )), x0))

    # !!!!!!!!!!!!!!!!!!!!!!!!!
    t = jp.array([total_time])  # doesn't work
    t = jp.array([0.0, total_time])  # works (I hope?)

    primals, vjp = ode.vjp_odeint(ofunc, y0, t, policy_params)
    g = vjp(
        jp.expand_dims(jp.concatenate((jp.ones((1, )), jp.zeros_like(x0))),
                       axis=0))
    return primals, g

  return value_and_grad

def main():
  dynamics = pendulum_dynamics(
      mass=0.1,
      length=1.0,
      gravity=9.8,
      friction=0.0,
  )

  def cost(x, u):
    assert x.shape == (2, )
    assert u.shape == (1, )
    return (x[0] - jp.pi)**2 + 0.1 * (x[1]**2) + 0.001 * (u[0]**2)

  policy_init, policy = Dense(1)
  _, policy_params = policy_init(random.PRNGKey(0), (2, ))

  run = policy_integrate_and_grad(dynamics, cost, policy)
  print(run(policy_params, jp.zeros((2, )), total_time=1.0))

if __name__ == "__main__":
  print(jax.__version__)
  main()

I'm getting an error:
0.1.59
/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/lib/xla_bridge.py:122: UserWarning: No GPU/TPU found, falling back to CPU.
  warnings.warn('No GPU/TPU found, falling back to CPU.')
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/skainswo/dev/research/research/diffphysics/jaxbug.py", line 65, in <module>
    main()
  File "/Users/skainswo/dev/research/research/diffphysics/jaxbug.py", line 61, in main
    print(run(policy_params, jp.zeros((2, )), total_time=1.0))
  File "/Users/skainswo/dev/research/research/diffphysics/jaxbug.py", line 39, in value_and_grad
    axis=0))
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/experimental/ode.py", line 369, in <lambda>
    vjp_fun = lambda g: vjp_all(g, primals_out, t)
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/api.py", line 146, in f_jitted
    name=flat_fun.__name__)
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/core.py", line 642, in call_bind
    outs = primitive.impl(f, *args, **params)
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/interpreters/xla.py", line 448, in _xla_call_impl
    compiled_fun = _xla_callable(fun, device, backend, name, *map(arg_spec, args))
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/linear_util.py", line 220, in memoized_fun
    ans = call(fun, *args)
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/interpreters/xla.py", line 501, in _xla_callable
    extend_name_stack(wrap_name(name, 'jit')), *xla_args)
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/interpreters/xla.py", line 328, in jaxpr_subcomp
    *in_nodes, backend=backend, **new_params)
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/lax/lax_control_flow.py", line 247, in _while_loop_translation_rule
    extend_name_stack(name_stack, 'body'), *(y + z))
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/interpreters/xla.py", line 338, in jaxpr_subcomp
    name_stack, backend=backend, **new_params)
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/interpreters/xla.py", line 612, in _xla_call_translation_rule
    extend_name_stack(name_stack, wrap_name(name, 'jit')), *args)
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jax/interpreters/xla.py", line 343, in jaxpr_subcomp
    c.GetShape(ans)  # force xla to do shape error checking
  File "/Users/skainswo/.local/share/virtualenvs/research-CJWjSlE2/lib/python3.7/site-packages/jaxlib/xla_client.py", line 735, in GetShape
    return self._builder.GetShape(operand)
RuntimeError: Invalid argument: Slice size at index 0 in gather op is out of range, must be within [0, 1), got 1.

Ok, #2026 and using more than one t works!

Merged #2026, so this should be fixed!


Collector fixes

ansible_distribution Amazon (and others)
get templates from role not global

@soniah: please see my comments on PR #3. Thanks!


Fix ext_proc filter can not send non-utf8 character by gRPC

Currently ext_proc is using protobuf string type to transmit header and trailer value. However, protobuf string requires it to be valid UTF-8 character.  This has caused issues so a temporary workaround is applied to ext_proc filter by converting those non utf-8 character header value into "!" before sending it to the ext_proc server.
However, this approach brings in new issue that the header or trailer it sends to ext_proc server is completely changed.
To solve this problem a new API , like HeaderMpaBytes, is needed that uses the bytes type instead of string. bytes does not need to be UTF-8.

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

@yanavlasov @htuch @tyxia @mattklein123

For reviewers, converting non-utf8 character to "!" when ext_proc filter sending header/trailers to ext_proc server is problematic.  It completely changed the original header or trailer value.
This PR take the advantage that the ext_proc filter is still in Alpha state, to resolve the issue completely.

/assign @tyxia

/assign @adisuissa

Waiting for the API approval.

/assign @markdroth

/assign @envoyproxy/api-shepherds

LGTM. Please merge main.
/wait

/retest

Kind Ping!


General improvements

Lessons learned from novifinancial/opaque-ke#250.
Noteworthy:

Fix Debug implementation
Fix de-serialization when using owned bytes, like with bincode::deserialize_from (see novifinancial/voprf#33)

@daxpedda, ping! Just wanted to check in and see if this is ready to take out of draft mode.

I got so frustrated with the macros that we were using that I started developing https://github.com/ModProg/derive-where.
Almost done, then I'm back to continuing here.

I fixed #41 along the way, removing the base64 dependency too.


swiftc 2.2-dev has AnyObject problems on Linux

With the new build, using swiftc 2.2-dev (the snapshot release) Dataset.swift fails when a [Double], [Float], etc. is returned when the function return type definition is [AnyObject]. The good news is that other than that, HDF5Kit builds on Linux (Ubuntu 15.10)

Fixed with https://github.com/aleph7/HDF5Kit/commit/c55628ef569050a17aa4607dfd2e6bd54f45b944


Handle nonexistent mbtiles files, add MBTilesFileSource tests

Resolves #291
This uses the same check for file existence as local_file_request.cpp.
This adds basic tests for MBTilesFileSource and demonstrates that nonexistent mbtiles files no longer cause an abort.

It looks like the node-ci tests failed due to an unrelated reason (X server error); MBTilesFileSource isn't used for node.  Perhaps someone with appropriate permissions can trigger the node-ci tests to run again?

"Perhaps someone with appropriate permissions can trigger the node-ci tests to run again?"

I've restarted node-ci and there was an option to enable debug logging.  Let's if the restart sorts things out.

https://github.com/maplibre/maplibre-gl-native/actions/runs/2393948381


Reverb

Would it be possible to add a reverb effect to the synth, the same way you could in the previous version of Scale Workshop?

It certainly would be. Adding this as a feature request.
By the way, the previous version is still available if you miss it: https://sevish.com/scaleworkshop1/


[LCOW] Sharing a containers scratch space flow

Currently for LCOW for every container launched in the UVM we create a sandbox.vhdx on the host of whatever size specified (default of 20GB) and mount this in as a SCSI disk to be used as the containers scratch space. I've done some work to make it so that it's possible for other containers to re-use the scratch space of a previously launched container, so they all share the same GB of available disk space. This work touches a lot of layers of our stack so this issue will detail the current proposed flow for this and will hopefully be used to foster some discussion on how/if this could be handled better. The current flow is as follows and assumes that the containers scratch we're sharing is the Kubernetes pod sandbox container:

User either passes in the annotation containerd.io/snapshot/io.microsoft.container.storage.reuse-scratch on the pod config and for any container configurations that will be used for containers launched in this pod, or sets ShareScratch = true in containerd.toml.

RunPodSandbox called.

In the Cri plugin, if the containerd.toml ShareScratch value or the annotation was set, two more annotations are set by the plugin itself that are crucial for this to work. These are containerd.io/snapshot/io.microsoft.container.storage.reuse-scratch.container-type and containerd.io/snapshot/io.microsoft.sandbox.id. The container-type annotation only has two values that it can be set to that the snapshotter will understand. A value of "sandbox" specifies if this is a sandbox container and will be the scratch space that will be re-used for future containers. A value of "container" specifies if this is a container that will be sharing the scratch from a sandbox. I don't like how tied I made the naming here to the kubernetes concepts so please if anyone has some better ideas here do share. The second annotation sandbox.id will be used later on to aid a container sharing this scratch space in finding where the scratch for the sandbox is located.

CreateContainer is called in RunPodSandbox and the Cri plugin will pass in all of the above annotations down to the snapshotter.

During the r/w snapshot creation, if the annotation (referred to as labels in the snapshotter and other places in containerd anywhere a map[string]string of options is passed to any component) isn't set, then the usual LCOW sandbox.vhdx creation ensues and nothing changes. If it is set then the type of container is checked first to determine how to handle things. Let's continue with the scenario where this is the sandbox. In the sandbox case the usual scratch creation or copying occurs except at the end we set a new label with the key being in the format of containerd.io/snapshot/io.microsoft.container.storage.reuse-scratch.sandbox-%s where %s will be filled in with the sandbox containers ID that we've passed in (the snapshot key for the final r/w snapshot will have this ID), and the value being the newly created snapshots path so we can find this later on. Once the label is added we then write the snapshot info (contains the labels) to the metadata file containerd uses for retrieval later on. Sandbox scratch snapshot creation is done at this point. I will skip the sandbox container creation/containerd-shim portions for this as nothing changes.

For any containers launched thereafter in the pod that specify that they'd like to share scratch the flow is a bit different. We create the snapshot directory as usual but we're not going to copy or create a new scratch vhdx for it. We first look at the sandbox ID label to see what container we'd like to share the scratch of. We then walk the list of committed snapshots in the containers namespace we're in (k8s for our case) and look for a snapshot where the key contains a substring match with the sandbox ID (the full key has the namespace and snapshot ID prepended e.g. ks.io/5/ so we need the full string to actually perform the next step). We take note of the key that matched and then use this to Stat the snapshot which will return the information we saved to disk earlier. We use the label we wrote to disk that contains the path to the sandbox containers scratch space to create a symlink to the vhdx. Now we're finally done on the snapshotter side of things.

Misc. other CreateContainer things in containerd --> We call into the shim to start a task (container)

On the shim side of things not too much is different. We read the layer folders as normal but for the last layer where the scratch is situated we evaluate any symlinks now. As the symlink points to a previously mounted scsi disk we can just let the refcounting we already have for scsi disks handle this. When we go to make the final CombineLayers request we run into the problem of we're going to pass in a path that we've already used to setup the overlay filesystem (this path is where the upper and work directories for the overlay are setup) for a previous container. There's a couple options we can take here but I'll detail the road we'd likely want to head down. We can see that the scsi mount object we get back from the AddSCSI call has a ref count higher than 1, which means we've already used this before and will need to pass in a different path in the scratch space to setup. What format we'd like to go with here is TBD but any suggestions are appreciated. We don't have access to the containers ID in MountContainerLayers so maybe container_n where n is the refcount? The other option which I have here, which is not too ideal but works is to just check in opengcs if the work and upper directories exist already in the scratch space and just append a random identifier to the end of the to be made new directories. https://github.com/microsoft/opengcs/pull/383

@ambarve @katiewasnothere @kevpar @anmaxvl

For 3. Given we already know the sandbox for any given container do we really need to write that? We would not ever allow the re-use of a 2nd sandbox id so this step seems unnecessary.

@jterry75 You're referring to why we're setting the annotation containerd.io/snapshot/io.microsoft.sandbox.id right? In the snapshotter it has no concept or state even regarding what container this snapshot is being made for, nonetheless what the sandbox (if there is one) for the container is.
The reason we write it is mainly the key for the final snapshot contains the container ID (it's in the format /<id_of_snapshot>/<container_id>, so k8s.io/1/abcde12345) so we need to write this and pass it in so in the snapshotter we can walk the list of already committed snapshots and find the sandbox containers, otherwise we'd have no idea what to search for.
Thinking about this more, I don't think we need it during the sandbox container snapshot however. We could make the annotation in step #5 be anything really, it doesn't need to have the sandbox ID slapped on it. I forget why I have it this way? Regardless, for the containers that are going to share the space we need to pass it in as that's the only way we'd ever know that we've found the snapshot we're looking for and can read what we wrote to disk to find the actual path to the snapshot.

Yea I understand the need for it at the snapshotter. I'm saying all the CRI API's you already know it. So you can pass this internally you dont need the caller to pass this annotation.

@jterry75 Ahh ok I misunderstood. So those annotations actually are passed internally if containerd.io/snapshot/io.microsoft.container.storage.reuse-scratch is set (I should probably make that clear).

@dcantah could you make sure this is updated and make sure all of the related PRs are referenced?

@katiewasnothere Sure I'll make a note to update, things changed quite a lot from this (it was much simpler to do than this was made out to be)


add support for an initialization file, invokeai.init

Place preferred startup command switches in a file named "invokeai.init". The file can consist of a single line of switches such as "--web --steps=28", a series of switches on each line, or any combination of the two.

Example:
  --web
  --host=<IP_ADDRESS>
  --steps=28
  --grid
  -f 0.6 -C 11.0 -A k_euler_a

The following options, which were previously only available within
the CLI, are now available on the command line as well:
--steps
--strength
--cfg_scale
--width
--height
--fit

This (the init file) really needs to go into the users home directory (recommend: ".invokeai").
This should work on Windows as well, but I will verify.

This (the init file) really needs to go into the users home directory (recommend: ".invokeai"). ~This should work on Windows as well, but I will verify~ The code below indicates "yes"
Also, it occurs to me that Python has a wrapper around platform-specific things like home directories (possibly even things like "Documents" directories) - I'll check on that as well.
Get the current user's home directory, cross-platform:
"regular" Python
from os.path import expanduser
home = expanduser("~")

using Pathlib
from pathlib import Path
home = str(Path.home())

This has now been implemented.


Design UI Detail Product Page

[x] Design UI Detail Product Page

The design is completed in Figma.


add cmd/hexd/hexd.go, and fix README.md

There was no main package/function, so go get would not install any binary

Sorry, but I’m not taking pull requests at this time.


[BUG] Aqara smart plug diagnostics can't be downloaded

Describe the bug
I'm noticing issues with the Aqara smart plug sensors. I've seen multiple (open) other issues which are about power consumption sensors and such. In order to supply more information to these issues (e.g. https://github.com/zigpy/zha-device-handlers/issues/1952) which I also have on my instance.
I want to retrieve my devices' diagnostic data.
HomeAssistant doesn't download the requested diagnostics.
To Reproduce
Steps to reproduce the behavior:

Have an Aqara smart plug (lumi.plug.maeu01 with fw.0029) paired
Go to 'Devices' config and info overview page'
Click on 'three vertical dots menu icon, next to 'Reconfigure' '
Select 'Download diagnostics' from the dropdown
See that nothing happens and no diagnostic file is downloaded
check the logs for errors

Expected behavior
A download diagnostics file with .json or .txt extension containing diagnostic information on the selected device
Screenshots
screenshots of device info:

Device signature
{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4447, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=11264, maximum_outgoing_transfer_size=100, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0051",
      "in_clusters": [
        "0x0000",
        "0x0002",
        "0x0003",
        "0x0004",
        "0x0005",
        "0x0006",
        "0x0009",
        "0x0702",
        "0x0b04",
        "0xfcc0"
      ],
      "out_clusters": [
        "0x000a",
        "0x0019"
      ]
    },
    "21": {
      "profile_id": 260,
      "device_type": "0x0051",
      "in_clusters": [
        "0x000c"
      ],
      "out_clusters": []
    },
    "242": {
      "profile_id": 41440,
      "device_type": "0x0061",
      "in_clusters": [],
      "out_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "LUMI",
  "model": "lumi.plug.maeu01",
  "class": "zhaquirks.xiaomi.aqara.plug_eu.PlugMAEU01"
}```

</details>

<details>
<!-- Diagnostic information can be acquired by clicking on the "Download Diagnostics" button in the device settings view -->
<summary>Diagnostic information</summary>

```yaml
Paste the diagnostic information here.
Don't remove the extra line breaks outside the ``` marks.

Additional logs
Logger: aiohttp.server
Source: components/zha/diagnostics.py:153
First occurred: 09:58:34 (2 occurrences)
Last logged: 10:31:31

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 82, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/diagnostics/__init__.py", line 234, in get
    data = await info[sub_type.value](hass, config_entry, device)
  File "/usr/src/homeassistant/homeassistant/components/zha/diagnostics.py", line 101, in async_get_device_diagnostics
    device_info[CLUSTER_DETAILS] = get_endpoint_cluster_attr_data(zha_device)
  File "/usr/src/homeassistant/homeassistant/components/zha/diagnostics.py", line 123, in get_endpoint_cluster_attr_data
    ATTR_IN_CLUSTERS: {
  File "/usr/src/homeassistant/homeassistant/components/zha/diagnostics.py", line 126, in <dictcomp>
    **get_cluster_attr_data(cluster),
  File "/usr/src/homeassistant/homeassistant/components/zha/diagnostics.py", line 152, in get_cluster_attr_data
    UNSUPPORTED_ATTRIBUTES: {
  File "/usr/src/homeassistant/homeassistant/components/zha/diagnostics.py", line 153, in <dictcomp>
    f"0x{cluster.find_attribute(u_attr).id:04x}": {
  File "/usr/local/lib/python3.10/site-packages/zigpy/zcl/__init__.py", line 181, in find_attribute
    return self.attributes[name_or_id]
KeyError: 900```

</details>

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

Can you still reproduce this on Home Assistant Core 2023.1.0?

Nope, updated to core 2023.1.2 and currently the issue's no longer happening 🙌


Some logs don't spawn drops in Medieval Minecraft modpack

...as mentioned in https://www.curseforge.com/minecraft/mc-mods/treechop?comment=220
Medieval Minecraft: https://www.curseforge.com/minecraft/modpacks/medieval-minecraft-modpack

I failed to recreate the issue. Waiting for more info


Polymer for typescript 1.6 and ES6 classes

Can anybody from the polymer team take a good look at typescript please and make a blog post?
Wheatley from polymer slack pointed this out https://github.com/nippur72/PolymerTS
But I still think it can be way more improved if polymer was designed form the ground up to be typescript friendly. The sooner somebody study this the better because like it or not js is not made for the heavy lifting single app applications Polymer is aiming at. Just a webshop is difficult enough already to debug in Polymer. Polymer is really nice when everything it is working and you only have to at a component but when its not, it's a living hell to find what is wrong, ask anybody who migrated from 0.5 to 1.0 and forgot something :P

IMO ES6 is the future and way forward. For example, I'd like to see us
support ES6 classes out of the box. Classes work today but with possible
caveats.
On Sat, Jul 11, 2015, 7:33 PM Gert Cuykens<EMAIL_ADDRESS>wrote:

Can anybody from the polymer team take a good look at typescript please
and make a blog post?
Wheatley from polymer slack pointed this out
https://github.com/nippur72/PolymerTS
But I still think it can be way more improved if polymer was designed form
the ground up to be typescript friendly. The sooner somebody study this the
better because like it or not js is not made for the heavy lifting single
app applications Polymer is aiming at. Just a webshop is difficult enough
already to debug in Polymer. Polymer is really nice when everything it is
working and you only have to at a component but when its not, it's a living
hell to find what is wrong, ask anybody who migrated from 0.5 to 1.0 :P
—
Reply to this email directly or view it on GitHub
https://github.com/Polymer/polymer/issues/2067.

I can't judge ES6 Classes yet but I hope everybody agrees that when I am writing a component in js, the future needs to be this.(and gives me a list of all properties with there type) Or data="{{myvar}}" tels me data is expecting a string not a number. Or myvar isn't defined etc. As far as I know typescript is leading in this part. Maybe create a starterkit TS or ES7 version and see where it leads too? Now that polymer 1.0 is reduced to the bare minimum its time to think about this before it gets more complex and prevent a other 0.5 -> 1.0 migration hell :D

:+1:

I agree, we need a Polymer implementation that is class-friendly.
The actual PolymerTS is good but struggles too much to make it typescript friendly and there are some of issues.
Ideally, we could have the same route of Angular2, that is, written in subset of TypeScript and then compiled to TS/JS and Dart.

I vote for what ever it takes and team up with angular and nippur72 on this. Wil it be difficult yep, wil it take time yep, will you need to start over yes, will it be worth it to make polymer type safe, hell f$%&%&^%^$ yeah!

https://github.com/Microsoft/TypeScript/issues/574 You are going to need typescript 1.6

@gertcuykens we don't need a complete rewrite, but only to change the way objects are registered. Currently we pass a plain javascript object to Polymer(), instead we need to pass an uninstantiated ES6 class, possibly an extension of HTMLElement (soon to be supported in TS1.6).
Indeed the only bottleneck of PolymerTS is during registration: it has to create an instance of the class and then copy its members to the Polymer registration object. A step it's better to avoid.

So basically the request would be to create Polymer and the Polymer Elements like this right?
class Polymer extends HTMLElement {...}
class PaperElement extends Polymer {...}

And after that has been done, type definition files can be created for Polymer and each element right?

@gertcuykens yes, more precisely elements would extend the already-existing Polymer.Base which in turn is an extension of HTMLElement.
The hard part is make Polymer create elements from classes rather than objects.
Anyway today I gave a quick look at Polymer's source code and it seems to me that it's not so difficult to modify it in order to accept "classes". I will look more into it, trying to make a PR.

@ebidel Are you willing to accept a new classes branch please? You wanted to use ES6 classes anyway in the future :P Then it wil be right in time to make sure Polymer wil fit typescript 1.6 like a glove.

+1 for ES6!  Although TypeScript is great it would be nice to keep in line with standards.
@gertcuykens, I'm using Aerotwist's idea for using ES6 right now which is ok, but proper integration with ES6 classes (extends, properties, methods, static methods, etc) would be awesome and timely since most new frameworks (e.g Aurelia) are rolling out ES6 ready.

after looking at the source code, I think we need the following:

slightly change Polymer.Base object to make it an inheritable ES6 class (actually it can't because it's a simple object with no prototype and some property getters that cause troubles).
write a new custom registration function (e.g. Polymer.registerType(className) or similar) that does almost the same thing as Polymer({}) but with avoiding the step:

prototype = Polymer.Base.chainObject(prototype, Polymer.Base);

instead it should use the object passed as argument, without chaining it, because the object would be already an extension of Polymer.Base and HTMLElement.
Note: TypeScript 1.6 it's NOT needed because you don't have to extend HTMLElement, but you extend Polymer.Base and for that a declare class it's enough. You don't even need TypeScript, it can work with just ES6.

@nippur72 thanks @ebidel common lets do this, don't worry I wil not be creating type script issues here :P

I'd love to see this happen, but it's not my call. My gut is also that the Polymer team is adverse to adding a required build step to use Polymer elements / Polymer. Until classes are supported everywhere, it's going to be a tough sell.

Ok lets go the vulcanize route then and include a option to apply a ES6 patch that wraps the Polymer.Base and Elements?

@ebidel, agreed with your ES6 sentiment, however, if the Polymer team stalls on providing at least ES6 support early on this will most likely go out to 3rd party projects which will fall short of the good integration that Polymer team would do as owners of the original source.  In other words better to have this done in-house (IMHO). The changes that @nippur72 suggests would at least get us going.

I made a change in PolymerTS that gets very close to what we are discussing here, perhaps making any mod to Polymer unnecessary.
I crafted a polymer.Base object that is seen as a ES6 class and that is extensible with no payloads (the previous version featured an annoying object-cloning).
So after all changing Polymer is not necessary, since anyway you have to use an additional package to  support decorators.

Ok Polymer team, you won this round but prepare for the next, because now we have a nippur72 ES6 tank coming your way :P My first mission is to get this starter kit compiled. @nippur72 I am looking at the sample and test code but it requires visual studio for the web service I think. That part is going to need to be replaced by gulp, nodejs and visual code reinforcement to defeat the incoming anti ES6 tank shells.

@ebidel INCOMMING TANK https://github.com/PolymerElements/polymer-starter-kit/pull/266 :P


Migrate guide pages to stumptown

Migrate all HTML-relevant guide pages to stumptown.
This includes the guide pages directly under /HTML:
Allowing cross-origin use of images and canvas
Applying color to HTML elements using CSS
Block-level elements
DASH Adaptive Streaming for HTML 5 Video
Date and time formats used in HTML
Inline elements
Link types
Media formats for HTML audio and video
Microdata
Microformats
Preloading content with rel="preload"
Quirks Mode and Standards Mode
The crossorigin attribute: Requesting CORS access to content
Using the application cache

Acceptance criteria:

All the above guide pages are migrated to stumptown and can be browsed in stumptown-renderer

Raised this in stumptown-content instead -> https://github.com/mdn/stumptown-content/issues/159


fix: preserve quality and optimize transfer of prompt images

Internal: b/369328578

Thank you, I will check it.


Split Packages when using Json.Import

When using the module system, split packages are not allowed, so importing a json class from another modular library causes an exception when trying to use Jlink. I personally haven't run into this, but this might be a problem later.

It occurs to me that I may have overthought this since we add a .jsonb to the imported package.


Read SDVRP instances

This adds support for SDVRP instances. Relates to #329.

I'll work on #550 next after this PR.

LGTM, merging this in!


Make RouDi Startup Parameters available in TOML Config

Brief description
Currently there are parameters passed in different ways to RouDi:

as command line option in roudi_cmd_line_parser.cpp
as struct RoudiStartupParameters passed to the roudi ctor in roudi.hpp
segment/mempool config as C++ API in RouDiConfig available for roudi_main.cpp or as TOML file

We need to wrap up the existing parameters and give the end-user a standardized way to pass them to RouDi. Possible solution would be to use the TOML config for all parameters to have a single point.

[ ] define where to pass startup parameters to RouDi
[ ] move struct RoudiStartupParameters to TOML config
[ ] document for the end-user the possible parameter sets and give example how to use them

@dkroenke small nitpicking. TOML config is just a serialized RouDiConfig, so that one would be our standardized way. We also need the possibility to set some parameter with the command line, e.g. the log level without constantly editing the the config file
The precedence should be cmd line parameter > user config file > root config file > compiled into binary

@elBoberido Yes you are right, not all parameters should be set in the TOML, the intention is to have clarification where to set which kind of parameters. I agree that things like loglevel or monitoring mode should be set by command line for easier debugging. But there are also things like a unique RouDi ID where the RouDiConfig is maybe the better place.
I have the feeling that in future more parameter options will come up and then it would be good to have clarification where to put them.


[Enhancement] Field isn't final but should be [EventMeshTcpConnectionHandler]

Search before asking

[X] I had searched in the issues and found no similar issues.

Enhancement Request

located at:
org/apache/eventmesh/runtime/core/protocol/tcp/client/EventMeshTcpConnectionHandler.java line 35
analysis and explanation:
This static field public but not final, and could be changed by malicious code or by accident from another package. The field could be made final to avoid this vulnerability.
Describe the solution you'd like
add final modifier field.
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

@xwm1992  @Alonexc i would like to work on this issue, please assign it to me.

i have made this PR #1752 , please have a look


Should respond error when accessed via domain name different from the one configured in Unit Certificate

Overview
Core should respond with 400 error when accessed via domain name different from the one configured in Unit Certificate.
Why this feature
This is necessary to avoid such cases where a unit operator fails to configure the unit certificate without knowing about it and face Token Dsig error when exchanging TransCell Access Tokens.
With this feature unit owner can immediately know if the unit is misconfigured.

Implementation should be applied probably on FacadeResource ?


Just a doc fix...

In the docs, commit(cb) should actually be commit(force, cb) - using the first form, the cb is never called.

+1

I don't think it behaves like this anymore. Closing.


[add] empty gitignore

It is a new template:
I think that will be good to make a empty gitignore for people who use Github's api for create us own Github repository without any "template" (empty gitignore).

When you create a new Git repo in GitHub, there is a „None“ option for „Add .gitignore:“ (actually the default).
So if I create a repo I can either select one of the templates as a starting point, or just add no gitignore at all - and maybe add one later, if I need it.
But why would I ever want to add an empty .gitignore to my repo? It just creates a useless commit... So it looks like YAGNI to me... But maybe I‘m missing a point. Could you please further explain, why you‘d want to do that?

Why do I want to do this ? I'm in college, and my college has set up a new collection system for our projects on github. So I decided to create a unix shell script, to facilitate the creation of our repositories on github as well as on the old version of the collections that are still effective.
I create the GitHub repositories from an unix shell script thanks to the GitHub api and I would like to make it as usable as possible for my comrades since it is not used case to be used for college but also for personal projects.
Since I do not know what language my comrades are going to work with, so I can not define the appropriate .gitignore that is why I make this request, to have an empty .gitignore that I can implement directly with the creation of the repository, without it having to do it.
That's why I make this request near this repository that manages all the database of the "gitignore_template" feature available with the GitHub api.

I create the GitHub repositories from an unix shell script thanks to the GitHub api

I'm still thinking about this PR, but if you're looking for reuse with scripting there is the ability to create repository templates that represents all files a new repository should contain. This can then be used to create a repository based on a template through the GitHub API.
It's not clear to me whether your script is making a commit with additional files, but if you are then maybe the repository template is a more elegant solution to this problem.

Is it possible to make changes with a model ? Because I plan to add the possibility to choose the license that we want which I do not know in advance, and I'm afraid that to do with a template this blocks me later. Because, to put a license or a gitignore on a repository using GitHub APIs it is necessary to do the creation of the repository otherwise we will not be able to add it later.


Graphs of accuracy and loss during final training process

Compared to the normal training process, train acc continues to increase and losses should continue to decline. However, the ENAS process shows that there are periodically periods in which the performance decreases drastically during the training process.
What parameters caused this results?

Hi, I suppose you're showing the results of running micro_final.sh or macro_final.sh.
This phenomenon is due to the cosine learning rate scheduling.


Support list files through RESTful API

Support list files through RESTful API
Usage example:
HTTP GET request http://localhost:28080/files?path=/test
ls files of the path /test and response a JSON string

This is an exciting feature! Do you have any plans to support more file attributes, such as length and last modification time?

alluxio-bot, merge this please


Adding scroll horizontally on work item list view

This change is

Why do we want to force a scroll bar to appear even when we don't need it?
Is there an issue # for this?
@mindreeper2420 Can you please review this?

@joshuawilson @sanbornsen Having a scrollbar appear when it is not necessary gives the false impression of a scrollable interface, which can cause confusion and doubt. The browser should automatically handle any scrollbars (Chrome, IE, Firefox and Edge all handle them differently, including persistent view states).
If the List View is requiring a horizontal scrollbar (as stated here), then it is not sizing properly for the viewport. That should be done in lieu of forcing scrollbars.
Of note, the finalized design will makes this item non-applicable.

Also not having it makes the page jump around moving from page to page. e.g. in demo.almighty.io view the List then go to board and back ... pick your poison I guess.

I am sorry. Excuse my limited knowledge in CSS. It should be good now.


Why use the same dense layer here?

https://github.com/Hironsan/anago/blob/75168ce3483ea037048bda8d1c50c6bb39aabbe1/anago/models.py#L145

It's a mistake.
I fixed it.
Thanks


Add watcher for tenantAdminNamespace

This change adds watcher for tenantAdminNamespace. As a result, if tenantAdminNamespace is deleted for some reason, the tenant controller will create a new one with the same name.

/assign @rjbez17

/lgtm
/approve


Bug report: Engine.next_step() segfaults

Engine.next_step() segfaults.
Background
I am using roadnet and flow generated with :
python generate_grid_scenario.py 1 1 --roadnetFile 1x1_roadnet.json --flowFile 1x1_flow.json --dir . --tlPlan --numLeftLanes 2 --numRightLanes 1 --numStraightLanes 5

A peculiar observation is: there are only cars that go straight. No cars try to make right or left turns even if there are right and left turn lanes.
Replay files
I have attached two replay files and a roadnet log file. replay_fine.txt goes to completion without any error, but replay_error.txt which is supposed to run for as many steps as replay_fine.txt only runs for 870 steps then it segfaults on next_step().
I first thought it was due the vertical lanes being completely clogged, but this doesn't cause segfault in replay_fine.txt even if it is clogged for a longer period of time.
The phase are set correctly, as there is a check for a proper phase index.
replays.zip

Thank you for submitting the bug report!
Turns

A peculiar observation is: there are only cars that go straight. No cars try to make right or left turns even if there are right and left turn lanes.

As for this problem, the solution is appending "--turn" option in the command like:
python generate_grid_scenario.py 1 1 --roadnetFile 1x1_roadnet.json --flowFile 1x1_flow.json --dir . --tlPlan --numLeftLanes 2 --numRightLanes 1 --numStraightLanes 5 --turn
Segment Fault
When it comes to the segment fault, I tried but failed to reproduce the bug on my computer. It seems like you are using a new control algorithm instead of the default setting in roadnet config file. It would be a great help if you could offer your code.
I speculate on what causes the bug and I think it is caused by the lane change mechanism. Does it work properly if you turn off the "laneChange" option in the config file?  I rewrote the "abortLaneChange" function in the lane change module. Please check issue-50
Does it help? Thank you for you help!

@soodoshll Thanks so much for your help!

As for this problem, the solution is appending "--turn" option in the command

Thanks! got it!

It would be a great help if you could offer your code.

unfortunately, it isn't up to me to share the project. I will first try what you have suggested: turning laneChange off. Let me get back to you if I see the same problem.

I rewrote the "abortLaneChange" function in the lane change module. Please check issue-50

what is issue-50 changing about abortLaneChange?

@ThisIsIsaac, Thank you for your reply 😃
I find that when the simulation corrupts, there is a vehicle taking lane changing, and meanwhile, about to leave its lane and enter the crossroads (as you can see in the yellow circle)

Under this circumstances, the simulator will call abortLaneChange to abort the lane changing, which is implemented incorrectly. So I rewrote the function, and it now works properly on my computer.

I see. So you suspect that incorrectly implemented abortLaneChange could have been the cause of segfault?

Yes. I made some careless omissions.

Seems to have fixed the problem! Hasn't segfaulted for tens of millions of steps, where as before I couldn't get to a few hundred thousand steps.


Insert imports on paste: wrong imports position if previously there were no imports in the file

This is about AnalysisServer.edit_importElements method. E.g. if you copy new Random(); in some green file and then paste it here:
main() {
  <caret>
}

you'll get

import 'dart:math';main() {
  new Random();
}

https://codereview.chromium.org/3002643002/