Cloud with sandbox demo

Minimal details provided as to what is going on, what to do, or what the point is.
I got an error running in the sandbox
[CODESANDBOX] Preparing devcontainer configuration and overrides
yarn run v1.22.19
$ node --watch index.js
(node:109) ExperimentalWarning: Watch mode is an experimental feature and might change at any time
(Use node --trace-warnings ... to show where the warning was created)
Error launching EC2 instance: AWS was not able to validate the provided access credentials
Completed running 'index.js'

I had deactivated my access keys, professor, as the tutorial is public. I have activated them again.

I just tested it and it works. Please let me know when you have done testing so that I can deactivate them.


Add a note to poke the VS Code extension bits.

Closing in favor of https://github.com/microsoft/vcpkg-tool/pull/953/


Gerrit issue945

https://github.com/zaggino/brackets-git/issues/945
@nmorenor, myself, and the rest of our team have been working tag-team on this issue as we transition from Java development into Brackets hacking.  It's kinda fun having a handful of us on a hangout as we hack & slash JS and CSS code!
We believe we have solved your performance concern by using a preference.
We thought that brackets would have "native" support for a checked menu item but we couldn't find one in the dropdown.css so we borrowed the CSS from the Bracket's filetype menu.  Is this something we should bring up to the brackets team?
We have a couple of questions that the code didn't answer for us:
Are preference constants typically inlined?  Or is it common to define them in a file somewhere?  We saw them inlined, but we didn't know if this is standard or the result of organic code growth.
We copied the error handling when we can't write the config file from another spot in the code.  Is this considered "good enough"?  Can we do better?

Hi @jedkcanderson , first of all - nice work :+1:
Preferences which are inlined in Preferences.js are real preferences and you can override them per project in your .brackets.json like this one https://github.com/zaggino/brackets-git/blob/master/.brackets.json
If you don't put your preference into Preferences.js it'll be just a state, something you don't want user to see or use in his config files.

Looks good, just one concern which I'll look into a little later.

From your comment about preferences, I think we should add the new preference key this to the Preferences.js so that users can commit the setting.  If one person on a team needs the setting, it's likely that they all will.
We put the call to read the preference in the refresh() method because we wanted the setting to be read when the user switched projects. And if we do add this to the Preferences.js, then a revert could trigger a .brackets.json file change which would then cause the setting to need to be read again.  That being said, we're open to suggestions for moving the call.

yes, define an entry in preferences.js
use GIT_ENABLED event, it will execute on project/branch change

sorry for spamming all over the place, im reviewing this from my mobile :)

I believe my latest push addresses your concerns regarding which event to listen for, using booleans as parameters, and making a user-settable preference.

Thanks @jedkcanderson, looks great. Will merge this and probably do a release to the registry later today.

Sounds good.  Thanks!

merged :+1: really good work guys


Fix caching of demo agent image

Require local jq install for ngrok detection
Remove some bash-isms

Codecov Report

Merging #623 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #623   +/-   ##
=======================================
  Coverage   96.85%   96.85%
=======================================
  Files         248      248
  Lines       13260    13260
=======================================
  Hits        12843    12843
  Misses        417      417


Fix typing of World.systems

Unless I'm reading this wrong, it seems like world.systems is actually a Map of group names to Sets of Systems:
https://github.com/fritzy/ape-ecs/blob/master/src/world.js#L345
Also added a proper return type for registerSystem, instead of using any.

Yup, this fix is necessary, but I am confused about why you're changing the signature on registerSystem?

Thanks for the fix from the first commit. I've made that change but I'm closing this pull request for now since I don't understand the second commit.

@fritzy sorry I missed this, the reason is to make registerSystem return with a type that matches the system you are registering, rather than returning any.


Add visibile/editable/enabled domains for tenants

For subtenants the list of visible domains includes the domains
owned by ancestors and self

@kbrock @gmcculloug
Please Review

@gtanzillo @jrafanie is there a way we could get these into RBAC/Search?

@gtanzillo @jrafanie is there a way we could get these into RBAC/Search?

@kbrock if you're asking if Rbac.search will allow you to search with tenant filtering for MiqAeDomain, we're adding that in #4396 via it's superclass MiqAeNamespace.  If not, please help me understand.

Before we spend too much time here, I think this is useful to show @jrafanie and @gtanzillo what we want, but it is the responsibility of RBAC to implement this.
So getting something in to help @dclarizio  is good for now, but lets just focus on getting something good enough into there for now so we can move forward, and then we can migrate to the RBAC version once that is done.

@gtanzillo should we merge this in the short term or hold off for a pr from you and @jrafanie ?


Reference source not in sync with object.cs

Should this repo replicate
Reference source
?
If so, please keep it in sync. Currently it is not synced.

ikr, just like the hell of trying to hack System.Reflection.Assembly to a assembly loaded from a zip file to return 'full path to zip file + \ + path to assembly from within the zip'. With that this is my current but untested code for it https://github.com/Elskom/ZipAssembly/. Hopefully subclassing Assembly would actually force my 'Location' property to run.

This repo contains the subset of reference source that is MIT licensed. This omission is by-design.


Documentation (General microservice architecture & Account service in detail)

Service related

Which technical elements are included in the account service (e.g. api doc generation, jax-rs, ...)
Known issues (e.g. Guava vs. Java 8 Optional)
How can the service be used as a template and what needs to be changed in order to e.g. change the database? (see configuration.yml)
Service within the architecture visualized in an ASCII-pseudo UML graph + Explanation of the boot sequence (e.g. communication with service registry)
Adding tests and documentation

General

Conventions you might want to use: no getters, immutability, final keyword, ...
Javadoc @Override inherits
REST conventions: Response vs. Object / usual return codes / exception mapping / links / versioning / validation / search
Naming conventions (DB & Resources & Packages i.e. singular vs. plural)
Lombok conventions: What to use?
Changelog handling
How to log
Definition of performance requirements (?)
How to monitor
gradle convention: tasks run and build are required
Top-Level module README.md is required
API doc

Conclusion:
We need 1-3 aggro requirements, e.g.:

up2date API doc
easy 2 use interfaces -> everybody should be satisfied with the API
README.md must easily introduce the problem and the first steps of the usage

everything else should be recommendation but not a requirement (i.e. be liberal on the inside)

Other topics

What parts of the account service might be replaced by a library (e.g. service registry client) - are there any?

Thank you @thekid for creating this list together! I'll sum it up over the next few weeks.

Thank you @thekid for creating this list together!


Remove the SyntaxData abstraction layer

SyntaxData just held the data of the Syntax node and didn’t provide any additional functionality. Instead, it required unecessary casts between Syntax and SyntaxData and we were inconsistent about where we took Syntax or SyntaxData. Store the members of SyntaxData directly in Syntax.
I saw slight (0.5% - 2%) performance improvements in instruction count when running swift-format with this change.
The best way to review this is commit-by-commit. The first two commits just split up files, the last commit is the actual removal of SyntaxData.

@swift-ci Please test

@natikgadzhi You are right about the documentation. I’d prefer to keep these changes out of this PR though because it’s already quite big.

@swift-ci Please test

@swift-ci Please test Windows

@swift-ci Please test

@swift-ci Please test macOS

@swift-ci Please test Windows

@swift-ci Please test

@swift-ci Please test Windows


Jest has detected the following open handle potentially keeping Jest from exiting

🐛 Bug Report
Running an empty test gives an error message Jest has detected the following 1 open handle potentially keeping Jest from exiting
To Reproduce

Create new empty project directory : mkdir foo && cd foo
Init package.json : npm init with the test script jest --forceExit --detectOpenHandles
Install jest : npm i jest --save
Append jest config to package.json :

"jest": {
  "testMatch": [
    "**/test/**/*.js"
  ],
  "bail": true,
  "testEnvironment": "node"
}

Create and edit a new test : nano test/foo.spec.js

describe('Test', () => {
  it('should pass', () => {});
});

Run test : npm test

Expected behavior
Test run without any message or warning.
But this is what I get :
$ npm test

><EMAIL_ADDRESS>test /home/yanick/dev/node2/perfect-schema/foo
> jest --forceExit --detectOpenHandles

 PASS  test/foo.spec.js
  Test
    ✓ should pass (3ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        0.244s, estimated 1s
Ran all test suites.

Jest has detected the following 1 open handle potentially keeping Jest from exiting:

  ●  PROMISE

          at Function.resolve (<anonymous>)
      at Object.<anonymous> (node_modules/lodash/_getTag.js:37:32)
      at Object.<anonymous> (node_modules/lodash/_baseClone.js:12:14)

Run npx envinfo --preset jest
System:
  OS: Linux 4.15 Ubuntu 18.04.1 LTS (Bionic Beaver)
  CPU: x64 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Binaries:
  Node: 10.3.0 - ~/.nvm/versions/node/v10.3.0/bin/node
  npm: 6.1.0 - ~/.nvm/versions/node/v10.3.0/bin/npm
npmPackages:
  jest: ^23.4.2 => 23.4.2

Duplicate of #6639

But since it happens with a recent version, this hasn't been fixed, so why is the other one closed?


[AIRFLOW-3254] BigQueryGetDataOperator to support reading query from SQL file

Hello,
Here is an ticket related to GCP on Jira:
https://issues.apache.org/jira/browse/AIRFLOW-3254
Love

Missing
    template_ext = ('.sql', )


rangeChanged not triggering

Here is my HTML:
<calendar ng-model="currentDate" calendar-mode="calendarMode" event-source="bookingSource" query-mode="remote"                                           range-changed="rangeChanged(startTime, endTime)"                                           event-selected="onEventSelected(event, $event)"></calendar>
and here is what I have in my controller:
$scope.rangeChanged = function (startTime, endTime) {             Events.query({ startTime: startTime, endTime: endTime }, function (events) {                 console.log("THIS IS A TEST");                 $scope.eventSource = events;             });         };
When I run my code, the "THIS IS A TEST" log message does not appear, which tells me the rangeChanged function is not fired. Am I doing something wrong?

@captainmorgan0 I notice that you put the log method in Events.query call.
Could you move it out to see if the log will be printed or not?
Also under what circumstance do you mean it is not triggered? At the load time? When you slide to the next month?
Another thing worth to check is if you put the calendar into some directive having the isolated scope, so that it can't bind the method into your controller.

I have tried moving the log as the first line in rangeChanged function and it still does not print out. I mean the rangeChanged function is not triggered when you click month, day or week or when you go to the next or previous month.
As for putting the calendar in a directive having isolated scope, I'm not sure how that is done.
Is there any other way to load the data one month at a time?

@captainmorgan0 I think I know what's wrong. Could you assign the query-mode to a variable? It doesn't support directly specify the value in html.

Yes, that was the problem. thanks


Relying on clientX and clientY is not safe.

clientX and clientY may report incorrect values. It is better to use the page offsets. (pageX and pageY). This will fix issues with the signature pad being shown on a scrolled and or zoomed page where the lines appear on a wrong location. I'm sure this happens on Android using e.g. Google Chrome. I left the previous code in. I'm not sure whether  pageX and pageY are widely supported.

Could you prepare a jsfiddle with some instructions how to reproduce the incorrect behavior when scrolling/zooming the page?
According to MDN pageX/Y are non-standard and according UI Events spec, pageX/Y is supposed to be calculated based on clientX/Y.

Sounds like maybe webmaster777 was running into the same bug I was with my pull request.  Is there a better solution to this than what webmaster or I suggest?

Well, I was having a hard time trying to reproduce the issue in a small jsfiddle. Apparently, the location of the signature pad and probably the positioning of the surrounding elements had something to do with it.


Modifying a test case to verify that car cannot finish the track distance

There are multiple community solutions where the "CanFinish" method has a check to keep driving the car until the battery is less than 1. But that logic is incorrect because the car can be driven only when:
car.battery > car.batteryDrain.
This case does not get tested because all the test cases are such that either battery is a multiple of batteryDrained or
battery - (batteryDrained*some_multiple)=1.  Hence the modification to the test case.
Here, for initial condition of,
car: Car{ 				speed:        2, 				batteryDrain: 6, 				battery:      100, 				distance:     5, 			}, 			track: Track{ 				distance: 80, 			}
After car is driven completely,
car: Car{ 				speed:        2, 				batteryDrain: 6, 				battery:      4, 				distance:     37, 			},
For solutions with logic "drive car until battery is less than 1" will fail as battery != 1 but battery < batteryDrain.

@neelflash07 Welcome to contributing to the Go track!
I am not 100% sure I understood you correctly. Could you provide a link to one of those community solutions you mentioned that are wrong but still pass the tests currently? That would be very helpful.

@junedev With reference to your previous comment, PFA the link to the community solutions:
Solution1
Solution2
In each of these solutions, the car is driven as long as car.battery > 1. That is a wrong condition. In reality, the car should only be driven as long as car.battery > car.batteryDrain. The update to the test case made will check for this condition.

Thanks for the links and good catch on noticing the issue with the test case here! Your change is merged now. It will be available on the website shortly. If someone started the exercise already, they will see this orange banner/icon that there is an update available.


fix(scaffolder-backend-module-github): some octokit calls missing mandatory params in actions

Hey, I just made a Pull Request!
Try to fix #25042 updating the octokit call with owner and repo
:heavy_check_mark: Checklist

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

This got shipped part of 1.28.3 also earlier today.


Added current repo structure and add IDs for all headings

This PR updates the following:

Adds details about the current repo structure and add IDs for all headings (might need them for linking).
Renames doc_guidelines.adoc -> doc-guidelines.adoc and tools_and_setup.adoc -> tools-and-setup.adoc to adhere to the Contributor's guide (use dash instead of underscore)
Adds content type metadata to all file types.

Since newdocs is deprecated I am going to close this one. Let me know if this is needed and we'll reopen


empty the dropdown before adding service names. Fixes #803

LGTM: super-nit would be to not put the issue fixed on the summary line (as you can see it reads weird in a github issue)
ex. instead of single line
empty the dropdown before adding service names. Fixes #803

break like this
empties the dropdown before adding service names

Fixes #803


iOS: Timeline: First Unread command should open first unread article in detail view

Unseen by the user, the timeline should scroll to the first unread article.

I implemented this as a timeline specific feature.  The First Unread button is disabled if there are no unread articles in the current timeline.  If the button is available and selected, the first article in the timeline is selected and shown in the detail view.
This is different from the circle-arrow button in the detail view which works across all timelines.


/mutex.h:25:22: fatal error: nsync_cv.h: No such file or directory

mldl@mldlUB1604:~/ub16_prj/ConMask/ndkgc/ops/__sampling$ cmake --build .
[ 50%] Building CXX object CMakeFiles/sampling.dir/pairwise_sampler.cpp.o
In file included from /usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/core/platform/mutex.h:31:0,
from /usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/core/framework/op.h:32,
from /home/mldl/ub16_prj/ConMask/ndkgc/ops/__sampling/pairwise_sampler.cpp:7:
/usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/core/platform/default/mutex.h:25:22: fatal error: nsync_cv.h: No such file or directory
compilation terminated.
CMakeFiles/sampling.dir/build.make:62: recipe for target 'CMakeFiles/sampling.dir/pairwise_sampler.cpp.o' failed
make[2]: *** [CMakeFiles/sampling.dir/pairwise_sampler.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/sampling.dir/all' failed
make[1]: *** [CMakeFiles/sampling.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
mldl@mldlUB1604:~/ub16_prj/ConMask/ndkgc/ops/__sampling$

Hi, due to some code changes in TF, this code only works under older version of it. Would you mind switch back to TF 1.3 and try again?


Why is PPO training slower on VM with GPU

Describe the question
Hi, would anyone be able to clarify something for me. I have ran the script below and it took 1 hr 45 to run locally on my laptop, and 2 hr 30 to run on a GPU enabled Azure VM, which is the opposite of what I was expecting to happen, I thought I would get a speed up. Why is that? I have had a look at issue #201 and #308 to try and answer this myself but am not confident enough in my understanding to come to a conclusion. I understand that low GPU utilisation is normal when using a powerful GPU, and that only the gradient updates are performed on the GPU - environment simulation is done on the CPU and can therefore create a bottleneck. Trying to figure out if this outcome is expected (for some reason such as an overhead I'm not aware of or because the CPUs on my laptop are better than the virtual ones and therefore not seeing the benefits of using a GPU), if it's a VM config problem (appreciate need to get help from elsewhere in that case), or if I am missing something in my script / am not using rl-baselines-zoo properly.
Code Example
import os
import subprocess
import datetime
import time
import multiprocessing as mp

seeds = [64,42,96,33,11]

time_start = datetime.datetime.now()
print("Starting training at {}".format(time_start))

def training_run(seed):
	print(seed)
	command = "python train.py --algo ppo2 --env HalfCheetahBulletEnv-v0 -n 2000000 --tensorboard-log /home/b3024896/tb_events/stable-baselines/ --verbose 1 --seed " + str(seed)
	subprocess.call(command, shell=True)
	print("Finished training run with seed {}".format(seed))

pool = mp.Pool(mp.cpu_count()-1)
pool.map_async(training_run, seeds).get()
pool.close()

time_end = datetime.datetime.now()
time_spent = time_end - time_start
time_spent_mins = time_spent.seconds / 60

print("Finished training")
print("Training took {} minutes".format(time_spent_mins))

System Info
My laptop is a Lenovo Thinkpad T480s with Intel® Core™ i7-8550U Processor (4 cores, 8 threads, 1.80 GHz processor base frequency) running 64-bit Ubuntu 18.04.4 LTS.
The Azure VM is a Standard_NC6 from the NC-series, with 6 vCPUs and one NVIDIA Tesla K80 GPU. I installed CUDA 10.0 and libcudnn <IP_ADDRESS>-1+cuda10.0 and checked GPU availability with tf.config.experimental.list_physical_devices('GPU')
On both I have tensorflow 1.14.0 (tensorflow-gpu on VM) and python 3.6.8.
Additional
During training on the VM, I ran the command nvidia-smi which returned 5 python GPU processes and typically 42% under Volatile GPU-Util.

Thanks for fast reply, good to know all those things, will read up a bit more.
Wasn't particularly bothered about the training taking 2 hr 30, but had assumed I would benefit from (or indeed be forced to) move to the cloud when start working with more complex environments / models and was surprised/concerned I wasn't seeing a speed up with this simple example.
Thanks again

If you want to make the training faster (but not more sample efficient), you can use more envs (cf doc).
You may also take a look at MPI for ppo: https://twitter.com/hardmaru/status/1260852988475658242


Package request: typst

Project description

A new markup-based typesetting system that is powerful and easy to learn.

Metadata

homepage URL: https://typst.app/
source URL: https://github.com/typst/typst
license: Apache 2.0
platforms: unix, linux, darwin

#222437


Unable to screen share/record

Already reported ? *

[X] I have searched the existing open and closed issues.

Regression?
Yes
System Info and Version
 System/Version info
Hyprland, built from branch  at commit 0f594732b063a90d44df8c5d402d658f27471dfe  (props: bump version to 0.43.0).
Date: Sun Sep 8 16:48:21 2024
Tag: v0.43.0, commits: 5196

flags: (if any)

System Information:
System name: Linux
Node name: geramanisn-pc
Release: 6.10.9-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Mon, 09 Sep 2024 02:38:45 +0000

GPU information:
00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-H GT1 [UHD Graphics] [8086:9a60] (rev 01) (prog-if 00 [VGA controller])

os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo

plugins:

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

Config File: /home/geramanisn/.config/hypr/hyprland.conf: Read Succeeded
# Refer to the wiki for more information.
# https://wiki.hyprland.org/Configuring/Configuring-Hyprland/

################
### MONITORS ###
################

monitor = eDP-1,highres,3440x0,1
monitor = HDMI-A-1,highres,0x0,1
#monitor = DP-1,highres,1920x0,1

#################
### AUTOSTART ###
#################

exec-once = gsettings set org.gnome.desktop.interface cursor-theme Nordzy-cursors-white
exec-once = gsettings set org.gnome.desktop.interface cursor-size 24
exec-once = mako
exec-once = waybar
exec-once = hyprpaper
exec-once = hypridle
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = udiskie &

#############################
### ENVIRONMENT VARIABLES ###
#############################

env = HYPRCURSOR_THEME,Nordzy-cursors-white
env = HYPRCURSOR_SIZE,24
env = XCURSOR_THEME,Nordzy-cursors-white
env = XCURSOR_SIZE,24

#####################
### LOOK AND FEEL ###
#####################

general {
    border_size = 0
    gaps_in = 5
    gaps_out = 10
    gaps_workspaces = 0
    layout = dwindle
}

decoration {
    rounding = 5
    drop_shadow = false
    blur {
        enabled = false
    }
}

animations {
    enabled = true
    first_launch_animation = true
    animation = windows, 1, 10, default, popin
    animation = fade, 1, 10, default
    animation = workspaces, 1, 10, default, slide
}

misc {
    disable_hyprland_logo = true
    disable_splash_rendering = true
    font_family = CaskaydiaCove Nerd Font Mono
    force_default_wallpaper = 0
}

#############
### INPUT ###
#############

input {
    kb_layout = us,gr
    kb_options = grp:alt_shift_toggle
    follow_mouse = 2
}

###################
### KEYBINDINGS ###
###################

$mainMod = SUPER

bind = $mainMod SHIFT, Q, killactive,
bind = $mainMod SHIFT, E, exec, wlogout -b 5 -m 400
bind = $mainMod SHIFT, F, fullscreen, 0
bind = $mainMod SHIFT, V, togglefloating,
bind = $mainMod, RETURN, exec, foot
bind = $mainMod, N, exec, foot -e yazi
bind = $mainMod, W, exec, google-chrome-stable
bind = $mainMod, D, exec, wofi
bind =, Print, exec, grim -g "$(slurp)"
binde =, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
binde =, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bind =, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bind =, XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
binde =, XF86MonBrightnessUp, exec, brightnessctl set +10%
binde =, XF86MonBrightnessDown, exec, brightnessctl set 10%-

bind = $mainMod, h, movefocus, l
bind = $mainMod, l, movefocus, r
bind = $mainMod, k, movefocus, u
bind = $mainMod, j, movefocus, d

bind = $mainMod SHIFT, h, movewindow, l
bind = $mainMod SHIFT, l, movewindow, r
bind = $mainMod SHIFT, k, movewindow, u
bind = $mainMod SHIFT, j, movewindow, d

bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10

bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1
bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2
bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3
bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4
bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5
bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6
bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7
bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8
bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9
bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10

bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

##############################
### WINDOWS AND WORKSPACES ###
##############################

windowrule = float,^(pavucontrol)$
windowrule = size 50% 50%,^(pavucontrol)$
windowrule = center,^(pavucontrol)$

workspace = 1,monitor:HDMI-A-1
workspace = 2,monitor:HDMI-A-1
workspace = 3,monitor:HDMI-A-1
workspace = 4,monitor:HDMI-A-1
#workspace = 1,monitor:DP-1
#workspace = 2,monitor:DP-1
#workspace = 3,monitor:DP-1
#workspace = 4,monitor:DP-1
workspace = 5,monitor:eDP-1

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

Description
After upgrading to Hyprland v0.43.0 I was unable to screen share or record my screen.
After some troubleshooting, I noticed that XDPH was not starting automatically. This was probably happening because the environment variable XDG_CURRENT_DESKTOP was not set.
After setting the environment variable XDG_CURRENT_DESKTOP in my hyprland.conf,
env = XDG_CURRENT_DESKTOP,Hyprland

XDPH was starting automatically and I was able to screen share and record my screen.
I don't know if this behaviour is intended in v0.43.0 but it does not appear in v0.42.0.
How to reproduce
Try to screen share or record screen without setting the environment variable XDG_CURRENT_DESKTOP in hyprland.conf.
Also notice that XDPH is not starting automatically.
Crash reports, logs, images, videos
No response

0.43.0 will no longer overwrite XDG_CURRENT_DESKTOP unless it's unset at launch. Make sure your display manager either unsets the env or sets it to Hyprland, or that the env is unset when Hyprland launches
https://github.com/hyprwm/Hyprland/blob/155d44016d0cb11332c454db73d59030cdbd7b13/src/Compositor.cpp#L308-L311


#7: support other values file names and multiple values files

implementation of #7

@klg71 can you please have a look?


Remove filter pills from example page

Summary
@rickhanlonii
Removes filter pills from example page in RNTester app.
Changelog
Removed filter pills from example page by changing hideFilterPills property to true in RNTesterExampleList.js

[Android] [Removed] - Remove filter pills
[iOS] [Removed] - Remove filter pills
Test Plan
RNTester app builds and runs as expected and filter pills are removed from the screen.

@suminkimm all checks have passed 🎉

@suminkimm could you rebase this on top of master, it looks like there's a merge conflict. Sorry about that!

@rickhanlonii - Now rebased

Hm, now all of the tests are failing?

This rebase was done correctly, but Parent commit 1903f6680d9750e244 is still failing, as is current master @ 07d090dbc6c46b8f3760dbd25dbe0540c18cb3f3. We will need to put this down for now, and wait until we have a good base commit to rebase onto.


Error During the Scale up:  Created Empty Tag causing issue "saveState-LicenseType"

I found that the Auto scale down created a  saveState Tag with empty value.
TagName:   saveState-LicenseType= Empty
During the Scale up created empty tag creating problem and giving below error.

Hey @sumitraj0103, thanks for catching this! I've identified the issue and will get a fix put in place tomorrow.


derive Default, Copy for BoundBox. impl BoundBoxTrait for Rect

Hey Dan,
I needed the ability to clone some layout21raw structs and derive default for my wrapper structs of some layout21raw structs so I made these modifications to a local copy of the Layout21 repo. I also added implemented BoundBoxTrait for Rect because this made the ergonomics of my code better. I think the other change I made was deriving Copy for a couple of structs that contain only Copy fields.
Would it be useful for me to go through the rest of the type definitions in layout21 raw and add derives for Copy, Clone, Default and Debug where they are missing?

Hey Dan,
I needed the ability to clone some layout21raw structs and derive default for my wrapper structs of some layout21raw structs so I made these modifications to a local copy of the Layout21 repo. I also added implemented BoundBoxTrait for Rect because this made the ergonomics of my code better. I think the other change I made was deriving Copy for a couple of structs that contain only Copy fields.
Would it be useful for me to go through the rest of the type definitions in layout21 raw and add derives for Copy, Clone, Default and Debug where they are missing?

Sounds great, thanks for grabbing this.
Unlike gds21 and lef21, layout2raw hasn't made it onto the public crates.io yet, and accordingly many of its public-facing facets have been lacking some of these niceties. And certainly lacking a healthy audit of them. If you're up for adding the popular derive-able traits to the public types, that'd be great.


Variable substitution

Make it possible to use inside "args" https://code.visualstudio.com/docs/editor/variables-reference

${userHome}
${file}
${fileBasename}
${fileBasenameNoExtension}
${fileExtname}
${fileDirname}
${fileWorkspaceFolder}
${workspaceFolder}
${workspaceFolderBasename}
${execPath}
${pathSeparator}
${lineNumber}
${selectedText}
${config:VSCODE_SETTING_ID}
${env:ENV_VAR}

"commands.variableSubstitutionEnabled": true,

"Input file name from selection": {
	"command": "workbench.action.quickOpen",
	"args": "${selectedText}",
},

[x] Predefined variables ${file},${fileBasename},...
[x] Environment variables ${env:MY_SYSTEM_VAR}
[x] Configuration variables ${config:CONFIG_VAR}
[ ] Command variables ${command:vscodeCommandId}
[x] Substitute inside arrays/objects
[ ] Input variables
[ ] Quick Pick list variables
Other

[x] ${clipboard} current clipboard value
[x] ${random} 6 random Base-10 digits
[x] ${randomHex} 6 random Base-16 digits

May I add a request for ${env:MY_SYSTEM_VAR} also.
https://code.visualstudio.com/docs/editor/variables-reference#_environment-variables

Hi 🙋♂
Not if this is fully implemented yet, but i may have found a bug?
I came across this when trying to replicate a feature of vim, specifically zz, zt, zb, because i don't want to have to install a whole vim extension just for this.
The following is for the example of zt.
It is supposed to eval the cursor line number, and scroll it to the top of the viewport, without moving the cursor.
"commands.variableSubstitutionEnabled": true,
"commands.commands": {
  "Viewport scroll Top": {
    "command": "revealLine",
    "args": {
      "lineNumber": "${lineNumber}",
      "at": "top",
    },
    "statusBar": {
      "alignment": "left",
      "color": "#FFCC00",
      "text": "scroll Top"
    }
  }
},

The problem is it doesn't work?
But if i hard code a value instead like "lineNumber": "20", or "lineNumber": 20, it does work.
Any thoughts? Solutions?

Variable substitution only works if the "args" is of type - string.
It needs to be implemented as a recursive walking through arrays/objects and when the item is string - substitute.

Awesome! Working beautifully now.
Thank you!

The one I miss the most in the list above are the configuration variables ${config:CONFIG_VAR}. Can you add that, please?
Note: as it is possible to self-define configurations (the settings ui creates a warning "unknown configuration", but otherwise it works perfect) this can be easily used to move often used strings to a single place and use it in the complete workspace configuration.
Things I've used for this so far, leading to multiple "nearly identical" workspace definitions that move out the parts that are specific to the actual user and that are specific to that project, are similar to:
"my.config.server": "servername",
"my.config.serverFallback": "servername2",
"my.config.port": "12345",
"my.config.projectName": "project",
"my.config.projectDesc": "stuff this project is about",
"my.configUser.folder": "/path/to/folder/outside/workspace"  // setup in user config

this allows using it in different places, especially useful for launch and task configurations where they can be referenced, for example with ${config:my.configUser.folder}/${config:my.config.projectName}.
I'd like to use those in the args, too, and see those are missing in the docs and in https://github.com/usernamehw/vscode-commands/blob/master/src/substituteVariables.ts.

Привет


colorize the html

added spans to colorize the logs similar to what clang will do in a terminal

Thanks for the handy tool!

Thanks so much for contributing! 🙌


Slide Menu does not get back to main view conroller.

After update version 0.1.5 i am facing strange problem. In my application there are 5 menu at left side drawer. Whenever i tap to topleft (i.e. Hamburger icon) slider will move to right side. But after that if i am clicking on menu item then slider menu not get back to mainviewcontroller. In previous version it was working perfectly in my app.Please leave your reply asap.
Thanks in Advance

Hi, the problem is that no set the new viewController on mainViewController or mainViewController it does not return to his original position after set new new viewController?


Calculate Taking Too Long

When I calculate a rollup it is taking days to complete. Can you please tell me how I can resolve this? Thank you.

Some thoughts....

Is this the Schedule Calculate page your using to schedule full recalcs? If so, does the incremental schedule mode work for you better? Providing you don't have any time dependent formula's in your criteria or cross object formulas, you could probably move to scheduling the RollupJob and then deploy the child trigger. This will record realtime which parent records (and only those) that need recalculating and dramatically reduce the time taken. See blogs on this (links on readme) for more.
If you still need to use the full recalculate via the Schedule Calculate page, then try putting in some criteria that focuses the process on records your interested in, maybe only those created in the last year or two years? Or of a certain status? You should also check that the criteria fields are indexed (you can see this until the objects setup object page).
Check the Custom Settings for the tool, you can increase the chunk size which will reduce the number of batches needed to process the job. As general rule of thumb, less batches, the quicker the job runs. The default is 100 parent records per batch., so i assume your processing 766,200 parent records. You can go up to 2000 parent records. The maximum is an average of no more than 50k related child records processed per chunk of parent records. So if you go with 500 parent records you will reduce the number of batches need by a lot, but must ensure that at any time a chunk of 500 parents does not collectively read over 50k children. So knowing your max child records per parent will certainly help you calibrate your custom settings. Read more about this in the  known issues section of the readme.

@girlyITgeek Let me know if the above helped or not. If not, we can re-open this issue and discuss further. Thanks Andy. 👍

@girlyITgeek Let me know if the above helped or not. If not, we can re-open this issue and discuss further. Thanks Andy. 👍


Minor issue: typo in Settings page

Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

Describe the bug*
Just a minor thing. There's a typo on the Settings page.
Settings -> Global Settings -> Server Configuration
"Delete Noficiations | User notifications will be deleted after specified number of days"
Steps to Reproduce
Settings -> Global Settings -> Server Configuration -> Delete "Noficiations"
Expected behavior
Delete Notifications
Deployment Method

[X] Docker
[ ] Bare metal

Version Information
Version Information:
InvenTree-Version: 0.9.2
Django Version: 3.2.16
Commit Hash: 236ca36
Commit Date: 2023-01-04
Database: postgresql
Debug-Mode: False
Deployed using Docker: True
Active plugins: False
Relevant log output
No response

Thank you for the report @jtrosper ! This should be fixed in the next release.

I've created a PR #4213 to close this issue


Jid types

this does not change semantics (famous last words), but uses types instead of string for jabber ids...

and is a prerequisite for my multi session work (not gonna work on that further without those types)


Geothermal output issues

User reported issues: https://sam.nrel.gov/forum/forum-general/3451

Capacity factor is always 100%. Most recent version to calculate it correctly is SAM 2017.9.5.

System Availability losses adjust do not affect outputs.

These issues have both been addressed in previous PR's. I will add new issues with Geothermal fixes for the next release. Closing this issue now.


sql/parse: fix order by with group by

Closes #228

The order appear to change: https://travis-ci.org/src-d/go-mysql-server/jobs/394033752#L731

Um, yes, because the count is the same in both and the sort we're doing must not be stable, damn

Fixed @ajnavarro

Same error: https://travis-ci.org/src-d/go-mysql-server/jobs/394045184#L729

Should be fixed now

Done @ajnavarro

Rebased. PTAL @kuba--

CI is failing:
# gopkg.in/src-d/go-mysql-server.v0/sql/index/pilosa
sql/index/pilosa/driver_test.go:431:33: cannot use context.Background() (type context.Context) as type *sql.Context in argument to d.Save: need type assertion
FAIL	gopkg.in/src-d/go-mysql-server.v0/sql/index/pilosa [build failed]

Is it still pending of rebase?

@mcarmonaa yes, something was merged after that rebase

Fixed


Nix: update rust nightly hash

Update to something that works :-D

!ci-build-me

Good job @rbonichon !


Parallelize profile requests

When a client has requested the r_emailaddress scope from LinkedIn, then
we do one more request. Instead of firing the requests sequentially we should
make both of them at the same time and merge them upon their responses.
These requests take aprox. 1 minute when run sequentially, so half a
minute when they're run in parallel

Looking good!

I couldn't find an issue section in repo so writing here because topic is related.
I have a problem with obtaining email address in upgraded Linkedin API even if I am using "r_emailaddress" scope. What I get is "photos", "displayName", "provider", "name", "id".
Once I was using https://github.com/jaredhanson/passport-linkedin with older Linkedin API everything was fine.
Any idea what's the cause ?

@cigolpl Please make sure that your app has r_emailaddress scope enabled. You can look for that in Permissions section located at https://www.linkedin.com/developers/apps/YOUR_APP_ID_GOES_HERE/auth.
Apart from that, we have also noticed sporadically that for some profiles Linkedin will never return the email even if everything is configured as expected. We've repeatedly tried to troubleshoot that, reached out to Linkedin and reverse engineer any Linkedin profile privacy setting that might be related without success. That is, I'd suggest you also try with two different profiles to see if the problem is resolved.
Hope that helps.
For the records, Issues section has also been enabled.

@SokratisVidros it's working now. I've added scope and state to LinkedinStrategy params. Before I had profileFields instead of scope.
Thanks for help and that lib. It's huge time saver


Decouple unit test code from business code

Many unit test code and business code were coupled together.
This PR decouples them.
After this refactoring, we only import testing and assert in unit test code:
$ grep -nr --include "*.go" --exclude "*_test.go" --exclude-dir vendor 'testing"' .
./models/unittest/testdb.go:8:	"testing"
./integrations/html_helper.go:9:	"testing"
./integrations/testlogger.go:14:	"testing"
./modules/test/context_tests.go:14:	"testing"

$ grep -nr --include "*.go" --exclude "*_test.go" --exclude-dir vendor 'assert"' .
./models/unittest/testdb.go:15:	"code.gitea.io/gitea/modules/unittestassert"
./models/unittest/testdb.go:18:	"github.com/stretchr/testify/assert"
./integrations/html_helper.go:12:	"github.com/stretchr/testify/assert"
./modules/unittestassert/testassert.go:5:	"github.com/stretchr/testify/assert"
./modules/test/context_tests.go:23:	"github.com/stretchr/testify/assert"

Some details:
What are Tester and Asserter?
They are intermediate interfaces for this refactoring. There are many assertions in models.CheckConsistencyFor (which calls db.AssertXxx), so we introduce the Tester/Asserter interfaces to decouple CheckConsistencyFor from testing frameworks. Then we do not need to import any testing frameworks for non-unit-test code. The benefit is that we get a clearer and smaller built binary.
Why don't we refactor CheckConsistencyFor directly to get rid of the assertions?
It will be a huge project. There are too many related code of CheckConsistencyFor, which may cause cycle-import problems. The refactoring of CheckConsistencyFor is very difficult to be done in a few PRs. So we now we just make the first step to decouple it from testing framework, and then we can refactor CheckConsistencyFor and related models one by one.
Then, one day, if CheckConsistencyFor  is clean enough, we can remove the intermediate interfaces (Tester/Asserter).

Codecov Report

Merging #17623 (d97a960) into main (0db7a32) will decrease coverage by 0.02%.
The diff coverage is 57.14%.

@@            Coverage Diff             @@
##             main   #17623      +/-   ##
==========================================
- Coverage   45.50%   45.48%   -0.03%
==========================================
  Files         795      798       +3
  Lines       88894    88914      +20
==========================================
- Hits        40455    40442      -13
- Misses      41926    41971      +45
+ Partials     6513     6501      -12

Impacted Files
Coverage Δ

models/unittest/testdb.go
11.11% <11.11%> (ø)

models/db/engine.go
33.33% <50.00%> (ø)

models/db/unit_tests.go
68.85% <57.57%> (+6.75%)
:arrow_up:

modules/unittestapi/unittestapi.go
66.66% <66.66%> (ø)

modules/unittestassert/testassert.go
71.42% <71.42%> (ø)

models/unittest/fixtures.go
36.11% <83.33%> (ø)

models/consistency.go
47.69% <98.57%> (-1.76%)
:arrow_down:

models/db/list_options.go
42.85% <0.00%> (-28.58%)
:arrow_down:

... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0db7a32...d97a960. Read the comment docs.


Fixed bug for retrying gone exceptions on write operations and added …

…batch operation type to fault injection
Description
Currently gone exceptions (410) are retried for write operations in bulk mode. It is possible the operations trigger a 429 when being retried due to the operation going through already. This change does not retry write operations when a gone exception occurs. Additionally, the batch operation type was added for the fault injection to test this bug.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.


SerialIO to spacedock, closes #3682

Homepage needs to be corrected to http://forum.kerbalspaceprogram.com/index.php?/topic/60281-hardware-plugin-arduino-based-physical-display-serial-port-io


#show : set cannot be overwritten

Description
#show heading: set text(fill: red)
= aaaaa

#show heading: set text(fill: blue)
= bbbbb

I would expect the second call to #show to override the previous setting, but it is completely ignored. Both headings are rendered red.
Reproduction URL
No response
Operating system
Linux
Typst version

[X] I am using the latest version of Typst

Duplicate of #351


Archive evtx file to preserve display information

This introduces a fix to the bug mentioned in issue #2581 by using wevtutil's archive functionality to preserve the display information of the container's OS.

Thanks


Pivotal integration is not working

node 0.6.0
hubot 2.1.0
hubot-scripts 2.0.2
xml2js 0.1.13
sax 0.3.5
scoped-http-client 0.9.6

whenever I try to run the pivotal script with "show me stories" I get no answer and if I use it with "show me stories for Dev" I get 'No project /Dev.*/i'.
Both those answers don't match the actual state of things or exploring the API via curl.
Is there anything in particular that should be different?

Sadly, your best bet is to contact the author of the script.  This repo is essentially chaos.

The issue I've found is that json.project in the project is not an array unless there are multiple  tags in the json and thus it fails.


Weekly build triage for the week starting 2023/04/03

This week's build triage summary:

Date
Day
JDK Version
Pipeline
Pass/Build Fail/Test Fail
Triage Status
Triager
Breakdown

2023/04/01
Saturday
JDK8
Link
6/2/4
Done
@adamfarley
Link

2023/04/01
Saturday
JDK11
Link
3/3/4
Done
@adamfarley
Link

2023/04/02
Saturday
JDK17
Link
6/2/2
Done
@adamfarley
Link

2023/04/02
Saturday
JDK20
Link
4/2/3
In Progress
@adamfarley
Link

2023/04/03
Monday
JDK8
Link
10/0/1
In Progress
@adamfarley
Link

2023/04/05
Wednesday
JDK8
Link
9/3/0
In Progress
@adamfarley
Link

2023/04/07
Friday
JDK8
Link
7/3/2
In Progress
@adamfarley
Link

2023/04/04
Tuesday
JDK11
Link
9/2/1
Pending

Link

2023/04/06
Thursday
JDK11
Link
10/0/1
Pending

Link

2023/04/05
Wednesday
JDK17
Link
9/0/2
Pending

Link

2023/04/07
Friday
JDK17
Link
8/1/2
Pending

Link

2023/04/05
Wednesday
JDK20
Link
9/1/0
Pending

Link

2023/04/07
Friday
JDK20
Link
8/1/1
Pending

Link

Note: "Test_Fail" is for when all the "build" jobs passed (build, sign, installer, etc) but one of the test jobs failed and the
status propagated upstream to the build job. Note that "unstable" test job status can be considered a pass, as these are
triaged in more detail elsewhere (e.g. the adoptium/aqa-tests repo).
Comment template:
Triage breakdown for <Pipeline link>
Table of failures:
| Build Fail/Test Fail | Platform   | Failed Job | Response                            | Issue | Triage Status              | Notes  |
| --------------------- | ---------- | ---------- | ----------------------------------- | ----- | -------------------------- | -----  |
| Build Fail/Test Fail | e.g. win64 | Link       | New (Issue)/Existing (Issue)/Ignore | Link  | Pending/In Progress/Done | Borked |

Triage breakdown for https://ci.adoptium.net/job/build-scripts/job/openjdk8-pipeline/2520/
23/04/03: Pipeline is still running.
Table of failures:

Build Fail/Test Fail
Platform
Failed Job
Response
Issue
Triage Status
Notes

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked

Triage breakdown for https://ci.adoptium.net/job/build-scripts/job/openjdk17-pipeline/663/
23/04/03: Pipeline is still running.
Table of failures:
| Build Fail/Test Fail | Platform | Failed Job | Response | Issue | Triage Status | Notes |
| --------------------- | ---------- | ---------- | ----------------------------------- | ----- | -------------------------- | ----- |
| Build Fail/Test Fail | e.g. win64 | Link | New (Issue)/Existing (Issue)/Ignore | Link | Pending/In Progress/Done | Borked |

Triage breakdown for https://ci.adoptium.net/job/build-scripts/job/openjdk20-pipeline/174/
Table of failures:

Build Fail/Test Fail
Platform
Failed Job
Response
Issue
Triage Status
Notes

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked

Triage breakdown for https://ci.adoptium.net/job/build-scripts/job/openjdk8-pipeline/2521/
Table of failures:

Build Fail/Test Fail
Platform
Failed Job
Response
Issue
Triage Status
Notes

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked

Triage breakdown for https://ci.adoptium.net/job/build-scripts/job/openjdk8-pipeline/2522/
Table of failures:

Build Fail/Test Fail
Platform
Failed Job
Response
Issue
Triage Status
Notes

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked

Triage breakdown for https://ci.adoptium.net/job/build-scripts/job/openjdk11-pipeline/2329/
Table of failures:

Build Fail/Test Fail
Platform
Failed Job
Response
Issue
Triage Status
Notes

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked

Triage breakdown for https://ci.adoptium.net/job/build-scripts/job/openjdk11-pipeline/2330/
Table of failures:

Build Fail/Test Fail
Platform
Failed Job
Response
Issue
Triage Status
Notes

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked

Triage breakdown for https://ci.adoptium.net/job/build-scripts/job/openjdk17-pipeline/664/
Table of failures:

Build Fail/Test Fail
Platform
Failed Job
Response
Issue
Triage Status
Notes

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked

Triage breakdown for https://ci.adoptium.net/job/build-scripts/job/openjdk17-pipeline/665/
Table of failures:

Build Fail/Test Fail
Platform
Failed Job
Response
Issue
Triage Status
Notes

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked

Triage breakdown for https://ci.adoptium.net/job/build-scripts/job/openjdk20-pipeline/176/
Table of failures:

Build Fail/Test Fail
Platform
Failed Job
Response
Issue
Triage Status
Notes

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked

Triage breakdown for https://ci.adoptium.net/job/build-scripts/job/openjdk20-pipeline/177/
Table of failures:

Build Fail/Test Fail
Platform
Failed Job
Response
Issue
Triage Status
Notes

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked

Build Fail/Test Fail
e.g. win64
Link
New (Issue)/Existing (Issue)/Ignore
Link
Pending/In Progress/Done
Borked


AttributeError: 'GPTResearcher' object has no attribute 'max_subtopics'. Did you mean: 'get_subtopics'?

Describe the bug
When running a Detailed Report I get this error.
To Reproduce
Steps to reproduce the behavior:

Install in a virtual environment
Run as normal (python -m uvicorn main:app --reload)
Get started and Select 'Detailed Report'
Start

Expected behavior
Provide the detailed report
Desktop (please complete the following information):

OS: MacOS
Version GPT-Researcher v3.0.8

Thanks for helping with this @bhargavyagnik !

I reinstalled the entire thing and it seems to work now. Thanks for reaching out @bhargavyagnik


feat: Manually find game if needed

Closes #4.
TODOs

[ ] Display a notification if path was chosen successfully
[ ] Remove permanent notification on successful path selection
[ ] Change button text ("Find game"?)

I suppose that's because the secret you created on your repo is not shared to forks (for privacy reasons)


Package Manager does not work with private feeds with authentication

Describe the bug
Error in package manager when trying to access private Nuget feed hosted on Azure DevOps Artifacts
Version
Version:  2.0.0
Electron: 8.2.4
Chrome: 80.0.3987.165
NodeJS: 12.13.0
V8: 8.0.426.27-electron.0
Browser

[x] Electron distribution
[ ] Chrome
[ ] Safari
[ ] Firefox
[ ] Edge

OS

[ ] macOS
[x] Windows
[ ] Ubuntu

To Reproduce
Steps to reproduce the behavior:

Start Composer
Go to Package Manager
Click Edit feeds
Add a new private Nuget feed - in this case it is Azure DevOps Artifacts based Nuget feed
Click Done
Select newly added private Nuget feed from the feed dropdown menu
See the resulting error message in popup. Result is HTTP Status code 401 - Unauthorized.

Expected behavior
Able to access private Nuget feed by either setting up needed credentials in bot project or by input through Composer interaction.
Screenshots
Sample of error message

Additional context
Private Nuget feed works without issues when used from PowerShell/Terminal

@mhtmht Are you able to use a feed with the authentication details included? Composer does not support feeds that require interactive login to access.

@mhtmht Are you able to use a feed with the authentication details included? Composer does not support feeds that require interactive login to access.

Good to now that interactive login is not supported for package manager. Might be good to highlight that in documentation as interactive login for provisioning might confuse other adventurers also.
I have not as I'm aware of how to pass the needed information to Nuget. Is there an example somewhere that I could take a look at? If not then this might also be a good addition to documentation. Until/if interactive login is supported.

@benbrown
In reference to my last comment any pointers on how to pass the authentication details with the feed url through Composer?
As a work around we are hosting a local feed but the ability to use private feeds with authentication would be super helpful in bigger development teams.

@mhtmht sorry for the delay in my response here --
Azure devops artifact feeds do not support the inline authentication. However, myget feeds do -- is it possible to use that system?

@mhtmht Did you try swapping the feed to use MyGet instead of ADO?
Closing this ticket due to inactivity,


Pressing F3+ESC opens the pause menu

Normally pressing F3 and ESC pauses the game without opening the pause menu (It says "Game paused" at the top instead). With the mod this feature is broken. It is interesting that pressing F3+ESC allows you to toggle the F3 debug screen while the pause menu is open. If you open the pause menu by just pressing ESC, you cannot do it, so pressing F3+ESC still behaves differently than just pressing ESC.

I removed this feature for the simple reason that it looks strange just when the game is paused with a dark screen (without the paused game title)


Lora inference error

Basic info: windows 10, py310, torch2.2.0
Script: predict_i2v.py
I use EasyAnimateV5-12b-zh-InP-HPS2.1.safetensors to inference img2video like:
lora_path           = r"C:\Users\MSI\Downloads\EasyAnimateV5-12b-zh-InP-HPS2.1.safetensors"
however it output error like:
Cannot copy out of meta tensor; no data!
NotImplementedError: Cannot copy out of meta tensor; no data!

The problem is in this code:
def merge_lora(pipeline, lora_path, multiplier, device='cpu', dtype=torch.float32, state_dict=None, transformer_only=False):
    LORA_PREFIX_TRANSFORMER = "lora_unet"
    LORA_PREFIX_TEXT_ENCODER = "lora_te"
    SPECIAL_LAYER_NAME = ["text_proj_t5"]
    if state_dict is None:
        state_dict = load_file(lora_path, device=device)
    else:
        state_dict = state_dict
    updates = defaultdict(dict)
    for key, value in state_dict.items():
        layer, elem = key.split('.', 1)
        updates[layer][elem] = value

    for layer, elems in updates.items():

        if "lora_te" in layer:
            if transformer_only:
                continue
            else:
                layer_infos = layer.split(LORA_PREFIX_TEXT_ENCODER + "_")[-1].split("_")
                curr_layer = pipeline.text_encoder
        else:
            layer_infos = layer.split(LORA_PREFIX_TRANSFORMER + "_")[-1].split("_")
            curr_layer = pipeline.transformer

        try:
            curr_layer = curr_layer.__getattr__("_".join(layer_infos[1:]))
        except Exception:
            temp_name = layer_infos.pop(0)
            while len(layer_infos) > -1:
                try:
                    curr_layer = curr_layer.__getattr__(temp_name)
                    if len(layer_infos) > 0:
                        temp_name = layer_infos.pop(0)
                    elif len(layer_infos) == 0:
                        break
                except Exception:
                    if len(layer_infos) == 0:
                        print('Error loading layer')
                    if len(temp_name) > 0:
                        temp_name += "_" + layer_infos.pop(0)
                    else:
                        temp_name = layer_infos.pop(0)

        weight_up = elems['lora_up.weight'].to(dtype)
        weight_down = elems['lora_down.weight'].to(dtype)
        if 'alpha' in elems.keys():
            alpha = elems['alpha'].item() / weight_up.shape[1]
        else:
            alpha = 1.0

        curr_layer.weight.data = curr_layer.weight.data.to(device) # this line output error
        if len(weight_up.shape) == 4:
            curr_layer.weight.data += multiplier * alpha * torch.mm(weight_up.squeeze(3).squeeze(2),
                                                                    weight_down.squeeze(3).squeeze(2)).unsqueeze(
                2).unsqueeze(3)
        else:
            curr_layer.weight.data += multiplier * alpha * torch.mm(weight_up, weight_down)

    return pipeline

This line output error:  curr_layer.weight.data = curr_layer.weight.data.to(device)
I debug the curr_layer weights, and its device is meta which seems very strange.
When the lora path is none, everything works fine.
how can I solve it?

I found the problem.
GPU_memory_mode     = "sequential_cpu_offload" cause this. "model_cpu_offload" works fine


TS-4341

TS-4341

This isn't complete yet, still need to add handling for timeouts etc., but I wanted to get the PR opened to get some eyes on it :)

:eyes: I'm on it.

Well, it seems that this doesn't leak in the queue-- but I did find another bug (https://issues.apache.org/jira/browse/TS-4343) which we'll probably want to fix at the same time as this :/

This PR now includes the patches from https://github.com/apache/trafficserver/pull/562 and https://github.com/apache/trafficserver/pull/569  as they are related (and interdependent)

@bgaff @jpeach @zwoop ready for review :)

@jacksontj I'm going to merge my pull request, can you please update yours once my code lands? Thanks


Release workflow

We need to figure out a good release workflow (such as https://github.com/changesets/changesets) but to release extension to web stores as well as github with tags and to add change log to github.

Can use this https://github.com/marketplace/actions/publish-chrome-extension


Reproducible error when using drug_chemical_conflate

As reported by @EvanDietzMorris, querying PUBCHEM.COMPOUND:440055 without drug_chemical_conflate works fine: https://nodenormalization-sri.renci.org/1.4/get_normalized_nodes?curie=PUBCHEM.COMPOUND%3A440055&conflate=true&drug_chemical_conflate=false&description=false
But querying it with drug_chemical_conflate turned on consistently causes an error during processing: https://nodenormalization-sri.renci.org/1.4/get_normalized_nodes?curie=PUBCHEM.COMPOUND%3A440055&conflate=true&drug_chemical_conflate=true&description=false

The problem appears to be that PUBCHEM.COMPOUND:440055 is conflated with RXCUI:2642190, which is missing from NodeNorm for some reason: https://nodenormalization-sri.renci.org/1.4/get_normalized_nodes?curie=RXCUI:2642190&conflate=true&drug_chemical_conflate=false&description=false
This apparently causes an exception to be thrown when trying to figure out the types of this identifier:
[2023-10-09 20:48:09 +0000] [13] [INFO] <IP_ADDRESS>:55558 - "GET /docs HTTP/1.1" 200
2023-10-09 20:48:10,600 | ERROR | normalizer:get_normalized_nodes | Exception: Traceback (most recent call last):
  File "/code/node_normalizer/normalizer.py", line 559, in get_normalized_nodes
    eqids2, types2 = await get_eqids_and_types(app, all_other_ids)
  File "/code/node_normalizer/normalizer.py", line 486, in get_eqids_and_types
    types = [get_ancestors(app, t) for t in types]
  File "/code/node_normalizer/normalizer.py", line 486, in <listcomp>
    types = [get_ancestors(app, t) for t in types]
  File "/code/node_normalizer/normalizer.py", line 24, in get_ancestors
    a = app.state.toolkit.get_ancestors(input_type)
  File "/usr/local/lib/python3.9/site-packages/bmt/util.py", line 120, in wrapper
    case = guess_casing(s)
  File "/usr/local/lib/python3.9/site-packages/bmt/util.py", line 65, in guess_casing
    if "_" in s:
TypeError: argument of type 'NoneType' is not iterable

It looks like there are 41 cliques on https://nodenormalization-sri.renci.org/ (current NodeNorm Dev) that currently cause this error:

PUBCHEM.COMPOUND:14969
PUBCHEM.COMPOUND:62816
PUBCHEM.COMPOUND:2657
PUBCHEM.COMPOUND:3420
PUBCHEM.COMPOUND:184933
PUBCHEM.COMPOUND:16132446
PUBCHEM.COMPOUND:16158474
PUBCHEM.COMPOUND:6452712
PUBCHEM.COMPOUND:121492004
PUBCHEM.COMPOUND:124220636
PUBCHEM.COMPOUND:3325
PUBCHEM.COMPOUND:426756
PUBCHEM.COMPOUND:64738
PUBCHEM.COMPOUND:2274
PUBCHEM.COMPOUND:657250
PUBCHEM.COMPOUND:20056431
PUBCHEM.COMPOUND:76943386
PUBCHEM.COMPOUND:163285897
PUBCHEM.COMPOUND:24883445
PUBCHEM.COMPOUND:23666342
PUBCHEM.COMPOUND:60714
PUBCHEM.COMPOUND:60754
PUBCHEM.COMPOUND:72057
PUBCHEM.COMPOUND:11158972
PUBCHEM.COMPOUND:22002932 <-- continuous series of 500 errors; I'll retest the rest with a sleep between entries just to make sure
PUBCHEM.COMPOUND:74763937
PUBCHEM.COMPOUND:60196433
PUBCHEM.COMPOUND:118115473
PUBCHEM.COMPOUND:145722621
PUBCHEM.COMPOUND:98941
PUBCHEM.COMPOUND:13730
PUBCHEM.COMPOUND:440055
PUBCHEM.COMPOUND:2734019
PUBCHEM.COMPOUND:2724369
PUBCHEM.COMPOUND:71587456
PUBCHEM.COMPOUND:24868287
PUBCHEM.COMPOUND:21121987
PUBCHEM.COMPOUND:107488
PUBCHEM.COMPOUND:135398592
PUBCHEM.COMPOUND:16218792
PUBCHEM.COMPOUND:2736435

PUBCHEM.COMPOUND:5702160 is another one

and PUBCHEM.COMPOUND:5742832

and PUBCHEM.COMPOUND:5353622

Note the oddity of PUBCHEM.COMPOUND:124220636, which should only be conflated with PUBCHEM.COMPOUND:165411920 and UMLS:C5402366, all three of which have type information.

Right, so PUBCHEM.COMPOUND:165411920 really doesn't have a type.  The type database only uses the preferred identifier to retrieve the type.  The problem is that the conflation contains something other than a preferred identifier.   In conflation, it is assuming that those are all preferred, and will therefore all have entries in the right places.
It works when you just go with *20 because it first hits the main index, finds the preferred ID and then uses that to go look up the type.

I've modified the code in PR https://github.com/TranslatorSRI/Babel/pull/191 to skip identifiers where the object isn't present in either drug_rxcui_to_clique or chemical_rxcui_to_clique, which are mappings from RXCUIs to clique leaders. This seems to have eliminated the PUBCHEM.COMPOUND identifiers that we don't actually want conflated, but I'm pretty sure that it's skipping too many non-RXCUI mappings that we actually do want in these conflated cliques. Here is a list of the 11,737 subject-object pairs being skipped by this change: in 4,508 cases this is a mapping from an identifier to itself (e.g. PUBCHEM.COMPOUND:6914273 to PUBCHEM.COMPOUND:6914273), while in the other 7,229 cases it's between two different identifiers.
The dumb next move would to remove the RXCUI filters entirely from load_cliques(), so then we can figure out the clique leader for every identifier we want to conflate (at the cost of loading all the chemical identifiers back into memory, but whatever). @cbizon Do you think that makes sense, or can you come up with a smarter way to make sure  the DrugChemical file only contains clique leaders?

If we were concerned about keeping memory low, the only other thing I can think of would be to generate the DrugChemical conflation as before, but then do a post-process on it where we load that whole thing into memory and then cycle over the chemical cliques.  Each time we read a new clique leader we check the memory DC conflation, and if we find it in there, then we move it over into a new, cleaned conflation, which we write out at the end.  But honestly, it seems like overkill.  Probably best just to load all the clique leader IDs and be done with it.
I think you're right that the code in the PR is removing too much - the object for some of these is still a clique leader, even if it's not in those maps.

I am ok with this solution in that it would work as a short-term, and it's preferable to the Babel solution that removes too much.  But I think that the right answer is to fix Babel so that it doesn't make bad conflations (but in a more careful way than 217).


Automatic authorization of DynDNS clients not working

@drallgood
In a fresh install of netflix-proxy, I added a number of DynDNS names in the admin page.
The list is populated with all IP addresses.
However, the automatic authorization of these IP addresses fails. When connecting from one of these IP addresses, I get a redirection to the Admin page.
Only manual IP entry works.

Essentially, a small helper script updates the firewall settings whenever the IP address of your DDNS entry changes.
See https://github.com/ab77/netflix-proxy/blob/master/scripts/ddns_updater.sh
Please make sure the relevant cronjob which executes this script is configured and running and the public IP address of your machine matches the one configured in the DDNS entry.

I checked all crontabs. There is no crontab for any user.
Then I executed the script manually and found two issues:

The script reports an error, if a DNS name has a redirection (CNAME record)
The script seems to call "ip", but I cant find it anywhere in the script:

./ddns_updater.sh
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
       ip [ -force ] -batch filename
where  OBJECT := { link | address | addrlabel | route | rule | neighbor | ntable |
                   tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm |
                   netns | l2tp | fou | tcp_metrics | token | netconf }
       OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |
                    -h[uman-readable] | -iec |
                    -f[amily] { inet | inet6 | ipx | dnet | mpls | bridge | link } |
                    -4 | -6 | -I | -D | -B | -0 |
                    -l[oops] { maximum-addr-flush-attempts } | -br[ief] |
                    -o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename] |
                    -rc[vbuf] [size] | -n[etns] name | -a[ll] | -c[olor]}
Wed Dec  6 18:12:46 UTC 2017: Updating mydnsname.dyndns.de
Bad argument `ACCEPT'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `<IP_ADDRESS>/32'

After removing the CNAME DNS namens, the script only shows IP's help.

Digging a little deeper, the function call
IFACE=$(get_iface) has no argument, but the function expects one. Hence the ip help output.

I've updated the script to include the correct function call.

I used the new script to run an iptables update.
Checking the rules.v4, my IP address is listed as allowed.
However, I was still redirected to the admin page.
I manually entered my IP address and was not redirected anymore.
A diff between the rules.v4 (before manual entry) and rules.v4 (after manual entry) showed that both files are identical.
There must be an issue somewhere else...

"I checked all crontabs. There is no crontab for any user."
Check # ls /etc/cron.d/

@ab77 I added two dyndns address on the admin site. After 5 min I see the IP on the dyndns page. So this part is working, but I can't see this IP on the Home page, neither on Add/Remove page. Is this normal?

@adrianmihalko
yes, that’s expected behavior


adaptive-lighting zigbee2mqtt error message MAC no ack' (233)

Is there a way to erase the messages which are flooding zigbee2mqtt?
I use zigbee switch separately of zigbee light bulb.
When switch is off, lightbulb is off too but adaptive-lighting try to apply parameters and it generate lot off errors in zigbee2mqtt:
Publish 'set' 'brightness' to 'Ampoule Salon' failed: 'Error: Command 0xa4c13899a021c645/11 genLevelCtrl.moveToLevelWithOnOff({"level":146,"transtime":495}, {"sendWhen":"immediate","timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false}) failed (Data request failed with error: 'MAC no ack' (233))'
Can you help me please?

Well, Adaptive-Lighting tries to adapt the light (that it no longer is able to reach). You have two options (or maybe 3):

Disable Adaptive-Lighting when the switch is off, maybe check for entity availability and pause "Aadapt Lighting" & "Adapt Color".
Use only_once to only adapt color when the light is powered up. This means you'll lose continuous adaption of the light when the light is on, but if you toggle it often enough it'll follow the sun properly.
Use option 2. but create an automation that reconfigures Adaptive-Lighting to adapt light continuously.
Do not power off your light(s) but use a (zigbee-) PIR to turn on/off your light(s).

I just updated z2m to 1.36.0 and the log level can now be selected in settings.  Change this to 'error' and the "MAC no ack" warning popups disappear.


No green success popup after Program or Country creation

Users and Organizations have a green popup success message when a new entity is created.  Programs and Countries do not.

Moving this one to This Release because it's important to have consistent system feedback when an object is created.

QA - PASSED
Programs:

Countries:


Storybook story hierarchy

What I did
Proof of concept using the new Storybook 3.2 Story Hierarchy feature (featuring Rebass in release announcement).

What I need
Short term: Is this a good direction? Any thoughts on good grouping? If so, happy to finish this out.
Longer term: Would love to work with you to make Rebass the best example how to use Storybook to develop & maintain components (and improve Storybook & Rebass in the process) - snapshot testing, improved storybook/addons-info for component library docs, etc. LMK if this is interesting.
How to test
yarn install && yarn start
open http://localhost:8000

Definitely interested. Mind if I spend some time thinking about the categories a bit? My gut is saying to keep it simple with Intro and components to start with, but can certainly devise something better

Awesome, take your time! A little spent from the 3.2 release, so I'll use the time to charge my batteries, but happy to get this going any time, and excited to see what we can do going forward!

I'm glad I saw this issue. I was doing the same (Kind of).
I was inspired by http://doist.github.io/reactist/ to do the same "presentation" + a complete Rebass chapter to get my component and rebass component close to each others.
can post a PR after doing this if you want.


question for depth map

I noticed the resolution for depth map (640x576) is different from the left & right regular camera (1224x1024). How to align them together?

Please refer to the k4a_projector, which can help you reproject depth readings onto other sensor frames.


java Error: Cannot find symbol when trying to create new Point

Summary
Hello, trying to start out with Exercise 01 (At 1st step of Level 1) but keep getting this error:
|  Error:
|  cannot find symbol
|    symbol:   class Point
|  new Point(0.0, 1.0)
|      ^---^

I don't really understand what does this mean? I am able to execute /open Point.java without any issues
I'm using Mac to code

You don't have the Point class loaded in jshell.  If the Point.java file is there, then in jshell type:
/open Point.java

Hi prof, thanks for the quick reply. Yes I've typed that in jshell already with the Point.java file in the same folder, but still getting this same error.

How about /list Point?  Do you see the Point class?  And is it correct?

Hi prof, it returns me
|  No such snippet: Point.

I've also tried opening the file through its file path, i.e.
 /open /Users/user/Point.java

But I still get the same result.

I had the same problem as well but turns out my point.java I didnt close the class with } so even though when I do /open point.java without error the file didn't load


[Android] Creating Settings in Android with Jetpack's Settings Preference

[Android] Creating Settings in Android with Jetpack's Settings Preference
Users can adjust an application's functionality and behavior by changing its settings.
Settings can influence background behavior, such as how frequently the program synchronizes data with the cloud, or they can have a broader impact, such as changing the user interface's content and design.
The AndroidX Preference Library is the recommended method for integrating user-configurable options into your app.
This library controls the user interface and interacts with storage, allowing you to specify only the parameters that the user can change.
A Material theme is included in the library, ensuring a uniform user experience across devices and OS versions.
In this tutorial we will look at how to create settings for both Fragments and Activities.
Key takeaways

Under what are the importance of having settings in an App
Understand why you should use the new Settings Preference
Customizing the different items in a Preference XML
Understand how to preserve the state of the modified settings

Article quality
The Android Documentation is very shallow and beginners might find it hard to understand. In this tutorial, I will try and write a short and concise article that is beginner friendly and rich in original content.
References
N/A

Hello @sheecodes, this seems to be a duplicate if this.

Thank you @Ericgacoki, I had not seen that

Thank you @Ericgacoki


BGDIINF_SB-1524 : solving monkeyPatching issue

Issue: gevent monkeyPatching causes problem when patching ssl after ssl has been imported anywhere within the code. As botocore imports urllib and its ssl module, and was apparently imported before gevent had the opportunity to run, this caused errors at startup.
Fix : We import gevent.monkey and patch everything before importing anything else when running the application behind gunicorn. (in wsgi.py)
also ran make lint, which made some changes.

I squashed, added a better commit message and added a comment in wsgi.py like you suggested.


fixing an assert in bytecodedump while printing int64 consts for asm.js function

-dump:bytecode hits an assertion when dumping bytecodes for an asm.js function due to the fact we are trying to print int64 consts.

@Cellule this seems to be the only spot which is not guarded by IsTypeExcluded fyi @MikeHolman

In this case, the const count should be 0. What are you trying to dump that is hitting a problem ?

@Cellule

What are you trying to dump that is hitting a problem ?

My guess is that adding -dump:bytecode to dump bytecodes for any asm.js function will hit this assertion. I was running this test specifically
function AsmModule(stdlib,foreign,buffer) {
    "use asm";
var HEAP32 =new stdlib.Int32Array(buffer);
function f1(f){

    f = f|0;
    var a=0,b=2,c=3,d=6,e=4,i=0,j=0,k=0,x=0,y=0;

    a=HEAP32[f+4>>2]|0;
    b=HEAP32[f+8>>2]|0;
    d=HEAP32[f+12>>2]|0;

return (a+b+d)|0;
}
return f1;
}

var global = {Int32Array:Int32Array}
var env = {}
var buffer = new ArrayBuffer(1<<20);

var asmModule = AsmModule(global,env,buffer);
for(var i=0;i<10000;i++)
asmModule(8);

In this case, the const count should be 0.

func->GetTypedRegisterAllocator().GetRegisterSpace(type)->GetConstCount()
To get the count, we call GetRegisterSpace(type) first, GetRegisterSpace(type) triggers the assert.
It looks like the assert is there to stop one from using register space for an excluded type at all even if the use is as innocuous as getting the number of the consts of that particular type.

Oh you are right, when I wrote it I thought the constCount > 0 was enough, but I had forgottent we would assert before the check.
LGTM

@dotnet-bot test OSX osx_osx_debug_static please

@dotnet-bot test OSX osx_osx_debug_static please

@Cellule
Lol, should we bump up count to a bigger number? Looks like CI guys got all new mac books :-)))) 200000 doesn't overflow anymore
  var count = 200000; // Keep this unrealistic number as we do (osx)
                        // and do not limit stack memory to a particular capacity

@Cellule Hooorraaaaah!!! It passseeeeeeeeeeedddddddd!! Could you please re-approve and help me merge this?


rustfmt is not idempotent over some blocks that consist of a series of empty statements finished by an expression

Describe the bug

rustfmt is not idempotent over some blocks that consist of a series of empty statements finished by an expression. The first pass strips the empty statements and the second pass applies any applicable transformation to the block such as unwrapping the expression in it or rearranging it into a single line.
To Reproduce

Example input:
fn foo(x: Option<i32>) -> i32 {
    let y = {
        ;
        x
    };
    match y {
        Some(y) => {
            ;
            ;
            y
        }
        None => 0,
    }
}

Calling rustfmt once results in
fn foo(x: Option<i32>) -> i32 {
    let y = {
        x
    };
    match y {
        Some(y) => {
            y
        }
        None => 0,
    }
}

Calling rustfmt on the previous output then results in
fn foo(x: Option<i32>) -> i32 {
    let y = { x };
    match y {
        Some(y) => y,
        None => 0,
    }
}

Expected behavior

rustfmt should return the output of the second pass in the first pass.
Meta

rustfmt version: rustfmt 1.4.36-nightly (7de6968e 2021-02-07)
From where did you install rustfmt?: rustup
How do you run rustfmt?: via rust-analyzer in vscode, but this was tested with rustfmt too

Thanks for the report!

Maybe related to #3561? That seems to be fixed, though. I couldn't reproduce it on rustfmt 1.4.36-nightly (7de6968 2021-02-07). (why is it open?)

Often times issues will be left open pending test cases being added. Thanks for flagging that, have updated that issue's labels accordingly

I am working on this issue.

Confirming I can reproduce this with rustfmt 1.5.1-nightly (a451a39d 2022-07-25)

This also happens with empty statements in closures that will fit in a single line:
fn foo() {
    let x = || {
        ;
        2
    };
}

Calling rustfmt once results in
fn foo() {
    let x = || {
        2
    };
}

Calling rustfmt a second time results in
fn foo() {
    let x = || 2;
}


Add findOutputDevice to midi.py

Mirroring what's there for findInputDevice
By the way, was there a specific reason not to use the python-midi package that can be installed via pip?

I just gave a quick look at the pip package, are you sure it reads from midi devices?  It looks like it might only do midi files.


More granular permission requirements

Hi Tim! Thanks for your work on this.
My current client declines to provide Global Admin to Azure AD.
Do you know what more restrictive set of permissions may work?
Thanks.

Now that we have graph support and deprecated azure ad support you need the graph app permissions outlined in my blog.  Exchange org admins still stands or a custom rbac role.
==============================
Timothy J. McMichael
Senior Support Escalation Engineer
<EMAIL_ADDRESS>(980)-776-7465
Hours:  Sunday – Wednesday 08:00 – 16:00 eastern time zone.
Manager:  Tom Roughley<EMAIL_ADDRESS>Premier Support -<PHONE_NUMBER>
Broad Commercial Support -<PHONE_NUMBER>
==============================

From: Michael B. @.>
Sent: Thursday, July 20, 2023 2:46 PM
To: timmcmic/DLConversionV2 @.>
Cc: Subscribed @.***>
Subject: [timmcmic/DLConversionV2] More granular permission requirements (Issue #145)
Hi Tim! Thanks for your work on this.
My current client declines to provide Global Admin to Azure AD.
Do you know what more restrictive set of permissions may work?
Thanks.
—
Reply to this email directly, view it on GitHubhttps://github.com/timmcmic/DLConversionV2/issues/145, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKGTN6P7Q7MKQAQ352JY2BTXRF4HBANCNFSM6AAAAAA2R2X47M.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Yeah, I read everything I could find on it. Part 34 states: The minimum rights required for the DLConversionV2 module are Group.Read.All and User.Read.All.
But that's all it says on Graph permissions. Those two permissions don't allow for updating users and/or groups... so there must be others.

Nope - that’s it.  The only reason we have graph is to export the settings.  Originals global admin was required because of the legacy ad commands and it also served to give us the exchange permissions.
Now that graph and exchange have modernized most customers migrating are moving away for credentials and using cert auth with app Auth - especially since it’s required for graph to be useful.
All the group creation happens directly in exchange which is why exchange org admin, app access, or custom rbac roles are required.
Tim
==============================
Timothy J. McMichael
Senior Support Escalation Engineer
<EMAIL_ADDRESS>(980)-776-7465
Hours:  Sunday – Wednesday 08:00 – 16:00 eastern time zone.
Manager:  Tom Roughley<EMAIL_ADDRESS>Premier Support -<PHONE_NUMBER>
Broad Commercial Support -<PHONE_NUMBER>
==============================

From: Michael B. @.>
Sent: Thursday, July 20, 2023 4:52 PM
To: timmcmic/DLConversionV2 @.>
Cc: Tim McMichael @.>; Comment @.>
Subject: Re: [timmcmic/DLConversionV2] More granular permission requirements (Issue #145)
Yeah, I read everything I could find on it. Part 34 states: The minimum rights required for the DLConversionV2 module are Group.Read.All and User.Read.All.
But that's all it says on Graph permissions. Those two permissions don't allow for updating users and/or groups... so there must be others.
—
Reply to this email directly, view it on GitHubhttps://github.com/timmcmic/DLConversionV2/issues/145#issuecomment-1644589787, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKGTN6KBPYMVEVZUEMGRQYTXRGLANANCNFSM6AAAAAA2R2X47M.
You are receiving this because you commented.Message ID: @.***>

Great. Thanks for the clarification. I appreciate it!


How to use React Hooks?

React Hooks are becoming more prevalent and supported by React >16.8.0 onward.
After much experimentation, I have mot found a way to work with hooks using react-dart.
In the example below useHistory() is a hook in the latest version of ReactRouter.
import { useHistory } from "react-router-dom";

function HomeButton() {
  const history = useHistory();

  function handleClick() {
    history.push("/home");
  }

  return (
    <button type="button" onClick={handleClick}>
      Go home
    </button>
  );
}

How would it be possible to implement the code above using react-dart?

@barriehadfield hooks support is coming in version 5.4.0 which we plan to release in the next couple of week or so!

Fantastic news! Thank you. I will look out for that.
I have to congratulate you on a truly excellent library which has been a delight to discover and learn.

@barriehadfield thanks... if you think this is great... you'll love our over_react library even more!  It builds atop this one to make the authoring experience much nicer...

Hi @aaronlademann-wf do you have an idea when your 5.4.0 release is likely? Finding React hooks all over the place these days!

Hello @aaronlademann-wf, where the Hooks API? How i can use it? I try to use Material-UI from dart-react, and i had a errors with use func makeStyles(). How i can use it?

@Atom735 the React hooks exposed by this library can be found here: https://github.com/cleandart/react-dart/blob/master/lib/hooks.dart
Trying to make use of makeStyles within the Mui library is a different animal altogether. That would require a JS interop layer to handle the css-in-js engine that the Mui JS components make use of.
The hooks in this library allow you to write React function components in Dart. They do not make it so that you can make use of hooks written in JS components.


change to not include openssl in libpulsar.a

Fix #6439
We shouldn't static link libssl in libpulsar.a, as this is a security red flag. we should just use whatever the libssl the system provides. Because if there is a security problem in libssl, all the machines can just update their own libssl library without rebuilding libpulsar.a.

@jiazhai Can you make sure the documentation is updated?

@merlimat can you please take a look.
I think it should be configurable but we should have the option to include libssl in the static binary if the user would like.

@jiazhai @sijie This will most likely break the python wheel files for mac, by default osx does not have ssl installed.

@jiazhai @aahmed-se how about introducing a new static library that doesn't link libssl?

@sijie Ok. I will try to add a new static library

rebased with latest master

@aahmed-se @sijie  updated to create separate additional libs for requirements, not changed the old behavior.


Fix incorrect APB & AHB clock states

TC4 APB clock should be disabled by default
I2S AHB clock should be disabled by default

@bradleyharden and everyone that is interested: I2S related change is not yet there because I'm not 100% sure how to do it, shall we introduce AhbTokens struct for just a single token? Seems like an overkill, OTOH, it'll be nicely symmetrical to other abstractions.

Ok, my bad. Turns out this is just typo in one part of the datasheet to falsly says that I2S is part of the AHB bus. Code was correct, so only TC4 seems wrong. This PR is IMHO ready for merging, unless @bradleyharden or whoever believes that datasheet lies with regard to TC4 as well.


Move board.html content to about page

resolve #71
To do later #74

board.html changed to homepage.html.
projboard file changed to landing.
Added about_page view.
Added about to urls.
homepage.html file is empty.
homepage.html content moved to about/about.html file.
In base.html, About href updated to /about.

@Yarboa @Shalevro2 Done

LGTM
@rawadabu Please merge conflicts

@Yarboa Done