ags app launcher crashes hyprland with commit e989a0bcffac81092ed2a7e371f5225c113f689d

Regression?
Yes
System Info and Version
 System/Version info
Hyprland, built from branch  at commit 8a5f9bbb394ddeb4be9a9df6248b41b07d84ea66  (keybinds: handle null monitor in pinActive (7122)).
Date: Wed Jul 31 17:54:07 2024
Tag: v0.41.2-144-g8a5f9bbb, commits: 5030

flags: (if any)

System Information:
System name: Linux
Node name: CachyOS
Release: 6.10.2-2-cachyos-lto
Version: #1 SMP PREEMPT_DYNAMIC Sat, 27 Jul 2024 16:45:35 +0000

GPU information:
2f:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] [1002:731f] (rev c1) (prog-if 00 [VGA controller])

os-release: NAME="CachyOS Linux"
PRETTY_NAME="CachyOS"
ID=cachyos
ID_LIKE=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://cachyos.org/"
DOCUMENTATION_URL="https://wiki.cachyos.org/"
SUPPORT_URL="https://forum.cachyos.org/"
BUG_REPORT_URL="https://github.com/cachyos"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=cachyos

plugins:

======Config-Start======

Config File: /home/bluewy/.config/hypr/hyprland.conf: Read Succeeded
# -----------------------------------------------------
# Monitors
# -----------------------------------------------------
source = $HOME/.config/hypr/sections/monitors.conf

# -----------------------------------------------------
# Inputs
# -----------------------------------------------------
source = $HOME/.config/hypr/sections/inputs.conf

# -----------------------------------------------------
# Keybinds
# -----------------------------------------------------
source = $HOME/.config/hypr/sections/keybinds.conf

# -----------------------------------------------------
# Environment Variables
# -----------------------------------------------------
source = $HOME/.config/hypr/sections/env.conf

# -----------------------------------------------------
# Window Rules
# -----------------------------------------------------
source = $HOME/.config/hypr/sections/window_rules.conf

# -----------------------------------------------------
# Behaviour Rules
# -----------------------------------------------------
source = $HOME/.config/hypr/sections/behaviours.conf

# -----------------------------------------------------
# Tiling Rules
# -----------------------------------------------------
source = $HOME/.config/hypr/sections/tiling.conf

# -----------------------------------------------------
# Aesthetics
# -----------------------------------------------------
source = $HOME/.config/hypr/sections/aesthetics.conf

# -----------------------------------------------------
# Autostart
# -----------------------------------------------------
source = $HOME/.config/hypr/sections/autostart.conf

Config File: /home/bluewy/.config/hypr/sections/monitors.conf: Read Succeeded
monitor = DP-2<EMAIL_ADDRESS>0x0, 1

misc {
   vfr = on
   vrr = 2
}

general {
   allow_tearing = true
}

Config File: /home/bluewy/.config/hypr/sections/inputs.conf: Read Succeeded
# -----------------------------------------------------
# Keyboard
# -----------------------------------------------------
input {
   kb_layout = bluewy
   kb_variant = colemak_dh_wide_custom_iso
   kb_options = grp:win_space_toggle
}

# -----------------------------------------------------
# Mouse
# -----------------------------------------------------
device {
   name = steelseries-steelseries-rival-3
   sensitivity = -0.5
   accel_profile = flat
}

Config File: /home/bluewy/.config/hypr/sections/keybinds.conf: Read Succeeded
# -----------------------------------------------------
# Main Keybinds
# -----------------------------------------------------

bind = SUPER, 1, focusworkspaceoncurrentmonitor, 1
bind = SUPER, 2, focusworkspaceoncurrentmonitor, 2
bind = SUPER, 3, focusworkspaceoncurrentmonitor, 3
bind = SUPER, 4, focusworkspaceoncurrentmonitor, 4
bind = SUPER, 8, focusworkspaceoncurrentmonitor, 8
bind = SUPER, 9, focusworkspaceoncurrentmonitor, 9
bind = SUPER, 0, focusworkspaceoncurrentmonitor, 10

bind = SUPER + SHIFT, 1, movetoworkspace, 1
bind = SUPER + SHIFT, 2, movetoworkspace, 2
bind = SUPER + SHIFT, 3, movetoworkspace, 3
bind = SUPER + SHIFT, 4, movetoworkspace, 4
bind = SUPER + SHIFT, 8, movetoworkspace, 8
bind = SUPER + SHIFT, 9, movetoworkspace, 9
bind = SUPER + SHIFT, 0, movetoworkspace, 10

bind = SUPER, Left, movefocus, l
bind = SUPER, Right, movefocus, r
bind = SUPER, Up, movefocus, u
bind = SUPER, Down, movefocus, d

bind = SUPER, N, movefocus, l
bind = SUPER, I, movefocus, r
bind = SUPER, U, movefocus, u
bind = SUPER, E, movefocus, d

bind = SUPER + SHIFT, Left, movewindoworgroup, l
bind = SUPER + SHIFT, Right, movewindoworgroup, r
bind = SUPER + SHIFT, Up, movewindoworgroup, u
bind = SUPER + SHIFT, Down, movewindoworgroup, d

bind = SUPER + SHIFT, N, movewindoworgroup, l
bind = SUPER + SHIFT, I, movewindoworgroup, r
bind = SUPER + SHIFT, U, movewindoworgroup, u
bind = SUPER + SHIFT, E, movewindoworgroup, d

bind = SUPER, B, togglefloating,
bind = SUPER, S, togglesplit,

bind = SUPER, G, togglegroup
bind = SUPER, K, lockgroups, toggle
bind = SUPER, period, changegroupactive
bind = SUPER, H, changegroupactive, b

bind = SUPER, M, fullscreen, 1
# bind = SUPER, Q, fakefullscreen
bind = SUPER, F, fullscreen

bindm = SUPER, mouse:272, movewindow
bindm = SUPER, mouse:273, resizewindow

bind = SUPER + SHIFT, Escape, exit
bind = SUPER, X, killactive
# -----------------------------------------------------
# Other Keybinds
# -----------------------------------------------------

bind = SUPER, L, exec, wezterm

bind = SUPER, Y, exec, ags -t ags-launcher
bind = SUPER, P, exec, ags -r 'recorder.screenshot(true)'
bind = SUPER + SHIFT, P, exec, ags -r 'recorder.screenshot()'
bind = SUPER, TAB, exec, ags -t ags-overview
bind = ALT, TAB, exec, ags -t ags-overview

bind = SUPER, V, exec, cliphist list | fuzzel --dmenu | cliphist decode | wl-copy
bind = SUPER, O, exec, $HOME/.config/fuzzel/scripts/hyprland/show_quick_options.fish

# -----------------------------------------------------
# Laptop Specific
# -----------------------------------------------------

# screen brightness
bind = , XF86MonBrightnessUp, exec, brightnessctl s +5%
bind = , XF86MonBrightnessDown, exec, brightnessctl s 5%-

# keyboard brightness
bind = , xf86KbdBrightnessUp, exec, brightnessctl -d *::kbd_backlight set +33%
bind = , xf86KbdBrightnessDown, exec, brightnessctl -d *::kbd_backlight set 33%-

# volume and media control
bind = , XF86AudioRaiseVolume, exec, pamixer -i 5
bind = , XF86AudioLowerVolume, exec, pamixer -d 5
bind = , XF86AudioMicMute, exec, pamixer --default-source -m
bind = , XF86AudioMute, exec, pamixer -t
bind = , XF86AudioPlay, exec, playerctl play-pause
bind = , XF86AudioPause, exec, playerctl play-pause
bind = , XF86AudioNext, exec, playerctl next
bind = , XF86AudioPrev, exec, playerctl previous

Config File: /home/bluewy/.config/hypr/sections/env.conf: Read Succeeded
env = XDG_CURRENT_DESKTOP, Hyprland
env = XDG_SESSION_DESKTOP, Hyprland
env = XDG_SESSION_TYPE, wayland

env = XDG_CONFIG_HOME, $HOME/.config
env = XDG_DATA_HOME, $HOME/.local/share
env = XDG_STATE_HOME, $HOME/.local/state
env = XDG_CACHE_HOME, $HOME/.cache

env = PATH, $PATH:$HOME/.local/bin:$HOME/.cargo/bin

# wayland stuff
env = SDL_VIDEODRIVER, wayland
env = CLUTTER_BACKEND, wayland
env = GDK_BACKEND, wayland,x11
env = QT_QPA_PLATFORM, wayland;xcb

# more wayland stuff but from other sources
env = WAYLAND, 1
env = MOZ_DBUS_REMOTE, 1
env = MOZ_ENABLE_WAYLAND, 1
env = _JAVA_AWT_WM_NONREPARENTING, 1
env = BEMENU_BACKEND, wayland
env = ECORE_EVAS_ENGINE, wayland_egl
env = ELM_ENGINE, wayland_egl

# enable tearing support for hyprland
env = WLR_DRM_NO_ATOMIC, 1

env = EDITOR, nvim

# Manage sensitive information with kwallet.
env = GIT_ASKPASS, /usr/bin/ksshaskpass
env = SSH_ASKPASS, /usr/bin/ksshaskpass
env = SSH_ASKPASS_REQUIRE, prefer

# GTK stuff
env = GTK_THEME, Sweet-Dark

# QT stuff
env = QT_QPA_PLATFORMTHEME, qt6ct
env = QT_WAYLAND_DISABLE_WINDOWDECORATION, 1

# pointer
env = XCURSOR_THEME, Bibata-Modern-Classic

Config File: /home/bluewy/.config/hypr/sections/window_rules.conf: Read Succeeded
layerrule = blur, launcher
layerrule = blur, waybar
layerrule = blur, gtk-layer-shell
layerrule = blur, nwg-dock
layerrule = blur, class:^(ags.*)$

layerrule = animation slide right, swaync-control-center
layerrule = animation slide top, waybar

windowrulev2 = idleinhibit fullscreen, class:^(.*)$

# Improve responsiveness for all applications with exceptions.
# example of how the regular expression might look like -> class:^(?!LibreWolf$|Firefox$).*$
windowrulev2 = immediate, class:^(?!LibreWolf$).*$

# Disable potentially annoying requests with exceptions.
windowrulev2 = suppressevent fullscreen, class:^(?!LibreWolf$).*$
windowrulev2 = suppressevent maximize, class:^(.*)$
windowrulev2 = suppressevent activate, class:^(.*)$
windowrulev2 = suppressevent activatefocus, class:^(.*)$

# Make jetbrains applications less buggy.
windowrulev2 = noinitialfocus, class:^(jetbrains-.*)$, title:^(win.*)$

Config File: /home/bluewy/.config/hypr/sections/behaviours.conf: Read Succeeded
input {
   follow_mouse = 2
   mouse_refocus = false
   float_switch_override_focus = 0
}

gestures {
   workspace_swipe = true
   workspace_swipe_fingers = 3
}

misc {
   key_press_enables_dpms = true

   new_window_takes_over_fullscreen = 2

   disable_hyprland_logo = true
}

xwayland {
   force_zero_scaling = true
}

experimental {
   explicit_sync = true
}

Config File: /home/bluewy/.config/hypr/sections/tiling.conf: Read Succeeded
general {
   layout = dwindle
}

dwindle {
   pseudotile = yes
   preserve_split = yes
}

Config File: /home/bluewy/.config/hypr/sections/aesthetics.conf: Read Succeeded
# -----------------------------------------------------
# Visuals
# -----------------------------------------------------

general {
   gaps_in = 4
   gaps_out = 8
   border_size = 3
   col.active_border = rgba(E06C75ff) # red
   col.inactive_border = 0xff5c6370   # grey
}

group {
   col.border_active = rgba(98C379CC)          # green
   col.border_inactive = rgba(c678ddff)        # grey
   col.border_locked_active = rgba(E06C75ff)   # red
   col.border_locked_inactive = rgba(c678ddff) # grey

   groupbar {
      enabled = false
      gradients = false
      text_color = 0xffabb2bf
      font_size = 10
      col.active = rgba(98C379CC)          # green
      col.inactive = rgba(d19a66ff)        # orange
      col.locked_active = rgba(e06c75ff)   # red
      col.locked_inactive = rgba(d19a66ff) # orange
      render_titles = false
   }
}

decoration {
   blur {
      size = 7
      passes = 2
   }
   rounding = 4
   drop_shadow = false
}

# -----------------------------------------------------
# Animations
# -----------------------------------------------------

animations {
   enabled = yes

   bezier = easeOutQuart, 0.165, 0.84, 0.44, 1
   animation = fade, 0
   animation = workspaces, 1, 7, easeOutQuart, slide
   animation = windowsIn, 1, 7, easeOutQuart, popin 0%
   animation = windowsOut, 1, 7, easeOutQuart, popin 0%
   animation = windowsMove, 1, 7, easeOutQuart, popin 0%
   animation = layersIn, 1, 7, easeOutQuart, popin 0%
   animation = layersOut, 1, 7, easeOutQuart, popin 0%
}

Config File: /home/bluewy/.config/hypr/sections/autostart.conf: Read Succeeded
# Make systemd aware of the specified environment variables.
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP
exec-once = systemctl --user import-environment QT_QPA_PLATFORMTHEME

# Use preferred privilage elevation tool.
exec-once = /usr/lib/polkit-kde-authentication-agent-1

# Use portals for additional features. (though its started automatically)
exec-once = systemctl start --user xdg-desktop-portal-hyprland
exec-once = systemctl start --user xdg-desktop-portal-gtk

# Get widgets such as status bar, notifications popups, launcher...
exec-once = sleep 1 && ags -c $HOME/.config/ags-ayulr/config.js

# Listen for user absence.
# exec-once = hypridle

# Record notifications history.
exec-once = bash $HOME/.config/hypr/scripts/hyprland/log_notifications.sh $XDG_DATA_HOME/notify.log

# Set background wallpaper.
# exec-once = hyprpaper

# Enable clipboard capabilities.
exec-once = wl-paste --type text --watch cliphist store  # stores only text data
exec-once = wl-paste --type image --watch cliphist store # stores only image data

# Start sensitive information manager.
exec-once = /usr/lib/pam_kwallet_init

# Prevent idle during sound playback.
exec-once = wayland-pipewire-idle-inhibit

======Config-End========

Description
Bisecting shows this commit e989a0bcffac81092ed2a7e371f5225c113f689d is the culpurit. In tty it says: terminated by signal SIGSEGV (Address boundary error).
I'm using ayulr's ags config with some minor tweaks.
How to reproduce

open ags app launcher
select and run app
it crashes hyprland

Crash reports, logs, images, videos
No response

fix 3 issues
gtk will come back to haunt you
can you post a debug stacktrace

also @MightyPlaza I blame you, your fault

is there a crash report?

asked for one, we are waiting

I looked forma it but i did not find any that matches the correct date.

debug stacktrace it is then

i also tried following the steps for obtaining debug stack trace but coredumpctl says there aren't any

disable crash reporter (HYPRLAND_NO_CRASHREPORTER=1)

following the wiki + no crash reporter

what should i do?

can you send the full logs running ags only after hyprland has started?

This is the log by running hyprland debug build, using wezterm to run hyprctl rollinglog --follow >> ~/downloads/loo... and then running ags, though this time it crashed the moment i ran ags in the terminal.
looogsss.txt

does commenting your window rules change anything?

it still crashes, i tried leaving only my inputs and keybinds related configuration modified while i used the default values for the rest but it also crashed

idk if this helps

does running ags with ayulr's ags config and then using the ags app launcher to try run an app also causes the crash for you guys?

diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index b0af0e9b..f2f58814 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -2255,16 +2255,25 @@ void CCompositor::updateFullscreenFadeOnWorkspace(PHLWORKSPACE pWorkspace) {
 }

 void CCompositor::changeWindowFullscreenModeInternal(const PHLWINDOW PWINDOW, const eFullscreenMode MODE, const bool ON) {
+    if (!PWINDOW)
+        return;
+
     setWindowFullscreenInternal(
         PWINDOW, (eFullscreenMode)(ON ? (uint8_t)PWINDOW->m_sFullscreenState.internal | (uint8_t)MODE : ((uint8_t)PWINDOW->m_sFullscreenState.internal & (uint8_t)~MODE)));
 }

 void CCompositor::changeWindowFullscreenModeClient(const PHLWINDOW PWINDOW, const eFullscreenMode MODE, const bool ON) {
+    if (!PWINDOW)
+        return;
+
     setWindowFullscreenClient(PWINDOW,
                               (eFullscreenMode)(ON ? (uint8_t)PWINDOW->m_sFullscreenState.client | (uint8_t)MODE : ((uint8_t)PWINDOW->m_sFullscreenState.client & (uint8_t)~MODE)));
 }

 void CCompositor::setWindowFullscreenInternal(const PHLWINDOW PWINDOW, const eFullscreenMode MODE) {
+    if (!PWINDOW)
+        return;
+
     if (PWINDOW->m_sWindowData.syncFullscreen.valueOrDefault())
         setWindowFullscreenState(PWINDOW, sFullscreenState{.internal = MODE, .client = MODE});
     else
@@ -2272,6 +2281,9 @@ void CCompositor::setWindowFullscreenInternal(const PHLWINDOW PWINDOW, const eFu
 }

 void CCompositor::setWindowFullscreenClient(const PHLWINDOW PWINDOW, const eFullscreenMode MODE) {
+    if (!PWINDOW)
+        return;
+
     if (PWINDOW->m_sWindowData.syncFullscreen.valueOrDefault())
         setWindowFullscreenState(PWINDOW, sFullscreenState{.internal = MODE, .client = MODE});
     else

any difference?

i tried it and i'm still crashing with the patch

can you send the logs of doing the same thing on a version where it doesn't crash?

this is the log where i open wezterm start logging with hyprctl, run ags and open librewolf:
looogsss3.txt
the problem is also present on my laptop, i tried getting the stack trace but coredumpctl says something .journal is truncated, googling suggests to increase size limit which i did from 32G to 64G but when i tried it again it said the same thing

Not sure if related, but Hyprland is crashing for me on commit 37e1411e8d94fe8f3fb678588a7df9b8f931910f even when launching basic applications like "Kitty" terminal and "Firefox" (or most apps in general).
Happy to make a separate issue and provide further info or try patches in a few hours, but here's the log for the time being:
hyprland.log

For me it crashes when I open up an Electron app (VS Code, Discord).
I am on 37e1411e8d94fe8f3fb678588a7df9b8f931910f and will post logs soon

so you wanna tell me that all of you can't get a debug stacktrace?

I am also experiencing crashes.
To reproduce make sure no_gaps_when_only = 1 and open a tiled window
This happens with any application that starts in tiled mode

thanks, reprod

fixed that one, is this done or do we have more than 1 bug here?

i can confirm that the culprit is no_gaps_when_only = 1, i guess it's my bad for not checking what ags was doing with hyprctl.

I have no_gaps_when_only=0, so I think the Electron/GTK thing is it's own bug

so you wanna tell me that all of you can't get a debug stacktrace?
fwiw I am running latest rn and not crashing at all lole

Surprisingly yeah - no output from coredumpctl debug hyprland, and no crash log either (no files generated).
Probably not relevant, but when  building (regular or debug), I get:
Package 'epoll-shim', required by 'virtual:world', not found

And when doing make debug on commit 60571cd5ccc76f91209ef2faac93ecea542de221 (border: fixup infinite recursion) as well as the commits before that, I get the following at the end:
-- Build files have been written to: /home/nktnet/programs/Hyprland/build
cmake --build ./build --config Debug --target all
[0/2] Re-checking globbed directories...
[201/202] Linking CXX executable Hyprland
chmod -R 777 ./build
chmod: changing permissions of './build/install_manifest.txt': Operation not permitted
make: *** [Makefile:21: debug] Error 1

Build does succeed with sudo, but still no crash report or debug stacktrace.

I have no_gaps_when_only=0, so I think the Electron/GTK thing is it's own bug

I can confirm that i am also experiencing armcord which is an electron based app crash.

for me the electron based app (armcord) does not crash hyprland, it does its loading animation thingy and then disappears. is it the same for you @Visual-Dawg?

the other bug which makes armcord (an electron based app) to crash is caused by the commit 37e1411e8d94fe8f3fb678588a7df9b8f931910f
armcord output:
Wayland detected, using PipeWire for video capture.
Config is fine
Window config is fine
[Config Manager] Current config: {
    "windowStyle": "native",
    "channel": "stable",
    "armcordCSP": true,
    "minimizeToTray": true,
    "keybinds": [],
    "alternativePaste": false,
    "multiInstance": false,
    "mods": "vencord",
    "spellcheck": true,
    "performanceMode": "none",
    "skipSplash": false,
    "inviteWebsocket": true,
    "startMinimized": false,
    "dynamicIcon": false,
    "tray": true,
    "customJsBundle": "https://armcord.app/placeholder.js",
    "customCssBundle": "https://armcord.app/placeholder.css",
    "disableAutogain": true,
    "useLegacyCapturer": false,
    "mobileMode": false,
    "trayIcon": "default",
    "doneSetup": true,
    "clientName": "ArmCord",
    "customIcon": "/opt/armcord/resources/app.asar/assets/desktop.png"
}
ArmCord has been run before. Skipping setup.
No performance modes set
Setting up CSP unstricter...
[Window state manager] [object Object]
[Window state manager] [object Object]
[Window state manager] [object Object]
[Window state manager] [object Object]
Downloading mod bundle
https://github.com/Vendicated/Vencord/releases/download/devbuild/browser.js
[Window state manager] [object Object]
Starting screenshare module...
[arRPC > ipc] listening at /run/user/1000/discord-ipc-0
[arRPC > websocket] listening on 6463
[arRPC > process] started
[Mod loader] Loaded ArmCord Mod Loader made by Vendicated
[3347:0801/130916.863092:ERROR:browser_main_loop.cc(278)] Gtk: gtk_widget_get_scale_f[3347:0801/130919.778437:ERROR:browser_main_loop.cc(278)] Gtk: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed                                                                                [3347:0801/130920.039633:ERROR:wayland_event_watcher.cc(43)] libwayland: xdg_wm_base@23: error -1: Surface already has a different role

/usr/bin/armcord: line 14:  3347 Trace/breakpoint trap   "$electron" /usr/share/armcord/app.asar $USER_FLAGS "$@"

I use Vesktop, but VS Code and Vesktop instantly bring Hyprland to crash.
I struggle a bit with a debug trace as my TTY currently gets spammed with warning messages, making it rather daunting to work with it.
I'll try in the evening though

@BluewyDiamond post WAYLAND_DEBUG=1 of armcord in a new issue
this is solved, closing


JOIN on Query

I was wondering wether there is a way to JOIN on a Query which just defines a FROM (no SELECTs etc.).
i.e.
Here is the sample SQL I am aiming to get
SELECT
  *
FROM
  "Sales"
  INNER JOIN "Items" ON ("Sales"."Item" = "Items"."Item");

However, my code is equivalent to
var query = new Query("Sales")
    .Join(new Query("Items"), join => join.On("Sales.Item", "Items.Item"));

which results in the following SQL
SELECT
  *
FROM
  "Sales"
  INNER JOIN (
    SELECT
      *
    FROM
      "Items"
  ) ON ("Sales"."Item" = "Items"."Item");

my code considers all tables as Querys which only works for the "Sales" table (as that is the initial Query), passing a Query containing only a table name results in the Join JOINing on a subquery of the table passed...

You can simply pass the table name as string,
var query = new Query("Sales")
    .Join("Items", j => j.On("Sales.Item", "Items.Item"));

Or even simpler without using the join lambda
var query = new Query("Sales")
    .Join("Items", "Sales.Item", "Items.Item");

since the join condition is simple columns equality condition.
Here is a live example https://sqlkata.com/playground?code=var query %3D new Query("Sales")
    .Join("Items"%2C j %3D> j.On("Sales.Item"%2C "Items.Item"))%3B

Thanks for the response.
In reality I should have started my previous post with a big thanks to you, SqlKata is really a great tool and I really appreciate the work you did and that you open sourced it!
To better phrase my question, I am using SqlKata within my project and I am wrapping my objects (whether EF models etc.) in there respective types, hence I made all my "tables" create a Query which works in the case of a single table query and it works in a JOIN query for the table on the LHS.
This is not really an issue as It might 100% be that I need to rethink the design of my little project, but I was more wondering whether there is a way in SqlKata to do it.
Once again thank you for this great tool!

Reopening this issue as a PR was created to help me solve my issue.


Update alpine to use a specific tiny version to help renovate

Using 3.14.0 in this PR to ensure renovate triggers to go to 3.16.0 and not the daily builds of alpine.


FINERACT-1091: Adding validation for constitution ID

Description
Describe the changes made and why they were made. Ignore if these details are present on the associated Jira ticket
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!

[ ] Commit message starts with the issue number from https://issues.apache.org/jira/projects/FINERACT/. Ex: FINERACT-646 Pockets API.

[ ] Coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions have been followed.

[ ] API documentation at fineract-provider/src/main/resources/static/api-docs/apiLive.htm has been updated with details of any API changes.

[ ] Integration tests have been created/updated for verifying the changes made.

[ ] All Integrations tests are passing with the new commits.

[ ] Submission is not a "code dump".  (Large changes can be made "in repository" via a branch.  Ask on the list.)

Our guidelines for code reviews is at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide

Duh! I broke the build by applying the "minor suggestion for error message ID constant name" myself and impatiently squash merging it before waiting for the build to pass.. :imp: Sorry about this. Fixed in #1190.


question on firebase

Hey,
Was wondering if you had code or stubs to get around the missing firebase files that are called in the store/feed/actions.ts script?
Looks great.

I updated in README. Thanks!

Awesome - will give it a go thanks!

On 11 Jul 2020, at 6:45 pm, chuongTran<EMAIL_ADDRESS>wrote:
I updated in README. Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/chuongtran27/react-native-tiktok-clone/issues/1#issuecomment-657017116, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUR2HMZHO7HVL2AFZPQP5TR3ARCFANCNFSM4OXGMEPQ.

Hey there - Is there a DB schema for firebase somewhere in the code? (Sorry if I missed it). If not, it would be helpful to have perhaps a screen grab of the other 2 tables (comments, recommended feed fields)
Thanks
Cameron

On 11 Jul 2020, at 6:45 pm, chuongTran<EMAIL_ADDRESS>wrote:
I updated in README. Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/chuongtran27/react-native-tiktok-clone/issues/1#issuecomment-657017116, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUR2HMZHO7HVL2AFZPQP5TR3ARCFANCNFSM4OXGMEPQ.

Just create 2 collection following_feeds and recommend_feeds in firestore like firebase_template/firestore.png and it should work.


fix(openai): Support o1 streaming

Thanks @bracesproul ! I am currently facing this issue. Has this been released yet?

Yes, it is in the latest @langchain/openai.


BOM handling

refs https://github.com/alm-tools/alm/issues/227
TODO:

[ ] Use rawText + with proper bom detection, instead of text when setting contents of monaco models

Another Idea I tried locally : I tried lieing to monaco models about the true nature of the text (in doc cache) i.e. stripping the bom out before setting the contents. I thought I could just adjust the code edits as the come and go ... but that doesn't fly either since its more than just code edits, all the intelligence is driven around monaco model contents matching whatever contents the backend language service has.


Using a manifest file for the pod-styles rather then a concatenated file.

Putting this out there for discussion. Major benefits are that we can get more detailed sourcemaps due to each file being imported separately into the manifest file. Also, we only have to modify this file when we add or delete a styles.scss file, not when any css is changed.
Downsides are that it take a little longer due to the preprocessor having to take the extra weight of importing all the files. More so requires the eventual consumer of this file to be able to import css files in an expected and supported way.
@topaxi @ebryn @anyonehere please comment as to any feedback you might have.

@trentmwillis and @dschmidt you had had some discussion similar to this around #24 and #27 .. Not sure if you have moved on from this project, but care to weigh in on any findings or hindsight you might have had since then?

:+1: In my opinion it's better to improve the sourcemaps, even it costs a bit of performance.

:+1: I like it, and it's much clearer whats actually happening for the consumer/user.

cool. Would like to get the tests back up and running before merging this and #140

Great!


About the semantic of propagation

I met a problem when implementing the propagate method. If there is a graph like this: 0->1, 0->2, 1->2. If we call list(nx.bfs_edges(g, 0)), it gives edges [(0, 1), (0, 2)]. The edge (1, 2) is ignored. I wonder what is the right semantic for the bfs propagation in GNN? What are the messages to be computed?

That's why topdown.py has a walk_list routine to come up with the
navigation order.
-zz
On Fri, Jun 15, 2018 at 4:00 PM, Minjie Wang<EMAIL_ADDRESS>wrote:

I met a problem when implementing the propagate
https://github.com/zzhang-cn/dgl/blob/master/python/dgl/graph.py#L289
method. If there is a graph like this: 0->1, 0->2, 1->2. If we call list(nx.bfs_edges(g,
0)), it gives edges [(0, 1), (0, 2)]. The edge (1, 2) is ignored. I
wonder what is the right semantic for the bfs propagation in GNN? What are
the messages to be computed?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/zzhang-cn/dgl/issues/9, or mute the thread
https://github.com/notifications/unsubscribe-auth/AIKVUd-4MOcTfagzin1T3Mp_QlSIXQpsks5t82m6gaJpZM4UpKc4
.

--
Zheng Zhang https://shanghai.nyu.edu/academics/faculty/zheng-zhang 张峥
Professor of Computer Science, NYU  Shanghai 上海纽约大学计算机系教授
Room 1118, 1555 Century Avenue
Pudong New District, Shanghai 200122, China
中国上海市浦东新区世纪大道1555号1118室, 200122
T Shanghai office 上海办公室 +86 021 2059 5687
T China mobile 中国手机 +86 156 1808 6522
E 电子邮件<EMAIL_ADDRESS><EMAIL_ADDRESS>

I think this is a different problem. The walk_list in topdown.py can be implemented using the iterator argument (see here on how the iterator is called and here for how the topdown.py is using walk_list, you can see they are the same).
This question is about if user specify iterator='bfs'. What is the correct semantics? If the graph is a tree, there is no problem since the BFS traversal will cover all the edges. This is not true for general graph.

Do you mean this? BFS can be defined over general graph in networkx.
Another useful navigation order maybe just a random work starting from u of length d.

As discussed in the meeting, let us put this problem aside. We can implement tree traversals first (e.g. pre-order, mid-order, post-order) and think about this later when we need it.


Add company name feature into AddressBook

Add Company Name feature into AddressBook.

Use cn/ as parameter
Should only be up to 100 characters

resolved conflicts

LGTM :)


[BUG] [LifeAndLiving] Money piles are not reduced

Describe the bug
There is functionality to reduce the stacks of money and coins, but it does not work.
Expected behavior
The money stacks/piles are reduced properly.
Additional context
It was broken in one of the experimental patches of the game.

Fixed for v2.0.2 of LifeAndLiving


Issue 174, 289: Update ICMP Specification

Closes #174
Fixes #289

Apparently the test coverage for generator/generator.py went down but i did not make any changes to this module.

The dropped test coverage seems to be an bug of codecov. I think we can just ignore it here.
The ICMP specification looks fine for me now. But I don't like that you changed two unrelated things in one commit. Please split it and tag it with the right issue (Ref. #???).
This branch also needs to be rebased to develop.


Update contributing for notebook files

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

Current dependencies on/for this PR:

#513  👈
#510 : 1 other dependent PR (#512 )
#509
main

This stack of pull requests is managed by Graphite.

Merge activity

Feb 22, 11:18 PM EST: @carolineechen started a stack merge that includes this pull request via Graphite.


How do I separate resolution HLS video with this library?

I'm playing hls video with androi TV and it have feature map video with multiple track as 1080/720/480/audio....
As I see in Demo of Exoplayer I can debug to see it.
Please help me how to track it with this library.

you can get Real Player by (IjkMediaPlayer) GSYVideoManager.instance().getMediaPlayer();
or  (IjkExoMediaPlayer) GSYVideoManager.instance().getMediaPlayer();
defualt type is IjkMediaPlayer
GSYVideoManager.instance().setVideoType() change it
example:
IjkMediaPlayer had getTrackInfo() getSelectedTrack() selectTrack() deselectTrack() api


cheat sheet

let's start a page in the wiki that has a cheat sheet for the markup used by sphinx (reStructured text) and some of the handy sphinx directives...
including how-to:

[ ] create url links (rST)
[ ] header 1 (rST)
[ ] header 2 (rST)
[ ] bold text (rST)
[ ] italic text (rST)
[ ] underline text (rST)
[ ] embed raw html (sphinx directive)

found a cool cheat sheet here: http://openalea.gforge.inria.fr/doc/openalea/doc/_build/html/source/sphinx/rest_syntax.html#colored-boxes-note-seealso-todo-and-warnings


A Javascript error occured in the main process

The Issue
Steps to reproduce

just start the App in KDE Manjaro rolling release 17
then close the app
the error apear after 2-3 seconds on screen

Expected behaviour
App should close normally, without any error apearint
Actual behaviour
After closing the App in Manjaro KDE 17.0 Stable Rolling release, this error apear:
A Javascript error occured in the main process
Uncaught Exception:
TypeError: Cannot read property 'loadURL' of null
at ChildProcess.subpy.on (/opt/LBRY/resources/app/main.js:58:10)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
System Configuration

About
Your copy of LBRY is up to date.
daemon (lbrynet)	0.9.1
wallet (lbryum)	2.7.13
interface	0.9.1
Platform	Linux (Linux-4.10.4-1-MANJARO-x86_64-with-ManjaroLinux-17.0-Gellivara)
Screenshots

Thanks for reporting! This sounds like it is an issue with the app, rather than the daemon itself, so I moved it here:
https://github.com/lbryio/lbry-app/issues/30
I'm marking this one as closed. Thanks!


Testing with passport

Hi all,
I need to write some tests. I'm working with laravel passport as authentication mechanism.
I want to test my data against the authenticated user, where you see only your own data.
But a simple test gives me always error 500, "Flat3\Lodata\Exception\Protocol\InternalServerErrorException: There is already an active transaction"
this is my test:
`#[Test]
public function it_returns_actors_data()
{
$this->authenticate();
    $response = $this->getJson($this->baseUrl . '/UserData');

    $response->assertOk();
}`

I want to check it's my own data, if pagination works and the structure of the data.
Thanks,
Yannick

Hi @yannickdesmadryl, I’m not sure exactly why you’d get that error, but it might be worth checking out the lodata tests themselves and copy how they do their requests ?


Address fails to parse email addresses with extended characters

For example<EMAIL_ADDRESS>AddressListsParser can not parse<EMAIL_ADDRESS>Reason was: Expected one of !, #, $, %, &, ', *, +, -, /, =, ?, ^, _, `, {, |, }, ~,
, (, ", ., :, <, @, , at line 1, column 4 (byte 4) after
/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/mail-2.1.3/lib/mail/elements/address_list.rb:29:in `initialize'

Judging by our data, these are becoming quite common.

Just came across this issue - any updates?

Which version of mail will include this fix? I see that it's not in the latest 2.6 release yet. Is this something slated for 2.7.x?

@lunaru 2.7.0! You can try with 2.7.0.rc1 or bundle against the master branch.

Thanks for working on this. It is greatly appreciated.
I tested with 2.7.0.rc1 but it doesn't seem to be happy with umlauts:
Here's an example:
>> puts Gem.loaded_specs["mail"].version
2.7.0.rc1
nil
>> Mail::Address.new('über<EMAIL_ADDRESS>Mail::Field::ParseError: Mail::AddressList can not parse |über<EMAIL_ADDRESS>Reason was: Only able to parse up to ü
	from /Users/beders/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mail-2.7.0.rc1/lib/mail/parsers/address_lists_parser.rb:15336:in `parse'
	from /Users/beders/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mail-2.7.0.rc1/lib/mail/elements/address.rb:191:in `parse'
	from /Users/beders/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mail-2.7.0.rc1/lib/mail/elements/address.rb:31:in `initialize'
	from (irb):9:in `new'
	from (irb):9

@beders I had the same problem. It looks like it's not in the 2.7.0.rc1 branch, but rather only on master still

@lunaru Thank you! That indeed works!

Bump, any fixes scheduled to head on the master branch? Thanks.


install with juju resources -  Download snap "core" (1577) from channel "stable" timeout

This is for doing an install where firewall is blocking some the access to the snap store so using juju resources to upload the resources to the controller. However, this is still failing because of the core snap.
This is juju status:
$ juju status
Model              Controller    Cloud/Region  Version
k8s-maas-resource  testlxdimage  larry         2.2-beta2
App                    Version  Status   Scale  Charm                  Store       Rev  OS      Notes
easyrsa                3.0.1    active       1  easyrsa                jujucharms    8  ubuntu
etcd                            error        3  etcd                   jujucharms   29  ubuntu
flannel                         waiting      0  flannel                jujucharms   13  ubuntu
kubeapi-load-balancer  1.10.0   active       1  kubeapi-load-balancer  jujucharms   10  ubuntu  exposed
kubernetes-master               error        1  kubernetes-master      jujucharms   17  ubuntu
kubernetes-worker               error        3  kubernetes-worker      jujucharms   21  ubuntu  exposed
Unit                      Workload  Agent  Machine  Public address  Ports  Message
easyrsa/0*                active    idle   0        <IP_ADDRESS>           Certificate Authority connected.
etcd/0                    error     idle   1        <IP_ADDRESS>           hook failed: "install"
etcd/1*                   error     idle   2        <IP_ADDRESS>           hook failed: "install"
etcd/2                    error     idle   3        <IP_ADDRESS>           hook failed: "install"
kubeapi-load-balancer/0*  active    idle   4        <IP_ADDRESS>           NGINX is ready
kubernetes-master/0*      error     idle   5        <IP_ADDRESS>           hook failed: "install"
kubernetes-worker/0       error     idle   6        <IP_ADDRESS>           hook failed: "install"
kubernetes-worker/1*      error     idle   7        <IP_ADDRESS>           hook failed: "install"
kubernetes-worker/2       error     idle   8        <IP_ADDRESS>           hook failed: "install"
Machine  State    DNS           Inst id  Series  AZ          Message
0        started  <IP_ADDRESS>  6ctrbt   xenial  Production  Deployed
1        started  <IP_ADDRESS>  khccbr   xenial  default     Deployed
2        started  <IP_ADDRESS>  4a68ky   xenial  Production  Deployed
3        started  <IP_ADDRESS>  kyxc67   xenial  Production  Deployed
4        started  <IP_ADDRESS>  e4yrfn   xenial  default     Deployed
5        started  <IP_ADDRESS>  hegqeb   xenial  Production  Deployed
6        started  <IP_ADDRESS>  7qp3fq   xenial  Production  Deployed
7        started  <IP_ADDRESS>  bc37gs   xenial  default     Deployed
8        started  <IP_ADDRESS>  88kcrd   xenial  Production  Deployed
Relation           Provides               Consumes               Type
certificates       easyrsa                etcd                   regular
certificates       easyrsa                kubeapi-load-balancer  regular
certificates       easyrsa                kubernetes-master      regular
certificates       easyrsa                kubernetes-worker      regular
cluster            etcd                   etcd                   peer
etcd               etcd                   flannel                regular
etcd               etcd                   kubernetes-master      regular
cni                flannel                kubernetes-master      regular
cni                flannel                kubernetes-worker      regular
loadbalancer       kubeapi-load-balancer  kubernetes-master      regular
kube-api-endpoint  kubeapi-load-balancer  kubernetes-worker      regular
cni                kubernetes-master      flannel                subordinate
kube-control       kubernetes-master      kubernetes-worker      regular
cni                kubernetes-worker      flannel                subordinate
And this is from attached unit file:
2017-04-10 21:59:37 DEBUG worker.uniter.jujuc server.go:178 hook context id "kubernetes-master/0-install-2962080428732376357"; dir "/var/lib/juju/agents/unit-kubernetes-master-0/charm"
2017-04-10 21:59:38 DEBUG worker.uniter.jujuc server.go:178 hook context id "kubernetes-master/0-install-2962080428732376357"; dir "/var/lib/juju/agents/unit-kubernetes-master-0/charm"
2017-04-10 21:59:38 DEBUG httpbakery client.go:244 client do GET https://<IP_ADDRESS>:17070/model/249a5455-8c40-423a-8c2e-e7be47d16212/units/unit-kubernetes-master-0/resources/kubectl {
2017-04-10 21:59:38 DEBUG httpbakery client.go:246 } -> error
2017-04-10 21:59:39 DEBUG worker.uniter.jujuc server.go:178 hook context id "kubernetes-master/0-install-2962080428732376357"; dir "/var/lib/juju/agents/unit-kubernetes-master-0/charm"
2017-04-10 21:59:39 INFO juju-log Installing /var/lib/juju/agents/unit-kubernetes-master-0/resources/kubectl/kubectl.snap from local resource
[] Download snap "core" (1577) from channel "stable"
[] Download snap "core" (1577) from channel "stable"
[] Download snap "core" (1577) from channel "stable"
[] Download snap "core" (1577) from channel "stable"
[] Download snap "core" (1577) from channel "stable"
[] Download snap "core" (1577) from channel "stable"
[-] Download snap "core" (1577) from channel "stable"
[-] Download snap "core" (1577) from channel "stable"
error: cannot perform the following tasks:
2017-04-10 22:00:40 INFO install - Download snap "core" (1577) from channel "stable" (Get https://public.apps.ubuntu.com/anon/download-snap/99T7MUlRhtI3U0QFgl5mXXESAiSwt776_1577.snap: dial tcp <IP_ADDRESS>:443: i/o timeout)
2017-04-10 22:00:40 INFO install Traceback (most recent call last):
2017-04-10 22:00:40 INFO install   File "/var/lib/juju/agents/unit-kubernetes-master-0/charm/hooks/install", line 19, in
2017-04-10 22:00:40 INFO install     main()
2017-04-10 22:00:40 INFO install   File "/usr/local/lib/python3.5/dist-packages/charms/reactive/init.py", line 78, in main
2017-04-10 22:00:40 INFO install     bus.dispatch()
2017-04-10 22:00:40 INFO install   File "/usr/local/lib/python3.5/dist-packages/charms/reactive/bus.py", line 434, in dispatch
2017-04-10 22:00:40 INFO install     _invoke(other_handlers)
2017-04-10 22:00:40 INFO install   File "/usr/local/lib/python3.5/dist-packages/charms/reactive/bus.py", line 417, in _invoke
2017-04-10 22:00:40 INFO install     handler.invoke()
2017-04-10 22:00:40 INFO install   File "/usr/local/lib/python3.5/dist-packages/charms/reactive/bus.py", line 291, in invoke
2017-04-10 22:00:40 INFO install     self._action(*args)
2017-04-10 22:00:40 INFO install   File "/var/lib/juju/agents/unit-kubernetes-master-0/charm/reactive/kubernetes_master.py", line 156, in channel_changed
2017-04-10 22:00:40 INFO install     install_snaps()
2017-04-10 22:00:40 INFO install   File "/var/lib/juju/agents/unit-kubernetes-master-0/charm/reactive/kubernetes_master.py", line 141, in install_snaps
2017-04-10 22:00:40 INFO install     snap.install('kubectl', channel=channel, classic=True)
2017-04-10 22:00:40 INFO install   File "lib/charms/layer/snap.py", line 47, in install
2017-04-10 22:00:40 INFO install     _install_local(res_path, **kw)
2017-04-10 22:00:40 INFO install   File "lib/charms/layer/snap.py", line 130, in _install_local
2017-04-10 22:00:40 INFO install     subprocess.check_call(cmd, universal_newlines=True)
2017-04-10 22:00:40 INFO install   File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
2017-04-10 22:00:40 INFO install     raise CalledProcessError(retcode, cmd)
2017-04-10 22:00:40 INFO install subprocess.CalledProcessError: Command '['snap', 'install', '--classic', '--dangerous', '/var/lib/juju/agents/unit-kubernetes-master-0/resources/kubectl/kubectl.snap']' returned non-zero exit status 1
Here are some unit log files for failed units:
logs.tar.gz

Looking at the logs that @larrymi provided, it seems we don't have the core snap when installing off-line. This is something we will have to think about how to resolve.

As a debug measure I suggested to have @larrymi download the core snap from https://uappexplorer.com/app/core.canonical and then juju scp the core snap. Juju-2 should automatically retry the hook[0].
If this does work we'll need to make a resource for the core snap when installing in snap-mode.
[0] https://jujucharms.com/docs/2.1/models-config#retrying-failed-hooks
-thanks,
Antonio

@arosales I downloaded the core snap, scp'ed to the units and installed with snap install core.snap --dangerous followed followed by juju resolved  for the failed units. That got me past the install errors and everything else seem to work.

This affects k8s deployments, but feels to me like this is a bug best targeted at snappy. We're recommending users circumvent updates and no longer receive core snap updates which include security fixes. There's a good chance this workaround of installing offline could lead to introducing a security vulnerability.


[object-store]: Implement credential_process support for S3

Credential process is a flexible solution for providing custom authentication mechanisms for object store.  It is described as a part of the AWS SDK documentation and implementing it would allow more complex use cases to be fully supported by the current setup, without adding particular complexity.
How does it work?
When user decides to use the credential process, when a client needs credentials it invokes the process, which replies with a defined schema like so:
{
    "Version": 1,
    "AccessKeyId": "an AWS access key",
    "SecretAccessKey": "your AWS secret access key",
    "SessionToken": "the AWS session token for temporary credentials",
    "Expiration": "RFC3339 timestamp for when the credentials expire"
}

The client knows when the expiration will occur, and will re-invoke the process when required.
What can we do?
We can then extend the AmazonS3Builder to support this use case via an environment variable

@alamb since the linked PR is closed, can we mark this as closed?

This is new, and although related to the linked issues, it is not closed

For additional context see https://github.com/apache/arrow-rs/issues/5143. Copying some of the info here:
I think the usecase this feature would support is

User uses object_store indirectly via polars
polars does not provide any way to modify / configure s3 connections at runtime

Since the users don't control the pola.rs source or distribution, they can not use  the existing object_store CredentialProvider trait.
The proposal on this ticket is to add an  mechanism that can call out to an external program / process to get credentials. While less efficient this would allow someone to plug in whatever authentication mechanism they wanted without having to change the source code
@tustvold  notes that we need to ensure this type of mechanism does not compromise system security (e.g. perhaps it has to be enabled by deafult
Also, he mentioned that the Azure client has something similar -- MicrosoftAzureBuilder::with_use_azure_cli that we could use as a model

See also related ticket in pola-rs that @tustvold  filed: https://github.com/pola-rs/polars/issues/18979

TBC I view this very much as a hack around an API limitation in Polars, I would prefer we try to fix this there before resorting to this - https://github.com/pola-rs/polars/issues/18979#issuecomment-2381289706

Can you explain why you think credential process support related to Polars? To me is a gap in AmazonS3Builder in object store

Your original request concerned supporting a broader range of auth within the context of polars. Credential process support was then proposed as a way to workaround the inability to override the credential configuration within polars. By fixing this limitation of polars we not only provide a way for users to use credential process, via an AWS SDK that implements it, but also the full flexibility of all the other auth possibilities exposed by these SDKs.
I'd naturally prefer the solution that gives users the most flexibility and avoids needing to revisit this again when someone comes along requesting SSO or similar

I'd naturally prefer the solution that gives users the most flexibility and avoids needing to revisit this again when someone comes along requesting SSO or similar

I would also like to avoid a similar conversation with users of systems other than polars.
I agree in an ideal world, perhaps polars would implement a user APIs to fully configure S3 auth via the object_store using the existing APIs.
Even if they did this, however, I think we will continue to have similar conversations with other downtream users
I view this credential process not as a hack but a general purpose configuration convention that works for any subsequent user (similarly to how object_store also supports the standard AWS configuration environment variables without any downstream crate configuration

Even if they did this, however, I think we will continue to have similar conversations with other downtream users

I think this proposal doesn't meaningfully help in this regard because:

It is specific to AWS
AWS only supports credential process as part of AWS_PROFILE which we don't support

So we'd end up with users continuing to come here asking about this, and we'd have to direct them to some object_store specific environment configuration to call out to some external process they have to setup.
Encouraging the downstreams to properly expose the object_store API would avoid this entirely.

fwiw, the deltalake-aws crate glues the aws-sdk and a CredentialProvider together, which is what I think most people generally want.

Polars exposed it as part of their API and configured it to use boto when available.
I'm going to close this as I don't think it is planned anymore


Can't upload file with OAuth authentication

Hi,
I can use OAuth authentication with pc = PyCloud("", "LecVZx4nurbtMY1BZUkjfi7ZTyW7azxsy6SyO0j3pJXGRjIMPOdy", endpoint="eapi", oauth2=True). This works on some methods, such as userinfo() and listfolder(folderid=0). However it doesn't with uploadfile(), I get the error {'result': 2000, 'error': 'Log in failed.'}. Inspecting the code it seems that the method  uploadfile() is using auth_code, which is initialized empty when using OAuth authentication. Is it possible to use uploadfile() with OAuth authentication?
Thanks!

Fixed.


Testing metrics endpoint

Hi, @MrLotU ! I read the your discussion. But I still did't understand how to set up SwiftPrometneus to work with tests. In my case it is required to check that metrics are returned along the route.
I initialize the application:
override func setUpWithError() throws { app = Application(.testing) try configure(app) }
Next, I call the route and at least wait for an answer - Ok. But the server error comes.
func testAppMetrics() throws { try app.test(.GET, "v1/metrics", afterResponse: { (res) in XCTAssertEqual(res.status, .ok) let contentType = try XCTUnwrap(res.headers.contentType) XCTAssertEqual(contentType, .plainText) XCTAssertNotNil(res.content) XCTAssertNotNil(res.body) }) }
I use
@testable import App @testable import Metrics import XCTVapor
And in main.swift - MetricsSystem.bootstrap(PrometheusClient())
I would be grateful if you could explain why .internalServerError returns? But when I call the same route through the API client everything works.

If an internalServerError is returned, there should be more logging indicating what exactly is causing the error. However, this is something in your vapor application and not within SwiftPrometheus.

@MrLotU Thank You


pass compile-time-params through to cfndsl

This is a pretty simple PR that just does the bare minimum to wire-up CTP's to cfndsl.
A few points:

CfnDsl, unlike Sparkle, doesn't currently support direct ruby access to the template (e.g. to add a CompileState output).  So I haven't added that, though I could modify the output json if that was seen as a hard requirement.
CfnDsl doesn't natively support any form of parameter validation - its expected that you're giving cfndsl valid yaml/json/ruby as input and they just expose those to the template.  Hence I haven't added any validation.
CfnDsl has a pending PR to support passing a hash for compile-time-params (as of today!  by me!).  The current requirement to serialize CTP's as :raw parameter types is awkward at best.

Feedback welcome, but hopefully this gets the ball rolling.

I've updated this to fit with the cfndsl people's recommendation.  While still not a general solution b/c of the multiple: true issue, this at least provides rudimentary support for CTP's in cfndsl templates in a way that requires no upstream changes.
I'd welcome suggestions for making it more general.

@patrobinson Thanks for your feedback so far, and I look forward to any more you may have.


initrd can't boot system without video out (stage-1-init dies)

Issue description
I'm trying to use the initrd generated by nixos on an embedded armv5tel system that has no video out. The system does have serial out and netconsole.
I get something like this (over netconsole):
Starting kernel ...                                                                                [250/9146]
[    9.816460] Warning: unable to open an initial console.
[    9.816460] Warning: unable to open an initial console.
[    9.816460] Warning: unable to open an initial console.
[    9.947078] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200
[    9.947078]
[    9.956397] CPU: 0 PID: 1 Comm: init Not tainted 4.6.3 #1-NixOS
[    9.962388] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    9.968763] [<c001ef84>] (unwind_backtrace) from [<c001b3b8>] (show_stack+0x10/0x14)
[    9.976586] [<c001b3b8>] (show_stack) from [<c00c7e84>] (panic+0xac/0x23c)
[    9.983552] [<c00c7e84>] (panic) from [<c0028d18>] (do_exit+0x538/0x9bc)
[    9.990338] [<c0028d18>] (do_exit) from [<c002a480>] (do_group_exit+0x48/0xec)
[    9.997649] [<c002a480>] (do_group_exit) from [<c002a534>] (__wake_up_parent+0x0/0x18)
[    9.947078] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200
[    9.947078]
[   10.005634] Rebooting in 1 seconds..[    9.956397] CPU: 0 PID: 1 Comm: init Not tainted 4.6.3 #1-NixOS
[    9.976586] [<c001b3b8>] (show_stack) from [<c00c7e84>] (panic+0xac/0x23c)
[    9.947078] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000200
[    9.947078]
[    9.983552] [<c00c7e84>] (panic) from [<c0028d18>] (do_exit+0x538/0x9bc)
[    9.956397] CPU: 0 PID: 1 Comm: init Not tainted 4.6.3 #1-NixOS
[    9.962388] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    9.968763] [<c001ef84>] (unwind_backtrace) from [<c001b3b8>] (show_stack+0x10/0x14)
[    9.990338] [<c0028d18>] (do_exit) from [<c002a480>] (do_group_exit+0x48/0xec)
[    9.997649] [<c002a480>] (do_group_exit) from [<c002a534>] (__wake_up_parent+0x0/0x18)
[   10.005634] Rebooting in 1 seconds..[    9.990338] [<c0028d18>] (do_exit) from [<c002a480>] (do_group_exit+0x48/0xec)
[    9.997649] [<c002a480>] (do_group_exit) from [<c002a534>] (__wake_up_parent+0x0/0x18)

The fix
I'm fairly sure stage-1-init.sh never even gets to run because a console cannot be allocated to it. This doesn't make total sense to me though, because if that's the case, /dev would be empty on normal systems as well. In any case, I managed to solve the issue by manually repacking the initrd using the contents of the generated one and adding mknod -m 622 dev/console c 5 1 to the root of it.
I need a way to add the device node to the generated initrd at build-time, but since mknod needs root privs to run, I don't know the best or really any way to create it as a nixbld user. Maybe there is also some kernel option or change to the way stage-1-init.sh is invoked to circumvent this problem, or maybe I'm misunderstanding what the real cause is, although adding /dev/console seems to cure it.

It is almost certainly something in the kernel configuration, since everything works fine over serial on ARMv6 and ARMv7 simply by passing console=ttyS0,115200n8 or the like.
My guess would go to devtmpfs not being enabled.

DEVTMPFS is enabled, and my bootargs contain console=ttyS0,115200and netconsole=... (there's some interaction between them I can't find mention of in the docs). I've attached my full kernel config in case you can think of anything else that could be wrong, because I don't think I have any way to get any more information.
I've also attached the early part of dmesg from a successful boot (/dev/console manually inserted into initrd).
extracted.config.txt
dmesg.successful.log.txt

Is that dmesg from the manually modified initrd? It's not getting loaded:
{code}
[    0.308655] Unpacking initramfs...
[    0.311307] Initramfs unpacking failed: no cpio magic
[    0.334630] Freeing initrd memory: 4272K (c76ec000 - c7b18000)
{code}

I guess not, oops. I had assumed my only change of adding /dev/console was the fix, when in fact the fix was to not load an initrd at all. Looks like I'll need to find the reason why the initrd stage-1-init.sh doesn't even run, given only the very limited detail of the original dmesg output I posted. I think I may just skip using the initrd entirely.
In either case, it'll likely be down to some system-specific config I need on my end, so I'll close the issue. Thanks for the help.


Disclaimer section - data source details/ data reliability / user attention

Disclaimer section - data source details/ data reliability / user attention.
A pop up on page load with a disclaimer section

implemented


hot reload button is grayed out in Android Studio

Error connecting to the service protocol: HttpException: Connection closed before full header was received, uri = http://<IP_ADDRESS>:50397/v1bGluENHfQ=/ws

@KingxXxCode can you provide a more detailed scenario of the steps that lead to this error.

@a-siva @devoncarew maybe close this issue as there's not enough information to proceed? In any case, I'm not sure area-intellij is the right label here.


Dart_Invoke for Named Parameters

I checked the tag 3.1.0-90.0.dev and the main branch for this.
The call Dart_Invoke implemented in sdk/dart_api_impl.cc allows calling Dart functions from C code (or any language that can interop with C functions). However, it does not allow passing named parameters. It specifically says so in the code:
https://github.com/dart-lang/sdk/blob/40d99bc981f81aed65f107cf6907b705cd33ef4f/runtime/vm/dart_api_impl.cc#L4691
My use case would necessitate such a feature, because nearly all Flutter SDK calls use named parameters in some way. The alternative is to have some kind of decoding function on the Dart side that then invokes the function, but that's a lot of overhead in an already very expensive operation, which is not ideal in performance-critical code such as Flutter widgets.
I can't find a technical reason why this isn't implemented (other than needing extra code). So, it would be very helpful to get this addition.

Can you elaborate a bit more on your use case? My inclination would be to not expand reflective embedder API beyond what is absolutely necessary.

My use case is that I want to implement plugins in a Flutter application using web assembly modules. For this, I have to forward the calls to the application though my Rust layer (using wasmer as the wasm runtime).

My use case is that I want to implement plugins in a Flutter application using web assembly modules. For this, I have to forward the calls to the application through my Rust layer (using wasmer as the wasm runtime).

Are you using custom build of Flutter engine? Normal builds are supposed to be hiding Dart VM C API.
What's your plan for release builds? You should be only able to call things which are marked with @pragma('vm:entry-point') and most of the things in Flutter framework are not marked with it. Strictly speaking we should be enforcing this restriction in debug mode as well, but we are a bit lax.

Since I ran into this roadblock, it also doesn't make sense to continue down this road unless I find a solution.

I see. Just want to reiterate that you will not be able to call anything through Dart_Invoke in release builds unless it is marked with an entry-point pragma. And if you start applying entry-point indiscriminately across the whole API surface the code quality (and code size) will suffer. This is going to be a much bigger roadblock.
As a temporary solution to unblock your prototyping you can just patch your engine, e.g. add Dart_InvokeWithNamed(...) which allows you to pass names down instead of defaulting to empty arg_names. Underlying invocation APIs allow names.

Ok, I see. Thank you for the pointers! I was able to use the analyzer package to get a list of all Flutter classes with all functions and parameters, so I might have to resort to writing some glue code generator for this anyways (obviously with an allowlist, since I don't need most classes within plugins and it'd be way too large).

@anlumo you might want to check what https://pub.dev/packages/dart_eval is doing and see if they have existing tooling for this.

I've experimented with this package (most notably, my interactive Dart Terminal application [web demo]). There are two problems with it:

It uses its own bytecode interpreter, which is probably not great for performance.
It doesn't support all of Dart 2's features, not even thinking about Dart 3 features.

There's also the xml_layout package, which uses XML instead of Dart to solve the same problem, and probably also has the same performance implications.
So, my idea was to talk directly to the Dart VM to bypass these issues, but since this isn't really viable, I probably ultimately have to go into one of those two directions.


Wireframe Implementation

Description

This pull request introduces several updates to the user profile display and styling. Key changes include the implementation of a custom design for user details, improved handling of user photos, and a refined presentation of the number of posts.
Additionally, the styling enhancements have been applied consistently throughout the application for a more cohesive and visually appealing user interface.
The goal is to provide a better user experience and maintain a modern and responsive design.

Hi @Wils-FOURR-speed,  you have submitted your pr without implementing the changes

Hi, Good day.
But I don't understand how.
Surely my dashboard has some malfunction because when I submitted the first
time, I noticed after a while that I had changes required. But when I
checked GitHub, I didn't see any comments from any reviewer. I just noticed
conflicts and I resolved them and resubmitted them for review.
On Sat, Nov 4, 2023 at 10:05 AM Oni Olajumoke Priscilla <
@.***> wrote:

Hi @Wils-FOURR-speed https://github.com/Wils-FOURR-speed, you have
submitted your pr without implementing the changes
—
Reply to this email directly, view it on GitHub
https://github.com/Wils-FOURR-speed/Blog-App-Project/pull/6#issuecomment-1793389413,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A5TIO5XAU5ACGZV4USFHQGTYCYANZAVCNFSM6AAAAAA65MYDYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJTGM4DSNBRGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

Thanks @peterrobert


GUI Screen Backrounds to not dim the way vanilla / other mods do

Minecraft version & Mod Version: 1.12.2 version 1.9.12
Single player or Server: both
See screenshots below.  Vanilla workbench dims the background, cyclic does not

Fix version Cyclic-1.12.2-1.10.0


Support for custom EVM networks

Is it possible to use Subsquid with custom EVM network?
For example Polygon zkevm through appchain?

Yes, you can use SDK for indexing any EVM-compatible chain by running processor in rpc-only mode.
https://docs.subsquid.io/sdk/reference/processors/evm-batch/general/#set-data-source


Use relative path to client.js

The default script tag generated in dev is:
<script src=http://localhost:4000/client.js></script>
But that doesn't work when accessing from my phone, for example.
How can I convert to:
<script src=/client.js></script>

I think I can add a --host options for this

Now you can use --host you.ip to establish the dev server, also there's a devServer option for advanced webpack-dev-server configuration, eg:
module.exports = {
  devServer: {
    proxy: {
      '/api': 'http://api.endpoint.com/pathname'
    }
  }
}

Thanks @egoist, but I'm not sure one option would be enough.
Now I have to use --host <IP_ADDRESS> to work, but that's a problem cause the local ip changes.
What should be changed is this:
<script src=http://localhost:4000/client.js></script>
into this:
<script src=/client.js></script>
but now, it is:
<script src=http://<IP_ADDRESS>:4000/client.js></script>

so won't http://<IP_ADDRESS>:4000/client.js work for you?

I guess you mean change to /client.js is a better solution than using --host option

vbuild already binds to <IP_ADDRESS>, which is great, cause I can test from other devices, that's why relative path to client.js would makes more sense.

Updated, now it's served from /

That's great!

Oh, I guess we still need to use full path like http://host:port when developing an Electron app


Error: pull model manifest: Get "https://registry.ollama.ai/v2/library/qwen2.5/manifests/25b": EOF

What is the issue?
When I was downloading the qwen2.5:32b model, I downloaded about 30% and suddenly reported this error. After I restarted the computer and checked the network, the error still appeared.
ollama run qwen2.5:32b
pulling manifest
Error: pull model manifest: Get "https://registry.ollama.ai/v2/library/qwen2.5/manifests/32b": EOF
OS: MacOS
GPU: M4
CPU: M4
Ollama version: 0.4.1
[GIN] 2024/11/13 - 09:57:03 | 200 |  299.253291ms |       <IP_ADDRESS> | POST     "/api/pull"
update check failed - TypeError: fetch failed
update check failed - TypeError: fetch failed
update check failed - TypeError: fetch failed
update check failed - TypeError: fetch failed
update check failed - TypeError: fetch failed
update check failed - TypeError: fetch failed
update check failed - TypeError: fetch failed
update check failed - TypeError: fetch failed
update check failed - TypeError: fetch failed
update check failed - TypeError: fetch failed
update check failed - TypeError: fetch failed
update check failed - TypeError: fetch failed
update check failed - TypeError: fetch failed
[GIN] 2024/11/13 - 23:06:30 | 200 |      30.875µs |       <IP_ADDRESS> | HEAD     "/"
[GIN] 2024/11/13 - 23:06:30 | 404 |     1.31325ms |       <IP_ADDRESS> | POST     "/api/show"
time=2024-11-13T23:06:30.752+08:00 level=INFO source=images.go:1022 msg="request failed: Get \"https://registry.ollama.ai/v2/library/qwen2.5/manifests/32b\": EOF"
[GIN] 2024/11/13 - 23:06:30 | 200 |  716.532875ms |       <IP_ADDRESS> | POST     "/api/pull"
[GIN] 2024/11/13 - 23:12:10 | 200 |      45.959µs |       <IP_ADDRESS> | HEAD     "/"
[GIN] 2024/11/13 - 23:12:10 | 404 |    1.077791ms |       <IP_ADDRESS> | POST     "/api/show"
time=2024-11-13T23:12:10.423+08:00 level=INFO source=images.go:1022 msg="request failed: Get \"https://registry.ollama.ai/v2/library/qwen2.5/manifests/32b\": EOF"
[GIN] 2024/11/13 - 23:12:10 | 200 |  318.063792ms |       <IP_ADDRESS> | POST     "/api/pull"
[GIN] 2024/11/13 - 23:13:07 | 200 |      45.833µs |       <IP_ADDRESS> | HEAD     "/"
[GIN] 2024/11/13 - 23:13:07 | 200 |    2.437833ms |       <IP_ADDRESS> | GET      "/api/tags"

Thanks.
OS
macOS
GPU
Apple
CPU
Apple
Ollama version
0.4.1

The hard drive still has over 200 GB of remaining space, which should be enough to download the model.
The result of running the ls command:
ls: /.../.ollama/models/manifests/registry.ollama.ai/library/qwen2.5/32b: No such file or directory
But I just tried again and found that I can download it now. Perhaps due to network fluctuations, thank you very much for your help.


Use standardized ECMAScript classes for Class

Refactors the Class API so that a standardized ECMAScript class is used. This PR purposefully doesn't touch any of the related API surface as to keep review and discussion for these features for the future.
Recommended reading:

Object.setPrototypeOf() (MDN)
Inheritance and the prototype chain - Building longer inheritance chains (MDN)

Looks pretty good for me. If we have no hurry I would like to test it with some "plugins" in the next days.
For me as a reminder to test: instanceof, typeof

Looks pretty good for me. If we have no hurry I would like to test it with some "plugins" in the next days.

We're in no rush, I wanted to get this out there to get some early feedback and explore our options. Feel free to test it against some plugins if you like, but things might still be prone to change.

This is going to be somewhat tricky to get right. Ultimately I'd like to get rid of all the .extend() calls, or at least move all the functionality to the constructor of the base class Class.

@IvanSanchez this is what I have so far to hopefully facilitate this:
import * as Util from './Util';

// @class Class
// @aka L.Class

// @section
// @uninheritable

// Thanks to John Resig and Dean Edwards for inspiration!

export class Class {
	// @function extend(props: Object): Function
	// [Extends the current class](#class-inheritance) given the properties to be included.
	// Returns a Javascript function that is a class constructor (to be called with `new`).
	static extend(props) {
		const NewClass = class extends this {};

		const parentProto = this.prototype;
		const proto = NewClass.prototype;

		// mix static properties into the class
		if (props.statics) {
			Util.extend(NewClass, props.statics);
		}

		// mix includes into the prototype
		if (props.includes) {
			Util.extend.apply(null, [proto].concat(props.includes));
		}

		// mix given properties into the prototype
		Util.extend(proto, props);
		delete proto.statics;
		delete proto.includes;

		// merge options
		if (proto.options) {
			proto.options = parentProto.options ? Object.create(parentProto.options) : {};
			Util.extend(proto.options, props.options);
		}

		proto._initHooks = [];

		return NewClass;
	}

	// @function include(properties: Object): this
	// [Includes a mixin](#class-includes) into the current class.
	static include(props) {
		const parentOptions = this.prototype.options;
		Util.extend(this.prototype, props);
		if (props.options) {
			this.prototype.options = parentOptions;
			this.mergeOptions(props.options);
		}
		return this;
	}

	// @function mergeOptions(options: Object): this
	// [Merges `options`](#class-options) into the defaults of the class.
	static mergeOptions(options) {
		Util.extend(this.prototype.options, options);
		return this;
	}

	// @function addInitHook(fn: Function): this
	// Adds a [constructor hook](#class-constructor-hooks) to the class.
	static addInitHook(fn, ...args) { // (Function) || (String, args...)
		const init = typeof fn === 'function' ? fn : function () {
			this[fn].apply(this, args);
		};

		this.prototype._initHooks = this.prototype._initHooks || [];
		this.prototype._initHooks.push(init);
		return this;
	}

	_initHooksCalled = false;

	constructor(...args) {
		Util.setOptions(this);

		// call the constructor
		if (this.initialize) {
			this.initialize.apply(this, args);
		}

		// call all constructor hooks
		this.callInitHooks();
	}

	callInitHooks() {
		if (this._initHooksCalled) { return; }

		if (super.callInitHooks) {
			super.callInitHooks.call(this);
		}

		this._initHooksCalled = true;

		for (let i = 0, len = this.prototype._initHooks.length; i < len; i++) {
			this.prototype._initHooks[i].call(this);
		}
	}
}

Class.prototype._initHooks = [];

This is still failing the tests, not sure why (all very much WIP). But it might allow us to at least do X extends Class internally. WDYT?

Still some failing tests but already "better":
prototype is not available in this context and super can't be called.
	callInitHooks(ctx) {
		if (this._initHooksCalled) { return; }

		const prototype = Object.getPrototypeOf(this);
		if(prototype && prototype.callInitHooks){
			// for some reason the context of the initial callInitHooks call has the same _initHooks but is a different object.
			// I think this causes a duplicated execution of these hooks
			prototype.callInitHooks(ctx || this);
		}

		this._initHooksCalled = true;

		for (let i = 0, len = this._initHooks.length; i < len; i++) {
			this._initHooks[i].call(this);
		}
	}

With adding proto._initHooksCalled = false; to extend the  Class tests are successful but Canvas not anymore.

The 'problem' is that this will always refer to the child class, and never the parent class it makes which impossible to get the prototype of the 'current' class.
As per MDN:

When an inherited function is executed, the value of this points to the inheriting object, not to the prototype object where the function is an own property.

So I think any approach that goes against the stream is here is kinda dead on arrival. I was thinking what we could do instead is place the callInitHooks() in parent class Class, and directly traverse the prototype itself in reverse. This would replicate the existing functionality, but remove the need for super calls.

This seems to work, WDYT @Falke-Design @IvanSanchez?
callInitHooks() {
	if (this._initHooksCalled) { return; }

	// collect all prototypes in chain
	const protos = [];
	let proto = Object.getPrototypeOf(this);

	while (proto !== null) {
		protos.push(proto);
		proto = Object.getPrototypeOf(proto);
	}

	// reverse so the parent prototype is first
	protos.reverse();

	// call init hooks on each prototype
	protos.forEach((proto) => {
		const initHooks = proto._initHooks ?? [];
		initHooks.forEach((hook) => { hook.call(this); });
	});

	this._initHooksCalled = true;
}

Remember https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/super#super-calling_static_methods , folks.

@IvanSanchez I plan to move this from NewClass into the Class prototype, so there would be no need for a super() call anymore.

Added the refactored method, however moving stuff to Class still breaks the tests :thinking:

however moving stuff to Class still breaks the tests 🤔

How does the code look like then?

Ok, I managed to move the hook initialization to the base class Class. Also NewClass now properly uses the extends keywork to extend Class.

@Falke-Design @IvanSanchez @mourner I think we're in a pretty good place right now. Can I ask you guys to take another look? It's now possible to extend classes with initialization hooks and all using standard ECMAScript syntax:
class Parent extends L.Class {
  initialize() {
    console.log("Parent initialize called.");
  }
}

class Child extends Parent {
  initialize() {
    super.initialize();
    console.log("Child initialize called.");
  }
}

Parent.addInitHook(function () {
  console.log("Parent init hook called.");
});

Child.addInitHook(function () {
  console.log("Child init hook called.");
});

const child = new Child();

I am trying to document various differences and caveats in the description, feel free to supplement it with your findings. I am getting a good night sleep 😴

Just thinking out loud, but we could also provide class decorators for example:
import { Class, includes } from 'leaflet';
import MyMixin from './mixins';

@includes(MyMixin)
class MyClass extends Class { }

Or with options:
@options({
  myOption1: 'foo',
  myOption2: 'bar'
})
class MyClass extends Class { }

I'm converting this PR to a draft. I think it's a good place to work on and discuss this feature, but I see more benefit in chunking the work for this PR out into several smaller pieces of work that are easier to review.

Closing this, since all the changes seem to have been merged via five individual PRs.

Yeah, there are still a couple things left. But I feel this PR does not serve a useful purpose at this point.


Telegraf - How does Sarama select which broker to connect to when a list is supplied

Question
The Telegraf monitoring agent has an output plugin which posts metrics to Kafka, utilising the Sarama project.
https://github.com/influxdata/telegraf/tree/master/plugins/outputs/kafka
Within the Telegraf config, you specify a variable containing a string of one or more Brokers as follows
brokers = ["localhost:9092","<IP_ADDRESS>:9092","<IP_ADDRESS>:9092"]
What I'm not clear on is how the selection is made on which broker to connect to, and the behaviour when that broker becomes unavailable.
Additional Info
I took a quick look at the code and within the Telegraf kafka plugin, I believe this is the line which creates the Kafka connection
producerFunc: sarama.NewSyncProducer,
(Forgive me if this is wrong, I'm not a Go programmer)
I initially raised this with InfluxData who support Telegraf (link below) in case that adds any additional info but they were unable to help as the Sarama code is not written by them
https://community.influxdata.com/t/how-does-telegraf-kafka-output-determine-what-broker-to-use-when-multiple-are-speecified/17342

Any update here?

It looks like sarama picks the first one from the list and ignores the rest, Is this a bug?

That’s not the case. Sarama will shuffle those bootstrap addresses on request. It will cycle through them to gain connectivity and then uses the advertised listeners for each broker when determining how to connect to those


Export shows funny characters

Hello,
First of all I would like to congratulate you for this very useful tool!
My issue is that I can successfully convert pdf tables to tabula and see the correct content at the local url but when i export the information to an excel csv file, I get funny characters.
Example:
А-КОНТ ЕООД ПЛАЩАНЕ ПО ДОГОВОР СЧЕТОВОДНИ УСЛУГИ
However, exporting this to excel csv, I get:
Ð-ÐšÐžÐÐ¢
  | Ð•ÐžÐžÐ” ÐŸÐ›ÐÐ©ÐÐÐ• ÐŸÐž   Ð”ÐžÐ“ÐžÐ’ÐžÐ
  | Ð¡Ð§Ð•Ð¢ÐžÐ’ÐžÐ”ÐÐ˜ Ð£Ð¡Ð›Ð£Ð“Ð˜
Please advise what I need to do.
I am using tabula.exe version: 1.2.1
Kind regards,
Mike

You'll need to explicitly open the CSV with UTF-8 encoding in Excel. (Instructions vary by version, but all versions of Excel can do it.)


I can't log in with the error saying password is not correct. But I am typing correctly and can login with web. By the way I am using gmail.

For now, this app doesn't support Gmail login. You can log in with your email manually.

For now, this app doesn't support Gmail login. You can log in with your email manually.

Thanks for your response. So I have to use any email but not gmail, right? Any plan to support Gmail in the future release?


Add module for Media Data library

WHAT
Add module for Media Data library
WHY
In order to include data components related to media and publish them as an individual library.
HOW

Add a new android ui module with same setup as other modules from the project;
Add maven publish plugin configuration to the module;
Add annotation ExperimentalMediaDataApi;
Add metalava generated API file;

Checklist :clipboard:

[x] Add explicit visibility modifier and explicit return types for public declarations
[x] Run spotless check
[x] Run tests
[x] Update metalava's signature text files

I wasn't expecting to need this yet, figured it could be a package in the same module.  But sounds fine, let's see where it goes.


chore(dbt-fal): Update for 1.4 dbt-core support

Description

Integration tests
Adapter to test:

postgres
bigquery
duckdb
snowflake
redshift

Python version to test:

3.8

3.10

This is so strange:
[df64af] [builder]  [debug]   Installing requirements: dbt-core==1.4.1, dbt-redshift==1.4.0, dbt-fal[redshift]==1.3.13a0, isolate==0.8.0
[df64af] [builder]  [debug]   Collecting dbt-core==1.4.1
[df64af] [builder]  [debug]   ERROR: Could not find a version that satisfies the requirement dbt-fal[redshift]==1.3.13a0 (from versions: 1.3.0rc1, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.3.8, 1.3.9, 1.3.10, 1.3.11, 1.3.12)

why is it trying to install two different versions of dbt-redshift?

This is so strange:
[df64af] [builder]  [debug]   Installing requirements: dbt-core==1.4.1, dbt-redshift==1.4.0, dbt-fal[redshift]==1.3.13a0, isolate==0.8.0
[df64af] [builder]  [debug]   Collecting dbt-core==1.4.1
[df64af] [builder]  [debug]   ERROR: Could not find a version that satisfies the requirement dbt-fal[redshift]==1.3.13a0 (from versions: 1.3.0rc1, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.3.8, 1.3.9, 1.3.10, 1.3.11, 1.3.12)

why is it trying to install two different versions of dbt-redshift?

Those are all different packages. But you did point to the line where we have a problem. We are not using the pip install '/Absolute/path/to/adapter[redshift]' format, and we should

You're right, @chamini2, it's probably my sleeping time.

dbt-redshift 1.3.0 depends on dbt-core~=1.3.0
dbt-fal[cloud,redshift] 1.3.13a0 depends on dbt-core<1.5 and >=1.4.0

I guess it should be trying to install dbt-redshift 1.4, right?


CC-26 Changes for image box control

resolves (https://github.com/Components-care/backlog/issues/26)

Added new story in standalone for image box.
Use Image dialog from framework.
Set primary image and add/remove image functionality

@TQjona , Requested changes done. Please review

@TQjona , Requested changes done, Please review

@TQjona , Requested changes done. Please review

@TQjona ,Implemented IOS bugfixes, Please review


Check that JSPM 0.17 works as expected?

Need to verify that the behaviour will work as expected when running with JSPM 0.17....

The following warning was given when installing plugin-scss using JSPM 0.17.0-beta.12
warn Package<EMAIL_ADDRESS>has a directories.lib override
     configuration which will work, but is deprecated for directories.dist in future
     jspm versions.

Good to know, will look at options next week

This branch is a WIP
I had to flatten the  the new jspm.browser.js into a single jspm.config for now. Its not clear to me yet how to change the builder setup. Seems i need both parts as one? Or a 3rd parameter.

The following error is given when trying to bundle a project using the new jspm bundle x --watch command.
 [plugin-scss]  Stacklite :: github:KevCJones/plugin-scss/sass-inject-build.js -> npm:sass.js
 [plugin-scss]  Error: File to import not found or unreadable: jspm:styles/colors
       Parent style sheet: stdin
        on line 1 of stdin
>> @import "jspm:styles/colors";
   ^

For now remove the JSPM:: and explicitly import using relative URLs. Until we work out the finer qualities of the new builder and config setup the old package helpers don't seem to be respected. I vaguely recall reading  a release note by Guy about this for short handing your .JS files. Perhaps this extended to other package shorthand too. More explicitness everywhere is my observation so far.


Vulnerability Id missmatch since Version 8.0.0

Describe the bug
since Version 8.0.0 we have problems with the dependency
core.wcm.components.core-2.23.2.jar. The project is identified as the CMS Project itself, instead of a dependency that can be part of the CMS.
looks like the CPE has a missmatch here. Older Versions don't have this issue, So it's something since the breaking change in Version 8.0.0
Version of dependency-check used
The problem occurs using version 8.0.0+
Log file
dependency-check Version 7.4.4, returns the mapping for core components without the critical CVE's (cpe:2.3:a:adobe:adobe_consulting_services_commons:2.23.2:::::::)  --> OK
dependency-check Version 8.0.0 and higher, returns the mapping for core components with the critical CVE's (cpe:2.3:a:adobe:download_manager:2.23.0:::::::) --> Wrong
To Reproduce
Steps to reproduce the behavior:

com.adobe.cq
core.wcm.components.core
2.23.2

Add Dependency to your pom
start owasp check with Version 7.4.4
start owasp check with Version 8.0.0+
compare cpe's

Expected behavior
Version 8.0.0 should work the same as Version 7.4.4.

@fahol-coop why would you expect us to report vulnerabilities for another inappropriate CPE just because we used to do so in the past?
https://github.com/Adobe-Consulting-Services/acs-aem-commons (the github project for the CPE you mention for 7.4.4) is just as invalid as the CPE that 8.0.0 establishes.
Your library is at https://github.com/adobe/aem-core-wcm-components/tree/main

if the old one was also wrong, then both are Wrong.
I correct my question. What should happen, that the correct CPE is connected to the library?
Because the Current state shows CVE that doesn't match.

http://jeremylong.github.io/DependencyCheck/general/suppression.html
If you file an FP report for the 8.x case quoting the incorrect CPE from its report we can easily include the required suppression into the hosted suppressions file that is consulted by DependencyCheck 8.x.
There is likely to not be a correct CPE within the NVD datafeed (if there was one it would've likely been matched already instead of the current and previous inappropriate ones; most likely there was never a CVE for this set of libraries).

@fahol-coop when you click 'create issue' from withn this github repo one of the items is "false positive report" when you click the button for it you get a form in which you can fill the details of the false-positive

New false positive report issues created.
https://github.com/jeremylong/DependencyCheck/issues/5904
https://github.com/jeremylong/DependencyCheck/issues/5905
https://github.com/jeremylong/DependencyCheck/issues/5906
This ticket can be closed

@aikebah the suppressions are working. But now there is a new issue.
There are 4 others CPE that doesn't match the dependency.
cpe:2.3:a:adobe:form_client:2.23.2:::::::*
cpe:2.3:a:list_site_pro:list_site_pro:2.23.2:::::::*
cpe:2.3:a:oembed_project:oembed:2.23.2:::::::*
cpe:2.3:a:xml_library_project:xml_library:2.23.2:::::::*
What is the commen way to fix that?

Issues created
https://github.com/jeremylong/DependencyCheck/issues/5908
https://github.com/jeremylong/DependencyCheck/issues/5909
https://github.com/jeremylong/DependencyCheck/issues/5910
https://github.com/jeremylong/DependencyCheck/issues/5911

@fahol-coop With these now also in place according to my validation run ODC has finally agreed with us that whatever a proper CPE would be for this library it's not one of the CPEs that appear in the NIST NVD vulnerabilities database.

To force a refresh of the hostedSuppressionsFile if you have the caching enabled (that is: do not run the tool in a newly created blank environment) you can use the 'hosted suppressions valid for hours' option of your build-tool with a value of 0 to force an immediate refresh (otherwise the cached copy will only expire after 2 hours)
E.g. for the Maven plugin that would be mvn -DhostedSuppressionsValidForHours=0 ...your-regular-build-arguments

@aikebah thank you for your help. It's working now, I have testet it in my local IDE.


Update ModelFormSetView subclasses to use new factory_kwargs attribute.

Support for the old-style attributes was dropped in django-extra-views 0.11 (see changelog)
Also pin the version in setup.py as the package does not use semantic versioning (i.e, there are breaking changes between 0.x releases).
Fixes #2688.

We shall mention about this in release notes.

Updated the release notes. Will backport to 1.5 once this is merged.

@solarissmoke I am still getting this error
DeprecationWarning: Setting StoreAddressInline.extraat the class level is now deprecated. SetStoreAddressInline.factory_kwargs instead.
apps version

django-extra-views==0.11.0
django-oscar==1.6.4


Added public vs. secret gist disclaimer

https://github.com/Hackafe/atom-sync-settings/issues/190

Thank you.


✏ Fix typo in Polish translation

Typo in word "monitor" in Polish translation

Duplicated PR: https://github.com/louislam/uptime-kuma/pull/499


HystrixEventType.CANCELLED

Currently, if an Observable produced by Hystrix gets subscribed to, and then unsubscribed before any emissions, then a lot of state is uninitialized.
Specifically, the list of events is empty and the latency is -1.  I believe we should have a separate event type when unsubscription happens.  IMO, we should omit it when there is a terminal state, but include it otherwise.

I see this has been resolved for a while - does the documentation at https://github.com/Netflix/Hystrix/wiki/Metrics-and-Monitoring need updating to include CANCELLED? :)


Could it be used for binary classification

Hey!
you really did a great job! I would like to use it for binary classification tasks, and after I read the code, I change the config json below:
{
    "global": {
        **"dataset": "IMDB",**
        "feature_type": "sparse",
        **"num_labels": 2,**
        "arch": "Astec",
        "A": 0.55,
        "B": 1.5,
        "use_reranker": false,
        "surrogate_threshold": 1024,
        **"surrogate_method": 0,**
        "embedding_dims": 300,
        **"top_k": 2,**
	    "beta": 0.3,
        "save_predictions": true,
        "trn_label_fname": "trn_X_Y.txt",
        "val_label_fname": "tst_X_Y.txt",
        "tst_label_fname": "tst_X_Y.txt",
        "trn_feat_fname": "trn_X_Xf.txt",
        "val_feat_fname": "tst_X_Xf.txt",
        "tst_feat_fname": "tst_X_Xf.txt"
    },
    "surrogate": {
        "num_epochs": 20,
        "dlr_factor": 0.5,
        "learning_rate": 0.01,
        "batch_size": 255,
        "dlr_step": 14,
        "normalize": true,
        "init": null,
        "optim": "Adam",
        "embeddings": "fasttextB_embeddings_300d.npy",
        "validate": true,
        "save_intermediate": true
    },
    "extreme": {
        "num_epochs": 20,
        "dlr_factor": 0.5,
        "learning_rate": 0.007,
        "batch_size": 255,
        "dlr_step": 14,
        "ns_method": "ensemble",
        "num_centroids": 1,
        "efC": 300,
        "efS": 400,
        "M": 100,
        "num_nbrs": 500,
        "ann_threads": 18,
        "beta": 0.5,
        "surrogate_mapping": null,
        "num_clf_partitions": 1,
        "optim": "Adam",
        "freeze_intermediate": true,
        "validate": true,
        **"model_method": "full",**
        "normalize": true,
        "shortlist_method": "hybrid",
        "init": null,
        "use_shortlist": false,
        "use_intermediate_for_shorty": true
    },
    "reranker": {
        "num_epochs": 15,
        "dlr_factor": 0.5,
        "learning_rate": 0.005,
        "batch_size": 255,
        "dlr_step": 10,
        "beta": 0.6,
        "num_clf_partitions": 1,
        "optim": "Adam",
        "validate": true,
        "model_method": "reranker",
        "shortlist_method": "static",
        "surrogate_mapping": null,
        "normalize": true,
        "use_shortlist": true,
        "init": null,
        "save_intermediate": false,
        "keep_invalid": true,
        "freeze_intermediate": false,
        "update_shortlist": false,
        "use_pretrained_shortlist": true,
        "embeddings": "fasttextB_embeddings_300d.npy"
    }
}

and I change items with bold, cause it seems label clusters and shortlists can't work well in such situation, so I block them. When I get the tst_predictions.npz file, I found it's all 0 or 1 after sigmoid or softmax(I don't konw how you handle that) , So my seeting is wrong? or Astec couldn't do binary classification ?
Thanks!

The pipeline with shortlist etc. is designed for large output space in mind. 'DeepXML-OVA' would be more suitable for a binary classification task.
Example usage (please add/change config file in the configs/DeepXML-OVA directory): ./run_main.sh 0 DeepXML-OVA EURLex-4K 0 108

I made it.Thank you!


do opatch before root.sh in role oraswgi-install for Oracle GI 11.2 Installation on RHEL 7

I've met the following problem : Oracle GI 11.2 Installation on RHEL 7 – Error: ohasd failed to start the Clusterware.

Yeah, applying patches before finalizing an installation is something I'm looking into. It is nontrivial for < 12.2 GI, but I'll fix it eventually.


Disabling Web Sockets

Hi - really like this library biut we can'r use websockets within our organisation - is there an way of disabling this?  We like the interface but don't want a realtime solution

@ElGusanito How you send and receive messages depends on your own implementation.
The library doesn't provide any mechanism for sending/receiving message, so feel freet to use whatever you want (e.g REST).


ROADMAP 2024

The issue is for the development plan of promptulate v2.0.0. The In Development status indicates that there is ongoing progress on the feature, while Planned Development signifies the functionalities intended to be completed in this version but have not yet started. If you are interested in any of the points, you are welcome to create an issue about that content with a simple proposal, describing your general implementation ideas for discussion.
Please note:

If you want to develop a certain feature, I highly recommend you start a new issue mentioning that content to avoid duplicate development efforts. On the other hand, issues provide a channel for developers to communicate.
If someone proposes to develop a content listed under Planned Development, I will move it to In Development.
There are some other development plans in the official documentation that are not yet included in the current version's development plan. If you see a feature you would like to work on, we would be very happy to add it to the development plan for this version!

If you have more interesting feature ideas, you are very welcome to suggest them, as well as submit related issues and pull requests!
Completed

Support for Wenxin Yiyan model #22
IoT control support #64
Shell Tool support #55 #62
Compatibility with langchain tools #67
Compatibility with huggingface tools #67
Transition from BaseTool to Tool type
Build vercel-promptulate-flask https://github.com/Undertone0809/vercel-promptulate-flask

Compatibility with huggingface models

Unit testing and black formatting checks during pull requests

In Development

Providing Chroma integration solution
Providing various external data access solutions, such as documents, URLs, etc.
Using OpenAI for GPT capability driving
Providing lazy loading for all modules

Planned Development
Agent

Support for more types of Agents

Tool

File read/write tools

Create/delete file Tool
File write/append Tool
File reading tools

Web scraping tools
Building more types of tools

Database query tools: Construction of SqlToolKit

Reference: SqlDatabaseTookKit

Integration with more types of search APIs, such as Google

Few-shot support for Tool descriptions
Reference construction of API-style tool extensions, seamlessly interfacing with existing tools

References

Connecting massive APIs with large models: Gorilla
https://arxiv.org/pdf/2305.15334.pdf

LLM

Adaptation to more LLMs, such as current various open-source models

ChatGLM
ChatGLM2-6B
iFlytek Spark Large Model

Memory

Memory storage for Agent, llm related configuration information
Memory compatibility with relational database storage

Others

Improve documentation, add new sections, provide knowledge on LLM, prompt techniques
Develop a simple feature demonstration server based on gradio (to be discussed)
Build a plugin marketplace

Build plugin templates
Integrate third-party plugins quickly via command line

Build multi-Agent scheduling model
Provide proxy configuration for DuckDuckGo
Build a custom Hook system
Build streaming transmission
Explore multimodal capabilities: text-to-image, integration with Huggingface models
Output parser

Discuss

Should the role of BaseFramework and the functionality of presets be removed, or is there a better alternative?
Should the embedding method of Tree of Thoughts be introduced as a mixin? Further discussion is needed.
Is it possible to build an adapter for langchain, thereby connecting to the langchain ecosystem?
Is it feasible to build an LLM's huggingface, offering a more streamlined and elegant way to quickly deploy a large language application model?

Translate into English version.

Next stage, we are going to focus on promoting Agent module and pne.chat() module

Now we use Github Kanban to manage promptulate roadmap.
https://github.com/users/Undertone0809/projects/3


Component executed twice?

I'm a little new to react so forgive me if this is a dumb question.  I used your PostList component as an example and noticed it being executed twice.
I added:
index 02cc730..0ca55c6 100644
--- a/shopify-ui/components/PostList.js
+++ b/shopify-ui/components/PostList.js
@@ -8,6 +8,7 @@ import PostUpvoter from './PostUpvoter';
 const POSTS_PER_PAGE = 10;

 let PostList = ({ data: { allPosts, loading, _allPostsMeta }, loadMorePosts, className }) => {
+  console.log(allPosts);
   if (allPosts && allPosts.length) {
     const areMorePosts = allPosts.length < _allPostsMeta.count;
     return (

Refreshed / and it prints twice in the server console as well as the browser console.  Is it supposed to do that?

Hey @sheats,
I checked it and yes, it's a bug :) I don't know why but apollo-react is rendering the component two times. I was thinking that's because of the server rendering but It's not. If I find any answer, I will fix.

I think it might be related to https://github.com/zeit/next.js/issues/978

I tried updating next.js/examples/with-apollo to the latest versions and the issue still seems to remain.  It would be awesome though if we could get RAN updated to the latest Apollo.  That could make it easier to bring in some experts to look into this further as they will probably insist on debugging the issue with the latest version.  Any chance someone who knows what they are doing could update RAN dependencies to keep the momentum going on this amazing project?

BTW, apparently this is the way it works.  I suspect this issue can be closed.
https://github.com/zeit/next.js/issues/5050#issuecomment-416771851

Thanks all for help! on @Enalmada's comment, basically it says this is the feature of Apollo :) So I'm closing this issue.


caddy: 2.4.6 -> 2.5.0

Description of changes
https://github.com/caddyserver/caddy/releases/tag/v2.5.0
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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

[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Thank you for the update!