modify autoscaler to work with self hosted workers

modify autoscaler to work with self hosted workers

@jubranNassar just wondering, as part of doing this, did you backport changes from https://github.com/spacelift-io/terraform-aws-spacelift-workerpool-on-ec2? I'm just seeing some stuff that seems a bit odd in this PR, and I'm wondering if it's because of that.

Yes I did, I used what was already working from the other repo and moved it into this one. What parts seem odd btw? I can go back and take a look

@jubranNassar just wondering, as part of doing this, did you backport changes from https://github.com/spacelift-io/terraform-aws-spacelift-workerpool-on-ec2? I'm just seeing some stuff that seems a bit odd in this PR, and I'm wondering if it's because of that.

Yes I did, I used what was already working from the other repo and moved it into this one. What parts seem odd btw? I can go back and take a look

It's just stuff like the fact that we have a variable called enable_autoscaling. But given this is the autoscaling module, why would we be using the module, but then tell it not to actually create any resources?
The other thing is we probably want to avoid a situation where we have two ways of deploying this defined in two modules. So maybe we should aim to make this a reusable TF module that can be used by the terraform-aws-spacelift-workerpool-on-ec2 module?

That's a great point @adamconnelly. I mainly was trying to just get this to work since a customer needs this ASAP, but what you mentioned makes total sense.
I can work on it and do some refactoring and make it look a bit more pretty before merging

That's a great point @adamconnelly. I mainly was trying to just get this to work since a customer needs this ASAP, but what you mentioned makes total sense.
I can work on it and do some refactoring and make it look a bit more pretty before merging

Yeah - I'm just conscious that this is also a public repo, so we need to assume that if we put stuff out here people will use it. And I really want to avoid us having two sets of similar code that diverge.
So thanks for taking another look :bow:


HOCS-2995: update to React 17.0.2 initial broken commit

I've tried running the tests for this locally after a clean slate install with node 14.15.4 and get a whole bunch of failures, but can see the tests appear to have passed in the pipeline. Do the tests pass OK for you locally? Not sure why I'm seeing a difference.

I've tried running the tests for this locally after a clean slate install with node 14.15.4 and get a whole bunch of failures, but can see the tests appear to have passed in the pipeline. Do the tests pass OK for you locally? Not sure why I'm seeing a difference.

Hi Rob, I was running 14.17 as it happens however when I've switched to 14.15.4, my tests still pass. I did a clean-install as well to check, and they still pass. What exceptions are you getting?

I've tried running the tests for this locally after a clean slate install with node 14.15.4 and get a whole bunch of failures, but can see the tests appear to have passed in the pipeline. Do the tests pass OK for you locally? Not sure why I'm seeing a difference.

Hi Rob, I was running 14.17 as it happens however when I've switched to 14.15.4, my tests still pass. I did a clean-install as well to check, and they still pass. What exceptions are you getting?

Apologies looks like I didn't have all the changes on the branch when I checked it out. Run and all passed ok now


support customized keyboard layout (with KLC file)

Is your feature request related to a problem? Please describe.
I use dvorak keyboard layout, and I can not find a way to change the wslg keyboard from qwerty to dvorak
Describe the solution you'd like
Describe alternatives you've considered
Additional context

You could try calling setxkbmap us dvorak-alt-intl -model pc102 - that worked for me (see https://susi.dev/dev-env-2020 at the bottom for my solution from last year, seems to continue working with wslg).

This just worked for Qt programs, Gnome programs requires layout change in weston.ini, but when changing /mnt/wslg/.config/weston.ini nothing happens

Indeed, some applications work through xwayland and then weston (the wayland compositor), and therefore the setxkbmap invocation works, but other (wayland-compatible) applications go directly through weston.
If anyone has any tips as to changing weston's keyboard layout (via the weston.ini suggested by @viniavila for example) I would be grateful.

I have figured out a hacky way of changing the Wayland (weston) keyboard layout.
In short, you can edit weston.ini in the hidden wslg system instance and then send the weston process a HUP signal so it reloads this new config.
Step by step:

enter the WSLg system instance by doing wsl..exe --system

cat /home/wslg/.config/weston.ini to see the current config, it should look like this:

[xwayland]
disable_access_control=true

[input-method]
path=

Add the relevant keyboard layout variables. In my case I want dvorak: echo -e "\n[keyboard]\nkeymap_layout=us\nkeymap_variant=dvorak\n" >> /home/wslg/.config/weston.ini

Confirm that the weston.ini now looks something like this:

[xwayland]
disable_access_control=true

[input-method]
path=

[keyboard]
keymap_layout=us
keymap_variant=dvorak

Tell the weston process to restart by sending it the HUP signal: pkill -HUP weston (this will restart it, so any gui apps of yours will be killed)

Wayland apps you start during this session will use the new keymap. If I understand the docs correctly, the WSLg system instance is ephemeral, so the next time you restart wsl (with --shutdown) or reboot your machine, you'll have to do it again.
For extra credit, build your own WSLg system distro and use that. ;)

@cpbotha , thanks for write up! actually weston should be trying to "sync" the keyboard layout based on what Windows client software (RDP client) reports.
For example, when I use with Japanese keyboard, Windows reports like below (logged in weston.log).
     [12:08:56.935] kbd_layout:0xe0010411 kbd_type:0x7 kbd_subType:0x2 kbd_functionKeys:0xc

And RDP backend in weston will try to match above to rules in Xkb.
      [12:08:56.935] convert_rdp_keyboard_to_xkb_rule_names: matching layout=jp variant=(null)

And Xkb will compile matching layout (below is debug output from Xkb if enabled).
    xkbcommon: DEBUG: Compiling from RMLVO: rules 'evdev', model 'jp106', layout 'jp', variant '(null)', options '(null)'
    xkbcommon: DEBUG: Compiling from KcCGST: keycodes 'evdev+aliases(qwerty)', types 'complete', compat 'complete+japan', symbols 'pc+jp+inet(evdev)'

And for US-dvorak case, it should be like below.
    [12:29:59.328] kbd_layout:0x10409 kbd_type:0x4 kbd_subType:0x0 kbd_functionKeys:0xc
    [12:29:59.328] convert_rdp_keyboard_to_xkb_rule_names: matching layout=us variant=dvorak

    xkbcommon: DEBUG: Compiling from RMLVO: rules 'evdev', model 'pc102', layout 'us', variant 'dvorak', options '(null)'
    xkbcommon: DEBUG: Compiling from KcCGST: keycodes 'evdev+aliases(qwerty)', types 'complete', compat 'complete', symbols 'pc+us(dvorak)+inet(evdev)'

And above should have same effect as configuring at weston.ini. Thus, when "auto-sync" doesn't work, there is 3 possibilities, I think.
1: The layout Windows Client software reported doesn't match your settings in Windows (but this is very unlikely, I think).
2: RDP-backend failed to convert or convert to wrong Xkb settings.
3: The corresponding Xkb rules (and etc) is not installed in system-distro. (but this doesn't apply to your case since configuring weston.ini does fix it).
Would you please take a look your weston.log to see what Windows client reports and what Xkb rules RDP-backend covert to ?
Thank you very much for trying out WSLg and helping us!

Would you please take a look your weston.log to see what Windows client reports and what Xkb rules RDP-backend covert to ?

Thank you very much @hideyukn88 for spending your time on this, and explaining this mechanism.
I just checked my weston.log and see this:
[07:27:59.623] kbd_layout:0xa0010409 kbd_type:0x2110110 kbd_subType:0x2 kbd_functionKeys:0xc

The text convert_rdp_keyboard_ is nowhere to be found and than log file.
This is very possibly because I use the dvaltint keyboard layout from [1], a special Dvorak layout with no dead keys that supports AltGr as a compose key, so I can type the diacritics I need in Afrikaans ad Dutch.
Is there any way for me to modify that keymap (I have the KLC file) so that WSLg does recognize it as layout US variant Dvorak, or maybe some other approach?
[1] http://keyboards.jargon-file.org/ see "United States-Dvorak International Alternate"

@cpbotha , thanks for checking out and explaining your issues, so in summary...
1: Since you are using customized keyboard layout (using KLC file), the kbd_layout and kbd_type (which Windows reports to WSLg) are not standard one defined in Remote desktop protocol (below link), thus those can't be recognized by RDP-backend, and it ends up not changing anything, left as default English layout, or as you do, configured with the override from weston.ini.
https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/00f1da4a-ee9c-421a-852f-c19f92343d73

2: Since you are using customized keyboard layout, does override by weston.ini give you exactly what you have in Windows side? I image it is not since that weston config sets Xkb to standard English Dvorak layout, not which might not match perfectly with your customized one, am I right?
Thus the possible solutions are...
a: Offer a way to override keyboard layout which can remain across WSL restarts, which eliminate the needs to update weston.ini every time. This sounds workaround, but it helps a lot, I guess. This also helps when the match done by RDP-backend is not exactly what user want.
b: Offer a way to configure Xkb with custom Xkb configuration files, thus if user has non-standard layout, which is not available at system-distro by default, they have an option to configure it and apply using solution a:
c: (very unlikely to be done, but ideally better) When custom keyboard layout file are being used in Windows side, auto generate Xkb configuration from KLC (or any other source) if necessary, and auto apply it.
We will continue to explore more options for solution, please feel free to send us feedbacks!

@hwdef, as I commented above (https://github.com/microsoft/wslg/issues/173#issuecomment-849894177), would you please check weston.log and see what layout is reported from Windows and being converted for Xkb? thanks!

@hideyukn88
Sorry, I don't have a wslg environment anymore and can't test it for you

2: Since you are using customized keyboard layout, does override by weston.ini give you exactly what you have in Windows side? I image it is not since that weston config sets Xkb to standard English Dvorak layout, not which might not match perfectly with your customized one, am I right?

You are right, it does not match perfectly, but for my purposes it's good enough. In any case, I can customise XKB as I usually have to do on my Linux setups in any case.

Thus the possible solutions are...
a: Offer a way to override keyboard layout which can remain across WSL restarts, which eliminate the needs to update
b: Offer a way to configure Xkb with custom Xkb configuration files, thus if user has non-standard layout, which is not
c: (very unlikely to be done, but ideally better) When custom keyboard layout file are being used in Windows side, auto generate Xkb configuration from KLC (or any other source) if necessary, and auto apply it.

I would personally be happy with any of these!
Thank you again!

I'm using a custom keyboard layout for which I have a KLC file for Windows and an xkb/symbols file for Linux. Where should I put the xkb/symbols file for it to register the layout? The few XWayland applications which I'd like to use don't recognize my keystrokes, and instead seem to use the regular us layout.
My attempts to simply copy the xkb/symbols file to the /usr/share/X11/xkb/symbols directory on my WSL2/Linux distro were unsuccessful. While I can merrily change between existing layouts (setxkbmap de, setxkbmap en), the attempt to execute setxkbmap k6, where k6 is my own layout, results in Error loading new keyboard description.
I've tried applying @cpbotha's hack after copying my custom layout file into the hidden WSL2-distro. This causes XWayland applications to crash on the first keystroke.
Is there a way forward for people who have custom keyboard layout files on both, Windows and Linux?

I try https://github.com/microsoft/wslg/issues/173#issuecomment-910172263 solution.
I write to .profile.
wsl.exe --user root --system bash -c "echo '[keyboard]' >> /home/wslg/.config/weston.ini"
wsl.exe --user root --system bash -c "echo 'keymap_layout=us' >> /home/wslg/.config/weston.ini"
wsl.exe --user root --system bash -c "echo 'keymap_variant=dvorak' >> /home/wslg/.config/weston.ini"
wsl.exe --user root --system pkill -HUP weston

But, It did not work.
weston.log
convert_rdp_keyboard_to_xkb_rule_names: matching model=pc105 layout=us variant=(null) options=(null)

I believe it is bad that Windows is automatically trying to sync keyboard settings with RDP and WSLg.
I am using a physical US keyboard in Windows (specifically Realforce), with the region and language set to Japanese, and using kbddv.dll in the registry.
Using Dvorak sequence on Windows 10 (20H2) without any external tools - Qiita
This is the method described in the following page.
The reason why I am doing this hack is that there is a circumstance that Japanese conversion systems like Google Japanese Input or MSIME do not work on Windows unless it is set to Japanese, but Dvorak does not exist in the Japanese keyboard variants.
When I see that the settings by setxkbmap work via XWayland, I believe that this behavior is not what Microsoft intended.
For some reason, it only reverts to QWERTY for a split second when I shift the focus to an app...
It would be nice if an option to turn off keyboard layout synchronization via RDP could be added per wslgconfig.

I'm currently using an Italian keyboard with a self made KLC layout because, as a developer, I also want a shortcut for the "backtick" (`) character without having the only choice to use a US keyboard instead...
Previous solutions don't work for me, I don't get what's the problem :\

This is not a direct solution, but I will post my workaround.
I decided to use Keyhac to solve this problem.
This is a keymapper that allows you to write settings in Python.
You can use Keyhac as a
https://github.com/ncaq/keyhac-config/blob/16f91349b9fd8321e0b914ba9a592eb68fffc22a/config.py#L150
Configure it as follows.
Then all keystrokes can be freely substituted if the focus is on a window under the control of a WSLg process.
This control method may have latency problems, but for now, it didn't bother me much for my use of Emacs.
For more details, please refer to the following article in Japanese.
Dvorak input with Wayland native in WSLg to counter QWERTY on its own and Japanese input - ncaq

I recently installed ubuntu on wsl and when i open Chrome browser by terminal with google-chrome it opens it but when am typing in browser it shows it in Cyrillic. Why ? I did not sync it or anything. It does it by default!

@pdevelopement, would you please share /mnt/wslg/weston.log? if not prefer to share whole, please share every line contain kbd_layout or xkb, thanks!

Same issue here, custom Italian layout created with MSKLC to have tilde and backticks (by the way is there any other way to have an italian keyboard with those on windows?).
In the logs you can see what happens when I switch between the two layouts. My custom layout (0xa0000410) doesn't have an xkb counter part and it defaults to "us", italian (0x410) does have a matching layout and maps to normal xkb layout.
Ironically xkb layouts have tilde and backticks so I get them on wslg apps with the standard Italian layout but I lose them in the WSL  shell because it uses windows keymap...
Setting a keymap in weston.ini doesn't do anything for me. Any other idea?
[15:04:32.814] Client: LanguageImeInfo: ProfileType: 2 (TF_PROFILETYPE_KEYBOARDLAYOUT)
[15:04:32.814] Client: LanguageImeInfo: LanguageID: 0x410
[15:04:32.814] Client: LanguageImeInfo: LanguageProfileCLSID: GUID_NULL
[15:04:32.814] Client: LanguageImeInfo: ProfileGUID: GUID_NULL
[15:04:32.814] Client: LanguageImeInfo: KeyboardLayout: 0xa0000410
[15:04:32.814] convert_rdp_keyboard_to_xkb_rule_names: matching model=pc105 layout=us variant=(null) options=(null)
[15:04:32.819] rail_client_LanguageImeInfo_callback: new keyboard layout: 0xa0000410
[15:04:36.052] Client: LanguageImeInfo: ProfileType: 2 (TF_PROFILETYPE_KEYBOARDLAYOUT)
[15:04:36.052] Client: LanguageImeInfo: LanguageID: 0x410
[15:04:36.052] Client: LanguageImeInfo: LanguageProfileCLSID: GUID_NULL
[15:04:36.052] Client: LanguageImeInfo: ProfileGUID: GUID_NULL
[15:04:36.052] Client: LanguageImeInfo: KeyboardLayout: 0x410
[15:04:36.052] convert_rdp_keyboard_to_xkb_rule_names: matching model=pc105 layout=it variant=(null) options=(null)

I use programmer dvorak, and I have to install a custom keyboard layout for windows.  The [keyboard] section of weston.ini used to work, but it no longer works for me.  However, setxkbmap us dvp appears to work for both xwayland applications and direct wayland applications now.  Which is nice because when I forget to do the weston.ini tweak, I don't have to SIGHUP the weston process.

However, setxkbmap us dvp appears to work for both xwayland applications and direct wayland applications now.

how do you run setxkbmap? inside a wsl shell? it gives me a "cannot open display" error.

I'm on win11. I use archlinux in wsl2 (imported from the archlinux docker base tar) and I have the default user setup as root.  Other than that, I don't really have anything special happening.
My $DISPLAY is automatically setup as :0.
%USERPROFILE%/.wslconfig
[wsl2]
swap=16GB

/etc/wsl.conf
[boot]
systemd=true

wsl.exe --version
WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>
WSLg version: 1.0.50
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.1413

setxkbmap us dvp just works after printing WARNING: Running setxkbmap against an XWayland server

Thanks, it still doesn't do anything here (ubuntu 22.04), tested it with native wayland apps, not sure on XWayland as I don't use any. Also tried launching from wsl --system both with user root and wslg. Still nothing. Same for setting keyboard in weston.ini.
Weston still does its windows to xkb mapping and there isn't apparently any way to force a different layout on the linux side.
Anybody knows a good work around for this while this issue gets eventually fixed?
Kernel version: <IP_ADDRESS>
WSLg version: 1.0.51
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19042.2728```

I'm getting the same issue now too. The weston.ini [keyboard] hack has stopped working, and none of the suggested setxkbmap methods are having any effect. I'm not able to use the Colemak keyboard layout in wslg anymore as of the latest Windows update.
WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>
WSLg version: 1.0.51
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.1555

@hideyukn88 not able to test it at the moment but could the recent behavior come from https://github.com/microsoft/weston-mirror/pull/134 ? maybe before that if no mapping could be found it defaulted to weston.ini configuration? not that it was ideal before with it being non persistent and the weston SIGHUP, but at least there was some hacky way to force a keyboard inside wsl.

3. echo -e "\n[keyboard]\nkeymap_layout=us\nkeymap_variant=dvorak\n" >> /home/wslg/.config/weston.ini

when I execute this command this is the output
-bash: /home/wslg/.config/weston.ini: Permission denied
any solution?

@abdelmounim-dev
I am sure this is the case.
In the end, the rewrite method didn't work because it reset the system.
wsl.exe --user root --system bash -c 'echo [keyboard] >> /home/wslg/.config/weston.ini'

In case it helps someone: this happened to me because I'm traveling and temporarily using a Japanese keyboard, thus I have configured Windows to use the Japanese keyboard layout; but turns out I hadn't the Japanese locale installed in the WSL-ed Ubuntu I use.
I found the solution here:

Ran sudo dpkg-reconfigure locales
Selected all the ja_JP entries in the list
Pressed the tab key to select <Ok>, then Enter
wsl --shutdown

Not sure if related or just a coincidence but I also had to reboot my computer because VSCode was no longer able to access the WSL filesystem.

I'm using a custom keyboard layout for which I have a KLC file for Windows and an xkb/symbols file for Linux. Where should I put the xkb/symbols file for it to register the layout? The few XWayland applications which I'd like to use don't recognize my keystrokes, and instead seem to use the regular us layout.
My attempts to simply copy the xkb/symbols file to the /usr/share/X11/xkb/symbols directory on my WSL2/Linux distro were unsuccessful. While I can merrily change between existing layouts (setxkbmap de, setxkbmap en), the attempt to execute setxkbmap k6, where k6 is my own layout, results in Error loading new keyboard description.
I've tried applying @cpbotha's hack after copying my custom layout file into the hidden WSL2-distro. This causes XWayland applications to crash on the first keystroke.
Is there a way forward for people who have custom keyboard layout files on both, Windows and Linux?

You should edit evdev files too. Check here: https://askubuntu.com/questions/896822/custom-keyboard-layout-behaves-like-last-selected


python312Packages.publicsuffixlist: <IP_ADDRESS>41102 -> <IP_ADDRESS>41108

Changelog: https://github.com/ko-zu/psl/blob/v<IP_ADDRESS>41108-gha/CHANGES.md

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

[ ] 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/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

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

[ ] Fits CONTRIBUTING.md.

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

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 354610

x86_64-linux

:fast_forward: 4 packages marked as broken and skipped:

python311Packages.parsedmarc
python311Packages.parsedmarc.dist
python312Packages.parsedmarc
python312Packages.parsedmarc.dist

:x: 5 packages failed to build:

parsedmarc
parsedmarc.dist
pretalx
pretalx.dist
pretalx.static

:white_check_mark: 10 packages built:

python311Packages.checkdmarc
python311Packages.checkdmarc.dist
python311Packages.publicsuffixlist
python311Packages.publicsuffixlist.dist
python312Packages.checkdmarc
python312Packages.checkdmarc.dist
python312Packages.publicsuffixlist
python312Packages.publicsuffixlist.dist
trustymail
trustymail.dist


Vansh Maheshwari

Description
When I go to the Settings Tab and click on preferences, the app suddenly closes displaying "Something went wrong". Also the settings which I had modified also goes back to default after relaunching the app. Please fix this issue and make it more smoother like  File Explorer. The only good feature is multiple tabs, else everything is ordinary and not optimized.
Steps To Reproduce
Please modify the app to look more like File Explorer.
Speed up the process of loading UI as it takes much more time
Expected behavior
Improve the functionality of app.
Files Version
1.5
Windows Version
Windows 11 build 22000
Relevant Assets
No response

Thanks for the report.

Please post the app's debug logs (you can reach them from Settings > About > Open log location)
Could you also post the contents of the "terminal.json" file (found in the same folder as the log files, under "settings" folder)
Could you also confirm the app version? Version 1.5 is pretty old


Use leftJoin with condition in inside on;

Environment
Knex version: ^0.16.3
Database + version: postgres
OS: Windows 10
Doubt

I need make a select using left join with multiple conditions inside on;
One of this conditions needs to be: column in array;

My sql: SELECT * FROM table1 LEFT JOIN table2 ON(table1.columnA in (1, 2, 3, 4, 5));
My attempt at: knex.select('*').from('table1').leftJoin('table2', function({
this.on('table1.columnA', 'in', [1, 2, 3, 4, 5]);
});
Result of knex executation: The operator "in" is not permitted at Formatter.operator (/app/node_modules/knex/lib/formatter.js:179:13);
I tryed the find a solution for this in documentation but i not found; If someone can help me
I appreciate it;
Obs: Sorry for any english error;

http://knexjs.org/#Builder-onIn


Removed USE_WP8_NATIVE_SQLITE and USE_CSHARP_SQLITE #609

Is there a way to show why it fails? When clicking details, it wants me to sing in. Locally, it builds and tests are passing.


[Work in progress] Separation of concerns using - TrustedApplications

I've separated this out from #117 to highlight only what is new compared to that. Like that PR, this is basically replicating the approach from #116 using React.

Btw, this is what it now looks like, given that the style guide is active now:

This relates to https://github.com/solid/solid-panes/issues/72

We will merge soc-react and soc-react-trustedApps into master.


Implementation of Equirec2Perspective

Motivation and Context
This is a pull request related to #500, which enables us to convert equirectangular images into perspective images.  Also, I refactored Cube2Equirec and Cube2Fisheye by implementing the ProjectionConverter class that converts images into any camera projection models.
ProjectionConverter class requires input camera projection models and output camera projection model. Each camera projection model has two functions namely projection that projects 3D points onto the image plane and unprojection that project image points onto the unit sphere.
Could you take a look at this pull request, @Skylion007?
I'm also thinking about how to implement Equirec2Cubemap. It is possible to implement it by creating six ProjectionConverter. Or it might be easier to allow ProjectionConverter to have multiple output projection models, but it will complicate the forward function.  I would appreciate your help!
How Has This Been Tested
I tested by executing the following code.
import habitat
from habitat_baselines.common.baseline_registry import baseline_registry
from habitat_baselines.utils.common import batch_obs
import math
from copy import deepcopy
import matplotlib.pyplot as plt
import numpy as np
import torch

# New features
from habitat_baselines.common.obs_transformers import ProjectionConverter
from habitat_baselines.common.obs_transformers import EquirectProjection, FisheyeProjection, PerspectiveProjection, CameraProjection

config=habitat.get_config("configs/tasks/pointnav.yaml")
config.defrost()
CAMERA_NUM = 6
orient = [
    [0, math.pi, 0],  # Back
    [-math.pi / 2, 0, 0],  # Down
    [0, 0, 0],  # Front
    [0, math.pi / 2, 0],  # Right
    [0, 3 / 2 * math.pi, 0],  # Left
    [math.pi / 2, 0, 0],  # Up
]
sensor_uuids = []
# Setup six cameras, Back, Down, Front, Left, Right, Up.
if "RGB_SENSOR" in config.SIMULATOR.AGENT_0.SENSORS:
    config.SIMULATOR.RGB_SENSOR.ORIENTATION = orient[0]
    for camera_id in range(CAMERA_NUM):
        camera_template = f"RGB_{camera_id}"
        camera_config = deepcopy(config.SIMULATOR.RGB_SENSOR)
        camera_config.ORIENTATION = orient[camera_id]

        camera_config.UUID = camera_template.lower()
        sensor_uuids.append(camera_config.UUID)
        setattr(config.SIMULATOR, camera_template, camera_config)
        config.SIMULATOR.AGENT_0.SENSORS.append(camera_template)
config.freeze()

# Setup CubeMap2Equirec
obs_trans = baseline_registry.get_obs_transformer("CubeMap2Equirect")
equirec_size = (480, 960)
cube2equirec = obs_trans(sensor_uuids, equirec_size)

# Load embodied AI task (PointNav) and a pre-specified virtual robot
env = habitat.Env(
    config=config
)

observations = env.reset()

print("Environment creation successful")
observations = env.reset()

batch = batch_obs([observations])

copy_batch = deepcopy(batch)

trans_observations = cube2equirec(copy_batch)
equirect = trans_observations['rgb_0']
plt.title("Generated equirectangular image")
plt.imshow(equirect.numpy().squeeze())
plt.tight_layout()
plt.savefig("equirect.png")

###################################
# Example of ProjectionConverter
###################################
# Input equirectangular camera
input_model = EquirectProjection(*equirec_size)

# Fisheye camera
fish_w, fish_h, fish_fov = 512, 512, 220
xi = 0.3
alpha = 0.3

fx = 0.15 * fish_w
fy = fx
cx = fish_w / 2
cy = fish_h / 2
fish_cam = FisheyeProjection(fish_h, fish_w, fish_fov, cx, cy, fx, fy, xi, alpha)

# Normal camera
perspective_cam = PerspectiveProjection(256, 256)

# Zoom camera
perspective_zoom_cam = PerspectiveProjection(256, 256, f=256)

# Tilted camerea
angle_rad = np.deg2rad(45)
rot = np.array(
    [
        [1.0, 0, 0],
        [0.0, np.cos(angle_rad), -np.sin(angle_rad)],
        [0.0, np.sin(angle_rad), np.cos(angle_rad)],
    ]
)
perspective_tilt = PerspectiveProjection(256, 256, R=torch.from_numpy(rot))

# Define converter functions
to_fisheye = ProjectionConverter(input_model, fish_cam)
to_perspective = ProjectionConverter(input_model, perspective_cam)
to_perspective_zoom = ProjectionConverter(input_model, perspective_zoom_cam)
to_perspective_tilt = ProjectionConverter(input_model, perspective_tilt)

convert_funcs = [to_fisheye, to_perspective, to_perspective_zoom, to_perspective_tilt]

# Convert images
fig, ax = plt.subplots(2, 2, figsize=(10,10))
ax = ax.flatten()

input_tensor = equirect.permute((0, 3, 1, 2))  # NHWC => NCHW
sensor_dtype = input_tensor.dtype
input_tensor = input_tensor.float()

for i, to_ in enumerate(convert_funcs):
    out = to_(input_tensor)
    out = out.permute((0, 2, 3, 1))  # NCHW => NHWC
    out = out.to(dtype=sensor_dtype)
    out_viz = out.numpy().squeeze()
    ax[i].imshow(out_viz)
fig.tight_layout()
fig.savefig("converted_img.png")

*I modified this example after renaming {Fisheye, ...}Camera to {Fisheye,...}Projection.
Input equirectangular image:

Output converted images:

Types of changes

refactoring
New feature

Checklist

[x] My code follows the code style of this project.
[x] I have read the CONTRIBUTING document.
[x] I have completed my CLA (see CONTRIBUTING)
[x] All new and existing tests passed.

Also, I added a bug fix for depth map generation in this pull request.
As explained in #500, currently, six depth maps in cubemap are the distance from each image plane, but it should be the distance from the optical center to create depth map for equirectangular and fisheye.
In my implementation, if input tensors have a single channel, they are considered as depth. So, if you have a plan to use grayscale images, it's better to check dtype as well.
TODO:

[ ] In the current test, I suppose the depth map generation is not included.  So, I will add them later.
[ ] Add more comments.

Thanks,

Hi @Skylion007,
now ProjectionConverter allows you to use multiple output projection models. I uploaded some examples in gist. Also, the depth is handled correctly based on UUID in ObservationTransformer.
The example using ObservationTransformer to deal with both image and depth is in equirect_obs.py in the gist. I use Open3D to visualize depth as point clouds, which I included in this gist.
I tested the projection conversion from input cubemap to equirect images, and also I converted back from the equirect images to cubemap images. The test code is habitat_cube2equirect2cube_test.py.
Input cubemap:

Equirect image:

Cubemap from equirect image:

It looks fine, but I noticed the input cubemap and output cubemap have a little difference because of align_corners = True in grid_sample. Based on geometry,  I think align_corners should be False, but some borderlines appear with  align_corners = False, so I set align_corners = True to make the lines disappear.
Could you help me out here? Or let's handle this in another pull request later? (since it's getting messy in this pull request)
with align_corners = False (maybe borderlines not so noticeable with this resolution):

Also, one more thing I want to make sure is the depth conversion for cubemap. In the current implementation, depth in the output cubemap is not from optical center but from z value. I think this is a natural way to represent depthmap for perspective cameras.
If it's okay, then I will implement Equirect2Cubemap as an example of using multiple output projection models and add tests for Equirect2Cubemap.
Thanks!

I added ProjectionTransformer, Equirect2CubeMap, and test for the class. I feel like there is another way to test Equirect2CubeMap, but I don't understand much about habitat-lab system. please change here if you have better ideas.

Thanks for the visualization code, is there anyway we could turn it into a Pytest. Obviously, the easiest Pytest would be to test that the two conversions above are approximately the same (maybe with SSIM?) ^.

I hope just comparing values is enough. (I don't wanna include Open3D as the dependencies,,,)
I will leave align_corners = True here since I couldn't figure out how to fix it. Hopefully, someone will fix this problem later.
I guess this pull request is almost done. Thanks!

Thank you for reviewing my source code!
I fixed the order to get it worked with VectorEnv. Also, I checked some examples with the latest Habitat-Sim and Habitat-Lab. Thanks!

Thank you for taking care of it!


Enable Chap Authentication in gluster block

Signed-off-by: Humble Chirammal<EMAIL_ADDRESS>

@wongma7 PTAL :)

@wongma7 Please review. :)

lgtm


[SPARK-40210][PYTHON][CORE] Fix math atan2, hypot, pow and pmod float argument call

What changes were proposed in this pull request?
PySpark atan2, hypot, pow and pmod functions marked as accepting float type as argument but produce error when called together. For example:
>>> from pyspark.sql.functions import *
>>> df = spark.range(1)
>>> df.select(atan2(1.1, 2.1)).first()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/khalid/dev/p/SparkTest/spark_venv3.10/lib/python3.10/site-packages/pyspark/sql/functions.py", line 962, in atan2
    return _invoke_binary_math_function("atan2", col1, col2)
  File "/home/khalid/dev/p/SparkTest/spark_venv3.10/lib/python3.10/site-packages/pyspark/sql/functions.py", line 111, in _invoke_binary_math_function
    return _invoke_function(
  File "/home/khalid/dev/p/SparkTest/spark_venv3.10/lib/python3.10/site-packages/pyspark/sql/functions.py", line 85, in _invoke_function
    return Column(jf(*args))
  File "/home/khalid/dev/p/SparkTest/spark_venv3.10/lib/python3.10/site-packages/pyspark/python/lib/py4j-<IP_ADDRESS>-src.zip/py4j/java_gateway.py", line 1321, in __call__
  File "/home/khalid/dev/p/SparkTest/spark_venv3.10/lib/python3.10/site-packages/pyspark/sql/utils.py", line 190, in deco
    return f(*a, **kw)
  File "/home/khalid/dev/p/SparkTest/spark_venv3.10/lib/python3.10/site-packages/pyspark/python/lib/py4j-<IP_ADDRESS>-src.zip/py4j/protocol.py", line 330, in get_return_value
py4j.protocol.Py4JError: An error occurred while calling z:org.apache.spark.sql.functions.atan2. Trace:
py4j.Py4JException: Method atan2([class java.lang.Double, class java.lang.Double]) does not exist
        at py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:318)
        at py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:339)
        at py4j.Gateway.invoke(Gateway.java:276)
        at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
        at py4j.commands.CallCommand.execute(CallCommand.java:79)
        at py4j.ClientServerConnection.waitForCommands(ClientServerConnection.java:182)
        at py4j.ClientServerConnection.run(ClientServerConnection.java:106)
        at java.lang.Thread.run(Thread.java:748)

Although, this call could be written outside the Spark and supplied as a literal it's still good to be consistent with SQL API and help user to avoid seeing error.
after the fix:
>>> from pyspark.sql.functions import *
>>> df = spark.range(1)
>>> df.select(atan2(1.1, 2.1)).first()
Row(ATAN2(1.1, 2.1)=0.4825132950224769)

Why are the changes needed?
Improve user experience. Bug fix
Does this PR introduce any user-facing change?
Yes, no errors
How was this patch tested?
./python/run-tests

This is second solution to the issue. 1st was https://github.com/apache/spark/pull/37650

pmod was newly added in https://github.com/apache/spark/commit/f8b15395cf347b6c6c6a4a20077fdeb31bfabb24
do we need to make it support the legacy?

cc @zero323 fyi

Merged into master, thanks all

Can one of the admins verify this patch?


Image and Text tabs in the block editor are really hard to read

Describe the bug
Because the light grey color of the "Image" tab in the block editor, it appears greyed out. As a user I might assumed that I couldn't access the image functionality because its looks greyed out. The "Text" tab is also very hard to read because its a yellow font against beige- unsure if this is an accessibility issue.
What if we changed the font color to tea, light blue, coral, or light pink?

Duplicate of https://github.com/microsoft/pxt-arcade/issues/1895


Shared svdf OpData should be renamed to OpDataSvdf

@tensorflow/micro
Noticed this while reviewing #47911
Similar to
https://github.com/tensorflow/tensorflow/blob/d73ba75a4c1b26b91cc20cb86866d775c02dc479/tensorflow/lite/micro/kernels/conv.h#L27-L28
the svdf struct should be OpDataSvdf instead of
https://github.com/tensorflow/tensorflow/blob/d73ba75a4c1b26b91cc20cb86866d775c02dc479/tensorflow/lite/micro/kernels/svdf.h#L23-L24
This renaming will likely happen after the CEVA optimized kernel is merged so we should include reference, cmsis_nn, xtensa and ceva in the renaming.

@advaitjain,
As mentioned the svdf.h file which is available on the tflite-micro repo contains the changes which are mentioned svdf struct should be OpDataSvdf  . Kindly find the file details below.
https://github.com/tensorflow/tflite-micro/blob/main/tensorflow/lite/micro/kernels/svdf.h#L23
Thank you!


Fix issue where thermal runtime parameters were not being propagated into optim_conf

Seems this got lost at some point in submitting the thermal configuration.
It's needed to specify the start temp and desired temperatures in runtime params.

Not sure why the tests aren't passing, will have to look into that...

Hi @werdnum, thanks for this.
The tests seem to be passing. There is just a random build error that happens from time to time on Python 3.10 test.
Could you convert this to a final PR?

Hi @werdnum, we have just merged a huge PR #334 and it probably messed up this branch.
Can you please update/rebase and fix the eventual conflict so I can merge your PR?

@GeoDerp These tests are failing possibly by how we now will deal with the configuration parameters.
There is the message "config.json does not exist, or has not been passed" so test parameters are not being passed correctly?

@GeoDerp These tests are failing possibly by how we now will deal with the configuration parameters.
There is the message "config.json does not exist, or has not been passed" so test parameters are not being passed correctly?

Ill see if I can have a look into this today, The message about config.json not existing is more of a redundant message for the tests. The code falls back to the default Params in confid_defaults.json. the message was designed to let users know that that there is no config.json but in result sends a warning on every test.


How to post to a timeline?

So how does someone just post to a timeline with this lib?

I haven't implemented that yet, although I thought I had.
Although if you're able to parse my code, it should be possible to make a function for it using the internal function post_request with the right endpoint.


export connector IsAlives stats

PR Description
Type of change

[x] New feature

Checklist

I have run format.sh under script
I have commented my code, particularly in hard-to-understand areas
New and existing unit tests pass locally with my changes

proto update https://github.com/hstreamdb/protocol/pull/93


headerStyle backgroundColor is not the same you put on code

I was styling the header bar of StackNavigation and change the background color. But I saw that the color was not exactly the one I chose, it's darker (just tested on iOS Simulator).
The color I chose:

The color on the bar:

My Code:

The color on simulator is:
#008527

software
version

react-navigation
1.0.0-beta.11

react-native
0.47.1

node
7.5.0

yarn
0.27.5

The headerStyle is passed on exactly as it is passed so I don't see how this is. If you can provide a reproduction of this issue we can re-open. Thanks!


d3.js does not work in Tor Browser due to CDN censorship

When trying to use Tor Browser to view a page which includes from d3js.org, as is suggested in the docs,
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>

loading the script fails, because Cloudflare responds to the JS request with the following response:
CF-RAY: 2948f1c1366e25d4-MRS
Content-Encoding: gzip
Content-Type: text/html; charset=UTF-8
...
<head>
<title>Attention Required! | CloudFlare</title>

containing an HTML page. The reason is that Cloudflare censors Tor users, returning captcha pages to "prove you are a human" in response to most HTTP requests. However, the human trying to view the page has no idea that any of this happens -- after all, this request is made by a browser, not a human -- and since browsers (rightfully) reject HTML responses to JS requests,  D3 just silently fails.
This problem can be fixed by whitelisting Tor in the d3js.org Cloudflare settings.

I’ve whitelisted Tor. Thanks for the report.

Thanks so much!


Add 0xVia to Safe apps

Revision checks

[x] Your Safe App include a manifest.json file at the root with the required data
[x] The app can be loaded as a custom Safe App in the Apps section of https://gnosis-safe.io/app
[x] The app auto-connects to the Safe
[x] You are able to trigger and execute one transaction with a Safe
[x] RPC requests are optimized (not triggering many requests in a very short time period)

Name/Description

Name: 0xVia
Description: The most efficient cross-chain router
Type

New addition

Compatible Networks

Ethereum mainnet
Gnosis Chain (xDai Chain)
Polygon
BNB Smart Chain
Arbitrum
Aurora
Avalanche
Optimism

Code for review

Safe integration: https://github.com/viaprotocol/web3-wallets/blob/main/src/context/WalletProvider.tsx#L454
Note: we do not use our own smart contracts, because we are an aggregator.
See also: https://github.com/viaprotocol
IPFS hash/App URL

https://0xvia.com/
Desired date

As you prefer, no exact date.
Our community has been asking us to be added to the list of safe apps for a long time :)

Hey, some bugs I've found:

If you open the app directly after you use it as a Safe App, it auto-connects to Safe and displays the "Connect wallet" button. It should only connect to the Safe if it's opened as a Safe app

Same is true if you used the app outside via a different wallet first, if I used the app with metamask and open it as a Safe App, it connected to metamask at first for a couple of seconds.
It suggested I use the same Safe address on the destination chain, but the smart contract wallets are limited only to a single chain

Hey @iower, do you have any updates from your side? We'll close the submission in 2 weeks if we don't receive an update. You can always create a new one, of course.


SIGABRT on HybridObjectRegistry::registerHybridObjectConstructor on Android

What's happening?
I implemented the nitro module on ios, now i'm moving to the android implementation, i setup the project following the docs and the template in this repo, i can build the app but i get a SIGABRT when trying to use a nitro module.
I noticed the error is caused by this line:
return JNISharedPtr::make_shared_from_jni<JHybridMapboxNavigationViewManagerRegistrySpec>(globalRef);

in MapboxNavigationOnLoad.cpp
in particular is caused by
return std::shared_ptr<T>(ref->cthis(), GlobalRefDeleter<T>{ref});

in JNISharedPtr.hpp
I found out that calling ref->cthis() causes the SIGABRT but i don't know the reason for that.
Reproduceable Code
I don't know exactly where the problem is but you can here is my repo https://github.com/fbeccaceci/MapboxNavigation

Relevant log output
Debugger attached to process 4947
Signal: SIGABRT (signal SIGABRT)
killed

Process finished with exit code 9

Device
Android simulator API 34
Nitro Modules Version
0.11.0
Nitrogen Version
0.11.0
Can you reproduce this issue in the Nitro Example app here?
No, I cannot reproduce the issue in the Example app
Additional information

[ ] I am using Expo
[X] I am using Nitrogen (nitro-codegen)
[X] I have read and followed the Troubleshooting Guide.
[X] I searched for similar issues in this repository and found none.

I need more log output. The troubleshooting guide tells you how to get those logs

I provided the logs i have, that's the whole console output
Here is the stack trace

This zip contains the logcat output, it is to long to be pasted here
Pixel-8-Pro-API-34-Android-14_2024-10-23_155352.logcat.zip
I think the most relevant part in the logcat logs is
java_vm_ext.cc:591] JNI DETECTED ERROR IN APPLICATION: attempt to access field com.facebook.jni.HybridData com.margelo.nitro.com.mapboxnavigation.HybridMapboxNavigationViewManagerRegistrySpec.mHybridData from an object argument of type com.margelo.nitro.com.mapboxnavigation.HybridMapboxNavigationViewManagerRegistry: 0x61
                                                                                java_vm_ext.cc:591]     in call to GetObjectField
                                                                                java_vm_ext.cc:591]     from void com.facebook.jni.NativeRunnable.run()

Can you reopen this?

I'm sorry, i'm stupid i was extending the wrong class in kotlin

ah no worries - well that's somethign i can maybe also explicitly check for (in debug)


Repo sync for protected CLA branch

The pull request is created from main638084485130680241sync_temp to main to fix git push error for protected CLA branch

Learn Build status updates of commit 8924d61:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


[VS Code] DeprecationWarning: Buffer() is deprecated due to security and usability issues

Error:

Steps to Reproduce:

Install live share extension pack;
Open Developer Tools;
See error as above;
Disable all live share extensions, the error would be gone.

||Version Data|
|extensionName|VSLS|
|extensionVersion|1.0.509|
|protocolVersion|2.2|
|applicationName|VSCode|
|applicationVersion|1.36.1|
|platformName|Windows|
|platformVersion|10.0.18362|
Logs:
LiveShareLogs.zip

Thanks for reporting! I'm seeing the same thing. I'll investigate.

We fixed this a few releases ago. Thanks for telling us about it!


Support avatar uploads.

@keybase/react-hackers, this is ready for review.
Two things need improvement:

Zooming on desktop isn't great. It zooms from the top left instead of from the center of the area you're viewing.
Zooming on Android is temporarily deactivated. I can't figure out how to get the cropping coordinates.

This only adds the ability to edit your user avatar. The ability to edit team avatars will come in a later PR.

Sorry! I apparently left a lot of testing code around. I'll clean this up before asking for another review.

@keybase/react-hackers, this has been cleaned up and is ready for another review.

i'm looking

first test on ios simulator w/ built in images:

@chrisnojima: https://github.com/keybase/keybase/pull/2642

The aspect ratio isn't maintained, so if i upload a small image it squeezes it. also putting in small images doesn't let you pan around at all

( i was looking for files in safari since i can't use the camera roll due to the files being too big)

Just write to your own var and pass that down. Don't write into the parents
value
On Tue, Jul 3, 2018 at 5:06 PM Adam Spooner<EMAIL_ADDRESS>wrote:

@adamjspooner commented on this pull request.
In shared/profile/index.native.js
https://github.com/keybase/client/pull/12306#discussion_r199949743:

_makeUserBio(loading: boolean) {

if (this.props.isYou && this.props.bioEditFns) {

 this.props.bioEditFns.onEditAvatarClick = this._onClickAvatar

I'm not sure what to do here. I need to use react-native-image-picker's
showImagePicker. So, I can't override it in the container (which seems
like the right thing to do). The desktop fails to render with:
Failed to compile.
./node_modules/react-native-image-picker/index.js
Module parse failed: Unexpected token (22:2)
You may need an appropriate loader to handle this file type.
|
| module.exports = {
|   ...ImagePickerManager,
|   showImagePicker: function showImagePicker(options, callback) {
|     if (typeof options === 'function') {
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/keybase/client/pull/12306#discussion_r199949743, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAfhU0VnvDYjxhRs3wmV5QSkSEZHaIOlks5uC9zRgaJpZM4UjMtl
.

@chrisnojima, this is ready for another look. It has user and team avatar uploads. Zooming and panning on Android is all that's lacking.

@chrisnojima, this now has Android support.

looking

looking. you need to merge master in to fix circle

@chrisnojima, this is ready for another review.

@keybase/react-hackers, this is ready for another review.

@keybase/react-hackers, bump.

@keybase/react-hackers, this is ready for another review.

should turn off the feature flag

Do you mean enable it for everyone?

might as well. this is ready to go live right

What if we dog food it while I'm out and I enable it for everyone when I'm back ... you know, in case something is horribly wrong.

ok well you need it to be true on mobile else it won't be in testflight

and make a ticket to turn the feature flag on or leave the ticket in review or something


Issue 6: Add additional documentation for boolean conditions that are…

… part of the Rete network

Looks good! Merged and online: http://www.clara-rules.org/docs/booleans


Rexray 0.3.3 config file not compatible with Rexray 0.4

Rexray 0.3.3 config file is not compatible with Rexray 0.4.
I have 2 instances of rexray 0.3.3 running fine. I pulled rexray 0.4 on a new server and used the same config file as on the 0.3.3.
rexray 0.3.3 config file example:
rexray:
storageDrivers:
- scaleio
volume:
 mount:
  preempt: true
scaleio:
endpoint: xxxxxxxxx
insecure: true
userName: admin
password: xxxxxxxxx
systemID: 0
protectionDomainName: pd1
storagePoolName: hdd

Rexray 0.4 was dying with the following error:

rexray service start -l debug
DEBU[0000] updated log level                             logLevel=debug
DEBU[0000] os.args                                       time=1466613572 val=[rexray service start -l debug]
DEBU[0000] invoking service start                        os.Args=[rexray service start -l debug] time=1466613572
DEBU[0000] starting in background                        time=1466613572
Starting REX-Ray...DEBU[0000] trying to start service                       client=/var/run/rexray/client.sock time=1466613572
DEBU[0000] accepted connection                           time=1466613573
DEBU[0000] received data                                 time=1466613573
FAILED!
DEBU[0000] exiting with error code 1

temporary solution is to use the following config file:
libstorage:
  service: scaleio
  integration:
    volume:
      operations:
        mount:
          preempt: true
scaleio:
  endpoint: xxxxxxxxxx
  insecure: true
  userName: admin
  password: xxxxxxxxxx
  systemID: 0
  protectionDomainName: pd1
  storagePoolName: hdd

it would be good to use the old rexray.storagedrivers as default if libstorage.service is not defined.
thanks

Thank you for taking the time to file this @vibhorgupta! I'm glad we got you online again so quickly. I'll definitely mark this patch a priority and ensure it's included in 0.4.1.

Hi @VibhorGupta, I tested #481 and showed it solves this, so I'm going to close this issue. Look for this fix in the next release.


cross correlation > 1 because of forced shot noise subtraction

There are cases when the cross correlation coefficient computed using MeshFFTCorrelator.__call__ is larger than 1 which is mathematically questionable. It happens because shot noise is removed from the autospectra. It would be nice to have an option to not remove the shot noise, or more generally, use the kwargs when computing the ratio in __call__. I believe all that would need to be changed is this line
https://github.com/cosmodesi/pyrecon/blob/26f5e828fe0619afe303fa4e7d137095c63f7f15/pyrecon/metrics.py#L148C9-L148C14
from
power = self.ratio
to
power = self.get_ratio(complex=complex, **kwargs)
Let me know what you think, thanks!

Hi Adrian, looks good --- please file a PR, or merge directly, as you prefer!
Thanks!


add defensive code to releasePointerCapture

when running tests in my app with Cypress:click I am presented with errors because currentTarget is null. I assume that it happens because Cypress must be triggering events in a non natural manner.

I’ll be removing this pointerCapture thing in the next beta (that’s the side effects I was mentioning). It’s not super reliable with nested children. Thanks for the input though, much appreciated.


Update package.json

Fixes #3

@jsbravoc thanks for the pull request. This weekend I'll accept it together with some other changes that I've to upload. Btw, I'm adding you to contributors :)


Unexpected retry behavior in ServiceBusReceiver.receive_messages with max_wait_time

Package Name: azure-servicebus (async API)
Package Version: 7.8.1
Operating System: Windows 10 19045.2486, macOS Monterey 12.6, Linux-5.4.0-1090-azure-x86_64-with-glibc2.29
Python Version: 3.10.2, 3.9.12, 3.8.10

Describe the bug
The max_wait_time parameter of ServiceBusReceiver.receive_messages affects the retry behaviour of the operation. If a transient error occurs during the operation and there is not enough time to retry, the error is passed on to the user, even if it is perfectly recoverable. In our case, this meant our service would occasionally exit and restart with varying level of impact.
This behaviour was, to us, unexpected and troublesome to diagnose, because:

The retry behaviour becomes a leaky abstraction, rather than an automated and transparent affair
The documentation does not state the parameter affects retry, although it is arguably obvious in hindsight
When a transient error is given up on, the errors are difficult to decipher and understand:

Given that many Azure-related loggers can be highly verbose, one has to know which modules should be logged ahead of time at what severity level. It was not practical for us to enable DEBUG-level logging for all Azure packages in the production environment. The levels we usually log (WARNING and above) did not assist in determining what the problem was. The warnings included LinkDetach('ErrorCodes.UnknownError'), which were pretty opaque. At log level INFO, the only hint indicating the bad retry behavior is that you will get an operation has timed out message
The exception thrown by receive_messages was an obscure azure.servicebus.exceptions.ServiceBusConnectionError: Service Bus has encountered an error. Error condition: ErrorCodes.UnknownError.. In other cases, we've seen uamqp.errors.MessageHandlerError: Message Receiver Client is in an error state. Please confirm credentials and access permissions. See debug trace for more details.. The exceptions themselves do not give any information about the retry state

After rewriting our code not to use max_wait_time at all, the stability has been much improved.
To Reproduce
Steps to reproduce the behavior:

Loop on receive_messages with e.g. max_wait_time=0.5
Wait for or trigger a transient error (by OS-dependent mechanism) on the SB connection
Observe that receive_messages throws a vague exception

Expected behavior
While the behavior as-is may make sense for write-operations with a user-specified timeout, IMHO it does not for read (at least not where max_wait_time is concerned).
I suggest:

receive_messages should return whatever messages it received within max_wait_time, if any, and not throw an exception if the operation can be retried according to policy
Service Bus should keep track of retry internally and transparently, and only cause receive_messages to throw an exception when it has fully given up
The exception we do potentially get should include some details on what specifically failed (e.g. not UnknownError or generic error state messages). Retry status should be more visible to aid in troubleshooting, especially when it gives up

Hi @trylle would you be able to try using the most recent version of azure-servicebus (7.11.0) and see if this problem persists? We introduced pyamqp this year as a fully python amqp stack replacement for uamqp in version 7.10.0 and above.

I'm not the submitter, but have tested the latest version (7.11.1) and it now appears to be ignoring the max_wait_time parameter completely, unless I am misunderstanding what that parameter is meant to do. Here's a sample of what debug logging outputs from my application with the max_wait_time in receive_messages set to 10 (I've tried a variety of settings ranging from 10 to 60 and it behaves the same way each time. I've also tried omitting it from the call, also the same behavior). Happy to provide more details if needed if it helps get this solved!
azure-servicebus.log

Hi @trylle would you be able to try using the most recent version of azure-servicebus (7.11.0) and see if this problem persists? We introduced pyamqp this year as a fully python amqp stack replacement for uamqp in version 7.10.0 and above.

@l0lawrence We have been using azure-servicebus 7.10.0 since June 6, and we also rewrote our code not to rely on max_wait_time due to the problems described originally. Since then it has been able to recover from transient errors (e.g. server-side throttling, updates) without apparent issue. So far, we haven't noted any "unknown" errors in our logs as we received before.
In our case, we still see the behavior of max_wait_time affecting retry (tested on 7.11.1). If I use max_wait_time=3 and turn off wifi, the application will still receive an exception with barely any retry. If I use max_wait_time=None and turn off wifi, the service bus library will retry as expected and resume message delivery when the wifi is turned back on. See below log snippets.
We use default retry options:
self._config.retry_mode
<RetryMode.Exponential: 'exponential'>
self._config.retry_backoff_factor
0.8
self._config.retry_backoff_max
120

maxwait3-snip.log
maxwaitnone-snip.log

Hi @trylle, thank you for testing out the newer version of the package.
I am able to reproduce what you are seeing. I will discuss with our team to find a solution and will update this issue with a PR when available!

Hi @trylle, trying to get more background on this, is there a specific reason you were using the max_wait_time parameter on receive_messages rather than setting the max_wait_time on the ServicebusReceiver. Would you be opposed to only using the max_wait_time set on the ServicebusReceiver?
The reason being, max_wait_time in receive_messages as you have noted does impact both retrying, and the amount of time we will wait for a message. Whereas max_wait_time on the ServicebusReceiver only impacts the amount of time we wait for a message.


fixed starting request url from double slash

fixed double slash for second scrool request in version 5.6
url /_search/scroll transorms to //_search/scroll
https://www.elastic.co/guide/en/elasticsearch/reference/5.6/breaking_50_rest_api_changes.html#_strict_rest_query_string_parameter_parsing

Thanks. I don't maintain this repo or write PHP anymore, so I will simply merge your changes in good faith.


403 forbidden when fetching calendars

Testing locally with a git daemon server serving /tmp/cal (git daemon --verbose --export-all --enable=receive-pack)
$ ./_build/default/caldav --admin-password=coolpwd --host=localhost --http=8080 --remote=git://localhost:9418/tmp/cal --tofu
2024-01-28 20:09:09 +01:00: INF [tcpip-stack-socket] Dual IPv4 and IPv6 socket stack: connect
2024-01-28 20:09:09 +01:00: ERR [webdav.fs] error while getting properties for /principals/root/ Cannot find the key /principals/root/.prop
2024-01-28 20:09:09 +01:00: INF [push] { result= Ok done; commands= [ok refs/heads/main]; }
2024-01-28 20:09:09 +01:00: INF [push] { result= Ok done; commands= [ok refs/heads/main]; }
2024-01-28 20:09:09 +01:00: ERR [webdav.robur.io] make_dir: principals do not exist for aces (ids: )
2024-01-28 20:09:09 +01:00: INF [push] { result= Ok done; commands= [ok refs/heads/main]; }
2024-01-28 20:09:09 +01:00: INF [http.server] listening on 8080/HTTP

$ curl -v -u root:coolpwd -X PUT "http://localhost:8080/users/armael?password=pwd"
< HTTP/1.1 201 Created
$ curl -v -u armael:pwd http://localhost:8080/calendars/armael
< HTTP/1.1 403 Forbidden
$ curl -v -u root:coolpwd http://localhost:8080/calendars/root
< HTTP/1.1 403 Forbidden
## no logs on the server side following the 403s

It seems the calendars are not created for you, you have to create them yourself.

This is related to #44 I think

With https://git.robur.coop/robur/git-kv/pulls/2 merged and released as git-kv 0.1.0, this issue should no longer be the case. Our binaries are updated, please help yourself with a fresh one.
In case you end up in the same situation, please reopen this issue.


fix: Move @types/pino to prod dependencies

@types/pino is visible through public API in logging.d.ts, and getLogger expose actual pino from this package dependencies.
That means that one would have to install @types/pino along with ydb-sdk to actually use in with TS, and that types version should match version in ydb-sdk, even if pino is never actually used outside of ydb-sdk.

I’m not sure that commit is valid one. No one need to keep types dependencies in production build

Without them one would get error like this when using TS without skipLibCheck
../../node_modules/ydb-sdk/build/logging.d.ts:1:37 - error TS7016: Could not find a declaration file for module 'pino'.

Consider this: now in npm package there's build/index.d.ts with export { default as getLogger, Logger } from './logging'; , and build/logging.d.ts, that looks like this
import pino, { LoggerOptions } from 'pino';
export default function getLogger(options?: LoggerOptions): pino.Logger;
export { Logger } from 'pino';

So this typings already require types for module pino to be present. It seems strange to me - to force use to install @types/pino along with ydb-sdk.
Even further, actual getLogger implementation will call pino here
https://github.com/yandex-cloud/ydb-nodejs-sdk/blob/master/src/logging.ts#L15
And that call will get through to library version in prod dependencies of this package.
So, pino types is part of API of this package, and pino's version is not user-specific, it is fixed in dependencies. How can we provide proper types to user with current API surface and without bringing types to actual version with this package?
Other solution may be to remove getLogger from public API, and to limit exported Logger type to actually used methods in code.

There is a popular issue https://github.com/microsoft/types-publisher/issues/81, where you eventually end up if you start digging this topic. There are a lot of issues from different libraries linked to the issue. You can read them through and make up your opinion on the issue.
I think @types/pino should be moved to dependencies as you need it to use the ydb-sdk in TypeScript.


Reconcile IProvideComponentHandle and IComponentLoadable

The plan was that IComponentLoadable would indicate a component provides an IComponentHandle.
However, due to to the desire to transition the runtime incrementally, the IComponentLoadable.handle property was made optional while the url property was phased out.
Meanwhile, we introduced IProvideComponentHandle, which is used to query a component to determine if it provides an IComponentHandle.
We really only need one of or the other.

I believe this is a dup of #4165


How to resolve nuget issues of Advertising JS project

I download the latest whole sample package, open the js project in "Windows-universal-samples\Samples\Advertising\js", rebuild it then got these errors:
Severity	Code	Description	Project	File	Line	Suppression State
Error		NuGet Package restore failed for project Advertising: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.. Please see Error List window for detailed warnings and errors.
Error		This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is packages\Microsoft.Advertising.JS.10.1705.16001\build\Microsoft.Advertising.JS.targets.	Advertising	F:\Windows-universal-samples\Samples\Advertising\js\Advertising.jsproj	137
I add "https://api.nuget.org/v3/index.json" into the NuGet Package Sources before.
I do not modify anything in the sample project.
Thanks!

As the error message says, the path is too long. Download into a directory with a shorter name.


Using VoiceClient::playFile causes PHP warnings in the loop

Versions affected: 5.0.12, dev-master
Description
After invoking VoiceClient::playFile() an endless stream of repeated warnings is produced by the current loop.
PHP Warning:  call_user_func() expects parameter 1 to be a valid callback, cannot access private method Discord\Helpers\ReadableResourceStream::handleData() in /home/vagrant/discord-bot/vendor/react/event-loop/src/ExtEvLoop.php on line 95
PHP Stack trace:
PHP   1. {main}() /home/vagrant/discord-bot/clean.php:0
PHP   2. Discord\DiscordCommandClient->run() /home/vagrant/discord-bot/clean.php:39
PHP   3. React\EventLoop\ExtEvLoop->run() /home/vagrant/discord-bot/vendor/team-reflex/discord-php/src/Discord/Discord.php:1333
PHP   4. EvLoop->run(*uninitialized*) /home/vagrant/discord-bot/vendor/react/event-loop/src/ExtEvLoop.php:207
PHP   5. React\EventLoop\ExtEvLoop->React\EventLoop\{closure:/home/vagrant/discord-bot/vendor/react/event-loop/src/ExtEvLoop.php:94-96}() /home/vagrant/discord-bot/vendor/react/event-loop/src/ExtEvLoop.php:207

The bot itself works fine and plays sound correctly.
How to reproduce
Here is the code I used to reproduce this issue (excluding the token and murloc.wav file, of course):
<?php

use Discord\DiscordCommandClient;
use Discord\Parts\Channel\Message;
use Discord\Voice\VoiceClient;

include __DIR__.'/vendor/autoload.php';

$discord = new DiscordCommandClient([
        'token' => 'ValidBotToken',
        'prefix' => '!!',
]);

$discord->registerCommand('playtest',
    function (Message $message) use ($discord) {
        $voiceStates = $message->channel->guild->voice_states;
        $userId = $message->author->id;

        foreach ($voiceStates as $voiceState) { //Find a voice channel the user is in
            if ($voiceState->user_id === $userId) {
                $channel = $discord->getChannel($voiceState->channel_id);
            }
        }

        if (empty($channel)) { //Channel not found
            return $message->reply("Can't join your current voice channel");
        }

        $discord->joinVoiceChannel($channel)->then(
            function (VoiceClient $voice) {
                $voice->playFile(__DIR__.'/sounds/murloc.wav')->then([$voice, 'close']);
            }
        );
    }
);

$discord->run();

After adding bot to your server join some voice channel and send !!playtest.
Possible Solution
Unfortunately, I was unable to pinpoint the exact origin of the callable causing this issue. I hope someone familiar with the code of VoiceClient can explain me why is this happening.
Changing the visibility Discord\Helpers\ReadableResourceStream::handleData() from private to public obviously resolves the issue, but I assume that's not the way.

ReadableResourceStream::handleData() was always meant to be public, seems it was accidentally changed at some point. I've fixed this and recompiled DCA, cheers!

Also going to take this opportunity to change Discord::getVoiceClient() to not return a promise as it seems no one is using the voice client.

@davidcole1340 maybe its possible voice support for windows?

@xxAROX not really, since ReactPHP's Child Process module doesn't work on windows, it blocks the event loop: https://github.com/reactphp/child-process#windows-compatibilityz

You could try something:

I can compile DCA for Windows for you
Convert a file to DCA format
Open the file with react/stream and fopen()
Play with $vc->playDCAStream()

But this means you will have to pre-encode your files. You'll also have to comment out the line in VoiceClient where the error is thrown (345-349)

okay, i try soon as i can

DCA for Windows is available on our Discord server in the announcements. Usage:
Convert the file (run this in command prompt - NOT powershell, I had issues with powershell inserting a byte order mask which confused DiscordPHP): .\dca-v0.1.0-windows-4.0-amd64.exe -ac 2 -aa audio -ab 64 -as 960 -vol 256 -i .\song.mp3 > song.dca
Play the file (not the 5th parameter false - skip checks to see if requirements are installed):
$discord->joinVoiceChannel($channel, false, true, null, false)->done(function (VoiceClient $vc) use ($discord) {
    $streamRes = fopen('C:\\path\\to\\song', 'r');
    $vc->playDCAStream($streamRes)->done();
});


Does d3fc support mobile devices?

If you check highstock demos you will see that all charts are drawn perfect on the mobile phones. But [this d3fc example] (http://bl.ocks.org/ColinEberhardt/9667dae337dfd492f63c) - not. So does d3fc support mobile devices? And if not how i can mend this?

It should work, we're aware of some performance issues but rendering-wise
it should be fine. Certainly, it's rendering fine for me on android with
chrome 47.
On Sun, 3 Jan 2016 18:23 zeleniy<EMAIL_ADDRESS>wrote:

If you check highstock demos http://wwwhighchartscom/stock/demo you
will see that all chart draw perfect on the mobile phones But this d3fc
example http://blocksorg/ColinEberhardt/9667dae337dfd492f63c - not So
does d3fc support mobile devices? And if not how i can mend this?
—
Reply to this email directly or view it on GitHub
https://github.com/ScottLogic/d3fc/issues/823.

I have tried my version of the barrel example on mobile and it does work, even pinch zooming to view a limited range.
CSS here is key.

For some inspiration... The Wealth & Health of Nations example is fairly mobile friendly [source].
#816 - updating Wealth & Health of Nations example for better experience on mobile/tablet - may be useful too.

Bellow you can see low barrel example in Firefox mobile mode. In general it looks fine, but i would like to know how to (automatically) decrease amount of tick's labels on volume charts. Because the are overlaps. Actually amount of labels should depends on .plot-area width and labels size. When you change size of the brush at navigation chart length of labels will change from hours (11:00, 12:00) to months - (November, December) which is much longer...

Thanks for clarifying, this relates to #573 - we do plan to add responsive functionality to the library at some point.

I've recently implemented responsive ticks for another project. As @zeleniy points out, the ideal number of ticks is a function of the amount of space available, the width of the ticks and the required spacing. However, as the tick width is derived from the tick format (which by default is dynamic) and any applied styling, I'm not sure d3fc will ever be able to provide a perfect solution.
I've found a decent solution is to set the following on each render -
  cartesianChart.xAxisTicks(container.layout('width') / constant);

Where constant is a context specific magic number which takes into account the behaviour of the axis ticks method. N.B. the above also doesn't take into account the chart's left/right margins which may or may not be significant.

Closing as the original question has been answered and further responsive discussion is best handled in the linked issue (#573).


not compatible with 0.32.x

This plugin is not wokring anymore with the resent dokku release of 0.32.0.
I guess this is happening because of the plugin trigger changes

Opened a PR to fix this issue: https://github.com/cedricziel/dokku-deployment-keys/pull/29

The fix was merged.


Dispatch UIKit actions onto main thread

Motivation
UIKit warnings about ImagePickerController not being called from main thread. This also slows down the launch of the ImagePicker.
Hence, wrapping all initialization functions into main-queue dispatch easily solves the issue.
Note that this won't have any implications on the main thread since all actions are considered as cheap.
Test Plan
This little change only needs to be tested on a physical device.
I've tested this on an iPhone SE (iOS 12) and an iPhone X (iOS 13.3) device. No issues at all.

Could that be merged soon?

Any word on when this will be merged?
Thanks

The patch needs additionally to be applied to launchImagePicker:
- (void)launchImagePicker:(RNImagePickerTarget)target {     dispatch_async(dispatch_get_main_queue(), ^{

For me, it fixes the issue (error in XCode logs plus slowdown before permissions dialog), but then after I press OK, there's another one and crash:
2019-12-25 15:41:31.549652+0200 Bezala[1417:619112] [Animation] +[UIView setAnimationsEnabled:] being called from a background thread. Performing any operation from a background thread on UIView or a subclass is not supported and may result in unexpected and insidious behavior. trace=( 	0   UIKitCore                           0x00000001c59e1fa4 B7E79AF1-F09F-3BCE-B073-ECEA027BC0E8 + 15241124 	1   libdispatch.dylib                   0x00000001034d2bd8 _dispatch_client_callout + 16 	2   libdispatch.dylib                   0x00000001034d44c8 _dispatch_once_callout + 84 	3   UIKitCore                           0x00000001c59e1f08 B7E79AF1-F09F-3BCE-B073-ECEA027BC0E8 + 15240968 	4   UIKitCore                           0x00000001c59e2090 B7E79AF1-F09F-3BCE-B073-ECEA027BC0E8 + 15241360 	5   UIKitCore                           0x00000001c53c7cd8 B7E79AF1-F09F-3BCE-B073-ECEA027BC0E8 + 8842456 	6   UIKitCore                           0x00000001c5788a40 B7E79AF1-F09F-3BCE-B073-ECEA027BC0E8 + 12778048 	7   UIKitCore                           0x00000001c55a5ff8 B7E79AF1-F09F-3BCE-B073-ECEA027BC0E8 + 10801144 	8   UIKitCore                           0x00000001c4f3fd90 B7E79AF1-F09F-3BCE-B073-ECEA027BC0E8 + 4091280 	9   UIKitCore                           0x00000001c4f5f1a4 B7E79AF1-F09F-3BCE-B073-ECEA027BC0E8 + 4219300 	10  UIKitCore                           0x00000001c4f50244 B7E79AF1-F09F-3BCE-B073-ECEA027BC0E8 + 4158020 	11  UIKitCore                           0x00000001c4f51bd4 B7E79AF1-F09F-3BCE-B073-ECEA027BC0E8 + 4164564 	12  UIKitCore                           0x00000001c4f540b0 B7E79AF1-F09F-3BCE-B073-ECEA027BC0E8 + 4174000 	13  UIKitCore                           0x00000001c4f545ac B7E79AF1-F09F-3BCE-B073-ECEA027BC0E8 + 4175276 	14  UIKitCore                           0x00000001c4f54000 B7E79AF1-F09F-3BCE-B073-ECEA027BC0E8 + 4173824 	15  UIKitCore                           0x00000001c4f54268 B7E79AF1-F09F-3BCE-B073-ECEA027BC0E8 + 4174440 	16  Bezala                              0x0000000102d1bfd8 __40-[ImagePickerManager launchImagePicker:]_block_invoke_2 + 88 	17  TCC                                 0x00000001c76d1b60 03E8D082-B885-3FA8-A1DA-CCB21D26FE1A + 7008 	18  TCC                                 0x00000001c76d5b28 03E8D082-B885-3FA8-A1DA-CCB21D26FE1A + 23336 	19  libxpc.dylib                        0x00000001c10cac84 219DEC3C-E62E-395D-8911-FB74F73A5598 + 97412 	20  libxpc.dylib                        0x00000001c10bef18 219DEC3C-E62E-395D-8911-FB74F73A5598 + 48920 	21  libdispatch.dylib                   0x00000001034d2c58 _dispatch_client_callout3 + 16 	22  libdispatch.dylib                   0x00000001034ee29c _dispatch_mach_msg_async_reply_invoke + 388 	23  libdispatch.dylib                   0x00000001034e503c _dispatch_kevent_worker_thread + 1376 	24  libsystem_pthread.dylib             0x00000001c120efc0 _pthread_wqthread + 332 	25  libsystem_pthread.dylib             0x00000001c1211ad4 start_wqthread + 8 )
iPhone SE 13.2.3

This fixed the error for me.

It would be great if this could be reviewed and merged.

Mostly looks good, except the new error appearing.
Can anyone comment on that?

Please use https://github.com/react-native-community/react-native-image-picker/pull/1265  instead, ok button is completely broken when asking for permissions and the other guy's fix is better anyway


Admin API

Administrative Info
Monday Board ID: 853642866
Make sure your branch name conforms to: <feature/staging/hotfix/...>/[username]/[Monday Item ID]-[3-4 word description separated by dashes]. Otherwise, please rename your branch and create a new PR.
Changes
What changes did you make?

Added admin API (Create, Get, Update, Delete), along with new admin database

Testing
How did you confirm your changes worked?

Added new file internal/controllers/admin_test.go,
Updated book_test.go with authenticated requests

Confirmation of Change
Upload a screenshot, if possible. Otherwise, please provide instructions on how to see the change.
Run make test in the backend directory

I still think we should check permissions in a new middleware - thoughts?

I still think we should check permissions in a new middleware - thoughts?
Yeah you're right lol
I just made a bunch of unnecessary work for myself let me fix that

@dacruz21 Any idea whats happening here?
I only changed the test file, and "make test" runs fine for me

@k6han The monday bot? No clue, I'll turn off the merge restriction and report it to the awesome-tool team.

The awesome tool check passes now - if you hit this error again please let me know.
I suspect the tool was picking up the second colon on "Make sure that your..." , so the fix is to just delete the line. Every time the PR body is edited awesome-tool will retrigger. Sorry for the inconvenience, if you can reproduce it reliably please lmk


Italia

Code of Conduct

[X] I have read and agree to the GitHub Docs project's Code of Conduct

Pre-requisites

[X] My application to the GitHub Technology Partner Program is approved.

Tasks

[X] MUST follow our general contributing guidelines for voice and markup format.
[X] MUST emphasize how the third-party product works with GitHub.
[X] MUST be written in Markdown format, using one of the templates provided.
[X] MUST include the name and URL of the GitHub technology partner responsible for maintenance of the documentation being contributed. This should be added via the contributor.name and contributor.URL properties in the template's YAML frontmatter.
[X] MUST be proposed via a pull request to this repo following the GitHub Flow.
[X] MUST be located in the root of the content folder. Your filename MUST match the GitHub technology partner name, and use the .md file extension.

Pull Request

[X] MUST reference this issue, e.g. via closes [this issue number].
[X] MUST pass the automated CI checks.
[X] MUST include links to supporting material demonstrating the functionality being documented (this can be a link to a public GitHub repo, or a video / screencast walkthrough).

Can you guys plZ stay off of my account
On Wed, Feb 2, 2022, 5:04 PM docubot @.***> wrote:

Closed #14973 https://github.com/github/docs/issues/14973.
—
Reply to this email directly, view it on GitHub
https://github.com/github/docs/issues/14973#event-5999164486, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AW5ETRLFSJUVHBXDY3ZKPWLUZGZ6XANCNFSM5NNLTIFQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

All day and every day i fight you.
On Wed, Feb 2, 2022, 5:10 PM Very Good @.***> wrote:

Can you guys plZ stay off of my account
On Wed, Feb 2, 2022, 5:04 PM docubot @.***> wrote:

Closed #14973 https://github.com/github/docs/issues/14973.
—
Reply to this email directly, view it on GitHub
https://github.com/github/docs/issues/14973#event-5999164486, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AW5ETRLFSJUVHBXDY3ZKPWLUZGZ6XANCNFSM5NNLTIFQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


block top-level module namespaces not covered by stdlib-list

fixes #2940, initial work failed to take this into consideration.
one other thing to consider is situations noted in the initial report...
should we block packages like:
encodings.magicencoding
or
xml.painville
that "squat" by appearing to belong to top level namespaces?

was going to ship changes in https://github.com/pypa/warehouse/pull/2942/commits/c07fbb30d43d2bb1f3e101aeae82fe0d59f8a913 separately, but just pushed them to try to rattle codecov.io loose.


ImportError: No module named parse

sudo apt install git
git clone https://github.com/stuha/translator.git
cd translator && sudo python setup.py install
sudo apt install python-setuptools python-requests python-parse

me@host:~/translator$ translator you are so beautiful!
Traceback (most recent call last):
  File "/usr/local/bin/translator", line 11, in <module>
    load_entry_point('translator==0.0.1', 'console_scripts', 'translator')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 480, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2693, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2324, in load
    return self.resolve()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2330, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "build/bdist.linux-x86_64/egg/translator/translator.py", line 18, in <module>
ImportError: No module named parse

me@host:~/translator$ cat /etc/lsb-release
DISTRIB_ID=neon
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="KDE neon Developer Edition"

Sorry，This tool is based on Python3. You can run sudo python3 setup.py install to install it.
Thanks!


Data Science with Python : Sliding Window Algorithm

Description
DescriptionWelcome to the 'DSWP' Team, good to see you here
With this issue, readers will get introduced to core information to the Sliding Window Algorithm for K means clustering along with sample code completely in an effective way.
To get assigned to this issue, add your serial numbers mentioned in the spreadsheet of "Data Science with Python", the approach one would follow and the choice you prefer (Documentation, Audio, Video). You can go with all three or any number of options you're interested to work on.
If you had referred any resources, add them up in "DS Resources". Similarly, if you had used datasets, include them in "DS Datasets".
Domain: Machine Learning
Mentors Assigned: Dhruv Bajaj / Aishani Singh
Points to Note :
The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include the issue number along with it.
Changes should be made inside the Datascience_With_Python/ directory & Datascience_With_Python branch.
Follow Contributing Guidelines & Code of Conduct before start Contributing.
This issue is only for 'GWOC' contributors of the 'DSWP' domain.
All the best. Enjoy your open source journey ahead. 😎
Domain
Datascience with Python
Type of Contribution
Audio, Video, Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

Hello supervisors and mentors
will this issue count for hacktoberfest 2021?

/assign

I would like to work on the documentation part.
But, I am not getting this thing below
To get assigned to this issue, add your serial numbers mentioned in the spreadsheet of "Data Science with Python"

@ayush572
Sorry
But that's not allowed
Mentors will assign you
You can't spam every where.

Sorry, i dont mean to spam...

You haven't provided any details to get this issue assigned. @ayush572

Um, what details are required to be provided mam?

May I know...

@prathimacode-hub
I t would be great if this issue will come under hacktoberfest 2021.
I would love to contribute

Name: Ayush Daga
Serial number: #3634
Type: Documentation
I would like to work on the documentation part.

@PurviBhoyar21, cool, to count it under hacktober fest do mention while creating your PR so that label is assigned to it.

Name: Ayush Daga Serial number: #3634 Type: Documentation
I would like to work on the documentation part.

Approach please. @ayush572

Hey @DhruvBajaj01 ,  I would like to explain this concept using a documentation, where I would be using datasets as examples for the tests and for the outputs I would include the screenshots of the outputs so that the readers can get a good idea of what the algorithm does. My serial numer:490

Approach
Introduction to K-means clustering
Introduction to Sliding window technique
Application of Sliding window technique in K means clustering through code implementation
@prathimacode-hub

Issue assigned to @PranshuSrivastava for documentation.
You just missed up in seconds. No worries, you have other issues for doc else audio / video @ayush572

Hey! I would like to work on this issue.
Name- Nayanika Mishra
Batch- 9
Type- Audio
I will give an overview along with example problems and also the techinques and everything.

@prathimacode-hub , Mam
I am M. Ashish Reddy. I would like to do video on this issue.
Batch number: 5
serial number:174.
Approach: A detailed explanation with examples and real life uses

Issue assigned to @ashish-reddy-20-08 for video contribution


documentation: Document the 1.0 API

The virtcontainers godoc [1] does not highlight the 1.0 top level API
in a readable and clear way. This API documentation attempts to
provide a top to bottom description of the virtcontainers 1.0 API.
[1] https://godoc.org/github.com/containers/virtcontainers
Signed-off-by: Samuel Ortiz<EMAIL_ADDRESS>

This looks really useful to me. My only question/reservation is how we can ensure that doc is updated as and when changes are made to the API. Was is entirely hand-written or is it atleast partly generated?
I'm also wondering if we could create (auto-generate) some state/sequence diagrams (maybe there is a tool like Doxygen for go that could do this for us)?

A diagram showing how pods and containers differ would also be useful if that could be added somehow.

@jodh-intel @grahamwhaley

My only question/reservation is how we can ensure that doc is updated as and when changes are made to the API. Was is entirely hand-written or is it atleast partly generated?

It was entirely hand written. The API that's described here is the 1.0 one, and at least we know we will not push backward incompatible changes without changing the version number. So those changes at least won't have to be propagated to the document.
The next step is to use godoc instead of manually generating this documentation and I think the proper way to do so would be to create a specific api package for virtcontainers and possibly split the code into more packages. Right now, our entire exported API is under the virtcontainers package and as a result the generated godoc is messy. I'll look into that next.

Hi @sameo - makes sense to me. Thanks for putting this together!
lgtm


Automatic page refresh when using ajax with grunt

If you set an .html link as href, after the successfull ajax request it automatics reloads the page. This is due, to the fix set DataType for Ajax, when we removed that line it works.
Possible Solution: Possibility to set the dataType via option param.

What type of data are you returning other than HTML? What line did you remove to get this to work?
I'm not having any problems opening .html links, see the demo file.

The Problem appears when using grunt to automatic refresh the page and working with swig (twig) templates.
We didn't remove any lines, we modified it local so, it's possible to set dataType via options of nerdbox.
Regards,
Marcel


removeSingleSlash should default to false

https://github.com/sindresorhus/normalize-url#removesingleslash

removeSingleSlash

Type: boolean
Default: true

Remove a sole / pathname in the output. This option is independent of removeTrailingSlash.

Looking at https://www.rfc-editor.org/rfc/rfc3986#section-6.2.3
http://example.com
http://example.com/
http://example.com:/
http://example.com:80/

In general, a URI that uses the generic syntax for authority with an empty path should be normalized to a path of "/".

[...]

For example, the second URI above is the normal form for the "HTTP" scheme.

Which is the http://example.com/ version

http://example.com and http://example.com/ are equivalent. I'm not sure of their reasoning for preserving /, but I prefer without the /, as it's cleaner, and this package is often used for presenting URLs, not just comparisons. I don't have any plans to change the defaults.


Release of Shopify templates into the BETA

shopify to google sheet
shopify to bigquery
shopify to snowflake

NOTE:
shopify to bq and snowflake are the same as ts shopify which has been merge before.

@jordanrburger I think you can merge it, it goes to beta anyway and it's harder to keep more branches alive and up to date.


OLS4 case sensitivity

Describe the bug
The previous implementation of extact matching in OLS was not case sensitive so, for example searching for 'Anterior Segment Dysgenesis' would return http://purl.obolibrary.org/obo/MONDO_0019503 - 'anterior segment dysgenesis'
In OLS 4 extact_match appears to be case sensitive, so searching for 'Anterior Segment Dysgenesis' returns nothing
To Reproduce
Compare examples:
https://www.ebi.ac.uk/ols/search?q=Anterior+Segment+Dysgenesis&exact=on
https://www.ebi.ac.uk/ols4/search?q=Anterior+Segment+Dysgenesis&exactMatch=true
Expected behavior
Maintaining the previous behaviour would be more useful.

Reverted this for now as I seem to have broken search on ontologies page!


chore(clients): add workflow to auto-close PR

🧭 What and Why
🎟 JIRA Ticket: https://algolia.atlassian.net/browse/DI-2970
Changes included:
heavily inspired by https://github.com/algolia/doc/blob/master/.github/workflows/dont-edit-apis.yml, we can kindly ask the user to redirect their contributions to the automation repository, or ask them to open an issue if they don't want to.

Greatest achievement of my life. Someone was inspired by something I did 🤣.

<3


Support for Azure OpenAI DALLE

I got access to DALLE on my Azure and tried to use the same client I'm using for chat completions but it returns a 404 Resource Not Found error.
It looks like the endpoint is different from the original OpenAI endpoint and it is like this:
https://YOUR-RESOURCE-NAME.openai.azure.com/openai/images/generations:submit?api-version=2023-06-01-preview
This is a sample code that I got from Azure Playground for DALLE
#Note: The openai-python library support for Azure OpenAI is in preview.
import os
import openai
openai.api_type = "azure"
openai.api_base = "https://YOUR-RESOURCE-NAME.openai.azure.com/"
openai.api_version = "2023-06-01-preview"
openai.api_key = os.getenv("OPENAI_API_KEY")

response = openai.Image.create(
    prompt='USER_PROMPT_GOES_HERE',
    size='1024x1024',
    n=1
)

image_url = response["data"][0]["url"]

I guess this is not supported yet and would be happy if you will change the implementation for image generations if the provider type is Azure.

Hi, I don't think this is supported in this repository yet. If you would like to create a pull request related to this, I would be happy to merge it.


[Generate refs for FSI] prefix generated files with configuration name

If you switching between build configurations, then load-project.fsx and load-references.fsx are constantly updated, which is annoying:
 #r "System.Core.dll"
 #r "System.dll"
 #r "System.Numerics.dll"
-#r "../../Foo/bin/Release/Foo.dll"
-#r "../../Bar/bin/Release/Bar.dll"
\ No newline at end of file
+#r "../../Foo/bin/Debug/Foo.dll"
+#r "../../Bar/bin/Debug/Bar.dll"
\ No newline at end of file

Implemented in https://github.com/fsprojects/VisualFSharpPowerTools/pull/1197


add: Prim's Minimum Spanning Algorithm

Describe the algorithm/code
Prim’s algorithm is a Greedy algorithm. This algorithm always starts with a single node and moves through several adjacent nodes, in order to explore all of the connected edges along the way. There are many ways to implement this in Python, for example the Lazy Method, Heap Method, etc. I have implemented the Fibonnaci Heap method to optimize the algorithm as much as possible, and have also left user-input to customize the graph for various outputs. This algo helps us acquire a MST in a small working time, and a efficient code to implement graphs.
Do you want to work on this feature?

[X] I am willing to implement this feature.

Hi @surya-mu! 👋🏻
You can start working on this issue! Do let me know if you need any help. ✨


Generate contaminants file

Description of feature
sortmerna is implemented in the pipeline and runs by default. There will also be a bunch of other short RNA species we should remove, which we can use the (also inherited) bbsplit functionality.
But we do need to derive a list of contaminant sequences and figure out where to store it.

So is it just rRNA that is removed by default? I am not clear on what the combination of bbsplit and sortmerna achieve so it is hard to know what kinds of contaminants you have in mind (tRNA, phiX?).

I came to the conclusion that a blanket cross-species set was not practical.
For test_full I used the usual rRNA complement with human tRNA sequences added (https://github.com/nf-core/test-datasets/blob/riboseq/testdata/rrna-db-full.txt), but this will be down to the user I think- so maybe this is a documentation issue.


Project level 5 3rd test case

Hi! any idea why I cant pass this test case?
Screenshots

no idea

i think it is because of the fact that you didn't use the fact that it became a 3.877 because when you see test case 13 it is wrong whereas when I use it you can see that it does not prove the fact that it is right

hi, I dont rly understand what u mean by that. Also, i used 3.877 in my code! 😟

thanks @ca-leb !

i completely understand where you are coming from but you have to realise that this testcase is actually not a testcase but actually a test of your understanding

@tristky hi, i understand that it is a test of my understanding. Would greatly appreciate if u could tell me whr my understanding went wrong in this case! thanks

Not sure if this is the right way but you could tweak your event comparator such such arrival events come before other events for the same time and customer

it could be a problem with your comparator or toString method in your simulation class bc arrive event should call your serve event and thus should follow chronologically

as summer mentioned, the serve event should really only be scheduled after an arrive event is executed so you should probably take a look at your arrive event or the way that you create your initial events when you create a new Simulate object. your PQ should not contain both the serve and arrive events for the same customer at the same time since you would only know whether they are to be served after they arrive


list_scripts() and run_script() should use os_find_data_path()

ssia.

Not really necessary. Both concepts are different and work in their own way.


Error in Wiki

Hi,
after i installed the Plugin, i cant login into the wikipages in Redmine.
Redmine 2.2, Db: Mysql
In the redmine/log/production Log there was this error:
ActionView::Template::Error (undefined method `force_encoding' for #String:0x7f13e0820988):
9: <%= link_to_if_authorized(l(:button_rollback), {:action => 'edit', :id => @page.title, :version => @content.version }, :class => 'icon icon-cancel') unless @content.page.content.version == @content.version %>
10: <% end %>
11: <%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
12: <%= call_hook(:view_wiki_contextual,{:id => @project.identifier, :toggle => params[:decode], :content=>@content, :page =>@page,:version => @content.version }) %>
13:
14:
15: <%= wiki_page_breadcrumb(@page) %>

@qutschwalze @vetmedeu First of all, please accept our apologies for the late answer.
As far as I understand, this problem is most certainly related to the version of ruby used. In 1.8.x that particular method String.force_encoding does not exist. So, ruby version 1.9.x or higher should be used.
I'll improve the Readme file to make this clear and I'll close this issue for now (please re-open it if you find the answer unacceptable).


Update README.md

My understanding about the Question 5.

Please verify Question 2. In my opinion, the answer should be option 2.

Please verify Question 2. In my opinion, the answer should be option 2.

yes, the answer is option 2