Stamp assemblies with git commit hash

To help with getting to the source, it makes it very easy if DLLs have the commit hash stamped into them using AssemblyInformationalVersion for example.  The Cake project does this.

Would you like to submit a pull request with the automation script?

Sure, will do

Please help clarify how the tags in Unity git repos relate to the nuget package or AssemblyInformationalVersion at present?
I have version 5.8.5 of Unity which has Unity.Container.dll with version <IP_ADDRESS>. The git repo has a tag <IP_ADDRESS>1. What's going on here?

551 is appveyor build number

It could be anything. I didn't think it carries any benefit to add the build or hash to the dll.
Release number as well as build number both point tho the same hash so if you need to see the code you always could.
I guess we could add build number to the version to be consistent.

Have submitted #78 that attempts to add this information to assembly. Hope its useful


Handling environment variables

Untested. For soliciting feedback. Please do not merge.

Prevents leaking of secrets to third parties via environment variables.

Thanks for your contribution @delip!
Need to test this a bit further and will get back to you about landing 🙏


Training from scratch

I want to train a model from scratch. It looks like the tools directory is where I should dive into. I have the PubLayNet data, but I refined the data I want to use, and don't want to use the pre-trained models or weights(All the labels are the same format). How would I go about training a fresh model?
Thanks in advance.

Training process should be same. You can use train_net_dla.py with minimal code changes (change line 132 to 144) or if you want to write your own then have a look at latest train_net.py in original detectron2.


getindex for Tensor types may be slow

Ori has pointed out a few issues involving slow operations for Tensor operations ( #184 and #198). I believe these both involve generic AbstractArray fallbacks that iterate over each value of the Tensor, so it is likely either an issue with slow iteration or slow getindex (or both). We need to investigate that issue, the goal would be that all basic operations on Tensor types are fast enough so that explicit wrappers for these functions don't need to be written.

PR #229 makes getindex, setindex! and iterate for DenseTensor as fast as those functions for Julia Array.
Issues #184 and #198 were actually a bit more subtle than getindex and iterate being slow. At least for #184, Julia's norm dispatches to a BLAS function for dense Array types, but DenseTensor can't dispatch to that function (since there is no trait system to tell Julia that DenseTensor is actually dense) so instead it was calling a generic Julia norm function that uses iteration. Even with the faster iteration from #229, I checked that (not surprisingly) dispatching to BLAS is still faster. So I think the solutions in #184 and #198 turned out to be the best anyway (to make wrappers for those functions that then work directly on the Vector data).

Closed by #229.


(BS 5) Radio and checkbox buttons not being properly styled on mobile using the SASS files

[UPDATED]
Apparently the issue was with the .form-check-input selector, around line 2233, where it should have -webkit-appearance: none; but it doesn't. Once I've added that line, everything came back to normal.
Original issue
I've downloaded both source and compiled files (Bootstrap 5) to test both scenarios.
Here's what's happening:
Compiling the SASS files ends up giving me a shorter CSS file (I used all other files, no scss file is left "un-imported"). I even "beautified" both CSS files (both the precompiled and the one compiled by me) to make them look as similar as possible. Even used a tool online to compare both and there are slight differences between them.
When viewing the website on my laptop, no issues. When viewing on mobile, it styles the checkbox and radio buttons properly when I use the precompiled file (longer css), but not when I use the file compiled using the SASS files. Also used the Autoprefixer online to add support to the file compiled from the SASS files, thinking that would solve the problem, but no luck.
Everything seems to be styled properly, at least so far. Only those two seem to be having this bug.
How it looks like

How it was supposed to look like

Any idea why this happens and how to fix it?

If you're compiling the source Sass files yourself, make sure you're running Autoprefixer.


test: add liquid assets script to test network [WIP]

Two questions I have regarding this:

Currently I have to force pjs to accept <any> when dealing with the asset-conversion-pallet, because the types it expects come from the substrate-node implementation and are incompatible with the Kusama Asset Hub implementation, but due to this I have to disable eslint for those two lines.

const createLiquidityPoolCall = (api: ApiPromise) => {
	// For now, we have to override the types of the Assets until PJS is updated
	// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
	return api.tx.assetConversion.createPool(<any>native, <any>asset);
};

const addLiquidityCall = (api: ApiPromise, amountNative: number, amountAsset: number, to: KeyringPair) => {
	// For now, we have to override the types of the Assets until PJS is updated
	// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
	return api.tx.assetConversion.addLiquidity(<any>native, <any>asset, amountNative, amountAsset, 0, 0, to.address);
};

Trappist doesn't support asset-conversion so all the process runs on KAH, wondering how we feel about that.

Edit: Issue to add asset-conversion to trappist.
Edit 2: Types on PJS that are used on Asset Conversion

Trappist doesn't support asset-conversion so all the process runs on KAH, wondering how we feel about that.

I think this should be totally fine, not much we can do. That being said if we can still create the liquid pool assets thats a step forward. In this case though we just can't transfer them to Trappist if I understand this correctly?

Trappist doesn't support asset-conversion so all the process runs on KAH, wondering how we feel about that.

I think this should be totally fine, not much we can do. That being said if we can still create the liquid pool assets thats a step forward. In this case though we just can't transfer them to Trappist if I understand this correctly?

Correct, right now there's no way to send the LP tokens to Trappist, but we create them just fine and we can even send them between accounts, so that's ok.

Trappist doesn't support asset-conversion so all the process runs on KAH, wondering how we feel about that.

I think this should be totally fine, not much we can do. That being said if we can still create the liquid pool assets thats a step forward. In this case though we just can't transfer them to Trappist if I understand this correctly?

Correct, right now there's no way to send the LP tokens to Trappist, but we create them just fine and we can even send them between accounts, so that's ok.

Okay I think that's perfect then and the script does exactly what it intends on doing. Feel free to merge it in, whenever your'e ready


Plugin missing from Obsidian Community Plugins

I couldn't find the plugin in Obsidian and had to install from zip.

Use BRAT plugin for installation

thanks to @liamcain it is available in the community plugins now


Multiple resolution/bitrate

how about video split video resolution?
in case, when we need play with lower bandwidth and split hls server to multiple  resolution/pixel
like "250p","360p","1080p","720p"
example hls m3u
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=763904,RESOLUTION=854x480,NAME="480p"
hls-480p-127f2.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1327104,RESOLUTION=1280x720,NAME="720p"
hls-720p-51ffc.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2760704,RESOLUTION=1920x1080,NAME="1080p"
hls-1080p-915de.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=423936,RESOLUTION=640x360,NAME="360p"
hls-360p-be7ff.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=155648,RESOLUTION=444x250,NAME="250p"
hls-250p-6c02c.m3u8

on video player we can setting video quality like this

Currently not possible because the server does not integrate any codecs.
It's possible to workaround by using ffmpeg to republish various resolutions to different paths, but then you wouldn't get the hls advantage of letting the player automatically choose best reolution.
I would say this is quite advanced functionality so lets wait until the basic HLS is working (at the moment it's not).

At the moment we want to leave re-encoding out of the server, for performance reasons, for legal reasons, therefore HLS with multiple resolutions can't be implemented.
Nothing forbids you from using ffmpeg together with rtsp-simple-server to obtain what you want (adapted from https://docs.peer5.com/guides/production-ready-hls-vod/):
ffmpeg -hide_banner -y -i rtsp://localhost:8554/mystream \
  -vf scale=w=640:h=360:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod  -b:v 800k -maxrate 856k -bufsize 1200k -b:a 96k -hls_segment_filename beach/360p_%03d.ts beach/360p.m3u8 \
  -vf scale=w=842:h=480:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 1400k -maxrate 1498k -bufsize 2100k -b:a 128k -hls_segment_filename beach/480p_%03d.ts beach/480p.m3u8 \
  -vf scale=w=1280:h=720:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 2800k -maxrate 2996k -bufsize 4200k -b:a 128k -hls_segment_filename beach/720p_%03d.ts beach/720p.m3u8 \
  -vf scale=w=1920:h=1080:force_original_aspect_ratio=decrease -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4 -hls_playlist_type vod -b:v 5000k -maxrate 5350k -bufsize 7500k -b:a 192k -hls_segment_filename beach/1080p_%03d.ts beach/1080p.m3u8

Then use this master playlist
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=800000,RESOLUTION=640x360
360p.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1400000,RESOLUTION=842x480
480p.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=2800000,RESOLUTION=1280x720
720p.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=5000000,RESOLUTION=1920x1080
1080p.m3u8


refactor nth-child evaluator

Sad but true this one was written drunk and trashy. Needs to be refactored probably.

This has been resolved with the last commit


EnableIAMDatabaseAuthentication not applying to cluster

Not sure if this is the correct place to submit this.
Trying to set IAM DB authentication to true on the already existing cluster via cloudFormation, but when setting EnableIAMDatabaseAuthentication: true in the cloudFormation seems to have no effect on this. Am I reading the documentation correct? I was looking at this page AWS::RDS::DBCluster

I've seen the same problem.
We're using CDK, and have defined the cluster like this:
    const cluster = new rds.DatabaseCluster(this, "Database", {
      engine,
      parameterGroup,
      instances: 1, // just a primary for now.
      instanceProps: {
        instanceType: ec2.InstanceType.of(
          // FIXME: get right instance size
          ec2.InstanceClass.R6G,
          ec2.InstanceSize.LARGE
        ),
        vpcSubnets: {
          subnetType: ec2.SubnetType.PUBLIC,
        },
        securityGroups: [sg],
        vpc,
        publiclyAccessible: true, // subject to the security group rules of course
      },
      iamAuthentication: true, // Allow IAM-based auth
    });

Note that we have set iamAuthentication to true now; the setting was not present when the cluster was initially created via CDK.  I have not (yet) tested whether deploying a new cluster with iamAuthentication: true set from the outset works.
Using cdk synth, I see that the generated CloudFormation output has EnableIAMDatabaseAuthentication setting enabled:
...
 DatabaseB269D8BB:
    Type: AWS::RDS::DBCluster
    Properties:
      Engine: aurora-postgresql
      CopyTagsToSnapshot: true
      DBClusterParameterGroupName:
        Ref: ParameterGroup5E32DECB
      DBSubnetGroupName:
        Ref: DatabaseSubnets56F17B9A
      DeletionProtection: true
      EnableIAMDatabaseAuthentication: true
      EngineVersion: "12.6"
...

However, when I cdk deploy the stack, nothing changes - IAM auth is still disabled for the cluster.
After the deployment, looking via the AWS Console in CloudFormation -> Stacks -> OurDBStackName, I see the CloudFormation config above, with the value set to enabled - but it just is not actually enabling it on the cluster.
If I manually go and turn it on via the AWS Console, then IAM authentication works (and a subsequent cdk deploy does not revert it!)
So, as best as I can see, the EnableIAMDatabaseAuthentication setting is making it to CloudFormation, but being ignored.

We're seeing this too, also with CDK. Enabling IAM auth on the cluster is the only change in the changeset, and it's simply not happening
  {
    "resourceChange": {
      "logicalResourceId": "DBCluster15AF587F",
      "action": "Modify",
      "physicalResourceId": "<...>",
      "resourceType": "AWS::RDS::DBCluster",
      "replacement": "False",
      "moduleInfo": null,
      "details": [
        {
          "target": {
            "name": "EnableIAMDatabaseAuthentication",
            "requiresRecreation": "Never",
            "attribute": "Properties"
          },
          "causingEntity": null,
          "evaluation": "Static",
          "changeSource": "DirectModification"
        }
      ],
      "changeSetId": null,
      "scope": [
        "Properties"
      ]
    },
    "hookInvocationCount": null,
    "type": "Resource"
  }

We managed to implement a workaround by using a custom resource with a SDK call to modify the DB cluster by passing the parameter "EnableIAMDatabaseAuthentication": True
Parameter options can be found here https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/RDS.html#modifyDBCluster-property
    cr.AwsCustomResource(
        construct,
        "ModifyDbClusterCR",
        policy=cr.AwsCustomResourcePolicy.from_sdk_calls(
            resources=cr.AwsCustomResourcePolicy.ANY_RESOURCE
        ),
        on_update=cr.AwsSdkCall(
            service="RDS",
            action="modifyDBCluster",
            parameters={
                "DBClusterIdentifier": db_cluster_identifier,
                "ApplyImmediately": True,
                "EnableIAMDatabaseAuthentication": True,
            },
            physical_resource_id=cr.PhysicalResourceId.of(db_cluster_identifier),
        ),
    )

Once the stack was updated in CF I noticed it took about 10mins before the IAM authentication flag flicked to enabled on our RDS cluster.


Added default value for DialErrorLimit for backwards compatibility on client / plugin versions mismatch

This PR will fix the issue https://github.com/pulumi/pulumi-command/issues/187 when new version of the plugin (>= v0.7.1) is used with old client classes (<= v0.7.0).  This PR will ensure if no default value is giving to the DialLimitError from the client the default value is set at the plugin side.
Fixes #187

/run-acceptance-tests

@iwahbe :thinking: dunno why those tests keep failing but I tested it out again with go library and the new generated plugin with default value and all went ok, similar situation on previous PR https://github.com/pulumi/pulumi-command/pull/180#issuecomment-1435422527

@adrianriobo Tests passed after a couple of re-runs. I'm merging now.


numerous npm install warnings

Failed when trying to npm install blockchain-cli -g
Then I tried git clone w/a local install
Mac /<EMAIL_ADDRESS>/ node v8.4.0
npm install
WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ== integrity checksum failed when using sha512: wanted sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ== but got sha1-No8lEtefnUb9/HE0mueHi7weuVw=. (25587 bytes)
WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg== integrity checksum failed when using sha512: wanted sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg== but got sha1-iTMSr2myEj3vcfV4iQAWce6yyFM=. (8851 bytes)
WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ== integrity checksum failed when using sha512: wanted sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ== but got sha1-D8Z9fBQYJd6UKC3VNr7GubzoYKs=. (4142 bytes)
WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg== integrity checksum failed when using sha512: wanted sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg== but got sha1-iTMSr2myEj3vcfV4iQAWce6yyFM=. (8851 bytes)
WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg== integrity checksum failed when using sha512: wanted sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg== but got sha1-iTMSr2myEj3vcfV4iQAWce6yyFM=. (8851 bytes)
WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EINTEGRITY: sha512-8T7Zn1AhMsQ/HI1SjcCfT/t4ii3eAqco3yOcSzS4mozsOz69lHLsoMXmF9nZgnFanYscnSlUSgs8uZyKzpE6kg== integrity checksum failed when using sha512: wanted sha512-8T7Zn1AhMsQ/HI1SjcCfT/t4ii3eAqco3yOcSzS4mozsOz69lHLsoMXmF9nZgnFanYscnSlUSgs8uZyKzpE6kg== but got sha1-3ACaJGuNCaF3tLegrne8Vw9LG3k=. (2516 bytes)
WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.

><EMAIL_ADDRESS>install /usr/local/projects/blockcahin/blockchain-cli/node_modules/fsevents
> node install

[fsevents] Success: "/usr/local/projects/blockcahin/blockchain-cli/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

><EMAIL_ADDRESS>install /usr/local/projects/blockcahin/blockchain-cli/node_modules/wrtc
> node-pre-gyp install --fallback-to-build

[wrtc] Success: "/usr/local/projects/blockcahin/blockchain-cli/node_modules/wrtc/build/wrtc/v0.0.62/Release/node-v57-darwin-x64/wrtc.node" is installed via remote
added 684 packages in 13.969s

Were you able to resolve this issue, Daniel? If yes, how?

did not try again until you just mentioned it.. works now as:
npm install blockchain-cli -g

Hi,
follow this link to download a problem-free version.
https://github.com/anders94/blockchain-demo/


[#118] Try adding pytest to CI and see what happens

Draft test to look into github ci

rebasing and renaming


Cannot change mode

I’m trying your amazing plugin and it’s working properly so let me say thank you and congrats!
I was checking it with the Air Purifier 3H - Global version and I can’t change between modes, the request it’s ok cause I hear a beep but nothing happens with the purifier.
Am I doing rightly?

The purifier has the firmware version: <IP_ADDRESS>14

I am having the same issue. The slider doesn't work unless I go to the unit and set it to manual mode. And every time I turn it on using homekit it defaults to automatic mode, what makes the slider useless.


Can’t choose branch for merge.

Gitea version (or commit ref):
1.13.0+dev-295-g16980d13c

Git version:
2.17.1

Operating system:
Ubuntu 18.04.3 LTS

Database (use [x]):

[X] PostgreSQL
[ ] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ ] No
[X] Not relevant

Log gist:

Description
In the Pull Request if you go to Files Changed and choose “editing”, you can’t choose branch for merge.
List of browsers:

Google Chrome Version 84.0.4147.105 (Official Build) (64-bit), 84.0.4147.125 (Official Build) (64-bit)
Opera Version: 70.0.3728.106 (64-bit), 70.0.3728.119 (64-bit)
Safari Version: 13.1.2 (136<IP_ADDRESS>.5) (64-bit), 13.1.2 (156<IP_ADDRESS>.3) (64-bit)
Firefox Version: 79.0 (64-bit)

Screenshots

It lost the z-index battle. 😢
Branch selection

vs sticky details
https://github.com/go-gitea/gitea/blob/61a172900e871e4151c804f4dc242e8c4895a4d3/web_src/less/_repository.less#L1582
I'm not sure the best way to fix it other than fighting z-index with a higher z-index, but that feels almost as dirty as an !important battle.
@silverwind @CirnoT Thoughts? You two seem to have a better grasp than I do when it comes to these things.

I'd say that diff bar should not set a z-index when it's not in the sticky state, avoiding this issue altogether.

I'd say that diff bar should not set a z-index when it's not in the sticky state

That would require JavaScript hacks which we wanted to avoid.

I'm also not sure why the sticky details are at 800. Since we can't really change semantic, the conclusion would be to change the sticky details to <=10, but I'm not sure what else that might break in a z-index battle.

Quick test shows that it can be safely reduced to 8.


Fix file append bug on windows platform

On Windows 7 rename can fail if destination exists.
This would probably not occur with newer api 'move' with java 7 onwards. But sparkey-java intends to support Java 6.
For more details: http://docs.oracle.com/javase/tutorial/essential/io/legacy.html#interop
Added test case to cover this scenario.

(Fix originally submitted by https://github.com/tejaspathak - this is a slight refactoring of it)

@tejaspathak Thoughts on the latest changes? Does it fix your windows use case?

@spkrka changes look good. Didn't get time to test latest change, but the earlier change you submitted worked. pls go ahead..


[DOCFIX] Update distributeLoad doc

What changes are proposed in this pull request?
Update distributedLoad doc
Why are the changes needed?
Some options are missing in doc
Does this PR introduce any user facing changes?
No

alluxio-bot, merge this please


Feature/axiomapy 72

Added Admin external entities endpoints to axiomapy

External entities; admin util; session changes


add prefetch and accumulation steps according to original repo

When I was training a cloth simulation network using your implementation, it was much slower than original tensorflow implementation. The bottleneck was the CPU I/O operation. On my task, I/O takes 2s for each batch while forward+backward pass takes only 0.2s, so I add a flag prefetch_factor according to https://github.com/deepmind/deepmind-research/blob/1642ae3499c8d1135ec6fe620a68911091dd25ef/meshgraphnets/dataset.py#L55
Besides, I add a flag for the accumulation of batch statistics, as in https://github.com/deepmind/deepmind-research/blob/1642ae3499c8d1135ec6fe620a68911091dd25ef/meshgraphnets/run_model.py#L72

Thank you!

@echowve
Hi! With prefetching the pytorch version is still slower than tensorflow version(4x slower), I have one suggestion: read one sequence into the memory instead of reading each frame separately. You can maintain a dict self.tra_data[tra_index]  = {}. Frequentely random access the h5 file is very time-consuming.
Actually I have implemented that for my task and after that its speed is comparable to the tensorflow version. I am not sure whether it works with cfd problem.
Thanks for your great repo

Hi, I tested the dataset class on cfd problem and found that the loading process from h5 file costs about 3ms per sample.   Also, maintaining self.tra_data[tra_index] seems no changes.  The newer version is uploaded and hoping you continue to make suggestions.
Thanks!


Announcements

I can't play Chinese announcement on my world and I've tried everything I could and the mod still can't play the Chinese announcement. Please try to fix it thanks! if it's something to do with my Minecraft then please tell me how to fix it thanks!

It's because of windows settings, you have to use control panel (windows <= 10) or settings (windows >= 11)

I've tried that. it still doesnt work!


Copy image effects/components to each VRSurface camera.

Currently, the camera component on DisplayController.cs (VRDisplayTracked prefab) is coped to each VRSurface camera. This should be extended to copy any other effects/components that should be attached to each eye.

Continuing discussion from https://github.com/OSVR/OSVR-Unity/issues/101...
Perhaps adding one VREye and VRSurface to the prefab hierarchy (make VREye a sibling of VRViewer) could work as a solution. This would work for cases with one eye and one surface, and any additional eyes can be duplicates of the original.

Here is what I meant with the previous comment: https://github.com/OSVR/OSVR-Unity/pull/111
Seems to be working, but I haven't tested it in a game with image effects yet.
@ImperialPenguin do you think this could work?

Fixed by #111


Adding homebrew action

Runner images updated remove homebrew. Has been recommended in this issue if homebrew is needed in the build to use the action: https://github.com/actions/runner-images/issues/6283. Should fix the main workflow

Thanks.


[ci] Publish pytorch 2.0.1 jni package

Description
Brief description of what this PR is about

If this change is a backward incompatible change, why must this change be made?
Interesting edge cases to note here

Codecov Report
Patch coverage: 54.72% and project coverage change: -0.01 :warning:

Comparison is base (bb5073f) 72.08% compared to head (0a25096) 72.08%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2699      +/-   ##
============================================
- Coverage     72.08%   72.08%   -0.01%
- Complexity     5126     7021    +1895
============================================
  Files           473      698     +225
  Lines         21970    31254    +9284
  Branches       2351     3225     +874
============================================
+ Hits          15838    22530    +6692
- Misses         4925     7191    +2266
- Partials       1207     1533     +326

Impacted Files
Coverage Δ

api/src/main/java/ai/djl/modality/cv/Image.java
69.23% <ø> (-4.11%)
:arrow_down:

...rc/main/java/ai/djl/modality/cv/MultiBoxPrior.java
76.00% <ø> (ø)

.../main/java/ai/djl/modality/cv/output/Landmark.java
100.00% <ø> (ø)

...djl/modality/cv/transform/RandomFlipLeftRight.java
25.00% <0.00%> (-25.00%)
:arrow_down:

...djl/modality/cv/transform/RandomFlipTopBottom.java
25.00% <0.00%> (-25.00%)
:arrow_down:

...i/djl/modality/cv/translator/BigGANTranslator.java
21.42% <0.00%> (-5.24%)
:arrow_down:

.../modality/cv/translator/ImageFeatureExtractor.java
0.00% <0.00%> (ø)

.../ai/djl/modality/cv/translator/YoloTranslator.java
27.77% <0.00%> (+18.95%)
:arrow_up:

...ain/java/ai/djl/modality/cv/util/NDImageUtils.java
67.10% <0.00%> (+7.89%)
:arrow_up:

api/src/main/java/ai/djl/modality/nlp/Decoder.java
63.63% <ø> (ø)

... and 226 more

... and 368 files with indirect coverage changes

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


Updated get media info request as instagram changed it from post to get

While working with retrieving media from Instagram I noticed that InstagramGetMediaInfoRequest always results in 405 (method not allowed) code. After some research in similar JS/PHP libraries I found out that Instagram switched this method from post to get format. I specifically referenced this commit where this change is most obvious.

Thanks!


Fix Travis CI Errors

Seems like travis is not able to run Cypress.

See: #177
See: #175

I will rise a PR asap to fix that and unblock pending PRs

Oh yeah! Now it is working 🎉


CQ-4347866 - Support AF2 Template creation

Adding AF2 template support creation using template console
Policy names updated, policy nodes recreated as per resource type, existing template updated accordingly
Adding accessControlHandling for including acls for template types

We can release this template type to public archetype repo (some modification will be required) along with core component, and ootb af2 template.
With this change, the following changes are visible.
User can create a new af2 template now on template console.

Now, on template console template card show label - Adaptive Form V2 (this is read from template type title)

After fixing of policies node structure, now, in structure layer, allowed components are visible

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] I have signed the Adobe Open Source CLA.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes and the overall coverage did not decrease.
[ ] All unit tests pass on CircleCi.
[ ] I ran all tests locally and they pass.

@pankaj-parashar : lets get this closed... thanks


update lazycseq.py output interpretation

Update lazycseq.py script for correct interpretation of the output.

Hi,
I have just submitted the script for another tool of our (UL-CSeq, in the script ulcseq.py).
I am really sorry for the inconvenience if this makes things confused.
Many thanks,
Truc

No problem. Btw, if you have multiple similar tools, you could also inherit from a common super class to avoid the duplicate code.


is goimpl only valid to struct type?

when I use other type, it will report struct not found error

but when i change to struct type, it will work fine

Should be fixed. Could you take a look if it works for you?


Distribute in the GitHub Actions Marketplace

I feel like having this available in the GitHub Actions Marketplace would make it easy for people to add Flet build workflows to their existing actions configs.
Here are the docs
This could be combined with other actions that already exist in the marketplace to take the built artifacts and upload them as a release, or ship them somewhere (potentially addressing #5)

Thanks, will have a look when possible.

This is an excellent idea, I also agree with the request


tsgen cannot read added tokens

Cannot run tsgen, when trying to generate the typing file I get the following error:
$ csdx tsgen -a "Token" -o "contentstack/generated.d.ts"
  TypeError: Cannot read properties of undefined (reading 'token-alias')

Tried with both Delivery and Management tokens
Was working a few weeks back but I got a new machine and started getting this error, not sure if it was a new update in the meantime.
@contentstack/cli/1.3.0 win32-x64 node-v16.14.1
NPM 9.1.1
contentstack-cli-tsgen 1.0.13
Thanks in advance

++ Same issue

Hi @NunoMCP, @justtry2,
Thanks for reporting this issue, we are looking into this on priority.
Thanks!

PR #22 is designed to fix this, and some internal testing is still underway to make sure we address the issue fully. We should have this resolved soon. Thanks for your patience!

@NunoMCP, @justtry2 This issue has been fixed and released in the latest release.
Please use the latest tsgen version(2.0.0) and check.
Thanks!

Working fine on my end, thanks for the speedy updates!
Is support for contentstack branches coming for this tool? can only get it to working on the root source branch and branch specific delivery tokens seem to be invalid.
Thanks for all the help! 😃

Sure @NunoMCP,
I will think about adding branches support in the plugin, thank you for raising this. :)


Support for GPIO monitoring callbacks

I know that GPIO monitoring callbacks is in the roadmap but it would be really great addition. I have tried node-libgpiod with Raspberry Pi 5 4GB (I just needed to change new Chip(0) to new Chip(4)) and it works great for setting the outputs but don't know how to do the "monitoring" (like detecting push buttons connected to some GPIO). I am willing to sponsor the addition of the callbacks to the library.

Hi @varadero i am doing some cleanup and after that will work on that for 1.x branch first. At some point we can discuss proper api design/ergonomics here, ;-)

I would be truly interested in that as well. Did you make any progress?

Given that javascript was designed as an event-driven language, I would rank this with high priority. It seems you have much on your plate with this project, so patience is definitely worth the reward here.

I don't understand how anybody is using GPIO with nodejs nowadays. Since Bookworm gpiod is the norm to use GPIO, but there is no way to use it properly in nodejs. This library can set and get values, but a very important part of GPIO is event monitoring. I have a reset button attached to a GPIO pin of which I need an event on the rising and falling edge. This was no problem with the old /sys/class/gpio/* interfaces, but with the new way of working it seems almost impossible to achieve. Or am I missing something?

This was no problem with the old /sys/class/gpio/* interfaces

Actually, there were problems with the sys FS interface. Most notably, nothing in sys FS interface prevented other threads from appropriating occupied resources (a GPIO chips' exposed pins).
Many of the C/C++ offerings (PiGPIO, MRAA, wiringPi) wrapped the sys FS interface into something that can only be described as "a best effort to shield end-users from the pitfalls of the sys FS interface." But, the limited design of the sys FS interface often required wrappers to have root access... This didn't bode well for environments (a python venv for example) that were designed to avoid messing with system-scoped resources.
The newer (ioctl-based) char dev interface does not require root privileges. FYI, the GPIO API is the latest of Linux kernel's peripheral APIs to switch to a char dev API. The Linux kernel's I2C and SPI interfaces have been using a (ioctl-based) char dev paradigm for years. You might find Linux kernel examples for I2C still using the older sys FS interface (like the undead wiringPi library does).

but with the new way of working it seems almost impossible to achieve. Or am I missing something?

I landed on this repo because npmjs.org showed results that haven't been updated in years. It would seem that embedded Linux isn't a popular use case for node.js (despite the node-red project which used to ship with RPi OS).
I would say you missed this if you didn't understand that the char dev API depends on using the Linux kernel's  ioctl() (which can be differently implemented per OS/platform). The hard part is safely exposing C++ in node.js.
Alternative Idea

The authors of libgpiod (which is a convenience wrapper for the Linux kernel's char dev API) also ship a rust binding. I thought about wrapping that binding in a napi-rs project, but (like this node-gpiod project) it is not a simple undertaking. The only benefit is that a napi-rs project can ship compiled binaries/modules (*.node) as optional dependencies (per arch type) of a root package (which includes generated TS type definitions).


No tests for lang.array:push()

Description:
$title?
Checked in https://github.com/ballerina-platform/ballerina-lang/blob/v1.0.5/langlib/langlib-test/src/test/resources/test-src/arraylib_test.bal but couldn't find any.
https://github.com/ballerina-platform/ballerina-lang/pull/20190/commits/615b8da62c76cfc796b20cf6373cb407897d1475 adds a test for byte[]:push()

Need to add test covering the scenario mentioned in https://github.com/ballerina-platform/ballerina-lang/issues/19730 too.


Improved HuggingFace Connectors

Description

Current HF connectors are too limited so I end up creating my own most of the time.
Development notes

Similar code that I have been using in my projects.
Checklist

[ ] Opened this PR as a 'Draft Pull Request' if it is work-in-progress
[ ] Updated the documentation to reflect the code changes
[ ] Added a description of this change in the relevant RELEASE.md file
[ ] Added tests to cover my changes

@merelcht
I have created this draft PR to start a discussion on some points. Let me know what you people think so I can update it accordingly. Right now, test, documentation is missing cuz I wanted to get the design first.

Thanks @lordsoffallen , I'll bring it up with the team 🙂  In the meantime could you maybe explain a bit more on in what respect the other hugging face datasets are too limited?

Thanks @lordsoffallen , I'll bring it up with the team 🙂 In the meantime could you maybe explain a bit more in what respect the other hugging face datasets are too limited?

Sure. Current ones don't support local load/save operation, in fact HFDataset don't support save at all so checkpointing datasets at different stages isn't doable as is in kedro. Other one which is transformer oriented is using pipeline only. Having model and tokenizer separately brings more functionality to user than pipeline itself.
I would say it would be good to think about the whole new pretrained model usecases in kedro. All of the connectors about the data and I am aware models somehow can be used in the same manner but it feels a bit more of hack. Perhaps we'd need something like kedro_models to put them all together? Bunch of tools to help manage models? Essentially when we work with huggingface models, a lot of configs are model related so organizing them in a catalog would be more kedro centric.

Thanks for sharing more context @lordsoffallen. I personally haven't worked with hugging face yet, but it does sound like kedro datasets aren't fully matching the models use case. Looping in @astrojuanlu who created the current hugging face dataset to hear his thoughts.

Hey @merelcht @astrojuanlu,
Sorry I also forgot about this for a while. Now getting back to it, I share my two cents here:
LLM workflows is tricky to use with kedro at the moment. Because I like the framework and i wanted to make it work with kedro. I believe suggestions are to make it fit into the current style but I believe for LLMs we need a different style than normal one. I think I will work on creating a extension kind of version as I don't see high prio for that on kedro roadmap atm. I will share the updates later on with the community in case anyone find it useful.

@lordsoffallen Just yesterday I opened this discussion https://github.com/kedro-org/kedro/discussions/3979 I'd love to know what makes LLM workflows difficult in Kedro. Do you mind elaborating a bit more there?

@lordsoffallen Just yesterday I opened this discussion kedro-org/kedro#3979 I'd love to know what makes LLM workflows difficult in Kedro. Do you mind elaborating a bit more there?

Sure, I'll share my workflow and how i image it there :+1:

Hi @lordsoffallen , do you still want to finish this PR and make it ready for review?

Hi @lordsoffallen , do you still want to finish this PR and make it ready for review?

Hi, thanks for the reminder, kind of forgot about this PR. I think the discussion thread wasn't too busy so I'd say nothing is concluded there yet. With that mind, I don't know the need nor the use case of other people good enough to have something here.  I think we can close the PR until we have something that is concluded that can be implemented. Meanwhile, I can play with my own implementation and see how that works in general.

That sounds good, thank you @lordsoffallen! I really appreciate you thinking with us on this topic ⭐


 Tick all applicable boxes

[x] Added new abbreviation
[x] Fixed something in the source code
[ ] Added a new feature
[ ] Fixed the docs (README.md, CONTRIBTUING.md, etc)

Describe the new changes you added.

Share a screenshot of new changes

LGTM

@PriyansuMaurya how is this going?

No problems. You can get back to it whenever. Was just checking in

Super late review, but I think gsoc and linkedin can also go.

Super late review, but I think gsoc and linkedin can also go.

This is hardest pull request I have made. 🥲🥲
I'll do it anyway 😜. It's just 2 files.

I'm so sorry to put you through all the trouble! I appreciate you for sticking around even though I review the pull requests too much haha. Thank you for the new changes.


Unable to add LABELS with forward slash for Elastic Common Schema (ECS) formatting

Environment:

Jib version: 3.2.1
Build tool: Maven 3.6.3
OS: macOS Monterey

Description of the issue:
I would like to build an image with filebeat LABELS in order to push Elastic Common Schema (ECS) formatting logs to my Elastic instance.
See documentation here.
The problem is I am not able to set labels as there is a forward slash in the key:
co.elastic.logs/json.keys_under_root: true
co.elastic.logs/json.overwrite_keys: true
co.elastic.logs/json.add_error_key: true
co.elastic.logs/json.expand_keys: true

Is there any way to deal with that situation?
Or Maybe is that possible to integrate the possibility to set labels another way as:
            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>jib-maven-plugin</artifactId>
                <version>3.2.1</version>
                <configuration>
                    <from>
                        <image>gcr.io/distroless/java17-debian11</image>
                    </from>
                    <to>
                        <image>...</image>
                    </to>
                    <container>
                        <ports>
                            <port>8080</port>
                        </ports>
                        <labels>
                            "co.elastic.logs/json.keys_under_root"=true
                            "co.elastic.logs/json.overwrite_keys"=true
                            "co.elastic.logs/json.add_error_key"=true
                            "co.elastic.logs/json.expand_keys"=true
                        </labels>
                    </container>
                </configuration>
            </plugin>

Expected behavior:
Steps to reproduce:

jib-maven-plugin Configuration:
            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>jib-maven-plugin</artifactId>
                <version>3.2.1</version>
                <configuration>
                    <from>
                        <image>gcr.io/distroless/java17-debian11</image>
                    </from>
                    <to>
                        <image>...</image>
                    </to>
                    <container>
                        <ports>
                            <port>8080</port>
                        </ports>
                        <labels>
                           <co.elastic.logs/json.keys_under_root>true</co.elastic.logs/json.keys_under_root>
                           <co.elastic.logs/json.overwrite_keys>true</co.elastic.logs/json.overwrite_keys>
                           <co.elastic.logs/json.add_error_key>true</co.elastic.logs/json.add_error_key>
                           <co.elastic.logs/json.expand_keys>true</co.elastic.logs/json.expand_keys>
                        </labels>
                    </container>
                </configuration>
            </plugin>

Log output:
Additional Information:

One workaround is to set Maven properties. System properties (e.g., `-Djib.container.labels=... on the command-line) also work. The format is comma-separated key-value pairs:
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    ...
    <jib.container.labels>co.elastic.logs/json.keys_under_root=true,co.elastic.logs/json.overwrite_keys=true</jib.container.labels>
  </properties>

Looks like we can use Properties instead of Map for our configuration Mojo, which seems backward-compatible. But I think it would still not possible to use special characters in key names due to the XML syntax constraint.

I confirm it works fine with:
<properties>
        ...
        <jib.container.labels>
            co.elastic.logs/json.keys_under_root=true,
            co.elastic.logs/json.overwrite_keys=true,
            co.elastic.logs/json.add_error_key=true,
            co.elastic.logs/json.expand_keys=true
        </jib.container.labels>
</properties>

Thank you guy. 👍

You should verify the actual values by docker inspect. From my testing, some degree of whitespace seems ignored, but in my case, the first label ended up being
\n      co.elastic...

Effectively. While doing docker inspect I have below data but it works fine as filebeat is able to push correct logs to Elastic:
"Labels": {
                "\n            co.elastic.logs/json.add_error_key": "true",
                "\n            co.elastic.logs/json.expand_keys": "true",
                "\n            co.elastic.logs/json.overwrite_keys": "true",
                "co.elastic.logs/json.keys_under_root": "true"
}

Thank you so much for the workaround Chanseok! And thanks for verifying @HamedKaramoko! Hopefully this will be helpful for those who come across this issue in the future.

Closing this issue as there is a viable workaround.


lang/latex +fold: fix error when yas-snippet-{beg,end} are nil

This hook sometimes errors out because yasnippet ...forgets? to set yas-snippet-{beg,end}.
It occurs for some snippets and I think it only started about a month ago. Not sure why

Thanks!


DDL generator tends to skip ( )

Describe the bug
DDL generator skips brackets for :
varchar255 instead of varchar (255)
character varying255 instead of character varying (255)
Screenshots
If applicable, add screenshots to help explain your problem.

@ramyashreeshetty , hi! thanks for reporting the issue - will fix on weekend


If so, just wanted to add you to the contributors group there :D. https://go.zenstack.dev/chat


fix: remove current user membership

Closes WID-836
Open questions:
https://linear.app/worldcoin/issue/WID-836/idor-devportal-team-owners-can-delete-themselves-off-of-their-own-team#comment-82ae3458

This doesn't actually solve the error. Someone could just modify the graphql request and still delete themselves from curl.


After updating - Error: [$compile:tpload] Failed to load template

After updating from angular 1.5.6 => 1.6.2 and ui-router 0.3.1 => 0.4.2 I am now getting this error:
Error: [$compile:tpload] Failed to load template: app/views/frontendLayout.html (HTTP status: undefined undefined)
http://errors.angularjs.org/1.6.2/$compile/tpload?p0=app%2Fviews%2FfrontendLayout.html&p1=undefined&p2=undefined
    at http://localhost:4011/lib/angular/angular.js:68:12
    at handleError (http://localhost:4011/lib/angular/angular.js:19778:20)
    at processQueue (http://localhost:4011/lib/angular/angular.js:16689:37)
    at http://localhost:4011/lib/angular/angular.js:16733:27
    at Scope.$eval (http://localhost:4011/lib/angular/angular.js:18017:28)
    at Scope.$digest (http://localhost:4011/lib/angular/angular.js:17827:31)
    at Scope.$apply (http://localhost:4011/lib/angular/angular.js:18125:24)
    at bootstrapApply (http://localhost:4011/lib/angular/angular.js:1845:15)
    at Object.invoke (http://localhost:4011/lib/angular/angular.js:4862:19)
    at doBootstrap (http://localhost:4011/lib/angular/angular.js:1843:14) undefined

Config
    .config(function ($stateProvider, $urlRouterProvider, $httpProvider, jwtInterceptorProvider,
        $uibTooltipProvider, toastrConfig, $locationProvider) {
        $locationProvider.hashPrefix('');

[...]

        $urlRouterProvider.otherwise('/');

[...]

        $stateProvider
            .state('frontend', {
                templateUrl: 'app/views/frontendLayout.html',
                abstract: true,
                data: {
                    authorize: false
                }
            })
            .state('frontend.login', {
                templateUrl: 'app/accounts/views/accountsLogin.html',
                controller: 'accountsLoginController',
                data: {
                    bodyClass: 'login-page'
                }
            })
            .state('frontend.login.info', {
                url: '^/',
                templateUrl: 'app/accounts/views/accountsLoginInfo.html',
                data: {
                    pageTitle: 'Log In'
                }
            })
            .state('frontend.login.twoFactor', {
                url: '^/two-factor',
                templateUrl: 'app/accounts/views/accountsLoginTwoFactor.html',
                data: {
                    pageTitle: 'Log In (Two Factor)',
                    authorizeTwoFactor: true
                }
            })
            .state('frontend.logout', {
                url: '^/logout',
                controller: 'accountsLogoutController',
                data: {
                    authorize: true
                }
            })

[...]

Any ideas?

0.4 uses $templateRequest
you can try switching back to  $http as mentioned in the release notes.

@christopherthielen
I did see that mentioned in the release notes, however, when I try to use $templateFactoryProvider.shouldUnsafelyUseHttp(true) I get a different issues. I'd prefer to use this new $templateRequest way but I couldn't find anything documented that showed me how to change what I have to work with $templateRequest.
Anyways, I have created a branch in our codebase that reproduces the problem for you:
https://github.com/bitwarden/web/tree/update
git clone git@github.com:bitwarden/web.git
git checkout update
npm install
gulp serve

Access the website at http://localhost:4011 (you will see the issue here).
"Error: [$compile:tpload] Failed to load template: app/views/frontendLayout.html (HTTP status: undefined undefined)
http://errors.angularjs.org/1.6.2/$compile/tpload?p0=app%2Fviews%2FfrontendLayout.html&p1=undefined&p2=undefined
minErr/<@http://localhost:4011/lib/angular/angular.js:68:12
handleError@http://localhost:4011/lib/angular/angular.js:19778:20
processQueue@http://localhost:4011/lib/angular/angular.js:16689:37
scheduleProcessQueue/<@http://localhost:4011/lib/angular/angular.js:16733:27
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost:4011/lib/angular/angular.js:18017:16
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://localhost:4011/lib/angular/angular.js:17827:15
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:4011/lib/angular/angular.js:18125:13
bootstrapApply@http://localhost:4011/lib/angular/angular.js:1845:9
invoke@http://localhost:4011/lib/angular/angular.js:4862:16
bootstrap/doBootstrap@http://localhost:4011/lib/angular/angular.js:1843:5
bootstrap@http://localhost:4011/lib/angular/angular.js:1863:12
angularInit@http://localhost:4011/lib/angular/angular.js:1748:5
@http://localhost:4011/lib/angular/angular.js:33129:5
jQuery.Callbacks/fire@http://localhost:4011/lib/jquery/jquery.js:3187:11
jQuery.Callbacks/self.fireWith@http://localhost:4011/lib/jquery/jquery.js:3317:7
.ready@http://localhost:4011/lib/jquery/jquery.js:3536:3
completed@http://localhost:4011/lib/jquery/jquery.js:3552:2
" undefined

If I uncomment the $templateFactoryProvider.shouldUnsafelyUseHttp(true) option mentioned in the release notes I get no error but no template file loads (just blank page).

This is caused by your angular-jwt code throwing an exception while trying to inject a function.  It's due to no config registered with DI.

@christopherthielen Wow, I'm really sorry about that. I hope I didn't waste too much of your time. Thanks.

No problem

And，How to Fix it？


Add config for pluralize route resources ex: /post will be /posts

done in we-core 1.10.0

done in we-core 1.10.0


Mechanism for attaching arbitrary metadata to packets

We need a way to support attaching arbitrary metadata to SnS' packet_t, which minimizes the overhead of passing packets around when packet metadatas are not used (ideally, the overhead would be ~zero for that case).

This may not be needed in the end. Given that the current implementation provides Scanner objects (code) which contain the state of the L7 packet analyzer, and that an instance can be explicitly passed to the L7Spy application, it seems easier to just allow later on the same Scanner instance to be passed to the L7Fw application. That way the L7Fw can first check simpler conditions (below Layer-7), and if needed pull the associated packet flow from the Scanner object to perform L7 checks on packets.
Due to that, I am closing this for the moment. Though it still would be interesting to have a “generic per-packet metadata” mechanism in Snabb, it is not strictly needed for SnabbWall.


Fix Refresh Rate (FPS) issues on certain android devices

Update refresh rate selection to choose the highest FPS with the widest range in order to improve compatibility across devices and avoid selecting obscenely low fps values.
The purpose of this is to help mitigate issues like #492
Essentially on some android devices like some variants of the samsung galaxy J7 the camera displays a possible refresh value of 7000-7000 which under the current algorithm will always be selected.  However, for the purposes of scanning that makes the refresh rate far too low and the device lags and struggled to scan the image.  This change will adjust the algorithm to keep selecting similar values as the current one to maintain high compatibility but avoid the extremely low refresh rate options.
Samsung J7 FPS Ranges:
7000-7000
15000-15000
24000-24000
8000-30000
10000-30000
15000-30000
30000-30000
Current Selected Refresh Range (before this change):
7000-7000
New Selected Refresh Range (with this change):
8000-30000

@Redth btw - I know this is a selfish request but if you agree with this change and decide to merge it please move it into the next 3.0 beta build....my team has been using a custom branch of a version of this library from years ago because of this bug and this is the last issue in the official builds preventing us from switching back to the official releases :)  Thanks again for starting to give this library some love again - its greatly appreciated!


Cell bender analysis

This is very good.
I have a couple of comments on the work:

The names have the right naming, but it would be good to know what the difference between ambient and full is. Also, we need to know what is the final result. Which fdr value did you choose?

Since we want to evaluate how well the ambient contamination was removed from the other non-myocyte cells, we need markers for those cell compartments to visualise them in the UMAP. I left some on the notebook.

Hi Carlos,
I have updated the filenames, filtering , genes and all suggested changes in the commit. Could you please have a look and share your thoughts/suggestions .
commit 9236d41c66e613a94e55d8b19db319f95a531da9
commit name : Corrected filenaming, filtration

Hi Carlos
I have added the updated figures with appropriate file naming and figures in following commit which I made recently
Commit id : 7a83a9ebbdedf5ef59a6f49007061e94391d5886
Commit name : Added new genes from empty droplets and additional plotting
Link for the commit : Added new genes from empty droplets and additional plotting


EXIDecodingError occurred while processing message  in state AuthorizationSetup

While using ISO15118_20 protocol using CG5317 hardware, the code is breaking in authorization step on SECC side.
However, when I run the communication protocol for EVCC and SECC on same local machine, the code runs fine.
Below is the error which I am getting from the communication session logs:
iso15118.shared.comm_session (221): EXIDecodingError (Exception): Transformer Exception: java.io.EOFException: Premature EOS found while reading data.
Is there any way to handle it or bypass it.

I wonder if the message to be decoded has been passed to the codec at all.
Could you share the AuthorizationSetup message and the corresponding exi stream, please?

Hi :)
i have the same problem that josev can not decode the lower exi stream. Same error message as described above.
Exi stream: 800c04790c8adceeee09688d6cac3a6062000200
AuthorizationSetupRes:
{
    "AuthorizationSetupRes": {
        "Header": {"SessionID": "F21915B9DDDC12D1", "TimeStamp":<PHONE_NUMBER>},
        "ResponseCode": "OK",
        "AuthorizationServices": ["EIM"],
        "CertificateInstallationService": true,
        "EIM_ASResAuthorizationMode": {}
    }
}

Hi @SebaLukas ...closing this issue following your comment.


1742 application batch deletion

Fixes #1742

Codecov Report
Base: 61.76% // Head: 8.52% // Decreases project coverage by -53.24% :warning:

Coverage data is based on head (e6a9b78) compared to base (a308709).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #1778       +/-   ##
==========================================
- Coverage   61.76%   8.52%   -53.25%
==========================================
  Files         178      90       -88
  Lines       13628    9212     -4416
==========================================
- Hits         8417     785     -7632
- Misses       4150    8373     +4223
+ Partials     1061      54     -1007

Flag
Coverage Δ

acceptance-api
?

acceptance-apps
?

acceptance-cli
?

unittests
8.52% <0.00%> (-0.03%)
:arrow_down:

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

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

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

Checked working after release v1.4.0
➜  ~ epinio app delete testapp-1 testapp-2

🚢  Deleting Applications...
Names: testapp-1, testapp-2
Namespace: workspace

✔  Applications Removed.

➜  ~ epinio version
Epinio Version: v1.4.0
Go Version: go1.18.5


DD-1438: PR on PR - testing IngestPathMonitor

Fixes DD-1438: testing IngestPathMonitor
Description of changes
How to test
Related PRs
(Add links)

Notify
@DANS-KNAW/core-systems

replaced by #2


bug: org.apache.comet.CometNativeException: range end index 8221 out of range for slice of length 8192

Describe the bug
It looks like we may have a hard-coded assumption in shuffle where we cannot process an incoming batch that is larger than the default batch size.
I have seen this error more than once but currently have a repro so will document this more as I investigate.
org.apache.comet.CometNativeException: range end index 8221 out of range for slice of length 8192
        ...
        at org.apache.comet.Native.executePlan(Native Method)
        at org.apache.comet.CometExecIterator.executeNative(CometExecIterator.scala:72)
        at org.apache.comet.CometExecIterator.getNextBatch(CometExecIterator.scala:129)
        at org.apache.comet.CometExecIterator.hasNext(CometExecIterator.scala:144)
        at org.apache.spark.sql.comet.execution.shuffle.CometShuffleWriteProcessor.write(CometShuffleExchangeExec.scala:492)
        at org.apache.spark.sql.comet.shims.ShimCometShuffleWriteProcessor.write(ShimCometShuffleWriteProcessor.scala:35)
        at org.apache.spark.sql.comet.shims.ShimCometShuffleWriteProcessor.write$(ShimCometShuffleWriteProcessor.scala:28)
        at org.apache.spark.sql.comet.execution.shuffle.CometShuffleWriteProcessor.write(CometShuffleExchangeExec.scala:448)

Steps to reproduce
No response
Expected behavior
No response
Additional context
No response

I don't see this before. If there is reproducible example for this, it will be easier to debug.


FOR REVIEW: easier access for entity config by name (not ConfigKey)

Inspired by several sightings of client code downcasting Entity to EntityInternal just for the purpose of accessing the raw config map with simple string keys.
Ensures that appropriate type coersions are performed on the returned result, including resolution of DeferredSupplier values.
IMO, "ad-hod" config (i.e. named entries in the brooklyn.config clause that do not correspond to explicit ConfigKey declarations) is extremely useful, especially for customising the behaviour of stock entities without subclassing.

Comments welcome!

@alasdairhodge I have compiled this PR using my mac OS X 10.9.5. I do not know why Jenkins is not happy

It seems the issue is unrelated to this PR. @neykov could you check the test failure?

@alasdairhodge can you rebase this please so we can see if all the tests pass?
I'm still not sure about us calling deferredSupplier.get() inside coerce. I have a couple of big worries. First that it might have unanticipated side-effects for other code (e.g. code that is supposed to be non-blocking might now block). And second that it is only doing a small part of what ValueResolver does (e.g. handle DeferredSupplier, Task, Future, and deep inspection to resolve values inside maps, lists, etc).
The second point means that it might work in certain use-cases and then break in other use-cases. If we want the value to really be resolved, then perhaps we should go through the same code path as the existing config().get(key), but with the type being passed in rather than being obtained from the type defined in the ConfigKey.


Not getting environment from DOTNET_ENVIRONMENT variable

I set DOTNET_ENVIRONMENT to "Development" but app still thinks is "Production"
#r "sdk:Microsoft.NET.Sdk.Web"

using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Configuration;

var builder = WebApplication.CreateBuilder();
var app = builder.Build();

app.Logger.LogInformation($"EnvironmentName: {app.Environment.EnvironmentName}"); // EnvironmentName: Production
// above should be Development

app.Logger.LogInformation($"IsDevelopment(): {app.Environment.IsDevelopment()}"); // IsDevelopment(): False
// above should be True

string env = Environment.GetEnvironmentVariable("DOTNET_ENVIRONMENT", EnvironmentVariableTarget.Machine);
app.Logger.LogInformation($"env: {env}"); // env: Development
// above shows that env var is set

app.MapGet("/", () => "Hello world");

app.Run("http://localhost:5178");

Nevermind. You have to open a new cmd window for env var edits to be applied in Configuration. But I guess that's not the case for GetEnvironmentVariable()


Docs: correct CursorKeys

This PR

Updates the Documentation

Its properties (left, right, etc.) are never undefined.

👍


3.0 - Final Phase, stage continued #21

Continuing the work in \App\Core\BaseModel.

@LuckyCyborg Btw, Why no camelCase for methods?

@tomvlk The methods can be called both camelCase and snake_case. I.e.
updateBy
deleteBy
deleteMany
findAll


deploy.before and deploy.after not firing when using --on connection

I have some events set up like this-
Rocketeer::listenTo('deploy.before', function ($task) {
});

That event fires if I just do a rocketeer deploy. If I do a rocketeer deploy --on=production, it doesn't fire. Same with deploy.after. I also have a deploy.before-symlink event, and that does fire.
This is rocketeer version 2.2.5

Probably related to #725


Allow non-erased hidden arguments (but make them explicit)

Currently, agda2hs doesn't allow functions to have non-erased hidden arguments, unless they are Set or Level. I would like to propose we allow other kind of hidden arguments: we simply make them explicit on the Haskell side.
While this doesn't fit the philosophy of only making Haskell patterns available in Agda, I think there is a good motivation for it when doing intrinsic verification: tactic arguments.
We can use such tactics on the Agda side to lighten the syntax, even though we care about the solutions on the Haskell side.

The exemple I have in mind is Jesper's syntax for agda-core:
data Term α where
  var    : (@0 x : Name) → {@(tactic auto) x∈α : x ∈ α} → Term α

Such a definition permits using names on the Agda side and letting Agda figure out indices in the global scope using a tactic. However, we want names to be erased and the index to be preserved.

This is a somewhat different way of using agda2hs than what we intended so far since there is no direct 1-to-1 correspondence between the concrete Agda syntax and Haskell syntax. However, I think it still makes sense because we are making use of the richer (erased) types on the Agda side to derive the actual Haskell program. So I think this is a sensible addition to make.


[MM-25263] Add selector to get profiles in group

Summary

Modify the groups redux store to have members be loaded into the users so that we can re-use existing search logic.
Adds redux for group stats since we will no longer be calling the group members endpoint

Ticket Link

https://mattermost.atlassian.net/browse/MM-25263

Hi @fmunshi
I am ready to pick this PR for testing. Can you please resolve the merge conflicts. Thanks.

@srkgupta I have resolved the merge conflicts here and updated the webapp with the latest redux hash


SDM example is not rendering in docs

https://rafaqz.github.io/Rasters.jl/dev/tutorials/gbif_wflow
Looks like there's some failure when evaluating...cc @tiemvanderdeure
using SpeciesDistributionModels is the first line of the first failing block.

the issue is that StatsBase is not in the Project.toml. I will add it in #844

ok, I fixed that, but at the end we still have:
julia> suitability = SDM.predict(ensemble, se_aus, reducer = mean)
ERROR: Use maplayers(f, stack)) instad of map(f, stack)
Stacktrace:

so the issue now is with SDM, and not Rasters per se.

Ah ok it's a recent DD change to maplayers

Thanks, I'll fix that in SDM


[DO NOT MERGE] testing build pipelines

Description
many KEB PRs recently started failing for all PR checks
error building image: error building stage: failed to optimize instructions: failed to get files used from context: failed to get fileinfo for /home/prow/go/src/github.com/kyma-project/control-plane/components/kyma-environment-broker/vendor: lstat /home/prow/go/src/github.com/kyma-project/control-plane/components/kyma-environment-broker/vendor: no such file or directory
build encountered error: exit status 1

Related issue(s)

getting addressed in https://github.com/kyma-project/control-plane/pull/2102


Add FileAgeCollector

FileAgeCollector collects and reports on the age (modified time) in seconds for any number of files.
Largely based on other collectors already in the repo.

Thanks!

Glad to contribute to a great project. I notice that it doesn't show in the collector list on the wiki. Is there something I need to add for automatic wiki documentation?

bump


[GLUTEN-1632][CH]Daily Update Clickhouse Version (20240817)

Auto commit by gluten daily build, please check the build status and merge it if it's green.

Run Gluten Clickhouse CI

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query
log/native_master_08_17_2024_time.csv
log/native_master_08_16_2024_6dcf83f752_time.csv
difference
percentage

q1
39.90
40.99
1.091
102.73%

q2
30.03
30.15
0.117
100.39%

q3
51.89
53.31
1.419
102.74%

q4
42.76
42.30
-0.452
98.94%

q5
106.68
105.58
-1.104
98.97%

q6
12.55
12.97
0.418
103.33%

q7
117.03
116.05
-0.985
99.16%

q8
115.91
116.44
0.525
100.45%

q9
169.40
168.30
-1.107
99.35%

q10
66.04
66.48
0.438
100.66%

q11
29.98
27.13
-2.844
90.51%

q12
30.43
29.28
-1.150
96.22%

q13
52.04
52.14
0.103
100.20%

q14
26.79
25.75
-1.037
96.13%

q15
53.85
54.10
0.254
100.47%

q16
18.94
18.35
-0.587
96.90%

q17
131.04
131.98
0.931
100.71%

q18
199.20
201.13
1.928
100.97%

q19
26.37
28.08
1.706
106.47%

q20
41.70
43.76
2.060
104.94%

q21
378.35
383.76
5.409
101.43%

q22
16.42
15.87
-0.553
96.63%

total
1757.29
1763.87
6.579
100.37%


how to use in android? the dialogflow api V2

I want use it in android ? Is there a simple of Android?

Add dependency
    // Java V2
    implementation 'com.google.cloud:google-cloud-dialogflow:0.67.0-alpha'
    implementation 'io.grpc:grpc-okhttp:1.15.1'

Initiate Dialogflow Agent
try {
            InputStream stream = getResources().openRawResource(R.raw.test_agent_credentials);
            GoogleCredentials credentials = GoogleCredentials.fromStream(stream);
            String projectId = ((ServiceAccountCredentials)credentials).getProjectId();

            SessionsSettings.Builder settingsBuilder = SessionsSettings.newBuilder();
            SessionsSettings sessionsSettings = settingsBuilder.setCredentialsProvider(FixedCredentialsProvider.create(credentials)).build();
            sessionsClient = SessionsClient.create(sessionsSettings);
            session = SessionName.of(projectId, uuid); // uuid = UUID.randomUUID().toString()
        } catch (Exception e) {
            e.printStackTrace();
        }

Make query request
QueryInput queryInput = QueryInput.newBuilder().setText(TextInput.newBuilder().setText("Hi I am Abhinav").setLanguageCode("en-US")).build();
            new RequestJavaV2Task(MainActivity.this, session, sessionsClient, queryInput).execute();

Call Agent in AsyncTask
@Override
    protected DetectIntentResponse doInBackground(Void... voids) {
        try{
            DetectIntentRequest detectIntentRequest =
                    DetectIntentRequest.newBuilder()
                            .setSession(session.toString())
                            .setQueryInput(queryInput)
                            .build();
            return sessionsClient.detectIntent(detectIntentRequest);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

Capture response
@Override
   protected void onPostExecute(DetectIntentResponse response) {
      if (response != null) {
           String botReply = response.getQueryResult().getFulfillmentText();
       }
   }

Hello, I have followed the medium post and my code is identical to the code in the medium post for v2. Initially this worked for me but after adding some intents and additional training I can no longer seem to receive anything with sessionsClient.detectIntent(detectIntentRequest); (returns null). I have webhook enabled rather than using the inline editor (and have in enabled for my intents) as I have a lot of intents. I have rechecked my keys and the only real difference I can find is that i am not using the inline editor for fulfilment.
I am not sure how I can troubleshoot this problem, and its pretty vital that I get this working. Any thought on what the problem might be, or any solutions?

Please see if you have enabled the individual webhook support for the new intents. Normally, I add new intents one by one and verify if the newly added are working or not rather than adding all the changes at once. Try and see if you could revert back to the working stage and add your changes one step at a time. This will help you to find the root cause.

Thankyou for the fast reply! I have reverted back to an early version using only the default welcome and fallback intents using the inline editor, however this has not resolved my issue. I have double checked my code against the tutorial on medium and the repository and it is identical except for different variable and class names. I have spent the morning going over my authentication settings in my build.gradle, and have generated a new json file placed in the res\raw (android studio) directory to account for any changes which might have happened there.
Given the identical code and simple agent, I can only assume that the issue is with the authentication process or connection which is preventing me from either sending a query or receiving a response.

The only obvious errors I can find are when I click on "View execution logs in the Firebase console".  This shows the errors:
""@type":"type.googleapis.com/google.cloud.audit.AuditLog","status":{"code":10,"message":"An operation on function dialogflowFirebaseFulfillment in region us-central1 in project newagent-***** is already in progress. Please try again later."}
and,
"Warning, estimating Firebase Config based on GCLOUD_PROJECT. Initializing firebase-admin may fail"
Thanks in advanced.

I discovered the issue. My "implementation 'io.grpc:grpc-okhttp:1.15.1'", which I had used when creating the project originally from the Medium tutorial had become out of date. I have replaced it with implementation "io.grpc:grpc-okhttp:1.18.0'". It works now.

I discovered the issue. My "implementation 'io.grpc:grpc-okhttp:1.15.1'", which I had used when creating the project originally from the Medium tutorial had become out of date. I have replaced it with implementation "io.grpc:grpc-okhttp:1.18.0'". It works now.

Hello! I'm new into this, and I don't know how to import the RequestJavaV2Task class, could you help me? Thanks!

@abhi007tyagi hi, thankyou for your code. i've implemented it on my application.
But i wonder how to make double responses on android. it would be great if it can.

In  InputStream stream = getResources().openRawResource(R.raw.test_agent_credentials);
What is test_agent_credentials file??
Also
buildConfigField 'String', "ClientAccessToken", '"abcd"'             resValue 'string', "ClientAccessToken", '"abcd"'
how to give to ClientAccessToken to abcd
@abhi007tyagi  @AmberL0uise @ariestwn

@abhi007tyagi
Sir i found this  in medium post

It has your security key (JSON file) to use the Dialogflow API

Where can i found this json file , or i need to create the json file?

@abhi007tyagi
Hi Sir,
How can I pass parameter to with the QueryInput.
I have succeed in sending parameter with an event call using queryinput.setEvent().setParameter(). But cannot find a way to sent parameter with QueryInput for not an event case .

I think sending parameters from events will be the best options as it will trigger the event only which requires that param. You can try and add the event in the Dialogflow for the context/intent you want to use that parameter and test.
Note: Please do not address me as Sir :)

Hi, I followed your medium tutorial and referred to your code on Github for integrating Dialogflow using the Java client API, however it seems that the response generated from callbackv2() is always null.
However in the case of the api.ai:sdk, the response was generated.
Is it a linkage issue? I mean tried running the application with service account key saved as .JSON file and once as a .file still the response is always generated as null.

I am using the current setup in one of my project. Make sure you have first tried my Java V2 code as it is. See if you have commented any code. It should work.

Hi, I am using Java V2 with exactly the same code and dependencies, while I got this error when sessionsClient.detectIntent():
com.google.api.gax.rpc.UnavailableException: io.grpc.StatusRuntimeException: UNAVAILABLE: NameResolver returned an empty list

Then I tried tweaking with different dependency versions, such as this one:
implementation 'com.google.cloud:google-cloud-dialogflow:0.102.0-alpha'
implementation 'io.grpc:grpc-okhttp:1.22.1'

which leads to another error when running sessionsClient.detectIntent():
com.google.api.gax.rpc.UnavailableException: io.grpc.StatusRuntimeException: UNAVAILABLE: Unable to resolve host dialogflow.googleapis.com

Seems like dialogflow is no longer supported by grpc?
I appreciate any suggestions or solutions!

@abhi007tyagi
Thank you very much for providing us with the sample code， i have worked with it in an android app taking advantage of Dialogflow V2 API.
But how do I use the Java V2 API to implement voice triggers and feedback, do you have any good suggestions?
I am looking forward to your reply. Thanks a lot in advance!

You can implement your own Android's speech to text feature and the converted text can be sent as a query to your agent in Dialogflow.

@abhi007tyagi
Thankyou for the fast reply! I want to know that can i use the Dialogflow API V2 to do this directly? And i can receive the voice feedback and not just the text.

I don't think so.

I've implemented a connection to dialog flow with a similar code that is described in the medium post. I've used only Java V2 API. I had some difficulties with dependencies, but it finally works with this configuration:
    implementation 'com.google.cloud:google-cloud-dialogflow:0.120.2'
    implementation 'io.grpc:grpc-okhttp:1.27.2'
    implementation group: 'io.grpc', name: 'grpc-core', version: '1.27.2'`

Hey @Wewe12, is there a specific reason you used:
implementation 'com.google.cloud:google-cloud-dialogflow:0.120.2'?
I was able to make it work with:
implementation 'com.google.cloud:google-cloud-dialogflow:1.0.0'
implementation 'io.grpc:grpc-okhttp:1.27.2'
implementation 'io.grpc:grpc-core:1.27.2'

@Corsage When I was implementing my solution dialogflow:1.0.0 wasn't released yet.
I've updated and it also works for me with 1.0.0.

I followed the "https://github.com/abhi007tyagi/DialogflowChat" to write a Dialogflow Chatbot app.
With using response.getQueryResult().getFulfillmentText(), I can get correct text (both English/ Chinese character) .
Now I would like add rich response in app(such as suggestions,  basic_card).
I used following command("response.getQueryResult().getFulfillmentMessagesList()") to get all message
But all Chinese Characters become a serial of number("\344\270\255\346\226\207" <--- should show "中文") where in the String.
A port of response show in the Logcat:
fulfillment_messages {
platform: ACTIONS_ON_GOOGLE
suggestions {
suggestions {
title: "English"
}
suggestions {
title: "\344\270\255\346\226\207"
}
What is the format of the above serial of number? Can anyone give me hint to convert it to Chinese Character?
Thank you in advance.

@abhi007tyagi  I am following your tutorial on dialogflow api V2 in android, but always getting a null DetectIntentResponse. Can you please help?
Thanks

Hi, @abhi007tyagi, I've been following your tutorial to create a chatbot, but I keep getting hit with this error: "There was some communication issue. Please Try again!". Any idea why? Thanks!

@sebzharshan if you are building a signed release build you need to add proguard rules. Check my GitHub page and see latest solved issue to get the exact proguard rules.

Will do. Thanks, @abhi007tyagi!

@sebzharshan try this
-keep public class com.google.api.gax.core.** {   public protected *; } -keep public class com.google.auth.oauth2.** {   public protected *; }

So, I added these to the 'proguard-rules.pro', but it still seems to be giving the same error. Just to make sure, all I'm supposed to do is enter these in the 'proguard-rules.pro', right? @abhi007tyagi

@sebzharshan yes

I see. Thanks anyway, @abhi007tyagi.

@abhi007tyagi I am following your tutorial on dialogflow api V2 in android, but always getting a null DetectIntentResponse. Can you please help?
Thanks

I don't know if you figured it out or not, in case you didn't, or if anyone else is facing the same issue: I found out that the 'null DetectIntentResponse' issue had something to do with the API Key (.json file).
Here's how to resolve it;

Create a new API Key (for cloud services) from the GCP.
Download the JSON file, copy the content in it, and save it in a .json file in the res/raw.

Hope this helps!

@sebzharshan Well in my article I have already mentioned that you will need to create your own JSON. In case, you or anyone want an easy way, I have created an Android library to easily integrate a chatbot into your app. Just follow my new medium post for details Android Dialogflow Chatbot Library

@sebzharshan Well in my article I have already mentioned that you will need to create your own JSON. In case, you or anyone want an easy way, I have created an Android library to easily integrate a chatbot into your app. Just follow my new medium post for details Android Dialogflow Chatbot Library

Oh, I see. Thanks for the reply!

@abhi007tyagi sir I am new to this domain can you please help me in it. I am unable to get where to put the projectid, and other keys in the code given by you.

@Guru09 It is assumed that you know the basic knowledge of creating Chatbots using Dialogflow and Android apps. If you are completely new to either of the platform, you should first start looking into the tutorials available on the website for each platform. If you know basics of Android and Dialogflow and wanted to quickly add a chatbot to your android app then I have created a library to integrate chatbot that you may use. It is still in development but will work with most of the functionalities you need.
If you still want to follow my previous work, then I would say, you will not need project ID only Google credentials generated in a JSON form which is clearly explained the article.

Hi @abhi007tyagi, how the bot will listen, if the message passed through speech. Like for v1 we had AIListener which gives a predefined method startListening(). Is there any replacement of this.

@pratikjoshi999 V2 is not currently designed to support Android fully. Try to use your imagination. Think about how you can do audio support. This is what I say to all the new developers. Android provided STT and TTS features. Use them. Just use basic Speech to text from Android SDK and convert speech into text and use this text as input for Dialogflow. If you don't want to code, I have a library created just use it and have a similar mic icon available in your chat as V1.

Hi @abhi007tyagi, I have followed your tutorial to apply on Android application. It worked for the first few days, but it experiences this error on this line of code, "return sessionsClient.detectIntent(detectIntentRequest);" since 19/8/2020.
com.google.api.gax.rpc.UnauthenticatedException: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
I have checked through the Google Helpdesk and try to set up this Authentication Credentials but GCP informs me that I do not need to set up for this. Can you please assist me on this?
Dependencies I am using are as below:
implementation 'com.google.cloud:google-cloud-dialogflow:2.2.0'
implementation 'io.grpc:grpc-okhttp:1.29.0'
I tried to change to the dependencies u mentioned here, but same error occurs.

Hi @abhi007tyagi, I have followed your tutorial to apply on Android application. It worked for the first few days, but it experiences this error on this line of code, "return sessionsClient.detectIntent(detectIntentRequest);" since 19/8/2020.
com.google.api.gax.rpc.UnauthenticatedException: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
I have checked through the Google Helpdesk and try to set up this Authentication Credentials but GCP informs me that I do not need to set up for this. Can you please assist me on this?
Dependencies I am using are as below:
implementation 'com.google.cloud:google-cloud-dialogflow:2.2.0'
implementation 'io.grpc:grpc-okhttp:1.31.1'
I tried to change to the dependencies u mentioned here, but same error occurs.

@abhi007tyagi Sir, is there any update so far?

@tianfatt try to create new credential JSON and use it. see if you have any setting that expires it after some time. If you want, you could try the library I created to easily add chatbot into your app. https://levelup.gitconnected.com/android-dialogflow-chatbot-library-6b7b3822e7bc

@tianfatt try to create new credential JSON and use it. see if you have any setting that expires it after some time. If you want, you could try the library I created to easily add chatbot into your app. https://levelup.gitconnected.com/android-dialogflow-chatbot-library-6b7b3822e7bc
Hi @abhi007tyagi, I have actually tried to generate the credential JSON for multiple times, yet it still fails. I managed to come across another solution on Youtube, https://www.youtube.com/watch?v=zVxDBBCdpfY&ab_channel=BAE-BeingAverageEngineer. Credit to his tutorial, I found out that your first tutorial has some missing code causing this error
"UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential."
This is solved by adding ".createScoped(Lists.newArrayList("https://www.googleapis.com/auth/cloud-platform"));" in the line of "GoogleCredentials credentials = GoogleCredentials.fromStream(stream).createScoped(Lists.newArrayList("https://www.googleapis.com/auth/cloud-platform"));". Perhaps Sir can update your post and first Github repository. Anyway thanks a lot for the guidance, really appreciate that.

@tianfatt looks like the method is deprecated or in beta mode. Be careful if you plan to release for production. See here https://googleapis.dev/java/google-api-client/latest/com/google/api/client/googleapis/auth/oauth2/GoogleCredential.html


Fix/pytorch wf

PR Checklist

[ ] This comment contains a description of changes (with reason)
[ ] Referenced issue is linked
[ ] If you've fixed a bug or added code that should be tested, add tests!
[ ] Documentation in docs is updated
[ ] CHANGELOG.rst is updated

Description of changes

Technical details

Additional context

Codecov Report

Merging #30 into development will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           development     #30   +/-   ##
===========================================
  Coverage         0.00%   0.00%
===========================================
  Files               24      24
  Lines             1945    1945
===========================================
  Misses            1945    1945

Flag
Coverage Δ

#unittests
0.00% <ø> (ø)

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

Continue to review full report at Codecov.

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


[Compare mode] Mobile. "DIAL-Staging" line is too wide and fixed (can not be scrolled)

Open DIAL on mobile

Move to landscape mode

Click on "Compare mode" button at the bottom of the chat panel

Close chat panel
-> Two new chats are opened in compare mode. Note that there is too wide panel with DIAL-Staging label, which can not be scrolled.

Expected result: the line should be narrow or can we remove it specifically for mobile?

It's nor reproduced anymore.


OS X Yosemite (10.10) Rosdep entries for vtk and gazebo2

Homebrew VTK Update
Recent updates to the homebrew/science/vtk brew have created issues for ROS Indigo install on OSX.
This can be fixed by removing the --python and --qt options and replacing them with --with-qt on the vtk homebrew dependency.
ROS & Gazebo
As noted on the Which combination of ROS/Gazebo versions to use page, ROS Indigo is only compatible with the Gazebo 2.x branch.

@wjwwood , what should be do with that one ?

I should figure out what should be done :stuck_out_tongue:. I don't know. Merging this will cause problems for people using ROS hydro on OS X, but not merging it will cause problems for Indigo.

I think we have to make a call on this. Either decide to "break" on one distro (where I would prefer to break Hydro and make it work well on Indigo) or do the necessary changes to support both.

I have a plan which allows users to pick different dependencies based on the Homebrew tap they choose, but I haven't had time to implement it.
Basically we'd make the rosdep rule for gazebo resolve to the gazebo_for_ros Homebrew formula. When installing hydro you'd "tap" the ros/hydro-deps tap which contains a version of the gazebo_for_ros formula which depends on gazebo, but the ros/indigo-deps tap will have a different version of the gazebo_for_ros formula which depends on gazebo5. This would be applied to all the affected formula. This way rosdep always resolves to the same key, but then we can change what the key ends up installing based on which Homebrew tap the user selects. It still doesn't allow a side by side setup with Hydro and Indigo, but at least people can choose.
This will take quite some work to implement, so I'm not sure when I'll get to it.
/cc @scpeters

Sounds reasonable. There are separate formula for each gazebo version (gazebo for 1.9, gazeboN for each release after) but they cannot be brew linked at the same time.

Should we aim to address this before Jade is being released?

We added new rosdep keys for gazebo5 in jade. So I think this is currently just a conflict between hydro / indigo, which have the same rosdep key for different versions of gazebo.

Yeah, this shouldn't be trouble for Jade. I was mistaken above about gazebo5 and indigo, but this still applies for ogre which is 1.7 in hydro and 1.8/9 in indigo and jade.

Can we close this and if necessary convert it into a ticket?

Closing in favor of: https://github.com/ros/rosdistro/issues/8912


feat(eth-contracts): add Blake2b.sol

feat(eth-contracts): add Blake2b.sol

reduce gas of digesting 208 bytes from 4738 down to 1993, that of 64 bytes from 3139 to 1114


damerau_levenshtein kills python kernel

Python version: 3.5
textdistance version: current [extras] version from pypi (pip install textdistance[extras])
import textdistance
textdistance.damerau_levenshtein("text", "test")
Instantly leads to "Kernel died, restarting" in ipython console. Can provide any needed info.

Hm. Can't reproduce:
mkvirtualenv test
pip install textdistance[extras] ipython
ipython

Python 3.5.2 (default, Nov 23 2017, 16:37:01)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import textdistance
   ...: textdistance.damerau_levenshtein("text", "test")
   ...:
Out[1]: 1

You're use virtualenviroment? If no, can you reproduce it in virtualenv?
What is your OS?
You're run ipython from console?

Im on Windows 10, same here for clean environment. Seems more like OS issue.

Please, try this snippets:
import textdistance
textdistance.DamerauLevenshtein(external=False)("text", "test")

import jellyfish
jellyfish.damerau_levenshtein_distance(u"text", u"test")

import pyxdameraulevenshtein
pyxdameraulevenshtein.damerau_levenshtein_distance(u"text", u"test")

Tried it. Last (pyxdameraulevenshtein) one crashes the kernel.

Please, create issue into pyxDamerauLevenshtein project:
https://github.com/gfairchild/pyxDamerauLevenshtein/issues
You can use disable external libraries usage for TextDistance by passing external=False on class initialization:
import textdistance
damerau_levenshtein = textdistance.DamerauLevenshtein(external=False)
damerau_levenshtein("text", "test")

Need update the compiler for installing the extras.
For apt (Ubuntu, Debian...):
sudo apt-get install python-dev # for python2.x installs
sudo apt-get install python3-dev # for python3.x installs
sudo apt-get install -y liblzma-dev
For apt-cyg (Cygwin...):
apt-cyg install python-devel   # for python2.x installs
apt-cyg install python3-devel  # for python3.x installs

pip install textdistance[extras]   # for python2.x installs
pip3 install textdistance[extras] # for python3.x installs


ExpirationMode, Timeout priority when using  CacheManager.Core

Summary of the issue
I have a question regarding the newly implemented support for CacheManager.Core.
Which ExpirationMode + Timeout is in effect when defined with  both ConfigurationBuilder..WithExpiration() and Cacheable()?
In the example code below, which cache expiration is in effect for Customers?
Is it (1) Absolute for 10 Minutes or (2) Sliding for 5 Minutes?
Environment
.NET Core SDK version: 3.1
Microsoft.EntityFrameworkCore version:  3.1.3
EFCoreSecondLevelCacheInterceptor version: 1.5.1

Example code/Steps to reproduce:
// Startup.cs
services.AddEFSecondLevelCache(options =>
    options.UseCacheManagerCoreProvider().DisableLogging(true)
);

// Add an in-memory cache service provider
services.AddSingleton(typeof(ICacheManager<>), typeof(BaseCacheManager<>));
services.AddSingleton(typeof(ICacheManagerConfiguration),
    new CacheManager.Core.ConfigurationBuilder()
        .WithJsonSerializer()
        .WithMicrosoftMemoryCacheHandle(instanceName: "MyApplicationMemoryCache")
        .WithExpiration(ExpirationMode.Absolute, TimeSpan.FromMinutes(10))
        .Build());

var customers = await ApplicationDbContext.Customer
    .AsNoTracking()
    .Cacheable(CacheExpirationMode.Sliding, TimeSpan.FromMinutes(5))
    .ToListAsync();

Output:
NA

Settings of the Cacheable(...) method will override the global settings.

@VahidN
How do I let Cacheable(..) take the default settings defined in WithExpiration(...)?
Calling Cacheable() without any argument defaults to Absolute for 30 mins.
At the moment to ensure both settings are in sync, I have to specify args explicitly.

Use this method to specify the global settings:
options.UseCacheManagerCoreProvider(CacheExpirationMode expirationMode, TimeSpan timeout);

@VahidN
services.AddEFSecondLevelCache(options =>
    options.UseCacheManagerCoreProvider(CacheExpirationMode.Sliding, TimeSpan.FromMinutes(5))
        .DisableLogging(true)
);
// Add an in-memory cache service provider
services.AddSingleton(typeof(ICacheManager<>), typeof(BaseCacheManager<>));
services.AddSingleton(typeof(ICacheManagerConfiguration),
    new CacheManager.Core.ConfigurationBuilder()
        .WithJsonSerializer()
        .WithMicrosoftMemoryCacheHandle(instanceName: "ApplicationMemoryCache")
        .WithExpiration(ExpirationMode.Sliding, TimeSpan.FromMinutes(10))
        .Build());

var customers = await ApplicationDbContext.Customer
    .AsNoTracking()
    .Cacheable()
    .ToListAsync();

The cache settings applied is still seems to be Absolute 30 mins, when I check using MiniProfiler.
-- EFCachePolicy[OnGetAsync(line 161)] --> Absolute|00:30:00|||True

SELECT c."Id", c."Name"
FROM "Customer" AS c

If I explicitly specify the arguments to Cacheable(CacheExpirationMode.Sliding, TimeSpan.FromMinutes(5))
-- EFCachePolicy[OnGetAsync(line 161)] --> Sliding|00:05:00|||False

SELECT c."Id", c."Name"
FROM "Customer" AS c

seems to be
It's not.

@VahidN
Can you perhaps explain or look in to why the query commandText is tagged with the wrong EFCachePolicy?

It's skipped to be marked again due to global settings, not wrong.


APIv2: remove configuration_url from ToolConfigurationSerializer

remove obsolete field
https://owasp.slack.com/archives/C2P5BA8MN/p1647430817715979

Isn't this field used to set the url field?

Isn't this field used to set the url field?

No, url is still there.
configuration_url is not used in the rest of the code. Only in this one place (+ unittest).
Example from swagger (without the change in this PR).
{
  "configuration_url": "string",
  "name": "string",
  "description": "string",
  "url": "string",
  "authentication_type": "API",
  "extras": "string",
  "username": "string",
  "password": "string",
  "auth_title": "string",
  "ssh": "string",
  "api_key": "string",
  "tool_type": 0
}

That's what I mean. People can use it to set the url field. Like an alias.

I agree with @valentijnscholten, it might not be a big deal but it's still a breaking change. We should have a short note in the upgrade documentation about it.


cover ignore_namespace use case in testing

Coverage increased (+3.4%) to 98.857% when pulling 417a46ce683136994585eddda75bcbdf774028a6 on devrck:cover-ignore-namespace into e7a7d6f1845009cd223117b5ae98a445ad32e850 on eMAGTechLabs:master.

Coverage increased (+0.6%) to 98.286% when pulling bb715e0281df931a81d847077d4e9e9922dafeb7 on devrck:cover-ignore-namespace into 38325c4458b23f1a227a19444863373350d5bdca on eMAGTechLabs:master.

Coverage increased (+0.6%) to 98.286% when pulling bb715e0281df931a81d847077d4e9e9922dafeb7 on devrck:cover-ignore-namespace into 38325c4458b23f1a227a19444863373350d5bdca on eMAGTechLabs:master.

Coverage remained the same at 98.286% when pulling 12c29d8b7a235d5f0e54be184b9ad6acd9bc6c0a on devrck:cover-ignore-namespace into 75aa68b0aeb048584e15a250482a3792c48ab69d on eMAGTechLabs:master.

Strange...it seems to not cover what I initially wanted...

Coverage increased (+1.1%) to 99.429% when pulling 5c2572e87786f2c1079cc7b65808896c6993633f on devrck:cover-ignore-namespace into 75aa68b0aeb048584e15a250482a3792c48ab69d on eMAGTechLabs:master.

Coverage increased (+1.1%) to 99.429% when pulling 5c2572e87786f2c1079cc7b65808896c6993633f on devrck:cover-ignore-namespace into 75aa68b0aeb048584e15a250482a3792c48ab69d on eMAGTechLabs:master.

Coverage increased (+1.1%) to 99.429% when pulling 5c2572e87786f2c1079cc7b65808896c6993633f on devrck:cover-ignore-namespace into 75aa68b0aeb048584e15a250482a3792c48ab69d on eMAGTechLabs:master.

Coverage increased (+1.1%) to 99.429% when pulling 5c2572e87786f2c1079cc7b65808896c6993633f on devrck:cover-ignore-namespace into 75aa68b0aeb048584e15a250482a3792c48ab69d on eMAGTechLabs:master.

Coverage increased (+1.1%) to 99.429% when pulling 5c2572e87786f2c1079cc7b65808896c6993633f on devrck:cover-ignore-namespace into 75aa68b0aeb048584e15a250482a3792c48ab69d on eMAGTechLabs:master.

Coverage increased (+1.1%) to 99.429% when pulling 5c2572e87786f2c1079cc7b65808896c6993633f on devrck:cover-ignore-namespace into 75aa68b0aeb048584e15a250482a3792c48ab69d on eMAGTechLabs:master.

Coverage increased (+1.1%) to 99.429% when pulling 5c2572e87786f2c1079cc7b65808896c6993633f on devrck:cover-ignore-namespace into 75aa68b0aeb048584e15a250482a3792c48ab69d on eMAGTechLabs:master.