[FEATURE] Replica writing should work with low CPU limit

Describe the bug
3 replica work with at least 60m-75m CPU
To Reproduce
Steps to reproduce the behavior:

Use image shuowu/longhorn-manager:resource-test-v2 to deploy Longhorn, which can set CPU limits for engine manager pods or replica manager pods.
Attach and mount volume.
Run below command to write in the volume.

while true; do dd if=/dev/urandom of=/mnt/data/t1 bs=512 count=10000000 && rm /mnt/data/t1; done &
while true; do dd if=/dev/urandom of=/mnt/data/t2 bs=1M count=10000 && rm /mnt/data/t2; done &

Check manager log. And monitor CPU usage via kubectl -n longhorn-system top pods

Test results:
               20m        25m        30m         40m         60m         75m
1 replica       x          ✓
2 replicas                             x           ✓
3 replicas                                         x           x           ✓

Expected behavior
Replica should work with less CPU
Environment:

Longhorn version: Longhorn-manager - 08/19/2021
Installation method (e.g. Rancher Catalog App/Helm/Kubectl): Kubectl
Kubernetes distro (e.g. RKE/K3s/EKS/OpenShift) and version: RKE, K8s v1.21.4

Number of management node in the cluster: 1
Number of worker node in the cluster: 3

Node config

OS type and version: Ubuntu 20.04
CPU per node: 4
Memory per node: 8
Disk type(e.g. SSD/NVMe): SSD
Network bandwidth between the nodes: Upto 10 Gi

Underlying Infrastructure (e.g. on AWS/GCE, EKS/GKE, VMWare/KVM, Baremetal): DO
Number of Longhorn volumes in the cluster: 1

Additional context
https://github.com/longhorn/longhorn/issues/1691

This is an outdated issue. Let's create another one if needed.


Issues with "joepenna"-Term, any other does not work.

I tried around a lot and found out that my training data only works when i keep "joepenna" inside https://github.com/JoePenna/Dreambooth-Stable-Diffusion/blob/main/ldm/data/personalized.py#L11
Lets say i change  "joepenna" inside personalized.py to "mytest"
and call the command with "--class_word mytest" and also (just in case) "-n mytest"
My 3 sample files are named "input/mytest car_01.png", "input/mytest car_02.png", "input/mytest car_02.png"
when i check the training samples, it looks very good.
But when i use then the checkpoint and use the prompt "mytest car" i get a total random image.
If i keep it as "joepenna" in personalized.py then the result works fine with "joepenna car"
is that a bug or i am just stupid ?

I never had a problem.

But when i use then the checkpoint and use the prompt "mytest car" i get a total random image.

If you use the same checkpoint and use the prompt joepenna car did it works? If it is then maybe you just forgot saving, otherwise I don't know.
Change the personalized.py to mytest
class name: car
The prompt should work: eg. an oil painting of mytest car

I had this issue once. I solved it afterwards by opening personalized.py, changing the tag, then saving it. Then continuing with the script.


Handle Kotlin

Migrate the KotlinSpring5 generator from https://github.com/atomist-blogs/spring5-kotlin. Collapse class hierarchies where possible.
Update the blog posts as necessary.

https://the-composition.com/turn-any-repo-into-a-software-factory-exploring-spring-5-and-kotlin-2f58283421a2
https://the-composition.com/atomist-generator-deep-dive-c122561f6449

This is complete and/or moved to SDM.


Add support for ELECTRA models

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


faulty restart process for ui services

when we delegate to another process to watch and reload (e.g. gulp), by using an override in config.js,
fuge assigns a new port on every restart
we need some way to either lock a service to a port, or else rethink how we're doing ui rebuilds

This issue is restricted to linux hosts and is due to a bug in how we handle process shutdown. Have a fix and will push update shortly. No need to rethink the UI builds :)

i'm also busy splitting them out in #2. so that the front-end service is just a basic hapi shell where you can dump static files into.


Killing assaultGroup scavs during scav run breaks profile

The cause of the error users were getting when doing scav runs appears to be from killing bots with the role assaultGroup
Error user was seeing after trying to restart client/server:

Attached server log, with the following warning:
warn: 	Unable to find standing for kill for: assaultGroup, side: Savage
Technical:
There's no assaultgroup.json file to pull the standingForKill from, so from what I can see, the method ends up returning undefined, which gets math'd a bit and ends up as NaN. This gets assigned as the players scav karma, which goes into the profile, then loading fails from that point onwards due to trying to convert null to a number

Attachments

image.png (39 KiB)
server-2024-02-28.log (911 KiB)

Originally written by DrakiaXYZ

Should be fixed via https://dev.sp-tarkov.com/SPT-AKI/Server/commit/3a301b02ccd768c6297f871f275eff10f5a9d825

Originally written by DrakiaXYZ

ran 5 factory scav runs, each run kill 6~7 scavs before get killed and didnt get any problem, hard to try to test if it fix or not

Originally written by holynevil


Add minimal support for v3 code generation

Scope

[ ] https://github.com/asyncapi/java-spring-cloud-stream-template/issues/336
[ ] https://github.com/asyncapi/java-spring-template/issues/308
[ ] https://github.com/asyncapi/java-template/issues/118
[x] https://github.com/asyncapi/nodejs-template/issues/215
[ ] https://github.com/asyncapi/python-paho-template/issues/189

All templates
The following is a list of all the templates that eventually would have to be migrated. This is not the scope of this issue but I'm pasting it here just for reference.

https://github.com/asyncapi/dotnet-nats-template/issues/384
https://github.com/asyncapi/go-watermill-template/issues/243
https://github.com/asyncapi/java-spring-cloud-stream-template/issues/336
https://github.com/asyncapi/java-spring-template/issues/308
https://github.com/asyncapi/java-template/issues/118
https://github.com/asyncapi/nodejs-template/issues/215
https://github.com/asyncapi/nodejs-ws-template/issues/294
https://github.com/asyncapi/python-paho-template/issues/189
https://github.com/asyncapi/ts-nats-template/issues/545

With this and some of the other tracking issues getting marked as stale or closed, is there and updated list of supported generators for V3 and is there a timeline when they will be available?


No video format found

C:\dplay>youtube-dl https://www.raiplay.it/video/2013/04/Luca-Massari-Un-tassista-perbene---Un-giorno-in-Pretura-del-130413-11557453-276c-4734-9610-fe82693b85f3.html --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.raiplay.it/video/2013/04/Luca-Massari-Un-tassista-perbene---Un-giorno-in-Pretura-del-130413-11557453-276c-4734-9610-fe82693b85f3.html', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg git-2020-08-31-4a11a6f, ffprobe git-2020-08-31-4a11a6f
[debug] Proxy map: {}
[RaiPlay] 11557453-276c-4734-9610-fe82693b85f3: Downloading video JSON
[RaiPlay] 11557453-276c-4734-9610-fe82693b85f3: Downloading XML metadata for platform mon
[RaiPlay] 11557453-276c-4734-9610-fe82693b85f3: Downloading m3u8 information
WARNING: Failed to download m3u8 information: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)>
[RaiPlay] 11557453-276c-4734-9610-fe82693b85f3: Downloading XML metadata for platform flash
[RaiPlay] 11557453-276c-4734-9610-fe82693b85f3: Downloading XML metadata for platform native
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 836, in __extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\extractor\common.py", line 534, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\extractor\rai.py", line 174, in _real_extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\extractor\common.py", line 1374, in _sort_formats
youtube_dl.utils.ExtractorError: No video formats found;

Works for me. Perhaps RAI failed to renew a certificate (use --no-check-certificate to bypass such an error, if you accept the "risk") and have now done so?

right option! Thank you! ;-D

This may be related: https://go.theregister.com/feed/www.theregister.com/2021/09/30/lets_encrypt_xero_slack_outages/.


Fix expression validation (hidden & rowIndices)

Attempt number 2 at hidden data for expresion validation 😅 This time it does not remove the hidden data, but only gets the fields that would be removed and ignores those. It was necessary to treat hiddenRow slightly differently, just by not ignoring the children if the row was already hidden so it gets full paths.

This should also fix the problem I mentioned in slack where it did not have row indices for context. Instead of trying to connect expression validations to layout nodes, it uses a more simple context than the component context, that only contains row indices. This means it cannot refer directly to components, but that should not really limit what you can do anyway. I'll make sure to document that.

Added some more tests to cover the cases with direct datamodel references, updated the unit tests to not remove hidden data before validating. Also tested manually in expression-validation-test app, so the cypress tests in app-frontend should pass.
Description

Related Issue(s)

#{issue number}

Verification

[x] Your code builds clean without any errors or warnings
[x] Manual testing done (required)
[x] Relevant automated test added (if you find this hard, leave it and we'll help out)
[x] All tests run green

Documentation

[ ] User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

I'm not sure about the inheritance for context. Isn't it much easier to read and write the code when the properties are nullable instead?

Ser forresten at sonar cloud har funnet to steder der vi får warning fordi context.Component.DataModelBindings kan trigge null pointer exception om Component er null. Det bør vi vel også fikse?


gh-gei: 1.8.0 -> 1.9.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/github/gh-gei/releases.
meta.description for gh-gei is: Migration CLI for GitHub to GitHub migrations
meta.homepage for gh-gei is: https://github.com/github/gh-gei
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.9.0 with grep in /nix/store/7v3298cmgqx1z7s46g1k01b3gfrxwb6q-gh-gei-1.9.0
found 1.9.0 in filename of file in /nix/store/7v3298cmgqx1z7s46g1k01b3gfrxwb6q-gh-gei-1.9.0

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

gh-gei

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/7v3298cmgqx1z7s46g1k01b3gfrxwb6q-gh-gei-1.9.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A gh-gei https://github.com/r-ryantm/nixpkgs/archive/ea9b26a6ba703ebacbf0fd819d4f2e71a713c20f.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/ea9b26a6ba703ebacbf0fd819d4f2e71a713c20f#gh-gei

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/7v3298cmgqx1z7s46g1k01b3gfrxwb6q-gh-gei-1.9.0
ls -la /nix/store/7v3298cmgqx1z7s46g1k01b3gfrxwb6q-gh-gei-1.9.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 1 package built:

gh-gei

Maintainer pings
cc @lafrenierejm for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

@NixOS/nixpkgs-merge-bot merge


Eloquent Refresh() Returns All Columns Instead of Predefined Columns

Laravel Version
11.x
PHP Version
8.3
Database Driver & Version
Sqlite
Description
When dealing with a table that has many columns and you are selecting a model from DB, you have the option of specifying a list of columns you wish to select only, let's say ['first_name', 'last_name'], but the table has other columns such as id, email, password, address and for the purposes of performance you choose only these. If at some point in the future (in the code), you decide to call ->refresh() on that model instance, it is rehydrated with all other columns you didn't previously select.
The expected behaviour is that the refresh() method should return only the previously specified columns on this model instance and all related models instead of rehydrating everything.
Steps To Reproduce

On a new laravel app, modify the user schema to include the following columns
Schema::create('users', function (Blueprint $table) {
    $table->id();
    $table->string('first_name');
    $table->string('last_name');
    $table->string('email');
    $table->string('password');
    $table->string('address')->nullable();
    $table->timestamps();
});

Run the migration php artisan migrate

Seed the users with some sample data User::factory()->count(4)->create();

In a controller or route, select a model specifying only columns that you need.
$user = User::select(['first_name', 'last_name'])->first();

Now call ->refresh() on that model instance and take a look at the result.
    $user = User::select(['first_name', 'last_name'])->first();

    // Verify that only selected columns are loaded
    dd($user->toArray()); // Should only show first_name and last_name, uncomment this line to move to the next line

    $user->refresh();

    // Check the model after refresh
    dd($user->toArray()); // Will show all columns, including id, email, password, address

Notes
Now consider the case where you may have have additional relationships, and for each of these related models, you specified some specific columns when you were loading them using the with() method for instance. If these related models also have multiple columns, then there's a chance this could significantly affect performance.

Please read this Carefully
https://laravel.com/docs/11.x/eloquent#refreshing-models

https://laravel.com/docs/11.x/eloquent#refreshing-models
"Maybe you will use 'fresh'."

After @Naimul007A comments, I decided that I should create repo to further explain this problem.


Only include task.args_schema if verbose=True

Currently a placeholder, I'll update the issue later.
 The goal is to de-clutter the client output, which may become important as soon as (some) tasks also include a heavy args_schema attribute.

Deferred to #595


add survey for feature: grouped answers validation against total

Adding new feature test survey to launcher

@shahi645 resolve the conflicts?

@shahi645  Sort out your conflict and we can merge this for you.


[Bug]: Rounded corner even with no radius

Checklist

[X] I have read the appropriate section in the contributing guidelines
[X] I believe this issue is a problem with polybar itself and not a misconfiguration on my part
[X] I have searched for other open and closed issues that may have already reported this problem
[X] I have checked the known issues page for this problem.
[X] I have followed the debugging guide to narrow down the problem to a minimal config.

Steps to reproduce
I have a Dell XPS 15 with 4K display

Installing any Polybar theme from https://github.com/adi1090x/polybar-themes causes rounded edges at the top left corner of the scheme.
I have no parameter in my config related to the radius.
Tried using negative margins to hide the rounded edge but doesn't help either.

Minimal config
;; ┌────────────────────────────────────────────────────────────┐
;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▀░█▀█░█▀█░█▀▀░▀█▀░█▀▀│
;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█░░░█░█░█░█░█▀▀░░█░░█░█│
;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀▀░▀▀▀░▀░▀░▀░░░▀▀▀░▀▀▀│
;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░░░░░░░░░│
;; └────────────────────────────────────────────────────────────┘

;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

;; Global WM Settings

[global/wm]
; Adjust the _NET_WM_STRUT_PARTIAL top value
; Used for top aligned bars
margin-bottom = 30

; Adjust the _NET_WM_STRUT_PARTIAL bottom value
; Used for bottom aligned bars
margin-top = 0

;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

;; File Inclusion
; include an external file, like module file, etc.

include-file = ~/.config/polybar/forest/bars.ini
include-file = ~/.config/polybar/forest/colors.ini
include-file = ~/.config/polybar/forest/modules.ini
include-file = ~/.config/polybar/forest/user_modules.ini

;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

;; Bar Settings

[bar/main]
; Use either of the following command to list available outputs:
; If unspecified, the application will pick the first one it finds.
; $ polybar -m | cut -d ':' -f 1
; $ xrandr -q | grep " connected" | cut -d ' ' -f1
monitor = eDP-1

; Use the specified monitor as a fallback if the main one is not found.
monitor-fallback =

; Require the monitor to be in connected state
; XRandR sometimes reports my monitor as being disconnected (when in use)
monitor-strict = false

; Tell the Window Manager not to configure the window.
; Use this to detach the bar if your WM is locking its size/position.
override-redirect = false

; Put the bar at the bottom of the screen
bottom = false

; Prefer fixed center position for the `modules-center` block
; When false, the center position will be based on the size of the other blocks.
fixed-center = true

; Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%),
; the percentage can optionally be extended with a pixel offset like so:
; 50%:-10, this will result in a width or height of 50% minus 10 pixels
width = 100%
height = 50

; Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
; the percentage can optionally be extended with a pixel offset like so:
; 50%:-10, this will result in an offset in the x or y direction
; of 50% minus 10 pixels
offset-x = 0%
offset-y = 0%

; Background ARGB color (e.g. #f00, #ff992a, #ddff1023)
background = ${color.background}

; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023)
foreground = ${color.foreground}

; Background gradient (vertical steps)
;   background-[0-9]+ = #aarrggbb
;;background-0 =

; Value used for drawing rounded corners
; Note: This shouldn't be used together with border-size because the border
; doesn't get rounded
; Individual top/bottom values can be defined using:
;   radius-{top,bottom}
; radius-top = 0.0
; radius-bottom = 0.0
; radius = 0

; Under-/overline pixel size and argb color
; Individual values can be defined using:
;   {overline,underline}-size
;   {overline,underline}-color
line-size = 0
line-color = ${color.background}

; Values applied to all borders
; Individual side values can be defined using:
;   border-{left,top,right,bottom}-size
;   border-{left,top,right,bottom}-color
; The top and bottom borders are added to the bar height, so the effective
; window height is:
;   height + border-top-size + border-bottom-size
; Meanwhile the effective window width is defined entirely by the width key and
; the border is placed withing this area. So you effectively only have the
; following horizontal space on the bar:
;   width - border-right-size - border-left-size
; border-bottom-size = 0
; border-bottom-color = ${color.foreground}

; Number of spaces to add at the beginning/end of the bar
; Individual side values can be defined using:
;   padding-{left,right}
padding = 2

; Number of spaces to add before/after each module
; Individual side values can be defined using:
;   module-margin-{left,right}
module-margin-left = 1
module-margin-right = 1

;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

; Fonts are defined using <font-name>;<vertical-offset>
; Font names are specified using a fontconfig pattern.
;   font-0 = NotoSans-Regular:size=8;2
;   font-1 = MaterialIcons:size=10
;   font-2 = Termsynu:size=8;-1
;   font-3 = FontAwesome:size=10
; See the Fonts wiki page for more details

font-0 = "Iosevka Nerd Font:size=10;4"
font-1 = "Iosevka Nerd Font:size=10;3"
font-2 = "feather:size=12;3"

; Modules are added to one of the available blocks
;   modules-left = cpu ram
;   modules-center = xwindow xbacklight
;   modules-right = ipc clock

modules-left = launcher sep workspaces sep cpu memory
modules-center = mpd sep date
modules-right = battery network sep volume brightness sep sysmenu sep

;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

; The separator will be inserted between the output of each module
separator =

; Opacity value between 0.0 and 1.0 used on fade in/out
dim-value = 1.0

; Value to be used to set the WM_NAME atom
; If the value is empty or undefined, the atom value
; will be created from the following template: polybar-[BAR]_[MONITOR]
; NOTE: The placeholders are not available for custom values
wm-name =

; Locale used to localize various module data (e.g. date)
; Expects a valid libc locale, for example: sv_SE.UTF-8
locale =

; Position of the system tray window
; If empty or undefined, tray support will be disabled
; NOTE: A center aligned tray will cover center aligned modules
;
; Available positions:
;   left
;   center
;   right
;   none
tray-position = none

; If true, the bar will not shift its
; contents when the tray changes
tray-detached = true

; Tray icon max size
tray-maxsize = 16

; Background color for the tray container
; ARGB color (e.g. #f00, #ff992a, #ddff1023)
; By default the tray container will use the bar
; background color.
tray-background = ${color.background}

; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%)
tray-offset-x = 0
tray-offset-y = 0

; Pad the sides of each tray icon
tray-padding = 0

; Scale factor for tray clients
tray-scale = 1

; Restack the bar window and put it above the
; selected window manager's root
;
; Fixes the issue where the bar is being drawn
; on top of fullscreen window's
;
; Currently supported WM's:
;   bspwm
;   i3 (requires: `override-redirect = true`)
;;wm-restack =

; Set a DPI values used when rendering text
; This only affects scalable fonts
dpi = 192
; Enable support for inter-process messaging
; See the Messaging wiki page for more details.
enable-ipc = true

; Fallback click handlers that will be called if
; there's no matching module handler found.
click-left =
click-middle =
click-right =
scroll-up =
scroll-down =
double-click-left =
double-click-middle =
double-click-right =

; Requires polybar to be built with xcursor support (xcb-util-cursor)
; Possible values are:
; - default   : The default pointer as before, can also be an empty string (default)
; - pointer   : Typically in the form of a hand
; - ns-resize : Up and down arrows, can be used to indicate scrolling
cursor-click =
cursor-scroll =

;; WM Workspace Specific

; bspwm
;;scroll-up = bspwm-desknext
;;scroll-down = bspwm-deskprev
;;scroll-up = bspc desktop -f prev.local
;;scroll-down = bspc desktop -f next.local

;i3
;;scroll-up = i3wm-wsnext
;;scroll-down = i3wm-wsprev
;;scroll-up = i3-msg workspace next_on_output
;;scroll-down = i3-msg workspace prev_on_output

;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

;; Application Settings

[settings]
; The throttle settings lets the eventloop swallow up til X events
; if they happen within Y millisecond after first event was received.
; This is done to prevent flood of update event.
;
; For example if 5 modules emit an update event at the same time, we really
; just care about the last one. But if we wait too long for events to swallow
; the bar would appear sluggish so we continue if timeout
; expires or limit is reached.
throttle-output = 5
throttle-output-for = 10

; Time in milliseconds that the input handler will wait between processing events
;throttle-input-for = 30

; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events
screenchange-reload = false

; Compositing operators
; @see: https://www.cairographics.org/manual/cairo-cairo-t.html#cairo-operator-t
compositing-background = source
compositing-foreground = over
compositing-overline = over
compositing-underline = over
compositing-border = over

; Define fallback values used by all module formats
;format-foreground =
;format-background =
;format-underline =
;format-overline =
;format-spacing =
;format-padding =
;format-margin =
;format-offset =

; Enables pseudo-transparency for the bar
; If set to true the bar can be transparent without a compositor.
pseudo-transparency = false

;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

Polybar log
No response
Expected behavior
Since no radius is set there shouldn't be any rounded edges.
Actual behavior
rounded edges on the top left corner.
Window Manager and Version
xmonad 0.15
Linux Distribution
Manjaro 21.15
Polybar version
polybar 3.5.5

Features: +alsa +curl +i3 +mpd +network(libnl) +pulseaudio +xkeyboard

X extensions: +randr (+monitors) +composite +xkb +xrm +xcursor

Build type: Release
Compiler: /usr/bin/c++
Compiler flags: -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -Wextra -Wpedantic -O3 -DNDEBUG
Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now

Additional Context / Screenshots

I can't reproduce this.
What is weird is that in polybar 3.5.5, a rounded corner configuration like that isn't even possible, only top/bottom radius can be configured. Radius on the left but not the right should not be possible.
Do you have a compositor running?
Does this also happen when you remove all but one module from the bar?

I am, apparently, my picom.conf had corner-radius set to 12, making it zero solved the issue for me. Apologies for the false alarm and thank you for pointing me in the right direction.


alsa-sys dependency fails on some Linux flavors

Summary:
When attempting to work through the Pong tutorial on ElementaryOS, an Ubuntu Linux derivative I was unable to build the tetra package in my project.
Dependency on alsa-sys can cause builds to fail in the correct packages aren't installed. This is probably specific to some but not all Linux distributions.
Resolution:

You can fix this error by installing libasound2-dev with the following command:
sudo apt install libasound2-dev
Source: https://github.com/ggez/ggez/issues/100

Steps to reproduce:
Running cargo run (or cargo watch) in this case results in the following error:
❯ cargo watch
[Running 'cargo check']
   Compiling alsa-sys v0.1.2
   Compiling rustc_version v0.2.3
error: failed to run custom build command for `alsa-sys v0.1.2`

Caused by:
  process didn't exit successfully: `/home/cbzehner/Projects/arewegameyet/pong/target/debug/build/alsa-sys-ccc713fee0bc9388/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "`\"pkg-config\" \"--libs\" \"--cflags\" \"alsa\"` did not exit successfully: exit code: 1\n--- stderr\nPackage alsa was not found in
the pkg-config search path.\nPerhaps you should add the directory containing `alsa.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'alsa\' found\n"', src/libcore/result.rs:1165:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed
[Finished running. Exit status: 101]

Expected behavior:
cargo run should complete successfully.
Additional info:
This can be closed out. I just wanted to document this here in case other people run into it in the future.
The first thing I did to try and resolve this was search the issues for alsa here, now if someone in the future follows the same steps they'll get an answer :smile:

This is documented on the installation page, but you're definitely not the first person to miss it!
I think I need to make it clearer at the beginning of the tutorial that you need to look at that page - it's mentioned very briefly, but it's easy to skim past it. If you have any suggestions on how this could be made clearer, I'll definitely look at implementing them.
I'm glad you were able to get it working, anyway! It's funny how many Tetra issues can be solved by looking at GGEZ's issue tracker 😆 Let me know if you run into any more issues while working through the tutorial.

Thanks! I realized I missed the documentation right after creating this issue :man_facepalming:
I'm having a blast going through the tutorial though. Thanks for putting it together. I found it via arewegameyet


Update the game over message

Update the game over message so people know how to play again!

looks good to me.


adding precompiled bin

Adding precompiled bin for pipeline.
Bin is located in ./Limelighter/bin/

disregard


fix(planner-module): planner module exported

Note: If there are pending changes to the PR, prefix the PR title with "WIP" and add the label "DO NOT MERGE"
Mandatory

[x] What does this PR do?

this module has list, board and details module
each of the exported modules has their own routing config

[ ] What issue/task does this PR references?

[ ] Are the tests Included?

Optional

[ ] Is the documentation Included?

[ ] Are the Release Notes included?

[ ] @mention(s) to expected reviewer(s) included

Ike Plugins (test-keeper)
Thank you @sanbornsen for this contribution!

It appears that no tests have been added or updated in this PR.
Automated tests give us confidence in shipping reliable software. Please add some as part of this change.
If you are an admin or the reviewer of this PR and you are sure that no test is needed then you can use the command /ok-without-tests as a comment to make the status green.
For more information please head over to official documentation. You can find there how to configure the plugin.

@sanbornsen Your image is available in the registry. Run docker pull registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2685 && docker run -it -p 5000:8080 registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2685 and visit http://localhost:5000 to access it.

@sahil143 not part of this at this moment. When we have the board view ready you can just add it to the PlannerModule and it should start working on /board

@sanbornsen Your image is available in the registry. Run docker pull registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2685 && docker run -it -p 5000:8080 registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2685 and visit http://localhost:5000 to access it.

@sanbornsen Your image is available in the registry. Run docker pull registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2685 && docker run -it -p 5000:8080 registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2685 and visit http://localhost:5000 to access it.

@sanbornsen Your image is available in the registry. Run docker pull registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2685 && docker run -it -p 5000:8080 registry.devshift.net/fabric8-ui/fabric8-planner:SNAPSHOT-PR-2685 and visit http://localhost:5000 to access it.

/ok-without-tests


Gradients are zero after applying any transform?

Here's a simple function that just takes an image, performs a "no-op" scaling transformation (though any value of x_factor and y_factor can be used to reproduce this issue), and returns the mean of all the pixels:
def score(rc_rgba):
    transform = transforms.scale(x_factor=1, y_factor=1)
    rc_rgba = transforms.apply_transform(rc_rgba, transform, mask_value=np.array([255, 255, 255, 255]), bilinear=False)
    return rc_rgba.mean()

The gradient of the pixel values should be positive, but they're zero:
image = Image.new('RGBA', size=(2, 2), color=(50, 100, 50))
rc_rgba = np.asarray(image).astype('float32')
print( score(rc_rgba) )
print( grad(score)(rc_rgba) )

219.6875
[[[0. 0. 0. 0.]
  [0. 0. 0. 0.]]

 [[0. 0. 0. 0.]
  [0. 0. 0. 0.]]]

The same thing happens for all the other transformations that I've tested. If I remove the transformation, then the gradients are correct:
113.75
[[[0.0625 0.0625 0.0625 0.0625]
  [0.0625 0.0625 0.0625 0.0625]]

 [[0.0625 0.0625 0.0625 0.0625]
  [0.0625 0.0625 0.0625 0.0625]]]

(The score is now incorrect, but that's a separate issue: #4)

Hi @josephrocca ! Terribly sorry for the late reply! The problem with your issue is the bilinear=False.  Unfortunately the nearest neighbor implementation is not differentiable so you will not get gradients.

After looking into it again I was able to allow gradient coputation for both bilinear and nearest_neighbor samplers. Should be fixed now.
Sorry for taking so long to look into this.


Codegen adds duplicate localUri and mimeType fields to S3ObjectInput

Describe the bug
Prior to complex object support being baked into the CLI, customers had to add the objects manually, so some schemas include definitions like:
type S3Object {
  bucket: String!
  region: String!
  key: String!
}

input S3ObjectInput {
  bucket: String!
  region: String!
  key: String!
  localUri: String!
  mimeType: String!
}

Running amplify codegen against that schema in an iOS project produces an S3ObjectInput struct with duplicate declarations of localUri and mimeType:
public struct S3ObjectInput: GraphQLMapConvertible {
  public var graphQLMap: GraphQLMap

  public init(bucket: String, region: String, key: String, localUri: String, mimeType: String, localUri: String, mimeType: String) {
    graphQLMap = ["bucket": bucket, "region": region, "key": key, "localUri": localUri, "mimeType": mimeType, "localUri": localUri, "mimeType": mimeType]
  }
...

Expected behavior
Codegen should inspect the S3ObjectInput fields for the existence of localUri and mimeType, and not add them if they are already there.
Desktop (please complete the following information):

OS: MacOS 10.14.6
Browser: N/A
Version: N/A
Amplify version: 1.8.5

@palpatim
Thanks for reporting this, this is a bug, we will send out a fix soon.
Additional information:
API.swift file is created after the amplify push, but its contents are almost empty other than the one line "import AWSAppSync" at the tope. Contents are filled only after executing amplify codegen again.

This is still happening, Sept 1, 2019.

This is still happening Feb 18th 2021


Fix URIs in gemspec

There's no CHANGELOG so changelog_uri was removed.

@okuramasafumi
Thank you!
I apologize for the late reply.


Add schema-glob flag

Schema glob allows uses cases like pointing to a directory of migrations or schema files. Implementing schema globbing is more difficult than query globs because the order or running schema files is important. For example, assuming the following directory structure:
one.sql
migrations/
   - 01_create_tables.sql
   - 02_create_roles.sql
   - 03_custom_script.sh
two.sh

Then, the command:
pggen gen go --schema-file 'one.sql' --schema-glob 'migrations/*.sql' --schema-file 'two.sh'

should populate the Docker entrypoint directory with:
01_one.sql
02_01_create_tables.sql
03_02_create_roles.sql
04_03_custom_script.sh

Fixed in 55216fef78381d047e4b7587b8133eb5ba6de932.
I simplified by removing --schema-file so it's just --schema-glob.

Fixed in 55216fef78381d047e4b7587b8133eb5ba6de932.
I simplified by removing --schema-file so it's just --schema-glob.


Thanks you! <3

Just wanted to say thanks for this awesome lib ❤

Glad to hear! Thanks for the feedback 🙏


⚠ Spryr has degraded performance

In 5a51a68, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 4008 ms

Resolved: Spryr performance has improved in f0651ed after 10 minutes.


[Button] Disabled buttons should have cursor: not-allowed by default

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Summary 💡
Disabled buttons should have cursor not allowed by default
Examples 🌈
No response
Motivation 🔦
Helps user better notice the state of the buttons

Can you elaborate on your point?
Disabled buttons already have the default cursor, not the pointer.
Example: https://codesandbox.io/s/basicbuttons-material-demo-forked-oeg9mk

To make it more intuitive for the user, on hover they should probably have cursor: not-allowed;

Does that align with material design, @danilo-leal ?
Codesandbox for cursor: not-allowed with Button: https://codesandbox.io/s/basicbuttons-material-demo-forked-2pe2qn?file=/demo.js

This is a tough one and I don't think Material Design is the place to refer to in order to find out the optimal way. This exact same discussion happened in this thread https://github.com/mui/material-ui/pull/27719#discussion_r690716745 and I don't believe there was a final conclusion.
I'd appreciate it if you @Maia313 read through it and added your perspective. Also, if you happen to have any documentation about it, that would be great.

You can customize it creating your theme also.

customize it, Share a tip：
// css
.pointer-events-none {
    pointer-events: none;
}

.wrapper {
    cursor: not-allowed;
}

// Dom
<div class="wrapper">
    <button class="pointer-events-none">Some Text</button>// OR <MuiButton>....</MuiButton>
</div>

Actually up... It's a shame that there's no way to change the cursor of an MUI button when it is in the "disabled" state. Tried everything, changing the style in sx in style and finally in my global SCSS file. Nothing worked. The button seems to be completely out of flow (even though tab-index="-1"). It's even impossible to select the button using the browser console. I feel like it's not optimal.

In button.tsx generated by ShadCn, you can change the cursor in there. Here is short snippet where cursor will be not-allowed for disabled buttons
const buttonVariants = cva(   'inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',   {     variants: {       variant: {         default: 'bg-primary text-primary-foreground hover:bg-primary/90',         destructive:           'bg-destructive text-destructive-foreground hover:bg-destructive/90',         outline:           'border border-input bg-background hover:bg-accent hover:text-accent-foreground',         secondary:           'bg-secondary border border-solid border-slate-500 text-secondary-foreground hover:bg-secondary/80',         ghost: 'hover:bg-accent hover:text-accent-foreground',         link: 'text-primary underline-offset-4 hover:underline',       },       size: {         default: 'h-10 px-4 py-2',         sm: 'h-9 rounded-md px-3',         lg: 'h-11 rounded-md px-8',         icon: 'h-10 w-10',       },     },     defaultVariants: {       variant: 'default',       size: 'default',     },   }, );
Just. change the below line which is by default to your preferred stylings
disabled:pointer-events-none

It is not that difficult to change the cursor when button is disabled.
sx={{
      "&:disabled": {
           cursor: "not-allowed",
           pointerEvents: "all !important",
      },
}}


Feat(#6505): Add support for Cue Required field feature

Added support for the use of "required" parameter feature of Cuelang that was added in Cue 0.6.
Added validation for workload Parameters, detecting errors such as "Required parameter not passed" and giving more user-friendly messages in application status.
Fixes #6505
Note: waiting for the cuex PR to get merged, so that we can update the Cue version to latest.

@kanchan-dhamane @shreyasHpandya : Do you guys want to rebase on latest main and try this again?

Hi Anoop, we will rebase with the main branch. To avoid breaking existing applications, we are considering enabling required field validation through a feature flag.
This PR needs additional work to add the feature flag for required field validation.

Seems like a great improvement👍🏻

@kanchan-dhamane Since you are upgrading to a newer version of cue, I feel like it could be reasonable to not use a feature flag. Although it might break older components, this seems to be a core feature to cue which alt to be taken for stability of components. I know we have had need for something like this, and this seems like a reasonable addition to require. However, I see an argument for both sides.

Cuex PR is merged now, the current cue version is v0.9.0


CM-803: How to Read a String From a .Resx File in C#

Retest this please

The build is failing because the file Test.cs is saved with an Ansi encoding and contains high ansi characters. You will need to fix this in order for the test to pass.

Thank you for your comments, I´m going to review them all.

@JPetronilhoNunes - I checked the Program.cs and it is UTF8, I would assume the other files are as well, but somehow the Test.cs file is saved as Ansi. You just need to convert it to UTF8 and then be sure that the text strings are correct and don't need to be reentered. The resource files are UTF8 so you could safely copy the string from there.

Hi Jeff,
I´ve reviewed all the issues you reported.
You were right, the Tests.cs was Ansi encoded, must have been when introducing Portuguese chars. Everything is OK now.
Looking forward for your feedback.

All changes are done.
Looking forward for your feedback.

Hi Marko,
I agree that the code introduces some concepts such as generics, but it is also part of the way I explained good practices.
As you might already have seen from the article, I explain that we shouldn´t return a null value, which might happen in cases where the resource requested is invalid.
I don´t want, of course, to overcomplicate the article. If you really think changing it would be better, I´ll proceed.

Hey @JPetronilhoNunes,
While I can see what you are trying to achieve here, and would probably agree on some other types of article, I would like to go with a straightforward path in this one, since it is a mini-article and the concept is pretty simple, so let's go with the simplest approach 😄

@jshergal sounds good, thanks for letting me know.


fix: update isSkippedFile, replace file absolute match w/ regex match

Hey 👋 , I noticed an edge case issue on isFileSkipped. The run flag is accepting a regex but the
isFileSkipped is doing an absolute match. I have seen there is a relevant fix but probably missed this point
https://github.com/gkampitakis/go-snaps/commit/9c6ad4b3de7f4ff998935124bd105535112daff8.
So I changed to regex match and added a unit test.
Did also a minor change in testSkipped, shouldn't affect anything just moved the regex checking if a test
is skipped at the end just to defer the regex matching.

Thanks a lot for the contribution. Yup missed that.
Seems you need to run make format.


Language

Check this property.. property always has default value
public string Language
{
get => this.language;
set
{
if (string.IsNullOrWhiteSpace(value))
throw new ArgumentException("Value cannot be null or white space!", nameof (value));
this.language = this.Language;
}
}

This should be fixed in the next release now.


[SV Unit Age] Add support for Unit - Age

This PR adds support for Unit - Age in Swedish. All patterns and specs are translated. All tests pass.

This PR is superceded by #2278 which also adds support for temperature.


Enumerables branch

added configuration files for rubocop
added module for the enumerable methods
added class for the enumerable methods

Thank you.


#31713 Script that enables automatic modification of platform configs

The provided output has not been formatted yet. However, if the solution meets your requirements, please feel free to specify your preferences regarding the formatting. Also, using this method sometimes requires importing additional elements from other files (e.g. Device).
Thanks!

Closing for inactivity for a week, feel free to re-open if you address the issues.


Removes reference to Diego-SSH plugin

The Diego-SSH plugin no longer works with the DATS. Instead, a version of the cf cli >= 6.14.0 should be installed.

Thanks, @ryanmoran. CLI version 6.13.0 should also work, or are you finding that that's not the case?
Best,
Eric

Well, I'll merge this, but will then change the wording to broaden the requirement to CLI 6.13.0 or later.
Thanks,
Eric


Fix for older MacOS versions which don't support unified logging

This should fix https://github.com/badaix/snapcast/issues/309
I've also added building against MacOS 10.11 (xcode8 - https://docs.travis-ci.com/user/reference/osx/) via TravisCI to make sure that it builds properly.
Aixlog now falls back to SysLog on MacOS < 10.12

FYI: Still not working in 10.11 (os/log.h not found)


Reduce the width of the left side of the wizard

The area, where the steps are located, on the wizard should be reduced to allow for more space in the content area.
No additional visual assets are required for this issue, however CSS and Visuals should work together to ensure the best result.
This is somewhat related to #1740

I opened these issues after talking to @kybaker this morning:
https://github.com/patternfly/patternfly-next/issues/1736 (add a modifier for the narrow nav)
https://github.com/patternfly/patternfly-next/issues/1737 (make this the default in our next breaking change release)
But if we can change the wizard layout now since people haven't adopted it as a component, I can close those issues and track the work in this issue.

@mcoker I'm cool with proceeding with your issues. I'll close this one and get back to you re: the usage so we know which way to proceed. Thanks!


Install warnings on raspberian "buster" OS

Describe the bug
Install warnings that were not present in earlier releases. bug was opened and closed earlier but it is still happening even though it can be ignored. It is however disconcerting.
To Reproduce
pi@raspberrypi:~ $ sudo npm -g install homebridge-harmony
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/homebridge-harmony/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

<EMAIL_ADDRESS>updated 1 package in 64.963s

Expected behavior
no warnings
Config
Raspberian "Buster" release needed for pi4 support.

See #144 , it is linked to a dev dependencies no impact on run (optional means optional ;) )
Sent with GitHawk


Artifacts when zooming out

If we zoom out past the left and right edges, the image array doesn't get overwritten, leaving lots of artifacts.  We could fix this by clearing the image, but the most common use case is when we zoom past limits, so we could also disable that.

Disabling zooming out past the bounds is a good idea, but what if our canvas is square but the data array/image array isn't? We might have a use case where we zoom out to the edge of the array that's wider and still see artifacts from the shorter edge.

Maybe we could make it so we only clear the image when the canvas width is greater than one of the array bounds and also disable zooming past the largest array bounds?

Yup, that'd work!


[Gekidou] upgrade to RN 68 (old arch)

Summary
Upgrades to RN 68 and other dependencies.
To run on Android we will need to upgrade jdk to use version 11, with homebew on macOS you could just install openjdk@11.
For my specific case I have in my profile
export JAVA_8_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home
export JAVA_11_HOME=/usr/local/opt/openjdk@11

alias java8='export JAVA_HOME=$JAVA_8_HOME'
alias java11='export JAVA_HOME=$JAVA_11_HOME'

That way I can switch between versions of the jdk super quick.
Once we decide to move the gekidou branch as the main branch, we definitely need to update docs.
NONE

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/21550
https://circleci.com/gh/mattermost/mattermost-mobile/21549

Artifact links:
https://output.circle-artifacts.com/output/job/e3e21c53-9cc8-4c37-96c1-2dcb848bf496/artifacts/0/tmp/artifacts/Mattermost_Beta.apk
https://output.circle-artifacts.com/output/job/9046e67f-9378-4296-bb47-b4881fb288de/artifacts/0/tmp/artifacts/Mattermost_Beta.ipa

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/21591
https://circleci.com/gh/mattermost/mattermost-mobile/21590

Artifact links:
https://output.circle-artifacts.com/output/job/e88606f7-48b4-42e2-b4de-45917c688dc8/artifacts/0/tmp/artifacts/Mattermost_Beta.apk
https://output.circle-artifacts.com/output/job/c885d50f-d82d-4e54-a2dc-930a6ad70e3d/artifacts/0/tmp/artifacts/Mattermost_Beta.ipa

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/21604
https://circleci.com/gh/mattermost/mattermost-mobile/21603

Artifact links:
https://output.circle-artifacts.com/output/job/9e68e359-3b04-4acf-a88e-9844ab2ff7aa/artifacts/0/tmp/artifacts/Mattermost_Beta.apk
https://output.circle-artifacts.com/output/job/0924e524-1070-4e87-a046-ab9f6e9479db/artifacts/0/tmp/artifacts/Mattermost_Beta.ipa


[DOC] Performance Benchmark for Beast?

Not an issue. I was wondering if there where any metrics on beast compared to other webservers?
Number of requests/sec etc? Something like the Benchmark performance found here : https://github.com/ipkn/crow. Would be very useful when making design decisions
While we are on the topic of performance, is there a resolution to this issue : https://github.com/boostorg/beast/issues/1893?
How can we avoid the penalty for the polymorphic allocation. The solution suggested there didn't seem clear to me.
Thanks for the library!

I was wondering if there where any metrics on beast compared to other webservers?

Nah. Other people can run these benchmarks and publish them.

How can we avoid the penalty for the polymorphic allocation.

Don't use the polymorphic executor.

How can we avoid the penalty for the polymorphic allocation. The solution suggested there didn't seem clear to me.

Firstly, as of boost 1.74, (out soon) I believe Chris has solved the performance problem with polymorphic executors. The new polymophic executor will be spelled asio::any_io_executor. This version does not perform type erasure. (I think internally it uses flags). This allows the compiler to get a much better view on optimisation and crucially, the use of the winding allocator associated with strands.
Secondly, you can avoid polymorphic executors altogether.
For example a socket with a polymorphic executor is spelled:
asio::ip::tcp::socket;

This is a synonym for:
asio::basic_stream_socket<asio::ip::tcp, asio::executor>;  // or asio::any_io_executor in 1.74 and above

You can easily change the default executor type:
asio::basic_stream_socket<asio::ip::tcp, asio::io_context::executor_type>;  // not protected by strand by default
asio::basic_stream_socket<asio::ip::tcp, asio::strand<asio::io_context::executor_type>>;  // all operations protected by strand by default

There are similar synonyms for all asio's types, e.g.:
asio::basic_waitable_timer<std::chrono::steady_clock, asio::wait_traits<std::chrono::steady_clock>, asio::io_context::executor_type>;
asio::awaitable<void, asio::strand<asio::io_context::executor_type>>;

and so on.
I can confirm from personal experience in the finance industry that asio on a properly configured machine is extremely performant and free of jitter (which is a more important issue in actual fact).

@madmongo1  Thank you very much. I am able to get upto 80,000 req/s on my local machine, but it depends a lot on the message that I am sending back. I have seen it drop down to 40,000 for some end points with more data being passed.
I am wondering if I am managing/writing into the buffers properly.
Are there any links to performance tips/examples/other projects?
Links to benchmarks :
https://github.com/scylladb/seastar/issues/522
https://github.com/Qihoo360/evpp/blob/master/docs/benchmark_throughput_vs_asio.md
I think benchmarks would be very useful, especially when it involved comparing to other popular languages. Seeing how many requests can be handled on a single machine, and the associated cost savings could convince more people to use beast. Which I imagine is a goal of this project.
Also a question : Is this complaint still valid? What do people do to get around that?
https://stackoverflow.com/questions/1234750/c-socket-server-unable-to-saturate-cpu/1238315#1238315
Thanks!

Hi @scm-ns ,
The stack overflow answer you link is over ten years old. I suspect a lot has changed in Asio since then. Asio is used in over 100 financial exchanges around the world. If performance were an issue, I'm sure Chris would be aware of of it and take action.
In my experience in the finance industry, Asio has never been the bottleneck. Most servers spend all their time encoding/decoding doubles. The actual computation and networking is normally the least expensive part.
Are you able to provide a github/lab link to your test harness. I would be interested to run the same benchmarks locally and see if there are improvements that can be made to either the code or the methodology.
I would expect a well-written server running on a properly configured host to consume very little CPU time when under load. Most of the work should be pushed to the NIC.


fixup to kube-proxy/kubelet skew requirement fix

followup to https://github.com/kubernetes/website/pull/40672/files; I removed the rule about kube-proxy/kubelet versioning, but missed that there was an example of that rule as well

closing in favor of #40932


[Feature] Background restriction Dialog

I found than one aplication can open "Background restriction" dialog that allow user to disable restrictions immediately ( without navigate to settings and search in a big list of applications )

Is it possible to add method that will open this dialog?

Here is an example:

https://stackoverflow.com/questions/39256501/check-if-battery-optimization-is-enabled-or-not-for-an-app

Already possible.
Have a look over here.

@8BallBomBom
Actually, no! openBatteryOptimizationSettings is opening setting with list of optimized\not optimized applications

I just want to open a dialog (that you see on screenshot above)

Ahhh, as far as i was aware it opened a dialog to add your application to the list, my bad.

Thanks for the request. Since we've moved to AlarmManager for trigger notifications, it seemed to help reduce some of the delays. What type of notifications does your app require?
Having said that, PRs are happily accepted 🙏 😄

It's a regular system intent, you don't need any special anything for it - examine the intent here, and note that react-native core as an Intent api for android that you may call: https://stackoverflow.com/questions/58743818/open-background-restriction-in-settings
I don't believe there is an action needed here?


Issue using deepseek-ai/deepseek-coder-6.7b-instruct

I am using the newest AMI image from yesterday, with optimum-neuronx 0.0.17 (https://aws.amazon.com/marketplace/pp/prodview-gr3e6yiscria2) I have not tried using another image yet.
I am trying to evaluate AutoModelForCausalLM.from_pretrained("deepseek-ai/deepseek-coder-6.7b-instruct") while using torch.cpu I get the following output, for the neuron equivalent, I get \n\n\n\n * 512.
outputs_decoded=Sure, here is a simple implementation of the Quick Sort algorithm in Python:

'''python
def quick_sort(arr):
    if len(arr) <= 1:
        return arr
    else:
        pivot = arr[0]
        less_than_pivot = [x for x in arr[1:] if x <= pivot]
        greater_than_pivot = [x for x in arr[1:] if x > pivot]
        return quick_sort(less_than_pivot) + [pivot] + quick_sort(greater

Reproduction script:
from transformers import AutoTokenizer, AutoModelForCausalLM

def run_generationm_with_model(model_fn):
    model: AutoModelForCausalLM = model_fn()

    tokenizer = AutoTokenizer.from_pretrained("deepseek-ai/deepseek-coder-6.7b-instruct")
    messages=[
        { 'role': 'user', 'content': "write a quick sort algorithm in python."}
    ]
    inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
    # 32021 is the id of <|EOT|> token
    outputs = model.generate(inputs, max_new_tokens=512, do_sample=False, top_k=50, num_return_sequences=1, eos_token_id=32021)
    outputs_decoded = tokenizer.decode(outputs[0][len(inputs[0]):])
    print(f"model.cls={model.__class__} and inputs {tokenizer.decode(inputs[0])} outputs_decoded={outputs_decoded}")

def model_torch():
    model = AutoModelForCausalLM.from_pretrained("deepseek-ai/deepseek-coder-6.7b-instruct")
    return model

def model_neuron():
    from optimum.neuron import NeuronModelForCausalLM
    compiler_args = {"num_cores": 2, "auto_cast_type": "f16"}
    input_shapes = {
        "batch_size": 1,
        "sequence_length": 1024,
    }
    model = NeuronModelForCausalLM.from_pretrained("deepseek-ai/deepseek-coder-6.7b-instruct", export=True, **compiler_args, **input_shapes)
    return model

if __name__ == "__main__":
    run_generationm_with_model(model_neuron)
    run_generationm_with_model(model_torch)

Output:
2024-01-24 23:41:57.000553:  96357  INFO ||NEURON_CACHE||: Compile cache path: /var/tmp/neuron-compile-cache
2024-01-24 23:41:57.000953:  96357  INFO ||NEURON_CC_WRAPPER||: Using a cached neff at /var/tmp/neuron-compile-cache/neuronxcc-<IP_ADDRESS>+4480452af/MODULE_c96948172adcf9c8b465+2c2d707e/model.neff. Exiting with a successfully compiled graph.
2024-01-24 23:41:58.000084:  96357  INFO ||NEURON_CACHE||: Compile cache path: /var/tmp/neuron-compile-cache
2024-01-24 23:41:58.000228:  96362  INFO ||NEURON_CACHE||: Compile cache path: /var/tmp/neuron-compile-cache
2024-01-24 23:41:58.000529:  96357  INFO ||NEURON_CC_WRAPPER||: Using a cached neff at /var/tmp/neuron-compile-cache/neuronxcc-<IP_ADDRESS>+4480452af/MODULE_efe464d909d639de6c33+2c2d707e/model.neff. Exiting with a successfully compiled graph.
2024-01-24 23:41:58.000650:  96357  INFO ||NEURON_CACHE||: Compile cache path: /var/tmp/neuron-compile-cache
2024-01-24 23:41:58.000684:  96362  INFO ||NEURON_CC_WRAPPER||: Using a cached neff at /var/tmp/neuron-compile-cache/neuronxcc-<IP_ADDRESS>+4480452af/MODULE_db8524dccbb520a8be0e+2c2d707e/model.neff. Exiting with a successfully compiled graph.
2024-01-24 23:41:58.000790:  96362  INFO ||NEURON_CACHE||: Compile cache path: /var/tmp/neuron-compile-cache
2024-01-24 23:41:58.000876:  96365  INFO ||NEURON_CACHE||: Compile cache path: /var/tmp/neuron-compile-cache
2024-01-24 23:41:59.000368:  96362  INFO ||NEURON_CC_WRAPPER||: Using a cached neff at /var/tmp/neuron-compile-cache/neuronxcc-<IP_ADDRESS>+4480452af/MODULE_dbb9375e305a952606f0+2c2d707e/model.neff. Exiting with a successfully compiled graph.
2024-01-24 23:41:59.000368:  96357  INFO ||NEURON_CC_WRAPPER||: Using a cached neff at /var/tmp/neuron-compile-cache/neuronxcc-<IP_ADDRESS>+4480452af/MODULE_8fd6c96184408083ace9+2c2d707e/model.neff. Exiting with a successfully compiled graph.
2024-01-24 23:41:59.000375:  96365  INFO ||NEURON_CC_WRAPPER||: Using a cached neff at /var/tmp/neuron-compile-cache/neuronxcc-<IP_ADDRESS>+4480452af/MODULE_82d24899460a51628ab8+2c2d707e/model.neff. Exiting with a successfully compiled graph.
2024-01-24 23:41:59.000467:  96362  INFO ||NEURON_CACHE||: Compile cache path: /var/tmp/neuron-compile-cache
2024-01-24 23:41:59.000506:  96357  INFO ||NEURON_CACHE||: Compile cache path: /var/tmp/neuron-compile-cache
2024-01-24 23:41:59.000812:  96362  INFO ||NEURON_CC_WRAPPER||: Using a cached neff at /var/tmp/neuron-compile-cache/neuronxcc-<IP_ADDRESS>+4480452af/MODULE_b028d4f002a8634d6f7c+2c2d707e/model.neff. Exiting with a successfully compiled graph.
2024-01-24 23:41:59.000940:  96357  INFO ||NEURON_CC_WRAPPER||: Using a cached neff at /var/tmp/neuron-compile-cache/neuronxcc-<IP_ADDRESS>+4480452af/MODULE_8a228e3b0a1ed4cce775+2c2d707e/model.neff. Exiting with a successfully compiled graph.
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
Both `max_new_tokens` (=512) and `max_length`(=20) seem to have been set. `max_new_tokens` will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)
Setting `pad_token_id` to `eos_token_id`:32021 for open-end generation.
2024-Jan-24 23:42:22.0848 95923:96572 [1] nccl_net_ofi_init:1415 CCOM WARN NET/OFI aws-ofi-nccl initialization failed
2024-Jan-24 23:42:22.0848 95923:96572 [1] init.cc:137 CCOM WARN OFI plugin initNet() failed is EFA enabled?
model.cls=<class 'optimum.neuron.modeling.NeuronModelForCausalLM'> and inputs <｜begin▁of▁sentence｜>You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer
### Instruction:
write a quick sort algorithm in python.
### Response:
 outputs_decoded=

(@michaelfeil many \n ommitted)

Loading checkpoint shards: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00,  1.46it/s]
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.
Setting `pad_token_id` to `eos_token_id`:32021 for open-end generation.
model.cls=<class 'transformers.models.llama.modeling_llama.LlamaForCausalLM'> and inputs <｜begin▁of▁sentence｜>You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer
### Instruction:
write a quick sort algorithm in python.
### Response:
 outputs_decoded=Sure, here is a simple implementation of the Quick Sort algorithm in Python:

``python
def quick_sort(arr):
    if len(arr) <= 1:
        return arr
    else:
        pivot = arr[0]
        less_than_pivot = [x for x in arr[1:] if x <= pivot]
        greater_than_pivot = [x for x in arr[1:] if x > pivot]
        return quick_sort(less_than_pivot) + [pivot] + quick_sort(greater_than_pivot)

# Test the function
arr = [10, 7, 8, 9, 1, 5]
print("Original array:", arr)
print("Sorted array:", quick_sort(arr))
``

This code works by selecting a 'pivot' element from the array and partitioning the other elements into two sub-arrays, according to whether they are less than or greater than the pivot. The sub-arrays are then recursively sorted.
<|EOT|>

We have seen similar behavior with togethercomputer/LLaMA-2-7B-32K
You can also replicate the example above with this code:
#num_cores should be changed based on the instance.  inf2.24xlarge has 6 neuron processors (they have two cores each) so 12 total
#larger models will need more cores.  You can make your model smaller by changing fp16 to f8.  Some models may requre num_cores to be a power of 2
compiler_args = {"num_cores": 2, "auto_cast_type": 'fp16'}
input_shapes = {"batch_size": 1, "sequence_length": 2048}

model_to_test = "deepseek-ai/deepseek-coder-6.7b-instruct"

model = NeuronModelForCausalLM.from_pretrained(model_to_test, export=True, **compiler_args, **input_shapes)

from optimum.neuron import pipeline
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained(model_to_test)

p = pipeline('text-generation', model, tokenizer)
p("My favorite place on earth is", max_new_tokens=64, do_sample=True, top_k=50)

Output:
```Both max_new_tokens (=64) and max_length(=20) seem to have been set. max_new_tokens will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)
Setting pad_token_id to eos_token_id:32021 for open-end generation.
2024-Jan-30 15:04:44.0384 58491:62420 [0] nccl_net_ofi_init:1415 CCOM WARN NET/OFI aws-ofi-nccl initialization failed
2024-Jan-30 15:04:44.0384 58491:62420 [0] init.cc:137 CCOM WARN OFI plugin initNet() failed is EFA enabled?
[{'generated_text': 'My favorite place on earth is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is is iis is is is is is is is is isis is is is is'}]

Could this be the effect of Rope Scaling?

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!

I met the same issue, is there any updated?

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!


Titagr

Environment (please complete the following information):

OS (e.g., Windows 10):
Extension version (e.g., 1.2.3):

Describe the bug:

Repro steps:

Expected behavior:

Additional context:

Closing as invalid. Feel free to come back with information about the issue you are encountering.


ClipboardJS not being loaded

Getting the following error on blogs
post-1/:35 Uncaught ReferenceError: ClipboardJS is not defined

Hi @asher-gh! Nice catch, thank you!


aws-sso-cli: skip broken TestServerWithSSL

Description of changes

skip upstream broken test as described in https://github.com/synfinatic/aws-sso-cli/issues/1030 (upstream fix not planned until next major release)
refactor checkFlags pattern

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 336441 run on x86_64-linux 1

1 package built:

aws-sso-cli


appveyor.yml unnecessarily complicated

Most string scalars (but not all) are double quoted scalars, making the file less readable.
YAML allows any string through backslashes within double quotes, but also requires backslashes and double quotes to be escaped. The example can be made much more readable
by using non-quoted scalar strings, or single quoted ones (in case the scalar starts with a % or can be interpreted as an integer.
This was originally proposed as change for the user guide (https://github.com/pypa/python-packaging-user-guide/issues/221#issuecomment-249680859)
(Depending on how the program that loads the file handles the value for PYTHON_ARCH, the quotes around those values could be removed  as well, assuming the program transparently converts from integer to string internally if necessary. )

Unfortunately this wasnt merged at the time, and now needs a rebase.
Also can you test if it works without quotes around PYTHON_ARCH.
It is only used at https://github.com/ogrisel/python-appveyor-demo/blob/f54ec3593bcea682098a59b560c1850c19746e10/appveyor/install.ps1#L225

I am not sure how I can test the PYTHON_ARCH, I have not seen the code that actually reads the YAML and sets the environment variables before invoking install.ps1. It could be that all scalars are loaded as strings, but I have no idea where that is done, nor how to test that.


Feature: #528 optimize network requests

Closes #528
Description

This PR improves the performance of the app by reducing the amount of requests made to the blockchain.

The first improvement is made on the tokens, before this pr, everytime the interval of updating the app executes, we were getting all the tokens instances again and again from the blockchain, now we save them into a cache the first time and then we return the cached tokens in we have them

The second improvement is made on the transactions tabs, instead of retrieving and generating all the transactions again with web3, we save them into a cache that we update everytime the etag value changes. Ideally, the backend should return a 304 response with no content, as it is implemented now, everytim we make a fetch, we receive all the tokens again even if the etag didn't changed. We have discussed this behaviour with @Uxio0 and agreed in maintain this at it's now, because we would probably change the api in the future and that improvement won't be used

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

@Agupane
Issue:
I can't see the names of the tokens I have in a safe I loaded. Most of those tokens are custom:

URL: https://pr680--safereact.review.gnosisdev.com/app/#/safes/0x9913B9180C20C6b0F21B6480c84422F6ebc4B808/balances
For comparison check the same safe here: https://rinkeby.gnosis-safe.io/app/#/safes/0x9913B9180C20C6b0F21B6480c84422F6ebc4B808/balances

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

The issue I reported in the previous comment was solved. the tokens are displayed properly
It looks good to me. Using the redux devtool I've checked that the calls to add_incoming, add_cancellation and add_transaction are no longer called every 5 seconds
Check the fix of an issue that was showing some transactions with the wrong type.

Travis automatic deployment:
https://pr680--safereact.review.gnosisdev.com/app

Good job!

@fernandomg @nicosampler could you please give another look and merge if everything is ok?

@nicosampler, if you want to give it a final look.
I've been working on this lately, so there's not much I can add.


Getting an Attribute Value

I am attempting to use minixml to obtain the value of an attribute but it does not appear to work,  I have a simple XML test file test3.xml that I am attempting to extract an attribute value from.

 Hello

I can do a a findPath ( mxmlFindPath(tree, "group/g2sBody") and it will find the element g2sBody, but mxmlElementGetAttr(node,"egmId")  will return a NULL value.
Lookinng for some insight.

Can you attach the file you are trying to load?

Hello Michael,
commsOnline.xml is the one that I want to work with in the future.
I created test3.xml to see if I can get an attribute value.
mini-xml will find the element g2s:g2sBody by using xpath. If I try to get
the element name I get
any quick advice?
thanks
On Thu, Oct 12, 2017 at 1:14 PM, Michael R Sweet<EMAIL_ADDRESS>wrote:

Can you attach the file you are trying to load?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/michaelrsweet/mxml/issues/208#issuecomment-336221327,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AfOq2xwxodg2y5Qsk9o6RKeJwr4VfjrVks5srlbpgaJpZM4P3YiW
.

Can you attach your test3.xml file to this issue? Kind of hard to provide any guidance without seeing what is going into Mini-XML...

I thought I had attached it...sorry
On Thu, Oct 12, 2017 at 6:43 PM, Michael R Sweet<EMAIL_ADDRESS>wrote:

Can you attach your test3.xml file to this issue? Kind of hard to provide
any guidance without seeing what is going into Mini-XML...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/michaelrsweet/mxml/issues/208#issuecomment-336310979,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AfOq26cFosF4NwegIeWMX4mx1QJmzkoXks5srqQMgaJpZM4P3YiW
.

test3.txt

OK, simple fix: use "g2s:epmId" as the element name. Mini-XML does not support namespaces, so you need to use the full attribute name.

Sorry, I have been trying that and I simply get a  value.
here is my test code:
if ((node = mxmlFindPath(tree, "group/g2s:g2sBody")) != NULL)
{
  fputs(" Found g2s:g2sbody element in XML tree.\n", stderr);

}

const char *attribute;
const char *egmId = "g2s:egmId";
attribute =  mxmlElementGetAttr (node, egmId);
printf ("attribute value is: %s \n", attribute);
RESULT
Found g2s:g2sbody element in XML tree.
attribute value is: (null)
On Thu, Oct 19, 2017 at 7:52 PM, Michael R Sweet<EMAIL_ADDRESS>wrote:

Closed #208 https://github.com/michaelrsweet/mxml/issues/208.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/michaelrsweet/mxml/issues/208#event-1302181046, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AfOq2yhznwSqNFQA48kNJ-jLjtIzc5Gsks5st-66gaJpZM4P3YiW
.


The UI for device interfaces cannot handle same slot number range with a different prefix

When adding two different ranges of interfaces for a device, the UI doesn't like it when you use the same slot number even if the prefix is different, example:
Both of these added to single device
Fa0/[1-48]
Gi0/[1-4]
Will show as this:
Gi0/1	100BASE-TX (10/100ME)
Fa0/1	100BASE-TX (10/100ME)
Gi0/2	100BASE-TX (10/100ME)
Fa0/2	100BASE-TX (10/100ME)
Gi0/3	100BASE-TX (10/100ME)
Gi0/3	100BASE-TX (10/100ME)
Gi0/4	100BASE-TX (10/100ME)
Gi0/4	100BASE-TX (10/100ME)
Fa0/5	100BASE-TX (10/100ME)
Fa0/6	100BASE-TX (10/100ME)
Fa0/7	100BASE-TX (10/100ME)
...
(This is from a Cisco 3560-48PS which has 48 fast ethernet ports and 4 gig sfp ports. When you do a sh int desc it shows as Fa0/1-48 then Gi0/1-4.)
If I just simply do this, there's no issue:
Fa0/[1-48]
Gi1/[1-4]
But doing that doesn't match the switch. It also appears that there is no issue actually adding the interfaces and they are there in the database correctly, I assume, but just not shown properly.
ps RIP issue title, I have no idea how to condense that down further.

I think this is a duplicate of #778 and #224.

Oh sorry, I swear I searched, but I left the filters to is:issue is:open, that's why I didn't see 778 and I must of just skipped over 284.
But yes, it is duplicate of those.

No worries; there are quite a few issues to dig through. I'm hoping to have #284 sorted prior by the 1.9.0 release.


Change 'Install-PowerShell.ps1' to query for metadata from our file

Fix #5456

Add a metadata.json file.
Change 'Install-PowerShell.ps1' to query for metadata from metadata.json

@TravisEz13 The AppVeyor CI will fail because metadata.json is not in master yet. But I have tested it using my fork before changing the URL pointing to powershell repo master branch.


GNU Screen + Sshd Artifacts

Describe the bug
I don't know of a word to describe the issue/glitch occurring, so I am uploading a video to demonstrate. I will refer to these misplaced and left over screen characters as "artifacts".
Artifacts are appearing on the screen when using the combination of GNU Screen+SSH (see video below).
Steps To Reproduce

Boot the 22.05 iso
Set a root password. sudo passwd root
Login to the machine from another pc/device. ssh root@machineip
Run: screen
Set minimal shell prompt. PS1="\w "
Clear the terminal: reset
Enter gnu screen copy mode ctrl+a [
Start selecting text on the screen: spacebar

Expected behavior
When replicating these conditions with other distros, like Debian, these screen artifacts do not appear.
https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/current-live/amd64/iso-hybrid/debian-live-11.4.0-amd64-standard+nonfree.iso
Screenshots
https://user-images.githubusercontent.com/1575546/185747929-ba4ec570-5ef2-42f9-b262-ef8777b6f348.mp4
Additional context
I also tested this this issue against zsh and nushell, and it persists. So I eliminate bash as the source of issue.
I also tested this issue against Termux, Connectbot, and Mate Terminal, and it persists. So I eliminate the terminal emulator as the source of the issue.
I also tested this issue by using Tmux instead of GNU Screen, and did Not experience Artifacts. So we might eliminate Sshd as the source of the issue.
My suspicion is that the issue appears to be with in the NixOS build of GNU Screen, and not Sshd.

This issue persists on installation also. Both stable and unstable NixOS.

try this overlay
  nixpkgs.overlays = [
    (self: super: {
      screen = super.screen.overrideAttrs (oldAttrs: rec {
        configureFlags = oldAttrs.configureFlags ++ [ "--enable-rxvt_osc" ];
      });
    })
  ];

i merged the pr anyways even if it does not fix this

reopen this if the fix didn't work

Apologizes for my late response. I will try it and report back. Thank you 👍🏻

Added and nixos-rebuild boot&& reboot
Unfortunately, the fix didn't work. No apparent difference

the above overlay does not fix it on my end either

I just upgraded to 23.05, and happy to report that the issue appears to be resolved. Things are looking very nice now


Update docs to use Scrapy terminology

We're quite committed to Scrapy now, and if we did move away then the docs would require significant work.
For the same reasons as outlined in #228 we should update the docs to no longer refer to scrapers, but spiders (for example).

There are a few instances of 'scrape' in code comments, but these aren't serious (few people will ever read them, and no end users will), and can be fixed whenever we next edit those files.
The CLI commands use 'scrape', but we can rename these as part of #261, which will involve a greater amount of rework if pursued.


[Bug] unrecognized arguements: spleeter:5stems

Description
I've been dealing with several errors with this program for the past month, and i thought i finally figured it out. apparently i was wrong.
Step to reproduce

Installed using Conda
Run as python -m spleeter separate -i C:\Users\smcco\Music\Customs i've made\Comin_in_Hot.mp3 -c mp3 spleeter:5stems -o /output/C:\Users\smcco\Music\
Got spleeter: error: unrecognized arguments: spleeter:5stems

Output
(base) C:\Users\smcco>python -m spleeter separate -i C:\Users\smcco\Music\Customs i've made\Comin_in_Hot.mp3 -c mp3 spleeter:5stems -o /output/C:\Users\smcco\Music\
usage: spleeter [-h] {separate,train,evaluate} ...
spleeter: error: unrecognized arguments: spleeter:5stems

Environment

OS
Windows

Installation type
Conda

RAM available
16GB

Hardware spec
GPU: nVIDIA GeForce 1050 Ti, Intel UHD Graphics 630 / CPU: Intel i5-8300

Additional context
I think this program hates me.

Hi @JohnSmith2007
Could you please look at the documentation ? you have (once again) made an error in your command syntax ( a missing -p) it's not an issue with the program.
Please be aware that creating bug reports like this is time consuming on our side. Before opening a ticket please make sure that your problem is not in your command or already solved in the FAQ.


help please

Your environment has been set up for using Node.js 4.2.6 (ia32) and npm.
C:\Users\salah>git clone https://github.com/davidmann4/agario-feeder-bot
Cloning into 'agario-feeder-bot'...
remote: Counting objects: 369, done.
remote: Compressing objects: 100% (79/79), done.
remote: Total 369 (delta 44), reused 0 (delta 0), pack-reused 284Receiving objects:  85% (314/369), 52.01 KiB | 84.00 KiReceiving objects: 100% (369/369), 68.68 KiB | 84.00 KiB/s, done.
Resolving deltas: 100% (209/209), done.
Checking connectivity... done.
C:\Users\salah>npm install package.json
<EMAIL_ADDRESS>node_modules\package.json
C:\Users\salah>npm install libs
<EMAIL_ADDRESS>node_modules\libs
└──<EMAIL_ADDRESS>C:\Users\salah>node feeder.js
module.js:328
throw err;
^
Error: Cannot find module 'C:\Users\salah\feeder.js'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
C:\Users\salah>

how to run feeder.js in nodejd comand prompt
did i done something wrong in the command above please help and thx
i have updated the whole script

Try to put it in a empty folder

wow that is interessting, is it already working? what was the solution?

tutorial video: https://www.youtube.com/watch?v=FVNNo93ZVGg

thank you so much david
now this the new issue
C:\DATA\agario-feeder-bot-master>node feeder.js
agario-feeder-bot started! Join a game in Chrome with the Userscript installed.
Press CTRL + C to stop this script.
startup
server-booted-up

this is what i get i have followed all steps in your video

so whats the problem with that? install the userscript like in the video and join a game

make sure that in your Proxy.txt you have working proxies. Davidmann put his own proxies in, I think he might've paid for some. I just searched free  http proxies online and tested to see which one works.
You can tell that it's working when the command prompt starts saying stuff like "bot_1 spawning" "The leaderboard is ..." etc.


Fix typos for docker commands

I noticed that there are several typos in the docker command provided. Please confirm the correctness of the modification.

Hey @frankxu2004 can you review this PR

Hey @lwaekfjlk Thansk for pointing out. Good catch


TypeError: unsupported operand type(s) for +=: 'dict' and 'list'

When running
cjio no_bld.json merge buildings.json save LOD2.json
I get the following error;
Parsing no_bld.json
v0.6 is not the latest version, and not everything will work.
Upgrade the file with 'upgrade_version' command: 'cjio input.json upgrade_version save out.json'
Merging files
{
"cityjson_version": "0.6",
"epsg": null,
"extensions": false,
"cityobjects_total": 214,
"cityobjects_present": [
"Building"
],
"vertices_total": 13766,
"transform/compressed": true,
"geom_primitives_present": [
"MultiSurface"
],
"materials": false,
"textures": true
}
Traceback (most recent call last):
File "C:\OSGeo4W64\apps\Python36\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\OSGeo4W64\apps\Python36\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\OSGeo4W64\apps\Python36\Scripts\cjio.exe_main.py", line 9, in
File "C:\OSGeo4W64\apps\Python36\lib\site-packages\click\core.py", line 764, in call
return self.main(*args, **kwargs)
File "C:\OSGeo4W64\apps\Python36\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "C:\OSGeo4W64\apps\Python36\lib\site-packages\click\core.py", line 1164, in invoke
return _process_result(rv)
File "C:\OSGeo4W64\apps\Python36\lib\site-packages\click\core.py", line 1102, in _process_result
**ctx.params)
File "C:\OSGeo4W64\apps\Python36\lib\site-packages\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "C:\OSGeo4W64\apps\Python36\lib\site-packages\cjio\cjio.py", line 96, in process_pipeline
cm = processor(cm)
File "C:\OSGeo4W64\apps\Python36\lib\site-packages\cjio\cjio.py", line 265, in processor
cm.merge(lsCMs)
File "C:\OSGeo4W64\apps\Python36\lib\site-packages\cjio\cityjson.py", line 997, in merge
self.j["appearance"]["vertices-texture"] += cm.j["appearance"]["vertices-texture"]
TypeError: unsupported operand type(s) for +=: 'dict' and 'list'

Running cjio buildings.json merge no_bld.json save LOD2.json does work. The buildings.json file contains appearance textures where no_bld.json doesn't

first could you please run what was first printed in red:
v0.6 is not the latest version, and not everything will work.
Upgrade the file with 'upgrade_version' command: 'cjio input.json upgrade_version save out.json'

and then see if the error is still there

Same result after upgrading both input files

fixed in 6a6eed420ce5fb44864a2ce76e4965938a7cc1ae


dump all the JS

Most everything can be hacked around with CSS so do that and get rid of jquery

Getting rid of all the bootstrap stuff breaks only two things - the Interests dropdown and the dynamic automagical navbar resizing. Probably fixable with custom CSS and/or JS if absolutely required. Consider just dumping the nav auto-resizing?


az ams | missing examples in reference content

Describe the bug
Bug category:
Missing information
Request:
The Azure CLI reference guidelines specifiy at least two examples for each command. Please review the Azure CLI reference guidelines for examples and parameters and add missing content to your source code.
If a parameter accepts JSON content, provide a JSON example in the parameter long or short summary, or in a separate code block.
Issue summary:
Understanding that not all “create” commands directly generate Microsoft revenue, every “create” or “add” minimally make a revenue-producing Azure resource possible. Consequently, create commands are the most important examples to add. Of secondary importance are reference commands with complex parameters (JSON, YAML, URLs, complex Azure resource IDs, multi-valued lists, key:value pairs, conditional parameters, parameter pairs ...).
Subgroups with no examples:
Note: The commands for these subgroups are in the second table (below).  Page views (PVs) for a subgroup are "the sum of all PVs for every autogenerated reference doc in that subgroup." When there is > 1 command in a single GitHub file, the same PV amount is counted for both commands. PVs are being provided as a general idea of customer interest.

Subgroup name
Status
Command count
6 month PVs

az ams account
GA
6
72

az ams account mru
GA
2

az ams account storage
GA
4
13

az ams asset-track
GA
6

az ams live-output
GA
4
63

az ams streaming-endpoint akamai
GA
2
13

az ams streaming-locator
GA
6
117

az ams streaming-policy
GA
4
22

Reference commands with no examples:
Note: Some of these command subgroups have at least one example. This table is a list of all az ams commands with no examples. PV values repeat when one GitHub file contains > 1 reference command. PVs are being provided as a general idea of customer interest.

Reference name
Parameter count
is Create
6 month PVs

az ams account check-name
2

72

az ams account create
10
yes
72

az ams account delete
4

72

az ams account list
1

72

az ams account mru set
6

az ams account mru show
4

az ams account show
4

72

az ams account sp reset-credentials
9

10

az ams account storage add
7
yes
13

az ams account storage remove
5

13

az ams account storage set-authentication
8

13

az ams account storage sync-storage-keys
5

13

az ams account update
9

72

az ams account-filter delete
5

20

az ams account-filter list
2

20

az ams account-filter show
5

20

az ams account-filter update
17

20

az ams asset create
7
yes
169

az ams asset delete
5

169

az ams asset get-encryption-key
5

169

az ams asset get-sas-urls
7

169

az ams asset list-streaming-locators
5

169

az ams asset show
5

169

az ams asset update
11

169

az ams asset-filter delete
9

22

az ams asset-filter list
0

22

az ams asset-filter show
6

22

az ams asset-filter update
18

22

az ams asset-track create
10
yes

az ams asset-track delete
6

az ams asset-track list
3

az ams asset-track show
6

az ams asset-track update
10

az ams asset-track update-data
7

az ams content-key-policy delete
5

34

az ams content-key-policy option add
27
yes
6

az ams content-key-policy option remove
6

6

az ams content-key-policy show
6

34

az ams job cancel
7

33

az ams job delete
6

33

az ams job show
6

33

az ams job start
14

33

az ams job update
12

33

az ams live-event create
25
yes
11

az ams live-event delete
5

11

az ams live-event reset
6

11

az ams live-event show
5

11

az ams live-event standby
6

11

az ams live-event start
6

11

az ams live-event stop
7

11

az ams live-output create
10
yes
63

az ams live-output delete
6

63

az ams live-output list
3

63

az ams live-output show
6

63

az ams streaming-endpoint akamai add
8
yes
13

az ams streaming-endpoint akamai remove
6

13

az ams streaming-endpoint create
16
yes
50

az ams streaming-endpoint delete
5

50

az ams streaming-endpoint get-skus
5

50

az ams streaming-endpoint list
2

50

az ams streaming-endpoint scale
6

50

az ams streaming-endpoint show
5

50

az ams streaming-endpoint start
6

50

az ams streaming-endpoint stop
6

50

az ams streaming-endpoint update
20

50

az ams streaming-locator create
12
yes
117

az ams streaming-locator delete
5

117

az ams streaming-locator get-paths
5

117

az ams streaming-locator list
5

117

az ams streaming-locator list-content-keys
5

117

az ams streaming-locator show
5

117

az ams streaming-policy create
28
yes
22

az ams streaming-policy delete
5

22

az ams streaming-policy list
5

22

az ams streaming-policy show
5

22

az ams transform delete
0

35

az ams transform list
4

35

az ams transform show
5

35

Related command
az ams
Errors
n/a
Issue script & Debug output
n/a
Expected behavior
n/a
Environment Summary
Azure CLI 2.63.0
Additional context
No response

Thank you for opening this issue, we will look into it.

Closing as won't fix as Azure Media Services was retired on 6/30/2024 (https://aka-ms/ams-retirement)

Closing

@dbradish-microsoft - The GA status is not correct. It should be marked as deprecated.


API unclear

Unclear what API is called here, is it the subscription and resource group of the Sentinel/Log analytics workspace? Or Azure Maps?

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

ID: 47ed0acd-16df-e264-b7bb-db7f5785d3fd
Version Independent ID: 64116a32-8fd9-aa78-beee-3a1f30cd839a
Content: Enrich entities with geolocation data in Microsoft Sentinel using REST API
Content Source: articles/sentinel/geolocation-data-api.md
Service: microsoft-sentinel
Sub-service: microsoft-sentinel
GitHub Login: @batamig
Microsoft Alias: bagol

@Jeremyp87
Thanks for your feedback! We will investigate and update as appropriate.

@Jeremyp87
Hi This doc shows you how to enrich entities in Microsoft Sentinel with geolocation data using the REST API.
You use this API the same as all other Microsoft Sentinel APIs - documented here:
https://docs.microsoft.com/rest/api/securityinsights/
You can find general information about getting started with REST here: https://docs.microsoft.com/rest/api/azure/

It is still unclear what to deploy in order for this to work. What resource is "Microsoft.SecurityInsights"?
https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SecurityInsights/enrichment/ip/geodata/?ipaddress={ipAddress}&api-version={api-version}

Microsoft "Security Insights" was the previous name for Sentinel, so that portion of the REST call is referencing the Sentinel API. The enrichment call is detailed more here:
Domain Whois
https://learn.microsoft.com/en-us/rest/api/securityinsights/preview/domain-whois/get?tabs=HTTP
Does that help @Jeremyp87?

@Jeremyp87
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation


Task messages sometimes overlap with std:log outputs

In scripts with many std:log:warn outputs, sometimes the outputs of std:task messages overlap with the warnings in the terminal (and end up somewhat garbled).  I think this only happens with terminals and not when redirecting output to a file.

What do you mean by std:task messages? Can you provide an example?

I found this when working on CACI-International/ergo-cpp#8, e.g. a logged warning might look something like:
warn: unused variable `i`

and a std:task message might look something like:
* compiling `some/long/path/to/source.cpp`

Sometimes they seem to collide, and you end up with messages that look something like:
warn: unused variable `i`th/to/source.cpp`

Hmm, that shouldn't be possible, that's all buffered and rendered. I have seen that behavior when there are programs running which write directly to /dev/tty (which will just generally mess with the rendering state). I believe it would also occur with std:io:stderr as that doesn't pause the rendering like std:io:stdout does (maybe that should change).


Bump Karmada dependencies to v1.12.1

What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR bumps Karmada dependencies to v1.12.1.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
NONE

cc @warjiang
Please take a look.

/assign


Increase the max postgres connections in staging to match production

There is no reason for them to be different, as both environments should be the same.
This change will restart Postgres in staging.
I decided not to merge the two staging and production settings into a common configuration file, because I'm not sure if that may affect any other production Postgres databases which would lead to them being restarted in office hours.

Sounds good to me. Do we need to update the files or can they inherit it from a non node specific file?
Also do you want to update the icinga thresholds too?

I believe that should be everything, I'm basing it on the last PR I raised to do this: https://github.com/alphagov/govuk-puppet/pull/6953
In terms of the icinga thresholds, they are automatically calculated from this value as 80% and 90%:
https://github.com/alphagov/govuk-puppet/blob/bf597dccef53b63a47a6bd8225537f5eb748d4b3/modules/govuk_postgresql/manifests/server.pp#L98-L99


Add changelog for v1.4.5

What type of PR is this?
/kind documentation
What this PR does / why we need it:
Add changelog for v1.4.5.
Does this PR introduce a user-facing change?:
NONE

/assign @kron4eg

/cherrypick release/v1.4


The better way to use OBJECT libraries

When using below libraries in the computing, OBJECT should be removed to compile a static library.
https://github.com/facebookincubator/velox/blob/main/velox/connectors/hive/CMakeLists.txt#L15
https://github.com/facebookincubator/velox/blob/main/velox/functions/prestosql/CMakeLists.txt#L18
https://github.com/facebookincubator/velox/blob/main/velox/functions/prestosql/aggregates/CMakeLists.txt#L20
Any suggestions on a better way for me to use them? Thanks.

This issue is still needed.