ngSrc doesn't work properly with HTML5 Video Source tag

In firefox, ngSrc directive on video elements'  tag doesn't work at all, and results in unsupported video format error.  In chrome, updating ngSrc with data-binding doesn't update video, as it only loads video on page-load.  i.e.
<video controls>
     <source ng-src="{{src}}">
</video>

doesn't work in Firefox at all, and in chrome it only works on first loading.
However,
<video ng-src="{{src}} controls></video>

works in both browsers, and it can be updated dynamically with no problems.
This is a problem, when having multiple video formats in order to support all browsers.
Related: #339

:+1:

Wow, two years and nothing. Is angular being maintained at all?

Angular isn't worth the time and effort. They already said "fuck you" to the community with Angular 2.0.

@IDontEatSoap I'm not sure why I you bringing this question, just check the list of commits and releases. Given a new release every week and few commits a day, including weekends, it looks like pretty much maintained to me...
@phillip-haydon please keep the conversational professional and focused on technical matters, you are violating our code of conduct.
@IDontEatSoap @phillip-haydon if you truly interested in this issue being addressed the best way of moving forward is to send a pull request with code changes that make the future work in all browsers.

And yet a simple video src tag isn't supported?
I've managed to get it working by exposing $sde and using src="{{$sce.trustAsResourceUrl(item.VideoUrl)}}"
Don't get me wrong, I'm really liking angular. But small things like video src and SVG tags not being supported and requiring workarounds is unexpected.
Keep up the good work :) :+1:

+1, impossible to add a livestream webcam with dynamic data.

@pkozlowski-opensource I'm no longer interested because I don't care for Angular now that you've ditched the community for V2. There's 0 point in wasting effort on it.

@phillip-haydon Thank you for that information. I was just looking into Frontend Frameworks to use with node.js. I had not heard about the V2 issue before. Me and my Team have decided to go with React.js due to how they are breaking compatibility between V1 and V2. You think the huge rift this type of thinking caused in the Python community would have taught everyone a lesson.

:disappointed:

@phillip-haydon and @StevenDStanton - I am sorry to hear that you have chosen to go with another framework but of course you must choose the tools that work best for your own development.
Just to be clear though, AngularJS has not ditched the community, in fact the community has been involved even more than ever in the on-going development of Angular 1.x. We are close to releasing AngularJS 1.4.0, which will be the shortest time between big version changes so far and has had more community members working on the core team that ever before. Once this version is released we will begin the development towards AngularJS 1.5, which should (all things being equal) be released well before the end of 2015. Remember also that Google, itself has literally hundreds of production use AngularJS 1.x applications in operation right now. It is in Google's interests to ensure that these applications, just the same as your applications, continue to have a life or a migration path.
Regarding Angular 2 - this development effort is precisely driven by feedback from the community. The aim is to provide a faster, smaller, more robust framework that will be able to support bigger more complex applications; to perform better on mobile devices; and to continue to embrace the evolution of web browsers with transparent support for Web Components.
To achieve this, it was not possible to continue to bolt things onto AngularJS 1.x, since we needed to rethink some of the fundamental building blocks, such as how the injector and compiler work. The result is a completely new framework that continues to push the same high level goals that made AngularJS as popular and reliable as it has become but also be able to provide a future proof path for years to come.
There may not be a turn-key upgrade solution to migrating from AngularJS 1.x to Angular 2, that is true. But it will certainly be easier to migrate from AngularJS 1.x to Angular 2 than it would be to migrate from AngularJS 1.x to a completely different framework.

It seems to me that the browser is not very good at watching the <source> element for changes to its src attribute. The Original Poster's issue can be worked around by using ng-if.
See http://plnkr.co/edit/rpiEg1ki7KXgD40zy8qV

I'm just using
        $timeout(function () {
            $("video source").attr("src", 'https:' + file.url);
            $("video").attr("src", 'https:' + file.url);
        }, 500);

@tot-ra - I believe your version works because the browser does watch the change to the src attribute on the <video> element as can be seen here: http://plnkr.co/edit/6dNmNjAvZ8b6t09mUE65

From the HTML5 spec: http://www.w3.org/TR/2014/REC-html5-20141028/embedded-content-0.html#the-source-element

Dynamically modifying a source element and its attribute when the element is already inserted in a video or audio element will have no effect. To change what is playing, just use the src attribute on the media element directly, possibly making use of the canPlayType() method to pick from amongst available resources. Generally, manipulating source elements manually after the document has been parsed is an unnecessarily complicated approach.

What this means is that you cannot expect the browser to cope with AngularJS (or anything else for that matter) changing the source elements dynamically. Instead, what we need is some media specific directives that will deal with updating the <video> tag's src property when appropriate. Perhaps something along the lines of @caitp's ng-media library.

Regarding the problem with the request for a video not being cancelled, I suggest that we could implement something like @kaiqigong's idea in https://github.com/angular/angular.js/issues/1352#issuecomment-58865425. Perhaps we could add a video element directive that sets its src to "" when it's element is being destroyed?

Other potential libraries that could be tried:

ngVideo
videogular

Unsubscribe. Leaving AngularJS for React. Sorry guys but thanks for your hard work.

Yeah good idea, I'm unsubscribing too. I've ditched AngularJS for http://aurelia.io/

So back to the technical issue at hand:
There are actually two problems being discussed in this issue:

The <video> element does not monitor nor react to changes to the src attribute on <source> tags. This is part of the HTML5 spec and so is unlikely to change in the near future. This means that we cannot use the idiomatic AngularJS way of dynamically specifying <source> elements, with or without ngSrc. In other words, we simply cannot use interpolation in the <source> tag's src attribute because the <video> element will not pick up the change.

In some cases (browsers) the <video> element does not cancel its request to download a video correctly then the element is removed from the DOM. The effect of this is that if you application changes the DOM quickly enough, adding and removing <video> tags, so that the video has not had time to download, you can get stuck in a situation where a new <video> element is trying to access a video that is still pending from a previously destroyed <video> element.  It seems that the browser will in fact cancel the video request if the src (or currentSrc?) attribute is set to the empty string ("") before the element is destroyed.

Neither of these issues is a bug in AngularJS per-se. But that doesn't mean that we can't do something about it.
Regarding the first problem:
The only way to fix this, in Angular or any other framework, is to write JavaScript to deal with the dynamically changing sources, as described in the HTML5 spec. I have not seen a solution to this in any of the other major frameworks but in AngularJS the most attractive way is by building a set of directives. This is effectively what the people in the following projects have tried to do:

ngMedia
ngVideo
videogular

Depending upon community interest, we could look at develop something similar to this for Angular 1.5 and package it as its own module (similar to how ngCookies is packaged). Let's revisit this when doing the 1.5 planning. In the meantime, the best solution is to implement one of the libraries above and help them to make their library work for you.
Regarding the second problem:
I don't seem to be able to reproduce this personally at the moment. In my  Chrome, it does indeed continue to stream the previous <video> elements video even after we have destroyed the element, which after some switching back and forth results in numerous requests running in parallel, but these requests do not seem to prevent the new <video> element's video from loading.

Here, you can see the multiple simultaneous video downloads.
I believe that this is really a bug in the browser, but in the meantime, you can workaround this by providing your own video directive (see http://plnkr.co/edit/QLMJd24rxvklr638e57Q?p=preview):
  .directive('video', function() {
    return {
      restrict: 'E',
      link: function(scope, element) {
        scope.$on('$destroy', function() {
          element.prop('src', '');
        });
      }
    };
  })

Here, you can see that the video download now stops when we navigate away from the video view.
For the time being, this is the recommended workaround for this problem.

@petebacondarwin ... From looking at the w3c spec, it seems that a user agent abort on the document will cause the stream load to abort also. Calling a window.stop() cancelled any further network streaming for me.

@Daley hem thanks for this idea.
We can't do this in a core directive as it would stop other videos from streaming.

Just Create a Filter:
app.filter("trustUrl", ['$sce', function ($sce) {
return function (recordingUrl) {
return $sce.trustAsResourceUrl(recordingUrl);
};
}]);
In View File:

Hi, I'm the creator of Videogular.
As @petebacondarwin explained, this is not an issue with AngularJS but mostly a problem of how video works on HTML5 and how the browsers deal with video requests. And it gets even more weird when you need to have it working on mobile devices.
I fought a lot with video and HTML5 with Videogular and I must say that is hard to get it working seamlessly across all browsers, but not impossible.
So, if anyone at the AngularJS team wants help on this I would be glad to share my humble knowledge on this and contribute to fix it. This is something that really annoys me and in Angular 2 I'm not having problems with this so it would be great to have a similar approach in both frameworks.

+1

If you have a directive on your video player, you can watch the src url variable and update it manually:
link: function (scope, element, attrs) {
    var video = element.find('video')[0];
    scope.$watch('source.url', function (val) {
        video.src = val;
    });
}

After a ton of trial and error I finally have video playing back reliably on Android 4.2.2, 4.3, 4.4.4, 5.0.0, and 5.1.0.  Install Crosswalk and use Videogular

Fixed with a custom directive

//Html5 video fix
eshop.directive('html5vfix', function() {
return {
restrict: 'A',
link: function(scope, element, attr) {
attr.$set('src', attr.vsrc);
}
}
});

I know it's late, but I want to share a solution I found recently, credits to this JSFiddle.
Create a function (or service or whatever) which reloads the video:
ctrl.refreshVideoElement = function(videoId) {
    let videoElement = document.getElementById(videoId);
    videoElement.load();
}

Then in the html, call that function under the source tag:
<source ng-src="{{ctrl.videoUrl}}" type="video/webm" />

{{ctrl.refreshVideoElement('main-video')}}
<!-- Since the <source src...> is loaded late, we must tell
the browser to load the video file late as well -->

İ parse url video in db with json , but not work((( please help

when i click my play button the video displays upside down and when pressing fullscreen its getting to its position any suggestion to this issue

+1 there's  no parsing the url be it with src or ngSrc.
Has this error been abandonned ?

deddsfdsfrwwerewsdf sdfds  sdd sfsdd sd


Error when uploading Teams app

I updated the local manifest file according to the instructions, zipped and uploaded to the Teams Admin center. When I do this, I get the following error:

##Mgmt.AppCatalog.LOBApp.Upload.BadRequest.UnknownTeamsAppManifestExceptionType

My manifest is below
{   "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.11/MicrosoftTeams.schema.json",   "manifestVersion": "1.11",   "version": "0.5",   "id": "bef61400-db9b-41d4-a617-403deb7bbe77",   "packageName": "com.microsoft.teams.extension",   "developer": {     "name": "Teams Customer Advocacy Group",     "websiteUrl": "https://aka.ms/teamsapptemplates",     "privacyUrl": "https://privacy.microsoft.com/en-us/privacystatement",     "termsOfUseUrl": "https://www.microsoft.com/en-us/servicesagreement"   },   "icons": {     "color": "resources/color.png",     "outline": "resources/outline.png"   },   "name": {     "short": "TEOC",     "full": "Microsoft Teams Emergency Operations Center (Preview)"   },   "description": {     "short": "Microsoft Teams Emergency Operation Center (Preview)",     "full": "The Microsoft Teams Emergency Operations Center (TEOC) solution template leverages the power of the Microsoft 365 platform to centralize incident response, information sharing and field communications using powerful services like Microsoft Lists, SharePoint and more. An open-source solution supported by Microsoft it provides core functionality out of the box or can be extended to meet specific agency requirements."   },   "accentColor": "#FFFFFF",   "bots": [],   "composeExtensions": [],   "configurableTabs": [     {       "configurationUrl": "https://teoc.azurewebsites.net/index.html#/config",       "canUpdateConfiguration": true,       "scopes": [         "team",         "groupchat"       ]     }   ],   "staticTabs": [     {       "entityId": "index",       "name": "Teams EOC",       "contentUrl": "https://teoc.azurewebsites.net/index.html#/tab",       "websiteUrl": "https://teoc.azurewebsites.net/index.html#/tab",       "scopes": [         "personal"       ]     }   ],   "permissions": [     "identity",     "messageTeamMembers"   ],   "validDomains": [     "teoc.azurewebsites.net/"   ],   "webApplicationInfo": {     "id": "6eede4f0-da4c-4fca-ae6d-651d52b8ceee",     "resource": "api://teoc.azurewebsites.net/6eede4f0-da4c-4fca-ae6d-651d52b8ceee"   } }

Contents of Manifest file copied below
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.11/MicrosoftTeams.schema.json",
"manifestVersion": "1.11",
"version": "0.5",
"id": "bef61400-db9b-41d4-a617-403deb7bbe77",
"packageName": "com.microsoft.teams.extension",
"developer": {
"name": "Teams Customer Advocacy Group",
"websiteUrl": "https://aka.ms/teamsapptemplates",
"privacyUrl": "https://privacy.microsoft.com/en-us/privacystatement",
"termsOfUseUrl": "https://www.microsoft.com/en-us/servicesagreement"
},
"icons": {
"color": "resources/color.png",
"outline": "resources/outline.png"
},
"name": {
"short": "TEOC",
"full": "Microsoft Teams Emergency Operations Center (Preview)"
},
"description": {
"short": "Microsoft Teams Emergency Operation Center (Preview)",
"full": "The Microsoft Teams Emergency Operations Center (TEOC) solution template leverages the power of the Microsoft 365 platform to centralize incident response, information sharing and field communications using powerful services like Microsoft Lists, SharePoint and more. An open-source solution supported by Microsoft it provides core functionality out of the box or can be extended to meet specific agency requirements."
},
"accentColor": "#FFFFFF",
"bots": [],
"composeExtensions": [],
"configurableTabs": [
{
"configurationUrl": "https://teoc.azurewebsites.net/index.html#/config",
"canUpdateConfiguration": true,
"scopes": [
"team",
"groupchat"
]
}
],
"staticTabs": [
{
"entityId": "index",
"name": "Teams EOC",
"contentUrl": "https://teoc.azurewebsites.net/index.html#/tab",
"websiteUrl": "https://teoc.azurewebsites.net/index.html#/tab",
"scopes": [
"personal"
]
}
],
"permissions": [
"identity",
"messageTeamMembers"
],
"validDomains": [
"teoc.azurewebsites.net/"
],
"webApplicationInfo": {
"id": "6eede4f0-da4c-4fca-ae6d-651d52b8ceee",
"resource": "api://teoc.azurewebsites.net/6eede4f0-da4c-4fca-ae6d-651d52b8ceee"
}
}

Hi @eendrulat,
Thank you for raising the query and sharing the manifest, can you please remove '/' at the end in validDomains and just have 'teoc.azurewebsites.net'. After making the changes, please create zip file and upload it. You can always validate the manifest file in Teams App Studio to check if it has any validation errors.

Hi @eendrulat,
Even after making the above changes, you face similar issue, please let us know. It seems there is an ongoing issue with MS Teams in uploading the manifest, you can find the issue thread here

Good idea regarding validating the app. I did get one error related to app version (needed to change from 0.5 to 1.0); and warnings regarding privacy/ Terms of use links. Corrected these and the manifest passes - however i'm still unable to publish - keep getting the 'Mgmt.AppCatalog.LOBApp.Upload.BadRequest.UnknownTeamsAppManifestExceptionType' error

Still get error when uploading app from the Teams admin console, however I was able to successfully install the app from Teams Desktop app (Manage your Apps > Upload app).
You can close this issue.

I'm going to re-open this. I get this same error and I also get "Something went wrong, please try again later" when I try to upload from the desktop. Any other thoughts?


ntp: customizer globals

Asana Task/Github Issue:
Description

Testing Steps

Checklist

Please tick all that apply:

[ ] I have tested this change locally
[ ] I have tested this change locally in all supported browsers
[ ] This change will be visible to users
[ ] I have added automated tests that cover this change
[ ] I have ensured the change is gated by config
[ ] This change was covered by a ship review
[ ] This change was covered by a tech design
[ ] Any dependent config has been merged

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1303
#1329  👈 (View in Graphite)
#1328
#1317
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


Add cygrtmp-0.dll into library_path

This makes python-librtmp compatible with a Cygwin Ports installation of librtmp.

Thanks!


sgh

Song Name
Lost
Artist Name
CRIM3S
Source
Youtube
Youtube Link
https://youtu.be/uzCD3hdxYy0?si=aDdtN3aasqGkocai
Direct File Link
https://youtu.be/song/mp3
Song ID
889019
Start Offset [ms]
0
Extra
No response

reject


Error running in Kubernetes

What happened:
Following this documentation - when install from a static manifest the pods go into error status. Here are the logs from one of the pods in the DS
* Setting up /usr/src links from host
ls: cannot access '/host/usr/src': No such file or directory
* Unloading falco-probe, if present
* Running dkms install for falco
Error! echo
Your kernel headers for kernel 4.14.127+ cannot be found at
/lib/modules/4.14.127+/build or /lib/modules/4.14.127+/source.
* Running dkms build failed, couldn't find /var/lib/dkms/falco/0.16.0/build/make.log
* Trying to load a system falco-probe, if present
* Trying to find precompiled falco-probe for 4.14.127+
Found kernel config at /proc/config.gz
* Trying to download precompiled module from https://s3.amazonaws.com/download.draios.com/stable/sysdig-probe-binaries/falco-probe-0.16.0-x86_64-4.14.127%2B-e589e4c246c6d662d28ec30f4f32ecf8.ko
curl: (22) The requested URL returned error: 404 Not Found
Download failed, consider compiling your own falco-probe and loading it or getting in touch with the sysdig community
Tue Aug 13 22:44:30 2019: Falco initialized with configuration file /etc/falco/falco.yaml
Tue Aug 13 22:44:30 2019: Loading rules from file /etc/falco/falco_rules.yaml:
Tue Aug 13 22:44:30 2019: Loading rules from file /etc/falco/falco_rules.local.yaml:
Tue Aug 13 22:44:30 2019: Loading rules from file /etc/falco/k8s_audit_rules.yaml:
Tue Aug 13 22:44:30 2019: Unable to load the driver. Exiting.
Tue Aug 13 22:44:30 2019: Runtime error: error opening device /host/dev/falco0. Make sure you have root credentials and that the falco-probe module is loaded.. Exiting.

What you expected to happen:
Pods in the ready state
How to reproduce it (as minimally and precisely as possible):
Follow the DaemonSet Manifests section here
Anything else we need to know?:
Environment:

Falco version (use falco --version): 0.16.0
System info <!-- Falco has a built-in support command you can use  "falco --support | jq .system_info" --> Tue Aug 13 22:55:39 2019: Falco initialized with configuration file /etc/falco/falco.yaml
Tue Aug 13 22:55:39 2019: Loading rules from file /etc/falco/falco_rules.yaml:
Tue Aug 13 22:55:39 2019: Loading rules from file /etc/falco/falco_rules.local.yaml:
Tue Aug 13 22:55:39 2019: Loading rules from file /etc/falco/k8s_audit_rules.yaml:
{
"machine": "x86_64",
"nodename": "falco-daemonset-c5n4m",
"release": "4.14.127+",
"sysname": "Linux",
"version": "#1 SMP Tue Jun 18 23:08:40 PDT 2019"
}
OS (e.g: cat /etc/os-release):

PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Cloud provider or hardware configuration: GKE cluster

clientVersion:
buildDate: "2019-07-28T11:38:32Z"
compiler: gc
gitCommit: 4485c6f18cee9a5d3c3b4e523bd27972b1b53892
gitTreeState: archive
gitVersion: v1.15.1
goVersion: go1.12.7
major: "1"
minor: "15"
platform: linux/amd64
serverVersion:
buildDate: "2019-06-19T20:48:40Z"
compiler: gc
gitCommit: f53039cc1e5295eed20969a4f10fb6ad99461e37
gitTreeState: clean
gitVersion: v1.12.8-gke.10
goVersion: go1.10.8b4
major: "1"
minor: 12+
platform: linux/amd64

Kernel (e.g. uname -a): Linux falco-daemonset-c5n4m 4.14.127+ #1 SMP Tue Jun 18 23:08:40 PDT 2019 x86_64 GNU/Linux

Install tools (e.g. in kubernetes, rpm, deb, from source):

Others:

Would you please use the issue template, filling out the requested info? We need some info such as the OS and the template tells you how to get that info.
Thanks!

Yep! Will do!

Updated!

We backchannelled on this, but were you able to install the headers for buster and build the kernel module at container start?

I changed the Deployment code to use the BPF program. I think we need to modify the Dockerfile

Hi @kris-nova , @mfdii  ,
Even we are facing the same issue on kubernetes with latest version v0.17.0.
When can we expect the fix for this issue to be rolled-out ?
As a temporary fix can we use the older version of falco container which doe snot have this issue ?

Same problem with Falco 0.17.0 running on GKE cluster version 1.13. Is there a going to be a fix?

Hi @mfdii , @kris-nova , @tmaior , @arthurk ,
I may have found the bug.
Bug : Falco Docker image name falcosecurity/falco:latest is still tagged to older version falcosecurity/falco:0.16.0 and not newer falcosecurity/falco:0.17.0
Work-Around: Use docker image falcosecurity/falco:0.17.0 to fix this issue.
Context : As per the following doc : https://falco.org/docs/event-sources/kernel-module/ , the kernel module with filename falco-probe-{falco version}-{arch}-{kernel release}-{kernel config hash>}.ko is downloaded from S3 Bucket. Since falcosecurity/falco:latest still had falco version 0.16.0 it was trying to download falco-probe-0.16.0-{arch}-{kernel release}-{kernel config hash>}.ko which is not present in this List : https://s3.amazonaws.com/download.draios.com/stable/sysdig-probe-binaries/index.html.

Thanks for the feedback @karthikc911 - definitely need to bring this up in repo planning

Setting up /usr/src links from host

Mounting debugfs
Found kernel config at /proc/config.gz

Minikube detected (v1.6.0), using linux kernel sources for minikube kernel

Downloading http://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/linux-4.19.81.tar.gz

Extracting kernel sources

Configuring kernel
/bin/sh: 1: bison: not found
make[1]: *** [scripts/Makefile.lib:196: scripts/kconfig/zconf.tab.c] Error 127
make: *** [Makefile:534: olddefconfig] Error 2
/bin/sh: 1: bison: not found
make[2]: *** [scripts/Makefile.lib:196: scripts/kconfig/zconf.tab.c] Error 127
make[1]: *** [Makefile:534: syncconfig] Error 2
Makefile:621: include/config/auto.conf.cmd: No such file or directory
make: *** [Makefile:633: include/config/auto.conf.cmd] Error 2

Trying to compile BPF probe falco-probe-bpf (falco-probe-bpf-0.17.0-x86_64-4.19.81-6b1f95f8b14210605f7dc14241b2262d.o)
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

Makefile:590: include/config/auto.conf: No such file or directory
make[1]: *** [Makefile:641: include/config/auto.conf] Error 1
make: *** [Makefile:18: all] Error 2
mv: cannot stat '/usr/src/falco-0.17.0/bpf/probe.o': No such file or directory

Trying to download precompiled BPF probe from https://s3.amazonaws.com/download.draios.com/stable/sysdig-probe-binaries/falco-probe-bpf-0.17.0-x86_64-4.19.81-6b1f95f8b14210605f7dc14241b2262d.o
curl: (22) The requested URL returned error: 404 Not Found
Failure to find a BPF probe
Tue Mar 10 17:45:04 2020: Falco initialized with configuration file /etc/falco/falco.yaml
Tue Mar 10 17:45:04 2020: Loading rules from file /etc/falco/falco_rules.yaml:
Tue Mar 10 17:45:04 2020: Loading rules from file /etc/falco/falco_rules.local.yaml:
Tue Mar 10 17:45:04 2020: Loading rules from file /etc/falco/k8s_audit_rules.yaml:
Tue Mar 10 17:45:04 2020: Runtime error: Compilation error when compiling "(ka.req.pod.volumes.hostpath intersects (/proc, /var/run/docker.sock, /, /etc, /root, /var/run/crio/crio.sock, /home/admin, /var/lib/kubelet, /var/lib/kubelet/pki, /etc/kubernetes, /etc/kubernetes/manifests))
": 30: syntax error, unexpected 'intersects', expecting 'pmatch', 'in', 'endswith', 'startswith', 'glob', 'icontains', 'contains', '>', '<', '>=', '<=', '!=', '==', '=', 'exists'

macro: sensitive_vol_mount
condition: >
(ka.req.pod.volumes.hostpath intersects (/proc, /var/run/docker.sock, /, /etc, /root, /var/run/crio/crio.sock, /home/admin, /var/lib/kubelet, /var/lib/kubelet/pki, /etc/kubernetes, /etc/kubernetes/manifests))
---. Exiting.


Move xml stream join #201

For #201 I've moved xml  join stream implementation to test scope, extracted tests for this class and added one more test for xml join with buffered reader.

Codecov Report

Merging #204 into master will decrease coverage by 0.94%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #204      +/-   ##
============================================
- Coverage     65.67%   64.72%   -0.95%
+ Complexity      165      154      -11
============================================
  Files            35       35
  Lines          1209     1168      -41
  Branches         60       52       -8
============================================
- Hits            794      756      -38
+ Misses          408      405       -3
  Partials          7        7

Impacted Files
Coverage Δ
Complexity Δ

...rc/main/java/com/artipie/rpm/meta/XmlMetaJoin.java
89.13% <100.00%> (-1.68%)
13.00 <0.00> (-11.00)

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 1780583...3c19ab1. Read the comment docs.

This pull request #204 is assigned to @paulodamaso/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @g4s8/z (the architect) right in this ticket; if you decide that this PR should not be accepted ever, also inform the architect; this blog post will help you understand what is expected from a code reviewer; there will be a monetary reward for this job

@0crat status

@0crat status (here)

@g4s8 This is what I know about this job in CT2E6TK9B, as in §32:

The job #204 is not in scope
Job footprint (restricted area)

@0crat assign @paulodamaso

@0crat assign @paulodamaso  (here)

@g4s8 This pull request #204 is assigned to @paulodamaso/z, here is why; the budget is 15 minutes, see §4; please, read §27 and when you decide to accept the changes, inform @g4s8/z (the architect) right in this ticket; if you decide that this PR should not be accepted ever, also inform the architect; this blog post will help you understand what is expected from a code reviewer; there will be a monetary reward for this job

@paulodamaso thanks, corrected and answered, please, take a look

@paulodamaso thanks again, I've corrected method name to be more precise

@g4s8 good to merge

@g4s8 could you please take a look and merge this?

Job was finished in 24 hours, bonus for fast delivery is possible (see §36)

@sereshqua/z please review this job completed by @paulodamaso/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed

@0crat quality good


Calculator is Excepting answer of string input as well

Describe the bug
On writing string in input instead of showing invalid input it is showing the answer
#Gssoc'21 participant.
Sir please assign this to me @sairish2001
Possible solution
-I can use REGEX for not allowing alphabets
Screenshots

#17 issue is already open for the same

ok sir


Minor refactor to switch to google-legacy-loader (Fixes #1)

r: @ebidel wrt #1

Reviewed. just the version bumps

Ignore me then until the version can rev.

LGTM

Thanks for the quick review, Eric!


Morocco

Demo here: https://codepen.io/jacksonhardaker/pen/VzPJJw
I'm encountering a slight problem with getCoords(). The boundaries seem fine, but every city marker I plot seems to be off slightly along the longitude line. Any thoughts would be appreciated.

Hello @jacksonhardaker ,
Sorry for my late answer. It seems that you managed to deal with the longitude issue. Thanks for having provided a code sample.
All seems to be ok for being merged into the master, thanks a lot for your contribution !


network env var

Closes: #???
Description

For contributor use:

[ ] Targeted PR against master branch
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the standards mentioned here.
[ ] Updated relevant documentation
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Added appropriate labels

@nialexsan do we not need crescendo in the conditions?


fatal error: 'cstddef' file not found

when i run ./make.sh have error as follow：
`running build
running build_ext
/Users/liufn/anaconda3/envs/centernet/lib/python3.6/site-packages/torch/utils/cpp_extension.py:191: UserWarning:
                           !! WARNING !!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (g++) is not compatible with the compiler Pytorch was
built with for this platform, which is clang++ on darwin. Please
use clang++ to to compile your extension. Alternatively, you may
compile PyTorch from source using g++, and then you can also use
g++ to compile your extension.
See https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md for help
with compiling PyTorch from source.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                          !! WARNING !!

platform=sys.platform))
building '_ext' extension
g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/liufn/anaconda3/envs/centernet/include -arch x86_64 -I/Users/liufn/anaconda3/envs/centernet/include -arch x86_64 -I/Users/liufn/workshops/center_Net/CenterNet/src/lib/models/networks/DCNv2/src -I/Users/liufn/anaconda3/envs/centernet/lib/python3.6/site-packages/torch/include -I/Users/liufn/anaconda3/envs/centernet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/Users/liufn/anaconda3/envs/centernet/lib/python3.6/site-packages/torch/include/TH -I/Users/liufn/anaconda3/envs/centernet/lib/python3.6/site-packages/torch/include/THC -I/Users/liufn/anaconda3/envs/centernet/include/python3.6m -c /Users/liufn/workshops/center_Net/CenterNet/src/lib/models/networks/DCNv2/src/vision.cpp -o build/temp.macosx-10.7-x86_64-3.6/Users/liufn/workshops/center_Net/CenterNet/src/lib/models/networks/DCNv2/src/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
In file included from /Users/liufn/workshops/center_Net/CenterNet/src/lib/models/networks/DCNv2/src/vision.cpp:2:
In file included from /Users/liufn/workshops/center_Net/CenterNet/src/lib/models/networks/DCNv2/src/dcn_v2.h:3:
In file included from /Users/liufn/workshops/center_Net/CenterNet/src/lib/models/networks/DCNv2/src/cpu/vision.h:2:
In file included from /Users/liufn/anaconda3/envs/centernet/lib/python3.6/site-packages/torch/include/torch/extension.h:4:
In file included from /Users/liufn/anaconda3/envs/centernet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:3:
/Users/liufn/anaconda3/envs/centernet/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/cuda.h:5:10: fatal error: 'cstddef' file not found
#include
^~~~~~~~~
1 error generated.
error: command 'g++' failed with exit status 1
`
but the file 'cstddef' is in /usr/local/include/c++/10.2.0
please help me

i run in macbook don't have cuda


Need to click create new course/new group twice to create

The button must be pressed twice for the new course and new group to create. This problem only appears to happen on the first group/course after the program is started. It may happen every time the program is restarted.

It appears as though this was somehow fixed or was never an issue


Dev

It is not a perfect-nextflow pipeline, but it does what it should :)

@KateSakharova I would merge this... did a very quick read, and it's good :+1:

I have nothing to add, all good 👍🏻


STORM-3474 Large fragmented cluster scheduling time test

Added reason for test in JIRA

The intent is to ensure that adverse changes to scheduling are not discovered at deploy time. It could also be used as a tool for making scheduling faster.

+1 assuming tests pass. If the test running time becomes an issue, we can either try to make scheduling faster, or put it in a category of slow tests that aren't run by default, but do run on CI.


IOConnector: GetPin value update

https://jenkins.code.rdkcentral.com/job/github-triggered/423/ started


Proposal to Clean up/Update the CDI API.

The current CDI implementation (API) has a number of issues that should be fixed. Among other things:

API oddities:

(exported) functions with arg types that have no functions to acquire instances of those types (e.g. Spec)
implementation vs. original intention

injection of other than fully qualified types (sometimes) possible, but should not be
normal /dev-entries can be 'virtualized', but should not be

irregularities (some functions can survive /dev node node names while others error out on them)

missing functionality

injection (or easy querying of) all devices (matching a vendor/class)

designed for client-side device injection

inefficiencies: no caching, CDI directory, Specs rescanned for every single call
no atomicity: same as above, with two function calls you can't be sure if you're still operating on the same data set
resiliency: an error (syntactic or semantic likewise) causes every operation to fail

There are ongoing efforts to implement CDI device resolution in the runtimes (containerd pull req., draft-NRI plugin), so it would be nice to address most of these issues.
Here is a proposal for an updated  API.
It has an almost full implementation of the proposed API.
This is how the API itself looks like.
This commit message lists the proposed functionality.
The proposal also containes a small cobra-based utility which both demonstrates how to use more than just the most basic trivial functions of the API and also allows one to inspect/play around with CDI Specs.

@bart0sh @elezar @kad Here is a proposal for cleaning up/updating the CDI API and adding most of functionality we discussed to be missing in the last COD-gathering.

@klihub does it make sense to open a PR with these changes for discussion? (I am working through the links in the issue description for the time being).

Sure, I can do that. It's definitely easier to have a discussion that might go into some details that way.

@elezar #39 is the draft PR created from/for discussing this.

Just some notes / thoughts for discussion. I still need to go through the PR in more detail.
From a client (container engine) perspective we need to support the following basic operations for a minimally functional implementation:

Instantiate a representation of the state of the CDI specs (I think in #39 this is a Registry / Cache)
Retrieve the CDI spec for a given device (or devices) from this representation based on a fully-qualified ID
Apply the modifications for the returned CDI spec(s) to the OCI spec

There are also "advanced" operations that we may need to support:

Refreshing the representation (at worst, this can be done client-side by reinstantiating the representation). This is orthogonal to the functionality in the "minimal" case.
Lookup devices based on criteria other than a fully-qualified ID. This could be by host-path for the resolve functionality or by globs, for example
Filter the registry content based on some criteria

From a CDI spec maintainer perspective there are a number of other operations that would be useful to perform on the representation of the specs. These may include:

List the vendors contained in the representation
List the devices contained in the representation

From my initial review, the implementation in #39 adds most (if not all) of this functionality. Would we be opposed to breaking this up into multiple PRs instead that focusses on addressing the different use cases separately?
For example, for the first set of functionality discussed we would have to implement (using interfaces for discussion purposes, these could also be concrete types):
type DeviceID string

func NewRegistry() (Registry, error) {

}

type Registry interface {
    // Get returns the cdi.Specs for the specified CDI device IDs.
   Get(...DeviceID) ([]Spec, error)
}

type Spec interface {
    // ApplyModifications applies the required modifications to the oci Spec
    ApplyModifications(*oci.Spec) error
}

This can then be extended for the other required functionality. For example for filtering, one could also have this implement the Registry interface, wrapping a particular instance and filtering the results instead of attempting to include this in registry functionality directly.

From my initial review, the implementation in #39 adds most (if not all) of this functionality. Would we be opposed to breaking this up into multiple PRs instead that focusses on addressing the different use cases separately?

I'm not opposed to that per se because I do see how that makes reviewing easier. Why I'd like to avoid it is the total lack of any kind of support for stacked PRs in github (one of the most often requested features for ages).
Would it work for you, if instead we split up the commit history to multiple self-contained commits, which would pretty much directly correspond to the functional split/PR series you suggested. It would help reviewing using the commit-by-commit view in github (which is unfortunately far from being perfect) but avoid having to either serialize filing the PRs or having to rebase all subsequent PRs every single time a previous one is touched ?

Splitting the commit history works too. These don't need to be single commits, but the grouping should be clear.

Splitting the commit history works too. These don't need to be single commits, but the grouping should be clear.

Thanks ! I rework the whole shebang to that effect.

@klihub I have merged #39. I think that that should address this issue. Feel free to close this if you think everything is covered. (It may make sense to create new issues for smaller enhancements as we see them become necessary anyway).

Closing as #39 is now merged.


Blurred background doesn't fade out when dismissing

On the current master branch the blurred background doesn't fade out when dismissing.
I found out that by replacing the current animation block on dismissalTransitionWillBegin with the following makes it work.
if ([self shouldTransitionBlur]) {                 self.blurBackgroundView.alpha = 0.0;             } else {                 self.dimmingView.alpha = 0.0;             }
What I don't know is if it conflicts with anything since the previous code there seemed to explicitly treat the blurred background case by not doing anything.

Good solution for now :-)


GetService doesn't ignore 404 error when a document is not found

Which version of Elastic are you using?
[ ] elastic.v2 (for Elasticsearch 1.x)
[ ] elastic.v3 (for Elasticsearch 2.x)
[ ] elastic.v5 (for Elasticsearch 5.x)
[x ] elastic.v6 (for Elasticsearch 6.x)
Please describe the expected behavior
When I run a e.Client.Get().Index("myIndex").	Id("notFoundId").Do(e.Ctx), I don't expect an error to be returned by the Elasticsearch client. I should just be able to understand the document has no been found regarding the "found" attribute of the response.
I expect this behavior due to the documentation Getting Started code :
if get1.Found {
fmt.Printf("Got document %s in version %d from index %s, type %s\n", get1.Id, get1.Version, get1.Index, get1.Type)
}
Please describe the actual behavior
Currently the client return an error in this case. The HTTP 404 Not found error is not ignored by the client and considered as an unexpected behaviour from Elasticsearch server.
Any steps to reproduce the behavior?

Create an index with no document
Try to launch a client.Get().Index("myIndex").Id("oneId").Do(ctx)

This is the standard behavior of Elasticsearch. If you retrieve a document that doesn't exist, Elasticsearch returns a 404, which we will just forward to the caller:
$ curl -I 'localhost:9200/twitter/_doc/1?pretty=true'
HTTP/1.1 404 Not Found
content-type: application/json; charset=UTF-8
content-length: 504

This is what the Java REST Client does as well. See here:

A ResponseException is not thrown for HEAD requests that return a 404 status code because it is an expected HEAD response that simply denotes that the resource is not found. All other HTTP methods (e.g., GET) throw a ResponseException for 404 responses unless the ignore parameter contains 404.

Elastic has that ignore parameter as well, but it's not the default for the Get API, see PerformRequest.
To differentiate between "not found" and other errors, you can use error helpers like elastic.IsNotFound:
res, err := client.Get().Index("twitter").Id("1").Do(ctx)
switch {
case elastic.IsNotFound(err):
  ...
case elastic.IsConnErr(err):
  ...
case elastic.IsTimeout(err):
  ...
case err != nil:
  ...
}

TBH I really don't know why there is a found property in the response of the Get API. Maybe that's just a relict from earlier versions. E.g. in some response structs, they already removed it or changed it to something more general, like result. This is what I've e.g. found in ES 6.0.0-alpha1 recently with the Delete API, which also doesn't make too much sense:
{
	"found": false,
	...
	"result": "not_found",
	...
}

They removed the found property from Delete API in 6.0.0-alpha2 I think.

Okay, sorry for the confusion. I think the code still works in 6.2 though, but perhaps it's no longer idiomatic. Feel free to post an issue for that and link back to this issue, if you will.
I think the idiomatic way to work with the Get API is to just retrieve the document, then check if it's not found. It's a bit like opening a file, then checking that it doesn't exist. Checking beforehand is two roundtrips while just trying to retrieve is just one.
Something like this:
res, err := client.Get("twitter").Id("1").Do(ctx)
if err != nil {
  if elastic.IsNotFound(err) {
    ...
  } else {
    ...
  }
}

... or with the switch case I mentioned previously to handle even more error cases.


Python venv environments not found [python.venvPath]

Type: Bug

Behaviour
Python venv environments from the [python.venvPath] are not available to select when selecting interpreter.
Steps to reproduce:
Create a venv in the [python.venvPath] path.  Open VSCode, try to select newly created venv.

Diagnostic data

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

Extension version: 2024.14.1
VS Code version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z)
OS version: Darwin x64 23.6.0
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabledwebgpu: enabledwebnn: disabled_off

Load (avg)
2, 2, 2

Memory (System)
16.00GB (5.46GB free)

Process Argv
--crash-reporter-id 1a325981-86b6-4ab6-8277-a4024f2f6e27

Screen Reader
no

VM
0%

Are you able to see other Python interpreter, environments when you trigger select interpreter from the command palette?

Are you able to see other Python interpreter, environments when you trigger select interpreter from the command palette?

only the global interpreters.  if I open vscode in the ~/environments dir (which is the path in [python.venvPath]) 'Select Interpreter' does detect the venv's.

How about when you open your vscode workspace and then set your venvpath in a relative way to your workspace, instead of absolute path?

How about when you open your vscode workspace and then set your venvpath in a relative way to your workspace, instead of absolute path?

my venv environments are in ~/environments and my workspaces are all in ~/projects.

Is there reason why you set it up that way? @brgsstm
Usually in most cases, users set up a virtual environment under their workspace.
If you really like the set up you have you can try to specify your desired virtual environment in the setting: python.venvPaths  and see if that finds your desired workspace.

Is there reason why you set it up that way? @brgsstm Usually in most cases, users set up a virtual environment under their workspace.
If you really like the set up you have you can try to specify your desired virtual environment in the setting: python.venvPaths and see if that finds your desired workspace.

Yes, I set it up that way as everything under ~/projects I want backed up.  ~/environments I don't require backup on as the venv are rebuilt often.  I could add exclusions but it's just simpler to exclude ~/environments.
Anyhow, I just updated to the September v1.94.0 and now all of my environments are back 👍🏻

Closing, v1.94.0 has resolved this


lighthouse:validate-schema failing after update to 4.2.0

Hi,
on version 4.1.0 everything is fine.
Error:
[2023-06-18 15:58:37] local.ERROR: No directive @equal defined.

GraphQL request (7:5)
6:     equal: DateTimeTz
7:     @equal
       ^
8:     """Within a range."""

No directive @between defined.

GraphQL request (10:5)
 9:     between: SearchByTypeRangeDateTimeTz
10:     @between
        ^
11:     """Less than (`<`)."""

No directive @lessThan defined.

GraphQL request (13:5)
12:     lessThan: DateTimeTz
13:     @lessThan
        ^
14:     """Greater than (`>`)."""

No directive @greaterThan defined.

GraphQL request (16:5)
15:     greaterThan: DateTimeTz
16:     @greaterThan
        ^
17:     """Less than or equal to (`<=`)."""

No directive @lessThanOrEqual defined.

GraphQL request (19:5)
18:     lessThanOrEqual: DateTimeTz
19:     @lessThanOrEqual
        ^
20:     """Greater than or equal to (`>=`)."""

No directive @greaterThanOrEqual defined.

GraphQL request (22:5)
21:     greaterThanOrEqual: DateTimeTz
22:     @greaterThanOrEqual
        ^
23:     """Contains."""

Basically looks like any of directives from package are not detected.

@equal

It should be @searchByOperatorEqual... Not sure why...
Do you add operators for DateTimeTz type? Could you please share the config?

Here is my config:
<?php

declare(strict_types=1);

use Core\GraphQL\Directives\SearchByOperatorEqualDayDirective;
use Core\GraphQL\Directives\SearchByOperatorEqualHourDirective;
use Core\GraphQL\Directives\SearchByOperatorEqualMonthDirective;
use Core\GraphQL\Directives\SearchByOperatorEqualYearDirective;
use LastDragon_ru\LaraASP\GraphQL\Builder\Contracts\Operator;
use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\Between;
use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\Contains;
use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\Equal;
use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\GreaterThan;
use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\GreaterThanOrEqual;
use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\LessThan;
use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\LessThanOrEqual;

/**
 * -----------------------------------------------------------------------------
 * GraphQL Settings
 * -----------------------------------------------------------------------------
 *
 * @var array{
 *      search_by: array{
 *          operators: array<string, array<string|class-string<Operator>>>
 *      },
 *      sort_by: array{
 *          operators: array<string, array<string|class-string<Operator>>>
 *      }
 *      } $settings
 */
$settings = [
    /**
     * Settings for {@see \LastDragon_ru\LaraASP\GraphQL\SearchBy\Definitions\SearchByDirective @searchBy} directive.
     */
    'search_by' => [
        /**
         * Operators
         * ---------------------------------------------------------------------
         *
         * You can (re)define types and supported operators here.
         *
         * @see Operator
         */
        'operators' => [
            // empty
            'Money' => ['Float'],
            'DateTimeTz' => [
                Equal::class,
                Between::class,
                LessThan::class,
                GreaterThan::class,
                LessThanOrEqual::class,
                GreaterThanOrEqual::class,
                Contains::class,
            ],
            'DateString' => [
                SearchByOperatorEqualDayDirective::class,
                SearchByOperatorEqualMonthDirective::class,
                SearchByOperatorEqualYearDirective::class,
                SearchByOperatorEqualHourDirective::class,
                Equal::class,
                Between::class,
                Contains::class,
            ],
            'E164' => ['String'],
            'DateTime' => ['Date'],
            'Year' => ['Number'],
        ],
    ],

    /**
     * Settings for {@see \LastDragon_ru\LaraASP\GraphQL\SortBy\Definitions\SortByDirective @sortBy} directive.
     */
    'sort_by' => [
        /**
         * Operators
         * ---------------------------------------------------------------------
         *
         * You can (re)define types and supported operators here.
         *
         * @see Operator
         */
        'operators' => [
            'Money' => ['Float'],
            'DateTimeTz' => ['String'],
            'E164' => ['String'],
            'DateTime' => ['String'],
        ],
    ],
];

return $settings;

Ok it looks like I redefined unnecessary operators like  Equal etc. in DateTime.
This config works:
<?php

declare(strict_types=1);

use Core\GraphQL\Directives\SearchByOperatorEqualDayDirective;
use Core\GraphQL\Directives\SearchByOperatorEqualHourDirective;
use Core\GraphQL\Directives\SearchByOperatorEqualMonthDirective;
use Core\GraphQL\Directives\SearchByOperatorEqualYearDirective;
use LastDragon_ru\LaraASP\GraphQL\Builder\Contracts\Operator;
use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\Between;
use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\Contains;
use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\Equal;
use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\GreaterThan;
use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\GreaterThanOrEqual;
use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\LessThan;
use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\LessThanOrEqual;

/**
 * -----------------------------------------------------------------------------
 * GraphQL Settings
 * -----------------------------------------------------------------------------
 *
 * @var array{
 *      search_by: array{
 *          operators: array<string, array<string|class-string<Operator>>>
 *      },
 *      sort_by: array{
 *          operators: array<string, array<string|class-string<Operator>>>
 *      }
 *      } $settings
 */
$settings = [
    /**
     * Settings for {@see \LastDragon_ru\LaraASP\GraphQL\SearchBy\Definitions\SearchByDirective @searchBy} directive.
     */
    'search_by' => [
        /**
         * Operators
         * ---------------------------------------------------------------------
         *
         * You can (re)define types and supported operators here.
         *
         * @see Operator
         */
        'operators' => [
            // empty
            'Money' => ['Float'],
            'Date' => [
                SearchByOperatorEqualDayDirective::class,
                SearchByOperatorEqualMonthDirective::class,
                SearchByOperatorEqualYearDirective::class,
                SearchByOperatorEqualHourDirective::class,

            ],
            'E164' => ['String'],
            'DateTime' => ['Date'],
            'DateTimeTz' => ['Date'],
            'Year' => ['Number'],
        ],
    ],

    /**
     * Settings for {@see \LastDragon_ru\LaraASP\GraphQL\SortBy\Definitions\SortByDirective @sortBy} directive.
     */
    'sort_by' => [
        /**
         * Operators
         * ---------------------------------------------------------------------
         *
         * You can (re)define types and supported operators here.
         *
         * @see Operator
         */
        'operators' => [
            'Money' => ['Float'],
            'DateTimeTz' => ['String'],
            'E164' => ['String'],
            'DateTime' => ['String'],
        ],
    ],
];

return $settings;

use LastDragon_ru\LaraASP\GraphQL\SearchBy\Operators\Comparison\Between;

The LastDragon_ru\LaraASP\GraphQL\SearchBy\Definitions\SearchByOperatorBetweenDirective should be used instead :) (same for all other classes)

Now question is about Date, will new operators be available in DateTimeTz and DateTime? Default operators will work?

'Date' => [
                SearchByOperatorEqualDayDirective::class,
                SearchByOperatorEqualMonthDirective::class,
                SearchByOperatorEqualYearDirective::class,
                SearchByOperatorEqualHourDirective::class,

            ],

It will redefine operators for Date type, so only four operators will be available.
'DateTime' => ['Date'],
            'DateTimeTz' => ['Date'],

It is fine, DateTime and DateTimeTz will use all (four) operators from Date.

It will redefine operators for Date type, so only four operators will be available.

You can try to use
https://github.com/LastDragon-ru/lara-asp/blob/cf3136cb01a7e225543153a8f815b6419f97c7b5/packages/graphql/src/Testing/GraphQLAssertions.php#L38
to compare schemas (eg after lib and/or lighthouse update) + the schema will also contains all directives (so you will see available operators).

@webard, since 4.4.0 there are few improvments:

I've added operators for Date, DateTime, DateTimeTz, DateTimeUtc Lighthouse's scalars
It is possible to re-use built-in operators, see docs


with totals output, also show if a config file was found/used

with totals output, also show if a config file was found/used

this is done, it shows which config file is used, closing


Plugin parameters don't show up in Eclipse editor

In Eclipse IDE, plugin parameters in <configuration> blocks are usually all listed for selection but that does not work for GIB 3.11.0. The list is basically empty (only suggesting root <project> which does not make sense).
Turns out m2e bypasses the type-info from plugin.xml and tries to gather the types on its own. But since it skips static and/or final fields, the GIB Property enum (which is re-used as a "fake" mojo) does not yield any types.

https://github.com/eclipse-m2e/m2e-core/blob/master/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/mojo/DefaultMojoParameterMetadata.java#L59
https://github.com/eclipse-m2e/m2e-core/blob/master/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/mojo/PlexusConfigHelper.java#L287-L289
https://github.com/eclipse-m2e/m2e-core/blob/master/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/mojo/DefaultMojoParameterMetadata.java#L72-L74

Question pending in m2e-dev: https://www.eclipse.org/lists/m2e-dev/msg02296.html
Depending on how this turns out, this will be fixed in an upcoming release of m2e or I will have to find a workaround in GIB.


Broken docs link: BoxExt doesn't exist

The docs for HorizontalBox mention BoxExt:

Lays out its children horizontally; see BoxExt for functionality.

Unfortunately, the trait BoxExt no longer exists, so clicking the BoxExt link doesn't work.
I would supply a PR to resolve this, but I'm still learning iui, so I'm not sure the correct solution (yet?)

Yeah, we just need to remove that link. I'll do that when I have time soon.

Ah, I'm not super familiar with the Rust documentation ecosystem, but I wish there was a way to see the most-recent docs.
Well, I guess there's one way: check the source code!
This issue has been solved already
My bad :smile:


Path multiple slashes

maree///eafwimeeioam  gives valid path . Is it correct ?

since that would just get normalized by path.normalize(), it should be fine.  for example:
var path = require('path');
console.log(path.normalize('foo////////////////////bar'));

Thank I just used this :) , now I normalize the path even if the user sent foo///bar -> foo/bar . Thanks !

no problem, happy to help!


transaction execution error recorded

remix-tests shows the log when transaction is reverted
fixes #1288  & #1247

@yann300 https://github.com/ethereum/remix/pull/1311/files#diff-ac1eeaa51c21cbf1138487d69c290cf3L157    do we need this catch as error in transaction will be moved to error handler?


tfenv and tfswitch

Definition of Done

tfenv and tfswich in the Ubuntu docker file.

decided to use tfenv instead of tfswitch.

PR was merged.

@syyang-in-cloud btw. you can also use tenv that support Terraform as well as OpenTofu (and Terragrunt :) ) in one tool. It allow you to simplify version management and can do much more, than tfswitch.


Update benchmarks to latest package versions

I only updated remeda, but you can see just updating it makes it narrowly win a few benchmarks.
Node.js v18.19.0
• ./simple/fromPairs.js:

  • fromPairs (single function call)......

    ✔  @mobily/ts-belt  18,958,986.03  ops/sec  ±0.54%  (95 runs)   -5.48%
    ✔  remeda           20,058,027.83  ops/sec  ±1.00%  (96 runs)  fastest
    ✔  ramda             9,246,913.70  ops/sec  ±0.78%  (91 runs)  -53.90%
    ✔  rambda           16,097,820.06  ops/sec  ±0.78%  (92 runs)  -19.74%
    ✔  lodash/fp        14,481,211.07  ops/sec  ±0.54%  (97 runs)  -27.80%
    ✔  native            3,107,481.86  ops/sec  ±0.42%  (98 runs)  -84.51%

     • toPairs (single function call)......

    ✔  @mobily/ts-belt  45,096,919.34  ops/sec  ±0.39%  (97 runs)  -11.13%
    ✔  remeda           50,747,250.13  ops/sec  ±0.30%  (99 runs)  fastest
    ✔  ramda            12,225,290.06  ops/sec  ±2.23%  (97 runs)  -75.91%
    ✔  rambda           43,339,769.15  ops/sec  ±2.14%  (92 runs)  -14.60%
    ✔  lodash/fp        13,001,229.55  ops/sec  ±2.28%  (92 runs)  -74.38%
    ✔  native           50,285,859.52  ops/sec  ±0.49%  (94 runs)   -0.91%

    ➔ Fastest is remeda

Considering all package versions are from 2021, 3-3.5 years later I think we should be fairer in benchmarking with latest versions.

Hi.  Nice job @JUSTIVE

maybe the varied result caused by node version. I'll match to yours and check again.

I re-checked with node 18.19, not much difference from above. Which remeda version are you using? I see some rambda results beat ts-belt, but nothing from remeda.


add --expand-commands flag to neo4j-admin commands

This is expected to fail on 4.3 until fixes are merged

thanks @jennyowen. TBH we need the tests to make sure that neo4j-admin doesn't regress!


AMQP-659: @RabbitListener Annotation Improvements

JIRA: https://jira.spring.io/browse/AMQP-659

add @AliasFor to @Queue and @Exchange annotation value()
Support simple queue declaration (no binding)

Merged as https://github.com/spring-projects/spring-amqp/commit/1c8ca3a4673d094a00b722177b0393a1c860a76f


[docs] Fix few grammar issues

[x] I have followed (at least) the PR section of the contributing guide.

Closes #15632

@DDDDDanica Thanks!


Card react and image

hello guys ,
im new to programming so please be patient . i want to use a new card in every item that i want to use.
i expected to have like this group of cards but it doesn't work

i used:
import React, { Component } from "react";
import factory from "../ethereum/factory";
import { Card, Button } from "semantic-ui-react";
import Layout from "../components/Layout";
import { Link } from "../routes";
class ItemIndex extends Component {
static async getInitialProps() {
const items = await factory.methods.getdeployeditems().call();
  return { items };
}

contactCards = () => {
return this.props.items.map(address => (

));
};
}
render();
return (

available

<Card.Group>

{this.contactCards()}
</Card.Group>

{this.renderItems()}

);
export default ItemIndex;
...................................................................
im using react , semantic ui and next.js
the second issue that when i want to use an image where should i put the source , i mean the image path because i created a folder and copy the the path like
Image src='/images/image.png' but i got an error message that the file is not found even that i tried
Image src='http://localhost:3000/images/image.png'
........................................................
the third issue how can i use the image as input , i mean the user can upload image to website and after that i can used it to show

Please use StackOverflow for usage questions, we use GitHub for tracking issues.


changing the nuxt "dir" option through a module doesn't work

Environment

Operating System: Linux
Node Version:     v16.14.2
Nuxt Version:     3.0.0
Nitro Version:    1.0.0
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      modules
Runtime Modules:  ()
Build Modules:    -

Reproduction
https://stackblitz.com/edit/github-m8hu6q?file=nuxt.config.ts
Describe the bug
Customizing the dir options using a module doesn't work anymore.
Additional context
No response
Logs
No response

@pi0 This is because layout is resloved from nuxt.options.layers[number].config.dir, but the config in layer is not reactive when nuxt.options.dir is updated in modules, I have a few ideas on fixing the issue, what do you think ?

Update c12 to support reactive config between layers and root config
Or use nuxt.options when resolving layouts, pages and ....
Or change modules api to update layer config
Or re-calculate layer config after modules execution


Refuses to load, dependency not found?

log.txt
Fan controll v127
Plugin doesent want to load
Activated HWinfo gadget reporting (and restarted it)
Did i muss something?
PS: sorry for german log file. But i dont know of a way to translate a whole log file...

Make sure to unlock the dll (right-click, properties...).

oke wow, dident think that windows does that. it works now. thanks alot!
i tryed it out now and saw that it wont show wattage in sensors even if you activate it in hwinfo (temperatures work tho)
is there any other way i can include wattage (cpu maybe gup later) as a sensor?

FanControl has no wattage support.

:(
so i wouldent even be able to do it by using that costume file feature?
btw. how would that work. how has that .txt to be formatted? just the value, that it?

how would that work

Value as a string, that's it.

thanks!


Create 0028-find-the-index-of-the-first-occurence-in-a-string

File(s) Modified: 0028-find-the-index-of-the-first-occurrence-in-a-string.java
Language(s) Used: java
Submission URL: _https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string/submissions/910556174/_

Important
Please make sure the file name is lowercase and a duplicate file does not already exist before merging.

Hi! A file with a solution for this already exists, but your solution differs so we could add it too, to the file.
Could you edit the existing file and add your solution to it, and I can merge it.
You can separate the solutions like this:
// Solution ONE (you can write the type of yuor solution like "brute-force", "KMP", "Hashing" etc)
class Solution {
    public int strStr(String haystack, String needle) {
        //...
    }
}

// Solution TWO
class Solution {
    public int strStr(String haystack, String needle) {
        //...
    }
}

Hi! A file with a solution for this already exists, but your solution differs so we could add it too, to the file.
Could you edit the existing file and add your solution to it, and I can merge it.
You can separate the solutions like this:
// Solution ONE (you can write the type of yuor solution like "brute-force", "KMP", "Hashing" etc)
class Solution {
    public int strStr(String haystack, String needle) {
        //...
    }
}

// Solution TWO
class Solution {
    public int strStr(String haystack, String needle) {
        //...
    }
}

Sorry for the delay on this, I have been traveling. I updated the PR based on your recommendation. Please let me know if there's anything else that needs to be done

@a93a sorry to bother you, but have you had a chance to review the changes applied?

@benmak11 my apologies for the very late reply, I must somehow missed your update, sorry for that. But it looks good, thanks for your contribution.


Draft: Packaging guide for iOS

This PR introduces a comprehensive guide on packaging React Native modules as .framework for iOS:

Describes the motivation to package React Native modules for integration with native apps.
Provides step-by-step instructions, from creating a new React Native app to building the framework.
... TODO

The goal of this new documentation is to equip developers with the knowledge needed for seamless integration of React Native modules into native iOS projects.

Hi @michalchudziak, thanks for this guide, but I have a few questions:

how can I see the preview from netlify? I see that the guide is not connected with the sidebar and if I navigate to docs/packaging-ios, I can't see it.
There are some linting error that should be fixed
What's the goal with this guide? From which need does it come from? I am not sure that this is what we actually want to promote as a way to package libraries: we already have a guide to package iOS (and Android) modules use NPM and that should be the suggested way to ship those libraries. On top of that, packaging the code as XCFramework is not that straightforward if we think about the New Architecture and the code generated by Codegen: the framework you'd like to ship will not build as it needs the files generate by codegen that lives in the app space and not in the framework space.
So, as of today, I don;t think that we can/should ship a guide like this: it is quite advanced and it can create confusion in the majority of React Native users.

@michalchudziak I agree that XCFrameworks can bring benefit, but we can have this page in the official documentation, unfortunately.
This can make for an amazing post in your company blogpost, but for the official documentation we want to have something that is battle-tested and work in all the scenarios, including the New Architecture, and that integrates well with the current tooling (e.g. autolinking).
At the moment, none of these requirements are true:

We are not using packaged Xcframeworks internally (except from hermes-engine, which required a non trivial amount of work to have it working properly) => Not battle tested
It doesn't work well in all the scenarios => the New Architecture is not supported
It does not integrates well with the current tooling => it doesn't work with autolinking (as you have to reference the target manually and to modify the AppDelegate.mm) and it requires multiple steps to integrate from our users.

Also considering that now we can build dependencies with use_frameworks! and dynamic linking, the pros of packaging the library as XCFramework are obtainable in another way and with much less effort.


chore: Add script descriptions to composer file

Issue
We are getting more and more commands in our composer file. For first time collaborators its must sometimes be hard to find out what all these commands are meant for.
Solution
Use scripts-description
Impact
Better understanding of what tests do.
Usage Changes
No
Considerations
commands are being grouped when running composer list. But the command cs for example is not being shown here because its more at the top of the list.

We could even better group commands by prefixing them all. But maybe just adding a description in the composer file for all to read is a perfect start.

coverage: 87.937%. remained the same
when pulling 3acbefbd9d629c20d71c88a7cb80190fb628fbc3 on 2.x-scripts-descriptions
into 6e8b6ab375df317207ea658cccb12cfb4710e64b on 2.x.

Good addition, thank you @Levdbas 👍


Car like robot navigation

Hi, I am building a MIT-Racecar. It has LiDAR, ZED stereo camera, Ackerman drive, and VESC. I am looking for a navigation stack for car-like-robot since I have issues with DWA local planner because my robot can not rotate in place. I heard teb_local_planner can be used for Car-like-robot with ackerman. Could anyone explain:

If Teb can handle no-in-place rotation?
What parameters should I use for car like robot?

Thanks,

Hi,

yes.

please have a look at the example:
roslauch teb_local_planner_tutorials robot_carlike_in_stage.launch and all its parameter and configuration files.
You might also check out the tutorials section.

Note, this question is better placed on answers.ros.org since it does not describe any issue and it could be interesting for other users as well.


Logging exceptions with ExceptionTelemetry

When you log an error with an exception through the ILogger interface like this:
logger.Log(LogLevel.Error, 0, state, exception, messageFormatter);

it will use a TraceTelemetry instance.
Is it possible to use an ExceptionTelemetry instance in the case where an exception is present? Exception telemetries provide a nicer experience in UI's such as Visual Studio and the Azure portal.

This new behavior actually makes less sense if someone uses a global exception filter where all exceptions are tracked in a unified way.
With this new version, I get two exception telemetries (one at the LogError and one in my global exception filter. Of course, in the model I am using (using a global exception filter), I can change my .TrackException() into .LogError()...
I would have considered this as a bigger change than what makes into a .1 upgrade...


Cleanup third party authentication methods in PFUser.

Renamed authentication provider to PFUserAuthenticationDelegate
Cleaned up that protocol
Updated documentation and methods in PFUser
Updated tests and implementation

cc @grantland

I don't think we need PFAnonymousAuthenticationProvider anymore, since it doesn't do anything and we already return true if the delegate doesn't exist.
Other than that and a small nit, LGTM!

Discussed offline, but putting here for reference: We still need it, since we are checking for it when logging in / linking, as well as we don't really want to allow overriding of anonymous authentication source.


Corrected typos in CONTRIBUTING.md [skip ci]

This PR closes #8527.
Changes in CONTRIBUTING.md

Fix 'buid' to 'build'
Maintain consistency for words with hyphens
Other minor typos

Signed-off-by: Partho Sarthi<EMAIL_ADDRESS>

build

build

build


Compact Sidebar component + Change base & tables appears

Pass database & tables list in sidebar component.
And separate a list of database, and a list of tables.

Nice job :D


Unable to clear text in text area

Actual behaviour
If clear API is used in a textarea field, only a single line is cleared, the whole field is not cleared.
Expected behaviour
It should clear the whole textarea field
Steps to reproduce

Create a html file(a.html) with the following

<!DOCTYPE html>
<html>
    <body>
        <label for="text_box">textbox</label>
        <textarea id="text_box"></textarea>
    </body>
</html>

Run the following script

const { openBrowser, goto, textBox, into, write, press, clear, closeBrowser } = require('taiko');
(async () => {
    try {
        await openBrowser();
        await goto('<path to a.html>');
        await write("hello", into(textBox("textbox")));
        await press("Enter");
        await write("Good Day");
        await clear(textBox("textbox"));
    } catch (error) {
        console.error(error);
    } finally {
        await closeBrowser();
    }
})();

Notice only the line "Good Day" is cleared, the textarea still contains "hello".

This issue has been verified and found fixed.
Tested version:
Version: 1.0.1 (Chromium: 76.0.3803.0) 5ada00f72c218606b9681f18966987ac606bcaba


[Feature]:

Expected behavior
Have an indication of number of active GNU Screen or TMUX sessions at the PS1.
Current behavior
There is no indication of the number of active GNU Screen or TMUX sessions in PS1
Possible solution
No response
Context
No response
Notes
No response

Hey! Thank you for making this into a feature request. I have edited it to reflect my initial thoughts.

Updated the title because I just now saw that the title was empty...


Add "upscale figures" button

This would just increase font sizes throughout the plots in an automatic way, making the plots more usable in papers/etc.
Users can already export plots to the Vega Editor, but this would make things easier (even Vega-Lite can be hard to get started with).
Idea c/o feedback from Rob and Jamie

putting on backburner due to discussion with jamie; having users do this in the vega editor is going to be easiest to maintain


Pipeline x read dep

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall


MVC / angular app seed initial oidc token manager with id_token

I have an app/site that is MVC.  A user would navigate to secured MVC page which then handles cookie OAuth authentication with our IdSvr3 server.  So at this point they are authenticated. Then the javascript on the MVC page starts spinning up the angular app.  When the angular app comes up the initial page is secured which causes the app to leverage the OIDC token manager and it makes a round trip (authorize/callback) to the IdSvr3 to obtain a id_token and access_token for the token manager.  This initial SSO round trip by angular adds an additional 1-3 seconds on to the angular apps loading time.
Since MVC already has a ClaimsPrincipal User authenticated is it possible to have MVC grab the id_token and an initial access_token and pass those down to the View where they could be used to initialize the oidc token manager so that the token manager doesn't have to initially request these itself from the SSO server?  After the initial load then the usual renew token handles would take care of keeping a valid access token.
Am I missing something here?  Can you point me in the right direction? The goal is to reduce the initial angular load times if possible and this was one thing that seemed to be adding a couple extra seconds.

You could try to share tokens from the server side app to the client side code, but it's a lot of work.

The seeding of angular/oidcTokenManager from MVC would just be at the page load then the oidc mechanism would take over the refresh.  Is the hard part obtaining the id_token and access_token from IdSvr3 on the MVC side or initializing the oidc client with those tokens?
Do you have any other suggestions for speeding up initial oidc token manager process?  It just seems like double work is being done when MVC has a ClaimsPrincipal user and the browser has a cookie then oidc has to also do the redirect/callback to initialize the tokens.

Do you have any other suggestions for speeding up initial oidc token manager process? It just seems like double work is being done when MVC has a ClaimsPrincipal user and the browser has a cookie then oidc has to also do the redirect/callback to initialize the tokens.

It si double work, but you're logically building 2 clients (not one). Also, FWIW, this repo and library is deprecated in favor of: https://github.com/IdentityModel/oidc-client-js/

Thanks Brock.
I started using the oidc-client-js library for token management instead.
I was working through the project more. I ran into a non-angular MVC page that I'm using that also needs to make authenticated API calls so it uses the oidc-client-js to do the popup sso auth method against the IdSvr to obtain a token then adds the bearer token to the headers of the jquery ajax call.  All works well, but this one is more noticeable because of the popup that it acts like it is doing something extra that could be avoided.  The popup flashes up for probably less than 1 second as the user has a valid cookie already due to the MVC authentication.  I looked at the OWIN openID startup code and it adds the id_token and access_token to the cookie claims on the auth response.  If I passed those down to javascript via MVC's model binding could the oidc-client-js initialize with those?  I'm not seeing anything in the oidc-client-js OidcClient or OidcClientSettings constructor to allow for this.  Would this be possible or am I missing something?
I'm not sure if I'm missing something as it seems like the authentication on most websites is pretty seamless.  Granted they must be doing some sort of client resource type authentication as most don't redirect to a SSO page for authentication, but I would think there has to be an easier way to get OWIN/cookie and javascript/tokens initialized at one time instead of our current setup that seems drag out the app initialization / authentication process.

The popup flashes up for probably less than 1 second as the user has a valid cookie already due to the MVC authentication.

In the newer library there's a silent API call that you could use to avoid the popup (and it's via an iframe).

I'm not seeing anything in the oidc-client-js OidcClient or OidcClientSettings constructor to allow for this.

You want to look at the UserManager -- that's the replacement for what's in oidc-token-manager.


INT - Fix for setting credential data for external IDP client

@vivekschauhan can we set data to an empty map if it comes back as nil from encryptSchema?
I missed it.


move Optimized Builds out of collapsed section

So that it can be linked to

Something went wrong with PR preview build please check


Page(Screen) is not showing variable value on next page after routing (IONIC 4 Beta)

When i navigate from one page to another via routing then on next page dynamic variables values not showing on page(screen). If i touch anywhere on screen it displays on screen immediately. I have tried several methods for displaying value on screen but none is working. I have tried NgZone but also not working. Please help me.
Here is HTML File Code
{{scheduled_date}}
{{scheduled_time}}
Here is TS File Code
ngOnInit() {
this.zone.run(() => {
this.scheduled_date = this.common.formatDate(new Date());   // '22/09/2018'
this.scheduled_time = this.common.formatTime(new Date());   // '11:30 AM'
});
}
ngAfterViewInit() {
this.zone.run(() => {
this.scheduled_date = this.common.formatDate(new Date());
this.scheduled_time = this.common.formatTime(new Date());
});
}
ngAfterContentInit() {
this.zone.run(() => {
this.scheduled_date = this.common.formatDate(new Date());
this.scheduled_time = this.common.formatTime(new Date());
});
}

Perhaps ng* lifecycle methods are not called at all when you navigate back to your page.


Bug in spy, in last element in the page

I go do the demo:
http://oblador.github.io/angular-scroll/
Remove the images from section 2 & section 3
The links works fine, but <li section3> never get active class.
It's strange behavior. Because when user click go to section 2. He don't see section 2 highlighted in the menu.
I would like to solve it by myself. But I don't have an idea how.

It's because your reached the bottom of the page. One trick would be to give to the last section the height of the page..

Or read the docs: https://github.com/oblador/angular-scroll#bottom-spy


Is InstallShield available on Visual Studio 2017 and 2019?

Is InstallShield available on Visual Studio 2017 and 2019?

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

ID: 283a3669-9f0e-c872-028d-9eac66fc221b
Version Independent ID: bdfea87a-3b7d-80ef-51f2-ceadb1ba26bb
Content: Deploy an Office solution by using Windows Installer - Visual Studio
Content Source: docs/vsto/deploying-an-office-solution-by-using-windows-installer.md
Product: visual-studio-windows
Technology: office-development
GitHub Login: @John-Hart
Microsoft Alias: johnhart

@felipepessoto I would recommend looking at the InstallShield web site: https://www.flexerasoftware.com/install/products/installshield.html.

@John-Hart shouldn't we update the docs to use the current installer project for Visual Studio? Since InstallShield is not freely available for VS 2017 and 2019?

I just recently updated this doc: Deploying a Visual Studio Tools for Office Solution Using Windows Installer.  I've left this one as is for now but may consider deleting it

Thanks @John-Hart


Looking for dataset

Hi ,friends. The dataset download link is no longer valid, please update the link, thank you very much!

Thanks for reaching out. The dataset download link is valid, but it is based on request. Please click the 'request access' button when redirecting to Google Drive. We will grant you access within one to two days.

Thank you for your reply. I have submitted the request and hope you can authorize me to use it. Best regards！


gke: add preemtible flag to Profile API

Db column is already added this is just a small fix to actually set the field value in profile.


PHP Not Evaluated

I've installed Tag 2.4 and Master and in both I'm seeing php files being shown as plain text. Server config is a little over my head, but ssh-ing into the box and running apt-get install libapache2-mod-php5 per: http://stackoverflow.com/a/30772294 seems to resolve the issue.

You are using an outdated/modified config.yml missing the ProxyPassMatch parameters. Here are the defaults: https://github.com/geerlingguy/drupal-vm/blob/master/example.config.yml#L83
Some time ago Drupal VM switched from mod_php to PHP-FPM as the default and that's the root cause of your issue. Your options are to either install libapache2-mod-php5 as you've done (you can also add it to extra_packages) or to switch over to the recommended PHP-FPM setup by adding the ProxyPassMatch parameters to your config.yml.
You can find the release notes with instructions here: https://github.com/geerlingguy/drupal-vm/releases/tag/2.2.1
And a related issue referencing how other solved it here: https://github.com/geerlingguy/drupal-vm/issues/460#issuecomment-187390303

Hmm, yeah I was using the lastest tag (2.4 which is after 2.2) so I had
that change. I also tried with master, and got the same result. I deleted
my vagrant directory, and tried again and actually got a different result.
But still not a working vagrant box. I'll look into this more myself.
Thanks for the quick response though.
On Tue, May 3, 2016 at 11:09 AM, Oskar Schöldström<EMAIL_ADDRESS>
wrote:

Closed #583 https://github.com/geerlingguy/drupal-vm/issues/583.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/geerlingguy/drupal-vm/issues/583#event-648974060

I apologize, I just figured that was the problem. But let's keep this open until you get it working. Would you mind posting your config.yml and maybe I can spot something.

No problem at all. I thought the same thing! I've used this a bunch and never had this problem. I think I'm messing something up to be honest as I started over and I was seeing 403 forbidden rather than the unevaluated php.
Here's my config.yml: (Note: this is currently giving me 403 and not the issue with php not evaluating)
`---
vagrant_box can also be set to geerlingguy/centos6, geerlingguy/centos7,
geerlingguy/ubuntu1604, geerlingguy/ubuntu1204, parallels/ubuntu-14.04, etc.
vagrant_box: geerlingguy/ubuntu1404
vagrant_user: vagrant
vagrant_synced_folder_default_type: nfs
If you need to run multiple instances of Drupal VM, set a unique hostname,
machine name, and IP address for each instance.
vagrant_hostname: drupalvm.dev
vagrant_machine_name: drupalvm
vagrant_ip: <IP_ADDRESS>
Allow Drupal VM to be accessed via a public network interface on your host.
Vagrant boxes are insecure by default, so be careful. You've been warned!
See: https://docs.vagrantup.com/v2/networking/public_network.html
vagrant_public_ip: ""
A list of synced folders, with the keys 'local_path', 'destination', and
a 'type' of [nfs|rsync|smb] (leave empty for slow native shares). See
http://docs.drupalvm.com/en/latest/extras/syncing-folders/ for more info.
vagrant_synced_folders:
The first synced folder will be used for the default Drupal installation, if
build_makefile: is 'true'.

local_path: ~/workspace/sites
destination: /var/www
type: nfs
create: true

Memory and CPU to use for this VM.
vagrant_memory: 1024
vagrant_cpus: 2
The web server software to use. Can be either 'apache' or 'nginx'.
drupalvm_webserver: apache
Set this to false if you are using a different site deployment strategy and
would like to configure 'vagrant_synced_folders' and 'apache_vhosts' manually.
build_makefile: false
drush_makefile_path: ../../drupal.make.yml
Set this to false if you don't need to install drupal (using the drupal_*
settings below), but instead copy down a database (e.g. using drush sql-sync).
install_site: false
Settings for building a Drupal site from a makefile (if 'build_makefile:'
is 'true').
drupal_major_version: 8
drupal_core_path: "/var/www/drupalvm/drupal"
drupal_domain: "{{ vagrant_hostname }}"
drupal_site_name: "Drupal"
drupal_install_profile: standard
drupal_enable_modules: [ 'devel' ]
drupal_account_name: admin
drupal_account_pass: admin
drupal_mysql_user: drupal
drupal_mysql_password: drupal
drupal_mysql_database: drupal
Additional arguments or options to pass to drush site-install.
drupal_site_install_extra_args: []
Cron jobs are added to the root user's crontab. Keys include name (required),
minute, hour, day, weekday, month, job (required), and state.
drupalvm_cron_jobs: []
- {
name: "Drupal Cron",
minute: "*/30",
job: "drush -r {{ drupal_core_path }} core-cron"
}
Drupal VM automatically creates a drush alias file in your ~/.drush folder if
this variable is 'true'.
configure_local_drush_aliases: true
Apache VirtualHosts. Add one for each site you are running inside the VM. For
multisite deployments, you can point multiple servernames at one documentroot.
View the geerlingguy.apache Ansible Role README for more options.
apache_vhosts:

servername: "{{ drupal_domain }}"
documentroot: "{{ drupal_core_path }}"
extra_parameters: |
ProxyPassMatch ^/(..php(/.)?)$ "fcgi://<IP_ADDRESS>:9000{{ drupal_core_path }}"

servername: "adminer.{{ vagrant_hostname }}"
documentroot: "{{ adminer_install_dir }}"
extra_parameters: |
ProxyPassMatch ^/(..php(/.)?)$ "fcgi://<IP_ADDRESS>:9000{{ adminer_install_dir }}"

servername: "xhprof.{{ vagrant_hostname }}"
documentroot: "{{ php_xhprof_html_dir }}"
extra_parameters: |
ProxyPassMatch ^/(..php(/.)?)$ "fcgi://<IP_ADDRESS>:9000{{ php_xhprof_html_dir }}"

servername: "pimpmylog.{{ vagrant_hostname }}"
documentroot: "{{ pimpmylog_install_dir }}"
extra_parameters: |
ProxyPassMatch ^/(..php(/.)?)$ "fcgi://<IP_ADDRESS>:9000{{ pimpmylog_install_dir }}"

servername: "{{ vagrant_ip }}"
serveralias: "dashboard.{{ vagrant_hostname }}"
documentroot: "{{ dashboard_install_dir }}"

servername: "My Site"
serveralias: "dev.my-site.dev"
documentroot: "var/www/my_site"

apache_remove_default_vhost: true
apache_mods_enabled:

expires.load
ssl.load
rewrite.load
proxy.load
proxy_fcgi.load

Nginx hosts. Each site will get a server entry using the configuration defined
here. Set the 'is_php' property for document roots that contain PHP apps like
Drupal.
nginx_hosts:

server_name: "{{ drupal_domain }}"
root: "{{ drupal_core_path }}"
is_php: true

server_name: "adminer.{{ vagrant_hostname }}"
root: "{{ adminer_install_dir }}"
is_php: true

server_name: "xhprof.{{ vagrant_hostname }}"
root: "{{ php_xhprof_html_dir }}"
is_php: true

server_name: "pimpmylog.{{ vagrant_hostname }}"
root: "{{ pimpmylog_install_dir }}"
is_php: true

server_name: "{{ vagrant_ip }} dashboard.{{ vagrant_hostname }}"
root: "{{ dashboard_install_dir }}"

nginx_remove_default_vhost: true
nginx_ppa_use: true
MySQL Databases and users. If build_makefile: is true, first database will
be used for the makefile-built site.
mysql_databases:

name: "{{ drupal_mysql_database }}"
encoding: utf8
collation: utf8_general_ci

mysql_users:

name: "{{ drupal_mysql_user }}"
host: "%"
password: "{{ drupal_mysql_password }}"
priv: "{{ drupal_mysql_database }}.*:ALL"

Comment out any extra utilities you don't want to install. If you don't want
to install any extras, make set this value to an empty set, e.g. [].
installed_extras:

adminer
drupalconsole
mailhog
memcached

- nodejs

pimpmylog

- redis
- ruby
- selenium
- solr

varnish
xdebug
xhprof

Add any extra apt or yum packages you would like installed.
extra_packages: []
nodejs must be in installed_extras for this to work. Valid examples: "0.10",
"0.12", "4.x", "5.x".
nodejs_version: "0.12"
nodejs_npm_global_packages: []
nodejs_install_npm_user: "{{ drupalvm_user }}"
ruby must be in installed_extras for this to work.
ruby_install_gems_user: "{{ drupalvm_user }}"
ruby_install_gems: []
You can configure almost anything else on the server in the rest of this file.
extra_security_enabled: false
drush_version: "master"
drush_keep_updated: true
drush_composer_cli_options: "--prefer-dist --no-interaction"
firewall_allowed_tcp_ports:

"22"
"25"
"80"
"81"
"443"
"4444"
"8025"
"8080"
"8443"
"8983"
firewall_log_dropped_packets: false

PHP Configuration. Currently-supported versions: 5.5, 5.6, 7.0.
PHP 7.0 requires a few additional changes. See the documentation at
http://docs.drupalvm.com/en/latest/other/php-7/
php_version: "5.6"
php_memory_limit: "192M"
php_display_errors: "On"
php_display_startup_errors: "On"
php_realpath_cache_size: "1024K"
php_sendmail_path: "/usr/sbin/ssmtp -t"
php_opcache_enabled_in_ini: true
php_opcache_memory_consumption: "192"
php_opcache_max_accelerated_files: 4096
php_max_input_vars: "4000"
Drupal VM defaults to using PHP-FPM with either Apache or Nginx. If you wish
to instead use Apache + mod_php with an Ubuntu base box, make sure you add
libapache2-mod-php5 to extra_packages elsewhere in this config file.
php_enable_php_fpm: true
php_fpm_listen: "<IP_ADDRESS>:9000"
composer_path: /usr/bin/composer
composer_home_path: "/home/{{ drupalvm_user }}/.composer"
composer_home_owner: "{{ drupalvm_user }}"
composer_home_group: "{{ drupalvm_user }}"
composer_global_packages:
- { name: phpunit/phpunit, release: '@stable' }
Run specified scripts after VM is provisioned. Path is relative to the
provisioning/playbook.yml file.
post_provision_scripts: []
- "../examples/scripts/configure-solr.sh"
MySQL Configuration.
mysql_root_password: root
mysql_slow_query_log_enabled: true
mysql_slow_query_time: 2
mysql_wait_timeout: 300
adminer_install_filename: index.php
Varnish Configuration.
varnish_listen_port: "81"
varnish_default_vcl_template_path: templates/drupalvm.vcl.j2
varnish_default_backend_host: "<IP_ADDRESS>"
varnish_default_backend_port: "80"
Pimp my Log settings.
pimpmylog_install_dir: /usr/share/php/pimpmylog
pimpmylog_grant_all_privs: true
XDebug configuration. XDebug is disabled by default for better performance.
php_xdebug_default_enable: 0
php_xdebug_coverage_enable: 0
php_xdebug_cli_enable: 1
php_xdebug_remote_enable: 1
php_xdebug_remote_connect_back: 1
Use PHPSTORM for PHPStorm, sublime.xdebug for Sublime Text.
php_xdebug_idekey: PHPSTORM
php_xdebug_max_nesting_level: 256
Solr Configuration (if enabled above).
solr_version: "4.10.4"
solr_xms: "64M"
solr_xmx: "128M"
Selenium configuration.
selenium_version: 2.46.0
Other configuration.
dashboard_install_dir: /var/www/dashboard
known_hosts_path: ~/.ssh/known_hosts
`

Do you have a Drupal installation located on your host computer in  ~/workspace/sites/drupalvm/drupal/index.php?
As you've set build_makefile: false that means you need to provide the files yourself.
The local_path in the vagrant_synced_folders list needs to match up with drupal_core_path: "/var/www/drupalvm/drupal"
vagrant_synced_folders:
  # The first synced folder will be used for the default Drupal installation, if
  # build_makefile: is 'true'.
  - local_path: ~/workspace/sites

No, I have one at var/www/my-site that I was accessing via dev.my-site.dev

I also saw you had added:
  - servername: "My Site"
    serveralias: "dev.my-site.dev"
    documentroot: "var/www/my_site"

If you have a Drupal installation in ~/workspace/sites/my_site/index.php, this should actually be set to:
  - servername: "My Site"
    serveralias: "dev.my-site.dev"
    documentroot: "/var/www/my_site"
    extra_parameters: |
          ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://<IP_ADDRESS>:9000/var/www/my_site""

Usually you would not add an extra vhost entry unless you are running multiple sites in the same VM though. The default:
  - servername: "{{ drupal_domain }}"
    documentroot: "{{ drupal_core_path }}"
    extra_parameters: |
          ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://<IP_ADDRESS>:9000{{ drupal_core_path }}"

Will evaluate to (you can change the drupal_* variables to match your settings).
  - servername: "drupalvm.dev"
    documentroot: "/var/www/drupalvm/drupal"
    extra_parameters: |
          ProxyPassMatch ^/(.*\.php(/.*)?)$ "fcgi://<IP_ADDRESS>:9000/var/www/drupalvm/drupal"

Yea I was planning to have multiple sites. Let me try with the extra parameters.

Beautiful. Adding the extra_parameters did the trick. I was definitely getting confused from using an older version. I think pre 2.2. Thanks for your help!
I still can't explain the original issue of php not evaluating, so sorry for that.
In the past I've used a single box with multiple local sites, but it seems like that's not really the intended use. Is that correct?
Thanks again for your help.

Also, really sorry I didn't see this earlier! [http://docs.drupalvm.com/en/latest/deployment/local-codebase/#disable-the-drush-make-build-and-site-install]

A lot of people are using it for multiple sites, it's just that there's still a few pieces missing. For local codebases and install_site: false, like your setup, it should work pretty well already, but if you want to use makefiles and run drush si it currently doesn't work. @geerlingguy mentioned interest in supporting it at a later stage https://github.com/geerlingguy/drupal-vm/issues/449#issuecomment-185560269.
Personally I stick to one VM per site as I like having it contained in a single cloneable repo that anyone from our tech team can get started with. It also allows us to easily configure and later modify the environment so it matches production on a site per site basis.
The setup is just a matter of preference though and I know a lot of people run multiple sites per VM just like you. Hopefully both will work equally well soon.