Issue when building the custom EE environnement behind proxy

Environment
OS: Ubuntu 20.04.6 LTS
Ansible-builder: 1.2.0
Docker-version: 20.10.21

Description
Issue when building custom EE environnement behind corporate proxy.
Am having a issue when i am running my command to build a custom EE using your files in the builder repository.
Step to Reproduce
ansible-builder build --tag localhost/custom-ee:1.0 --container-runtime docker --verbosity 3
my execution-environnement.yml
--
version: 1
build_arg_defaults:
EE_BASE_IMAGE: 'quay.io/ansible/ansible-runner:stable-2.12-devel'
ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: "-c"
dependencies:
python: requirements.txt
galaxy: requirements.yml
additional_build_steps:
prepend:
- ENV http_proxy http://proxy:port
- ENV https_proxy http://proxy:port
- ENV HTTP_PROXY http://proxy:port
- ENV HTTPS_PROXY http://proxy:port
ERROR
Starting galaxy collection install process
Process install dependency map
[WARNING]: Skipping Galaxy server https://galaxy.ansible.com. Got an unexpected
error when getting available versions of collection awx.awx: Unknown error when
attempting to call Galaxy at 'https://galaxy.ansible.com/api/': <urlopen error
[Errno -2] Name or service not known>
ERROR! Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': <urlopen error [Errno -2] Name or service not known>

closed

@mehdia4ever
Hi, thanks for updating. If you have time, could you please let me know what the root cause was for your issue?

Hi,
I have juste add proxy variables into append section, and it's works.


Updates register cafe step

because cafe.url was not part of the existing Config model, I've added a method to just get it from the gateway, now just using the local config to pull in the token when needed. Will add a few comments here too.

I figured URL must be available since it’s displayed on the cafes screen. What does gateway mean here? The remote gateway?
On Aug 21, 2019, 2:32 PM -0700, Andrew W. Hill<EMAIL_ADDRESS>wrote:

because cafe.url was not part of the existing Config model, I've added a method to just get it from the gateway, now just using the local config to pull in the token when needed. Will add a few comments here too.
You can view, comment on, or merge this pull request online at:
https://github.com/textileio/photos/pull/1313
Commit Summary
• upgrades react-native sdk, cafe reg over url, pulls urls from gateway
• fixes a couple issues
File Changes
• M App/Components/CafePeerIdModal.tsx (38)
• M App/Components/CafesList.tsx (34)
• M App/Components/ListItem.tsx (17)
• M App/Components/PhotosKeyboard.tsx (2)
• M App/Containers/Cafe.tsx (18)
• M App/Containers/Cafes.tsx (10)
• M App/Containers/ChooseCafe.tsx (28)
• M App/Containers/MailListSignupScreen.tsx (1)
• M App/Containers/RegisterCafe.tsx (39)
• D App/Models/cafes.ts (20)
• M App/Redux/tests/ThreadsRedux.ts (2)
• M App/Services/tests/Notifications.ts (4)
• M App/Services/tests/PhotoUtils.ts (2)
• M App/features/cafes/actions.ts (24)
• M App/features/cafes/models.ts (16)
• M App/features/cafes/reducer.ts (61)
• M App/features/cafes/sagas.ts (197)
• M App/features/cafes/selectors.ts (15)
• M App/features/updates/tests/tests.ts (2)
• M App/features/updates/sagas.ts (4)
• M App/screens/cafe-session.tsx (1)
• M App/screens/cafes.tsx (18)
• M ios/Podfile.lock (18)
• M ios/Pods/Local Podspecs/textile-react-native-sdk.podspec.json (6)
• M ios/Pods/Manifest.lock (18)
• M ios/Pods/Pods.xcodeproj/project.pbxproj (9622)
• M ios/Pods/Target Support Files/FirebaseCore/FirebaseCore.xcconfig (2)
• M ios/Pods/Textile/Textile/Classes/Public/CafesApi.h (6)
• M ios/Pods/Textile/Textile/Classes/Public/CafesApi.m (7)
• M ios/Pods/TextileCore/Mobile.framework/Versions/A/Headers/Core.objc.h (32)
• M ios/Pods/TextileCore/Mobile.framework/Versions/A/Headers/Mobile.objc.h (4)
• M ios/Pods/TextileCore/Mobile.framework/Versions/A/Mobile (4)
• M package.json (2)
• M yarn.lock (18)
Patch Links:
• https://github.com/textileio/photos/pull/1313.patch
• https://github.com/textileio/photos/pull/1313.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

It's known after registration via peerId. Looks like config has name, peerId, token. So, I'm just grabbing from here, https://gateway.textile.cafe/cafes, for production. For beta/dev it's known, but i still do a check to make sure it's working the same.

For dev && beta, even though already known, I just do two checks to https://us-west-dev.textile.cafe and https://us-west-beta.textile.cafe

Can you should just change the config to include url and remove peerID? I can tell you what the URLs are. They’re also in 1Password. That gateway endpoint doesn’t contain the new production cafes.
On Aug 21, 2019, 4:13 PM -0600, Andrew W. Hill<EMAIL_ADDRESS>wrote:

For dev && beta, even though already known, I just do two checks to https://us-west-dev.textile.cafe and https://us-west-beta.textile.cafe
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Ah, yeah, we can do that then. Will reconfig.

k, that should be gtg now


Address function and variable naming lint errors

Proposed Changes

Internal refactor

Release Note

NONE

/assign @evankanderson

/ok-to-test

/lgtm
/approve

/test pull-knative-eventing-sources-integration-tests

/hold

(Otherwise, this removal will break #316 )
FWIW, I'd have just added the #316 change to this PR.

/hold cancel

/restest

/lgtm


Empty pdf file is being generated

Code Snippet :
HtmlToPdfObject hpo= HtmlToPdfObject.forUrl("https://github.com/wooio/htmltopdf-java");
Here hpo.htmldata = null hence in the output I am getting an empty file

Complete code snippet :
HtmlToPdfObject c= HtmlToPdfObject.forUrl("https://github.com/wooio/htmltopdf-java");
boolean success = HtmlToPdf.create().object(c)
.convert("/pathTo/file6.pdf");
success is false here.

What happens when you try to access an http URL? (not https)

Closing for inactivity.


我在跑使用文档的demo时出现了The model and loaded state dict do not match exactly的问题

Loads checkpoint by local backend from path: checkpoints/rtmdet_tiny_8xb32-300e_coco_20220902_112414-78e30dcc.pth
The model and loaded state dict do not match exactly
unexpected key in source state_dict: data_preprocessor.mean, data_preprocessor.std

data_preprocessor.mean and data_preprocessor.std is not trainable parameter, seems can ignore this warning

I am also facing the same issues with my code

我也是这个问题

I have the same question


Docker image for lgogdownloader

This isn't exactly an issue, but I'm just letting you know that I created a docker image for lgogdownloader since I wanted to use it on a machine which couldn't easily install all the build dependencies, etc.
It might come in handy for others too, so posting it here: https://github.com/acheronfail/lgogdownloader-docker
See the README for more information, but its usage is exactly like using the command (you just have to remember to map the config and data directories, etc).

Other notes:

It would be nice if I could change the directory where lgogdownloader stores its config files - from what I could see in the help text there's no option to control this

If that docker run ... command is acceptable, maybe I should experiment with making a Flatpak build definition for it.

While Flatpak isn't specifically intended for non-GUI applications, flatpak run com.github.Sude-.lgogdownloader <args> is less awkward than that docker run command and I have a proof of concept for auto-generating/updating wrapper scripts from the flatpak info -m output that allow me to run Flatpak'd stuff like mpv just the same as if I were running the APT-provided versions.
(My proof of concept uses the command=mpv line output by flatpak info -m io.mpv.Mpv to determine what the wrapper should be called and punts on resolving naming conflicts since it's just a PoC. Not perfect, as in cases like command=scummvm_wrapper or command=PPSSPPSDL or command=com.github.tchx84.Flatseal, but pretty damn close for something with no special-casing or upstream buy-in.)

It'd work on any distro thanks to flatpak-builder and the Flatpak runtimes being equivalent to the Docker build process.

It could be published to Flathub so people who may be on LTS distros can still get automatic updates without having to do their own builds from source.

If distributed with default filesystem=host permissions (unsandboxed, except for the bits overlayed by Flatpak's equivalent to the Steam Runtime and the bits explicitly blacklisted), it'd be easy for end users to use Flatseal or the flatpak override CLI command to narrow the sandbox to just the folders where they maintain their GOG collections.

If you wanted to explicitly support sandboxed operation, I think some of the games on Flathub use zenity to request a "Select the directory where your game assets are" dialog which will be permanently granted into the sandbox.
(Thus removing the need for filesystem=host... but please don't yet. I'm on Kubuntu 20.04 LTS, directory picker support was added to the spec late in the game, Kubuntu 20.04 LTS is a bit too old for the KDE portal host to have directory picker support, and the Flatpak PPA only provides an updated version of the GTK/GNOME portal host.)

@Sude- If I were to produce a working Flatpak build definition, would you be willing to at least consider having it be an official thing?

Some suggestions for the Dockerfile:

use alpine, with ubuntu the docker image really gets FAT
provide a docker-compose.yml if possible
do a cleanup of unneccessary files after building (independently if you make it in alpine or not), like removing the apt-cache, remove all development libraries and the compiler after building.

Yeah, I'm well aware that the docker image is large, pulls in unnecessary packages, and could definitely be slimmer if based off of alpine or something else! :sweat_smile:
My main motivation was for running lgogdownloader on an Unraid system, and this was the quickest way. It's hacky that's for sure, but could definitely be cleaned up if there was more interest in it.

Build also fails with
Looks like your machine can't find the entrypoint.sh file - did you clone it and run the docker build . from within the repository?

If that docker run ... command is acceptable, maybe I should experiment with making a Flatpak build definition for it.
I think flatpak would also be good, but IMO I would still use the Docker one even if that were available, since in my experience Docker is more widely supported on various systems than flatpak (I could be wrong, this is just my experience).

@ssokolow an appimage would be even better for distribution. just a simple file with everything in it.
10/10 agree here. It's difficult to install things like flatpak on systems like unraid, etc. An AppImage would be way more portable and solve all the problems I had, etc.

I got so mad at this (sorry) that I built my own docker image version of it, netting about 80 MB (build environment is about ~560MB) with Alpine Linux.
Note that the graphical dialog is not compiled in to save some space.
See https://github.com/shakeyourbunny/lgogdownloader-docker if you want to have something to toy with it.
Perhaps this is a better basis for @ssokolow idea of making a flatpack.
PS: @acheronfail thank you for pushing me to implement this and for your entrypoint script (you are credited).

No worries at all - this was mainly the intention! :smile:
I had an issue running it on Unraid, wrote up a quick-and-dirty Docker image to solve my problem, and shared it in case there was more interest, etc.
More than happy to use yours, since you've saved me the time of optimising it and making it smaller! :rofl:

@shakeyourbunny though it might be a good idea to put something in your README about mapping the PWD inside the docker image - otherwise I think users could run it, and accidentally start downloading something from GOG into the Docker container itself and fill up their docker space without actually downloading the files to where they want!
I did include this in the README of my repository if you'd like to reference it, etc.

10/10 agree here. It's difficult to install things like flatpak on systems like unraid, etc. An AppImage would be way more portable and solve all the problems I had, etc.

Unfortunately, I don't like Appimage and would go looking for a PPA or go back to building my own half-baked .debs using checkinstall if Flatpak isn't an option and what's in the distro repos is unsuitably old.

Appimage requires you to either bundle all your libraries or not be fully portable. APT/RPM and Flatpak both allow stuff shared with other packages. (Flatpak is built on top of OSTree and will do per-file deduplication both between different versions of the runtimes and between different packages that had to bundle the same library that was missing from the runtime.)
Appimage requires yet another daemon if you want automatic updates and, from what I've heard, that still only works if the packager went to extra effort to set up automatic update support.
Appimage is, at best, comparable to APT/RPM as far as the annoyance involved in wrapping Firejail around it. Flatpak is sandboxed by default and Flatseal makes it easy to replace things like filesystem=host with grants specific to the folders you want to download into.
For non-lgogdownloader things, you also need that extra tooling to avoid it being a hassle to integrate Appimages into the launcher.

Perhaps this is a better basis for @ssokolow idea of making a flatpack.

Flatpak provides its own analogue to Docker images based on Red Hat's OSTree, which is sort of like git for filesystems, for deduplicating files in common across multiple runtimes or flatpak packages, so I don't see how Docker would help.
I've actually already started whipping up a Flatpak manifest for lgogdownloader since it caught me as an interesting learning experience. (I'm using the org.kde.Platform as the base runtime since that provides a ready-made Qt and I already have it pulled in by other apps like Krita.)
Unfortunately, progress went from flying along to stymied when I slammed into what I diagnosed as "htmlcxx has been unmaintained since 2018, isn't present already in org.kde.Platform, and the base Freedesktop runtime that it amends contains a version of Flex too new for htmlcxx to build successfully". (#212)
I'll see if I feel like figuring out how Debian and Ubuntu get it to build tomorrow. Maybe I'll have to vendor whatever patches they're applying.

Appimage requires you to either bundle all your libraries or not be fully portable.

This is the whole point of the appimage format.

Appimage requires yet another daemon if you want automatic updates and, from what I've heard, that still only works if the packager went to extra effort to set up automatic update support.

Appimage does not require any daemons or something, they are purely standalone. If you want the appimage launcher, this is your own choice and it is not mandatory for using them.

Appimage is, at best, comparable to APT/RPM as far as the annoyance involved in wrapping Firejail around it.

Again, you missed the whole point of appimages. They are meant to be portable across any linux distribution, self-contained and stand-alone. If you want to compare them, they are mostly similiar to the OSX .app format or "portable applications" under Windows.

Unfortunately, progress went from flying along to stymied when I slammed into what I diagnosed as "htmlcxx has been unmaintained since 2018,

Yes, htmlcxx is the old problem with lgogdownloader and you will have to build it from source if you don't have a CentOS 8, Fedora variant or force install the edge:testing package in Alpine Linux. It should be not really that a problem, though you have to modify the header files a bit in order to make it work.
If you want to provide a flatpak of lgogdownloader, I'd suggest that you provide two versions. One version without the graphical password dialog and one with. The main problem of the "simple" graphical dialog is that it will blow up the distribution enormously and is not really necessary to have.

Again, you missed the whole point of appimages. They are meant to be portable across any linux distribution, self-contained and stand-alone. If you want to compare them, they are mostly similiar to the OSX .app format or "portable applications" under Windows.

No, I'm well aware of the point of appimages. They just defined me out of the target demographic.
(I don't want something self-contained if it means I have to give up having something that prioritizes integration I don't want something with "Download and run an .exe" simplicity, I want something focused on making sandboxing and automatic updates via my existing update manager as easy as possible.)

Yes, htmlcxx is the old problem with lgogdownloader and you will have to build it from source if you don't have a CentOS 8, Fedora variant or force install the edge:testing package in Alpine Linux.

I have flatpak-builder and the org.kde.Sdk image.

It should be not really that a problem, though you have to modify the header files a bit in order to make it work.

Naturally... but I still have to find time to figure out what to patch to make it work.

If you want to provide a flatpak of lgogdownloader, I'd suggest that you provide two versions. One version without the graphical password dialog and one with. The main problem of the "simple" graphical dialog is that it will blow up the distribution enormously and is not really necessary to have.

I'll look into the recommended way to go about it, but anyone who already has org.kde.Platform installed for at least one other Flatpak (a group I belong to) will have Qt provided by that with no need for extra downloads, which does reduce the value of providing both.
Boost is the biggest dependency that'll be in this Flatpak and I doubt that a pre-built copy of Boost is provided in any of the Flatpak runtimes, since the KDE one has QtCore, the GNOME one probably doesn't include any C++ stuff by default, and the Freedesktop Runtime is the common base that both extend.
(And any files that match files in another Flatpak's bundled copy of Boost will be deduplicated, thanks to the OSTree underpinnings of Flatpak. Likewise, downloading the KDE runtime won't re-download or store two copies of any of the files it receives from the Freedesktop runtime.)

No, I'm well aware of the point of appimages. They just defined me out of the target demographic.
(I don't want something self-contained if it means I have to give up having something that prioritizes integration. I don't want
something with "Download and run an .exe" simplicity, I want something focused on making sandboxing and automatic
updates via my existing update manager as easy as possible.)

I primarily stick with distribution packages and
You are looking for QubesOS or OpenBSD where everything on the OS level is secured and isolated up to the application by default and enforced. In addition, there are far more possibilites to safely enforce your operating system level integrated isolation needs there than on plain traditional Linux distributions with tacked on flatpak applications. Or just use an "atomic workstation" flavor of Linux, like Fedora Silverblue for that. This is a valid base for your flatpak applications, but not Debian or Ubuntu, although you also could use podman / toolbox for that.
Security is moot, if only one thing of a security chain is compromised or not enforced and if you are really so insisting on secure applications, you should ditch traditional linux distributions.
I usually rely on distribution packages as far as possible and let the package manager do its thing. Granted, debian-based distributions really suck in the package manager department, especially if you once harnessed the capabilities of zypper.

(graphical subsystem for password / captcha)
The password dialog uses Qt to get access to a browser engine so it can run the reCAPTCHA code. I don't think you're going
to find a lighter alternative if you need to bundle a copy of a full-blown browser engine

If you need to package a whole graphical subsystem alongside with a browser engine for a console application, you are doing something wrong.

(htmlcxx)
Naturally... but I still have to find time to figure out what to patch to make it work.

Well, I figured that (for CentOS 7) 3 years ago and documented it.
https://gist.github.com/shakeyourbunny/33e228844bd04e5ca6ce750cc287c24d#file-building_and_compiling_lgogdownloader_on_centos_7-txt-L36 (CentOS 8 (RIP) and Fedoria have pre-built packages).
Maybe it is the same for Debian-based distros.

You are looking for QubesOS or OpenBSD where everything on the OS level is secured and isolated up to the application by default and enforced.

No, I'm not an "everything or nothing" kind of person who can afford to buy extra hardware (especially during a chip shortage) to maintain my current level of functionality (It was hard enough tuning things to get A Hat In Time playable on an Athlon II X2 270 with Wine overhead) and, as far as OpenBSD goes, I prefer to leave "Buy your hardware specifically for this and we don't support 32-bit Wine on 64-bit OS" for my router.

Or use an ostree/"atomic workstation" based Linux distribution, like Fedora Silver Blue where you can either use podman for your applications or flatpak.

No thanks. I actually like having the option to easily hack on the stuff I haven't sandboxed. Immutable distros make that a hassle.

If you need to package a whole graphical subsystem alongside with a browser engine for a console application, you are doing something wrong.

Yes, it's called letting companies like Google dictate that authentication in the 21st century is humans inside official upstream browsers and, if you try to bypass that, you're obviously a dirty botter/spammer/hacker.
The solution is legislation to force companies with vendor-user dynamics like GOG's to provide a more comfortable option akin to GitHub's Deploy Keys feature.

Well, I figured that (for CentOS 7) 3 years ago and documented it.
https://gist.github.com/shakeyourbunny/33e228844bd04e5ca6ce750cc287c24d#file-building_and_compiling_lgogdownloader_on_centos_7-txt-L36 (CentOS 8 (RIP) and Fedoria have pre-built packages).
Maybe it is the same for Debian-based distros.

Thanks. I'll give that a try when I can block out a little time to work on it next.

@Sude- would you be open to publishing a docker image on this repo using Github Package repository? I have a dockerfile I made for my own use to develop on (since I'm on MacOS), it could be convenient for end users who want bleeding-edge features without an official release

@Sude- would you be open to publishing a docker image on this repo using Github Package repository? I have a dockerfile I made for my own use to develop on (since I'm on MacOS), it could be convenient for end users who want bleeding-edge features without an official release

I already did a small docker image for lgogdownloader (thank you @acheronfail for providing the base for that), see https://github.com/Sude-/lgogdownloader/issues/211#issuecomment-1011457419 .
https://github.com/shakeyourbunny/lgogdownloader-docker
Instructions for use see my repo. I did not make a PR, because I don't want to take full credit for that as it is based on @acheronfail initial dockerfile and it's just a proof of concept. For using that in the real world, you will also have to remap the configuration directory, the cache directory and the output directory into the container, so it's kludgy.
A better solution for running lgogdownloader on macos would be a native port, either making it buildable with xcode or within homebrew. The latter one shouldn't be to hard and my guess is that can directly use the supplied build instructions and run it without the docker overhead.

I'm building fine on MacOS, I make sure to test with Linux. My point is that the docker builds can be automated with CI for other users rather than manually rebuilding based on source changes here.

So, you are planning to make a GOG downloader which hides that it is lgogdownloader in the inside?

I have successfully used my own docker image for this project in a CI to download game builds completely fine. My general point is that the build process is easy, might as well make it part of the project repo running on a push for end users rather than having to manually update whenever this library does.
You can also just directly pull the binary out of the compiled docker image and publish those binaries as well, if they don't want to use docker.

You still achieve fast build times if you use the build artifact from the initial build run around and restart from within.
I have a build script (in bash) which does all things CI does like checking for required binaries, libraries etc, doing a git clone if no git repo there, a git pull for deltas etc. Also, it keeps old binary build versions in an archive and relinks (symbolic link) to the most recent build. Run time is single digit seconds rather than waiting for a minute build time, because your CI has the reconstruct the builder image etc.
But everyone has his/her own preferences I guess.
PS: lgogdownloader is not a "library".

Also, in that light of your endeavour with the docker image the PR also makes some sense why you want that in the project.

I made a proof-of-concept Flatpak manifest back in 2022 and opened #218 about it but never got a response.

I can maintain all of this upstream with not much effort, I'm just wondering if the maintainer of the project has any desire to have this in-tree.

I made a proof-of-concept Flatpak manifest back in 2022 and opened #218 about it but never got a response, so I'm in a similar situation.

I think now that a Flatpak would make more sense than a docker image, but ultimately it's on Sude-'s part what he wants to have. If it's just the icon, perhaps somebody could offer some variants and one of them is chosen?

" if necessary, start brainstorming to make some candidate submissions myself." was actually in my TODO list. It's the "Sude- responds" part that's blocking it.
For every other checklist item, I'm comfortable with going the third-party package route that various things on Flathub follow, but making an icon without the go-ahead feels like packaging it under a different name without creating a fork to carry that name.

License gives you the right to do whatever (the fuck) you want, but consider renaming it as to avoid confusion

I have no interest in maintaining a following fork of lgogdownloader. I'm fine with acting as a Flatpak package maintainer, akin to what an APT/RPM/etc. maintainer would do, but that's it.


rebrand as water_moccasin (since PyPI already has a boiga project)

close #8

Note that anaconda.org does not have a water_moccasin package so we're good with the new name


sw-6858 making the deputies tab visible #patch

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

Comparison is base (7076246) 74.20% compared to head (e3483ab) 74.19%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #419      +/-   ##
==========================================
- Coverage   74.20%   74.19%   -0.02%
==========================================
  Files          33       33
  Lines        1834     1833       -1
==========================================
- Hits         1361     1360       -1
  Misses        390      390
  Partials       83       83

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


[OpenSearch] 1.2.0 Final integration test after performance verification

We will use this post to store the latest integTest results after #1560 for OpenSearch.

Linux-x64 Integ-Test run:
2021-11-22 22:39:29 INFO     | alerting             | with-security        | PASS  |    0 |
2021-11-22 22:39:29 INFO     | alerting             | without-security     | PASS  |    0 |
2021-11-22 22:39:29 INFO     | anomaly-detection    | with-security        | PASS  |    0 |
2021-11-22 22:39:29 INFO     | anomaly-detection    | without-security     | PASS  |    0 |
2021-11-22 22:39:29 INFO     | asynchronous-search  | with-security        | PASS  |    0 |
2021-11-22 22:39:29 INFO     | asynchronous-search  | without-security     | PASS  |    0 |
2021-11-22 22:39:29 INFO     | dashboards-reports   | without-security     | PASS  |    0 |
2021-11-22 22:39:29 INFO     | index-management     | with-security        | PASS  |    0 |
2021-11-22 22:39:29 INFO     | index-management     | without-security     | PASS  |    0 |
2021-11-22 22:39:29 INFO     | k-NN                 | with-security        | PASS  |    0 |
2021-11-22 22:39:29 INFO     | k-NN                 | without-security     | PASS  |    0 |
2021-11-22 22:39:29 INFO     | sql                  | with-security        | PASS  |    0 |
2021-11-22 22:39:29 INFO     | sql                  | without-security     | PASS  |    0 |

Linux ARM64:
2021-11-23 00:45:49 INFO     | alerting             | with-security        | PASS  |    0 |
2021-11-23 00:45:49 INFO     | alerting             | without-security     | PASS  |    0 |
2021-11-23 00:45:49 INFO     | anomaly-detection    | with-security        | PASS  |    0 |
2021-11-23 00:45:49 INFO     | anomaly-detection    | without-security     | PASS  |    0 |
2021-11-23 00:45:49 INFO     | asynchronous-search  | with-security        | PASS  |    0 |
2021-11-23 00:45:49 INFO     | asynchronous-search  | without-security     | PASS  |    0 |
2021-11-23 00:45:49 INFO     | dashboards-reports   | without-security     | PASS  |    0 |
2021-11-23 00:45:49 INFO     | index-management     | with-security        | PASS  |    0 |
2021-11-23 00:45:49 INFO     | index-management     | without-security     | PASS  |    0 |
2021-11-23 00:45:49 INFO     | k-NN                 | with-security        | PASS  |    0 |
2021-11-23 00:45:49 INFO     | k-NN                 | without-security     | PASS  |    0 |
2021-11-23 00:45:49 INFO     | sql                  | with-security        | PASS  |    0 |
2021-11-23 00:45:49 INFO     | sql                  | without-security     | PASS  |    0 |


tweak this test for current master

With current code, the workspace exhaustion already happens in std.ip()

ok, this fails for 4.0, so if you want to suggest all versions in a single tree, I'd suggest to make this test version-specific. Let me know if you want a specific suggestion

Master is followed in the devel branch. I've fixed this in 886fcec8136daa64ec350c64bdc9668fdf8fc9cd.


Add code format checks to Java CI

Category
Internal refactors/changes
Describe the feature you'd like to request
We should add some sort of Java code format check to our CI workflow. We enforce formatting with cargo fmt across all our Rust code, but have nothing for Java.
Two options I'm aware of:

clang-format. This does actually support Java code formatting. Very configurable, which in some ways is not a feature for a formatting tool.
Google Java Format. This has some long standing open issue for poor lambda formatting, and lack of and format: off directive.

Describe alternatives you've considered
.
Additional context
No response
Is this something that you'd be interested in working on?

[ ] 👋 I may be able to implement this feature request
[ ] ⚠ This feature might incur a breaking change

Resolved by #158


Stack table

One not too uncommon use for vector tables is to have addresses stored -1, so that you can read the addresses from the table and push to the stack, and then call the address with an RTS.
Selecting the table, choosing Word (CTRL+W) and The Option Address (CTRL+O and Address) followed by "Format Address Table" allows me to make the RTS adjustment (Target -1). So far it does have the feature I want.
There is however a bit of an issue - not all of the selected items turn to be addresses. Three of them look like word values and not addresses.

Edit: Looking at the first instance, that is a BIT. The entry $8276 aims to call $8277 and that is the LDA hidden by the BIT. I guess this could be a reason for the trouble.

The Format Address Table feature does not require you to do any formatting beforehand... it's going to rewrite the format on all those bytes.  So you can skip that step.  (https://6502bench.com/sgtutorial/address-tables.html)
Looks like the address in the table is deliberately branching into the middle of an instruction.  When I do it on the same range it looks correct... make sure you check the "tag targets as code start points" box at the bottom of the address table dialog.   @T... T8274           lda   #$00
+002276 8276: 2c           n?--diZ? .....                 bit ▼ $01a9
+002277 8277: a9 01        ??--di?? @T... T8277           lda   #$01
+002279 8279: a2 01        ??--di?? .....                 ldx   #$01

The middle of the address is the fact that it is used for stack. The
routine takes the data and push it to the stack and does and RTS.
Den sön 1 aug. 2021 17:03Andy McFadden @.***> skrev:

The Format Address Table feature does not require you to do any formatting
beforehand... it's going to rewrite the format on all those bytes. So you
can skip that step. (https://6502bench.com/sgtutorial/address-tables.html)
Looks like the address in the table is deliberately branching into the
middle of an instruction. When I do it on the same range it looks
correct... make sure you check the "tag targets as code start points" box
at the bottom of the address table dialog.  @T... T8274           lda   #$00
+002276 8276: 2c           n?--diZ? .....                 bit ▼ $01a9
+002277 8277: a9 01        ??--di?? @T... T8277           lda   #$01
+002279 8279: a2 01        ??--di?? .....                 ldx   #$01
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/fadden/6502bench/issues/103#issuecomment-890535650,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGZWZSSD2PFWIEVDSB3IB73T2VO3DANCNFSM5BLED2RA
.

I'm not understanding the issue.
Select bytes from +002572 to +0025a9 inclusive.  Actions > Format Address Table.  Check "Adjusted for RTS" near the top and "tag targets as code start points" at the bottom.  As far as I can tell, the results are correct.
The label at $8277 and the other two locations looks like correct behavior, not confusion.  The code is cleverly doing LDA or LDX with an immediate value and then doing a BIT to conceal a second LDA/LDX with a different immediate value.  In the example I pasted earlier, the code at $8279 starts with A-reg set to $00 or $01 depending on how you branched into the code.

The selection is fully correct - the same one I do.
I wasn't aware of the tag in the lower corner, but this is indeed what I
want for the purpose of setting up the table in question.
BasicCommandVectors .dd2 T8274-1      ;/ - LOAD ,8,1

            .dd2  T82D2-1         ;$ - Directory
            .dd2  T8249-1         ;% - LOAD ,8,1 + RUN
            .dd2  T8262-1         ;Arrow up - LOAD ,8 + RUN
            .dd2  T8298-1         ;Pound - SAVE ,8
            .dd2  T829E-1         ;@ - Disk command
            .dd2  $8276           ;& - VERIFY ,8,1

The issue is still the $8276 above - that one isn't turning into a label,
but stays being a fixed address. The selection you do above where you force
it to be label -1 and also being a code start locations, and that still
doesn't happen here.

/Pontus Berg
Bergatrollet AB
CEO & Owner
Tel/SMS: +46 735 082860
www.bergatrollet.se
Den sön 1 aug. 2021 kl 20:04 skrev Andy McFadden @.***>:

I'm not understanding the issue.
Select bytes from +002572 to +0025a9 inclusive. Actions > Format Address
Table. Check "Adjusted for RTS" near the top and "tag targets as code start
points" at the bottom. As far as I can tell, the results are correct.
The label at $8277 and the other two locations looks like correct
behavior, not confusion. The code is cleverly doing LDA or LDX with an
immediate value and then doing a BIT to conceal a second LDA/LDX with a
different immediate value. In the example I pasted earlier, the code at
$8279 starts with A-reg set to $00 or $01 depending on how you branched
into the code.
[image: format-table]
https://user-images.githubusercontent.com/6185696/127780763-a727b5e3-4929-4d65-870e-c2ce5764d041.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/fadden/6502bench/issues/103#issuecomment-890563057,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGZWZSRYD5YBMMLKVN74SGTT2WEERANCNFSM5BLED2RA
.

I downloaded the latest project file from gitlab.  You have three messages at the bottom of the screen about "hidden labels", one for each of the missing links.  So I think the labels got created, but without the "tag targets as code start points" box being checked, the labels ended up in the middle of instructions.  We don't show those, so you get warning messages instead.
In theory, you should be able to just re-do those table entries with "tag targets as code" checked.  In practice, the address table formatter is not adding a code entry point tag if the label already exists.  That's a bug.
You can manually work around the bug in your project by doing what I described in a different issue: mark the instruction above it as a code-stop point, add a code entry point where you see the label, then remove the code-stop.

Many thanks. Looking forward to the future option to redo it then :)
Den sön 1 aug. 2021 23:22Andy McFadden @.***> skrev:

I downloaded the latest project file from gitlab. You have three messages
at the bottom of the screen about "hidden labels", one for each of the
missing links. So I think the labels got created, but without the "tag
targets as code start points" box being checked, the labels ended up in the
middle of instructions. We don't show those, so you get warning messages
instead.
In theory, you should be able to just re-do those table entries with "tag
targets as code" checked. In practice, the address table formatter is not
adding a code entry point tag if the label already exists. That's a bug.
You can manually work around the bug in your project by doing what I
described in a different issue: mark the instruction above it as a
code-stop point, add a code entry point where you see the label, then
remove the code-stop.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/fadden/6502bench/issues/103#issuecomment-890589057,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGZWZSRG5QBSOV2DMNXEKRTT2W3K7ANCNFSM5BLED2RA
.

Fixed in https://github.com/fadden/6502bench/releases/tag/v1.7.5-dev3
Reformatting the entry now correctly adds a code start tag mid-instruction.


Event Routing Based on the Development or Production Environment

We are currently building a Slack bot application using bolt-js that is running on port 3000 on our server, which is linked to the domain a.com. The application is publicly distributed and can be used by different customers. When a customer triggers an event in their workspace (like calling the Slack bot), the event is sent to the URL a.com/slack/events. Our server is configured via NGINX to forward requests coming to a.com to localhost:3000.
Our Issue
Our current challenge is that we lack a separate development environment for testing. When we make changes to the application code, we have to test them directly on the server. If something breaks, it disrupts the experience for our users. Consequently, we are in a situation where we need to segregate our development and production environments.
However, even if we run the development code on port 4000, the same bot is used in both test and production environments. Events are still sent to a.com/slack/events, making it impossible to test on the application running on port 4000.
Questions:

Is it possible to identify the team ID in the HTTP header for the incoming request at a.com/slack/events? We are considering using NGINX to route events coming from our test workspace to localhost:4000.
Is there a way to find out the complete HTTP header structure for requests coming into slack/events?
Is it possible to route events in the development environment through query parameters, like a.com/slack/events?dev_env=true? If we could append a query parameter to events triggered from our test team, that would help us route them accordingly.
Are there any other ways to achieve this routing based on the development or production environment?

Any help would be very appreciated. Thank you in advance!
Reproducible in:
The Slack SDK version
"@slack/bolt": "^3.13.3"

Node.js runtime version
Node.js v18.16.1

OS info
ProductName:		macOS
ProductVersion:		13.2.1
BuildVersion:		22D68

Steps to reproduce:
Expected result:
Actual result:
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. :bow:
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

Hi @dianexjeong, thanks for asking the questions.
Our primary recommendation is to create a different Slack app setting using the App Manifest (YAML/JSON) for development/staging. With this approach, you will have at least two public domains for production and others (dev/staging). Regardless, I will answer your questions one by one below:

Is it possible to identify the team ID in the HTTP header for the incoming request at a.com/slack/events? We are considering using NGINX to route events coming from our test workspace to localhost:4000.

No, it isn't. The request body could have team_id but there is no such information on the header side.

Is there a way to find out the complete HTTP header structure for requests coming into slack/events?

A simple way to do this would be just checking the actual request data using some tools. That being said, the only meaningful information for you would be the ones with "x-slack-" prefix, such as x-slack-signature and x-slack-request-timestamp. Others are highly related to Slack's infrastructure side, so they won't be useful for you.

Is it possible to route events in the development environment through query parameters, like a.com/slack/events?dev_env=true? If we could append a query parameter to events triggered from our test team, that would help us route them accordingly.

No, it isn't.

Are there any other ways to achieve this routing based on the development or production environment?

As I mentioned above, we recommend maintaing dev/staging apps in addition to the production one.
I hope this helps.

Thank you @seratch !
One question about creating a different Slack app:
When creating a separate Slack app setting using the App Manifest, is it sufficient enough to only change the port of the request URL, for instance: a.com/slack/events to a.com:4000/slack/events,
or do I require a different request URL for the newly created app?

is it sufficient enough to only change the port of the request URL, for instance: a.com/slack/events to a.com:4000/slack/events

The public URL must be https:// and its standard port 443. Thus, changing the port does not work. If you don't want to have multiple domains for this purpose, changing the paths (meaning /slack/events to /app-a/slack/events) for handling requests would be another option. You can customize these by passing endpoints (if you enable OAuth flow, redirectUri and installerOptions.installPath/redirectUriPath as well).

Great! I will try that out and reach out again if any more questions arise.
Thank you again!


README for runtime package

Fixes #118

Committed offline.
This reads so incredibly well 👏 🏆
lgtm!


Using a secret-id starting with 't' fails

steps:
  - commands: 'echo \$MY_SECRET'
    plugins:
      - seek-oss/aws-sm#v2.1.0:
          json-to-env:
            - secret-id: "test-variable-secrets"
              json-key: ".Variables"

The secret-id in this example will fail, as the plugin parses the secret-id as "est-variable-secrets"

We got around this by renaming our secret-id and it worked.

Sorry for missing this report, feel free to reraise if it's still an issue after #19.


[docs]Change host to host name in configuration for readme

Change host to host name in configuration for readme

https://ververica.github.io/flink-cdc-connectors/master/content/overview/cdc-pipeline.html
This page is the same error

https://ververica.github.io/flink-cdc-connectors/master/content/overview/cdc-pipeline.html This page is the same error

I have made the necessary modifications. Thank you for your reminder

@cjj2010 There are still some need to fix.

@cjj2010 There are still some need to fix.

The above searches have just been corrected

@cjj2010 There are still some need to fix.

The above searches have just been corrected

cc @GOODBOY008

@cjj2010 Thanks for the PR! Could you rebase the latest master as we refactored the README and docs recently

Could you

Complete rebase now

@cjj2010 Can you only keep your own changes to submit?

The document has been repaired


feat(auth): OAuth2 Authentication

This feature request aims to add OAuth2 Authentication support in the twitter clone app. The following functionalities need to be implemented:
UI

Implement the OAuth2 login flow on the client-side, allowing users to sign in using an OAuth2-compatible service, such as Google or Facebook.
Display a button for the user to initiate the OAuth2 login flow.
Once the user is logged in, display their profile information and the ability to log out.

Server-side functionality:

Handle the OAuth2 login flow by redirecting the user to the OAuth2 provider's website to grant permission to access their data.
Exchange the authorization code returned from the OAuth2 provider for an access token.
Use the access token to retrieve the user's profile information from the OAuth2 provider's API.
Store the access token and profile information in the database, and associate them with the user's account in the app.

Database operations:

Store the user's access token and profile information in the database, and associate them with the user's account in the app.

Note: The specific OAuth2 provider that is used should be configurable, as different providers have different APIs and requirements for accessing user data.

Should be quite easy for Pocketbase for #11

Already done maybe discuss on what service do we want ?


Bug: hash collisions cause wrong behaviour in Dictionary

Hi all,
I've found that the W# implementation of Dictionary does not seem to handle hash collisions. This can result in unpredictable buggy behaviour. Here is a repro:
let test() =
let d = new System.Collections.Generic.Dictionary<Map<int,int>, string>()
let m1:Map<int,int> = Map.empty
let m1 = Map.add 0 2 m1
let m1 = Map.add 3 1 m1
let m1 = Map.add 4 1 m1
let m2:Map<int,int> = Map.empty
let m2 = Map.add 0 1 m2
let m2 = Map.add 3 1 m2
let m2 = Map.add 5 1 m2
d.Add(m1, "foo");
d.ContainsKey m2
The code above will correctly return FALSE on .NET, and wrongly return TRUE on W#.
I have tested this in both the latest W# 3 and the latest W# 4.

Also, here is an example that works fine in .NET, but throws an exception in W# (3 or 4):
let test_insertion() =
let d = new System.Collections.Generic.Dictionary<Map<int,int>, string>()
let m1:Map<int,int> = Map.empty
let m1 = Map.add 0 2 m1
let m1 = Map.add 3 1 m1
let m1 = Map.add 4 1 m1
let m2:Map<int,int> = Map.empty
let m2 = Map.add 0 1 m2
let m2 = Map.add 3 1 m2
let m2 = Map.add 5 1 m2
d.Add(m1, "foo");
d.Add(m2, "bar");

@FilippoPolo Thanks for the report!

Thanks for the prompt action! Is there any chance you could patch W# 3 as well? Although we are testing 4, we are not quite ready to switch versions in production yet, but this problem is fairly worrying for us.


Create window binary in CI plan

This has been done a while ago now.  See https://github.com/spring-projects-experimental/spring-cli/blob/main/.github/workflows/e2e.yml#L21
It is built based on a cron schedule


Add iso3Code

Removed England, Wales, Northen Ireland because they don't have iso3Code.

This PR solve #7

Can you add these countries with empty values for iso3Code and use the new filter feature to get the ones which has iso3Code?

@figengungor Hello, I added removed countries back with same iso3Code (GBR).
And convert List<Map<String, String>> to List for save time in initState.

Thank you for your contribution @endigo=)


timeout error throw more than once

when set the timeout parameter and the timeout happen,like this:
var req = request.get('http://website.com/',{timeout:10000});
req.on('response',function(res){
      do something
});
req.on('error',function(e){
    console.error(e);
});

the error callback function will called more than once

Is it possible that something else is going on?  Maybe you are making this request in a loop?  In my tests request only times out once.  What happens when you run the following?
'use strict'

var http = require('http')
  , request = require('request')

var s = http.createServer(function(req, res) {
  res.statusCode = 200

  setTimeout(function() {
    res.end('ok')
  }, 10000)
})

s.listen(6767)

var req = request.get('http://localhost:6767/', {
  timeout: 500
})

req.on('response', function(resp) {
  console.log('OK')
  s.close()
})

req.on('error', function(err) {
  console.log('error', err)
})

Basically, when a timeout is called, this line is called first:
https://github.com/request/request/blob/9c5f7a411ba68ea71fb45e0efff0ccbc892d26ba/request.js#L972
then this line is called:
https://github.com/request/request/blob/9c5f7a411ba68ea71fb45e0efff0ccbc892d26ba/request.js#L1241
then this line is called:
https://github.com/joyent/node/blob/4d9c81b7e2522c5d5d9d35058cbb0bce1228d360/lib/_http_client.js#L211
then this line is called:
https://github.com/joyent/node/blob/4d9c81b7e2522c5d5d9d35058cbb0bce1228d360/lib/net.js#L485
Where this._handle is an instance of TCP per these two lines:
https://github.com/joyent/node/blob/4d9c81b7e2522c5d5d9d35058cbb0bce1228d360/lib/net.js#L879
https://github.com/joyent/node/blob/4d9c81b7e2522c5d5d9d35058cbb0bce1228d360/lib/net.js#L51
Which leads to this error being thrown and emitted:
Error: socket hang up
    at createHangUpError (http.js:1472:15)
    at Socket.socketCloseListener (http.js:1522:23)
    at Socket.EventEmitter.emit (events.js:117:20)
    at TCP.close (net.js:465:12)

Before this error is emitted:
https://github.com/request/request/blob/9c5f7a411ba68ea71fb45e0efff0ccbc892d26ba/request.js#L975


Make dump output more easily diffable

The YAML output produced by a dump does not always retain the same order (between runs or between different instances).
Output 1
host: <redacted>
https: true
headers:
  - 'X-APIKEY:...'
apis:
  - name: api1
    plugins:
      - name: second_plugin
        attributes:
          enabled: true
      - name: acl
        attributes:
          enabled: true
  - name: api2
    plugins:
      - name: acl
        attributes:
          enabled: true

Output 2
host: <redacted>
https: true
headers:
  - 'X-APIKEY:...'
apis:
  - name: api2
    plugins:
      - name: acl
        attributes:
          enabled: true
  - name: api1
    plugins:
      - name: acl
        attributes:
          enabled: true
      - name: second_plugin
        attributes:
          enabled: true

The two outputs are functionally equivalent but comparing them is a bit more work.
Ideally api's would be ordered by name/id, then plugins by name/id, then ...

This would fit in the try-run category of features, or in other words diffing the server state and your config file and getting an output that would show what would change if you would apply your config.
To understand more your reasoning and use-case; why is it useful to you to compare the outputs?

We’ve got 3 environments with separate Kong’s running (dev, QA, production). Setup and configuration is mostly version controlled and automated. Being able to compare two Kong instances/environments however would enable spotting configuration drift …
Besides that in DEV we play around with the Kong configuration using https://github.com/PGBI/kong-dashboard, comparing the before and after would help in automating those changes...

Op 6 feb. 2018, om 21:59 heeft Sten Hiedel<EMAIL_ADDRESS>het volgende geschreven:
This would fit in the try-run category of features, or in other words diffing the server state and your config file and getting an output that would show what would change if you would apply your config.
To understand more your reasoning and use-case; why is it useful to you to compare the outputs?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Respond with password validation errors in the api when creating a user.

Hi I am using the style guide, I find it interesting to be able to separate the concerns.
When I perform a user registration and enter a weak password, the error messages from the api are not sent.
So how can I perform this validation? In the service?
Help please, am I following this example guide?

@italoantonio0909 Hello :wave:
Can you provide some kind of a code example, so we can help?
If you want to trigger validation, based on a model, to be returned from the API, please check the https://github.com/HackSoftware/Django-Styleguide#exception-handling examples here.
If you provide an example, we'll be able to help out more.
Cheers!

Hello @RadoRado
I will explain in details, thank you for your answer.
I am implementing an authentication module based on the style guide you provide
When using the sample user creation service in the guide, ignore password validations as AbstractBaseUser raises exceptions when validating these fields, such as length and common password.
#user.services.py
def user_create(
*,
first_name: str,
last_name: str,
email: str,
is_active: bool = True,
is_admin: bool = False,
password: Optional[str] = None
) -> BaseUser:
user = BaseUser.objects.create_user(
    first_name=first_name,
    last_name=last_name,
    email=email,
    is_active=is_active,
    is_admin=is_admin,
    password=password,
)

#Send notification create account
user_create_notify(user_email=email)

return user

My question is that if the following form is correct throwing exceptions, since a service maintains all the business logic, if I want to increase its validations, everything I do in the service?
Note: I am strictly following the style guide
#user.services.py
def user_create(
*,
first_name: str,
last_name: str,
email: str,
is_active: bool = True,
is_admin: bool = False,
password: Optional[str] = None
) -> BaseUser:
errors = dict()
try:
    # Validate the password and username and catch the exception
    validators.validate_password(password=password, user=email)

# The exception raised here is different than serializers.ValidationError
except Exception as e:
    errors['password'] = list(e.messages)

if errors:
    raise ValidationError(errors)

user = BaseUser.objects.create_user(
    first_name=first_name,
    last_name=last_name,
    email=email,
    is_active=is_active,
    is_admin=is_admin,
    password=password,
)

#Send notification create account
user_create_notify(user_email=email)

return user

Thank you for taking the time to answer my question.

@italoantonio0909
If you want to have this general pattern:

Service tries doing something
There's some kind of an error in validation
Raise ValidationError - I'd recommend sticking with core.django.exceptions.ValidationError, not to leak DRF into your service layer (although, it might not be that bad)
Your API layer should know how to handle that. We've described our way of handling it here - https://github.com/HackSoftware/Django-Styleguide#exception-handling - but you might just do a try/except around your service call & do something else.

Again, the general idea of the styleguide is to have a separation of concerns between your API layer & your business logic / models.
Let me know if that answer is actually helpful.

of course if I have separate logic.
Check pl
https://github.com/italoantonio0909/ecommerce_django/blob/master/ecommerce/users/services.py

@italoantonio0909 Apologies for answering that late.
The link above is giving me 404.
If you need anything in addition from me, feel free to reopen the issue :v:


Fix typos in logging documentation

@dhermes per https://github.com/GoogleCloudPlatform/gcloud-python/pull/1905/files/1e4405eff5c4cc34870d5c6e0082728091631af0#r69016554

LGTM. Care to provide a screenshot of the fixes before merging?

Good call, I missed a new line for the .. doctest:

Feel free to merge (pending Travis I suppose)


Draw bounds rectangle - WIP

WIP of displaying the rectangle bounding box for each MRV layer.

The layers have a hew has_bounds_rectangle attribute
If this attribute is true then we draw the rectangle getting the information from the WMS getCapabilities

The code can be widely improved this is just a POC

@Bluesmile82 I liked the idea of being able to retrieve the bounds automatically from the layer, but as you commented to me, we would need to store some additional configuration in Strapi in order to make the request. Since we already needed to have some data in Strapi, I decided to go with a simpler solution: storing the bounds there.
We may revisit this decision in the future but I think it gives us more flexibility as all kinds of layers could now have highlighted bounds (i.e. not only the ones served by QGIS).


fix: bump edge runtime to 1.32.4

What kind of change does this PR introduce?
Bumps Edge Runtime to 1.32.4 (check Edge Runtime release notes for details)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
5 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.03%) to 58.696%

Files with Coverage Reduction
New Missed Lines
%

internal/gen/keys/keys.go
5
11.76%

Totals

Change from base Build<PHONE_NUMBER>:
-0.03%

Covered Lines:
6159

Relevant Lines:
10493

💛  - Coveralls


Thumbnail Images for Code Examples don't seem to work

From https://github.com/CodingTrain/thecodingtrain.com/issues/68#issuecomment-1043285167, there is supposed to be "thumbnail images" for code examples like follows:
"codeExamples": [
  {
    "title": "Monty Hall",
    "description": "Three-door demonstration of the Monty Hall Problem with gameplay statistics",
    "image": "codeExample1.png",
    "urls": {
      "p5": "https://editor.p5js.org/codingtrain/sketches/pLW3_PNDM"
    }
  },
  // ...
]

Actual Behaviour

No thumbnail image showing up

It takes codeExample1.png image as the main thumbnail, instead of using index.jpg

(codeExample1.png contains test image, index.jpg contains actual video thumbnail)

And how are the files located in the file structure?

I just assumed that all files are supposed to be in the root folder. Please lmk if they are supposed to be in a separate folder.
content/
  challenges/
    170-monty-hall-problem/
      index.jpg
      codeExample1.jpg
      index.json

Ah, yes, investigating this a bit more it looks like the example images are supposed to go in a subfolder called images, you can see this here:
https://thecodingtrain.com/tracks/code-programming-with-p5-js/code/2-variables/4-random
https://github.com/CodingTrain/thecodingtrain.com/tree/main/content/videos/code/2-variables/4-random
Can you try that and see if it works?
Also, we should add info about this to the site maintenance guide (if it's not already there!)

Thanks for the clarification.
Unfortunately, I still can't make the images work.
File Structure:
content/
  challenges/
    170-monty-hall-problem/
      images/
        codeExample1.png
      index.json

Code:
"codeExamples": [
    {
      "title": "Monty Hall",
      "description": "Three-door demonstration of the Monty Hall Problem with gameplay statistics",
      "icon": "codeExample1.png",
      "urls": {
        "p5": "https://editor.p5js.org/codingtrain/sketches/pLW3_PNDM"
      }
    },
// ...
]

Output:

I also tried to use the exact same images and code as linked in the above comment (https://thecodingtrain.com/tracks/code-programming-with-p5-js/code/2-variables/4-random). It still doesn't work.
I am not completely sure whether this is a bug or something that I'm doing wrong.

Note
I tried to do the exact same thing inside the track (linked above) instead of Coding Challenge. All images seem to work in the track correctly. Maybe this has something to do with this feature only being available for tracks?

I am running the site locally using dev. I have tried npm run clean.
Here is a testing branch: https://github.com/dipamsen/thecodingtrain.com/tree/testing-playground
https://github.com/dipamsen/thecodingtrain.com/blob/6515a3b2fa167878e6adb0d68ff62522cc7940e0/content/videos/challenges/170-monty-hall-problem/index.json#L26
https://github.com/dipamsen/thecodingtrain.com/tree/testing-playground/content/videos/challenges/170-monty-hall-problem
On running this branch locally (npm run dev), no thumbnail image is seen.

Thank you so much. I think I found the issue, it's a little bug with the script that links all this things together. I'll post a fix in a PR soon.

Yay, this is fixed! @dipamsen if you want to try adding yours back in and assuming it's all good we can close this!

Sure!

Sure!


Create docker container with python virtual environment as 3.6 and that virtual environment should be for only user Add one user if needed

Create docker container with python virtual environment as 3.6 and that virtual environment should be for only user Add one user if needed

you can add the user if you want by using interactive terminal.
please close the issue.


Problems when setting up deployment

I'm having this problem when running git deploy setup. My command is:
git deploy setup -r staging
The result:
/home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:67: warning: Object#timeout is deprecated, use Timeout.timeout instead.
/home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:78: warning: Object#timeout is deprecated, use Timeout.timeout instead.
/home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/cipher_factory.rb:98: warning: constant OpenSSL::Cipher::Cipher is deprecated
Traceback (most recent call last):
	26: from /home/javisquare1/.rbenv/versions/2.5.1/bin/git-deploy:23:in `<main>'
	25: from /home/javisquare1/.rbenv/versions/2.5.1/bin/git-deploy:23:in `load'
	24: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/git-deploy-0.6.1/bin/git-deploy:3:in `<top (required)>'
	23: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
	22: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
	21: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
	20: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
	19: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/git-deploy-0.6.1/lib/git_deploy.rb:28:in `setup'
	18: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/git-deploy-0.6.1/lib/git_deploy/ssh_methods.rb:35:in `run_test'
	17: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/git-deploy-0.6.1/lib/git_deploy/ssh_methods.rb:43:in `ssh_exec'
	16: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/git-deploy-0.6.1/lib/git_deploy/ssh_methods.rb:96:in `ssh_connection'
	15: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh.rb:192:in `start'
	14: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh.rb:192:in `new'
	13: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:81:in `initialize'
	12: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:202:in `wait'
	11: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:202:in `loop'
	10: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:204:in `block in wait'
	 9: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:167:in `poll_message'
	 8: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:167:in `loop'
	 7: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/session.rb:189:in `block in poll_message'
	 6: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/algorithms.rb:142:in `accept_kexinit'
	 5: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/algorithms.rb:187:in `send_kexinit'
	 4: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/algorithms.rb:196:in `proceed!'
	 3: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/algorithms.rb:348:in `exchange_keys'
	 2: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/algorithms.rb:348:in `new'
	 1: from /home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:51:in `initialize'
/home/javisquare1/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/net-ssh-2.6.8/lib/net/ssh/transport/kex/diffie_hellman_group1_sha1.rb:118:in `generate_key': undefined method `p=' for #<OpenSSL::PKey::DH:0x000055b7e7635778> (NoMethodError)
Did you mean?  p

My guess is that the problem is with 'net-ssh' version but, as the dependency is fixed to "~2.6" I can't upgrade it. Does anyone know how to fix this?
I'm on Ubuntu 18.04 and these are my packages versions:
Ruby          2.5.1p57
git-deploy (0.6.1)
net-ssh (2.6.8)

I solved the problem. It was the Ruby version. Right now, I downgraded Ruby version from 2.5.1 to 4.2.2 and it's working now.


Prefix and suffix icon misaligned in CupertinoSearchTextField.

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
Use a default CupertinoSearchTextField in your app somewhere.
Expected results
Icons should be correctly aligned with the text as it appears on iOS.
Actual results
The default insets of:

const EdgeInsetsDirectional.fromSTEB(6, 0, 0, 3)
const EdgeInsetsDirectional.fromSTEB(0, 0, 5, 2)

on the prefix and suffix icons respectively, cause them to be vertically misaligned with the text. The issue is visible in the official example here: https://api.flutter.dev/flutter/cupertino/CupertinoSearchTextField-class.html#cupertino.CupertinoSearchTextField.1 and does not reflect how the search bar looks in iOS.
In our case, we adjusted the insets to:

const EdgeInsetsDirectional.fromSTEB(6, 3, 0, 0)
const EdgeInsetsDirectional.fromSTEB(0, 0, 6, 0)

respectively, and that made the icons optically aligned with the placeholder and input text.
Code sample
Use this widget somewhere in a Column or List.
 'Search...',
      autocorrect: autocorrect ?? false,
      keyboardType: keyboardType ?? TextInputType.text,
      backgroundColor: backgroundColour ?? white,
      padding: padding ?? const EdgeInsets.all(smallPadding),
      decoration: decoration,
      enabled: enabled ?? true,
      style: textStyle ?? PWDefaultTheme.themeData.textTheme.bodyMedium,
      focusNode: focusNode,
      onChanged: onChanged,
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.7.10, on macOS 13.3.1 22E261 darwin-arm64, locale en-AU)
    • Flutter version 3.7.10 on channel stable at /Users/jaidyn/Flutter/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4b12645012 (4 weeks ago), 2023-04-03 17:46:48 -0700
    • Engine revision ec975089ac
    • Dart version 2.19.6
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/jaidyn/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio
    • Android Studio at /Applications/Android Studio Canary Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build <IP_ADDRESS>+0-<IP_ADDRESS>b469.62-9127311)

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.77.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.62.0

[✓] Connected device (3 available)
    • Pixel 7 Pro (mobile) • 2B011FDH300JNR • android-arm64  • Android 13 (API 33)
    • macOS (desktop)      • macos          • darwin-arm64   • macOS 13.3.1 22E261 darwin-arm64
    • Chrome (web)         • chrome         • web-javascript • Google Chrome 112.0.5615.137

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Thanks for the report. Using the code sample, I see below on iOS simulator:

This is on native iOS (App Store)

I do see same alignment if we compare both platforms. What do you think ? Or if you have more details, please provide the same here.


Fix shards condition in TransportRemoteStoreStatsAction

Description
Remote store stats api returns no response if coordinator node does not contain remote enabled shard
If lets say we have 3 nodes - N1, N2 and N3 and there is remote store enabled index index1 with 1 shard (on N1) and 0 replica, then if we call remotestore stats api on N1, it returns the stats. If we call the api on N2 or N3, it returns empty result.
Related Issues
Resolves #7738
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Commits are signed per the DCO using --signoff
[ ] Commit changes are listed out in CHANGELOG.md file (See: Changelog)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

PR description does not provide details on what we are changing. Please add 1-2 lines for the same.


MM-20151 Fix for svg console error about width property

Summary
The issue of svg happens becuase of a change in https://github.com/mattermost/mattermost-webapp/pull/4164 which was added because of

Changing the width of svg to inherit to occupy the space as needed. This wasnt needed earlier but some of the recent changes made this a requirement.

The recent changes as it turns out was https://github.com/mattermost/mattermost-webapp/pull/4047 which was caused because of the https://github.com/mattermost/mattermost-webapp/pull/3639
So in total
We don't need the width prop on svg added in https://github.com/mattermost/mattermost-webapp/pull/4164 if we revert the width change from https://github.com/mattermost/mattermost-webapp/pull/4047.
https://github.com/mattermost/mattermost-webapp/pull/4047 was made for fixing an issue with aspect ratio images being wrong
i.e

Instead of

Which works now with this PR even along with the other tocket of scroll pop https://mattermost.atlassian.net/browse/MM-19909 which added a width prop on svg causing the error
Ticket Link
https://mattermost.atlassian.net/browse/MM-20151

@sudheerDev Do you know the impact of this on users, and if it would be safe to fix this for v5.17.1 dot release in case this doesn't make it for v5.17?

@amyblais Without this PR i say users will have an error in console and can see scroll pop in certain dimensions of images. The fix is of minimal risk and i did fair amount to testing earlier too. i would say it the change carries minimal risk.

Creating a new SpinWick test server using Mattermost Cloud.

Mattermost test server created! :tada:
Access here: https://mattermost-webapp-pr-4206.test.mattermost.cloud

Account Type
Username
Password

Admin
sysadmin
Sys@dmin123

User
user-1
User-1@123

Thanks @sudheerDev - looks good to me. I do not see any js console errors. Difficult to check scroll pop with not much data on the spinwick but that can be tested post-merge.

Test server destroyed

@asaadmahmood Would you be able to give this a review?

Creating a new SpinWick test server using Mattermost Cloud.

Mattermost test server created! :tada:
Access here: https://mattermost-webapp-pr-4206.test.mattermost.cloud

Account Type
Username
Password

Admin
sysadmin
Sys@dmin123

User
user-1
User-1@123

Test server destroyed


Refacto ajax logout actions

WARNING : in the PSAccount constructor, the idtoken or refreshtoken are empty, it raise an error, so why we reset it ?


hot reload does not trigger rebuild when string is updated on files different than main.rs

Problem
If you create a project and create a component that is outside main.rs, for example, login.rs.
when you update any string, it doesn't get rebuilt by dx serve
Steps To Reproduce
Steps to reproduce the behavior:

Create a dioxus project
Create a login.rs file and add mod login;
Create a component inside login.rs
Import the component in your App in main.rs
Inside rsx of login.rs, create a string like class or the HTML value
Run dx serve --hot-reload
Update the string inside login.rs
dx serve won't rebuild

Expected behavior
It should rebuild on different files other than main.rs while hot reloading
Screenshots
https://github.com/DioxusLabs/dioxus/assets/4844547/ef06fe5a-3ebb-4bbb-b6cc-b93353f5d56c
Environment:

Dioxus version: master, dioxus-cli: 5.0.4
Rust version: 1.78
OS info: MacOS M1
App platform: fullstack

Questionnaire

[ ] I'm interested in fixing this myself but don't know where to start
[ ] I would like to fix and I have a solution
[ ] I don't have time to fix this right now, but maybe later

The dioxus CLI and renderers communicate over IPC + websockets to hot reload static parts of rsx that is not nested within component/other rsx in debug mode. The edit you make in login.rs is hot reloadable without recompiling, but we need to recompile.
There have been some updates to hot reloading since the last release. You may need to update your CLI to the git version of dioxus to make the protocol compatible between your app and the CLI.

I just tried updating everything to main and it's still not able to reload.
https://github.com/DioxusLabs/dioxus/assets/4844547/dbaace8e-3b3b-47f5-ac43-28574b4e7ca0

I think I found the problem. The problem was not related to the file, but the content of the strings in the whole rsx!
I generated some code in v0, and there were some \n in the middle of the strings. The whole rsx stops reloading if one of  the strings contains \n.
https://github.com/DioxusLabs/dioxus/assets/4844547/b0327733-0373-4bfa-bf43-16a2b231c889

It's actually a different problem. Creating a separated issue.


[Event Change Request] report 790 "Calculate Inventory"  - OnAddZeroQtySKUOnBeforeInsertZeroQtySKU

Could you please pass the parameter Item and SKU by reference (var Item: Record Item; var SKU: Record "Stockkeeping Unit";) on the event OnAddZeroQtySKUOnBeforeInsertZeroQtySKU, that the filters are included
[IntegrationEvent(true, false)]
//+Change
//-local procedure OnAddZeroQtySKUOnBeforeInsertZeroQtySKU(Item: Record Item; SKU: Record "Stockkeeping Unit"; var TempInventoryBuffer: Record "Inventory Buffer" temporary; var IsHandled: Boolean)
local procedure OnAddZeroQtySKUOnBeforeInsertZeroQtySKU(var Item: Record Item; var SKU: Record "Stockkeeping Unit"; var TempInventoryBuffer: Record "Inventory Buffer" temporary; var IsHandled: Boolean)
//-Change
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 47404.


Black and flake8 setting inconsistency

flake8 defaults to line length 79 without options, while black defaults to line length 88, which makes precomit liable to fail. This could be fixed by editing the pre-commit yaml to:

repo: local
hooks:

id: black
name: Run black
stages: [commit]
language: system
entry: black --check --diff --line-length=79
types: [python]

or
  - id: flake8
    name: Run flake8
    stages: [commit]
    language: system
    entry: flake8 --max-line-length=88
    types: [python]

This could also induce changes in the setting json such as:
"python.linting.flake8Args": [
    "--max-line-length=79"
],

I was under the impression we already had this covered.
I'll take a look.

The vscode settings should be updated.
I have
"python.linting.flake8Args": [
  "--max-line-length=88"
]

in my user settings which is why this works for me.
Regarding the precommit settings I take your point but for some reason this works for me as is. @coretl do you know why this is the case?

I think flake8 with no arguments obeys the config in setup.cfg / pyproject.toml. It seems to work both for linting in vscode and when run in a terminal. If I take out the config from setup.cfg it complains about all my lines between 79 and 88 characters.

@GDYendell does that also work with the latest skeleton where settings have been moved to pyproject.toml? We use a flake8 plugin to read settings like this from pyproject.toml rather than setup.cfg, but it may have broken...

Checked in python3-pip-skeleton. It does as long as you have Flake8-pyproject installed in your venv.

@GDYendell @thomascobb thanks both. I've just confirmed that removing my user setting in vscode also still works.
Closing this ticket as flake8 is automatically taking on line length 88 via Flake8-pyproject.


bump packages

Issue:
Closes https://github.com/emilkowalski/sonner/issues/282
What has been done:

updated packages 😄
run format command

Screenshots / videos:

I am not sure why deployment fails, build seems to go smoothly 🤔

Updated playwright tests according to release notes,

Locally tests seem to be correct 🤔

@choeqq Any updates here?

hi @emilkowalski just updated playwright test issue, fingers crossed it will fix test bug 😬

@emilkowalski all checks passed 🥳
It would be nice to check and merge it ASAP, so there won't be too many conflicts 😉


getting BrokenImport Error

What version of Go are you using (go version)?
1.17.2

$ go version

Does this issue reproduce with the latest release?
NA
What operating system and processor architecture are you using (go env)?
go env Output
$ go env

![image](https://user-images.githubusercontent.com/57591622/142818761-a173c96d-1c26-454c-82cb-c27743abef80.png)

What did you do?
trying to import the gorm package.

What did you expect to see?
to see proper output
What did you see instead?

Do you have a go.mod file in you project and did you open your editor there?

yes. I tried without go.mod file also but same error

which directory/folder did you open vscode in?

my go_workspace (Location: D:\Codes\go_workspace )

vscode Screenshot

env path

and other thing when I used go mod init command to create the go.mod file, it shows the error like this

Given that go env GOMOD output NULL, I guess your go.mod file is not in the workspace root.
The module root directory should be in the workspace root (D:\Codes\go_workspace) or you need to configure to work with multiple modules. Please see https://github.com/golang/vscode-go#setting-up-your-workspace - in particular, the last paragraph.

Okay I'll try

Thank you guys, Its working now...


Fields Not_Used and NOT_USED map to the same type

File: MK61F15.svd
Contents:
          <fields>
            <field>
              <name>Not_Used</name>
              <description>Reserved</description>
              <bitOffset>0</bitOffset>
              <bitWidth>16</bitWidth>
              <access>read-only</access>
            </field>
            <field>
              <name>NOT_USED</name>
              <description>Reserved</description>
              <bitOffset>16</bitOffset>
              <bitWidth>16</bitWidth>
              <access>read-only</access>
            </field>
          </fields>

Error:
error[E0428]: a type named `NOT_USEDR` has already been defined in this module
      --> src/lib.rs:530278:9
       |
530267 | /         pub struct NOT_USEDR {
530268 | |             bits: u16,
530269 | |         }
       | |_________- previous definition of `NOT_USEDR` here
...
530278 | /         pub struct NOT_USEDR {
530279 | |             bits: u16,
530280 | |         }
       | |_________^ `NOT_USEDR` already defined

The read proxy for these two fields, Not_Used and NOT_USED, is NOT_USEDR. I don't know if this is something we want to support. This SVD file is also kind wrong because it should be using the keyword RESERVED for reserved bitfields then svd2rust will simply had ignored the bitfields.
Should we support this or flag the SVD file as being broken?
cc @whitequark

Seems clearly broken to me; while the spec does not explicitly say that uniqueness should be modulo case, I believe that the C code generators for CMSIS assume that and casefold, and this file only works because of how loose the C standard is on this point.

Thank for the input @whitequark.
Closing as "this is not a bug in svd2rust but in the SVD files".


libosmium no longer successfully builds after v2.17.1 on CentOS 7

What version of libosmium are you using?
v2.17.3

What operating system and compiler are you using?

I expected the build to complete successfully.

What did happen instead?
The build did not complete successfully.
Scanning dependencies of target index_test_dump_and_load_index
make[2]: Leaving directory `/libosmium/build'
make -f test/CMakeFiles/index_test_dump_and_load_index.dir/build.make test/CMakeFiles/index_test_dump_and_load_index.dir/build
make[2]: Entering directory `/libosmium/build'
/usr/bin/cmake -E cmake_progress_report /libosmium/build/CMakeFiles
[ 66%] Building CXX object test/CMakeFiles/index_test_dump_and_load_index.dir/t/index/test_dump_and_load_index.cpp.o
cd /libosmium/build/test && /usr/bin/g++   -DOSMIUM_WITH_LZ4 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wno-missing-field-initializers  -O3 -g -I/libosmium/include -isystem /protozero/include -isystem /usr/include/gdal -isystem /libosmium/test/catch -I/libosmium/test/include    -std=c++11 -Werror -Wall -Wextra -pedantic -Wredundant-decls -Wdisabled-optimization -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wold-style-cast -Wno-parentheses -Wno-deprecated-declarations -o CMakeFiles/index_test_dump_and_load_index.dir/t/index/test_dump_and_load_index.cpp.o -c /libosmium/test/t/index/test_dump_and_load_index.cpp
In file included from /libosmium/include/osmium/index/map/dense_file_array.hpp:38:0,
                 from /libosmium/test/t/index/test_dump_and_load_index.cpp:4:
/libosmium/include/osmium/index/detail/vector_map.hpp: In instantiation of ‘class osmium::index::map::VectorBasedDenseMap<std::vector<osmium::Location, std::allocator<osmium::Location> >, long unsigned int, osmium::Location>’:
/libosmium/test/t/index/test_dump_and_load_index.cpp:64:72:   required from here
/libosmium/include/osmium/index/detail/vector_map.hpp:72:38: error: function ‘osmium::index::map::VectorBasedDenseMap<TVector, TId, TValue>& osmium::index::map::VectorBasedDenseMap<TVector, TId, TValue>::operator=(osmium::index::map::VectorBasedDenseMap<TVector, TId, TValue>&&) [with TVector = std::vector<osmium::Location, std::allocator<osmium::Location> >; TId = long unsigned int; TValue = osmium::Location]’ defaulted on its first declaration with an exception-specification that differs from the implicit declaration ‘osmium::index::map::VectorBasedDenseMap<std::vector<osmium::Location, std::allocator<osmium::Location> >, long unsigned int, osmium::Location>& osmium::index::map::VectorBasedDenseMap<std::vector<osmium::Location, std::allocator<osmium::Location> >, long unsigned int, osmium::Location>::operator=(osmium::index::map::VectorBasedDenseMap<std::vector<osmium::Location, std::allocator<osmium::Location> >, long unsigned int, osmium::Location>&&)’
                 VectorBasedDenseMap& operator=(VectorBasedDenseMap&&) noexcept = default;
                                      ^
In file included from /libosmium/include/osmium/index/map/dense_file_array.hpp:38:0,
                 from /libosmium/test/t/index/test_dump_and_load_index.cpp:4:
/libosmium/include/osmium/index/detail/vector_map.hpp: In instantiation of ‘class osmium::index::map::VectorBasedSparseMap<long unsigned int, osmium::Location, osmium::index::map::StdVectorWrap>’:
/libosmium/test/t/index/test_dump_and_load_index.cpp:82:73:   required from here
/libosmium/include/osmium/index/detail/vector_map.hpp:194:39: error: function ‘osmium::index::map::VectorBasedSparseMap<TId, TValue, TVector>& osmium::index::map::VectorBasedSparseMap<TId, TValue, TVector>::operator=(osmium::index::map::VectorBasedSparseMap<TId, TValue, TVector>&&) [with TId = long unsigned int; TValue = osmium::Location; TVector = osmium::index::map::StdVectorWrap]’ defaulted on its first declaration with an exception-specification that differs from the implicit declaration ‘osmium::index::map::VectorBasedSparseMap<long unsigned int, osmium::Location, osmium::index::map::StdVectorWrap>& osmium::index::map::VectorBasedSparseMap<long unsigned int, osmium::Location, osmium::index::map::StdVectorWrap>::operator=(osmium::index::map::VectorBasedSparseMap<long unsigned int, osmium::Location, osmium::index::map::StdVectorWrap>&&)’
                 VectorBasedSparseMap& operator=(VectorBasedSparseMap&&) noexcept = default;
                                       ^
make[2]: *** [test/CMakeFiles/index_test_dump_and_load_index.dir/t/index/test_dump_and_load_index.cpp.o] Error 1

What did you do to try analyzing the problem?
Going back to v2.17.1 works just fine. I also created a branch here which fixes the build issues, leaving just a few test failures needing resolution. See here for a workflow run showing all jobs building successfully.

Thanks for looking into this, but it is unlikely that I'll get around to work on this. There are a several problems with those old compilers, sometimes they can't be fixed without generating problems with new compilers or upsetting clang-tidy and it becomes increasingly difficult to maintain this. So something just has to give. And Centos 7 is more than 7 years old by now! Sorry, but unless a sponsor is willing to put some money into this, I'll can not keep up compatibility in all cases.

Yeah, I suppose you're right, it's a shame that this breaking change was introduced in a minor point release and that distributions like RHEL/CentOS 7, which will still be supported for another 2.5 years, are still so widely used. Either way, I have pinpointed the breaking locations and made a small change in a commit here which does fix the build errors (albeit certainly not in the best way), perhaps I can dive into it more in order to identify a proper fix.


Avoid ubcheck of NULL

Avoid ubcheck of NULL in debug build.
Close https://github.com/rustdesk/rustdesk/issues/8856

https://github.com/rustdesk-org/rust-sciter/commit/5322f3a755a0e6bf999fbc60d1efc35246c0f821


Add Ruby 2.4.1 testing

Pull Request Checklist
RE https://github.com/sensu-plugins/sensu-plugins-feature-requests/issues/27
General

[x] Update Changelog following the conventions laid out on Keep A Changelog

[x] RuboCop passes

[x] Existing tests pass

Purpose
Add testing on Ruby 2.4.1
Known Compatibility Issues
Breaking change as rest-client gem has been updated to 2.0.2 in relation to https://github.com/rest-client/rest-client/pull/573

released: https://rubygems.org/gems/sensu-plugins-graylog/versions/1.2.0


multi language support

Any chance to support more languages?
My father in law does not speak english very well and all entities are hardcoded in sensor.py.
I tried to rename some in the UI, but after a reboot they are gone.
Thanks.

OK, found a way by adding names to selected entities.


How do I use this?

I installed this plugin in Lapce.
Opened a Julia file.
Nothing happens:

No indication of a language server being active;
no autocomplete;
no suggestions like in this screenshot;
no Julia process (ps aux | grep julia shows just the grep command);
unable to execute Julia code by pressing Shift+Enter, like in Jupyter.

How to use this plugin? Do I need to manually activate the language server?
Versions

Lapce 0.2.5
lapce-julia 0.0.3
Julia 1.9.0-beta2
macOS 10.15.7

@ForceBru Thanks for trying out the plugin.
Shift + Enter is not supported yet
For sending the current line/selection to terminal, track this issue: https://github.com/lapce/lapce/issues/520
For inline code execution (it executes and shows result in the editor itself), that'd be a long road but you start start by tracking this issue: https://github.com/lapce/lapce/issues/812
Check the README.md and see if it solves the "nothing happens" issue.

Also, close the issue if that does solve your problem.
For the Shift + Enter, use the two linked issues to track

https://github.com/VarLad/lapce-julia/blob/d42c5d3241921080b59f0f04689ed0f8bfeccbac/README.md?plain=1#L7
What kind of PATH should I check? My default shell is /bin/zsh, and it has Julia in its PATH:
% echo $PATH
.../Julia/Julia-1.8.app/Contents/Resources/julia/bin:...
% which julia
.../Julia/Julia-1.8.app/Contents/Resources/julia/bin/julia

My Lapce terminal is set up to use the fish shell, and it has Julia in its PATH as well:
$ which julia
.../Julia/Julia-1.8.app/Contents/Resources/julia/bin/julia

I installed LanguageServer.jl for this Julia version:
% julia -e "import Pkg; Pkg.status()"
Status `~/.julia/environments/v1.8/Project.toml`
...
  [70703baa] JuliaSyntax v0.2.0
  [2b0e0bc5] LanguageServer v4.3.1
  [bdcacae8] LoopVectorization v0.12.145
...

I then relaunched Lapce, updated lapce-julia to v0.0.4, but still nothing happens when I open a Julia file. There are no errors, but also no indication of lapce-julia being active or having trouble finding Julia or launching the language server. CPU usage is around zero, so there doesn't seem to be much work going on, while launching Julia is usually CPU-intensive.
Lapce's extensions panel shows that "Julia (LanguageServer.jl) v0.0.4" is indeed installed.

@ForceBru
Do you know where the config folder of MacOS is located?
In there, append this to the settings.toml
[lapce-julia-ls.lsp]
serverPath = "/path/to/the/julia/executable"

@ForceBru Update the plugin
Check out https://github.com/VarLad/lapce-julia#passing-custom-julia-executable-path
If it still doesn't fix the issue, feel free to reopen this!

Yep, it works now with the custom path to the Julia executable, thanks a lot!


Introduce VirtAddr and PhysAddr types

At the moment, VirtAddr and PhysAddr are simply typedefs, meaning that one might use either one interchangeably without the compiler giving any warnings. Introduce two distinct new types, plus an Address trait implemented by both for common operations.
The new types provide several facilities to convert easily to and from other types such as usize, u64 and raw pointers via the From trait.

Looks great, thanks for doing this! One thing I was wondering is whether we can also have define From traits to convert between VirtAddr and PhysAddr which does virt_to_phys/phys_to_virt() implicitly?

This would be possible, although introducing a dependency on a global mutable (KERNEL_MAPPING) seemed a bit strange to me in a From conversion, especially since it can panic. We could add it as TryFrom perhaps? This would increase the amount of error handling though.

This would be possible, although introducing a dependency on a global mutable (KERNEL_MAPPING) seemed a bit strange to me in a From conversion, especially since it can panic. We could add it as TryFrom perhaps? This would increase the amount of error handling though.

Yeah, you are right, keeping the Virt<->Phys address conversion explicit is better and makes the code easier to read. I will merge this as-is.


haha

@JuliaRegistrator register()

Error while trying to register: "File (Julia)Project.toml not found"


Deprecate pool in favor of errgroup?

AIUI, pkg/pool has nearly the same interface and use case as errgroup:

run some functions in parallel using goroutines
stop and return an error when any goroutine fails
take a context.Context so the whole group can be stopped if the context is cancelled
be able to limit concurrency (typically to runtime.NumCPU)

It might have been that pool provided more functionality than errgroup at one point in time, but with errgroup getting SetLimit recently, I don't think that's the case anymore.
Maintaining this code yourself is an option, but concurrency can get tricky, and if possible it'd probably be worth making it someone else's problem. Future performance improvements may get made to errgroup which we could just pick up.
As far as external users, cosign depends on pkg/pool, until https://github.com/sigstore/cosign/pull/2092, and it looks like mink uses it too, but I can send a PR for that too.
/kind question
/area API
btw if this sounds good I'm happy to do the work to migrate knative's own usages, and help anybody else using it to migrate.

Let's drop the uses here:
https://pkg.go.dev/knative.dev/pkg/pool?tab=importedby
and just delete this package

errgroup getting SetLimit is great

/triage accepted


--max-filesize doesn't always work - inconsistent

Version: 2019.02.08
Action: Download this playlist: PLZb9bypBWmqEuDLpu2M-L0f93-A8zyOfL
Command I ran:
youtube-dl --playlist-end 25 --max-filesize 10m --write-info-json -o 'data/youtube/%(resolution)s/%(uploader_id)s/%(id)s.%(ext)s' https://www.youtube.com/playlist\?list\=PLZb9bypBWmqEuDLpu2M-L0f93-A8zyOfL

When I run this command manually, I get the message:
[download] File is larger than max-filesize (20428898 bytes > 10485760 bytes). Aborting.

but when running from python:
    subprocess.run("youtube-dl --playlist-end " + str(max_videos) + " --max-filesize 10m --write-info-json -o 'data/youtube/%(resolution)s/%(uploader_id)s/%(id)s.%(ext)s' https://www.youtube.com/playlist\?list\=" + playlist_id, shell=True)

Sometimes it ignores the --max-filesize parameter and downloads 1.78g of video with id: bFpmyoC_2pA.f137

This Node.js connector is not doing any extra file size handle, so it delegated directly in the logic present at youtube-dl associated with the flag.
Consider open an issue there!


Creating launchd agent: ERROR!

Trying this out for the first time today. Following the instruction to install dlite, and got the following error:
:; sudo dlite install
Password:
Building disk image: done
Downloading OS: done
Writing configuration: done
Creating launchd agent: ERROR!
open /Users/tri/Library/LaunchAgents/local.dlite.plist: no such file or directory

Maybe the Launch Agent folder is missing?
mkdir -p /Users/tri/Library/LaunchAgents

Yup, that was it. Thanks @philpl. Wondering if that's worth documenting?

I'll tweak the code to make sure that directory exists. Good find


Can't set Custom Game

What's the correctly way to make a Non Steam Game visible?
I've tried:
bot.gamesPlayed(["test name", 730]);
And
bot.setGameName(["teste"]);
Still shows CS:GO as currently game running.

Have you tried inverting the array order?

I'm using:
bot.on('loggedOn', function(details) {
console.log('[STEAM] Logged in.');
bot.setPersonaState(Steam.EPersonaState.Online);
bot.gamesPlayed(["Game Test"]);
});
If i don't put any appID, Steam account just goes online, but does not shows "Game Test" as currently non-game

    bot.gamesPlayed("Game Test");
not
    bot.gamesPlayed(["Game Test"]);

That shouldn't be the issue, you can run multiple games simultaneously

I get this if I use the code:
bot.gamesPlayed("Game Test");

Do you use steam-user or steam?

He's using node-steam, which isn't what this is.

Yes, I didn't noticed about that. I changed the module and now it's working!


allow selective removal of kubeconfig override flags

The recommended bind methods are really useful, but don't allow callers to turn off certain flags.