IOS native can't handle parallel connection from node

I added more tests to the master_chapko_minidatashifttest branch.
The simplest one ('Can shift data via parallel connections') does the same as 'Can shift data' but using 3 parallel non-tls connections. Server receives data from 3 client sockets, sends data back, but only 1 of the 3 connections receives it back from server.
Logs:

device1.log
device2.log

Updated logs:
Device 1
Device 2

The test may be failing for a problem with the test itself.
I've sent the detailed information to Dersim.
In a nutshell: the server is calling socket.end() after a socket.write(), the problem is that libuv closes the socket before the native layer has sent the msg. That may not happen on the desktop or Android because of the thinner native layer that manage to send the msg before libuv closes the socket.
The proposed fix is to avoid closing the socket on the server and let the client decide when it's time to close it.

I did more investigation on the issue, it turned out that no matter when the server issues a socket.end, things will break.
I modified the test so that the server sends back the received message and closes the socket 250ms later.
I see all the three massages been received back by the clients, then the first socket.end is executed on the server side and the first client receives the socket 'on end' event correctly. After that the connection between the server and the other two clients is broken and no other socket 'end' events are received by the clients.
It looks like the native layer/MPCF may have an incorrect behavior after the server closes the first socket, treating all following socket operations, coming from the server, to not been forwarded to the other peer.
I also tried a different test: instead of closing the sockets on the server, the sockets are closed on the client in the "on data" event after the received data is compared to the expected data. In that case everything works as expected. Closing the socket on the client doesn't cause problems to the other sockets that are still processing data between the two peers.
This second test was done to make sure the problem is not occurring on both ends but only when is the server to close the socket.

PR: https://github.com/thaliproject/thali-ios/pull/6


base variable standardization

Updated to follow the standard single underscore for variable naming and singular _line suffix.
⚠ This would be a breaking change for anyone using this package in their dbt deps.

Thanks for opening this PR @jordan8037310! I think your change is a good and sensible one, but it is definitely a breaking change. I don't have any issues with merging this though -- it will just need to ship as version 0.2.0.
Longer-term, I'd like to update this package to use a new strategy for declaring sources like the one shown here.


adding support for leading dot. adding use of prototypical inheritance for Stack's substitutions and partials

There was new feature proposed which is in line with the current spec(which isn't updating for years :() here: https://github.com/mustache/spec/issues/52
It's been implemented in some of the Mustache implementations already and is backward compatible. It should allow us avoid issues when some key is missing in top context and engine is looking for that variable in parent contexts.

Fixed an issue with substitutions when one overrides any other substitutions used for the same partial template during multi level inheritance(in other words all that happening inside other partial template).
Here's the test sample:
{{!subPartial.mustache}}
Haloha! {{$replace}}replace me{{/replace}}

{{!partial.mustache}}
{{<subPartial}}
    {{$replace}}removed1{{/replace}}
{{/subPartial}}
{{<subPartial}}
    {{$replace}}removed2{{/replace}}
{{/subPartial}}

{{!main.mustache}}
{{>partial}}

Without the fix it renders:
Haloha! removed1 Haloha! removed1

When second replacement should be removed2.
The fix is that the stackSubs & stackPartials are updated with prototypical inheritance. So one partial doesn't affect others. And instead just inherits all the information from the parent.

Can split up my work into 2 separated PR.. but not sure if they're going to be ever accepted...

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Controller does not request draw on load_state

I overlooked that it would have been nice to add a request_draw call to Controller.load_state in #297

Had a quick look at this, but at that point there is no reference to the renderer/canvas/viewport, so we cannot call request_draw. Unless we store a reference on the controller, but that may hinder gc.


Porting to pawsey

Wrap ldd in try/except as executables on pawsey seem to be statically linked.
Also for the same reason don't assume LD_LIBRARY_PATH is set.
Commented out call to load_modules. Pawsey has a lot of default modules
that it relies on, so can't reliably monkey with that.
Removed a couple of the bespoke flags Marshall added to the slurm
scheduler, and also explicitly pass through the PAYU environment
variables. Also set in the current environment, but that didn't seem
to make it through to the submitted job.

Hello @aidanheerdegen! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file payu/envmod.py:

Line 106:5: E722 do not use bare 'except'

In the file payu/experiment.py:

Line 785:80: E501 line too long (83 > 79 characters)

In the file payu/schedulers/slurm.py:

Line 47:80: E501 line too long (83 > 79 characters)

This is a place-holder to make it easier to find and focus attention on what is required to port to magnus @ pawsey. Some of the changes are only to get it working, and aren't intended to be merged into master.

Coverage decreased (-0.01%) to 42.232% when pulling b28212cbf19b11110dab2d7011b0777e366188a3 on pawsey into 0109f2f4137fb34321504dd30950e86dd4876aee on master.


Change icons into images

Hi ,
I am unable to change icons into images in services section.
I need to convert services section into event speakers.
Is that possible?
Thank you

Hello @mujtababrohi1
Yes, it is possible. follow my steps:

open layouts/partials/service.html in a text editor.
at line 17, replace  with
in config.toml, replace icon with image.

Hello @mujtababrohi1
Yes, it is possible. follow my steps:

open layouts/partials/service.html in a text editor.
at line 17, replace  with
in config.toml, replace icon with image.

hey @mujtababrohi1
I think your issue has been solved. so I am closing this issue, if you have any more queries you can re-open this issue or create a new one. thank you

hey @mujtababrohi1
I think your issue has been solved. so I am closing this issue, if you have any more queries you can re-open this issue or create a new one. thank you


Presto execution error

Not sure if the error is due to PYTD or not, but connection using the PRESTO engine doesn't seem to work anymore (it was working just fine yesterday).
When running a simple code as below I get an "Internal Failure" error:
import pytd
td_client = pytd.Client(database='my_database', apikey='XXX', endpoint='https://api.treasuredata.com/', default_engine='presto')
td_client.query("select count(*) from mytable")

PrestoQueryError: PrestoQueryError(type=INTERNAL_ERROR, name=GENERIC_INTERNAL_ERROR, message="Internal failure: [Ljava.lang.String;@51c95cf3 (of class [Ljava.lang.String;)", query_id=20190808_044649_00122_rpyj2)
If I switch the engine to "hive", the query execute just fine, but I have errors in other part of the code with another error "InternalError: job error: 535701608: error".
Any idea what could be the cause?
Thanks

@Remi42JP Thanks for letting us know. It was an issue of Treasure Data's server-side not client-side, and it has been resolved.
I'll close this issue, but if you have the same problem, could you please contact our support?


Fix #655: All maps mutable

Fix #655: All maps mutable

@melloware this is not what I meant, Immutable Map are ok, we just need to make sure we don't mutate map from we don't know the origin. So whenever a put is made from a Map created elsewhere, we need to create a new Map from it.

@ia3andy i figured it was better to be safe then sorry.  But yeah to me it looks like its only one line as testenv comes from a Config property.
PR updated

Test env comes from here
    @ConfigDocDefault("CI=true")
    Map<String, String> testEnv();

so it must be an immutable map being passed from Config


Values from .env are propagated to executed process

Vaultenv reads a .env file, if present, to get it’s own configuration (e.g. VAULT_HOST or VAULTENV_CONNECT_TLS). However, it also makes everything set by the .env file available to the spawned process.
This happens because the environment includes cLocalEnvVars: https://github.com/channable/vaultenv/blob/285463d13c907d29f10fb8c900a5704a8d6878e3/app/Main.hs#L396
which is populated from among others the .env file: https://github.com/channable/vaultenv/blob/285463d13c907d29f10fb8c900a5704a8d6878e3/app/Main.hs#L265-L278
I’m not sure if this is intentional or not, but it did leave me confused for a bit, because Vaultenv complained
[ERROR] Found duplicate environment variable

for a variable (unrelated to Vaultenv) that I happened to define in my .env, and also wanted to set with a secret. For my use case, I don’t want Vaultenv to pass what’s in .env along to the spawned process. (The .env happens to be there for local development, and I want to write a script that executes migrations in production, so it fetches the PGUSER and PGPASS for the production database.)
I’m not sure if this behavior is intentional. If it is, I would document it in the readme, and possibly add a way to disable it (though --no-inherit-env or --inherit-env-blacklist are fine for working around it).

Actually, --inherit-env-blacklist is not appropriate due to a bug ... it also prevents variables set by Vaultenv itself from propagating to the spawned process. So in this situation:

.env exists and sets PGPASS and PGHOST
My secrets file sets PGPASS=app/.../postgres#PGPASS
I call vaultenv from a script that sets PGHOST to a value that should override whatever is in .env.

It now seems impossible to actually get the correct PGPASS and PGHOST into my application:

If I set --inherit-env-blacklist PGPASS, then I don’t get any PGPASS at all in the spawned process.
If I set --no-inherit-env, then I get no PGHOST in the spawned process.

I can work around this by spawning env.
This could be fixed by moving the removeBlacklistedVars after the ++ here: https://github.com/channable/vaultenv/blob/285463d13c907d29f10fb8c900a5704a8d6878e3/app/Main.hs#L396


What is the language of plasio?

Hey i need to know on which language plasio is made? Is it JS or something else?

It is javascript, yes.  The code is open source, you can browse around and check for yourself :).


Telemetry suggestions

Found some telemetry-related GPOs (CEIP, handwriting, Cortana). Some might be unnecessary, some might be as a separate tweak. I created a PR, but just named it "suggestions", as there are decisions that require brain of yours. ;) There are more telemetry/privacy GPOs possible, but I'll wait how these turn out first.
 E.g. the whole CEIP is indirectly disabled by disabling feedback, Application Telemetry by disabling the regular telemetry, handwriting personalization data sharing by Cortana and so on. I don't know yet if it's better to have them mixed in the higher-level tweaks like you did or if it's better just to mention in the comments what else is disabled by the higher-level tweaks. I'll think about it (not sure when, though :( ).

(Sorry, I made a typo in commit message. Reopening... so I can close it later :P )


Use type vars for resource registration to return the same type

ResourceRegistry.register() currently indicates that it returns one a type that is a subclass of res.NamespacedResource or res.GlobalResource. However, that leads type checkers to only be able to check against those definitions, losing all the type information defined on the subclass.
Example
from dataclasses import dataclass
from lightkube.codecs import resource_registry
from lightkube.core.resource import NamespacedResourceG

@dataclass
class ExampleClass(NamespacedResourceG):
	foo: str = 'bar'

# Currently, EC will have the type Type[Union[NamespacedResource, GlobalResource]], rather than ExampleClass
EC = resource_registry.register(ExampleClass)

ec = EC()
# Will show a type error for foo not being a defined attribute on either NamespacedResource or GlobalResource
ec.foo

This changes the register signature to use a TypeVar instead, to indicate that the type returned is the same type as the input

Hi, looks good. Can you also increase the patch version in setup.py?

Fix available in v0.15.2


Add content linking to similar resources

@Simon Christ please could you open a draft PR and leave a FIXME for me to write about the RSE Toolkit resource?

Pad from underse23: https://pad.gwdg.de/gwkleozaTVOwWqcRuYxaSA

notifying @tobyhodges and @BeastyBlacksmith about #59

@jcohen02


Does not work with grunt-newer due to the timestamp precision disagreement

As I tried, when specify newer:copy, the files will be copied no matter whether it gets modified. As I have observed, grunt-contrib-copy uses fs.utimesSync(dest, stat.atime, stat.mtime); to sync the timestamp, which only gives second-level precision (can be reproduced by first using grunt-contrib-copy to copy the file and then stat the original file and the copied version to see). And I think grunt-newer uses more strict comparison which based on the millisecond-level precision. I don't know this should be either a bug or a feature enhancement for either package, but it would be great if they can work together.

These failures are reflected in tests. https://travis-ci.org/gruntjs/grunt-contrib-copy
If anyone can make a PR please CC me.

Cross posting the discussion from the same thread from newer...
https://github.com/tschaub/grunt-newer/issues/86

Just created a pull request resolving this issue:  https://github.com/gruntjs/grunt-contrib-copy/pull/268

I have a custom watch task that can handle it. I use this with packages that don't play nice with grunt-contrib-newer. Feel free to use it and adjust to your needs.
My paths
    path: {
      dev: {
        base: "dev"
      },
      dist: {
        base: "./dist"
      },
    },

Copy task
    copy: {
      main : {
        expand: true,
        flatten: true,
        src: ["<%= currentFullFilePath %>"],
        dest: "<%= path.dist.base %><%= currentFilePath %>",
        filter: "isFile"
      },
    },

Watch Task
    watch: {
      html: {
        files: ["<%= path.dev.base %>/**/*.html"],
      },
    },

Custom Watch Event
  grunt.event.on("watch", function (action, filePath) {
    var file          = filePath.replace(/^.*[\\\/]/, "");
    var thisFileParts = file.split(".");
    var fileName      = thisFileParts[0];
    var fileExtension = thisFileParts.pop();
    var filePathClean = filePath.substring(filePath.indexOf(/dev\\views/) + 10);
    filePathClean     = filePathClean.replace(file, "");

    grunt.config.set("currentFullFilePath", filePath);
    grunt.config.set("currentFilePath", filePathClean);

    if (fileExtension == "html") {
      grunt.task.run("copy:main:[" + fileName + "]");
    }
  });


Maker faire esc

Integrating new ESCs with existing code:
MakerFaire.ino was copied from TestCodePneumatics.ino to preserve legacy code
Changes to MakerFaire.ino:
changed write function to writeMicroseconds in Motor::setSpeed to keep with current testing conventions
passing in high and low thresholds unique to each ESC via the motor declarations

Broadly speaking it is not a good idea to make a full copy of code into another file to "preserve legacy code" In software engineering this is called a "lavaflow antipattern"  where people save code for fear of deleting it and we end up with large swaths of code that don't have a purpose in our code which can make things broadly harder to understand.
Instead of doing that it is generally considered wiser to simply allow Git Hub to track your previous versions and label versions you may want to return to. If you want to make mild changes to the same code in lots of places you should consider modifying the design to make things more extensible.
With all that said given time constraints this is not nearly an egregious enough issue to reject this PR on, just something I wanted to bring to your attention and potentially advise on in the future.
@EvanBukofsky @DevonChicchi


[stable/jenkins] Support priorityClassName on Master Deployment

Summoning @lachie83, @viglesiasce, and/or @maorfr per the PR template. Thanks for taking the time to review this, it's much appreciated!
What this PR does / why we need it:
Adds support for priorityClassName on the Jenkins Master deployment
Special notes for your reviewer:
I tested this with my own Jenkins deployment on GKE, which only had v1beta1 but I wasn't sure if I should target that (k8s 1.11+) or if I should just target v1 (k8s 1.14+). I've also bumped the minor version, as this is a new feature.
Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md

/assign
/ok-to-test

/lgtm
thanks for contributing and congrats on your first contribution!


go get upgrade broke compilation

Breaking change (migration from gnostic -> gnostic-models):

PR: https://github.com/kubernetes/kube-openapi/pull/402
commit: https://github.com/kubernetes/kube-openapi/commit/38767cdfbb68f871eb458f7cde26177cb65c91e9

Updated packages using go get -u ./...
Then, I tried running a go file using go run <FILE>
Got the error message:
cannot use doc (variable of type *"github.com/google/gnostic/openapiv2".Document) as *"github.com/google/gnostic-models/openapiv2".Document
# k8s.io/client-go/applyconfigurations/meta/v1
/go/pkg/mod/k8s.io/client-go@v0.27.2/applyconfigurations/meta/v1/unstructured.go:64:38: cannot use doc (variable of type *"github.com/google/gnostic/openapiv2".Document) as *"github.com/google/gnostic-models/openapiv2".Document value in argument to proto.NewOpenAPIData

it is because kubeopenapi change from gnostic to gnostic-models. Check commit

it could fixed with same k8s.io/kube-openapi version of v0.27.2 https://github.com/kubernetes/client-go/blob/v0.27.2/go.mod#L30
replace k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f

I'm trying to understand the use case better, why are you trying to upgrade via go get -u? The solution pinned by @morlay should work as we pin dependencies for each release. v0.27.2 k8s client-go should stick to the kube-openapi version defined in the go mod.
The latest version of kube-openapi with the gnostic-models is compatible with v0.28 client go.

Just to check @Jefftree are you asking that question of the OP @regnaio ? TBH I followed @morlay sensible advice to update go.mod via : -
go mod edit --replace k8s.io/kube-openapi<EMAIL_ADDRESS>
and then ran go mod tidy before validating via go vet ./... etc.

Anyone with the problem can pitch in. We generally test new changes from library upgrades (go get -u) on the latest master branch (v0.28 at the moment) to look at compatibility and the pinned versions in go.mod are thoroughly tested with the client-go version. We cannot guarantee that everything works with library versions outside the pinned dependencies.
Is there a specific library that you wanted to upgrade via go get -u that was not reflected in the go.mod for your client-go version?

OK, so the reason that I ended up here was that we have a project that's using k8s.io/client-go amongst other k8s.io projects, which reports: -
# k8s.io/client-go/applyconfigurations/meta/v1
../../../../pkg/mod/k8s.io/client-go@v0.27.2/applyconfigurations/meta/v1/unstructured.go:64:38: cannot use doc (variable of type *"github.com/google/gnostic/openapiv2".Document) as *"github.com/google/gnostic-models/openapiv2".Document value in argument to proto.NewOpenAPIData

when we run go vet ./...
I've been tinkering with versions of client-go via go.mod within our own project, and am currently on : -
k8s.io/client-go v0.27.2
( using the tags page for inspiration )
but see the same behaviour with the very latest v0.28.0-alpha.1 : -
# k8s.io/client-go/applyconfigurations/meta/v1
../../../../pkg/mod/k8s.io/client-go@v0.28.0-alpha.1/applyconfigurations/meta/v1/unstructured.go:64:38: cannot use doc (variable of type *"github.com/google/gnostic/openapiv2".Document) as *"github.com/google/gnostic-models/openapiv2".Document value in argument to proto.NewOpenAPIData

We are also pulling in k8s.io/kube-openapi via an indirect reference in go.mod : -
	k8s.io/kube-openapi v0.0.0-20230601164746-7562a1006961 //indirect

Apologies if I'm being a complete n00b - I'd read the problem as being with k8s.io/client-go and saw this issue as providing the mitigation, hence my PR ...

Quick update, noting that the client-go page has been updated to include v0.28.0-alpha.2, I updated go.mod within our project, changing from: -
k8s.io/client-go v0.26.1
to: -
k8s.io/client-go v0.28.0-alpha.2
and then running go mod tidy, go vet ./... no longer throws up the cannot use doc (variable of type *"github.com/google/gnostic/openapiv2".Document) as *"github.com/google/gnostic-models/openapiv2".Document value in argument to proto.NewOpenAPIData warning.
I'm going to test our project more fully, waiting on Travis to build it, but .... 🤞

@davidhay1969 Thanks for the confirmation. Feel free to reopen if more problems are found but I'll mark this as fixed for now.
The solution will fully resolve itself once client-go v0.28 is released which is estimated to be in July. In the meantime, there are two workarounds:

Pin kube-openapi to a version before the gnostic rename and stick with an older version of client-go (<0.28)
go mod edit --replace k8s.io/kube-openapi<EMAIL_ADDRESS>Unfortunately this will need to be done on every go get -u ./... if the latest version changes

Upgrade client-go to k8s.io/client-go v0.28.0-alpha.2 (eg: replace in go.mod). I would encourage sticking to solution 1 in production environments since alpha is not guaranteed to be stable.

/close


README and Docs frontpage update

I changed the wording and added a new Overview section to the README to make it more easy to follow for new users. Additionally I added three badges describing the CI status, a link to the documentation, and a link to Arcascope's Twitter.

The last commit fixes the links in the readme!


Configure downloads behind proxies

For the unfortunate individuals behind a proxy :), the download function will timeout. This fixes #29.

Unfortunately this does not work for proxies that require authentication. :(


Fix readme

crashpad_handler has additional libcurl runtime dependency
https://github.com/chromium/crashpad/blob/main/doc/developing.md

For us crashpad_handler did not required libc++-dev to be installed, maybe it's no longer needed. Someone should check for that

For us crashpad_handler did not require libc++-dev to be installed, maybe it's no longer needed. Someone should check for that

Can you elaborate on what's your current Linux setup (distro, version, etc.)? I don't recall encountering an issue with the missing libcurl before so maybe those extra bits of info will help us understand whether it's a common problem or something specific to your environment

We running our servers inside a container, using:
https://github.com/orgs/epicgames/packages/container/unreal-engine/111082761?tag=runtime
And distro according to server logs would be: Ubuntu 18.04.6 LTS (5.15.120+)

Superseded by #455


Safari "The network connection was lost" but Chrome works

I am using phpwkhtmltopdf inside a CMS (template) and my tests went quite well.
But now after I placed the code in another file (other include) I can't get the PDF output with Safari, but Chrome still displays the PDF. Using a HTTP tool (Do HTTP) I get the message
status code: 200
The network connection was lost.
This one works:
<?php
use mikehaertl\wkhtmlto\Pdf;
require __DIR__ . '/../vendor/autoload.php';

if ($urlsegment1 === 'pdf_source') {
	$sub_template = 'pdfsource';
} elseif ($urlsegment1 === 'pdf') {
	$sub_template = 'pdf';
}

$pdf = new Pdf;
$pdf->setOptions(['ignoreWarnings'=>true]);
// $pdf->addPage('http://www.example.com');
$pdf->addPage('PDF-Datei neu');

if (!$pdf->send()) {
    echo $pdf->getError();
}

die();

When I move the phpwkhtmltopdf (use, require, new Pdf etc.) to the other file it doesn't work in Safari.
The other file is loaded later on with an include and looks identical, but without the if/elseif part.
There is nothin in my Apache error log and there is no error by wkhtmltopdf
(PHP 5.6, Apache 2.2, Linux)
// Forgot to mention, saveAs() works

Maybe the CMS outputs some header or similar. We can't fix this here.

The first code example comes from the CMS as well. It is just a couple lines before the other code. And Chrome is able to display the PDF.
Snappy works fine. I think I'll go with it.

This extension does not make any difference between browsers. If it works without the CMS then it must do something to the headers or output some content before.


symbol 'configMAX_PRIORITIES could not be resolved'

i am running the examples on ECLIPSE IDE(neon) on ubuntu but facing the error as symbol 'configMAX_PRIORITIES could not be resolved' can anybody tell what is missing ? Although program is able to build but with error

freertos/FreeRTOS.h

Hi @ahmedawais,
If the project builds despite these errors, it means that Eclipse isn't able to parse information out of the build to learn about which header paths are included.
Double check all of the items shown here are set as shown (we recently changed/clarified a couple of these, as well):
https://docs.espressif.com/projects/esp-idf/en/latest/get-started/eclipse-setup.html#project-properties
If you change any setting, you may have to do a clean build of the project to refresh Eclipse's cache of header paths.
Angus

Remember to add {$PROJECT}/build/something(dont remember full path) to your path, its where sdkconfig.h will be stored when you first time build project.

Thanks by adding freeRTOS it worked.
On Jul 3, 2018 01:42, "negativekelvin"<EMAIL_ADDRESS>wrote:

freertos/FreeRTOS.h
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/espressif/esp-idf/issues/2139#issuecomment-401969610,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Agrhucmf-GgZ7i3uukAnRnA2VOeBI9GQks5uCq_TgaJpZM4U_7Th
.


Issues while compiling the micro-ros_addtwoints_service in the examples folder

Issue template

Hardware description: Teensy 3.6
Installation type: micro-Ros-Arduino
Version or commit hash: foxy

Steps to reproduce the issue
Followed the instructions as in the post ,to upload the code in the teensy 3.6. The mentioned micro_ros_publisher example code worked as expected in the post.However , while trying to compile the micro-ros_addtwoints_service in the examples folder, got the below mentioned undefined reference error in the Arduino IDE.
Note: added the missing example_interfaces header from the micro_ros library given in the post
WARNING: library micro_ros_arduino claims to run on stm32, OpenCR, Teensyduino, samd, sam, mbed, esp32 architecture(s) and may be incompatible with your current board which runs on avr architecture(s).
Library micro_ros_arduino has been declared precompiled:
Using precompiled library in /home/sl/Arduino/libraries/micro_ros_arduino/src/mk66fx1m0/fpv4-sp-d16-hard
/tmp/arduino_build_495923/sketch/micro-ros_addtwoints_service.ino.cpp.o: In function `setup':
/home/sl/Arduino/libraries/micro_ros_arduino/examples/micro-ros_addtwoints_service/micro-ros_addtwoints_service.ino:45: undefined reference to `rosidl_typesupport_c__get_service_type_support_handle__example_interfaces__srv__AddTwoInts'
collect2: error: ld returned 1 exit status
Error compiling for board Teensy 3.6.

Expected behavior
successful compilation
Actual behavior
throws undefined reference error
Additional information

Hello @Avinashmuthukumarasamy,

could you please try to use the latest version of the foxy branch in this repo instead of the package available in the release section?
Also, I have been able to build the example with any modification, what do you mean with Note: added the missing example_interfaces header from the micro_ros library given in the post?
Could you share the code you are trying to build?
Which versions of Arduino and Teensyduino are you using?

Hello @pablogs9
thanks for the much needed reply.
Please find the below points:
1)Initially ,utilized the latest release given in this section,got the below error.Please find the screenshot -ss1

WARNING: library micro_ros_arduino-2.0.2-foxy claims to run on OpenCR, Teensyduino, samd, sam, mbed architecture(s) and may be incompatible with your current board which runs on avr architecture(s).
Library micro_ros_arduino-2.0.2-foxy has been declared precompiled:
Precompiled library in "/home/sl/Arduino/libraries/micro_ros_arduino-2.0.2-foxy/src/mk66fx1m0/fpv4-sp-d16-hard" not found
Precompiled library in "/home/sl/Arduino/libraries/micro_ros_arduino-2.0.2-foxy/src/mk66fx1m0" not found
/tmp/arduino_build_458219/sketch/micro-ros_addtwoints_service.ino.cpp.o: In function `set_microros_transports':
/home/sl/Arduino/libraries/micro_ros_arduino-2.0.2-foxy/src/micro_ros_arduino.h:32: undefined reference to `rmw_uros_set_custom_transport'
/tmp/arduino_build_458219/sketch/micro-ros_addtwoints_service.ino.cpp.o: In function `setup':
/home/sl/Arduino/libraries/micro_ros_arduino-2.0.2-foxy/examples/micro-ros_addtwoints_service/micro-ros_addtwoints_service.ino:36: undefined reference to `rcutils_get_default_allocator'
/home/sl/Arduino/libraries/micro_ros_arduino-2.0.2-foxy/examples/micro-ros_addtwoints_service/micro-ros_addtwoints_service.ino:39: undefined reference to `rclc_support_init'
/home/sl/Arduino/libraries/micro_ros_arduino-2.0.2-foxy/examples/micro-ros_addtwoints_service/micro-ros_addtwoints_service.ino:42: undefined reference to `rclc_node_init_default'
/home/sl/Arduino/libraries/micro_ros_arduino-2.0.2-foxy/examples/micro-ros_addtwoints_service/micro-ros_addtwoints_service.ino:45: undefined reference to `rosidl_typesupport_c__get_service_type_support_handle__example_interfaces__srv__AddTwoInts'
/home/sl/Arduino/libraries/micro_ros_arduino-2.0.2-foxy/examples/micro-ros_addtwoints_service/micro-ros_addtwoints_service.ino:45: undefined reference to `rclc_service_init_default'
/home/sl/Arduino/libraries/micro_ros_arduino-2.0.2-foxy/examples/micro-ros_addtwoints_service/micro-ros_addtwoints_service.ino:48: undefined reference to `rclc_executor_init'
/home/sl/Arduino/libraries/micro_ros_arduino-2.0.2-foxy/examples/micro-ros_addtwoints_service/micro-ros_addtwoints_service.ino:49: undefined reference to `rclc_executor_add_service'
/tmp/arduino_build_458219/sketch/micro-ros_addtwoints_service.ino.cpp.o: In function `loop':
/home/sl/Arduino/libraries/micro_ros_arduino-2.0.2-foxy/examples/micro-ros_addtwoints_service/micro-ros_addtwoints_service.ino:55: undefined reference to `rclc_executor_spin_some'
collect2: error: ld returned 1 exit status
Error compiling for board Teensy 3.6.

Then I included the recently added  patch-mk66fx1m0 from the release  since my teensy version is 3.6.That time, unfortunately there was no example_interfaces while cloning the library using this link  Please find the screenshot -ss2
Hence added the example_interfaces folder in the latest release micro_ros_arduino-2.0.2-foxy and tried compiling the micro-ros_addtwo_ints_service  code given in the micro-ros  examples folder,got the above mentioned error in the issue.Please find the screenshot -ss3&ss4
WARNING: library micro_ros_arduino-2.0.2-foxy claims to run on OpenCR, Teensyduino, samd, sam, mbed architecture(s) and may be incompatible with your current board which runs on avr architecture(s).
Library micro_ros_arduino-2.0.2-foxy has been declared precompiled:
Using precompiled library in /home/sl/Arduino/libraries/micro_ros_arduino-2.0.2-foxy/src/mk66fx1m0/fpv4-sp-d16-hard
/tmp/arduino_build_458219/sketch/micro-ros_addtwoints_service.ino.cpp.o: In function `setup':
/home/sl/Arduino/libraries/micro_ros_arduino-2.0.2-foxy/examples/micro-ros_addtwoints_service/micro-ros_addtwoints_service.ino:45: undefined reference to `rosidl_typesupport_c__get_service_type_support_handle__example_interfaces__srv__AddTwoInts'
collect2: error: ld returned 1 exit status
Error compiling for board Teensy 3.6.

2)as mentioned in 1st point, got the "No file error" while cloning this link.

as same as the example code.No changes/modifications

4)arduino IDE : 1.8.19
Teensyarduino : 1.56
Please do the needful.

![ss3](https://user-images.githubusercontent.com/9495

3760/151165603-d147b59d-7bb3-4394-9423-2fa4605050c8.png)

Working on this.
Anyway, this bug only happens on galactic. Can you try with the latest commit of foxy branch?

Hello@Acuadros95
Please find this as an issue about the latest release of foxy.
I have tried with the same.

This should be fixed with this PRs: https://github.com/micro-ROS/micro_ros_arduino/pull/721
Please update your library to the latest commit and try it out.

Is this solved @Avinashmuthukumarasamy ?

Hi @pablogs9!
I used the latest commit of the repo.
The 'micro-ros_addtwo_ints_service sample' code got compiled and uploaded into the teensy 3.6 board successfully.
root@pi:/microros_ws# ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/ttyACM0 [1643611828.383772] info     | TermiosAgentLinux.cpp | init                     | running...             | fd: 3 [1643611828.384982] info     | Root.cpp           | set_verbose_level        | logger setup           | verbose_level: 4 [1643611856.341986] info     | TermiosAgentLinux.cpp | fini                     | server stopped         | fd: 3 [1643611856.352232] info     | TermiosAgentLinux.cpp | init                     | Serial port not found. | device: /dev/ttyACM0, error 2, waiting for connection... [1643611857.354447] info     | TermiosAgentLinux.cpp | init                     | Serial port not found. | device: /dev/ttyACM0, error 2, waiting for connection... [1643611858.357167] info     | TermiosAgentLinux.cpp | init                     | Serial port not found. | device: /dev/ttyACM0, error 2, waiting for connection... [1643611859.360144] info     | TermiosAgentLinux.cpp | init                     | Serial port not found. | device: /dev/ttyACM0, error 2, waiting for connection... [1643611860.363784] info     | TermiosAgentLinux.cpp | init                     | Serial port not found. | device: /dev/ttyACM0, error 2, waiting for connection... [1643611860.934514] info     | TermiosAgentLinux.cpp | init                     | running...             | fd: 3 [1643611861.828202] info     | Root.cpp           | create_client            | create                 | client_key: 0x4FB2BB77, session_id: 0x81 [1643611861.831788] info     | SessionManager.hpp | establish_session        | session established    | client_key: 0x4FB2BB77, address: 0 [1643611861.918958] info     | ProxyClient.cpp    | create_participant       | participant created    | client_key: 0x4FB2BB77, participant_id: 0x000(1) [1643611861.925885] info     | ProxyClient.cpp    | create_replier           | replier created        | client_key: 0x4FB2BB77, requester_id: 0x000(7), participant_id: 0x000(1)
But I am having hiccups while trying to avail the service from the command line.
root@pi:/microros_ws# ros2 service list /addtwoints root@pi:/microros_ws# ros2 node list /add_twoints_client_rclc root@pi:/microros_ws# ros2 service call /addtwoints example_interfaces/srv/AddTwoInts "{a: 3 b: 4}" Traceback (most recent call last):   File "/opt/ros/foxy/bin/ros2", line 11, in <module>     load_entry_point('ros2cli==0.9.10', 'console_scripts', 'ros2')()   File "/opt/ros/foxy/lib/python3.8/site-packages/ros2cli/cli.py", line 67, in main     rc = extension.main(parser=parser, args=args)   File "/opt/ros/foxy/lib/python3.8/site-packages/ros2service/command/service.py", line 41, in main     return extension.main(args=args)   File "/opt/ros/foxy/lib/python3.8/site-packages/ros2service/verb/call.py", line 58, in main     return requester(   File "/opt/ros/foxy/lib/python3.8/site-packages/ros2service/verb/call.py", line 69, in requester     module = importlib.import_module('.'.join(parts[:-1]))   File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module     return _bootstrap._gcd_import(name[level:], package, level)   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import   File "<frozen importlib._bootstrap>", line 991, in _find_and_load   File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import   File "<frozen importlib._bootstrap>", line 991, in _find_and_load   File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked ModuleNotFoundError: No module named 'example_interfaces'
Please let me know if I am missing out something.

Have you installed ros-foxy-example-interfaces in your ROS 2 installation?
apt install ros-foxy-example-interfaces

Thanks for the reply. I got it working now.
In case of creating custom ROS2 interfaces similar to example interfaces,what is the procedure to add their header files in the arduino libraries .

You have to compile your own library but include your message packages here in the .repos or directly in the folder.
Here you have instructions for creating the package.


$nor functionality is not working properly

i faced unusual behavior in the $nor functionality while using it in my application. So to make sure i took the example existent in the documentation , and like expected the result is different.
the documentation example :
//filtered: [ { name: 'Tim', state: 'MN' }, { name: 'Joe', state: 'CA' }] [   { name: "Craig", state: "MN" },   { name: "Tim", state: "MN" },   { name: "Joe", state: "CA" } ].filter(sift({ $nor: [{ name: "Craig" }, { state: "MN" }] }));
executing the above in nodejs :
//filtered [ { name: 'Joe', state: 'CA' } ] [         { name: "Craig", state: "MN" },         { name: "Tim", state: "MN" },         { name: "Joe", state: "CA" }       ].filter(sift({ $nor: [{ name: "Craig" }, { state: "MN" }] }));
Could you please explain? am i wrong ? i really get confused.
Thank you

The above issue wasn't in the code. the example existining in the documenation is wrong.
shoud be like this :
[
{ name: "Craig", state: "MN" },
{ name: "Tim", state: "MN" },
{ name: "Joe", state: "CA" }
].filter(sift({ $nor: [{ name: "Craig",state: "MN"  }] }));
thank you

You're right! Thanks for catching that.


Solution of finding first and last occurrence of number

Issue Id you have worked upon -
#131
Briefly explain your program logic -
In this program we use binary search algorithm twice to find the occurrence of target number
in first step we find the target and occurrence of it in left side then in
second step we find target and occurrence of it in right side
Screenshots(Attach 2 screenshots of your own input and output) -

Checklist:
Eg - If your code follow the below guidelines. Kindly change [] to [x]
All the conditions should be fulfilled for considering your code for merging -
[x] I have mentioned the question as comment in my solution file.
[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code.
[x] My code gives the correct output.
[x] I confirm that I have not copied the code from anywhere. In case its found that I have copied I can be banned from the repository.
[x] I affirm that I strictly follow contributing guidelines and code of conduct.

@SarthakKeshari
kindly check the solution and merge it,
Thank you

@SarthakKeshari
Please check the solution and merge it


Child changed causes entire list to be recreated

Not sure if I'm using AngularFire2 incorrectly, but I've noticed this issue.
(same thing happens if a child is added or removed)
Version info
Angular: 2.4.3
Firebase: 3.6.5
AngularFire: 2.0.0-beta.6
How to reproduce these conditions
Steps to set up and reproduce

Create a list of "/items" in Firebase with a "name" property.
Display the list and then try to update the name of 1 item (see code below)

Expected behavior
If a child is changed I expect only that item in the list to change.
Actual behavior
All components are removed and recreated.
Console (with 16 items)
list init
(16) item init
item clicked
(16) item destroyed
(16) item init

Code to recreate
import { Component, OnInit, OnDestroy, Input } from '@angular/core';
import { AngularFire, FirebaseListObservable } from 'angularfire2';

@Component({
	selector: 'my-list',
	template: '
<template ngFor let-item [ngForOf]="list | async" let-i="index"><my-item [index]="i" [data]="item"></my-item></template>
'
})

export class MyListComponent implements OnInit, OnDestroy {

	public list: FirebaseListObservable<any[]>;

	constructor(private af: AngularFire) { }

	public ngOnInit(): void {
		console.log('list init');
		this.list = this.af.database.list('items');
	}

	public ngOnDestroy(): void {
		console.log('list destroyed');
	}
}

@Component({
	selector: 'my-item',
	template: '
{{index}} {{data.name}}
'
})

export class MyItemComponent implements OnInit, OnDestroy {

	@Input('data') data: any;
	@Input('index') index: number;

	constructor(private af: AngularFire) { }

	public ngOnInit(): void {
		console.log('item init');
	}

	public ngOnDestroy(): void {
		console.log('item destroyed');
	}

	public changeName(): void {
		console.log('item clicked');
		this.af.database.object('').update({
			['items/' + this.data.$key + '/name']: this.data.name + '' + Math.round(Math.random() * 9999)
		});
	}
}

Looks like a dup of #574

Fixed in the latest release!

I just updated to 2.0.0-beta.7 and unfortunately it's still happening.

I think you just need to use a trackBy function. Read this, especially starting with section "How does ngFor work when we add or remove elements from the list?", and thru the trackBy sections.

Thanks @patrickmcd, good point.
However adding trackBy results in each list item receiving a new data item (even though the data hasn't actually changed)
So it's definitely an improvement, but I still think this could be an issue in AngularFire2.
I'm not sure exactly what is going on in the source, but looks like this returns a new array:
https://github.com/angular/angularfire2/blob/master/src/database/firebase_list_factory.ts#L219
Updated code example below.
Added the trackBy and logging out ngOnChanges:
import { Component, OnInit, OnChanges, SimpleChanges, OnDestroy, Input } from '@angular/core';
import { AngularFire, FirebaseListObservable } from 'angularfire2';

@Component({
	selector: 'my-list',
	template: '
<template ngFor let-item [ngForOf]="list | async" let-i="index" [ngForTrackBy]="identify"><my-item [index]="i" [data]="item"></my-item></template>
'
})

export class MyListComponent implements OnInit, OnChanges, OnDestroy {

	public list: FirebaseListObservable<any[]>;

	constructor(private af: AngularFire) { }

	public ngOnInit(): void {
		console.log('list init');
		this.list = this.af.database.list('items');
	}

	public ngOnChanges(changes: SimpleChanges): void {
		console.log('list changed', changes);
	}

	public ngOnDestroy(): void {
		console.log('list destroyed');
	}

	public identify(index, item): string {
		return index + '-' + item.$key;
	}
}

@Component({
	selector: 'my-item',
	template: '
{{index}} {{data.name}}
'
})

export class MyItemComponent implements OnInit, OnChanges, OnDestroy {

	@Input('data') data: any;
	@Input('index') index: number;

	constructor(private af: AngularFire) { }

	public ngOnInit(): void {
		console.log('item init');
	}

	public ngOnChanges(changes: SimpleChanges): void {
		console.log('list changed', changes);
	}

	public ngOnDestroy(): void {
		console.log('item destroyed');
	}

	public changeName(): void {
		console.log('item clicked');
		this.af.database.object('').update({
			['items/' + this.data.$key + '/name']: this.data.name + '' + Math.round(Math.random() * 9999)
		});
	}
}

Your trackBy function may be returning too much. Because indexes change when the data changes, it's defeating the purpose of keeping track of each item. Just return the object key.
public identify(index, item): string {
  // return index + '-' + item.$key;
  return item.$key;
}

Or, here's a pithier way to write it.
trackFbObjects = (idx, obj) => obj.$key;

Thanks for the info @patrickmcd, that makes sense.
Changing to use just "return item.$key;" still has the same issue though.

I tested a similar example, for me with trackBy works well (dom childs are not destroy), however if you inject item (input) in child component ngOnChanges of Item component are always triggered (maybe for comparison ===).
I have found a good example for this here, seems is it possible implement DoCheck method.
Maybe it can be useful

Here's a quick demo of the issue:
http://plnkr.co/edit/NCaX3xwE6PNSHyN2Cjn5?p=preview

Hi, I tested your example and only the item clicked are recreated ( with destroy ), not the entire list (I verified destroy log on console).
You also have the same result ?

Sorry, I didn't explain what the example is showing.
In both lists, when an item changes (or is recreated) the background colour will change.
So you can see which components are being redrawn.
The top list is using AngularFire2 with "trackBy".
Result is that when 1 item changes all items in the list get "ngOnChanges".
The bottom list is using firebase directly (albeit a quickly hacked together example).
Result is that the item that has changed gets removed and added again.
Both are not perfect.
Ideally only the item that has changed should get ngOnChanges called.

ngOnChanges is triggered for all the childs caused by the === comparison,
i think you need implement your custom logic for check the really changes like this :
public ngOnChanges(changes: {[propName: string]: SimpleChange}): void { 		if ( (changes['data'].currentValue.name != changes['data'].previousValue.name)) {   		  console.log(this.tt, 'item really changed', changes); 		  this.numChanges++; 		  this.colour = this.getRandomColour(); 		} 	}
or you can use something like loadash for deep object comparison

Agreed, although my point is that I shouldn't need to.
I shouldn't have to know that I need to use trackBy either. Perhaps this should be in the docs?

This is very suboptimal when you have a lot of items... if you have 20000 svg points and one move, you need to call ngOnChanges 20000 times. Instead, snapshotChanges() 'modified' object has all the info to be able to call it only once on the targeted object.
Coming from polymerfire, that's how it was implemented, but I'm not sure how exactly to do this in angular, if it's a limitation of ngFor or not.


Shortening of the title in readme file

Now the title in README.md is quite long, it's better to reduce it. As an example, make the current heading simple text, and use the "Build Your Own Text Editor" as a new title for example.

Yes, the long title was left over from when I couldn't decide on an actual title. I've replaced it with "Build Your Own Text Editor" now.


DNM | WIP: PoC of sticky IPs for Kubernetes entities

What this PR does / why we need it:
This is a proof of concept of implementing sticky IP allocations for whereabouts.
Any interested party can use whereabouts to have persistent IP allocations across their workload lifecycle - e.g. KubeVirt VMs.
You indicate this whereabouts build you want to have persistent IPs for a certain allocation by specifying which enitity owns the allocation - in our case, the allocations are asked for a KubeVirt VM. Thus, the pod must be templated w/ the required CNI args:
kubectl get pods virt-launcher-vm-rhel8-7fmb7 -ojsonpath="{ @.metadata.annotations.k8s\.v1\.cni\.cncf\.io\/networks }" | jq
[
  {
    "name": "whereabouts-conf",
    "namespace": "default",
    "interface": "pod16367aacb67",
    "cni-args": {
      "whereabouts.cni.cncf.io/ownerID": "8d9d6b85-49e1-4722-9b42-3348d8e9b9f6",
      "whereabouts.cni.cncf.io/ownerName": "vm-rhel8",
      "whereabouts.cni.cncf.io/ownerType": "VirtualMachine",
      "whereabouts.cni.cncf.io/ownerVersion": "kubevirt.io/v1"
    }
  }
]

We are using the OverlappingRangeIPReservation to block the IP allocations (it is its purpose at the end of the day ...) but the "real" proposal will probably add a new CRD for the same function.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer (optional):

/cc @oshoval @qinqon


Error message for missing component of a route

I made a simple typo when adding a route:
const routes = [
  {
    path: '',
    component: 'main-layout',
    children: [
      {path: 'location',
       component: 'locations-view', // typo here
       action: async () => { await import('./views/location/location-view')}},

I used the component name locations-view when I should have used location-view. When navigating to this route, nothing is shown (because there is no such component). For a first-timer's DX, it would be helpful if there was an error message saying something like "component 'locations-view' not found". Understandably this is not trivial, as the component may be added lazily, but IMO worth investigating regardless.

Still a valid issue. Duplicate of #172


Self-Signed Certificates

Hello, my app uses a self-signed, self-generated SSL certificate, which I want to use Alamofire to connect to. It works when I use HTTP Basic authentication but doesn't allow me to connect when I don't have any authentication. I am about 90% sure that the issue is not in my app.
Is there some way to instruct Alamofire to trust self-signed certificates, preferably for specific hosts?

@aemreunal I could be completely wrong, but if I understand correctly, Alamofire leans on iOS networking to validate SSL certs. Try installing and trusting the certificate at the OS level.

@travelton Thank you for your reply.
The application, as part of its deployment script, generates a new certificate and uses that. As it is in development, it frequently regenerates new certificates.
I do believe you have a point and that you are right and I believe it is viable, and actually preferable, for stable servers with unchanging certificates but it just isn't a sustainable solution for my case.
I also use onevcat/Kingfisher in my iOS app and it has just this exact feature. I can, for example, write the following code to trust self-signed certificates in my localhost:
KingfisherManager.sharedManager.downloader.trustedHosts = Set(["localhost", "<IP_ADDRESS>"])

and it works like a charm. A similar feature, if it doesn't already exist, would be awesome for Alamofire.

Hi @aemreunal, apologies for not getting back to you sooner. At the moment, there is no direct support in Alamofire for trusting self-signed certificates or for SSL pinning. Support for this feature is already being discussed and is slated for the 1.3.0 release. We are taking security very seriously and it is at the top of our priority list. Please see #366 for more information.

With that said, you do have the option to implement your own pinning for the time being if you so choose. You would need to create your own sessionDidReceiveChallenge: closure to override the default SessionDelegate behavior.
/// NSURLSessionDelegate override closure for `URLSession:didReceiveChallenge:completionHandler:` method.
public var sessionDidReceiveChallenge: ((NSURLSession, NSURLAuthenticationChallenge) -> (NSURLSessionAuthChallengeDisposition, NSURLCredential!))?

You could certainly dig through the AFNetworking logic to see how this can be implemented as well as this link. Both should help get you started in the right direction.
I'm going to close this issue out for now. Please feel free to reopen if necessary. If you do need help implementing your own SSL pinning, then please direct your questions towards Stack Overflow as per our guidelines.

From our Contribution Guidelines
Asking Questions
We don't use GitHub as a support forum. For any usage questions that are not specific to the project itself, please ask on Stack Overflow instead. By doing so, you'll be more likely to quickly solve your problem, and you'll allow anyone else with the same question to find the answer. This also allows maintainers to focus on improving the project for others.

Hello @cnoon, thank you for the feedback and providing all the information. Is there a timeframe for the 1.3.0 release? Thank you for all your work. I'll be looking forward to the updates.

There is not yet. We're still trying to lay out the roadmap. Once we have more info we'll be sure to start filling out the Due Date on issues and milestones. Cheers 🍻

Thanks @cnoon.

@cnoon should this be in the 1.2.2 bucket? I don't see any changes here.

No it should not be. Good catch!


Handle own downloading of necessary route data

Might solve #39 too

https://pypi.org/project/parfive/


[Flaky] test_operator_gpu.test_convolution_multiple_streams

http://jenkins.mxnet-ci.amazon-ml.com/blue/rest/organizations/jenkins/pipelines/mxnet-validation/pipelines/unix-gpu/branches/PR-14192/runs/5/nodes/273/log/?start=0
======================================================================
FAIL: test_operator_gpu.test_convolution_multiple_streams
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File "/work/mxnet/tests/python/gpu/../unittest/common.py", line 173, in test_new
    orig_test(*args, **kwargs)
  File "/work/mxnet/tests/python/gpu/test_operator_gpu.py", line 570, in test_convolution_multiple_streams
    {'MXNET_GPU_WORKER_NSTREAMS' : num_streams, 'MXNET_ENGINE_TYPE' : engine})
  File "/work/mxnet/tests/python/gpu/test_operator_gpu.py", line 540, in _test_in_separate_process
    assert p.exitcode == 0, "Non-zero exit code %d from %s()." % (p.exitcode, func.__name__)
AssertionError: Non-zero exit code 255 from _conv_with_num_streams().

-------------------- >> begin captured logging << --------------------
common: INFO: Setting test np/mx/python random seeds, use MXNET_TEST_SEED=997087021 to reproduce.
--------------------- >> end captured logging << ---------------------

@mxnet-label-bot add [Test, Flaky]

This appears to be an issue with releasing of resources during the NaiveEngine shutdown.  There aren't many tests in our CI that test with the NaiveEngine, so this new test I added is fleshing out the problem.  I saw segfaults (error = 255) on CentOS, and supplied a fix: https://github.com/apache/incubator-mxnet/pull/14006/commits/790a9981440424b6646a7f83f73cce7043ab2398.
It looks like there are more issues here to be worked out though.

Seen here as well :
http://jenkins.mxnet-ci.amazon-ml.com/blue/organizations/jenkins/mxnet-validation%2Funix-gpu/detail/PR-14269/1/pipeline/273

There's another duplicate issue : https://github.com/apache/incubator-mxnet/issues/14329.
Suggest to close this one and carry the conversation on 14239.

I am closing this issue and submitting this to #14329


Support custom metrics

The current system provides the following metrics: tuple counter (number of tuples since topology submission) and tuple meter (mean throughput and moving averages).
Using other metrics from the Java metrics package is currently supported. What is needed is sample code to demonstrated this, maybe in the form of:

Oplets wrapping Java metrics, which can be inserted into the application topology.
Functions using Java metrics directly.

I believe currently from console side, Quarks only support the display of Meter and Counter metrics. If you register a Gauge, for example, into Quarks, there would be no entry in the Console to show it. Second, it is also very hard in the current framework to define custom MBeans. Say if I want to have two meters in  one oplet to monitor two different KPIs, I would like to define my own MBeans to wrap the two meters in order to give meaningful monitoring results (e.g. field names).

True, Quarks provides meter and counter metrics encapsulated in Oplet implementations and an extension point (SingleMetricAbstractOplet).
These metrics are exposed via JMX and directly from the metric registry.  For example, here is the ObjectName of a tuple meter:
quarks.providers.development:jobId=JOB_0,opId=OP_10,name=TupleCounter.quarks.oplet.JOB_0.OP_10,type=metric.counters .  You can parse the Job ID, Oplet ID, and metric type from here.
Metrics can also be accessed directly from the MetricRegistry passed by the application.  See quarks.samples.utils.metrics.PeriodicSourceWithMetrics for an example which sets up the registry before submitting a topology.
For your other examples, I'm investigating the following scenarios:

Using metrics in lambda functions
Define oplet which encapsulates multiple metrics
Metric naming: as an application developer I'd like to assign a logical name to a metric when I declare my topology and access the metric at run time using that name

This issue has moved to Apache, please check https://issues.apache.org/jira/browse/QUARKS-11 for updates.


[5.x] Various backports

Backport to 5.x:

Part of #22016
#22018
#22095
#22174
#22220
#22314
#22313
#22315
#22322
#22331
#22335
#22384
#22383

Marked as draft since we’ll need to include #22401.

Merged, thanks @andersk!


static/audio/SN/377/stations/PMS.mp3 incorrectly says "Bognor Regis"

https://github.com/davwheat/rail-announcements/blob/main/static/audio/SN/377/stations/PMS.mp3

This 404s now...?

Yes, I removed this when I got some better recordings from elsewhere. Sorry for not updating the issue.

I think selecting PMS for any of the announcements breaks something, but that's a separate thing 😉


'UIImageView' does not have a member named 'load'

I am new to iOS, xcode, and cocoapod. I did a pod install successfully but when  I apply this extension to my project I had the above error.
let userProfileURL: NSURL = NSURL(string: member.profileImage.standardUrl)!
cell.standardUserImageView.load(userProfileURL)
Do I miss something ?
Please help.

hi @channainfo .
Do you implement import ImageLoader?
Please see  code

@hirohisa yes I did.
import UIKit
import ImageLoader


What is the difference between this fork and the 01org/libva repo?

Hi Paul,
Our master branch does not have any different with 01org/libva. This repository is based on product platform release supported by IOTG for our customer.  Current all the release in this upload at here are validated based on APL-I platform on using Yocto on IOTG side. In this repository, we are supporting two favor libva use for different media driver, there is media SDK and open source media driver for our customer.
For media SDK, will use release/mr4_staging
For Open source media, will use master branch which is syncing based on snapshot release code based that we validated on our side.
This two favor libva is using different VA media driver.

This repository is based on product platform release supported by IOTG for our customer.

Can you elaborate on this a little? IOTG means "Internet of things group", correct? Does this simply refer to a Linux stack that can run the iHD driver and MSDK?

Current all the release that upload at here validated based on APL-I platform

This includes the i7/i5/i3 6th gen CPUs, correct? I see a lot of references to Appolo Lake, while documentation describes target machines that are i7 6th gens.

For media SDK, will use release/mr4_staging

To clarify, "mr4_staging" is basically a beta for an upcoming "mr4" release, correct?

For Open source media, will use master branch which is syncing based on snapshot release code based that we validated on our side.

Got it.
So, for media sdk, I should be using all the "iotg-lin-gfx-" libraries? I should use the same "mr" branch on all of them?
For example:

iotg-lin-gfx-mesa at mr3
iotg-lin-gfx-libva at mr3
iotg-lin-gfx-ddx at mr3
iotg-lin-gfx-libdrm at mr3
iotg-lin-gfx-gstreamer-vaapi at mr3
iotg-lin-gfx-va-driver at mr3

Using these libraries, I can have a valid configuration for using media sdk on an i7 6th gen CPU, using the iHD driver?
Side question, what exactly is "iotg-lin-gfx-va-driver"? It isn't the iHD, since it is closed source. Is it the i965/i915 driver? Is it the same as this one, but verified to work with the "mr*" release branches of the "iotg-lin-gfx" libraries?

Hi Paul,
Yes, Internet of things group. But we only support in Apollo-lake platform Embedded Product, we didn't verify in core i3/i5/i7. But If you really in core product, you need to install the media server studio support for core product.
But I checked on Intel Developer Zone side, it seem like Kaby Lake platform not support for MSDK yet.
But for Skylake core product, already supported.
https://software.intel.com/en-us/forums/intel-media-sdk/topic/721038
You can contact Liu Mark to double confirm and check with him for core product MSDK support.
For Graphic Driver:
iotg-lin-gfx-mesa - release/mr3 tag
iotg-lin-gfx-ddx - release/mr3 tag
iotg-lin-gfx-libdrm - release/mr3 tag
For MSDK library + closed source media driver:
iotg-lin-gfx-libva - release/mr3_staging (or you can directly use the rpm installer).
gst-msdk plugin: https://github.com/01org/gstreamer-media-SDK
MSDK library and Media Driver you can retrieve from (Embedded Product Apollo-lake Platform:
https://www.intel.com/content/www/us/en/embedded/products/apollo-lake/technical-library.html#search=mr3.1)
For i965 video driver (Open soruce media driver):
iotg-lin-gfx-libva at mr3
iotg-lin-gfx-gstreamer-vaapi at mr3
iotg-lin-gfx-va-driver at mr3


Remove github.com/aws/amazon-cloudwatch-agent-test/test inside metric value query

Description of the issue
Remove unused github.com/aws/amazon-cloudwatch-agent-test/test inside metric value query
License
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Tests
Running on my fork https://github.com/khanhntd/amazon-cloudwatch-agent/actions/runs/3705582505

Hey there are other unaddressed errors too. I got it working on my PR. Sorry I submitted before I saw yours


[docs] Add and revise Base UI + Create React App examples

Part of #36193

[x] add Base UI + Create React App (JavaScript) example
[x] clean up Base + CRA TypeScript example
[x] add system to name for clarification
[x] add more details to READMEs
[x] improve startup pages
[x] add CRA examples for TS and JS without MUI System

Q: Does it make sense to package this up with @mui/system? The existing TS example had it installed so I went ahead and did the same for the JS example. It is nice to be able to demonstrate adding styles to the Base components, but I don't want to force any styling solution on anybody. 😅 Maybe good ol' vanilla CSS is better? (Or would we prefer to persuade more people to try MUI System? 😇)
A: After talking about it with @mnajdova we agreed that we should have examples with and without @mui/system. I'll keep the changes here, and add two more examples for CRA without MUI System.
Startup page before:

After:

I know my startup page isn't the most beautiful thing in the world, but I think it's an improvement nonetheless! 😅 I wanted it to be helpful but didn't want to invest too much time into making it pretty.

I wonder if we should invest in CRA examples as it's no longer a recommended way of starting a React project (https://github.com/reactjs/react.dev/pull/5487#issuecomment-1409720741, https://react.dev/learn/start-a-new-react-project)
Having Vite as a SPA example seems to be more future-proof

I wonder if we should invest in CRA examples as it's no longer a recommended way of starting a React project (reactjs/react.dev#5487 (comment), https://react.dev/learn/start-a-new-react-project) Having Vite as a SPA example seems to be more future-proof

@michaldudak my goal in #36193 is to reach parity with Material UI for Base and Joy examples. I think CRA is still relevant and worth keeping around, even if it is falling out of fashion.
I'll move on to Vite examples from here so we'll have those ready before the stable release.

I know CRA isn't a big priority but we might as well merge this since it's here. 😅 Can I get a final review?

...Or maybe we don't want any CRA examples anymore? See: #37367


Improve error handling

I got a 429 back and it was just blobbed on the screen, hard to read what was happening.
Also, it's weird I got a 429 back as this has been my first query!

I got the same issue (error code 429)!
near the end of the error message there is this:

same discussion here https://github.com/BuilderIO/ai-shell/issues/6

Released better error handling in 0.0.18


feat: improve alignment properties

Only some naming changes, this needs to be incorporated in the environments that use this module
LGTM


Added basic troubleshooting steps for AKS cluster Start operations

Updated the landing page with additional start operations card + linked common issues.
This effort was a part of CRUD Ambassadors, WI: https://supportability.visualstudio.com/AzureContainers/_workitems/edit/57316
Pull request guidance
Thank you for submitting your contribution to our support content! Our team works closely with subject matter experts in CSS and PMs in the product group to review all content requests to ensure technical accuracy and the best customer experience. This process can sometimes take one or more days, so we greatly appreciate your patience.
We also need your help in order to process your request as soon as possible:

We won't act on your pull request (PR) until you type "#sign-off" in a new comment in your pull request (PR) to indicate that your changes are complete.

After you sign off in your PR, the article will be tech reviewed by the PM or SME if it has more than minor changes. Once the article is approved, it will undergo a final editing pass before being merged.

#sign-off

Adding ms.subservice to taxonomy

@jovieir If you finish changes in this PR, type "ready for review" in a new comment. Then, we will proceed.

ready for review

@jovieir The private PR#5433 that includes the same changes with PR#1340 is merged, so I closed this PR.


Move to gitversion

Connected to https://github.com/RadicalFx/housekeeping/issues/35
@micdenny this is ready for review, the goal is to move to GitVersion to better handle automatic versioning, especially for contributors so to avoid asking everyone to manually bump the version when opening a PR.
Please review.

@micdenny ping :smile:

Since we verified on Radical.Windows.Presentation.CastleWindsor that the process works, if no objections are made I'll merge this one in a couple of hours.


[Question] What is the reason to drop support for absolute paths in file patterns?

I'm seeing the new exception at https://github.com/pinterest/ktlint/blob/7e2c7fd96fba4ac246639900d0c96c286afeb0fb/ktlint/src/main/kotlin/com/pinterest/ktlint/internal/FileUtils.kt#L89, as well as a note in release notes that ktlint dropped support for absolute paths in patterns starting from 0.41.0. I understand that this is because of migration to PathMatcher, but I don't quite understand the reason for this particular restriction.
Is it a permanent decision or can this behavior be altered in future releases? Or does it break something in expected workflow?

My understanding is that some complex platforms that unify different static analyzers can be affected by this change.
In most cases such platforms are using absolute paths to files to unify different static analysis in one system.

ktlint -F /tmp/foo.kt

fails as well. No globs involved.

That's a serious issue and there has been almost two months since the release. It would be nice to hear maintainers' comments on this.

Hi folks, we'll look into this, as it sounds like it's blocking a number of people from upgrading.

Thanks @shashachu! this will be brilliant :)

Is it expected to be fixed in new reales?

@petertrr 's PR to add back support for absolute paths has been landed to master. Once the SNAPSHOT builds, it'd be good for folks in this thread to test it out to ensure it works.

@shashachu is there an ETA for 0.43.0 (or maybe 0.42.2) release? We have tested the snapshot on our side, it works as expected.

0.43.0 will be integrated into https://github.com/cqfn/diktat, so there will be a double check of the version

@kirillgroshkov Petya has fixed it in https://github.com/pinterest/ktlint/pull/1199 .
Need just to release it...


[BUG] TLS CONFIGURATION FAILS: Failed to load plugin class [org.opensearch.security.OpenSearchSecurityPlugin]

What is the bug?
logs :
`java.lang.IllegalStateException: failed to load plugin class [org.opensearch.security.OpenSearchSecurityPlugin]
Likely root cause: OpenSearchException[Unable to read /usr/share/opensearch/config/tls-transport/ca.crt (/usr/share/opensearch/config/tls-transport/ca.crt). Please make sure this files exists and is readable regarding to permissions. Property: plugins.security.ssl.transport.pemtrustedcas_filepath]`

Configuration files
i'am using cert-manager and let'sencrypt for the certs generation
Certifications:
`
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: ca-certificate
  namespace: default
spec:
  secretName: ca-cert
  duration: 9000h # ~1year
  renewBefore: 360h # 15d
  isCA: true
  privateKey:
    size: 2048
  dnsNames:
    - '*.{{.Values.domain}}.adeiz.com'
  usages:
    - digital signature
    - key encipherment
  issuerRef:
    name: letsencrypt-{{.Release.Namespace}}-prod
    kind: ClusterIssuer
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: opensearch-certs
  namespace: default
spec:
  secretName: opensearch-certs
  duration: 9000h # ~1year
  renewBefore: 360h # 15d
  isCA: false
  privateKey:
    size: 2048
    algorithm: RSA
    encoding: PKCS8
  dnsNames:
    - '*.{{.Values.domain}}.adeiz.com'
  usages:
    - signing
    - key encipherment
    - server auth
    - client auth
  issuerRef:
    name: letsencrypt-{{.Release.Namespace}}-prod
    kind: ClusterIssuer
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: opensearch-admin-certs
  namespace: default
spec:
  secretName: opensearch-admin-certs
  duration: 9000h # ~1year
  renewBefore: 360h # 15d
  isCA: false
  privateKey:
    size: 2048
    algorithm: RSA
    encoding: PKCS8
  dnsNames:
    - '*.{{.Values.domain}}.adeiz.com'
  usages:
    - signing
    - key encipherment
    - server auth
    - client auth
  issuerRef:
    name: letsencrypt-{{.Release.Namespace}}-prod
    kind: ClusterIssuer
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: opensearch-dashboards-certs
  namespace: default
spec:
  secretName: opensearch-dashboards-certs
  duration: 9000h # ~1year
  renewBefore: 360h # 15d
  isCA: false
  privateKey:
    size: 2048
    algorithm: RSA
    encoding: PKCS8
  dnsNames:
    - '*.labadeiz.adeiz.com'
  usages:
    - signing
    - key encipherment
    - server auth
    - client auth
  issuerRef:
    name: letsencrypt-{{.Release.Namespace}}-prod
    kind: ClusterIssuer`

ClusterIssuer:
`apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-{{.Release.Namespace}}-prod
spec:
  acme:
    server: https://acme-v02.api.letsencrypt.org/directory
    email<EMAIL_ADDRESS>    privateKeySecretRef:
      name: letsencrypt-{{.Values.domain}}-prod-account-key
    solvers:
    - selector:
        dnsNames:
        - '*.{{.Values.domain}}.adeiz.com'
      dns01:
        webhook:
          config:
            apiKeySecretRef:
              name: godaddy-api-key-prod
              key: key
              secret: secret
            production: true
            ttl: 600
          groupName: acme.mycompany.com
          solverName: godaddy`

Opensearch-cluster.yaml:
apiVersion: opensearch.opster.io/v1
kind: OpenSearchCluster
metadata:
  name: my-first-cluster
  namespace: default
spec:
  general:
    serviceName: my-first-cluster
    version: 2.3.0
    setVMMaxMapCount: true
  dashboards:
    enable: true
    version: 2.3.0
    replicas: 1
    resources:
      requests:
         memory: "512Mi"
         cpu: "200m"
      limits:
         memory: "512Mi"
         cpu: "200m"
    tls:
      enable: true
      generate: false
      secret:
        name: opensearch-dashboards-certs
  security:
    config:
      adminSecret:
        name: opensearch-admin-certs
    tls:
      transport:
        generate: false
        perNode: false
        secret:
          name:  opensearch-certs
        nodesDn: [CN="'*.{{.Values.domain}}.adeiz.com'", ]
        adminDn: ["CN='*.{{.Values.domain}}.adeiz.com'", ]
      http:
        generate: false
        secret:
          name: opensearch-certs
  nodePools:
    - component: masters
      replicas: 2
      diskSize: "3Gi"
      resources:
         requests:
            memory: "2Gi"
            cpu: "500m"
         limits:
            memory: "2Gi"
            cpu: "500m"
      roles:
        - "data"
        - "master"

What is the expected behavior?
OpenSearch works normally with the generated certifications.

[Triage]
Adding @swoehrl-mw to please take a look and guide @Siradjedd.
Thanks

Same here


Update async storage link

Package is now called react-native-community/async-storage instead of react-native-community/react-native-async-storage.

I have this change included in #1493.

I have this change included in #1493. Not only async-storage package name is outdated.

Sorry, didn't see it. I will close it then.

@marturas No problem, thank you for adding this PR in the first place!


Viewing code coverage by file in --reporter=text

On the text reporter, I wanted to be able to see the numbers that were resulting in the percentages being displayed--e.g., if my percentage was 94%, I wanted to be able to see that 31/33 lines covered is what resulted in 94% test coverage.
Like this:

Maybe other people would want their output to be displayed this way, as an option.  You could have an option called "line-count" or something, and then display the output like this if that option is true, and change the percent-column widths accordingly if that option is true, too.  I am not sure what the process is for contributing here, but the addition would be simple, I can just paste the code, or do whatever you all do to vet or add contributions.  Thoughts?

On it.  I am familiar with mocha, but I may need some guidance to show you what you are wanting testing wise.  The feature is lightweight, since all of the infrastructure is there--it is already being used to calculate the percentages that are displayed by default--it was just a matter of displaying those values that were already being used behind the scenes to calculate those percentages.  I will follow your plan as outlined here and be in touch.  Thanks


Add translate for PT_br in "Cloud Computing" and "editors"

Better translate in words
Add info
Add a new words translates in PT_br
the word "Cloud" and "Computing" and "editors" is not PT-br,
but "Nuvem" and "Computação" and "Editores de código" is better to understanding
Better understanding for peoples

if you change thhe category names, you have to allso chage the index


Example of reading a Processing object from json

With the new processing configs I am testing the functionality of writing to json (works fine) and reading from json (not working).
I created an outline of a test for this on branch dev in
aurora/test_utils/synthetic/make_processing_configs_new.py
The test is called test_to_from_json()
The output json is created, and it is read-in but something happens on line 659 of  mt_metadata/mt_metadata/base/metadata.py on the call to self.from_dict(json_dict) .. maybe too many layers of nested dicts?  The error message is pasted below
Traceback (most recent call last):
  File "/home/kkappler/software/irismt/mt_metadata/mt_metadata/base/metadata.py", line 455, in set_attr_from_name
    helpers.recursive_split_setattr(self, name, value)
  File "/home/kkappler/software/irismt/mt_metadata/mt_metadata/base/helpers.py", line 334, in recursive_split_setattr
    recursive_split_setattr(base_object, other[0], value)
  File "/home/kkappler/software/irismt/mt_metadata/mt_metadata/base/helpers.py", line 334, in recursive_split_setattr
    recursive_split_setattr(base_object, other[0], value)
  File "/home/kkappler/software/irismt/mt_metadata/mt_metadata/base/helpers.py", line 336, in recursive_split_setattr
    setattr(base_object, key, value)
  File "/home/kkappler/software/irismt/mt_metadata/mt_metadata/base/metadata.py", line 334, in __setattr__
    super().__setattr__(name, value)
  File "/home/kkappler/software/irismt/aurora/aurora/config/metadata/station.py", line 45, in runs
    run.from_dict(item)
  File "/home/kkappler/software/irismt/mt_metadata/mt_metadata/base/metadata.py", line 616, in from_dict
    self.set_attr_from_name(name, value)
  File "/home/kkappler/software/irismt/mt_metadata/mt_metadata/base/metadata.py", line 466, in set_attr_from_name
    setattr(self, name, value)
  File "/home/kkappler/software/irismt/mt_metadata/mt_metadata/base/metadata.py", line 344, in __setattr__
    test_property.fset(self, value)
  File "/home/kkappler/software/irismt/aurora/aurora/config/metadata/run.py", line 100, in time_periods
    raise TypeError(f"not sure what to do with type {type(item)}")
TypeError: not sure what to do with type <class 'dict'>

Process finished with exit code 1

Configs are currently being saved during several of the synthetic tests.

[ ] Add a line to the synthetic tests that confirms we can read in the config
[ ] Confirm the ingested config can be used successfully for processing
[ ] remove test_to_from_json() from make_processing_configs.py

We can test


Upgrade fs-fake-targets dependency to v0.1.1

This solves the namespace issues

+1 pending appveyor


a problem on test.py

engine = btv2.engine(data)

TypeError: engine.init() missing 1 required positional argument: 'data'
sorry, i am new to  python

@darkjackx The dev branch contains a lot of redundant code / code which doesn't work. Running dashboard.py should give you an example of the pyine system, however most of it is still not implemented. If you have anything specific you'd like to implement, email me at<EMAIL_ADDRESS>


Some video cannot be downloaded.

Checklist

[x] I'm reporting a broken site support issue
[ ] I've verified that I'm running youtube-dl version 2019.06.21
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar bug reports including closed ones
[x] I've read bugs section in FAQ

Verbose log

C:\Users\Administrator>youtube-dl --verbose --proxy socks5://<IP_ADDRESS>:10808 https://www.youtube.com/watch?v=B8igPU-MYQs
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--proxy', 'socks5://<IP_ADDRESS>:10808', 'https://www.youtube.com/watch?v=B8igPU-MYQs']
[debug] Encodings: locale cp936, fs utf-8, out utf-8, pref cp936
[debug] youtube-dl version 2019.06.08
[debug] Python version 3.6.5 (CPython) - Windows-10-10.0.17763-SP0
[debug] exe versions: ffmpeg N-93016-gb8ebce4f84, ffprobe N-93016-gb8ebce4f84
[debug] Proxy map: {'http': 'socks5://<IP_ADDRESS>:10808', 'https': 'socks5://<IP_ADDRESS>:10808'}
[youtube] B8igPU-MYQs: Downloading webpage
[youtube] B8igPU-MYQs: Downloading video info webpage
[youtube] {18} signature length 104, html5 player vfl49f_g4
[youtube] B8igPU-MYQs: Downloading player https://www.youtube.com/yts/jsbin/player_ias-vfl49f_g4/en_US/base.js
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\youtube.py", line 1342, in _decrypt_signature
    video_id, player_url, s
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\youtube.py", line 1250, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\youtube.py", line 1314, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\common.py", line 1005, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
 (caused by RegexNotFoundError('Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\youtube.py", line 1342, in _decrypt_signature
    video_id, player_url, s
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\youtube.py", line 1250, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\youtube.py", line 1314, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\common.py", line 1005, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\youtube.py", line 1342, in _decrypt_signature
    video_id, player_url, s
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\youtube.py", line 1250, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\youtube.py", line 1314, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\common.py", line 1005, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\YoutubeDL.py", line 796, in extract_info
    ie_result = ie.extract(url)
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\youtube.py", line 1986, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\youtube.py", line 1352, in _decrypt_signature
    'Signature extraction failed: ' + tb, cause=e)
youtube_dl.utils.ExtractorError: Signature extraction failed: Traceback (most recent call last):
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\youtube.py", line 1342, in _decrypt_signature
    video_id, player_url, s
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\youtube.py", line 1250, in _extract_signature_function
    res = self._parse_sig_js(code)
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\youtube.py", line 1314, in _parse_sig_js
    jscode, 'Initial JS player signature function name', group='sig')
  File "c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\youtube_dl\extractor\common.py", line 1005, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
 (caused by RegexNotFoundError('Unable to extract Initial JS player signature function name; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

First of all, the video is available. I can see it through the browser. It seems like the Youtube downloader can't extract the information of the video correctly.
I try to call the extract_info to debug the information of the video. It returns null.
 with YoutubeDL(self.ydl_opts) as ydl:             try:                 self.logger.info('start downloading, url - %s' % (self.url))                 info_dict = ydl.extract_info(self.url, download=False)                 print(json.dumps(info_dict, indent=4))

I'm having the same problem on this video: https://www.youtube.com/watch?v=dN3GbF9Bx6E

Same problem on this video: https://www.youtube.com/watch?v=xEmMabF_IKI

I've verified that I'm running youtube-dl version 2019.06.21

2019.06.08

I've had the same issue as you but updating just fixed it, and it's as simple as "sudo youtube-dl -U"

I just found the updated version 2019.06.21 yesterday.
Resolve the issue by pip install --upgrade youtube-dl.
Thanks all.

This is correct. Using command pip install --upgrade youtube-dl will actually update the program. Instructions say to use sudo -H pip install --upgrade youtube-dl but that gives a response of Requirement already up-to-date: youtube-dl in /usr/local/lib/python2.7/dist-packages


APITable & MetaBase

Couple of interesting scenarios where it could be said that branding is mandated, with the use of the AGPL provided as the reason:

APITable: https://github.com/apitable/apitable/issues/226
Metabase: https://github.com/metabase/metabase/issues/27859

Find on APITable, which led me to Metabase. Metabase contributor has cleared things up, so they may be addressing the point of confusion.
Adding here just so I don't forget to see where these lead.

Metabase issue looks to have been addressed, now changed from the old wording. Could be added to the addressed cases as a positive example.


How can i create searchbox for hugo go blog?

Hi Everybody.
How can i create a searchbox for search article in my blog?
Thanks.

Please use http://discuss.gohugo.io/ for questions/troubleshooting. Also see  Hugo Documentation.


Enforce PK restrictions for synchronized Realms

We'll be enforcing some restrictions on the PK type and name for synchronized Realms only. Since there's no obvious compile-time way to do that, the sanest approach seems to be to do it is to validate the schema before opening a synchronized Realm.
Internal doc link: https://docs.google.com/document/d/1eGwS7kid-zjBI3Q79ogyZ9mJk8JLLEmlVCbcOczcjuU/edit#

➤ Brian Munkholm commented:
Mathias will align with Eric to not do this and allow all existing PK's.

➤ Brian Munkholm commented:
The restriction will be kept until private beta, but lifted before public beta.
So this task will not be done.

➤ Nikola Irinchev commented:
I'm reopening this because even if we don't enforce a particular type limitation, we need to enforce that all top-level objects have PK property defined and that it is called _id. This will be enforced on the server, but the error message is not exactly obvious - it tells the client that there's a type mismatch (server expects ObjectId but gets GlobalKey which is the identity type for objects without PK).

➤ Brian Munkholm commented:
[~nikola.irinchev] Is this still relevant? Are there changes needed in the mini scope given new PK types allowed?

➤ Nikola Irinchev commented:
As mentioned in my last comment - object store should throw an error if a top level object doesn't have the _id primary key.
I don't believe this has been done, so the ticket is still relevant.

I have requested better server generated error messages for schema errors here: https://jira.mongodb.org/browse/REALMC-7052 currently I only see "Bad changeset (DOWNLOAD)" for these types of errors.

Why do we need better server messages though (I mean, we do, but this is kind of orthogonal to the OS ticket)?

From my perspective, PK restrictions are entirely server side, and therefore the error should be server generated. If we implement the restrictions client side, the server could potentially lift these restrictions and then the clients would be left artificially enforcing an obsolete rule.

Having to connect to a server and wait for a response is fairly annoying when you can get immediate feedback. It's also a moot point that the server can lift restrictions because that will not have an effect on already existing clients (who couldn't have possibly shipped with support for eventually lifted restrictions). It'll of course require an update to the client SDKs, but that's a fairly minor change. To clarify my point, let's assume everything is at v10 now and we have a restriction A:

A client uses a v10 SDK talking with a V10 server and can't use A PK.
They ship their app that doesn't use the A PK.
V11 of the server ships that lifts that restriction along with a V11 of the SDK.
The developer upgrades to the new SDK and can use the PK.
Existing apps in production obviously can't use the PK, but even if they could, all the application logic was already designed around not using A as a PK, so the fact the restriction is now lifted will not affect them.

So the downside of enforcing the restriction client-side is that eventually we'll have to lift the restriction. The upside is that it gives the developer much faster feedback about their schema + a potentially better error message.

Also, this particular restriction is unlikely to ever be lifted on the server side, so it's fairly safe to do it client-side.

Alright, fair points.
I'd have to look into the feasibility of this, but what do you think of sync clients automatically name aliasing the pk to "_id" instead of hard blocking a different name?

Yeah, that's something I've been entertaining for a while - personally, I wouldn't be opposed to it, but there was some pushback from the rest of the SDK team as it makes it "too magical" and introduces potential problems. Here's a few points that were brought up:

It will introduce confusion when writing queries. We can pamper that over when using the strongly typed API, but unless we introduce some aliasing mechanics for the string based queries, it'll be weird that a property is called MyAmazingPrimaryKey, but you have to use _id in queries.
It will introduce dichotomy between Studio's view of the database (as it doesn't know about the alias) and the SDK's.
It will introduce confusion when using functions or viewing the MongoDB database via Compass.

I don't think 2 and 3 are dealbreakers, so if we can find a solution for 1, I'd be fine with automatic renaming, but that's a bigger task that has to be aligned with the rest of the SDK team.
And just to confirm the ticket is not only about ensuring that the name is _id, but also that all top-level objects do have a PK property defined, which I don't think we can do automagically.

If you are referring to the query parser, then string based queries already support name aliasing in queries and name aliasing is how we decided to implement queries on all linking object properties (since the parser doesn't know about named backlink properties, these are automatically aliased to the @links.Class.forward_link_property syntax).
However, I can see that this is a larger discussion and there is value in validating the _id for the time being.

Oh, that's cool - I must have forgotten about that. Then yeah, that leaves us only with the second and third point which will hopefully make it easier to sell the idea.


Create a doc for analysing production issues with GraalVM

Description:

$Subject

Describe your task(s)
Need to include the following:

[x] Getting heap dumps
[x] Getting thread dumps
[x] Connecting to JFR
[ ] Other (Debugging, strand dump etc.)

Please find the attached document: https://docs.google.com/document/d/10q-Aa7XjW7SrHvat8G8L8ckC3aF8FrRHGKltm09fHco/edit?usp=sharing


add test for TmpDirFactory

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

Project coverage is 87.52%. Comparing base (400203a) to head (5f1ef82).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
+ Coverage   87.05%   87.52%   +0.46%
==========================================
  Files          24       24
  Lines        3330     3350      +20
==========================================
+ Hits         2899     2932      +33
+ Misses        431      418      -13

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


Poor quality error message from Dart VM constant evaluation

In this code
class Bar {
  const Bar();
}

class Foo {
  void foo({Bar bar: Bar()}) {}
}

main() {
  new Foo().foo();
}

and after the landing of this CL: https://dart-review.googlesource.com/c/sdk/+/49900
The VM reports:
Unhandled exception:
'file:....dart': error: Not a constant expression: unexpected kernel tag ConstructorInvocation (31)
#0      main (file:///....dart:10:13)
#1      _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:279:19)
#2      _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:165:12)

In Dart 2.5.0-dev.2.1, with const-update-2018, this code no longer errors.


Scientific Linux 8 will never exist

As per
https://listserv.fnal.gov/scripts/wa.exe?A2=ind1904&L=SCIENTIFIC-LINUX-ANNOUNCE&P=78

May have spoken too soon here....


LANG-1266 Add alphabet converter

(as described in the mailing list)
This is a utility class I wrote for converting from one alphabet to another - for example, from unicode to latin, without using some of the chars in latin. The usage looks like this:
Set<Character> originals; // a, b, c, d
Set<Character> encoding; // 0, 1, d
Set<Character> doNotEncode; // d

AlphabetConverter ac = AlphabetConverter.createConverter(originals, encoding, doNotEncode);

ac.encode("a"); // 00
ac.encode("b"); // 01
ac.encode("c"); // 0d
ac.encode("d"); // d
ac.encode("abcd"); // 00010dd

Of course,
x.equals(ac.decode(ac.encode(x)))
should always be true.
The implementation provided makes the encodings of fixed length, other than the "do not encode" chars, which remain as they are (length one).
In addition, in order to make it easier to preserve the encoding scheme, I've added a human-readable toString implementation, and a constructor that can recreate an AlphabetConverter from the encoding map, such that:

AlphabetConverter ac;

ac.equals(AlphabetConverter.createConverterFromMap(ac.getOriginalToEncoded())); // always should be true

Coverage decreased (-0.02%) to 93.559% when pulling c1a5a638a3132f2048bb4113181460c3c660c2a8 on eyala:LANG-1266 into dad86bc0a29689fd29bf03b382a39621718e8b05 on apache:master.

Coverage decreased (-0.02%) to 93.559% when pulling c1a5a638a3132f2048bb4113181460c3c660c2a8 on eyala:LANG-1266 into dad86bc0a29689fd29bf03b382a39621718e8b05 on apache:master.

The issue has been moved to https://issues.apache.org/jira/browse/TEXT-19 Please reference TEXT-19 in your PR against the Commons Text repository. Thank you!


How to fix this problem on vista or win7, thank you.

Try running your command as administrator


Request | Add an option to choose which CPU to use

in classic games it is recommended to use single core, and it would be nice to assign a specific one to give it priority...

This feature already exists.  It is called SingleProcAffinity.  Just set this to the CPU you want to use.  For example, if you set this to 2 then it will assign the process to use the second CPU.  If you set this to a CPU that does not exist then it will just use the last CPU.
See more details in the wiki.

Really? I thought it only activated the use of the first CPU core, apparently the wiki is updated and better explained
Thank you-