Cannot download human dataset

Hello,
Thank you very much for developing this software. Seems quite interesting and I am looking forward to try it on my data.
I have been following the full-example.ipynb document but I have encountered an error that blocks my progress.
When running sn.download.db() I get the following error:
In [113]: sn.download_db()
Do you want to install datasets for (human/mouse/both)?
human
human.zip: 0.00B [00:03, ?B/s]
HTTPError                                 Traceback (most recent call last)
Cell In[113], line 1
----> 1 sn.download_db()
File ~/anaconda3/envs/scanet/lib/python3.9/site-packages/scanet/download_db.py:41, in download_db()
39         filename_ = os.path.join(MAIN_PATH, "databases",os.path.basename(dataset_human))
40         with DownloadProgressBar(unit='B', unit_scale=True, miniters=1, desc=dataset_human.split('/')[-1]) as t:
---> 41             request.urlretrieve(dataset_human, filename=filename_,
42                                 reporthook=t.update_to)
45 if answer == "mouse" or answer == "both":
46     if db_exists("mouse"):
File ~/anaconda3/envs/scanet/lib/python3.9/urllib/request.py:239, in urlretrieve(url, filename, reporthook, data)
222 """
223 Retrieve a URL into a temporary location on disk.
224
(...)
235 data file as well as the resulting HTTPMessage object.
236 """
237 url_type, path = _splittype(url)
--> 239 with contextlib.closing(urlopen(url, data)) as fp:
240     headers = fp.info()
242     # Just return the local path and the "headers" for file://
243     # URLs. No sense in performing a copy unless requested.
File ~/anaconda3/envs/scanet/lib/python3.9/urllib/request.py:214, in urlopen(url, data, timeout, cafile, capath, cadefault, context)
212 else:
213     opener = _opener
--> 214 return opener.open(url, data, timeout)
File ~/anaconda3/envs/scanet/lib/python3.9/urllib/request.py:523, in OpenerDirector.open(self, fullurl, data, timeout)
521 for processor in self.process_response.get(protocol, []):
522     meth = getattr(processor, meth_name)
--> 523     response = meth(req, response)
525 return response
File ~/anaconda3/envs/scanet/lib/python3.9/urllib/request.py:632, in HTTPErrorProcessor.http_response(self, request, response)
629 # According to RFC 2616, "2xx" code indicates that the client's
630 # request was successfully received, understood, and accepted.
631 if not (200 <= code < 300):
--> 632     response = self.parent.error(
633         'http', request, response, code, msg, hdrs)
635 return response
File ~/anaconda3/envs/scanet/lib/python3.9/urllib/request.py:561, in OpenerDirector.error(self, proto, *args)
559 if http_err:
560     args = (dict, 'default', 'http_error_default') + orig_args
--> 561     return self._call_chain(*args)
File ~/anaconda3/envs/scanet/lib/python3.9/urllib/request.py:494, in OpenerDirector._call_chain(self, chain, kind, meth_name, *args)
492 for handler in handlers:
493     func = getattr(handler, meth_name)
--> 494     result = func(*args)
495     if result is not None:
496         return result
File ~/anaconda3/envs/scanet/lib/python3.9/urllib/request.py:641, in HTTPDefaultErrorHandler.http_error_default(self, req, fp, code, msg, hdrs)
640 def http_error_default(self, req, fp, code, msg, hdrs):
--> 641     raise HTTPError(req.full_url, code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
When looking into download_db.py I see that there are two links for the human and mouse datasets:
dataset_human = "https://wolken.zbh.uni-hamburg.de/index.php/s/DZ3XT76Z7xYAT64/download/human.zip"
dataset_mouse = "https://wolken.zbh.uni-hamburg.de/index.php/s/6syqpRTgDLaQs4t/download/mouse.zip"
I suspect that the problem is here, when trying to download the data from this link. I think there is some kind of access problem as this is what I see when trying to open the link in a normal browser:

Could you please provide some help to solve this? Or maybe an alternative way of downloading the dataset?
Thank very much
Best
Guillermo

Hello Guillermo,
Thank you for your kind words and your interest in the software. I apologize for the inconvenience you're facing with the dataset download. I appreciate your patience.
I've identified the issue and am working on resolving it. In the meantime, here are the new links to download the human and mouse datasets:
Human Dataset: https://cloud.uni-hamburg.de/s/YCJkWqebaP5poLH
Mouse Dataset: https://cloud.uni-hamburg.de/s/8ndzG5fm77e6dPG
I will also include these updated links in the upcoming version. If you encounter any further issues or have additional questions, please don't hesitate to reach out.


xrdp not working on Ubuntu 22.04 LTS

xrdp version
0.9.17
Detailed xrdp version, build options
xrdp 0.9.17
  A Remote Desktop Protocol Server.
  Copyright (C) 2004-2020 Jay Sorg, Neutrino Labs, and all contributors.
  See https://github.com/neutrinolabs/xrdp for more information.

  Configure options:
      --enable-ipv6
      --enable-jpeg
      --enable-fuse
      --enable-rfxcodec
      --enable-opus
      --enable-painter
      --enable-vsock
      --build=x86_64-linux-gnu
      --prefix=/usr
      --includedir=${prefix}/include
      --mandir=${prefix}/share/man
      --infodir=${prefix}/share/info
      --sysconfdir=/etc
      --localstatedir=/var
      --disable-silent-rules
      --libdir=${prefix}/lib/x86_64-linux-gnu
      --libexecdir=${prefix}/lib/x86_64-linux-gnu
      --disable-maintainer-mode
      --disable-dependency-tracking
      --with-socketdir=/run/xrdp/sockdir
      build_alias=x86_64-linux-gnu
      CFLAGS=-g -O2 -ffile-prefix-map=/build/xrdp-asBei3/xrdp-0.9.17=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security
      LDFLAGS=-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,-z,now -Wl,--as-needed
      CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2 -Wno-error=deprecated-declarations
      PKG_CONFIG_PATH=/build/xrdp-asBei3/xrdp-0.9.17/pkgconfig

  Compiled with OpenSSL 3.0.2 15 Mar 2022

Operating system & version
Ubuntu 22.04
Installation method
dnf / apt / zypper / pkg / etc
Which backend do you use?
Xvnc TigerVNC 1.12.0
What desktop environment do you use?
No response
Environment xrdp running on
physical machine
What's your client?
Microsoft RDP
Area(s) with issue?
No response
Steps to reproduce
sudo systemctl start xrdp
sudo journalctl -b -1 |grep xrdp
sudo ufw status (relevant port already be permitted)
problems:

every time on booting, it takes about 10+ minutes to see the desktop after inputting username and pass and clicking 'logon' button.
can't access XRDP anyway. even check the port is open and process is on.

✔ Expected Behavior
No response
❌ Actual Behavior
No response
Anything else?
problems:

every time on booting, it takes about 10+ minutes to see the desktop after inputting username and pass and clicking 'logon' button.

2
xrdp.log
[20240728-10:09:14] [DEBUG] Closed socket 11 (AF_INET6 :: port 9529)
[20240728-10:19:23] [INFO ] address [<IP_ADDRESS>] port [9529] mode 1
[20240728-10:19:23] [INFO ] listening to port 9529 on <IP_ADDRESS>
[20240728-10:19:23] [INFO ] xrdp_listen_pp done
[20240728-10:19:23] [DEBUG] Closed socket 7 (AF_INET6 :: port 9529)
[20240728-10:19:25] [INFO ] starting xrdp with pid 1547
[20240728-10:19:25] [INFO ] address [<IP_ADDRESS>] port [9529] mode 1
[20240728-10:19:25] [INFO ] listening to port 9529 on <IP_ADDRESS>
[20240728-10:19:25] [INFO ] xrdp_listen_pp done
[20240728-10:20:53] [DEBUG] Closed socket 11 (AF_INET6 :: port 9529)
[20240728-10:24:26] [INFO ] address [<IP_ADDRESS>] port [9529] mode 1
[20240728-10:24:26] [INFO ] listening to port 9529 on <IP_ADDRESS>
[20240728-10:24:26] [INFO ] xrdp_listen_pp done
[20240728-10:24:26] [DEBUG] Closed socket 7 (AF_INET6 :: port 9529)
[20240728-10:24:28] [INFO ] starting xrdp with pid 1567
[20240728-10:24:28] [INFO ] address [<IP_ADDRESS>] port [9529] mode 1
[20240728-10:24:28] [INFO ] listening to port 9529 on <IP_ADDRESS>
[20240728-10:24:28] [INFO ] xrdp_listen_pp done
[20240728-10:25:56] [DEBUG] Closed socket 11 (AF_INET6 :: port 9529)

xrdp-sesman.log
[20240728-13:54:24] [DEBUG] libscp initialized
[20240728-13:54:24] [DEBUG] Testing if xrdp-sesman can listen on <IP_ADDRESS> port 3350.
[20240728-13:54:24] [DEBUG] Closed socket 5 (AF_INET6 :: port 3350)
[20240728-13:54:24] [INFO ] starting xrdp-sesman with pid 153357
[20240728-13:54:24] [DEBUG] sesman_main_loop: address <IP_ADDRESS> port 3350
[20240728-21:10:17] [INFO ] shutting down sesman 1
[20240728-21:10:17] [DEBUG] Closed socket 7 (AF_INET6 :: port 3350)
[20240728-21:11:36] [DEBUG] libscp initialized
[20240728-21:11:36] [DEBUG] Testing if xrdp-sesman can listen on <IP_ADDRESS> port 3350.
[20240728-21:11:36] [DEBUG] Closed socket 5 (AF_INET6 :: port 3350)
[20240728-21:11:36] [INFO ] starting xrdp-sesman with pid 1663
[20240728-21:11:36] [DEBUG] sesman_main_loop: address <IP_ADDRESS> port 3350
[20240804-12:47:40] [INFO ] shutting down sesman 1
[20240804-12:47:40] [DEBUG] Closed socket 7 (AF_INET6 :: port 3350)
[20240804-12:47:40] [DEBUG] libscp initialized
[20240804-12:47:40] [DEBUG] Testing if xrdp-sesman can listen on <IP_ADDRESS> port 3350.
[20240804-12:47:40] [DEBUG] Closed socket 5 (AF_INET6 :: port 3350)
[20240804-12:47:40] [INFO ] starting xrdp-sesman with pid 1199919
[20240804-12:47:40] [DEBUG] sesman_main_loop: address <IP_ADDRESS> port 3350

xrdp/xorg.conf
Section "ServerLayout"
    Identifier "X11 Server"
    Screen "Screen (xrdpdev)"
    InputDevice "xrdpMouse" "CorePointer"
    InputDevice "xrdpKeyboard" "CoreKeyboard"
EndSection

Section "ServerFlags"
    # This line prevents "ServerLayout" sections in xorg.conf.d files
    # overriding the "X11 Server" layout (xrdp #1784)
    Option "DefaultServerLayout" "X11 Server"
    Option "DontVTSwitch" "on"
    Option "AutoAddDevices" "off"
EndSection

Section "Module"
    Load "dbe"
    Load "ddc"
    Load "extmod"
    Load "glx"
    Load "int10"
    Load "record"
    Load "vbe"
    Load "glamoregl"
    Load "xorgxrdp"
    Load "fb"
EndSection

Section "InputDevice"
    Identifier "xrdpKeyboard"
    Driver "xrdpkeyb"
EndSection

Section "InputDevice"
    Identifier "xrdpMouse"
    Driver "xrdpmouse"
EndSection

Section "Monitor"
    Identifier "Monitor"
    Option "DPMS"
    HorizSync 30-80
    VertRefresh 60-75
    ModeLine "1920x1080"<PHONE_NUMBER> 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync
    ModeLine "1280x720" 74.25 1280 1720 1760 1980 720 725 730 750 +HSync +VSync
    Modeline "1368x768" 72.25 1368 1416 1448 1528 768 771 781 790 +hsync -vsync
    Modeline "1600x900" 119.00 1600 1696 1864 2128 900 901 904 932 -hsync +vsync
EndSection

Section "Device"
    Identifier "Video Card (xrdpdev)"
    Driver "xrdpdev"
    Option "DRMDevice" "/dev/dri/renderD128"
    Option "DRI3" "1"
EndSection

Section "Screen"
    Identifier "Screen (xrdpdev)"
    Device "Video Card (xrdpdev)"
    Monitor "Monitor"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
        Modes "640x480" "800x600" "1024x768" "1280x720" "1280x1024" "1600x900" "1920x1080"
    EndSubSection
EndSection

@Suitear - this isn't an xrdp problem.  You're not getting as far as connecting to xrdp.
Here are some pointers. This is what I'd do:-

The 10+ minutes could be an indication of failing hardware. Before you do anything else, make sure all your data is backed up.
Then I suggest you eliminate hardware causes.
When that's done, you can look into possible software causes by using systemd-analyze with various switches.

Closing this, as it's not our area. You can almost certainly get better advice elsewhere.


Update Composer dependencies (2023-11-25-00-08)

Visual regression test passed!
View the visual regression test report


Use trusted-ca-bundle and kube-root-ca when cloning the git repo locally

Revert "Stop using our own go-git implementaiton to clone things"
Fix compilation error after revert
Add log and fix case
Add support for custom CAs when cloning in the VP operator
Use a better local temp dir for cloning
Use the proper vptmpfolder for git cloning
Fix tests after the git clone path changes
Pin setup-envtest to release-0.16

/lgtm


Created Authorizer for Bootstrap server

This implements authorizer interface for Bootstrap server in similar way to how it is done in Leshan Server.

@Warmek, it seems there is an issue with your eca.
Please do not create a new PR, we will try to resolve this using this PR.
First I will check your eca by myself.

I check it and it seems you didn't sign any ECA with email adress you used to create your commit.
Look at this : https://github.com/eclipse/leshan/wiki/How-to-contribute#legal-stuff- for more details.

@sbernard31 I've signed the agreement you've sent me. Sorry it took so long

Sorry it took so long

No problem :wink:
I check your ECA and it seems valid now. :heavy_check_mark:.
I try to relaunch validating tools (eclipsefdn/eca) and still get a :x:...
Possibly a bug in this validating tools ? (managed by eclipse foundation)
Just by curiosity, do you add/link your github account to your eclipse account ?
At https://accounts.eclipse.org/  in MyProfile/ Edit Profile/ Personal Information/Social Media Links/GitHub Username ?

Yes, my GitHub username in eclipse profile is correct

Yes, my GitHub username in eclipse profile is correct

Ok I rerun the valdation tools and this time we get  a :heavy_check_mark:
Let's see now if your PR pass "Check Pull Request" validation :slightly_smiling_face:

I think it's OK now.  :+1:
I will just rebase this on master and squash all commit in one and probably edit commit name to add a reference to GH-1359.

Integrated in master (commit 05dbddb80a50f7b3e31d4a844c43b9de09885088)
@Warmek thx for contribution :pray: !


FindPackage SFML fails

Describe the bug
A clear and concise description of what the bug is.
After I've install SFML
find_package(SFML CONFIG REQUIRED)
fails with

find_package(SFML) called with no component

Environment

OS: Ubuntu 19.04
Compiler: revision GCC 8.3

To Reproduce
Steps to reproduce the behavior:

./vcpkg install sfml
See error
Repro code when

Expected behavior
A clear and concise description of what you expected to happen.
Failure logs
-(please attached failure logs)
Additional context
Add any other context about the problem here.

According to this document, I think we need to add components to find_package.
We should add a usage.

Hi @giellamoswhard, thanks for reporting this issue.
I've added usage with sfml. Please update vcpkg and follow the usage.
Thanks.

I know this is closed, but I ran into the same problem today (2020-11-28) after git pull-ing, vcpkg\bootstrap.bat\-ing, and vcpkg upgrade-ing. Usually, to find usage information, I run vcpkg install [port] again and read its output, which did not return the new usage information.
If there is some way to access package usage information from the command line—besides navigating to VCPKG_ROOT and Get-Content/cat-ing the usage file—this is not indicated anywhere in the CLI usage information output (i.e. the output of the commands vcpkg [nothing/anything that doesn't form an expected command line invoke], and vcpkg help [topic]). Is manual exploration of VCPKG_ROOT the intended method of learning about package metadata? It's a bit onerous.

@atimholt Please open a new issue to report that, thanks!


workload shows 0 pod count as soon as it gets created until a manual refresh.

**Rancher versions: 2.0 build from master
Steps to reproduce the problem:
Create a workload.
After it is created successfully , pod count stays at 0 until manually refreshed.

@alena1108 is there an event that's not being sent?

@deniseschannon probably. It might be related to the fact that workload and pod are 2 separate resources, and pod updates don't result in workload update.
@zionwu the fix would be on the API side. Here is the quick walkthrough over the flow:

setup.go is where stores for all api objects are defined:

https://github.com/rancher/rancher/blob/master/pkg/api/server/userstored/setup.go

Here is the pod store: https://github.com/rancher/rancher/blob/master/pkg/api/store/pod/store.go

Most likely you'd need to create a Custom store for pod (there can be multiple Store levels), and on every pod update, you'd trigger corresponding workload update.
Here is one more file where workload/pod relationship are presented: https://github.com/rancher/rancher/blob/master/pkg/api/customization/workload/owner.go

@alena1108 , thank you for the guidance. I will start working on it today.

Fixed.


Waypoint 1: Bootstrap Fluid Containers button not working

Challenge http://www.freecodecamp.com/challenges/waypoint-use-responsive-design-with-bootstrap-fluid-containers has an issue. Please describe how to reproduce it, and include links to screenshots if possible.
The "go to next challenge" button animated when I added the div, but it won't send me to the next page.

Reference to issue #2306
This is a valid example that will complete the Waypoint:

Yes, I know. It was marked as correct, animated and green - just wouldn't do anything when I hit the button.
Sent from my phone.

On Aug 20, 2015, at 7:56 AM, Christian Petersen<EMAIL_ADDRESS>wrote:
Reference to issue #2306
This is a valid example that will complete the Waypoint:

—
Reply to this email directly or view it on GitHub.

Dear camper, your issue is a duplicate:
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/2103
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/1983
Please see Help I've Found a Bug.

Make sure you have nested all HTML elements in .container-fluid. this is not compleated

Your new image should be below your old one and have the class img-responsive.

CatPhotoApp
Click here for cat photos.

Things cats love:

cat nip
laser pointers
lasagna

Top 3 things cats hate:

flea treatment
thunder
other cats

 Indoor
 Outdoor
 Loving
 Lazy
 Crazy

Submit

@SasukeUchiha619
Please do not post your solution on here. You could help people at FreeCodeCamp Chat Room or Forum. GitHub Issues are for reporting bugs on the website only.
Happy Coding!


Create release changelogs

This issue is the entry point regarding the release changelog we have to prepare before the first RC (before 2022-06-13)
I assign myself since I'm responsible for creating it, but I also ping @meilisearch/docs-team here since they review the changelog.
For this release (v0.28.0) I will not use hackMD, but Notion instead (let's give a try!)

to avoid using multiple tools. Core team already uses GitHub and Notion.
to share the link here, letting only internal meili people access it. I don't master Notion, but I think we can even share a link to let the external people read, and the meili people comment/edit.

I will share the link here once it's created.

Checked with @meilisearch/docs-team, I will do it on GitHub (probably on the core-team repo)

Meilisearch v0.28.0 is now out, I can close this!


Scroll not working

I can move the mouse, click, and right-click, but I can't seem to get it to scroll.

just put 2 fingers on screen and pull up and down. Please comment if it works for you.

No, that doesn't work. It only moves the mouse up and down.


BUG 2242374: build: update go module deps

Update go mod deps. The most interesting update is to libopenstorage/secrets which no longer uses Vault code licensed under BUSL-1.1.

Description of your changes:
Which issue is resolved by this Pull Request:
Resolves #
Checklist:

[ ] Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide).
[ ] Skip Tests for Docs: If this is only a documentation change, add the label skip-ci on the PR.
[ ] Reviewed the developer guide on Submitting a Pull Request
[ ] Pending release notes updated with breaking and/or notable changes for the next minor release.
[ ] Documentation has been updated, if necessary.
[ ] Unit tests have been added, if necessary.
[ ] Integration tests have been added, if necessary.

/approve
/lgtm


raftstore-v2: make coprocessor work

What is changed and how it works?
Issue Number: Ref #12842
What's Changed:
Coprocessor is necessary for a working daemon. This PR adjusts
coprocessor to make it work with raftstore v2. And split check is
also added for auto splitting.

Check List
Tests

Unit test
Integration test

Release note
None

Turns out #13901 was just merged to master (I missed that PR :( ). This PR can reuse most of the observers.

/merge


Vietnam A350-900

You might want to double check the color of the fuselage and the text on the fuselage

Added to database


Experimental grid layout breaks dragging to open console

Version: 1.32.0-insider (user setup)
Commit: 45c7f29565821668f4d010b25e3289953bd9ac71
Date: 2019-02-07T10:25:31.179Z
Electron: 3.1.3
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.15063
Steps to Reproduce:

Enable the experimental grid layout (workbench.useExperimentalGridLayout).
Normally, you can drag up the console by hovering over the top edge of the bottom bar and dragging up when the vertical resize arrows appear. With the experimental layout enabled, the arrows no longer appear.

@iansan5653 do you mean that when it is hidden, you cannot unhide it by dragging from the status bar?

closing as duplicate of https://github.com/Microsoft/vscode/issues/67209. re-open if i'm mistaken


Windows sensu purge issue

When trying to put a json file in the conf.d directory, sensu removes the file and then puppet puts it back, on every puppet run (plus the sensu service restarting). The same does not happen in linux. The workaround for this is to disable purging for conf for windows, but not an ideal workaround. I have tried with both File resource and using the sensu::write_json, the same happens for both, but run fine on a Linux client, example below:
Info: Caching catalog for 89asuydasd1
Info: Applying configuration version '1517237731'
Info: Computing checksum on file C:/opt/sensu/conf.d/notification.json
Info: FileBucket got a duplicate file {md5}fe1ead95b9e306de4b898f21f22261e9
Info: /Stage[main]/Sensu::Package/File[C:/opt/sensu/conf.d/notification.json]: Filebucketed C:/opt/sensu/conf.d/notification.json to puppet with sum fe1ead95b9e306de4b898f21f22261e9
Notice: /Stage[main]/Sensu::Package/File[C:/opt/sensu/conf.d/notification.json]/ensure: removed
Info: Class[Sensu::Package]: Scheduling refresh of Service[sensu-client]
Notice: /Stage[main]/Sensu::Client/Service[sensu-client]: Triggered 'refresh' from 1 events
Notice: Applied catalog in 13.72 seconds
Platform and version information

Your OS: Windows 2012 R2
Your Ruby version: ruby 2.4.1p111
Your version of Puppet: 1.9.3 (agent)
Your version of Sensu: 1.2.0-1
Your version of this module: v2.50.0

@danb223 Could you please provide Puppet code for resources so I can try and reproduce?

An example below:
file:
'/etc/sensu/conf.d/notification.json':
content: |
{
"pagerduty": { "api_key": "%{hiera('sensu_apikey_operations')}" },
"windows": { "api_key": "%{hiera('sensu_apikey_windows')}" }
}
rt_notify:
service: 'sensu-client'
I also tried to do the same with sensu::write_json instead of using file, but the same happens, the file get changed on every puppet run and therefore sensu reloads every time. When sensu reloads this also causes an issue in the windows plugin, but providing it isn't reloading all the time then it isn't too much of an issue (https://github.com/sensu-plugins/sensu-plugins-windows/issues/33). This causes no problem with a Linux client and the workaround we have in Windows is to tell sensu purge config to false, but is not ideal.

Abov

This is just in a Hiera format. If you just make a file in puppet or use the sensu::write_json along with any content, you should be able to recreate this with Windows.

@danb223 What parameters are being passed to sensu class?  I modified tests/sensu-client-windows.pp to try and reproduce and was unable.  The code I used is upgraded to 1.2.0-1 and with empty notification.json
class { '::sensu':
  version           => '1.2.0-1',
  rabbitmq_password => 'correct-horse-battery-staple',
  rabbitmq_host     => '<IP_ADDRESS>',
  rabbitmq_vhost    => '/sensu',
  subscriptions     => 'all',
  client_address    => $facts['networking']['ip'],
  purge             => true,
}

# Test for #820
::sensu::subscription { 'roundrobin:foo':
  ensure => present,
}

file { 'C:/opt/sensu/conf.d/notification.json':
  ensure => 'file',
  content => '{}',
  notify  => Service['sensu-client'],
}

Have you tried with content, does the actual file get created on the Windows client? here is the extract from our Windows in Hiera
file:
  'c:\\opt\\sensu\\conf.d\\notification.json':
    content: |
              {
                "windows": { "api_key": "%{hiera('sensu_apikey_windows')}" }
              }
    rt_notify:
      service: 'sensu-client'

We are using the sensu::check: along with the multiple checks from sensu-plugin-windows
sensu::client_name: "%{::environment}-%{::role}-%{::stack}-%{::hostname}-%{::ipaddress}"
sensu::subscriptions: ['windows', 'system']
sensu::version: '1.3.1-2'
sensu::client_keepalive:
handlers: ['windows', 'slack']
sensu::purge:
config: false
sensu::server: false
sensu::api_host: '<IP_ADDRESS>'
sensu::api: false
sensu::api_user: ''
sensu::api_password: ''
sensu::subscriptions: 'system'
sensu::client_name: "%{::environment}-%{::role}-%{::stack}-%{::ipaddress}"
sensu::rabbitmq_host: "<IP_ADDRESS>"
sensu::rabbitmq_vhost: '/'
sensu::rabbitmq_password: 'guest'
sensu::rabbitmq_user: 'guest'
sensu::redis_host: '<IP_ADDRESS>'
sensu::log_level: 'warn'
sensu_apikey_operations: ''
slack_sensu_reporting_kalive: 'slack'

Added sensu-plugins-windows and gave notifications.json content, which does exist, and still not getting removed.  I manually restarted the sensu-client service to see if that changed anything and still no issues.
In your original output from Puppet, I don't see Puppet putting the file back.  I only see Puppet removing the file.  If I comment out the file resource for notifications.json I get output similar to what was originally provided.  If I run Puppet again the file is not removed again.
C:\Users\vagrant>puppet apply -v C:/vagrant/tests/sensu-client-windows.pp
Info: Loading facts
Info: Loading facts
Info: Loading facts
Notice: Scope(Class[Sensu::Package]): Managing a local windows user is not imple
mented on windows
Notice: Compiled catalog for win2012r2-client in environment production in 2.17
seconds
Info: Applying configuration version '1524090454'
Info: Computing checksum on file C:/opt/sensu/conf.d/notification.json
Info: /Stage[main]/Sensu::Package/File[C:/opt/sensu/conf.d/notification.json]: F
ilebucketed C:/opt/sensu/conf.d/notification.json to puppet with sum c1465101dfb
a021d9738aae94d833789
Notice: /Stage[main]/Sensu::Package/File[C:/opt/sensu/conf.d/notification.json]/
ensure: removed
Info: Class[Sensu::Package]: Scheduling refresh of Service[sensu-client]
Notice: /Stage[main]/Sensu::Client/Service[sensu-client]: Triggered 'refresh' fr
om 1 events
Notice: Applied catalog in 14.81 seconds

C:\Users\vagrant>
C:\Users\vagrant>puppet apply -v C:/vagrant/tests/sensu-client-windows.pp
Info: Loading facts
Info: Loading facts
Info: Loading facts
Notice: Scope(Class[Sensu::Package]): Managing a local windows user is not imple
mented on windows
Notice: Compiled catalog for win2012r2-client in environment production in 1.91
seconds
Info: Applying configuration version '1524090514'
Notice: Applied catalog in 8.02 seconds

C:\Users\vagrant>

Test case below, run first withfile resource not commented out then commented out to produce output above.
class { '::sensu':
  version           => '1.3.1-2',
  rabbitmq_password => 'correct-horse-battery-staple',
  rabbitmq_host     => '<IP_ADDRESS>',
  rabbitmq_vhost    => '/sensu',
  subscriptions     => 'all',
  client_address    => $facts['networking']['ip'],
  purge             => true,
}

# Test for #820
::sensu::subscription { 'roundrobin:foo':
  ensure => present,
}

#file { 'C:/opt/sensu/conf.d/notification.json':
#  ensure => 'file',
#  content => '{"windows" : {"api_key": "test"}}',
#  notify  => Service['sensu-client'],
#}

::sensu::plugin { 'sensu-plugins-windows':
  type => 'package',
}

My initial output looks like it was wrong, apologises. However if I remove the sensu::purge, this is what happens everytime puppet runs
Info: Caching catalog for nfirlajxzp98mc6ukq70vdt52boshwe4
Info: Applying configuration version '1524216598'
Info: Computing checksum on file C:/opt/sensu/conf.d/notification.json
Info: FileBucket got a duplicate file {md5}fe1ead95b9e306de4b898f21f22261e9
Info: /Stage[main]/Sensu::Package/File[C:/opt/sensu/conf.d/notification.json]: F
ilebucketed C:/opt/sensu/conf.d/notification.json to puppet with sum fe1ead95b9e
306de4b898f21f22261e9
Notice: /Stage[main]/Sensu::Package/File[C:/opt/sensu/conf.d/notification.json]/
ensure: removed
Info: Class[Sensu::Package]: Scheduling refresh of Service[sensu-client]
Notice: /Stage[main]/Resource_tree/Resource_tree::Resource[file-c:\opt\sensu\
conf.d\notification.json]/File[c:\opt\sensu\conf.d\notification.json]/ensur
e: defined content as '{md5}fe1ead95b9e306de4b898f21f22261e9'
Info: /Stage[main]/Resource_tree/Resource_tree::Resource[file-c:\opt\sensu\co
nf.d\notification.json]/File[c:\opt\sensu\conf.d\notification.json]: Schedu
ling refresh of Service[sensu-client]
Notice: /Stage[main]/Sensu::Client/Service[sensu-client]: Triggered 'refresh' fr
om 2 events
Notice: Applied catalog in 24.88 seconds

Looks like the resource_tree module is adding the file to catalog.  What version of the resource_tree module are you using?  The file key in your hiera example doesn't appear like something provided by the resource_tree module, was part of the hiera missing?  May be worth trying to reproduce the issue without using resource_tree and see if that is where the problem lies.

Is the file defined using a key above file or do you have some logic in a manifest somewhere that picks up file key?  The resource_tree module looks to define things using resource_tree::collections so I'm curious how your resource is getting from Hiera to the catalog.  I need to know exactly how resource_tree::resource is getting defined so I can add equivalent code to a manifest for a reproduction test.

@treydock could you have another look at this please

I managed to reproduce:
Notice: Compiled catalog for win2012r2-client in environment production in 4.06
seconds
Notice: /Stage[main]/Sensu::Package/File[C:/opt/sensu/conf.d/notification.json]/
ensure: removed
Notice: /Stage[main]/Resource_tree/Resource_tree::Resource[file-c:\opt\sensu\con
f.d\notification.json]/File[c:\opt\sensu\conf.d\notification.json]/ensure: defin
ed content as '{md5}fdc8c494c67fbcc5c632a17f6d86c18a'
Notice: /Stage[main]/Sensu::Client/Service[sensu-client]: Triggered 'refresh' fr
om 2 events
Notice: Applied catalog in 13.42 seconds

This is reproducer used with Vagrant:
class { '::sensu':
  version           => '1.3.1-2',
  rabbitmq_password => 'correct-horse-battery-staple',
  rabbitmq_host     => '<IP_ADDRESS>',
  rabbitmq_vhost    => '/sensu',
  subscriptions     => 'all',
  client_address    => $facts['networking']['ip'],
  purge             => true,
}

class { 'resource_tree':
collections => {
  'windowsbase' => {
    'package' => {
      'sensu-plugins-windows' => { 'ensure' => '2.4.0', 'provider' => 'sensu_gem' },
    },
    'file' => {
      'c:\\opt\\sensu\\conf.d\\notification.json' => { 'content' => '{"windows":{"api_key":"test"}}', 'rt_notify' => { 'service' => 'sensu-client' }},
    }
  }
},
apply => ['windowsbase'],
}

I did manage to make resource_tree work by changing the path used by the file resource to be C:/opt/sensu/conf.d/notification.json.  I also used C:\\opt\\sensu\\conf.d\\notification.json with success.  My guess is using C: is needed and not the lowercase c:.

@danb223 Try using upper case C: with your Hiera paths for files and let me know if that resolves your issue.

@treydock that did the trick. I'm not sure whether this is now a puppet issue, or whether some logic needs to be applied to this sensu module, or whether we just need to make sure we are using an upper case C:

I think this is a Puppet + Windows quirk.  There is this page: https://puppet.com/docs/puppet/5.5/lang_windows_file_paths.html but it doesn't mention C: vs c:.  All the examples of File resources use capital C:.  My guess is that when Puppet matches the resources in catalog for purging it's doing so with case sensitive matching.

Thanks for figuring this out!


python310Packages.notifications-python-client: 6.4.1 -> 7.0.0

Changelog: https://github.com/alphagov/notifications-python-client/blob/7.0.0/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

2 packages built:

python310Packages.notifications-python-client
python311Packages.notifications-python-client


New SpectatorView

New SpectatorView (Preview version included in MixedRealityToolkit-Unity) documentation. I have left the Legacy version below in case Developers need access to it, or decide to use higher quality DSLR cameras instead of iPhones.

:warning: Validation status: warnings

File
Status
Preview URL
Details

mixed-reality-docs/spectator-view.md
:warning:Warning
View
Details

mixed-reality-docs/SpecViewDemo.jpg
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneDemo.jpg
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneHero.jpg
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneMarker.PNG
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneNetworkDiscovery.PNG
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneSwitcher.PNG
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneWorldRoot.PNG
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneWorldRoot2.PNG
:white_check_mark:Succeeded
View

mixed-reality-docs/spectator-view.md

[Warning] Author Daniel Escudero cannot be recognized in GitHub.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/SpecViewDemo.jpg
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneDemo.jpg
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneHero.jpg
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneMarker.PNG
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneNetworkDiscovery.PNG
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneSwitcher.PNG
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneWorldRoot.PNG
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneWorldRoot2.PNG
:white_check_mark:Succeeded
View

mixed-reality-docs/spectator-view.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/SpecViewDemo.jpg
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneDemo.jpg
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneHero.jpg
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneMarker.PNG
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneNetworkDiscovery.PNG
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneSwitcher.PNG
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneWorldRoot.PNG
:white_check_mark:Succeeded
View

mixed-reality-docs/images/SpecViewPhoneWorldRoot2.PNG
:white_check_mark:Succeeded
View

mixed-reality-docs/spectator-view.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@danielescudero I'm going to close this PR so you can resubmit with your upcoming changes.


Remove warning about extraneous "ruby-" prefix in .ruby-version

People are often not able to remove the prefix in their projects because they want to support other coworkers and tools that sadly still require the prefix, like RubyMine.
So to restore sanity for a big portion of our users, the warning is now gone.
Fixes #543, closes #650
/cc @konklone @lucaspiller

:+1:

:shipit:
Thanks for this, glad you all decided to remove it. Found this issue after a quick google and was happy to find the resolution. Cheers!

this is not in master still ... :(

I still get this error on the latest version rbenv 0.4., is this expected? Will there be a new build?

Please use the newest version of rbenv from master if you want this feature before the next release gets tagged.


[fiddle] + dark mode

Neat tool!
The lack of dark mode is a bit of A11y issue for me; too much white screens can aggravate my concussion. I had to install a "Dark Mode" browser exertion; the fiddle actually looks better with it on to me!  (I'd only make the line numbers more transparent/less bright)  Unfortunately this doesn't work in VSCode.

(Side note; I'm not totally motion sensitive, but FPS are a no-no now :/  Some motion is fine when I expect it, but constantly animating something like a slider or pulsing menu highlight is a bit more frustrating now.)
Also, I find there isn't enough contrast &/or line thickness for your current white mode.

thanks @tomByrer - this is a huge help. we've got a whole sweep to allow theme settings throughout our app (dark mode, higher contract, animation reduction/removal, etc) on our roadmap for later this year and we'll happily incorporate your feedback here!


useColorFieldState doesn't trigger onChange if alpha changes

Provide a general summary of the issue here
If I just change the alpha value of hex and set it to ColorFieldState, onChange is not triggered. Basically, useColorFieldState assumes that there is no difference between #FFFFFF00 and #FFFFFFFF.
🤔 Expected Behavior?
If the alpha value changes, they should be treated as different values.
😯 Current Behavior
Alpha value in hex is ignored during comparison
💁 Possible Solution
No response
🔦 Context
No response
🖥 Steps to Reproduce
In the below example, if you click on white after transparent or vice versa, onChange is not triggered.
https://codesandbox.io/s/quirky-dhawan-twtk62?file=/src/App.js:314-323
Version
3.28.0
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
MacOS
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response

I believe the work in https://github.com/adobe/react-spectrum/pull/3302 will cover this, cc @snowystinger.


Change EdgeX's Docker Workflow to be easier to use

Right now, it is not trivial to build Docker containers and run them locally. This process requires editing the docker-compose file and several other discrete files.
What would be great (and what I'd expect as an end user) is the following workflow:
docker-compose up with no cache pulls images from Nexus and runs them.
make docker builds images from whatever code is in the local dev folder
make run_docker runs those images created from the local dev folder, in the exact same way that to run on the metal make build -> make run is used.

Issue was created 4 months ago.  Will leave active for another 45 days -- if no activity during that time, intend to close.

This is addressed by https://github.com/edgexfoundry/developer-scripts/pull/291

@judwhite @lenny-intel may we close this issue since edgexfoundry/developer-scripts#291 has been merged?

Yes, the make run dev command from the source folder  will build and run a compose file that uses the locally build edgex-go service with the master-dev tag


[BUG] isSorted miss some test case

[BUG] isSorted miss some test case
Category: Array
Description
isSorted([2,2,1]) // 0, expect return -1
isSorted([1]) // 1, maybe should claim length of input more than 1
isSorted([]) // undefined

isSorted([1]) is entirely correct. Single element arrays are technically sorted either way.
isSorted([]) is also fine as it is an empty array, so it's sort order is undefined.
isSorted([2,2,1]) is kind of problematic, though, we should look into it.

Is it make sense isSorted([1]) return -1?

isSorted([1]) would be correct in returning either 1 or -1 as it sorted both ways technically speaking.

There is one way to fix the bug, but the code is not elegane
const isSorted = arr => {
  let pre = arr[0]
  let direction = undefined
  for (let i = 1; i < arr.length; i++) {
    if (direction * (pre - arr[i]) > 0) return 0
    if (direction === undefined) {
      if (pre > arr[i]) direction = -1
      if (pre < arr[i]) direction = 1
    }
    pre = arr[i]
  }
  return pre === undefined ? 1 : direction
}


How to implement AppInsights into eShop in one centralized location for all the microservices?

I want to view the Application Map for all the microservices from AppInsights. Is there a way to add AppInsight in one centralized location for all the microservices?

cc @samsp-msft

https://github.com/dotnet/eShop/pull/464

It works. Thanks a lot.


onnx file error

ERROR: Failed to parse the ONNX file.
In node 0 (importModel): INVALID_GRAPH: Assertion failed: tensors.count(input_name)
Traceback (most recent call last):
File "main.py", line 212, in
trt_result = profile_trt(build_engine(onnx_path, using_half), batch_size, 10, 100)
File "main.py", line 118, in profile_trt
assert(engine is not None)
AssertionError

Looks like the exported onnx model is invalid. Do you get any other error information?

ERROR: Failed to parse the ONNX file.
In node 0 (importModel): INVALID_GRAPH: Assertion failed: tensors.count(input_name)
Traceback (most recent call last):
File "main.py", line 212, in
trt_result = profile_trt(build_engine(onnx_path, using_half), batch_size, 10, 100)
File "main.py", line 118, in profile_trt
assert(engine is not None)
AssertionError
check whether you're using right yaml and weights

@TrojanXu No other error information, maybe this is a version error of tensorrt, my tensorrt version is 6.0

@TrojanXu No other error information, maybe this is a version error of tensorrt, my tensorrt version is 6.0

Yes, I think you should upgrade it to 7/7+

Yes, try 7/7+ please


formatting of setting fails if DUSB = 0

My getaway do not formatting his txt file if DUSB = 0

Repaired the bug in version 6.1.0 which is now on the site. The solution was a mix of forward declarations and an error in a source file for the #if DUSB>=1 clause


Custom Icon Button Toggle Icon is Backwards

First, I love this plugin. Before finding it I was using Home Assistant Taskbar Menu for my Stream Deck Home Assistant needs (and still am for a few things). So thank you for making this, it's so useful!
Second, maybe it's just the way I'm configuring it, but it seems the Custom Icon feature is a bit quirky. The feature seems to allow for a "toggle" (on/off state of the custom icon). The "off" state is greyed out and the "on" state is the full color custom icon. However, the greyed out and color seems to be backwards from the state of the entity for which the button is configured. For example, the icon shows greyed out when a light is turned on (it's reading the ON state but showing the OFF status icon). I can't figure out how to reverse this without making my own custom "greyed out" icons and reversing them in the Stream Deck Home Assistant Custom Icon configuration.
Thanks again for such an awesome tool!
Any help is appreciated!

but it seems the Custom Icon feature is a bit quirky
This is exactly how it is. I peronally dislike and never use this feature because i can not do much against it's qurikyness.
While the "normal" buttons do always represent the state of the entity in home-assistant, the custom icon button is a mix of a stream-deck feature my plugin which do not work well togehter. If you choose icons inside the stream-deck application, the button will always toogle between these images if you click the button, regardless of the entity state. I try to work around this, but it often does not work correctly.

I just sucessfully reproduced your issue. I was not aware of the "automatically dimmed icon". It seems to be a "new" Feature that i did not notice until now. And yes, it seems like the "on" state seems to be the default in stream-deck while my plugin works the other way around.
The problem is: If i change the order now, other users who worked around this issue or defined two custom icons will face the problem.
My preferred way of fixing this issue would be removing this feature entirely. I will think about what to do ;)

I personally like this feature. It allows me to both use a custom icon AND see the state of an object (albeit really just the state of the button). Ideally, I'd like to be able to use a custom icon (without having to create one for the inactive/off state) AND have your plugin read the state of the entity and properly report and display the appropriate icon (full color, or greyed out/dimmed). If that means dropping this feature and improving the "generic" side, then I'm fine with that. I'd still like to be able to use a custom icon and also see the state, without creating/assigning multiple icons per button. Maybe your little indicator at the top corner could be updated to be an overlay over a custom icon and provide green/blue/red statuses, something along those lines would suffice, though still not ideal (for me).
As a side note, other plugins aren't afraid to make changes that require the user to update their buttons. Most recently, the ICUE integration update required updating each iCUE button to reassign your profiles and actions, per button. Coincidentally, Corsair owns both iCUE and Elgato and they required every user to update each button without providing any convenience of automatic adjustments. Food for thought...
Thank you!


Fix two issues in storage module.

This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines

[ ] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

Command Guidelines

[ ] Each command and parameter has a meaningful description.
[ ] Each new command has a test.

(see Authoring Command Modules)

View a preview at https://prompt.ws/r/Azure/azure-cli/5168
This is an experimental preview for @microsoft.com users.
(It may take a minute or two for your instance to be ready)
Email feedback to 'azfeedback' with subject 'Prompt Feedback'.


[common] Bump Flink version to 1.16.0

Bump Flink version to 1.16.0

@ruanhang1993 please Run 'mvn spotless:apply' to fix these violations


Update actions.d.ts and sheet.svelte

Fixed Typos
(Also in component.d.ts, app-class.d.ts and view.d.ts)

Thanks!


Behave output is broken when --wip (or other tag) is used

https://youtrack.jetbrains.com/issue/PY-29371
The problem is that callback sequense is the following: scenario (will be skipped), step, (next scenario).
So, "step" is left and used in next "match" call. To fix it, we must purge list of steps on each "scenario" call

I will fix it


Append highlight "End With" for VB syntax.

Please append a highlight syntax. Target file is below:
/extensions/vb/syntaxes/asp-vb-net.tmlanguage.json line 98
...Next|With|Exit Do... -> ...Next|With|End With|Exit Do...

We get our VB syntax from https://github.com/textmate/asp.vb.net.tmbundle
Feel free to make a PR there and if it's approved then we'll pull in the changes!


New-GSOrganizationalUnit not working

Hello, I am experiencing the following issue with New-GSOrganizationalUnit.
PS C:\scripts\automation> New-GSOrganizationalUnit

cmdlet New-GSOrganizationalUnit at command pipeline position 1
Supply values for the following parameters:
Name: test
New-GSOrganizationalUnit : Method invocation failed because [Google.Apis.Admin.Directory.directory_v1.Data.OrgUnit]
does not contain a method named 'new'.
At line:1 char:1
+ New-GSOrganizationalUnit
+ ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-GSOrganizationalUnit

I confirmed that I authorized the scope https://www.googleapis.com/auth/admin.directory.orgunit

I'm on it!
On Thu, Mar 8, 2018 at 6:20 AM Mitchell Cooper<EMAIL_ADDRESS>wrote:

I confirmed that I authorized the scope
https://www.googleapis.com/auth/admin.directory.orgunit
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/scrthq/PSGSuite/issues/23#issuecomment-371499904, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AMIo3fN0jRHE_bmv0yHG9NqU6ODMnj2pks5tcT4UgaJpZM4Siv66
.

--
Thank you for your time, Nate Ferrell (SCRT HQ)

@cooper should be good now on v2.1.7! If you installed PSGSuite from the PS Gallery via Install-Module, run Update-Module to pull the new version and test it out!
Keeping this open until I hear back.

It works! Thank you!

no problem!


About dock：How long does the preparation phase of adding gasteiger charges to peptide take?

Thanks to the authors for their excellent work.

Is it normal to go on for a long time at this step?

do you mean to download the oracle? download oracle does not take too much time.  or do you mean docking a ligand? docking a ligand requires a couple of minutes mostly, the time also relies on the size of the ligand you dock.

do you mean to download the oracle? download oracle does not take too much time. or do you mean docking a ligand? docking a ligand requires a couple of minutes mostly, the time also relies on the size of the ligand you dock.

On the screenshot I provided, I'm just loading the oracal provided in the documentation for dock a ligand. but he's still stuck at this step.
And, if I use my own protein pdb file to initialize the oracle, it still does.


KMSKeyNotAccessibleFault

After running the stack and executing a Lambda test I get the following: "errorMessage": "An error occurred (KMSKeyNotAccessibleFault) when calling the CopyDBSnapshot operation: The source snapshot KMS key does not exist, is not enabled or you do not have permissions to access it"
Is there something I need to add to the IAM role to get this working?

Hi @mickengland
Did you set the KMSKeyParameter parameter when creating the stack? The snapshot that's causing this - is it encrypted? Is it a key that belongs to the same AWS account, or is it shared from another account?
The role defined in the CloudFormation template should give Lambda all the permissions it needs.

Thanks for the quick response. Yes I set the KMSKeyParameter to the one in the Target region as specified in "Required/Optional: KMS Key in target region". The DB is encrypted and the key is in the same account but a different region. What is confusing in the error is it talks about the source snapshot key not being accessible, not the target.

Yes, this is likely caused by something to do with the source key, not target one, but I had to ask about the KMSKeyParameter, since RDS will freak out if you try to make an unencrypted copy of an encrypted snapshot, and the errors that AWS API throws are sometimes... misleading, to say the least :)
I suspect that the problem is either due to the fact that the source key is in a different region (and Lambda may need some extra permissions, maybe) or the IAM policy on that key has heavy restrictions.
If you try to make such copy of that snapshot manually, from the console, does it work ok?
To try that, go into RDS console -> Snapshots -> select the snapshot and choose Actions menu, and then Copy Snapshot. The important options are: Destination Region and Enable Encryption - make sure they match the Lambda settings.

No sorry the database is in the source region and so is the key it is encrypted with. The  Key I put iin stack parameters is the target key which is in a different region. Anyway I think the problem is that the source key is tied down with heavy permissions. I am able to copy it with my own user but I can not assign IAM permissions for the IAM role. Will discuss with colleagues. I have a script that can copy a snapshot to another region as my user in the meantime. Thanks. I will close this.

@mickengland You may need to add the Lambda's role to the KMS key policy as a "user" (to let it use it), if you have a restricted list of users who can use that key.
This is needed, because the copy operation has to change the encryption key (because the keys are region-specific) - so it has to decrypt the snapshot and re-encrypt with the new key (all that happens behind the scenes in AWS). But if the source key is very restricted, it may be preventing the decryption that's requested by the copy operation.
Feel free to reopen if you have more questions.


plugin folder in role

ansible-playbook <IP_ADDRESS> didn't load config_template action plugin for role ceph-common, works after changing folder 'plugins/actions' -> 'action_plugins'

thanks, is this helping?

Closing this, feel free to re-open.


feat: refactor the token cleanup logic

@brockallen @leastprivilege or anyone
Please review this code. :)

I've made some updates to your PR so that's it's more inline with some of the existing code.

I've moved service registration to UseIdentityServerEfTokenCleanup. Before this was being done within DI registration which wasn't ideal. I know @MienDev also recommended this and that you tried it before.
TokenCleanupOptions is now part of AddOperationalStore like the other options classes. Feels a bit more 'ASP.NET Core'.
The TokenCleanup service is now always registered as part of AddOperationalStore. This could be put behind a TokenCleanupEnabled bool, but I don't see this being a problem.
All test Clients now have a ClientName. I don't know why this wasn't already the case. Seems there's also some truncation going on with the ClientSecrets. I'll open an issue for this.

I still don't like having IServiceProvider as a dependency in the TokenCleanup service, but I'm struggling to see an alternative.
Let me know what you think.

@scottbrady91
Thanks your review, and good job about the fine tuning.
yes,

I still don't like having IServiceProvider as a dependency in the TokenCleanup service, but I'm struggling to see an alternative.

@scottbrady91
I make a change to use PersistedGrantDbContext rather than IServiceProvider as a dependency in the TokenCleanup service, but I do not know this correct or not because the PersistedGrantDbContext is scoped lifetime, and this change make the lifetime as long as TokenCleanup singleton service.

One issue with dee1cc7 and 82b98a6 is that you're holding on to a single DbContext for the lifetime of the application. Which isn't good.
I'm struggling to see a solution to this outside of using IServiceProvider, as TokenCleanup needs to be a singleton in order to register with IApplicationLifetime but it needs a new PersistedGrantDbContext every operation.
Let's revert to dae4b8f.

@scottbrady91  so is this PR up to snuff and ready to be merged?

Yeah, all good

Ok, I'll merge -- but some of it I might want to rework -- not sure why the polling is a middleware now, for example.

@brockallen yeah, the polling as a middleware (style) not my initial point.

My Wi-Fi is tool poor right now(In China), so I cannot fix the conflicting files

Ok, I looked at the code and I'm ok with registering like other middleware, but I now see it's not actual middleware.

I merged manually, since there were conflicts from my changes this morning.


How can I achieve this with a Doughnut chart

Hi!
I'm trying to achieve this, can it be done with Charts.js?

Source: https://www.bkmediagroup.com/about-us/our-process
The idea is to have a border  with "the arrow form" indicating direction, as well as text connected by lines to the chart.
This is what I have so far: a Doughnut chart with multiple datasets
https://codepen.io/Snippet/pen/vYYZpQW
Do note I intend to have the multiple dataset which is the only difference towards what I want to achieve and the earlier image.

There are too many custom stuff there.
If you want to achieve it with ChartJS, at least there's a few things to note:

Custom border edges - You need a custom drawer to do the "arrow shape".
See: https://stackoverflow.com/questions/45446153/chartjs-round-borders-on-a-doughnut-chart-with-multiple-datasets/48627653

Connected lines to describe data -

If you want it to show upon mouse hover, you need a custom drawer for tooltip.
If you want it always show, try changing behaviour of tooltip. Other than that, I have no idea how you can achieve that.

Conclusion, there are too many custom requirements here, I think it is very unwise to do it with Chart.js, because u will spend too much time to do a small stuff.
Furthermore, consider how likely are you going to change the data? If its a static flow chart, just use CSS or image, LOL. Chart.js is for data presentation, not powerpoint slides.

Thank you!! It is for a website and ideally it should be interactive, well what I think is most important is to distance the associated paragraph text to each stage, I'm sorry Im a noob with JS... I can leave without the connected lines and the custom borders.


Can't refresh/reset/rollback migrations

I get Nothing to rollback. after executing of php artisan orient:reset meanwhile the database remains untouched and all classes remains the same.
I get Nothing to rollback. after executing of php artisan orient:rollback meanwhile the database remains untouched and all classes remains the same.
I get Nothing to rollback. after executing of php artisan orient:refresh and exception
  [Sgpatil\Orientphp\Exception]
  Error: Unable to create Class

meanwhile the database remains untouched and all classes remains the same.

On a local test all these methods seem to result in the exception being thrown. (I did rename the batch from #6 to number, which did seem to fix the migration table.)
It also seems like the content of the request of the exception reveals a bit more about this issue. The error returned by Orient is "java.lang.IllegalArgumentException: Class '****' already exists" so it seems like a drop of a table is actually resulting in a create.

Hi @DJWassink , yes you are right. The drop method is always calling create class method

The problem has been solved. Try the updated code and inform

php artisan orient:rollback
php artisan orient:reset
They both updates migrations table but they don't delete the schemas that were created during the migration being reseting/rolling back.
php artisan orient:refresh
Retuns:
Rolled back: 2015_10_28_191606_create_countries_table
Nothing to rollback.
  [Sgpatil\Orientphp\Exception]
  Error: Unable to create Class

As the result, migration table is empty but all tables that were created during migrations remain in DB.

BTW which version of OrientDB do you guys use to test this driver?

I am using orientdb community 2.0 M1

Sorry @Dalamar , I just forgot to push changes of orientdb-php . Can you please recheck it using updated code.

Great!
Thanks for quick resolving.
Confirm. Now it works.

I use following versions for Mac OS X:

OrientDB 2.1 Enterprise edition
OrientDB 2.2 alpha (from download page)
OrientDB 2.2 alpha nightly builds

OrientDB 2.2 alpha (from download page) works fine with column name 'batch' in migrations table.
All other versions I use blaming on the 'batch' property and do not create migration records.

Closing the issue as it is fixed. Please let me know if you find any problem.


Tweaks to result in an OSP16 deployment

Changes to the infrared-openstack.sh script to result in the successful deployment of OSP16.0
with Ceph and Tempest added for fun and profit. Parameterizes several options that were static
before to allow for a more flexible script while assuming primarily defaults will be utilized.
Re-adds the internal knowledge because it's been discussed that leaking this doesn't seem to
be a huge issue(?). Can pull it out in a subsequent commit as it'll be killed in a squash.

Tested with the following command on internal lab server:
LIBVIRT_DISKPOOL="/home/libvirt/images" AMQP_HOST="stf-default-interconnect-5671-service-telemetry.apps.stfcloudops1.lab.upshift.rdu2.redhat.com" ./infrared-openstack.sh

Default RHEL8 installation doesn't result in a large root partition, so LIBVIRT_DISKPOOL pointed at /home/libvirt/images/ after a mkdir -p /home/libvirt/images/ results in success.
The output is quite long and not particularly exciting, so I'll ask you trust me that it worked :) (I can show the environment for a day or so before I re-deploy again as I don't believe the enable-legacy-telemetry.yaml is necessary(?)

I see a bunch of approvals and this worked for me, so I'm merging it. I expect this to be a living document based on our ongoing testing so others are encouraged to make additional PR changes.
Frankly I think we should really just move this internal and out of STO repo, but that's a separate discussion.


Doesn't work on the Svelte REPL

Doesn't work on the Svelte REPL. No useful error message either. Just "[missing message]".
Minimal reproduction:
https://svelte.dev/repl/3634b1af7bfe43dd94de9ee5bd3fdae6?version=3.29.4

The router navigates using the History API for both hash and path mode. so it doesn't work in the REPL (iframes). I wrapped the code in a try-catch and it points at the call to history.replaceState, which doesn't work as expected.

I just posted this as a issue because I could get svelte-spa-router to work in the svelte repl. I guess that is because it uses window.location.hash instead of the history apt?
It is useful to be able to make little demos in the svelte repl, but if it requires you to do things that are against the design of svelte-router, then there's nothing to do about that. Feel free to close as wont fix.

svelte-spa-router does change the window.location.hash, but only the hash of the iframe, which isn't reflected on the search bar. I don't have plans to include REPL support for now, will close this.


[BUG] Documentation does not show complete docstring.

Here is an example:
The docstring gets chopped on the right side. Some form of text-wrapping is necessary.

Possible easy fix could be: terminate docstring lines at column 62.


feat: add Group 11 2nd phaze metrics

Salam
In file hay metric faze 2 proje open understand compiler groohe mast.
groohe 11
ba tashakor

I added required file that I forgot to add.
now you can merge it.
thank you

Please resolve conflicts

conflicts has resolved!


Zones Improvements

Zones has the potential to be a pretty powerful feature in ARMI, but has a handful of issues that make it impossible or unpleasant to use for certain cases. Below are a list of concerns/grievances that should drive the overhaul"

[ ] Can we replace Zone with a SpatialLocator?
[ ] Because our "Zones" are so tightly coupled to SASSYS/rxcoeffs, they are probably not useful to people outside TerraPower.
[ ] What is a hotZone?
[ ] The Zone class shouldn't have a addRing() method.
[ ] A Zone behaves like a list (__getitem__() and __setitem__() are conceptually strange). Should probably be a set instead.

[ ] make zones behave like sets

[ ] They are too aware of objects (addAssemblyLocations() couples the Zone to Assembly, which is not necessary. Zones should traffic only in locations)to it. It is unclear who made what, when, how, and why.
[ ] remove core.zones. Zones should be created and owned by the interfaces that use them for whatever use they are build for. So sassys or rx coeffs would own what is currently core.zones. The other will ask the owning interface very nicely for its zones.

Maybe. This is debatable.

[ ] make Core sliceable by Zone objects (e.g. core[zone] -> Set{Assembly})
[ ] decouple the zone creation strategies from case settings. replace the above branch by a collection of static methods that return Zones build with that strategy, with appropriate arguments passed in rather than extracted from cs. This will make it easier for different parts of the code to whip zones up as they see fit, without having to fight wierd zoningStrategy settings.
[ ] Remove zoningStrategy entirely
[ ] They are instance attributes of a Core object. This leads to a couple of problems:

As instance data of an ArmiObject, zones do not survive a round trip through the database.
Code needs to fight over control of the zones, or the collection of zones themselves grows as things add new Zone objects

[ ] There is only one set of settings to control zoning strategies. This drastically reduces the opportunity for reusing zones for different applications. For example:

https://github.com/terrapower/armi/blob/22ebd1a2b6bdd0ebfd14b2e56273f8351db57f82/armi/reactor/zones.py#L401-L412
Sorry if it sounds like I'm being too down on Zones. I actually think they are a great idea; they are just really held back by their current design, and with a little polish could really fly.

Hi @john-science,
I agree with this but internally we need to figure out where these functionalities should live if not on the zones objects in the framework. I've also mentioned this before, but should zones be a set of assembly locations or can they be a mix of any composite?
I'd also like to have a location in the database where zones can live and operator from. Maybe this is a separate table that has a reference to the "core" that the locations belong to, but this would go a long way in helping reuse "zones" across multiple uses if they are available or just allowing some analyst to ditch what is taken from the db and recreate them as needed. Maybe there could be a getZones on the database? Not sure.

Some disparate thoughts from our internal discussions on Zones
Could plugins define their own zone builders? This could clean up that large collections of conditions checking on zoning strategies. This might tie in nicely with your comment on

Zones should be created and owned by the interfaces that use them for whatever use they are build for. So sassys or rx coeffs would own what is currently core.zones.

A couple comments on serializing to/from data file. And that feels like something that would still provide value

Thanks for the input @drewj-usnctech. We are having an internal meeting next week to kick off the zones updates and changing the implementation. We will make sure to update this ticket with requirements that we derive and check that they can also work for you before proceeding. Would you be interested in being a reviewer of any new implementation?

@drewj-usnctech  Can you share with us (broadly) what you guys use Zones for?
We are in the process of redesigning / reorganizing them, for al the reasons shown above. And we don't want to drop your use-case.

@jakehader I would be happy to be involved as much as you'd like. Glad our investigation into Zones coincided with your internal meetings
@john-science sure. We are currently investigating using Zones to define material regions that should be depleted together. In order to reduce the number of depletable regions in our Monte Carlo simulation while still capturing some spatial effects, we've decided to using the zoningStrategy to assign Zones to each assembly (well most of them - #800). The idea would be if you have the same fuel material in multiple rings of your reactor, each fuel material in each ring would be depleted with the same reaction rates, spectra, etc.
The extreme extension of this would be every Assembly being it's own Zone, and somehow axially dividing so that every Block is also its own Zone

@jakehader I would be happy to be involved as much as you'd like. Glad our investigation into Zones coincided with your internal meetings
@john-science sure. We are currently investigating using Zones to define material regions that should be depleted together. In order to reduce the number of depletable regions in our Monte Carlo simulation while still capturing some spatial effects, we've decided to using the zoningStrategy to assign Zones to each assembly (well most of them - #800). The idea would be if you have the same fuel material in multiple rings of your reactor, each fuel material in each ring would be depleted with the same reaction rates, spectra, etc.
The extreme extension of this would be every Assembly being it's own Zone, and somehow axially dividing so that every Block is also its own Zone

@drewj-usnctech, Is it fair to say that in your use case you are describing zones also being applied to blocks as well as assemblies at the same time, such that both composites belong to some Zones object? Im trying to understand if we were to limit zoning on the core to a set of assemblies only if that would break your use case or if that's in alignment? I was throwing the idea around if Zones can just be a set of "any" composites and if it's required that they all be the same type or if we should allow the framework to allow this. Additionally, I'm curious from your perspective if having the zones be applied as a parameter in the database would be helpful. Do you ever have instances of multiple zones existing at a single time? If so, would a parameter that was something like a dictionary with {"zoneName": set(), ...}  would make sense for the framework and parameter system to support

@jakehader

Is it fair to say that in your use case you are describing zones also being applied to blocks as well as assemblies at the same time, such that both composites belong to some Zones object...I was throwing the idea around if Zones can just be a set of "any" composites and if it's required that they all be the same type or if we should allow the framework to allow this

I think this would be a welcome development. In doing this, we could also use zones to do axial depletion zoning. In a more extreme case, you would also maybe include individual Component objects in a zone to let each pin be it's own depletable region, but I think that's something that could be done by whatever interface is handling Block-based depletion.

Do you ever have instances of multiple zones existing at a single time?

I might be missing something here. Only having one zone seems like a case where everything is in the same zone. Maybe you're thinking different, potentially overlapping zones? Like a depletion Zones, a different Zones for reactivity coefficients, etc?

@drewj-usnctech, sorry I meant to say that different zoning for different applications like rx coeffs, XS generation, thermal hydraulics, depletion, etc. not that there would only be one zone containing all the assemblies/blocks. My dictionary example wasn't communicated correctly.

@drewj-usnctech, sorry I meant to say that different zoning for different applications like rx coeffs, XS generation, thermal hydraulics, depletion, etc. not that there would only be one zone containing all the assemblies/blocks. My dictionary example wasn't communicated correctly.

Jake is just hoping we can simplify things a bit to just have one set of Zones in ARMI at a time. And we don't have to assume that you have 20 ARMI plugins during a run, each with their own set of Zones.  Fingers crossed.

@jakehader @john-science thanks for the explanations. Our current plan is just to have one set of zones for depletion and that's it. We'll be using xs types for xs generation rather than relying on zones

@drewj-usnctech  I am working on the Zone redesign right now with @joshuavictorchen , and it looks to me (right now), that we could save a lot of time if we could make Zones only include Assemblies and Blocks.  The reasons being, both of those have a getLocation() method in ARMI.
Do you really need Component-level Zones?  I ask, because you mention it above, but you didn't sounds like you were really excited about that power.  And supporting only Assemblies and Blocks LOOKS like it would significantly reduce the LOE we have on this task.

@john-science I don't think Component-level Zones are necessary at this time.  I imagine there might be a case for them somewhere but I'm struggling to think about it for now. Almost all of the use cases could be covered instead with some Block.getChildren(flags=...) type searching.
I feel good about only including Assembly and Block objects in Zones

Could plugins define their own zone builders?

@joshuavictorchen and I are currently redesigning Zones from the ground up. (Sadly, it seems they need such an overhaul.)
And in our redesign, I am currently working on exactly this: making zoning strategies a lot more flexible by exposing them at the Plugin level.
The current system just seems too inflexible, particularly for people like you, who may-or-may-not even be interested in pin-style reactors.
https://github.com/terrapower/armi/discussions/811

Is this closed with the merge of #943 ?


Upgrade Boot to 1.4.0 in the generated apps

As a developer, I'd like to upgrade the generated apps to the latest 1.4.x version of Boot.

We can not do this until we figure out how to read the whitelist properties.

This is complete now.


PR: Add scripts and files necessary to create a macOS installer

Description of Changes
Added files for creating Spyder.app macOS standalone application.

[x] Wrote at least one-line docstrings (for any new functions)
[x] Added unit test(s) covering the changes (if testable)

[ ] Included a screenshot or animation (if affecting the UI, see Licecap)

Included the necessary resources to build a standalone macOS application.
See spyder-ide/mac-application#3
Issue(s) Resolved

Fixes #13978
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct:
mrclary

Hello @mrclary! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file installers/macOS/dmg_settings.py:

Line 4:80: E501 line too long (100 > 79 characters)
Line 18:10: E201 whitespace after '['
Line 18:22: E202 whitespace before ']'
Line 21:13: E201 whitespace after '{'
Line 21:45: E202 whitespace before '}'

Requires #12236 to be merged.

@ccordoba12, we should be good to incorporate into github actions, though I don't have any experience there...

@ccordoba12, we should be good to incorporate into github actions

Great! Please rebase to get the fix to our tests that was added by @dalthviz for the Windows installer in PR #13269.

though I don't have any experience there...

@dalthviz and I can give you a hand with that. Could you describe the steps necessary to build the dmg?

@mrclary for the Github Action to build the installer maybe checking the workflow definition for the windows installer could useful. You can check it here: https://github.com/spyder-ide/spyder/blob/4.x/.github/workflows/installer-win.yml
Basically the workflow defines a series of the events that trigger the workflow (for example a pull request, a release, etc), then the environment where the workflow will run (OS, env variables, etc) and finally a series of steps (to install python, install dependencies, run a custom script, upload artifacts, etc).
Probably you can use the windows installer workflow to create a similar workflow for macOS but let us know if you have any question and we will check :+1:

@ccordoba12 @dalthviz ,
Okay, here is a first crack at it. Is there a way to test it?

It seems to have trouble installing dependencies...

There seems to be syntax error in one of your scripts:
File "setup.py", line 161
    _py_ver = f'python{py_ver[0]}.{py_ver[1]}'
                                             ^
SyntaxError: invalid syntax

There seems to be syntax error in one of your scripts:
File "setup.py", line 161
    _py_ver = f'python{py_ver[0]}.{py_ver[1]}'
                                             ^
SyntaxError: invalid syntax

I saw that, but it did not make sense because the script runs fine on my local machine. It looks suspiciously like Python 2.7 is being referenced. I think it may be related to the errors in the previous "Install dependencies" step.
ERROR: Could not find a version that satisfies the requirement pyqt5<5.13 (from spyder==4.2.0.dev0) (from versions: none)
ERROR: No matching distribution found for pyqt5<5.13 (from spyder==4.2.0.dev0)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
WARNING: Skipping spyder as it is not installed.

Why can't it resolve pyqt5 requirement? Why is here a Python 2.7 deprecation?

Okay, found the issue. As I suspected, python and pip are referencing 2.7 versions. I'll have to use pip3 and python3 commands.

Success! Sort of...
It seems that the only issue left is that Python 3.8.5 was used for the build but Python 3.7.9 was installed for the Github action. How does that work? Maybe it was just a cache issue with cancelling/restarting in the middle of the job? Hmm...

@ccordoba12, I think this is ready now.

@ccordoba12, nevermind... still needs work

Okay, here's what I've learned.

setting shell: bash -l {0} causes the default installed python to be used (brew Python 3.8.5) instead of the version set by actions/setup-python@v2. Why?
Unfortunately, actions/setup-python@v2 installs a python built without --enable-framework flag and therefore fails to create the application bundle. So, for now, I can only use the default installed Python.
Without -l flag for the shell, hdiutil is unable to detach the DMG image resulting in dmgbuild.core.DMGError: Unable to detach device cleanly. Why?

So for now I will just leave the shell and login specification in the GitHub workflow since Spyder application bundles built on Python 3.8.5 work just fine and I see no issues. However, for future development I will need to look into the following.

How to install a python version with --enable-framework. Perhaps installing pyenv and setting up a virtual environment will work. Though this may increase build time significantly if GitHub doesn't have that stuff in the cache
Determine how the -l bash flag avoids the DMG detach error. This may useful to know if I have to eliminate the login flag in the future. Is there an environment variable responsible for this behavior?
Is Core Image is now using the software OpenGL renderer. This will be slow. benign? Just a result of no GPU resource available? Or is this a harbinger of an underlying issue?

@ccordoba12, This is ready.

never mind.
What the heck is going on that hdiutil cannot detach the disk image?!

@ccordoba12 @dalthviz,
I've observed the following error when selecting "Show environment variables" from the console in both macOS and Windows standalone applications.
  File "/Users/rclary/Applications/Spyder.app/Contents/Resources/lib/python3.8/spyder/plugins/variableexplorer/widgets/collectionseditor.py", line 265, in sort
    self.sizes = sort_against(self.sizes, self.keys,
TypeError: sort_against() got an unexpected keyword argument 'sort_key'
Traceback (most recent call last):
  File "/Users/rclary/Applications/Spyder.app/Contents/Resources/lib/python3.8/spyder/plugins/variableexplorer/widgets/collectionseditor.py", line 265, in sort
    self.sizes = sort_against(self.sizes, self.keys,
TypeError: sort_against() got an unexpected keyword argument 'sort_key'
Traceback (most recent call last):
  File "/Users/rclary/Applications/Spyder.app/Contents/Resources/lib/python3.8/spyder/plugins/variableexplorer/widgets/collectionseditor.py", line 265, in sort
    self.sizes = sort_against(self.sizes, self.keys,
TypeError: sort_against() got an unexpected keyword argument 'sort_key'

This is a result of a mismatch in the required version of spyder-kernels and the current release that it used for both standalone builds. This raises two points.

spyder-kernels will have to be advanced and released immediately prior to Spyder 4.2 (although, I'm sure you are already planning this)
we need to consider how to determine which spyder-kernels (and python-language-server) to use for standalone builds.

For release events, this is not an issue, since I think we will all agree that release versions of spyder, spyder-kernels, and python-language-server will be synchronized.
However, pull-request builds are more complicated: for a given PR, should the release versions of spyder-kernels and python-language-server be used or should they be installed from the subrepos? The latter makes the most sense to me, since any PR that depends on those changes should include an update to the subrepos.

What are your thoughts?

@dalthviz , windows installer is failing and I don't know why. I haven't touched your stuff, I swear! ;-)

@mrclary seems like the artifact failed to be uploaded. I trigger a re-run and seems like now all is green :+1: Thanks for working on this one!

I worked around the dmgbuild.core.DMGError: Unable to detach device cleanly by increasing the number of attempts that build_dmg tries to detach the disk image. I also try to capturing the error and supply a warning instead. So far, a warning has not been issued, so perhaps increasing the number of tries has worked.
Nevertheless, the two warnings persist:

Core Image is now using the software OpenGL renderer. This will be slow.
hdiutil: detach: timeout for DiskArbitration expired

I have not been able to diagnose these, but the uploaded artifacts seem to be okay.

@ccordoba12, I've made quite a few changes to the app creation script, so you may want to review it again.
But everything seems to be working and I think we're good to go.

@mrclary, please rebase this one so the installer can get the fixes in PR #14033.

Hi @mrclary!
I just tried the full installer and found a couple of things that are not working as expected,

The autocompletion engine is not working
Spyder opens in a project I didn't create, and the temp file is outside that project. I'm not sure if we want to start spyder on a "new" project

I have this traceback in the ipython console:

I have this traceback in the ipython console:

This should be solved by adding Pillow to the app.

The Spyder-lite installer is working perfectly 🎉

@steff456, thanks for the feedback.
Yeah, I noticed that Spyder starts up with a bogus project. I just deleted it from the Projects menu; it seems to happen only the first time Spyder starts up and doesn't return. I don't know why that is or how to reproduce it. I suspect that if I reset spyder preferences that wouldn't happen, but I'm not sure.
Can you tell me the following?

Are you using the "Lite" version or the "Full", i.e. from Spyder-Lite.dmg or Spyder.dmg?
Are you using the "Same as Spyder" interpreter or an external one? If external, can you provide a list of installed packages?

@ccordoba12, I'll check on including Pillow with the full version.

The errors I found appeared when using the "full" version dmg, the spyder-lite.dmg is working as a charm 🤩. I reset my Spyder configuration before running the installed spyder, so the changes I've been working on doesn't affect the behavior of the installer. So, everything is running with the default interpreter.

The autocompletion engine is not working

I think this is also failing because Pillow is not part of the installer. That's because the PyLS imports several modules during initialization to speed up completions. But if some of them fail to be imported, the server dies completely.
That error was fixed by @dalthviz in https://github.com/palantir/python-language-server/pull/873. I'll update our subrepo with it.

Spyder opens in a project I didn't create

This is worrisome. I'll try to give you a hand with that problem during the weekend.

@steff456 @ccordoba12, the latest commit should fix the issue with PIL. I did not see any completion issues, though. Screen shot of a local build shows from PIL import Image and command completion of math.. Please check that the artifact from my last commit gives you the same result.
FYI, on this local build, when first launching, I did not get a bogus project. I think it may be related to related to launching a newly downloaded Spyder application for the first time (you know how you get the warning message about an unknown developer). It does not seem to be related to whether Spyder had an open project on the last session.

Thanks to all the core developers for their feedback! I'm glad I could contribute.


Question in light distance calculation.

In filament/src/View.cpp line 879
// always allocate at least 4 entries, because the vectorized loops below rely on that
float* const UTILS_RESTRICT distances = arena.allocate<float>((size + 3u) & 3u, CACHELINE_SIZE);

What does (size + 3u) & 3u mean? When size equals to 1/5/9, the allocation size is 0.
I think it may be (size + 3） & ~3 according to the comment.

Good catch! Yes you are right, it should be ~3u and not 3u.

I just pushed a fix.


Isolate Clusters

Right Click on a node, click "Isolate Cluster" to remove all nodes/edges not currently within the node's cluster.

Resolved by or around c1ef63f108738e365832a9f6edbbe806ad0830c3


Incorrect handling of # within strings

See screenshot:

Seems like the grammar assumes that any # automatically turns the rest of the line into a comment, regardless of the context. But this is not true within a string:
nix-repl> foo = "#foo"

nix-repl> foo
"#foo"

Oops, nevermind, this was actually caused by an error in my code!


UI.Card() returns ReferenceError: Symbol is not defined

When running compiled app in local SDK 4.3 emulator and attempting to create a Card from UI get:
ReferenceError: Symbol is not defined
    at dict (app.js:1862:36)
    at Object.Card (app.js:2399:20)
    at app.js:2628:17
    at console_card_platform_hello (app.js:2644:5)
    at Object.loader (app.js:2647:1)
    at Object.loader.require (loader.js:44:10)
    at require (loader.js:41:48)
    at Pebble.<anonymous> (main.js:41:3)

The issue occurs where Symbol.interator is used (an ES6 feature? definitely from 2013 spec). Looks like pypkjs, Python implementation of PebbleKit JS. which includes PyV8 is likely an older js engine version
Does NOT occur on Android phone, Pebble app appears to have a later JS implementation?

No real workaround (as Transcrypt 3.6.x appear to require this). As CloudPebble.net is no longer available unclear how that worked. Not looked in to self-hosted (or alternatives cloud pebble instances).
Seen with:

Transcrypt 3.5.213 - 2016-08-19 about the time of this project
Transcrypt 3.5.217 released 2016-08-26

@hiway  this is a bit of a big ask, as well as along shot ;-) Do you by any chance recall the version of Transcrypt you used when you last played with this?
If not, is there any chance you have generated app.js file(s) laying around that you could attach to this ticket so I and peek inside and try and figure out the version? Rather than me randomly trying older versions of Transcrypt.
Other option would be to try Skulpt, pyjs, and long shot the (stalled) Batavia.


Bundling release3.0(Not ready for merge)

Before creating a pull request make sure that:

[ ] commit messages are meaningful and follow good commit message guidelines
[ ] README and other documentation has been updated / added (if needed)
[ ] tests have been updated / new tests has been added (if needed)

Please remove this line and everything above and fill the following sections:
JIRA link (if applicable)
Change description
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ X] No

closing for now.. I will raise it later


Bug report: Utils.modInv assumes modulus of 26

Describe the bug
The Utils.modInv function internally uses 26 as the modulus rather than the argument y. The bug is not externally visible because it's used in the Affine Decode operation, which uses an alphabet with 26 letters.
Source code
static modInv(x, y) {
    x %= y;
    for (let i = 1; i < y; i++) {
        if ((x * i) % 26 === 1) {
            return i;
        }
    }
}

Remedy
Replace 26 with y.
Better still: replace the entire function with one that uses the Extended Euclidean Algorithm to compute the modular multiplicative inverse. It will be faster than a brute-force loop for large values of y.

Pull request #1836


Add devcontainer configuration and .gitattributes

Extended PR #1626 to perform better and sort line endings on Windows

Add dev container config file
Add gh-cli, add extensions, node_modules as a volume

Also, hello new maintainer! Good to see activity picking up :)

Seems like a nice improvement to help people contribute, thanks for the PR! 👍


RST-2441 - 25 percent rule 1k 5k

JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/RST-2441
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

Already merged


Support for OPTIONS request!?

During requests from browser (chrome) i've got som CORS related errors, because of OPTIONS requests issued by the browser, so some methods cannot be used (like workspace PATCH)....
Are browsers supported / tested?

I would also like to see this implemented


Revert "Fix Python 3.7 GenericMeta not found issue."

Reverts abatilo/sanic-swagger#7
cc @hairychris
It turns out that if I run the tests in Python 3.7, this doesn't work at all, lol.

Are you sure? I'm using it right now on Python 3.7
What error are you getting?

If you run the tests, some of the tests will fail on some of the other types from the typing module.

These can be patched too most likely, why did the CI not pick up on this?
We either need to change the descriptors (says Python 3.7 support) or get this patched up fast. I'll go run the tests locally and see what I can do.

I'm updating the descriptors right now, and I have created separate issues open (#12 and #15)
I guess I just assumed that the original fork was accurate with its descriptors, but I only ever tested on 3.6.
At the moment, CI only runs 3.6. I'll revert for now, and update the descriptors.


ipv6

It seems that there is some issue on ipv6 enabled systems; this is a stack trace from an user (I was not able to reproduce the error on my systems):
java.net.SocketException: Invalid argument: no further information
at java.base/sun.nio.ch.Net.setInterface6(Native Method)
at java.base/sun.nio.ch.DatagramChannelImpl.setOption(DatagramChannelImpl.java:364)
at java.base/sun.nio.ch.DatagramSocketAdaptor.setOption(DatagramSocketAdaptor.java:420)
at java.base/sun.nio.ch.DatagramSocketAdaptor.setNetworkInterface(DatagramSocketAdaptor.java:605)
at java.base/java.net.MulticastSocket.setNetworkInterface(MulticastSocket.java:445)
at javax.jmdns.impl.JmDNSImpl.openMulticastSocket(JmDNSImpl.java:484)
at javax.jmdns.impl.JmDNSImpl.(JmDNSImpl.java:440)
at javax.jmdns.JmDNS.create(JmDNS.java:164)
...
I'm currently using version 3.5.9-SNAPSHOT (the fork is aligned).
The problem shows on java 17 where preference is on ipv6 (no issue with java 8) and can be solved with  -Djava.net.preferIPv4Stack=true on the command line (alas System.setProperty("java.net.preferIPv4Stack" , "true"); does not helps)

This issue is plobably related to this known jdk bug:
https://bugs.openjdk.org/browse/JDK-8272476
([JDK-8272476)


Adding Board Support for STEVAL-STWINKT1B

To improve my experience with Zephyr, I plan to add support for the following eval kit from STMicroelectronics to the already existing hardware platform:
https://www.st.com/en/evaluation-tools/steval-stwinkt1b.html
I have already been able to find templates under zephyr/doc/templates/. Under zephyr/boards/arm/ I have not been able to find the board so far, issues or pull requests do not exist either. My approach would be as follows:

create a DTS file for the board (zephyr/dts/arm/st/l4/).
A DTS file for the processor already exists. I would check it for completeness and correctness as well as I can.
A Hello World sample, pictures and documentation.

Are there any other points to consider? I will probably not be able to provide continuous support.

@EminYagmahan Thanks for your interest.
I suggest to adapt from following board that should be close to the STWIN kit:
https://github.com/zephyrproject-rtos/zephyr/tree/main/boards/arm/sensortile_box.
Aside from the suggested points, please take care of providing a method to flash & debug.
Also, don't hesitate to enable various peripherals when they reuse existing drivers or components.
For such a board, that would be a shame to restrict to hello_world (of course this can be done in several steps depending on your time)


Fix closing time

Judging by the timeline, this looks like a typo?

Good spot! Thx for noticing, but the closing time is correct, just the time for the family photo is wrong since this will happen on Saturday.

Hah, then my train tickets are a bit late! 😂
Fixed

weather should be nice and the location is not too far away from the Alster. So you can enjoy some time relaxing there. (Or just help us cleaning up 😅)


Add StorageCohort structure

What does this PR do?

This PR adds the initial structure as per the schema for the StorageCohort

Enhancements to be taken up

Decide the subfields for some structs
Add more verbose documentation
Refine the constants to our use case

This comment is on finalizer for storage cohort CR.
openebs.io/pool-protection
=> This finalizer  makes sure that no pool is present at the time of storage cohort CR deletion.

Where do we add these finalizer in the CRD spec? Is it a part of the structure or do we define it in some methods of this CR?

any reason capabilities needs to be specified as part of cohort? Is it used for matching storage pool provisioning?

Yes in a way. This represent the aggregate capabilities of all the pools which are updated by pool provisioners after pool provisioning/deprovisioning. This also helps volume scheduler to narrow down on the pool selection for a volume.