RVIZ usage with the docker image

Hi,
I am thinking to use this Dockerfile to do some tests with ROS and my question is if I run the docker image, it is possible to use some tool to see RVIZ.
Sorry if the question is from a beginner.
Many thanks in advance.
Juan Antonio

Hello @jabrena, I missed this issue for some reason. Yes you can use RVIZ with this image, and for some initial tests the most simple steps are:
$ XSOCK=/tmp/.X11-unix
$ XAUTH=/tmp/.docker.xauth

$ touch $XAUTH
$ xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -

$ docker run -i -t --rm \
	     -v $XSOCK:$XSOCK:rw \
	     -v $XAUTH:$XAUTH:rw \
	     -e XAUTHORITY=${XAUTH} \
	     -e DISPLAY \
	     --name ros \
	     diegoferigo/ros \
	     bash

And then, from within the container:
# roscore &
# rviz

For more advanced tests you can mount some host folders as volumes, set a runtime user instead of using root, use a docker-compose system etc. You can have a look to my Development container to have hints on most advanced usage.

No response. Closing.

I tried these steps on a new container created from your Dockerfile. rviz fails with the following error:
root@6a11901bf194:/# rviz
[ INFO] [1520568098.984444569]: rviz version 1.12.15
[ INFO] [1520568098.984564646]: compiled against Qt version 5.5.1
[ INFO] [1520568098.984603196]: compiled against OGRE version 1.9.0 (Ghadamon)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Segmentation fault (core dumped)

I am on Ubuntu 16.04
root@6a11901bf194:/# uname -a
Linux 6a11901bf194 4.13.0-32-generic #35~16.04.1-Ubuntu SMP Thu Jan 25 10:13:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

@subhash I finally found some time to look into this. Do you have an NVidia GPU?

Yes, i tested with a 1070
On Tue, Mar 27, 2018, 10:20 PM Diego Ferigo<EMAIL_ADDRESS>wrote:

@subhash https://github.com/subhash I finally found some time to look
into this. Do you have an NVidia GPU?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/diegoferigo/dockerfiles/issues/6#issuecomment-376596053,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFWwqo8O1XxDVabJDUk55CabZYUISL2ks5tim3sgaJpZM4N_jyf
.

I had a discussion https://github.com/robotology/icub-main/issues/501#issuecomment-376063324 just few days ago. Nvidia GPUs need a configured docker-nvidia and the following lines added to the image:
# nvidia-docker hooks
LABEL com.nvidia.volumes.needed="nvidia_driver"
ENV PATH /usr/local/nvidia/bin:${PATH}
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64:${LD_LIBRARY_PATH}

I might consider adding them as default to my images in order to provide an out-of-the-box working setup even on Nvidia. From the user side, however, nvidia-docker will always be necessary.

I installed ros-kinetic on tensorflow base image on docker. I cannot seem to get rviz working on the docker.
oot@9406b6e22641:/notebooks# rviz
[ INFO] [1539057258.243957164]: rviz version 1.12.16
[ INFO] [1539057258.244021049]: compiled against Qt version 5.5.1
[ INFO] [1539057258.244042608]: compiled against OGRE version 1.9.0 (Ghadamon)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Segmentation fault (core dumped)

Although I can run other ros gui applications on docker like rqt_image. How can this be fixed?

Hi,
I am trying to run rviz on autoware docker. I get the following error:
[ INFO] [1539583851.181537990]: rviz version 1.12.16
[ INFO] [1539583851.181578002]: compiled against Qt version 5.5.1
[ INFO] [1539583851.181587881]: compiled against OGRE version 1.9.0 (Ghadamon)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Could not initialize OpenGL for RasterGLSurface, reverting to RasterSurface.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
/home/autoware/Autoware/ros/src/util/packages/runtime_manager/../../../.config/rviz/cmd.sh: line 44:  2362 Segmentation fault      (core dumped) rosrun rviz rviz
I am using Ubuntu 16.04 and have Nvidia 1080.

+1. Getting the same with Ubuntu 16.04 and Nvidia Geforce GTX 1080

I am also having the similar issue on my dockers

+1, I have the same problem. Cannot get rviz running in a docker environment with autoware. Without docker rviz runs fine.

When I see this error:
libGL error: failed to load driver: swrast

Usually it means that the GPU access was not configured properly. OpenGL applications have always been tricky with Nvidia, but thanks to their amazing work and their new docker runtime everything should run smooth when coupled with nvidia-docker 2.0.
@mpkuse @KetkiChaudhary @hristo-vrigazov @saikishor @hroachewilson @yuqli What's yours system configuration? I suggest you to do tests with minimal images and then add other piece of software on top of it.
I have a XPS 15 with a GeForce GTX 1050 Mobile. My OS is Ubuntu 18.04 configured with bumblebee / bbswitch / optirun. This allows me to have the GPU turned off by default and turning it off only for selected processes (or containers).
I just updated my ROS image to melodic and added the support of nvidia-docker 2.0, can you please try it out? You can follow the updated README. With and without the Nvidia GPU enabled, on my setup RViz works as expected. Within the same container I tried to execute in background roscore first, and then rviz.

@diegoferigo Thanks for the response.
My system configuration :

Dell G7 7800 with a GeForce GTX 1060
OS is Ubuntu 16.04
ROS image is kinetic, but I uninstalled it.

I suspect the problem is I used nvidia-docker instead of a nvidia-docker-2.0, as I seem to see it somewhere about this issue. I have uninstalled everything and will try using nvidia-docker 2.0.
On another note, the demo tutorial on autoware homepage seems to instruct install nvidia-docker 1.0. I'll update when I figured out if this is indeed the issue.

I was wrong. The instructions on autoware homepage let us install NVIDIA Docker: 2.0.3

Just to update - I noticed that the Dockerfile.kinetic does not install ros-kinetic-rviz, maybe this is the issue? I added this command and am rebuilding now. Will update results..

Do the non-opengl GUIs work for you @yuqli? Such as rqt?

Hi @diegoferigo, sorry I later realized this thread is not about autoware. Thanks for the reply!
So the root problem seems to be nvidia-docker2 does not have OpenGL installed automatically inside it, and I found this thread to be very helpful regarding running rviz in autoware docker image. Other non-autoware images might have some useful insights from that thread too...
Here is a revised Dockerfile authored by someone else. When I figured out what that is doing I'll update here again :)

@moucrob You need to get the Dockerfile of your image, append at the bottom those lines, and regenerate the image using docker build (append --help to get all the options). In this way, you generate a new local image that includes your modification.
Be aware that if you want nvidia support, the base image should not be ubuntu but 1.0-glvnd-runtime-ubuntu18.04. I maintain a very simple example in https://github.com/diegoferigo/devenv.

I had to add the --runtime=nvidia to the docker run command and it worked!!
I also added the LABEL/ENV stuff and derived the image from cudagl as well, and installed nvidia-docker2 on the host.

@guru-florida Few things changed (again) in the Docker + Nvidia setup. Docker, starting from 19.03, natively supports nvidia GPUs. You don't need anymore the runtime (even though that method is still working and necessary in few edge cases) being substituted with the container toolkit. Have a look to the upstream installation procedure for more details.

@diegoferigo Thanks for replying. Yes, I saw that >19 has built-in support. I am on Docker thru apt from Ubuntu 19. I could have upgraded myself, but I wont be the only one using my docker image so wanted to keep compatible with D<19.

I see :+1: Consider though that I still did not see any image which compatibility has been broken by the latest docker update.


Add project metadata to the gemspec

Add bug_tracker_uri, changelog_uri, documentation_uri, homepage_uri, and source_code_uri to the gemspec metadata.
These project metadata will facilitate easy access to project information. The URI will be available on the Rubygems project page, via the rubygems API, and the gem and bundle command-line tools with the next release.

Note to self. References:
https://github.com/rubygems/rubygems/blob/4485c8caa6000c803caf7da7b36b0961a954bfe9/lib/rubygems/specification_policy.rb#L13-L22


Updated docs footer to match www

Coverage remained the same at 94.408% when pulling bccd7f5508b9f1c2ef574186c6d950fe2a632fbd on cody-docs-footer into 37f191df31bbe122667c25690ca51c4118b0829e on main.


Annotations to obsolete terms are displayed

http://amigo.geneontology.org/amigo/search/annotation?q=*:*&fq=regulates_closure:"GO:0005487"&sfq=document_category:"annotation"
I'm not sure if this is ok.

This should be filtered out by GORULE:0000014
@dougli1sqrd


[EmbedCreator] [Suggestion] Other users unable to send saved embeds.

Hi,
I've created a set of embeds in our server and assigned the [p]embed send commands for each of them to an alias for other users to use. Unfortunately sending of these embeds only works for me. Other users have tried both the aliases and the send embed command directly with no luck.
Is there an option to enable this somewhere in the cog? If not, is it possible to have this added/fixed?

Users must be set as bot admin or have the manage channels permission. This is intentional to avoid abuse, if you want to open it up to others then use the inbuilt permissions cog.


Single page document

Hello there,
The document is great and I really appreciate the knowledge, time and effort you put into it.
Do you think it is a good idea, for the documentation to be converted and presented in a single-page-got-it-all format or at least there is a link to such single page content?

A single page site would make the documentation easier to translate to other mediums.  Do you have a need for that?  I'd be curious the need of PagerDuty customers for that?  As a website, multi-page solution seems optimal to me.


Set-MailboxRegionalConfiguration -DomainController

-DomainController isn't aviable in Exchange 2016 on this command.

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

ID: 573e63b4-b27b-5b7b-9269-78d308fd64d3
Version Independent ID: 57b35909-0381-1181-58bb-2262c33576d1
Content: Set-MailboxRegionalConfiguration (ExchangePowerShell)
Content Source: exchange/exchange-ps/exchange/Set-MailboxRegionalConfiguration.md
Service: exchange-powershell
GitHub Login: @chrisda
Microsoft Alias: chrisda

@maettle, I tested on Exchange 2010 SP3 RU30, Exchange 2013 CU23, Exchange 2016 CU19, and Exchange 2019 CU8, and the DomainController parameter is available on the Set-MailboxRegionalConfiguration cmdlet.
Other than different CUs, we could be talking about an RBAC permissions issue. From this topic, run the following commands to see what you get:
$Perms = Get-ManagementRole -Cmdlet Set-MailboxRegionalConfiguration -CmdletParameters DomainController
$Perms | foreach {Get-ManagementRoleAssignment -Role $_.Name -Delegating $false | Format-Table -Auto Role,RoleAssigneeType,RoleAssigneeName}

These are my results. The User Options role, which is assigned to the Help Desk and Organization Management role groups is what gives access to that cmdlet/parameter combination.
Role         RoleAssigneeType RoleAssigneeName
----         ---------------- ----------------
User Options        RoleGroup Help Desk
User Options        RoleGroup Organization Management

@chrisda with your commands I was able to track down the problem to insufficient permissions. Thank you!


[GSK-1241] Fix type casting in drift tests

Actually this does not fix the issue because there is a validate_classification_label decorator


refer to pdf or word doc

Hello,
I don't know if this is more like an issue or question. But I was wondering if there is a way I can refer to a document in either pdf or word. For example, I would like to include the word "CV in PDF and Word" and then link them to the documents. So where should I store the documents and how to should code it?

I think this is more of a question for the Hugo forums: https://discourse.gohugo.io


Struct.new passes same subclass to the block

Follow #151
$ ../mspec/bin/mspec core/struct
ruby 2.3.0dev (2015-10-18 trunk 52184) [x86_64-darwin14]
................................................................................................

Finished in 0.018951 seconds

28 files, 85 examples, 147 expectations, 0 failures, 0 errors

Looks good, thanks!
Please merge yourself  when you updated about little nit :smiley:

Thanks for your review!


Caching?

Just wondering if this module supports caching responses like it does in the browser?

On the server you'll need to implement that yourself I believe.

Ok thanks.


Fix issues with optional directories and files

Signed-off-by: Manuel Cañete<EMAIL_ADDRESS>Hey, I just made a Pull Request!
There are three issues that I have could find working with optional files/folders in the template action.

If there is an optional folder in the root including a file and the condition to create it is false the template fails

e.g: ${{ values.condition }}/file.txt ->localOutputPath will be /file.txt and it will throw an errorNotAllowedError: Relative path is not allowed to refer to a directory outside its parent.

If there is an optional file inside a subfolder then the action tries to create the file even when the condition is false and it throws an error when it is going to write the file content in a directory.

e.g: src/${{ "subDir" if values.myCondition else "" }}/${{ "file.md" if values.myCondition else "" }} -> EISDIR: illegal operation on a directory, open

If there is an optional folder with subfolders or files and the condition to create the folder is false then the included folders and files are written to the parent folder instead of skip it.

e.g: src/${{ "subDir" if values.myCondition else "" }}/file.txt will be copied to src/file.txt when myCondition is false. I think the expected behaviour is to skip the files included in the optional folder.

This PR is related to:

Discord: dynamic template folders
Discord: empty-scaffolder discussion
PR Skip empty file names during scaffolder

:heavy_check_mark: Checklist

[X] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[X] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[X] All your commits have a Signed-off-by line in the message. (more info)

@mknet3 Hey, thanks! Check the comment above - you'll need a changeset (at patch level) for the package so that the changes actually get published.

I have added a test that is going to fail. It is just to look for a solution for that case. You were right @freben, we have to think in a solution to check if the file is a directory or not when the optional file is inside a directory. I will have a look later or tomorrow

Maybe you could add some documentation in a followup PR? :pray:

Maybe you could add some documentation in a followup PR? 🙏

Sure! I will create a PR to add documentation 🙂


Remove deprecated things

Removes the following components and all their platforms:

garage_door
hvac
rollershutter
thermostat

See also home-assistant/home-assistant.github.io#1314

🐬  when tests pass.

@MartinHjelmare Can you assist us with removing some of the changes you made to helpers/state.py? Specifically, here and everything related. We're not sure what to remove or leave and also if this should be migrated to climate or not.

I'll take a look.

@MartinHjelmare I think I figured it out. Waiting for tests to pass.

Tests passed. Do you want to check my commit to make sure I did it right? https://github.com/home-assistant/home-assistant/pull/4037/commits/b36e346ccb04b3123d77d3c6f7a777afecd37b3b

Looks good.

All these services can be removed from const.py and helpers/state.py:
SERVICE_MOVE_UP, SERVICE_MOVE_DOWN, SERVICE_OPEN, SERVICE_CLOSE
Sorry I missed that before.

And also from const.py:
SERVICE_MOVE_POSITION, SERVICE_STOP.

Once tests pass I will merge this and the related PRs.


[Bug] Build EXE from CVS? [sf#57]

Reported by glyph78 on 2004-08-24 22:36 UTC
Is there a procedure for building a Win32 exe from the
source files located in CVS?  I'm using wxGlade for Perl
generation, and I'd prefer not to have to install python.
Thanks,
-Scott

Commented by crazyinsomniac on 2004-08-25 09:16 UTC
Logged In: YES
user_id=264900
http://sourceforge.net/mailarchive/message.php?
msg_id=7613352


Review "Nerds.fm"

Link: https://nerdsfm.de/

I will not include this Podcast on this list right now because of

Very rare recording/publishing schedule

The topics are fine: A wild mix of tech content / also software development.


Upgrade to Next.js 12

It seems Preact is behaving when trying to upgrade to Next.js 12, so this serves as an intermediate update.
Trying 12 with subsequent commits.

Yup, deno.land is down:

error: error sending request for url (https://deno.land/x/base64/mod.ts): error trying to connect: tls handshake eof
--
01:42:39.317 | at file:///vercel/path2/.runtime.ts:1:0
01:42:39.339 | Error: Build script failed with exit code 1
01:42:39.339 | at Object.build (/vercel/c656f4e2f1f134d4/.build-utils/.builder/node_modules/vercel-deno/src/index.ts:219:9)
01:42:39.339 | at processTicksAndRejections (internal/process/task_queues.js:95:5)
01:42:39.339 | at buildStep (/var/task/webpack:/@vercel/api/scripts/build-container/src/utils/purpose-build.ts:195:1)


Usage of Astropy units.

Use u.Quantity(5, u.m) and <some_quantity>.to_value(u.TeV) as much as possible. It is more efficient than 5 * u.m and <some_quantity>.to(u.TeV).value .
Allow units to be passed to functions but do not require them.

Some benchmarks:
%timeit a = u.Quantity(5, u.m)
4.27 µs ± 35.4 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
%timeit b = 5 * u.m
6.73 µs ± 117 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

==> 50% faster!
%timeit a.to_value(u.cm)
4.8 µs ± 62 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
%timeit b.to(u.cm).value
9.74 µs ± 94 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)

==> 2x faster!!!

from Axel Donath's talk on p44 here: https://indico.cern.ch/event/783425/contributions/3325103/attachments/1815239/2966497/gammapy-pygamma-2019.pdf
Should change all places that coordinates are used to the following patterns, which are faster due to less copying of data:
instantiation:
q = Quantity(value, unit='cm-2 s-1')  # old way, slower
q = Quantity(value, unit='cm-2 s-1', copy=False) # faster no copy
q = value << 'cm-2 s-1' # same as previous, since Astropy 3.1

conversion:
value = q.to("cm-2 s-1") # old way, slower
value = q.to_value("cm-2 s-1") # new way with no copy

q = value << 'cm-2 s-1' # same as previous, since Astropy 3.1

I really don't like this syntax. Bit shifting by a unit?
So maybe stick to the more verbose one.

q = value << 'cm-2 s-1' # same as previous, since Astropy 3.1

I really don't like this syntax. Bit shifting by a unit?
So maybe stick to the more verbose one.

Agreed, q = Quantity(value, unit='cm-2 s-1', copy=False) is more clear.

I really don't like this syntax. Bit shifting by a unit?

no idea why they chose this, but I guess it was just the least-important operator available (you should never bit-shift anything that has a quantity attached anyhow).  Still it's a bit ugly, even if it saves some typing.

actually, I just tried the shift method, and I think the presentation had it a bit wrong: you can't shift a value by a string representation unless the LHS or RHS is already a Quantity:
x = 12 * u.m/u.s # works, but I guess is slower
x << 'cm/hr'   # conversion works -> Quantity
12 << 'cm/hr' # doesn't work, neither side is Quantity
12 << u.m/u.s # creates a quantity 12 m/s

So I think it is quite confusing, and probably should just use the

@kosack Yes, you're right. Assigning a unit string with the << obviously doesn't work (how should it if there is no units class involved...). So the correct example would be value << u.Unit("cm-2 s-1"). I'll correct and re-upload the slides.
I also don't like the << operator much. In Gammapy we've changed consistently to the Quantity(value, "cm22 s-1", copy=False) and q.to_value("cm-2 s-1") pattern.

I think we fixed this in most of the places and are aware of it for PR reviews of new code. Closing.


Referrer/Origin-locked streams won't work

Due to some factors, some links might be locked using where they came from (referrer and/or origin). Some links, because of that, can be falsely given a 403 when trying to load them.

How are user-agent and referer defined in the link? At the moment iptvnator supports two formats, see https://github.com/4gray/iptvnator/issues/57

How are user-agent and referer defined in the link? At the moment iptvnator supports two formats, see https://github.com/4gray/iptvnator/issues/57

Defined as external VLC-specific options.
#EXTVLCOPT:http-referrer=https://ssh101.com/ as an example.
Maybe you can translate this to make it work in the Kodi way.
If you need some things :
http-user-agent = User-Agent
http-referrer = Referer
Origin however isn't supported in VLC (or I haven't found yet.

Took a random stream from ssh101, in this way it works fine for me:
#EXTM3U #EXTINF:-1 tvg-name="test" tvg-id="test",Test #EXTVLCOPT:http-referrer=https://ssh101.com/ #EXTVLCOPT:http-user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) https://tna5.bozztv.com/crotvhd/index.m3u8

Was it ever implemented to let us add custom referers to playlists? I can see where it will let me enter a User agent but can't find the referer section. Is the solution to import a file with it already integrated rather than just adding a playlist via URL and providing the details later? Thanks


Add fake-gcs-server in CI for integration test

https://github.com/fsouza/fake-gcs-server

i would like to try this.

i would like to try this.

Thanks a lot!
We are working with fake-gcs-server to address https://github.com/fsouza/fake-gcs-server/issues/1443 first.


adding a footer to website

It's for Hacktoberfest.

I want to work on this. Please assign me this.

it's done.


Bugfix for notes not being hidden reliably

I noticed that notes are not hidden properly all the time. I have read through the source code and have actually not found any code that would hide the notes.

I have now also removed the getting started guide from this PR

Should be fixed now

Let's ignore that I just removed one too many lines

Okay so there are notes in this presentation, and they seem to work. Can you confirm?
https://impress.js.org/examples/classic-slides/

Yeah it is hidden from the CSS file. I felt like it should be hidden from JS.

This is another thing that should be in impress-common.css. But definitely CSS, not JS.

I agree with @henrikingo here. In particular, adding display: none directly to the element's style makes it unnecessarily hard in case you actually want to show notes. For instance, what I really like about Google's io-2012-slides is that they allow you not only to see the presenter notes in the presenter mode, but also by pressing the hotkey 'P' anywhere in the presentation. See for instance this example and press 'P'. However, this would require a display: block !important when hiding is done by JavaScript instead of just using CSS.

I see that, I'll close the PR


Add simplified samples for serving LLMs with Ray

Description
This PR adds simplified samples for serving LLMs with Ray
Tasks

[X] The contributing guide has been read and followed.
[X] The samples added / modified have been fully tested.
[X] Workflow files have been added / modified, if applicable.
[X] Region tags have been properly added, if new samples.
[X] All dependencies are set to up-to-date versions, as applicable.

@andrewsykim lemme know when that PR is good for review

@andrewsykim lemme know when that PR is good for review

Feel free to review it now


Custom Video Controls

This might be helpful
Source Files

https://jsfiddle.net/jimcute/34o7pza2/


Upgrade "Other" time zone types to the main division

Instead of .Other.UTC or .Other.Default please consider moving these items one level up in the hierarchy. This would result in plain .UTC and .Default respectively.
The items are too important to be stuffed away under "Other"

TimeZoneConvertible is now the main protocol and expose GMT/Default/System/Local at root level.
For example you can type TimeZones.GMT.
Fixed in commit https://github.com/malcommac/SwiftDate/commit/15395a429e2901f325a7b0884a91cf1e6af18cac


[ET-202] Check for SAML enablement during reconfigure

This change adds a sanity check to make sure we don't try and enable LDAP at the same time that SAML is enabled. It maps to the same sanity check we do during chef-manage-ctl reconfigure.
@chef/chef-server-maintainers

Looks good to me: 👍

NB.  You may want to put a similar check in chef-manage?

Right -- this should have already been taken care of, I think: here


Error building an Envoy Docker image

Hi,
I wanted to test code modifications I made to envoy.
In order to build Envoy image I found the below guide:
https://www.envoyproxy.io/docs/envoy/latest/start/building/local_docker_build
Before following the guide with the code modifications, I first wanted to see that I can successfully build the newest tag of envoy (v1.28.0).
I cloned envoy repo, switched to v1.28.0 tag and followed the above guide.
I encountered the following error:

According to the guide the command should run as root but the error describes the root being the issue.
How can I proceed from here?
Thanks!

You might find this comment useful https://github.com/envoyproxy/envoy/issues/28670#issuecomment-1657185156
where you would update ./WORKSPACE file to replace envoy_dependencies_extra() with envoy_dependencies_extra(ignore_root_user_error=True)

Hi @suniltheta ,
Thanks it solved the issue.
Will the above work around be part of the main code base?

It won't be. Envoy's recommendation is to build it as non-root user. So it is encouraged to setup your build system to run as non-root user.

I see, thanks.
@suniltheta , sorry to bother but I have another question.
According to the below guide, it is not clear how I can create a docker image of Envoy with costum tag:
https://www.envoyproxy.io/docs/envoy/latest/start/building/local_docker_build
Do  you know by any chance, how it can be done?


Add swagger docs metadata

Per our discussion I added real and very helpful Swagger doc metadata updates. I didn't add any endpoint Joi schema updates only helpful description fields at the document level, tag level, and endpoint level including helpful scope information. This is what it looks like in the live Swagger UI available at /documentation when deployed: https://www.dropbox.com/s/33wabeyxu446rhf/Screenshot 2018-05-30 11.55.16.png?dl=0

Thanks for the quick feedback Jedireza.
Whoops, corrected the mixed spaces and tabs issue.
Re: Displaying the permission scope up-front in docs I think it's pretty important that API users, especially front-end devs who are hooking up endpoints to FE code be able to get all the information they need around the endpoints from the swagger docs alone. The docs are a black box contract, like an interface, they shouldn't be expected to have to dig into the Node route code and models to figure out why a call isn't returning as expected due to a scope issue.
I don't think there is an easy way to make it dynamic without a lot of extra code since 'root' scope is buried in pre:, etc. In my opinion it's important enough to keep but your call, I can remove it.

BTW Aqua is amazing as a user/dev portal boilerplate built on top of Frame. It appears to have  significantly more adoption and interest based on stars/forks then Frame as folks want an all-in-one boilerplate solution for both back-end and front-end.  I am in that boat and am using it for a major project but it sucks to see it archived.
I've been working with the hapi-17-async-await branch, added the same Swagger docs updates, several bug fixes, I'd like to push some updates to it and keep that project alive. Think it's worthwhile?

I don't think there is an easy way to make it dynamic without a lot of extra code since 'root' scope is buried in pre:, etc. In my opinion it's important enough to keep but your call, I can remove it.

Ok, let's leave it. I wonder if lout would be better and more hapi friendly in this (scope) regard.

Aqua is amazing ... it sucks to see it archived

Thanks, I'm glad you found it useful. It was a hard decision to archive it, but it's a pretty significant time sink and while I got a PR every now and then, I was the sole maintainer.

I've been working with the hapi-17-async-await branch, added the same Swagger docs updates, several bug fixes, I'd like to push some updates to it and keep that project alive. Think it's worthwhile?

That's rad! I wish I had time to focus on incorporating your changes there.

Awesome thanks!
I checked out lout but it looked pretty basic compared to what Swagger offers out of the box. With Swagger's interactive docs you don't have to fiddle with Postman and it's got enough polish in  boilerplate docs UI that it can be easily integrated in client facing projects. The V3 version of Swagger UI was a complete re-write from Backbone to React as well and looks and performs a lot better then the current v2 in Hapi-Swagger.
Swagger was actually donated to Apache and renamed to "OpenAPI Specification" for v3 not too long ago so I think will only get more popular.  There is also a lot of nice open source tooling around the swagger.json file not just documentation generation, like using it to automatically stub out SDKs in multiple languages against your API. I like that Swagger's ecosystem is language agnostic so can be used easily across projects that way.
Re: Aqua, why not leave it open and allow the pull requests to pile up, that's what everyone else does ;)
Anyways, thanks for the efforts, i'll continue to support how I can!


Image not displaying

I cannot get any non-ascii image to display. Im not sure what to make of the log file. The thumbnails created in my home directory are working using display and look like they are cropped correctly.
Fedora 25
neofetch-3.1.0-1
terminator-1.91-2
w3m-img-0.5.3-30
w3m-0.5.3-30
ImageMagick-<IP_ADDRESS>-6
ImageMagick-libs-<IP_ADDRESS>-6
xdotool-3.20150503.1-2

Config -> https://pastebin.com/c5v4wUXi
Log -> https://pastebin.com/LqbdXEPS.

Do images work in ranger?

No. Also tried using just w3m xkcd.com in terminator and it doesn't display images.
With xterm both ranger/neofetch seems to work.

This isn't a neofetch issue then. It's an issue with your system. Look into disabling terminal transparency, it might fix the issue.

Just for information purposes: I got same issue on ArchLinux/xfce4-terminal. I also use transparency and disabled it but it didn't help.


Bug: kook适配器ws意外断开后重连未检验是否成功

根据kook文档，ws连接gateway后应在6s内收到hello包。在某些场景下ws意外断开后，重连未能收到hello，此时应当拒绝并回到重连逻辑。否则此时BOT将处于假死状态，无法收到任何事件。
{"id":46005,"type":"warn","level":2,"name":"adapter","meta":{"paths":["uj5vdr"]},"content":"failed to connect to wss://ws.kaiheila.cn/gateway, code: 1006, will retry in 5s...","timestamp":1732749580475}
{"id":46012,"type":"info","level":2,"name":"adapter","meta":{"paths":["uj5vdr"]},"content":"connect to server: \u001b[38;5;44mwss://ws.kaiheila.cn/gateway\u001b[0m","timestamp":1732749588339}
{"id":46055,"type":"debug","level":3,"name":"kook","meta":{"paths":["uj5vdr"]},"content":"[receive] { s: \u001b[33m3\u001b[39m }","timestamp":1732749618609}
{"id":46088,"type":"debug","level":3,"name":"kook","meta":{"paths":["uj5vdr"]},"content":"[receive] { s: \u001b[33m3\u001b[39m }","timestamp":1732749648609}

duplicate of #283


Add a bridge icon to the side menu

https://www.figma.com/file/LteN0e1tygpYgzjQmCPZCu/Bridges-Landing?node-id=55%3A2

checked


How to get user info after authenticate() in v3.0?

Env: NodeJS 7.9, Egg.js
In ver2, getAccessToken would callback and pass parameter user or userid ,which can be access through req.user.id (in egg.js, it is ctx.request.user.id).
But in v3.0, the document says token.client and token.user can carry additional properties that will be ignored by oauth2-server. So how can I get user info in v3.0 after authentication?
In Egg.js, I cannot get context object in model file. I have tried saving user info in oauth model getAccessToken() by Application.createAnonymousContext() but it seems not work.
Thanks.
Troyeagle

As documented here https://oauth2-server.readthedocs.io/en/latest/api/oauth2-server.html#authenticate-request-response-options-callback and already answered in https://github.com/oauthjs/node-oauth2-server/issues/349 and https://github.com/oauthjs/node-oauth2-server/issues/327 you can obtain user info using res.locals.oauth.token.user
Example:
const userId = res.locals.oauth.token.user.id;
// get user using Bookshelfjs for example
const user = await User.where({ id: userId }).fetchFull();


Correct load_domains behavior for skipping rows

Ignore empty lines and only ignore a "header" if it's the first entry in the file.

Looks good to me.  Thanks @ericlaw1979!


DO dates: use calendar rather than 3 fields

at the moment
Start date
Start month
Start year
should be substitute with calendar input, header: Start date
and the equivalent for end date

could a calendar be used also for study, start month/start year?


lots of spurious log statements about duplicate appengine-web.xmls.

(Please ensure you are running the latest version of Cloud Tools for IntelliJ with Help > Check for Updates.)

Cloud Tools for IntelliJ version: master

What did you do?
clone and import https://github.com/patflynn/appengine-potpourri/tree/cloud-sdk-refactor
look in idea.log and find hundreds of statements like so:
2018-03-01 13:43:29,304 [ 937918]   WARN - .DefaultAppEngineAssetProvider - The following appengine-web.xml's were found: [file:///usr/local/google/home/paflynn/samples/appengine-potpourri/endpoints-frontend/build/exploded-endpoints-frontend/WEB-INF/appengine-web.xml, file:///usr/local/google/home/paflynn/samples/appengine-potpourri/endpoints-frontend/src/main/webapp/WEB-INF/appengine-web.xml]
Two things that stand out:

why is it finding build output files?
why so many logging statements saying the same thing?

regarding #2:
This log statement is printed each time the appengine-web.xml is read. I believe that each time you open up the deployment dialog the appengine-web.xml is read (just as one example). Its still possible there are spurious or redundant reads. Will need to investigate.
#1 sounds like a bug

on second look, I was wrong about one thing (that the log is printed every time the appengine-web.xml is read):
it seems like #1 is causing #2 (extra log statements). That log will get printed whenever the appengine-web.xml is located and more than 1 is returned. If its not excluding the build output, it seems that it will print many more times than it should

@patflynn could check out one thing please:
for the module that is printing all those log statements, could you go into the Module Settings and see if your build folder is excluded from the module content root (as it is on the right side of this screenshot):

Ah actually that's a good point. This project has both a gradle and maven build file so it has both output directories.
It still seems like we should be looking for the appengine-web.xml in the src roots not the content root.


Webdriver + docker => Error: not found: java

What are you trying to achieve?
I am trying to run tests using Codecept/Webdriver utilizing the codeception/codeceptjs docker image. Testing using both chrome and firefox.
What do you get instead?
Whenever I run my tests, the first test to execute errors out with the following:
✖ "before all" hook: codeceptjs.beforeSuite for "User logs in with valid username & password" in 812ms              Error: not found: java

This happens regardless which test executes first (tested by commenting out all but one test).
Details
This is due to the docker image not having a java runtime installed. I am able to test and fix the issue by installing a jre in the container on startup.
Obviously this can be fixed by creating your own docker image using the one you guys provide as a base but it might make sense to include a JRE in the base image as well, or at least provide a separate image on a specific tag that does contain it.
Having to manage your own Docker image and keep it up to date when you release new versions can be a tedious task so it would be a lot more convenient if there was a pre-baked image that had everything needed to run Webdriver based tests.
Btw, loving the framework!
Thanks!

@jbellmore so I created a PR to install java. Hope this helps :)


ValueError: Latitude must be in the [-90; 90] range.

I tried to run the code below
gdf = gpd.read_file('geolife_small.gpkg')
gdf
tc = mpd.TrajectoryCollection(gdf, 'trajectory_id', t='t')

my_traj = tc.trajectories[0]
my_traj
detector = mpd.TrajectoryStopDetector(my_traj)
stop_time_ranges = detector.get_stop_time_ranges(min_duration=timedelta(seconds=60), max_diameter=100)

Essentially following the tutorial on stop detection with single trajectory.
But I got ValueError: Latitude must be in the [-90; 90] range.
This is not an issue when the longitude value is less than 90.

Yes,  this is a known issue which I've fixed recently https://github.com/movingpandas/movingpandas/issues/336
Please stay tuned for the new release in the upcoming days

Great, thanks so much. Looking forward


Language Translator

Resolves issue #166. @codervivek5 please review
I have added this feature in all the pages
https://user-images.githubusercontent.com/91181981/225067566-1a0d947b-18e1-4da1-863e-0b165704345f.mp4

@codervivek5 Hey, I need to open a new PR. Can you please merge this one

kindly solve merge conflict

@codervivek5 done


Issue with k8s.io/docs/setup/production-environment/container-runtimes/

This is a Bug Report

Problem:
When running the "systemctl start kubelet" it exits with an error code, even after following the kubernetes installation process.
https://kubernetes.io/docs/setup/production-environment/container-runtimes/
Proposed Solution:
it-gcp-rh2_issues.txt
it-gcp-rh2.txt
-- The start-up result is done.
Oct 30 18:21:56 it-gcp-rh2 kubelet[30272]: F1030 18:21:56.567801   30272 server.go:196] failed to load Kubelet config file /var/lib/kubelet/config.yaml, error failed to read kubelet config file "/var/lib/kubelet/config.yaml", error: open /var/lib/kubelet/config.yaml: no such file or directory
Oct 30 18:21:56 it-gcp-rh2 systemd[1]: kubelet.service: Main process exited, code=exited, status=255/n/a
The file does not exist or has not been created by the application at least from the log entry from journalctl -xe
This can also be found on http://it-gcp-rh2.itcloudsec.com/docs/it-gcp-rh2.txt and it-gcp-rh2_issues.txt (they have been uploaded for your review running on a docker container).
root@it-gcp-rh2:/var/lib# apt-get install kubelet
Reading package lists... Done
Building dependency tree
Reading state information... Done
kubelet is already the newest version (1.16.2-00).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Page to Update:
https://kubernetes.io/...

root@it-gcp-rh2:/var/lib# kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T19:18:23Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}

Please review the attachments and website

On lots of Kubernetes clusters systemctl start kubelet does start OK. The page at https://kubernetes.io/docs/setup/production-environment/container-runtimes/ covers a specific step for setting up a new Node. I'm not clear on which part of that page might not be right.
@tdsan if you're looking for help, check Stack Overflow
You can also post your question on the Kubernetes Slack or the Discuss Kubernetes forum.
I think this issue is best characterized as a support request. If I have misunderstood, please reply with more detail about what's wrong on that page, or the fix you have in mind.
/triage support


Fix issue 30: Update README

This pr addresses Issue #30 by updating the README file to reflect the latest changes and provide clear instructions for users.

How can see the Preview?

How can I see the Preview?

@Yeasir0032 , I exactly don't know how to do that, but you can do one thing. create a branch in your repo and merge the pr to that branch and after preview merge it to your main branch.
or I can provide ss to preview.

Please provide a screenshot

@Yeasir0032


Move java modules to their own repos: wechaty/java-xxx

In order to make our repo clean and everything to be straightforward, let's plan to separate the following functionalities to different modules in the following repositories:

java-wechaty-puppet
java-wechaty-puppet-hostie
java-wechaty-puppet-mock
java-memory-card
java-file-box

We can develop the above modules in our main java-wechaty at first for convenience, and separate them out when they are ready to be separated.
To be discussed & separated.

主要现在 mvn 的管理不太灵活，每次发包的成本比较高。现在处于快速迭代的时候建议先暂时合并一起开发。等版本稳定以后，需要拆开减少耦合和提高编译速度。

Ok. It's reasonable that we keep it simple for now to get the maximum flexibility and convenience.
Could you please write an simple documentation for the publication process of our Java Wechaty package?
I'd like to see if we can make it automatically by adding some DevOps settings.


Bug: return nothing from sub folder

What happened?
I just want to use data view from sub folder but seems not work.
I am sure there are some articles in my sub folder but it displays nothing here.
So how do I get the right results?
talble
from "folder/sub folder"

DQL
talble
from "folder/sub folder"

JS
No response
Dataview Version
0.4.26
Obsidian Version
0.14.6
OS
Windows

Two points:

table, not talble
in your version you still need to add at least one column name/field to the table

TABLE field
FROM "folder/subfolder"

If you don't want other field, just use a LIST query

LIST
FROM "folder/subfolder"

@mnvwvnm my mistake, thanks for your help.


mc-lab-meetings - guide

My idea was to link to this guide from the content/pages/guide.rst or to keep it unlisted and pass the link around mc-to-mc.

This looks good. Just adjust the length of the header underlines to match the text and add the meta data. Thanks!
You can link to the page on the guide like so:
`check out the MC guide <{filename}/pages/mc-lab-meetings.rst>`_


This works insanely good

Really good job! Works so much better then wkhtmltopdf
I would love to migrate to this with https://github.com/loeffel-io/mail-downloader.

For integration it would be great to create the file myself, for instance:

	orcgen.Generate(
		htmlBody,
		orcgen.PDFConfig{
			Landscape:         false,
			PrintBackground:   true,
			PreferCSSPageSize: true,
		}
	)

should return the file bytes and the error to create the file myself with the permissions i want etc

With wkhtmltopdf i was able to disable javascript - is this possible?

I would love to do the download of the browser before i start converting pdfs, because this results in:

322 / 322 [----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->] 100.00% 47 p/sProcessing messages...
5 / 322 [--->______________________________________________________________________________________________________________________________________________________________________________________________________] 1.55% 78 p/s[launcher.Browser]2024/11/28 19:12:09 Download: https://storage.googleapis.com/chromium-browser-snapshots/Mac_Arm/1294824/chrome-mac.zip
5 / 322 [--->______________________________________________________________________________________________________________________________________________________________________________________________________] 1.55% 78 p/s[launcher.Browser]2024/11/28 19:12:09 Progress: 00%
5 / 322 [--->______________________________________________________________________________________________________________________________________________________________________________________________________] 1.55% 68 p/s[launcher.Browser]2024/11/28 19:12:10 Progress: 07%

German umlauts prints as Sie mÃ¶cht. Would be great to have UTF-8 (?)

Thank you!

Thanks for the feedback!

It's already possible:

	fileinfo, err = orcgen.NewHandler(orcgen.PDFConfig{
		PrintBackground: true,
		PageRanges:      "1,2",
	}).GenerateFile(page)

	if err == nil {
		filename := "google.pdf"
		fileinfo.Output(getName(filename))
		fmt.Printf("%s generated successfully\n", filename)
	}

FileInfo struct:
type Fileinfo struct {
	File     []byte
	Filesize int
}

2, 3: I think you can disable Javascript and configure your browser path, but I would have to take a look at go-rod API
For this, I would have to do some changes in the Webdrive file. Maybe I can create an interface and let it be extendable, but I'll have to take a more detailed look.

You can take a look at the examples_test.go
	page := wd.UrlToPage("https://google.com")
	wd.WaitLoad(page)
	page.MustInsertText("github orcgen package golang").Keyboard.Type(input.Enter)
	wd.WaitLoad(page)

This uses the webdriver directly. If you need to change JS and browser settings, I think it's the way to go. I'll problably add these options in the webdriver config later.
But for now, there's a simpler way to get the file bytes:
	fileinfo, err = orcgen.ConvertWebpage(
		pdf.New().SetFullPage(true), "https://www.x.com",
	)

no i already have the file bytes - i just want to convert my html bytes to the pdf bytes

just want to fill the page param:  return pdfGen.SetFullPage(true).GenerateFile(page somehow from my html bytes)

(and want to have multi page pdf like here: https://github.com/luabagg/orcgen/issues/2)

Ok sorry, got it: orcgen.ConvertHTML(pdfGen.SetFullPage(true), htmlBody)
the api could be a bit easier imo but its just amazing
also german umlauts somehow works - maybe its only for some emails
Thank you!!

Looks like fileInfo is nil in some edge case
49 / 322 [------------------------------>__________________________________________________________________________________________________________________________________________________________________________] 15.22% 4 p/spanic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x100bcc700]
goroutine 1 [running]:
main.main()
/Users/loeffel/go/src/github.com/loeffel-io/mail-downloader/main.go:180 +0xf50

while the file bytes is not 0 - sure you capture any err in the GenerateHTML function? maybe this happens when the timeout of the webdriver is reached
sorry for all the spam

It's ok
I need more info about where the memory error happened:

The handler is pretty simple, but you should check for errors.

All good, found the issue - was my fault.
Now it would be really great to predownload the browser.
Then the migration would be done ❤

Sometimes this panics btw, would be good to handle this error
panic: context deadline exceeded
goroutine 1 [running]:
github.com/go-rod/rod/lib/utils.init.func2({0x1016cc3a0?, 0x101ca3980?})
/Users/loeffel/go/pkg/mod/github.com/go-rod/rod@v0.116.0/lib/utils/utils.go:69 +0x24
github.com/luabagg/orcgen/v2/pkg/webdriver.(*WebDriver).Connect.New.(*Browser).WithPanic.genE.func1({0x14000321790?, 0x140021e0570?, 0x502f?})
/Users/loeffel/go/pkg/mod/github.com/go-rod/rod@v0.116.0/must.go:36 +0x70
github.com/go-rod/rod.(*Page).MustWaitLoad(0x14002114370)
/Users/loeffel/go/pkg/mod/github.com/go-rod/rod@v0.116.0/must.go:451 +0x88
github.com/luabagg/orcgen/v2/pkg/webdriver.(*WebDriver).WaitLoad(0x14001080600, 0x14000af0a00?)
/Users/loeffel/go/pkg/mod/github.com/luabagg/orcgen/v2@v2.0.2/pkg/webdriver/webdriver.go:86 +0x30
github.com/luabagg/orcgen/v2.ConvertHTML[...]({0x101768e00?, 0x1400020ca90}, {0x14000af0a00, 0x502f, 0x5500})
/Users/loeffel/go/pkg/mod/github.com/luabagg/orcgen/v2@v2.0.2/orcgen.go:73 +0xbc
main.(*mail).generatePdf(0x14000218b40, {0x101768e00, 0x1400020ca90})
/Users/loeffel/go/src/github.com/loeffel-io/mail-downloader/mail.go:131 +0x158
main.main()
/Users/loeffel/go/src/github.com/loeffel-io/mail-downloader/main.go:178 +0x101c

Hey, I will be really busy this following weeks - feel free to contribute if you need something faster


Toc updates for accessibility, part 1

Update a variety of TOC nodes to remove parent nodes with both content and children.
This is trying an experiment in the framework to see if it provides a better navigation experience.

This ended up bigger than I thought it would be. (The LINQ section had a lot more updates than I expected).  Here's a summary of the kinds of changes made:

Many of the "parent" toc nodes with children were portal pages, without much usable content. Those were removed and the content redirected to the first child, or occasionally the parent.
Some parent toc nodes provides a good overview or introductory topic to the section. In those cases, the TOC was updated to add a new TOC text and make the node a child node.
Some child sections had a small set of nodes. Those children were promoted up one level.

To clean links, when a child node had a single "see also" link to the parent, that link was removed.

This was broken into several PRs, and each of those has been merged.  Closing.


Auto assign issues to org project

Add new GitHub Action that automatically adds new issues to the org-level Zarf Project

grr, wrong base branch...


Fix delete PR doc gh action

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


[SILGen] Fix a couple bugs with wrapped parameters in initializers.

Attempting to use wrapped parameters in initializers would lead to a SILGen crash or a bogus error message because the local auxiliary decls for wrapped parameters were never emitted. Fix this by recording local auxiliary decls when the parameter is emitted, and emit those auxiliary decls before the body statements in StmtEmitter::visitBraceStmt.
Resolves: rdar://81560448, SR-15033

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please test source compatibility

Source compatibility failures look like infrastructure issues; there are no project failures
@swift-ci please smoke test Linux platform


Android Basics: Implement Fragment Instruction Typo

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-fragments-navigation-component?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-3-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-fragments-navigation-component#4
In which task and step of the codelab can this issue be found?
Step 5
Describe the problem
The instruction 3 of this Step 5 says:

To implement onCreate(), simply call setHasOptionsMenu().

That doesn't make sense, if I read it literally it says to implement onCreate() method "simply" should I call "setHasOptionsMenu"?. Here is a typo or write something like: To implement the AppBar or menu buttons you must call setHasOptionsMenu in the onCreate.
Otherwise the reading makes it look like "setHasOptionsMenu function" is needed to "implement the onCreate method".

@Tohure
Thank you so much for reporting this issue.  We updated the instructions.
This is fixed and will be published soon.

@Tohure
Thank you so much for reporting this issue.  We updated the instructions.
This is fixed and will be published soon.

Your welcome

Your welcome


ItemControl not binding

Describe the bug
ItemControl in XAML MVVM not binding -- could be my error but I can't see it.
To Reproduce
Using Avalonia 11.0.5 and Visual Studio' 2022 Preview 17.8.0 Preview 5.0 on Windows  11
Use this zip'd project file and build it.  Also the XAML does not display.
https://www.dropbox.com/scl/fi/pj1xopwgujxzquqd2ce71/AvaloniaNumberApp.zip?rlkey=5aeqh6lxd4sj4mouxlndkm5qb&dl=0
Error I'm seeing is:
Severity	Code	Description	Project	File	Line	Suppression State	Details
Error	AVLN:0004	Unable to find a setter that allows multiple assignments to the property Content of type Avalonia.Controls:Avalonia.Controls.ContentControl Line 1, position 2.	AvaloniaNumberApp	C:\Users\mdbla\source\repos\AvaloniaNumberApp\Views\MainWindow.axaml	1
Expected behavior
Successful compile and visual display of XAML
Screenshots
Screenshots N/A
Additional context
N/A
AvaloniaNumberApp.zip

Thanks for seeingthat.  Having fixed that (openai.com is helping write this thing) I am still getting the binding error....this is reminding me of C++ hell where you can't see what it's trying to do.    It's saying it can't find ""   What it doesn't say is what exactly it is looking for. (e.g. Can't find Digits.set() or Digits.set(value) type error.
But I've got this namespace reference:
clr-namespace:AvaloniaNumberApp.ViewModels
And in MainWIndowViewModels.cs it has what seems to be the correct namespace reference and set/get for Digits
namespace AvaloniaNumberApp.ViewModels
{
public class MainWindowViewModel : ViewModelBase
{
public ObservableCollection Digits { get; set; }
Severity	Code	Description	Project	File	Line	Suppression State	Details
Error	AVLN:0004	Unable to find suitable setter or adder for property Items of type Avalonia.Controls:Avalonia.Controls.ItemsControl for argument Avalonia.Markup.Xaml:Avalonia.Markup.Xaml.MarkupExtensions.CompiledBindingExtension, available setter parameter lists are:
System.Object
System.Object Line 10, position 17.	AvaloniaNumberApp	C:\Users\mdbla\source\repos\AvaloniaNumberApp\Views\MainWindow.axaml	10

Several issues to fix and make the app start to run.

As described in error message,  "Unable to find suitable setter or adder for property Items of type", so you need to bind to ItemsSource instead of Items.

<ItemsControl ItemsSource="{Binding Digits}">

Avalonia by default enabled compile binding, which enables strong typed binding in xaml.
So you need to set the x:DataType="local:MainWindowViewModel"

Also you are trying to bind to DataContext of parent control, which also requires a type casting. like below.
<Button
    Command="{Binding ((local:MainWindowViewModel)DataContext).IncreaseCommand, RelativeSource={RelativeSource AncestorType=Window}}"
    CommandParameter="{Binding}"
    Content="^"/>

You cannot blindly trust a chat bot, sorry to say.
Also this is not an avalonian bug. So please open a Q&A instead of a bug report. Or join us on Telegram.
Thx.

Well the chatbot knows a lot more about it than I do and I'm trying to teach it too.
I've found the tutorials to be useless.
So I really appreciate the help here.
Now with the  MainWindow.axaml with those changes I'm getting this error -- which I maintain is not specific enough.  It's not line#1 and not  position #2 either.  When I remove the x.DataType I get an appropriate error like this which is more useful
Error	AVLN:0004	Cannot parse a compiled binding without an explicit x:DataType directive to give a starting data type for bindings. Line 10, position 17.	AvaloniaNumberApp	C:\Users\mdbla\source\repos\AvaloniaNumberApp\Views\MainWindow.axaml	10
And once I put in the xDataType I get this incorrect line# and position#
Error	AXN0002	Unable to resolve type x from namespace https://github.com/avaloniaui Line 1, position 2.	AvaloniaNumberApp	C:\Users\mdbla\source\repos\AvaloniaNumberApp\CSC	1

<Window.DataTemplates>
local:MainWindowViewModel/
</Window.DataTemplates>

<ItemsControl.ItemTemplate>

</ItemsControl.ItemTemplate>

Please start here https://github.com/AvaloniaUI/Avalonia.Samples
Your project seems to be a kinda broken atm. We cannot fix all of those issues for you. You need to learn the fundamentals of Avalonia and MVVM first. It's really better if you know what you or the bot is doing. Once you are used to it, you can make start hacking.

FYI...If I add this it now  compiles and displays correctly.  Not desirable but I can't figure out how to get it compiled without it.
x:CompileBindings="false"

Make sure to read docs about compiled bindings please.

This project (still in work)
https://www.dropbox.com/scl/fi/pj1xopwgujxzquqd2ce71/AvaloniaNumberApp.zip?rlkey=5aeqh6lxd4sj4mouxlndkm5qb&dl=0
Does not compile without setting this in MainWindow.axaml  x:CompileBindings="false"
If  you set this to "true" it gets an error which I can't figure out how to fix.
Mike
On Sunday, October 29, 2023 at 02:56:49 PM CDT, thevortexcloud<EMAIL_ADDRESS>wrote:

Well the chatbot knows a lot more about it than I do and I'm trying to teach it too.
I've found the tutorials to be useless.
The chatbot as you are seeing is likely based on old examples, many of which probably wont work anymore. Avalonia has had a lot of subtle breaking changes since v11.0 was released. Using an AI chatbot for this sort of things is also not a good idea. As you have also seen it can generate completely invalid code. Which you did you may not catch if you don't not know what you are doing.
As for the tutorials. I agree that some of them are very complicated and skip over some information, but can you please explain what exactly you problem you found so someone can fix it?
Also in many cases you can just read WPF's documentation and examples. About ~60% of it applies to Avalonia due to how similar they are.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

That's exactly what I said, if you need compile binding, you need to set the x:DataType as in my screenshot, and add type casting in button binding.

@mdblack98 I'll make a Q&A from this thread, as it is not an Avalonia bug. You are still welcome to ask if you need more help. For quick questions try also our chat https://t.me/Avalonia


Create Binding - Unable to extrace resource containers

I've managed to get the GCP broker fully working in other projects, however in this instance while I can create ServiceInstance resources OK, attempting to create a ServiceBinding gives forbidden errors (This was a brand new project/cluster)
SC version: 0.1.1 darwin/amd64 (Built from master)
Kubectl version:
Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.1", GitCommit:"b1b29978270dc22fecc592ac55d903350454310a", GitTreeState:"clean", BuildDate:"2018-07-17T18:53:20Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"11+", GitVersion:"v1.11.5-gke.5", GitCommit:"9aba9c1237d9d2347bef28652b93b1cba3aca6d8", GitTreeState:"clean", BuildDate:"2018-12-11T02:36:50Z", GoVersion:"go1.10.3b4", Compiler:"gc", Platform:"linux/amd64"}

(Gcloud config is set with the right project and zone corresponding to the Kubernetes master for good measure. gcloud auth login and gcloud auth application-default login have both been completed.)
Reproduction steps:

Create admin role binding:
kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin<EMAIL_ADDRESS>

sc check -- Passed

sc install -- Passed

sc add-gcp-broker:

using project:  service-catalog-228316
enabling a GCP API: servicebroker.googleapis.com
enabling a GCP API: bigquery-json.googleapis.com
enabling a GCP API: bigtableadmin.googleapis.com
enabling a GCP API: ml.googleapis.com
enabling a GCP API: pubsub.googleapis.com
enabling a GCP API: spanner.googleapis.com
enabling a GCP API: sqladmin.googleapis.com
enabling a GCP API: storage-api.googleapis.com
enabled required APIs:
  servicebroker.googleapis.com
  bigquery-json.googleapis.com
  bigtableadmin.googleapis.com
  ml.googleapis.com
  pubsub.googleapis.com
  spanner.googleapis.com
  sqladmin.googleapis.com
  storage-api.googleapis.com
generated the key at:  /tmp/service-catalog-gcp010694066/key.json
The Service Broker has been added successfully.

Create a ServiceInstance, for example the below:

apiVersion: servicecatalog.k8s.io/v1beta1
kind: ServiceInstance
metadata:
  name: my-example-bucket
spec:
  clusterServiceClassExternalName: cloud-storage
  clusterServicePlanExternalName: beta
  parameters:
    bucketId: my-example-bucket
    location: EU
    versioning:
      enabled: true

Bucket is created in GCP, svcat get instance shows it in a Ready state

Try to create a ServiceBinding to that Instance, with the below:

apiVersion: servicecatalog.k8s.io/v1beta1
kind: ServiceBinding
metadata:
  name: storage-binding
spec:
  instanceRef:
    name: my-example-bucket
  parameters:
    serviceAccount: storage-user
    createServiceAccount: true
    roles:
      - roles/storage.admin

The binding enters a Failed state, describing it shows the below message:

  Status:      Failed - Bind call failed: operation "projects/956662776668/operations/ad3a2b12-153a-11e9-862a-0a580a34001a/1547167738169839785" failed: generic::internal: operation projects/956662776668/operations/ad3a2b12-153a-11e9-862a-0a580a34001a/1547167738169839785 create binding deployment failed: generic::invalid_argument: Operation "operation-1547167739010-57f240f7ddbd1-ec2331d6-ee5d7fdb" failed with
               : [{"code":"RESOURCE_ERROR","location":"/deployments/bfac2d24a-7afc-4124-a52f-e46945778ee2/resources/service-account","message":"{\"ResourceType\":\"iam.v1.serviceAccount\",\"ResourceErrorCode\":\"403\",\"ResourceErrorMessage\":{\"code\":403,\"message\":\"Unable to extract resource containers.\",\"status\":\"PERMISSION_DENIED\",\"details\":[],\"statusMessage\":\"Forbidden\",\"requestPath\":\"https://iam.googleapis.com/v1/projects/service-catalog-228300/serviceAccounts/svct-demo-user@service-catalog-228300.iam.gserviceaccount.com\",\"httpMethod\":\"GET\"}}"}] @ 2019-01-11 00:49:16 +0000 UTC

I can see the corresponding error in the API metrics for google.iam.admin.v1.IAM.GetServiceAccount but it's not clear to me which permissions are actually incorrect
I can see similar errors in the google oauth pod as per #213, unsure if related

Hello, this is how I'm making the cloud storage provisioning working :

Even though the sample applications only use a single Google Cloud service, a typical application may use a number of different Google Cloud services.
==> I first create a cloud-iam-service-account instance (a single service account) to  manage the authentication with all Google Cloud services

apiVersion: servicecatalog.k8s.io/v1beta1
kind: ServiceInstance
metadata:
  name: gcp-iam
  namespace: test-deploy
spec:
  # This should match with a SERVICE EXTERNAL NAME
  # in the list of available services.
  clusterServiceClassExternalName: cloud-iam-service-account
  # This should match with a PLAN EXTERNAL NAME
  # in the list of available service plans.
  clusterServicePlanExternalName: beta
  parameters:
    # The service account name length must be between 6 and 30 characters
    accountId: google-cloud-services-sa
    displayName: "A service account used to authenticate with all Google Cloud services"

Then I create the binding for it

apiVersion: servicecatalog.k8s.io/v1beta1
kind: ServiceBinding
metadata:
  name: gcp-iam-binding
  namespace: test-deploy
spec:
  instanceRef:
    name: gcp-iam
  secretName: gcp-credentials

This way you will have a kubernetes secret (gcp-credentials) having the gcp credentials (privateKeyData)

Now let's move to the cloud-storage instance

apiVersion: servicecatalog.k8s.io/v1beta1
kind: ServiceInstance
metadata:
  name: storage-instance
  namespace: test-deploy
spec:
  clusterServiceClassExternalName: cloud-storage
  clusterServicePlanExternalName: beta
  parameters:
    location: europe-west1
    bucketId: bucket-d4dfcc6f-2a3a-4554-9f0c-efc9b5290944

And the binding : note the usage of the previously created service account serviceAccount: google-cloud-services-sa

apiVersion: servicecatalog.k8s.io/v1beta1
kind: ServiceBinding
metadata:
  name: storage-binding
  namespace: test-deploy
spec:
  instanceRef:
    name: storage-instance
  secretName: storage-credentials
  parameters:
    serviceAccount: google-cloud-services-sa
    roles:
      - roles/storage.objectCreator
      - roles/storage.objectViewer
      - roles/storage.admin

When everything is ready, you can deploy your application. 3 steps are required

      volumes:
        # Make the 'gcp-credentials' secret available as volume
        # 'google-cloud-key'.
        - name: google-cloud-key
          secret:
            secretName: gcp-credentials

          volumeMounts:
            # Mount the 'google-cloud-key' volume into the container file
            # system.
            - name: google-cloud-key
              mountPath: /var/secrets/google

          env:
            # Pass the path to the private key JSON file from the mounted volume
            # to the environment variable.
            # the env var name must be GOOGLE_APPLICATION_CREDENTIALS
            - name: "GOOGLE_APPLICATION_CREDENTIALS"
              value: /var/secrets/google/privateKeyData
            # The two environment variables below come from the 'storage-credentials'
            # secret and, together, point at the Cloud Storage Bucket to use.
            # choose the env var name that have been used inside the app
            - name: "GOOGLE_CLOUD_STORAGE_PROJECT_ID"
              valueFrom:
                secretKeyRef:
                  # Use the projectId value from the 'storage-credentials' secret created
                  # as a result of binding to the Storage service instance.
                  name: storage-credentials
                  key: projectId
            # choose the env var name that have been used inside the app
            - name: "GOOGLE_CLOUD_STORAGE_BUCKET_ID"
              valueFrom:
                secretKeyRef:
                  # Use the topicId value from the 'storage-credentials' secret created
                  # as a result of binding to the Storage service instance.
                  name: storage-credentials
                  key: bucketId

This way, you can easily add a pub/sub instance for example and use the same service account with additional roles.

Hope it helps.


Bounty on NDI 5 update

Hello! We'd like to offer a bounty to upgrade this plugin to NDI 5. Specifically, we're interested in the following features:
--IP-based genlock
--GPU acceleration
--UDP-based protocol
We can offer $500.
I know the work is likely worth more, but at the very least I want to let you know there's interest, and thank you for the work.

Hi!
They finally announced NDI 5!!
At first, I really really feel great to hear that you are so interested in me upgrading ofxNDI that you can offer some. :)
As I mentioned in an e-mail for you, I now consider like below;

I will upgrade
I don't want to "promise" any specifications or kind of due date or anything like that about developing ofxNDI
So I'd like to receive your offer as GitHub sponsorship if you can and want to

Just now I received an e-mail from you, and I totally understand what you want me to do and I appreciate that you understanding me.
Thank you again!
Again I will upgrade this addon with or without your kind support so feel free to cost some money or not.

Just wanted to say something here,,,
I of course know that NDI 5 is now available for developers.
But I'm so kinda super busy now that I can't do anything for this addon!!!
I hope I can do in next month..

It's now 2024 - is there any forward progression on this? NDI is becoming more and more important to video workflow and I have a use case that I'd like to use 5 for rather than 4.

Hi, I don't have an opportunity using NDI nowadays so I don't get anything about recent NDI.
There is NDI5 branch on this repository.
https://github.com/nariakiiwatani/ofxNDI/tree/NDI5
It's also a bit outdated but please take a look!

and there are a few fork branches that says NDI5.
https://github.com/nariakiiwatani/ofxNDI/network


DNN-9461: save extension install package file during install process.

This is sub task of Import/Export, so merge the changes into epic branch, and no need merge here.


Tests often hang after #3122

I built a local copy of 0.6.22-SNAPSHOT to give #3122 a spin. I tested it on my main project which has 37 modules, 10 of which build with Scala.JS.
Running tests, I often saw failures and then SBT hanging, seemingly unable to recover from the failures. In one case, the failure was simply
[error] PhantomJS has crashed. Please read the bug reporting guide at
[error] <http://phantomjs.org/bug-reporting.html> and file a bug report.

followed by SBT hanging after the other modules' tests complete.
In another instance the failure looked to be in ScalaJS itself:
java.lang.IllegalStateException: Unknown opcode: 5

  phantomjs://code/phantomjs-launcher9060106815877187942.js:9 in onError

  phantomjs://code/phantomjs-launcher9060106815877187942.js:11 in onError
  file:///tmp/shipreq-sjs-22.sbt/webapp-client-project/target/scala-2.12/webapp-client-project-test-fastopt.js:26478 (in function "handleMessage__T__V")

  phantomjs://code/phantomjs-launcher9060106815877187942.js:13
  file:///tmp/shipreq-sjs-22.sbt/webapp-client-project/target/scala-2.12/webapp-client-project-test-fastopt.js:181656

  phantomjs://code/phantomjs-launcher9060106815877187942.js:13
  file:///tmp/1510141923375-0/comSetup.js:30

  phantomjs://code/phantomjs-launcher9060106815877187942.js:13

followed, again, by hanging.
I ran jstack and uploaded the output here:
https://www.dropbox.com/sh/ouqmuqouqtvoivv/AAAgDaapef7LVPHhJyx6LWgca?dl=0

Thank you for testing this!
I should have seen this coming. Two problems:

New RPC interface does not fail all requests when runner terminates.
Exception handling in the execution context is not good enough (needs to terminate the run).

I have opened #3175 that should fix the hanging. It does not contain anything for the "unknown opcode" issue, but I suspect that this might be a cascading failure: opcodes can be dynamically registered on both ends, so if something get's out of sync because one side fails, this is likely to occur.

@japgolly There is a fix for this in 0.6. If you could try it out, that'd be great.

No worries, let me know and I'll test it out

Now the fix has really been merged in the 0.6.x branch. ;)

Ok so I tried it out.
In terms of speed, master is now on par with 0.6.19 :+1: whilst 0.6.21 as we already know is slower.
In terms of robustness, master mostly worked flawlessly. There was only one issue which was the Unknown opcode: 5 error occurred again. It occurred on the first run, and then over the next 5 runs it didn't occur again.

Thanks for trying it out!
I'll close this issue, then, and open a new one to remember to investigate the Unknown opcode thing.

Fixed in fbe0421aca6e1303912252c95b54ee3359b34a3d.


Build fails with "duplicate value for resource" errors

I'm unable to build and without build instructions I'm just taking stabs with gradlew. The gradlew in the repo came down for me as non-executable, so I'm doing a chmod +x gradlew first, but afterwards ./gradlew assembleDebug is failing with errors like
AAPT: error: duplicate value for resource 'attr/layout_scrollFlags' with config ''.

how should I be building the apk?

Looks like you're trying to build this manually, you should probably use Android Studio

I opened in Android Studio 3.0.1 (on a different computer) and got the same
Error:FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
  Output:  /home/ryan/AndroidStudioProjects/Easy_xkcd/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:717: error: duplicate value for resource 'attr/layout_scrollFlags' with config ''.
  /home/ryan/AndroidStudioProjects/Easy_xkcd/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:717: error: resource previously defined here.
  /home/ryan/AndroidStudioProjects/Easy_xkcd/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:787: error: duplicate value for resource 'attr/layout_collapseMode' with config ''.
  /home/ryan/AndroidStudioProjects/Easy_xkcd/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:787: error: resource previously defined here.
  /home/ryan/AndroidStudioProjects/Easy_xkcd/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:874: error: duplicate value for resource 'attr/layout_anchorGravity' with config ''.
  /home/ryan/AndroidStudioProjects/Easy_xkcd/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:874: error: resource previously defined here.

  Command: /home/ryan/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-linux.jar/9fcbaf90ec36a39e2ad4676892ca3057/aapt2-3.2.1-4818971-linux/aapt2 compile --legacy \
          -o \
          /home/ryan/AndroidStudioProjects/Easy_xkcd/app/build/intermediates/res/merged/debug \
          /home/ryan/AndroidStudioProjects/Easy_xkcd/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml
  Daemon:  AAPT2 aapt2-3.2.1-4818971-linux Daemon #6
  Output:  /home/ryan/.gradle/caches/transforms-1/files-1.1/design-23.1.1.aar/f33fc1fcfb8f4800a7598b0894ea4ba9/res/values/values.xml:15:5-370: AAPT: error: duplicate value for resource 'attr/layout_scrollFlags' with config ''.

  /home/ryan/.gradle/caches/transforms-1/files-1.1/design-23.1.1.aar/f33fc1fcfb8f4800a7598b0894ea4ba9/res/values/values.xml:15:5-370: AAPT: error: resource previously defined here.

  /home/ryan/.gradle/caches/transforms-1/files-1.1/material-1.1.0-alpha01.aar/f146f9e2c9faf73163edffdf23e3de96/res/values/values.xml:206:5-213:95: AAPT: error: duplicate value for resource 'attr/layout_collapseMode' with config ''.

  /home/ryan/.gradle/caches/transforms-1/files-1.1/material-1.1.0-alpha01.aar/f146f9e2c9faf73163edffdf23e3de96/res/values/values.xml:206:5-213:95: AAPT: error: resource previously defined here.

  /home/ryan/.gradle/caches/transforms-1/files-1.1/design-23.1.1.aar/f33fc1fcfb8f4800a7598b0894ea4ba9/res/values/values.xml:19:5-827: AAPT: error: duplicate value for resource 'attr/layout_anchorGravity' with config ''.

  /home/ryan/.gradle/caches/transforms-1/files-1.1/design-23.1.1.aar/f33fc1fcfb8f4800a7598b0894ea4ba9/res/values/values.xml:19:5-827: AAPT: error: resource previously defined here.

  Command: /home/ryan/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-linux.jar/9fcbaf90ec36a39e2ad4676892ca3057/aapt2-3.2.1-4818971-linux/aapt2 compile --legacy \
          -o \
          /home/ryan/AndroidStudioProjects/Easy_xkcd/app/build/intermediates/res/merged/debug \
          /home/ryan/AndroidStudioProjects/Easy_xkcd/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml
  Daemon:  AAPT2 aapt2-3.2.1-4818971-linux Daemon #6

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 4s

Sorry, I'm not really an expert with this stuff, you're probably better off asking for help on stackoverflow for example

Looks like F-Droid has the same problem: https://f-droid.org/wiki/page/de.tap.easy_xkcd/lastbuild_154, but I still don't knoiw what's causing it

Yeah that's what I suspected - I also opened an issue at f-droid, maybe someone comes up with a solution over there

Still can't reproduce (neither on my Windows nor my Linux install), but I tried the fix suggested here Can you try again with the latest commit? Thanks

Yes that fixed it, I needed to tweak the build a little bit, I will send a follow up pull request.


File Fields Not Showing Up in as Filter Option

When creating a dashboard filter, some fields from a file are not appearing as targetable params in the dashboard filter editor unless they are actively being used in the chart. They should be there regardless.

Could not reproduce the issue even when using the exact same files as the user.


onChange not called when the widget was emptied.

Question
Hello everybody,
Im using the react widget on our App, and i'm using it in a component that displays the images uploaded in uploadcare.
Our component rely on the onChange callback to update it's state everytime there's a change in the widget.
Everything works fine until there's no more image in the widget then the onChange callback is not called so we can't update our component state.
I would like to know if it's a missing feature, a bug, if there's a workaround or if it was made like that on purpose.
IMO the onChange should be called everytime even if the widget is emptied by the user.

@ferdinandgoor got same issue here, did you find a way to handle it ?


Brew commands not found after install

After successfully installing brew I try and install something via brew and got this error message
No command 'brew' found, did you mean:
Command 'brec' from package 'bplay' (universe)
Command 'qbrew' from package 'qbrew' (universe)
brew: command not found

Hey @gameslayer, can you try the following please?

export PATH=$HOME/.linuxbrew/bin:$PATH
hash -r (if you're using Bash) or rehash (if you're using Zsh)
Try to run the command again?

@sjackman, maybe we should put instructions of this sort into either the output of the installer or somewhere prominent on the README, since this sort of issue seems to come up fairly frequently.

Ahh thanks so much, I thought you only had to do that if you did it the second way through git :)

No problem! Mind if I close this issue?

Yeah sure issues solved

@sjackman, maybe we should put instructions of this sort into either the output of the installer or somewhere prominent on the README, since this sort of issue seems to come up fairly frequently.

Yes, absolutely. Those instructions are already here: http://linuxbrew.sh/#installation
They should also be added to the end of the installation script. A PR would be most welcome.


[MIG-525] Show phase completion times as part of performance profile.

Is your feature request related to a problem? Please describe.
Logs should display phase completion times so that we can generate reports on which phases need focus for optimization.

Discovered today that Jaeger provides some really awesome statistics for this type of thing as well


efficientnet lite to finetune on custom data

Thank you for this contribution! I want to finetune efficientnet-lite model for my custom data. I followed the steps provided to get weights and convert them into .h5 files for B0-B4.
I am aware of your PR, but I was wondering if I can use the current weights from this repo to finetune models on custom data at this stage?

Hi, yes the finetuning should work the same way as for other models in tf.keras.applications.
I added example in the readme on how to convert and load the weights for fine tuning. For the rest you could follow the Tensorflow tutorial but use the imported model instead of tutorial's MobilenetV2.
Other variants should also be convertible, but you would have to change the model and ckpt flag in the conversion script accordingly.
Let me know if this helps.

Thank you @sebastian-sz for the example. I think I was trying to run it outside of the docker before, my bad! I can confirm that it works on docker. I have a follow up question/doubt that I cannot use this currently on my machine without docker, right? I tried that and it gave me this error:
TypeError: ('Invalid keyword argument: %s', 'lite')
I am assuming that this is because the PR is still not merged by the tensorflow team. Correct me if I'm wrong about any of this!

I think I figured it out. Here are the steps to enable custom data finetuning (if anyone is interested):

In the docker environment - Create a no-top base_model (follow this), then add custom top layers on base_model depending on your needs and number of classes, activations etc. Compile this model with appropriate params and save this model.
This saved model can be used as any other saved model in tf.keras environment using load_model() method.
You will get this: ValueError: Unknown activation function:relu6. To get rid of this, define relu6 as defined in this repo and use it as a CustomObjectScope

@ameyparanjape Glad to hear that you figured it out. I was not aware of the problems with Relu6. Perhaps it should be defined as tf.keras.layers.Relu(6) instead of custom function. I will be looking into that.

@ameyparanjape Sorry to bother you again. I just wanted to mention that:

Thank you for finding this loading error with ValueError: Unknown activation function:relu6
I just pushed changes which should fix it so there is no need to call CustomObjectScope anymore.

All the best!


Add documentation about when an endpoint parameter is required for the Bureau class

Prerequisites

[X] I checked the documentation and made sure this feature does not already exist
[X] I checked the existing issues to make sure this feature has not already been requested

Feature
While looking at Fetch.ai's uAgents framework documentation, we noticed that our agents were not registering on the Almanac Contract.
Looking at this documentation, we noticed that our agents, that were added into a Bureau, were not registering on the Almanac Contract; thus, we could not communicate with the agents at all. We were using the code example in the image below and the documentation specified, and it was not registering on the Almanac Contract.  The endpoint parameter is specified as optional, but in this case, it is required even when the agents have an endpoint parameter specified.

It pops up with this warning when no endpoint is provided for the bureau:
WARNING:  [Risk Analyzer Agent]: No endpoints provided. Skipping registration: Agent won't be reachable.
In the documentation linked above, there should be more clarification on when the endpoint parameter for the Bureau class needs to be specified. The code examples might need to be updated as well. It would also probably be best to also specify when a bureau needs an endpoint parameter in the logs itself.
Perhaps something similar to:
[bureau]: No endpoint parameter specified for the bureau. All agents in this bureau won't be reachable.
Additional Information (Optional)
Was told to create an issue about this by our Fetch.ai mentors.

Great suggestion! Sorry you faced some confusion because of this, but it sounds like you resolved it in the end. Thanks for opening the issue and we'll make sure to get this into the docs and the next release.


Triggering events in bot from external service

Hi,
I'm developing facebook bot based on bot framework and have flowing scenario:

User sends specific keyword to bot
When bot sees this keyword, it knows that user wants to start async process on service provider side
Bot requests service provider to start process
Process can continue for several minutes, during this process, service provider sends callbacks to my api service
While process is running on third party, bot functionality must be limited
As process ends, bot must notify user and again expose full functionality

Currently I'm doing this, using windows service & DB pulling for status (callbacks update statuses in DB) and at the end of the process, proactively (using resumption cookie & windows service) notifying user. If during process user sends something to bot, I first go and check in DB for status and if status is still running, I limit bot functionality and ask user to wait.
So far everything works, but I don't like pooling part, instead, I'm truing to find way, DIRECTLY NOTIFYING BOT in background, so it will automatically update some state data and send proactive messages without running some background. So if now I'm running some background service (in my case windows service) and periodically check for statuses and sending notification to user, I would like move that part in bot.
As I understand, I have to mimic incoming message (but with type of "Event") and then run all the logic in bot code. I want something like resumption cookies, but recipient must be bot, not user. Just swapping sender/recipient does not work, as bot framework service thinks that user, that is sitting in "recipient" section is bot and can't find it in bot database, so I get "The bot referenced by the 'from' field is unrecognized" error. I also was thinking to use direct line, but I get 404 error, as I understand it happens because direct line has access to only it's conversations and can't access other channel's conversations.
So any ideas here how to do that? Note, that I'm not using Azure Bot Service, so this must be solved for ordinary infrastructure scenario, not azure bot service.
Thanks

OK, I tried a lot of things and then came up to idea, to DIRECTLY SEND ACTIVITY to bot service message controller. Seems easy task, but I stuck on authentication :(  Here's code I use:
`using (var client = new HttpClient())
{
client.BaseAddress = new Uri("http://localhost:81");
client.DefaultRequestHeaders.Accept.Clear();
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
            await client.AddAPIAuthorization("application_id", "application_key");

            var t = await client.PostAsJsonAsync("/api/message", message);

        }`

If I remove BotAuthentication attribute in the service, controller action is triggered, but if I put it back, I get 401. Service itself works with emulator and also published. I believe I miss something, any ideas?

We have some samples for proactive messages here:
https://github.com/MicrosoftDX/botFramework-proactiveMessages
It would be easier if you leveraged the ConnectorClient since it will help you with authentication.

@willportnoy  thanks for reply. Thing is that I don't have problem with proactive message system, I'm already using resumption cookie, but what I want is to send message TO BOT from outside service to notify it about some event. All these examples are showing how to send message from bot to user or start new dialog and so on. What I want is to trigger event for bot, so bot will do some work and only then notify user.
Here's real life scenario what I want to achieve: bot generates some third party service provider link and gives it to user, user jumps to external web-site and does something, external website notifies my system using callbacks about progress. my callback service notifies bot service, bot service updates some internal states and notifies user.
So question is: is it possible, to notify bot service about some external event, not by user, but by independent service, so bot can do some work and notify user?

@giorgobiani - If you have a ResumptionCookie, you can create your own custom object (must extend IActivity as of 3.5.3) to pass to Conversation.ResumeAsync.
The trick is that in your dialog, instead of calling context.Wait(MessageReceivedAsync), you want to call context.Wait<object>(CustomReceivedAsync), which should be declared like:
public async Task CustomReceivedAsync(IDialogContext context, IAwaitable<object> awaitableArgument)

Then, in CustomReceivedAsync, when you await awaitableArgument, you could get your custom object that you passed to Conversation.ResumeAsync (in which case, you can use the info on it to decide what to do), or you may get an IMessageActivity (ie. a message from the user), in which case you can tell them to be patient.

@jorupp sounds interesting, my background process is in another app domain, but still worth trying. Thanks

So at last, figured out how to do what I want, here's my scenario and "hacky" solution:
Scenario: I need to notify bot service, from external service about some event, so bot can process that event (update internal states and so on) and then notify user about this event.
Here's my solution: using HttpClient & resumption cookie, I directly send request to MessageController (as it's just ordinary request from client) BUT I set message type to "Event" and put all needed info in payload & value fields. In bot code, I process event type message separately and do all needed work, than, just using acivity.CreateReply method and changing type back to message, I generate response and send it back to user.
So far, it's ok, but there's a problem with authentication. I was using standard extension method of HttpClient - AddAPIAuthorization, which calls MS oauth service and gets token, but with that token you CAN'T authorize your request against bot service, you will get 401 unauthorized.
Turns out, that AddAPIAuthorization uses newer OAuth login URL and OAuth scope, while if you try and connect to your service with bot emulator and inspect request/response, you will find that it's using old url/scope (https://docs.botframework.com/en-us/restapi/authentication/ here are details about old & new values, scroll down to the end). I don't know if there's some mismatch in nuget package versions or it's a bug or I'm doing something incorrectly (I have same versions of nuget packages in bot service and calling project), but  I ended up with my version of token request function, here it is:
public async Task<string> GetAuthToken(string appID, string appKey)
        {
            using (var client = new HttpClient())
            {
                client.BaseAddress = new Uri("https://login.microsoftonline.com");
                client.DefaultRequestHeaders.Accept.Clear();
                client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

                var values = new List<KeyValuePair<string, string>>();

                values.Add(new KeyValuePair<string, string>("grant_type", "client_credentials"));
                values.Add(new KeyValuePair<string, string>("client_id", appID));
                values.Add(new KeyValuePair<string, string>("client_secret", appKey));
                values.Add(new KeyValuePair<string, string>("scope", "https://graph.microsoft.com/.default"));

                using (var content = new FormUrlEncodedContent(values))
                {
                    var response = await client.PostAsync("/common/oauth2/v2.0/token", content);
                    response.EnsureSuccessStatusCode();

                    var stringResponse = await response.Content.ReadAsStringAsync();
                    dynamic responseObject  = JsonConvert.DeserializeObject(stringResponse);

                    return responseObject.access_token;
                }
            }
        }

and then, just using code in outside service:
public async Task TriggerBotEvent(TriggerEventData eventData)
{
            var resumptionCookie = ResumptionCookie.GZipDeserialize("Your Resumption Cookie Value");

            var message = resumptionCookie.GetMessage();
            message.Type = ActivityTypes.Event;

            // Put your custom data in message object here

            using (var client = new HttpClient())
            {
                client.BaseAddress = new Uri("http://optio:81");
                client.DefaultRequestHeaders.Accept.Clear();
                client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

                var token = await GetToken(ConfigurationManager.AppSettings["MicrosoftAppId"], ConfigurationManager.AppSettings["MicrosoftAppPassword"]);
                client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);

                await client.PostAsJsonAsync("/api/message", message);
            }
   return;
 }

Sure it's not "native" approach, but works like charm and is universal in terms of usage, whenever you have resumption cookie, you can trigger event in bot from any external service.

@giorgobiani I'm glad you found a solution - DirectLine is another method to talk directly to your bot.  I'm going to close this issue now, but feel free to open a new issue for further discussion.

@willportnoy please show how to access activity type event from outside the bot , let's say from some PHP web page.

@alokraj68 you might consider using DirectLine - there may be relevant answers on stack overflow as we're moving our support efforts there.


add prettier config file

🛠 Fixes Issue
Close #10.
👨💻 Changes proposed

add .prettierrc file
add .prettierignore file
ran prettier for every file so that others don't have to face unknown changes for no reasons.

✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers
If you are not convinced enough to merge this PR, please read these articles:

why you need .prettierrc file
Prettier + Format On Save = Never worry about formatting JavaScript again
Snippet. My full Prettier (.prettierrc) config file

@nimishmedatwal please add hacktoberfest-accepted label to this PR and add review too.


Initial commit to support ARM (WIP)

Work in progress for longhorn/longhorn#6, now blocked at building TGT.

Please use https://github.com/rancher/tgt/commits/longhorn_oct2019 branch instead. It contains some syntax fixes.

Close this PR since the ARM64 support has been added by https://github.com/longhorn/longhorn-engine/pull/547


use EntityManagerInterface instead of EntityManager

This has already been done in #6599 globally for 3.0 (develop). Not sure whether it's worth it to introduce it in 2.x and have conflicts...

@Majkl578 thx, I missed it


Support running Stamp on Linux: Make sure LibGit2Sharp is loaded correctly

This PR enables running Fody.Stamp on Linux.
It:

Embeds all the LibGit2Sharp.Native files in the Stamp NuGet package (as files, they are not embedded in the Stamp.dll itself)
Makes sure that LibGit2Sharp.dll is loaded using Assembly.LoadFrom, so Mono can detect the .config file and the dllmap feature works correctly
Sets the current directory to the libgit2sharp.dll directory when the native assemblies are loaded (another Mono limitation).

It takes some magic to find out where LibGit2Sharp.dll is located; currently the logic is:

If Stamp was not loaded dynamically, do nothing (it works "out of the box"); this is the case in unit tests
If Stamp was loaded using Assembly.Load(byte[]), find the NuGet packages directory by inspecing the location of the Mono.Cecil assembly; and assume it is in packages/<something>, from there, construct the path to packages/Stamp.Fody.{version}

Kudos to @bording for figuring out what it would actually take to make this work.

@qmfrederik and @bording do u want to be maintainers for this project? If so i will add u to github and to nuget. And u can merge and release this yourselves

Sets the current directory to the libgit2sharp.dll directory when the native assemblies are loaded (another Mono limitation).

Yeah, this is something I looked into fixing a while back, but I never managed to get the workaround for it pushed into the NativeBinaries package:
https://github.com/libgit2/libgit2sharp/issues/1170
Since Stamp bundles the native binaries and doesn't have the package as a dependency, you could alter the paths in the way I describe here and I believe you could get rid of needing to alter the current directory.

do u want to be maintainers for this project? If so i will add u to github and to nuget. And u can merge and release this yourselves

:+1:  @SimonCropp I wouldn't mind being a maintainer.

@bording you now have access to nuget and GH. let me know if u need help with anything else. smoke testing, deployment  etc

@SimonCropp Thanks for the offer; working through PRs works fine for me, not sure I could dedicate enough time to being a maintainer for this project so I'll respectfully decline at this moment.
@bording I read about the lib prefix, I've looked at loader.c logic and it looks like even the lib-prefixed will be relative to the current working directory.
When Stamp is used, the current directory will be set to whichever the directory from which xbuild/msbuild is lanched, so it will not be the directory in which the Stamp.Fody assembly is located.
The current code works (at least for me :smile:), so I was wondering whether you'd object to merging this code into master and creating a new NuGet (pre-)release?

I see you're still adding commits to this branch, downgrading LibGit2Sharp.
What issue are you running into with linux compatibility? What version of linux are you doing your testing on?
The included linux native binary is currently a "best effort" attempt to get something that works, but given the nature of linux native libraries, it can be almost impossible to get something that works on all distros.
The one included in the package is built by the Travis CI servers, which are running Ubuntu, can't recall the exact version at the moment.
The linux version of the libgit2 library relies on OpenSSL, and that dependency is the biggest issue with trying to get something that will work across distros. For example, I know the linux binary won't work on CentOS because they include a version of OpenSSL that has a completely different soname than a standard compile of the OpenSSL codebase generates.

Also, regarding the lib prefix vs. changing the current directory, the first thing mono does is try to use the absolute path of the referencing assembly to find the items listed in the dllmap file, but it assumes it has to add lib to the path when it does. Then it falls back to various permutations based on the current directory.
So, as long as the LibGit2Sharp.dll is in the same folder as the NativeBinaries folder, renaming it to libNativeBinaries should get mono to cooperate without needing to change the current directory.

Hi @bording
Regarding libgit2sharp & the downgrading: the latest versions do not appear to work correctly on Ubuntu 12.04 & 14.04, the error is a SIGSEGV in LibGit2Sharp.Core.NativeMethods.git_index_read (LibGit2Sharp.Core.Handles.IndexSafeHandle,bool)
See https://travis-ci.org/quamotion/Costura/builds/117822528#L3210 for a log of a build running on Ubuntu and failing because of this.
I'll give lib prefix a try & get back to you.

this project is no longer maintained. raise a new issue if u want to take ownership

As this is a downgrade, I will close this.
If this is still needed, please create a new PR. Thanks!


Strip comments when reading JSON files

Strip out comments when reading JSON files. Comments defined as:
// to end of of line
/* to next */

Done. Only supporting leading multiple comments, which is what GitHub supports


Corrected spelling mistake at line 173

Changed "Firt" to "First"

Thanks @Sarthak-Biswas

Thanks @Sarthak-Biswas