Very Slow Inference on CPU

Hi  I found the model is very very slow on CPU using the pretrained weight "checkpoint_iter_370000.pth". I have attached the code below.  I have tested different scenarios, and summarize the results below:
GPU w pretrained weight:   0.007 sec
GPU w/o pretrained weight: 0.007 sec
CPU w pretrained weight: 2.829 sec
CPU w/o pretrained weight: 0.376 sec
Could you kindly explain why the inference time using CPU and pretrained weight is so slow ?
import argparse
import cv2
import numpy as np
import torch
from models.with_mobilenet import PoseEstimationWithMobileNet
from modules.keypoints import extract_keypoints, group_keypoints
from modules.load_state import load_state
from modules.pose import Pose, propagate_ids
import time
#from val import normalize, pad_width
device = torch.device('cpu')
model_Mobilenet = PoseEstimationWithMobileNet().to(device)
checkpoint = torch.load('checkpoint_iter_370000.pth', map_location=lambda storage, loc: storage)
load_state(model_Mobilenet, checkpoint)
model_Mobilenet.eval()
input = torch.Tensor(2, 3, 368, 368).to(device)

since = time.time()
stages_output= model_Mobilenet(input)
PAF_Mobilenet, Heatmap_Mobilenet = stages_output[-1], stages_output[-2]
print('Mobilenet Inference time is {:2.3f} seconds'.format(time.time() - since))

If you have used for time measurements code from above, then the reason might be in small statistic. You know, that cpu executes not only network inference, but also OS and other background tasks at the same time, so there can be some delays. Better to run number experiments in a loop (e.g. 100 iterations), measure inference time at each iteration, then average it or take median. This network has determenistic inference, so the complexity (flops number) should be the same regardeless of weights choice. And for the fastest inference, please consider c++ demo.

Hi Daniil,  thanks for your kindly response.  Follow your instruction, I run the code in a 100 iteration loop to obtain an average inference time, below is the summary table. The results are reproduced using other desktops.
As you explained, the flops number should be the same regardless of weights choice.  Really confused why the inference time soars with CPU and pretrained weight.

Engine
Weight
Inference Time

CPU
pretrain
3.53

CPU
random initial
0.32

GPU
pretrain
0.057

GPU
random initial
0.057

import cv2
import numpy as np
import torch

from models.with_mobilenet import PoseEstimationWithMobileNet
from modules.keypoints import extract_keypoints, group_keypoints
from modules.load_state import load_state
from modules.pose import Pose, propagate_ids
import time
#from val import normalize, pad_width
#device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
device = torch.device('cpu')

model_Mobilenet = PoseEstimationWithMobileNet().to(device)
checkpoint = torch.load('checkpoint_iter_370000.pth', map_location=lambda storage, loc: storage)
load_state(model_Mobilenet, checkpoint)
model_Mobilenet.eval()

input = torch.Tensor(2, 3, 368, 368).to(device)

since = time.time()

for i in range(101):
    stages_output= model_Mobilenet(input)

print('Mobilenet Inference time is {:2.3f} seconds'.format((time.time() - since)/100))

I also have a close-look at the pretrained weights. Below shows the parameters for first conv layer. The parameters are very small i.e. 6e-42.   Not sure if that is the reason causing high inference time using CPU ?
params = list(model_Mobilenet.parameters())
print(params[0])
tensor([[[[ 1.3548e-41, -2.8558e-42,  7.1985e-42],
          [ 6.8509e-42, -1.2022e-41, -1.3971e-42],
          [-9.6213e-42,  7.1340e-42,  1.3549e-41]],

         [[-5.7888e-42,  1.0885e-41,  1.9870e-42],
          [-6.3605e-42, -5.6192e-42,  5.8098e-42],
          [-1.0887e-41,  8.5269e-42,  7.8038e-42]],

         [[-4.8905e-42, -5.1245e-42, -9.7853e-42],
          [ 8.7847e-42, -2.4144e-42,  2.8054e-42],
          [-8.5423e-42, -3.8802e-42,  6.0704e-42]]],

        [[[-4.6523e-43, -1.6549e-42, -5.2633e-42],
          [ 1.2619e-41,  1.2462e-41, -1.0759e-41],
          [ 7.3022e-42,  9.8735e-42, -1.0707e-41]],

         [[-1.0741e-41,  5.7719e-42, -1.0706e-41],
          [ 1.1174e-41, -4.2726e-42,  2.0473e-42],
          [-1.0983e-41,  9.1477e-42, -9.6227e-42]],

Does this reproduced with real image, not generated tensor?

Daniil,  Yes.  It is reproduced with real image.  I rounded over the pretrained weight parameters by 4 decimals. The inference speed is back to 0.3 sec.  I didn't find any accuracy drop.  For your information.  Not sure if you can reproduce this scenario though.  Wonder if there is any theoretical explanation on this ?
params = list(model_Mobilenet.parameters())
print('the length of parameters is', len(params))
for i in range(len(params)):
    params[i].data = torch.round(params[i].data*10**4) / 10**4

There can be some exceptions which slow down the work, when cpu operates with small numbers (around machine zero). E.g. working with denormals is usually slower, or some optimized code may expect numbers from specific range and, if numbers fall out this range, the non-optimized code runs.

This can be closed.


feat: Add workflows change request concerns

Change
Pulling over different concerns into the commons repository to support the change request for segments work. Impacts these two PRs.

Approving this but can't help but notice missing test coverage.

We have test coverage from the other units that import these, which Matt and I think is fine.


vscode: fix url handler name of vscode-insiders

Description of changes
This pull request fixes the URL handler name of vscode insiders. While using vscode insiders, the URL handler name should be "x-scheme-handler/vscode-insiders" instead of "x-scheme-handler/vscode".

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

[x] Fits CONTRIBUTING.md.

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

LGTM (sounds more accurate than #288425 per vscodium/vscode-insiders upstream RPMs)
@ofborg test vscodium.xorg


[CCAP-359][CCAP-437] Handle application already submitted, responded to, and/or invalid confirmation code on providerresponse/application-id screen

🔗 Jira ticket
https://codeforamerica.atlassian.net/browse/CCAP-359
https://codeforamerica.atlassian.net/browse/CCAP-437
✍ Description

📷 Design reference

✅ Completion tasks

[ ] Added relevant tests
[ ] Meets acceptance criteria

This makes sense to me. I didn't test the logic.
Would you mind adding tests of these changes to just validate that it works as expected?
https://github.com/codeforamerica/il-gcc-form-flow/blob/94c4441d806d6c753e4aa54f72055578a347fb17/src/test/java/org/ilgcc/app/journeys/ProviderresponseFlowJourneyTest.java#L13

Yep, I'll add some tests in another PR so we can merge this in and unblock / confirm the ticket Alex was about to work on!


Use Github Actions to have Builds of the addon

Do you mind if I make a pull request ? and make a github workflow similar to this :
https://github.com/CoaguCo-Industries/GodotSteam/tree/v4.2.5-gde/.github/workflows
So we can have tests for most platforms ?
And probably have a release option.

@ywmaa
Please do ! I'm not very familiar with the github Action setup.
Things to consider : I have a dependency on the C++ Boost Library. You can check my yml on how I include it.
Basically I found an action to download boost with some caching, and it output the path to the boost directory as boost_root. I use this directory in my call to scons with Boost_DIRECTORY=BOOST_ROOT or something like that.
Other than that, you shouldn't encounter any problem.
I'm currently updating the wiki and I'll keep you updated on how to use my framework.

Completed

Thanks @fire, I got busy with other stuff like vertex_lighting, that I forgot to try GD Extension and try make a github build for it.


Spotify Connect integration

@pwt popping this here to keep the team updated. Feel free to close it if it's not the right place for it :)
Ref. #761
I'm the assignee.

Basically I'll just need to do the following:

Snapshot the current Spotify Connect state (and then stop the music), all via Spotify
Take control of the device using SoCo (and play the required alert/message)
Restore the Spotify state by reconnecting/recasting to the device via Spotify

Hmm... This might be non-starter folks.
The Sonos devices are "restricted" devices according to the Spotify API.

Calling https://api.spotify.com/v1/me/player/devices returns all my devices excluding the Sonos speaker.
Calling https://api.spotify.com/v1/me/player returns:

{
  "device": {
    "id": null,
    "is_active": true,
    "is_private_session": false,
    "is_restricted": true,
    "name": "Office",
    "type": "Speaker",
    "volume_percent": 1
  },
  ...
}

Using https://api.spotify.com/v1/me/player/pause on the Spotify Connect device casting to the Sonos speaker does work, but then running https://api.spotify.com/v1/me/player/play does not restore the cast to the Sonos speaker (because Spotify has forgotten its state.

Restricted devices can't be controlled by the Spotify API.

Any updates on this? Just bought a Ikea Symfonisk and found out the hard way that "spotify connect" isn't always the same thing as "spotify connect".
If it isn't possible to solve this API issue on the Sonos devices, then I think that you should stop calling it "spotify connect".

Just curious if you were able to re-activate Spotify Connect via SoCo?
If I can't get the Spotify Connect Zeroconf addUser functionality working (see below), then I could approach it via the SoCo interface; is there a way via SoCo to initiate a Spotify Connect login to the Sonos device so that the device uses Spotify Connect (not local queues) to play Spotify content?   Similar to what the Spotify Mobile player does, but using SoCo to initiate the login?
I am the author of the SpotifyPlus integration used in the Home Assistant home automation software.  I am trying to figure out how to specify the call parameters for a Sonos device to the Spotify Connect ZeroConf “addUser” endpoint, which is called to login to Spotify Connect for the specified device.  I am currently using a Sonos IKEA Symfonisk (gen 2) device to test with, as well as a Spotify Premium account.
A Spotify Connect Zeroconf login needs to be done programmatically so that the Sonos device can be accessed by Spotify Connect after a period of inactivity.  The Sonos device automatically logs out of Spotify Connect after the inactivity period, and needs to be re-awakened (e.g. login again) in order to be selected.
In working with other vendors that support Spotify Connect (Bose, Onkyo, Yamaha, etc), they use a “tokenType=accesstoken” in the addUser parameters.  The “blob” parameter is formatted with a Spotify user-id and password value, and the addUser call successfully logs the user in to Spotify Connect for the device.  No problems with “tokenType=accesstoken” devices.
It appears that Sonos devices use a “tokenType=authorization_code” value in its addUser parameters.  The “blob” parameter is different for this token type than for a “accesstoken” token type.
What I would like to know is what to specify in the addUser parameters, namely the “blob” and the “loginId” parameters, for the “authorization_code” token type.  Based upon Wireshark traces when the Spotify desktop application is used ...
“blob” - appears to be a serialized token value.
“loginId” - appears to be an SHA1 representation of a loginId value.
Spotify Connect addUser call to a Sonos device example:
&userName=31l77y ...redacted
&blob=AQC4E8xSTYmGAo2UK1dC6n4 ...redacted
&clientKey=
&tokenType=authorization_code
&loginId=f2860abad3313 ...redacted
&deviceName=THLUC ...redacted
&deviceId=80da4987232 ...redacted
&version=2.7.1

Thoughts?


🚀 Creating Data Science Month-wise Roadmap 🛤📅

About
Develop a month-wise roadmap for Data Science, outlining the tasks, projects, and learning objectives for each month. This roadmap will serve as a guide to structure and progress in Data Science, allowing for efficient planning and skill development. 🌟📊
Add a Screenshot of your project to the list

Record

[X] I agree to follow this project's Code of Conduct
[X] I want to work on this issue

Select the Project Type
None

@AnirudhPanda Please Review my pr

@Nishitbaria CAN YOU ASSIGN THIS TASK TO ME?
I  would love to draw a roadmap for Data Science, outlining
-tasks,
-projects
-learning objectives for each month.

@TANISHQ-GUPTA12 You can make issue and get this assign for you on your own because I am working on this issue


[@azure/communication-calling] MaxListenersExceededWarning after 11 calls

Package Names and versions: @azure/communication-calling (1.25.1), @azure/communication-common (2.3.1)
Related documentation: https://learn.microsoft.com/en-us/azure/communication-services/how-tos/calling-sdk/manage-calls?pivots=platform-web

Describe the bug
After starting 11 calls, the console shows the following warning:
MicrosoftTeamsAddOn.ts:242 MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 statusChanged listeners added. Use emitter.setMaxListeners() to increase limit
    at _addListener
    at EventEmitter.addListener
    at AudioEffectsStatusManager.on
    at AudioEffectsFeatureImpl.updateAudioEffectsStatusManager
    at AudioEffectsFeatureImpl.initialize
    at ExtensibleFeatureImpl.getApiObjectInstance
    at LocalAudioStream.feature
    at v.value
    at TeamsCallImpl._handleAudioEffectsOperations
    at TeamsCallImpl.startCallInternal

To Reproduce
Steps to reproduce the behavior:

Repeat the following two steps 11 times:
Start a call using callAgent.startCall
Accept the call and end it again.

Expected behavior
No warning is shown in the console.
Additional information
I am using two Microsoft Teams participants for the calls (instead of a Microsoft Teams participant and a phone number).

This seems to have been fixed in 1.26.1


merge package template from Kronos-Tools/npm-package-template

package.json

chore(devDependencies): update<EMAIL_ADDRESS>from template

Codecov Report

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

@@           Coverage Diff           @@
##           master     #212   +/-   ##
=======================================
  Coverage   98.05%   98.05%
=======================================
  Files           1        1
  Lines         103      103
=======================================
  Hits          101      101
  Misses          2        2

Continue to review full report at Codecov.

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


Remove space after extension

The problem was that I couldn't clone it on my Windows machine, because "title.txt " had a space after the extension, which failed cloning the project on Windows. This PR fixes it.
Before: "title.txt "
After: "title.txt"

Thanks!


Issue installing on macOs

Problem encountered on https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install
Operating System: macos
Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

I fixed it. Silly me. I had to allow my computer to open it.


feat: Show organisation name in header

Thanks for submitting a PR! Please check the boxes below:

[x] I have run pre-commit to check linting
[x] I have added information to docs/ if required so people know about the feature!
[x] I have filled in the "Changes" section below?
[x] I have filled in the "How did you test this code" section below?
[x] I have used a Conventional Commit title for this Pull Request

Changes
Always show the organisation name in the header:

This is what it looks like with very long organisation names:

This ensures users can quickly check which organisation they're working in. This is especially important for self-hosting users and Flagsmith support working within customer organisations.
It also hopefully makes this navigation element more evident as a click target - it's not immediately obvious that "Organisation" is clickable, I've seen a few users miss this.
There's probably a smarter way to implement this, but this was the least offense/effort/risk solution I came up with.
How did you test this code?
Manually, see screenshots.

I agree it's a bit confusing, to be honest this is the one area I find confusing about the navigation redesign but I get the rationale was to reduce links in the header.
Having the org name next to the word organisation feels like we're masking something that was just unintuitive to begin with. Do you think that maybe we should consider a breadcrumb here?
As a rough thought, something like this

I remember you mentioned this being confusing in a demo @agregoryfs, might be good to get your opinion.

Yeah understood, ok let's do it.
@dabeeeenster I wonder if we should get a design prototyped that does something like the above. I do think there are still improvements we should make.


Extend it to use other mmdetection models

Thanks for the amazing work, I wanted to ask if we can extend the proposed model to use with mmdetection models e.g. faster-rcnns etc. Will simply replacing and managing the config files work? or the method is specifically designed to work with refineNet and SSD?

Thanks for your attention to our work.
This model can be extended to more mmdetection models. Extending to the anchor-based models would be easier, but just replacing the configuration files is not enough.
You can regard this repository as a basic version for RetinaNet and an improved version for SSD, and check which files are specially modified for SSD refer to the section Code Structure (such as configs/_base_/ssd300.py, configs/MIAOD_SSD.py, mmdet/models/dense_heads/__init__.py, mmdet/models/dense_heads/ssd_head.py, etc.). Then you can add and modify the corresponding code of the model you want to extend.
Of course, if the model you want to extend is a two-stage detection model like faster-RCNN, you also need to pay attention to the modification of the files like mmdet/models/detectors/two_stage.py, which are only applicable to two-stage models.

感谢您对本工作的关注。
该模型可以扩展至更多的 mmdetection 模型。扩展到基于锚框的方法会较为容易一些，但仅仅替换配置文件是不够的。
你可以将本代码库看作一个适用于 RetinaNet 的基本版和适用于 SSD 的改进版，并参考在 代码结构 部分对比有哪些文件针对 SSD 特意进行了改动（如 configs/_base_/ssd300.py、configs/MIAOD_SSD.py、mmdet/models/dense_heads/__init__.py、mmdet/models/dense_heads/ssd_head.py等等），并将你想要扩展到的模型进行对应部分代码的添加与修改即可。
当然如果你要扩展到的模型是类似于 faster-RCNN 的双阶段检测网络的话，你也需要注意一下对 mmdet/models/detectors/two_stage.py 类似仅适用于双阶段网络文件的修改。


on_change method is not triggered in Streamlit 1.34

I have been working on streamlit 1.32.0 with streamlit-option-menu.
I use the on_call function to modify the cookies and it is working correctly.
When upgrading to streamlit 1.34.0, this function seems not to be executed.
option_menu(
                menu_title=None,
                options=self.menu_options,
                icons=self.menu_icons,
                menu_icon="cast",
                orientation="vertical",  # Cambio a vertical para la barra lateral
                default_index=default_index,  # Usar el índice de la opción guardada
                on_change=self.on_change_callback,
                key='navigation_menu',
                styles={
                    "container": {
                        "background-color": "#fff",
                        "padding": "0px",
                        "margin": "0px",
                        "border-radius": "0px"
                    },
                    "nav-link-selected": {"background-color": "#037efc", "color": "#fff"},
                    "nav-link": {"--hover-color": "#f0f2f6", "color": "##191c1e", "font-family": "'Source Sans Pro', sans-serif"},
                },
            )

     def handle_navigation_change(self, navigation_value):
        navigation = st.session_state.get(navigation_value)
        if navigation in self.pages or navigation == "Logout":
            self.cookie_manager.cookies["last_visited_page"] = navigation

I've originally added the callback from this thread. It is a workaround, so it is possible that something broke in the new streamlit.
need to investigate it, but it is possible that the solution will be to remove this feature if a new workaround won't be found

I posted this here and here too as I noticed this

The internal package structure has changed due to a refactoring; if you change the import in the streamlit_callback.py to from streamlit.components.v1 import custom_component as _components, it should work again.
That being written, this is not an official API we are going to guarantee from Streamlit-side 😉 However, we will look into this more closely and try to come up with a clean API for the future so that this patch is not needed anymore. In the meantime, I hope this^ unblocks you (for now).

I published a temporary patched version here if someone is interested from #71:
https://pypi.org/project/streamlit-option-menu-patched/0.3.12/

We have also merged a PR (https://github.com/streamlit/streamlit/pull/8633) to allow passing on_change natively to the call of a custom component. This means, for future versions (>= 1.36) of Streamlit, the workaround patch should not be necessary anymore.

We have also merged a PR (streamlit/streamlit#8633) to allow passing on_change natively to the call of a custom component. This means, for future versions (>= 1.36) of Streamlit, the workaround patch should not be necessary anymore.

Yeah I noticed that but that requires some refactoring on the streamlit-option-menu as far as I understood from your PR. Is this the case? @raethlein

Yeah, you should be able to remove these lines and the register_callback script in general and then pass the on_change callback to the _component_func call here.
Since right now streamlit-option-menu documents to accept a key argument in the passed callback, I think the full snippet would look something like this:
if on_change is not None:
    if key is None:
        st.error("You must pass a key if you want to use the on_change callback for the option menu")
    else:
        _on_change = lambda: on_change(key)

component_value = _component_func(options=options,
            key=key, defaultIndex=default_index, icons=icons, menuTitle=menu_title,
            menuIcon=menu_icon, default=options[default_index],
            orientation=orientation, styles=styles, manualSelect=manual_select, on_change=_on_change)

Hi @raethlein @nikatlas, sorry for the late reply. I have just merged the PR by @nikatlas (thanks!) and pushed a new PyPi version. I haven't followed the recent API changes too closely. Are there any further changes that we need to make for the upcoming Streamlit releases?

Yeah, you should be able to remove these lines and the register_callback script in general and then pass the on_change callback to the _component_func call here. Since right now streamlit-option-menu documents to accept a key argument in the passed callback, I think the full snippet would look something like this:
if on_change is not None:
    if key is None:
        st.error("You must pass a key if you want to use the on_change callback for the option menu")
    else:
        _on_change = lambda: on_change(key)

component_value = _component_func(options=options,
            key=key, defaultIndex=default_index, icons=icons, menuTitle=menu_title,
            menuIcon=menu_icon, default=options[default_index],
            orientation=orientation, styles=styles, manualSelect=manual_select, on_change=_on_change)

@victoryhb I think the changes mentioned here are the proper solution.

I wonder if you have time to do another PR for that? @nikatlas

Cannot promise anything, not much time thats why I went with the patch. Not familiar with streamlit yet, so it will not come out of the box for me.
But as far as I undersood the whole change is the snippet from @raethlein though it should be tested.
If my workload comes by streamlit again I will give it a try.  ⛵

Seems not much change is needed. I will do it myself. Thanks.


Fancyzone - Not working with Unreal Editor

Microsoft PowerToys version
0.55.2
Running as admin

[X] Yes

Area(s) with issue?
FancyZones
Steps to reproduce
Running Unreal Editor, 4.26 but all seem to not work anymore.
Using FancyZone and having shifted to enable and non-primary mouse button to enable, they don't show the zone previews anymore when activating or even registering anymore.
✔ Expected Behavior
Any software windows will snap to the designated zones.
❌ Actual Behavior
Only SOME software windows snap to zones. i.e. All built-in Windows apps, Adobe apps, Chrome etc all seem to work. The current issues with Unreal Editor have happened since two updates ago.
Other Software
Unreal Engine Editor.

/dup #15426 will be fixed in 0.56


[Bug] Trying to show the point's data on hover/mouse move.

Trying to show the point's data on hover/mouse move.
I am displaying probeTool Annotations when the image loads. You can see image#1 for reference. As you can see, there are a lot of probe points so I'm showing them with "textBoxVisibility: false".  In the Next step, I'm trying to show each point's data when hovering over the point.
I tried the MOUSE_MOVE event but this event keeps occurring with no annotation details like Annotation UID to set  "textBoxVisibility: true".
I tried ANNOTATION_RENDERED Event too because this event successfully occurs when you hover over the point. But the issue with the event is, that it still doesn't have the Annotation details like UID so that I can reset "textBoxVisibility: true".
I explored other events too but neither worked.
Is there any other way to achieve this?  Or any other event that lets me know that this point got hovered with annotation details (UID). I tried the community forum too but did not get any response.
Image#1

Image#2

Steps to Reproduce
...
The current behavior
I tried MOUSE_MOVE and  ANNOTATION_RENDERED Events to show point data only when the mouse moves on that point But they are not returning any annotation details like (UID) to the annotation textBoxVisibility: true.
The expected behavior
I want to show point data only when the mouse moves on that point after setting textBoxVisibility: true using the annotation UID.
OS
Ubunutu
Node version
18
Browser
Chrome

@sedghi, Can you please look at this?

What happened? Did you figure it out?


Make cf.ugly() less ugly

This adds three helpful changes:

The layout objects of predefined algebras define .__name__ and .__module__ so that they can be printed more succintly
MultiVector.__repr__ now uses these attributes in ugly mode
In ugly mode, ipython uses MuiltiVector._repr_pretty_, which wraps lines in a more readable way

Demo below:
In [1]: from clifford.g3c import *

In [2]: e1
Out[2]: (1^e1)

In [3]: import clifford; clifford.ugly()

# named layout
In [4]: e1
Out[4]:
clifford.g3c.layout.MultiVector([0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                                dtype('int32'))

# unnamed layout
In [5]: layout_orig.blades['e1'] * 1.0
Out[5]:
MultiVector(Layout([1, 1, 1],
                   [(), (1,), (2,), (3,), (1, 2), (1, 3), (2, 3), (1, 2, 3)],
                   names=['', 'e1', 'e2', 'e3', 'e12', 'e13', 'e23', 'e123'],
                   firstIdx=1),
            [0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0])

Proof this works is in the docs here: https://clifford--239.org.readthedocs.build/en/239/tutorials/g3-algebra-of-space.html#Pretty,-Ugly,-and-Display-Precision

Passing-ish in CI


[cross_file] Using the name specified in the constructor for the file backed by a dart.io File

Use case
Hello everyone,
I use in my application files from Firebase and from the filesystem. And for the files from Firebase I specify as path the download url and the specific name, however the implementation backed by a dart:io File does not take into account the name and returns it as follows:
_file.path.split(Platform.pathSeparator).last;

Proposal
Would it be reasonable to change the implementation to
_name ?? _file.path.split(Platform.pathSeparator).last;

We should document that name is ignored, as we do for bytes.
What problem are you trying to solve with your proposal? Why do you want XFile to return something other than the filename as the name?

I am trying to display the name, but currently it is the last part of the URL that is displayed.

it is the last part of the URL that is displayed

What do you mean "the URL"? There's no URL for an IO-backed XFile.

I specify as path the remote file download url and as name the file name and bytes.

I specify as path the remote file download url

That's not a file path. Constructing an IO-backed XFile with a path argument that is not a file path is unsupported; I'm not sure why you are trying to use XFile for this in the first place.
We are not going to make behavioral changes for the sole purpose of handling an unsupported use. I'll file a new issue for updating the parameter docs.

I use it like this because I have a form in which remote files and files from the file system coexist during editing, and I don't want to create temporary files on the file system for the remote files.

I use it like this because I have a form in which remote files and files from the file system coexist during editing

XFile is, per its docs "a cross-platform, simplified File abstraction"; i.e., it's a variant of File that supports web. XFile, like File, is for representing files within the filesystem.

Once the form is submitted, thanks to this I know that if the path is a url I must not re-upload it.

As I said above: a URL is not a file path. It may, in your use case, corresponding to a conceptual file, but it is not a file path. A file path is a specific concept, and it does not encompass URLs.

As CrossFile is an abstraction

It's an abstraction file files in the filesystem. It's not an abstraction for any arbitrary conceptual file-like thing that some application may have.

I find that paths like url:URL or another format is valid.

I explicitly said that it's not valid in an earlier comment, so I'm not sure what that means. If you mean that you are asserting that you can simply pass invalid data into the API and it should work, I'm not sure what to say.

But if you have a suggestion, I'll take it!

I suggest writing an abstraction that applies to your use case, instead of trying to use XFile to represent something that it is not meant to represent by passing it invalid constructor arguments.

Thank you very much for taking the time to answer me!
I had a doubt if I could also use CrossFile as a conceptual abstraction, but reading your comment, it's obvious I can't!


another one

i was told this was from koutch
https://docs.google.com/document/u/0/d/1FWahONhig8YMzDbCDxSN-9R1oIBoZIiocQs8dBj6vVk/mobilebasic

Thanks!


Add cookies output to motd in bash.bashrc

For viral marketing!

This might be handled by a well-written .flavor file placed somewherebaouts.


pub admin: featuring error

i clicked "edit" on a notebook, checked the feature box, and clicked update.
got an error:

PUT https://pub.beakernotebook.com/notebook/v1/publications/56b4eb93-c2c3-4487-b975-0d10b3fd3cad 500 (Server Error)(anonymous function) @ beakerVendor.js:50778sendReq @ beakerVendor.js:50571serverRequest @ beakerVendor.js:50278processQueue @ beakerVendor.js:54801(anonymous function) @ beakerVendor.js:54817Scope.$eval @ beakerVendor.js:56045Scope.$digest @ beakerVendor.js:55856Scope.$apply @ beakerVendor.js:56153(anonymous function) @ beakerVendor.js:63610jQuery.event.dispatch @ beakerVendor.js:18058$event.dispatch @ beakerVendor.js:104594elemData.handle @ beakerVendor.js:17742

outdated issue - now the db is properly clean


Object explorer menu item contibution

extension should be able to contribute menu items for object explorer and filter it for node type and provider

close as duplicate #1867


[WIP][controller][server] Controllers and Servers will register new protocol schemas on start up

Controllers and Servers will register new protocol schemas on start up

Servers and controllers, both will register previously unknown schemas to schema system stores

Leader controllers continue to initialize the schema system stores as before
Servers and follower controllers will use controller APIs to delegate the creation to the leader controller

This removes the need to deploy the leader controller of the schema system stores before other components
Thus, any component can now be deployed in any order

Resolves #XXX
How was this PR tested?

Ran existing test suite - Internal CI JDK11-6826. Running more iterations and will add new tests
Does this PR introduce any user-facing changes?

[x] No. You can skip the rest of this section.
[ ] Yes. Make sure to explain your proposed changes and call out the behavior change.

Rebased, fixed merge conflict and pushed. No functional changes yet

@nisargthakkar
Can you put a list of deployment ordering issues this PR will address?
I would like to see which ones are addressed to make sure we cover the full scope.
From my understanding, there are several deployment ordering issues:

Child Controller needs to be deployed first before Parent Controller whenever there is a KME/AdminOperation protocol evolution.
The backend needs to be deployed first before VPJ/Samza Job whenever there is KME protocol upgrade.
Venice Repush needs to be able to deserialize the events produced by Venice Server, and during KME protocol upgrade, Repush may have an issue since it is not using a SchemaReader to find out the unknown schemas.
For AA stores, if there is a KME upgrade, we need to make sure Controller in each colo registers the new KME protocol before any component starts using it.

Can you share whether this PR will cover all of them or only part of them?

I'm still thinking about tests - but I think this can now be reviewed.
@shuhui-liu I don't think there is an easy way to revert the grammatical changes - other than looking at each one and manually reverting to the older state


Destroying connections should use reasonToCode for code when rejecting new streams

Specification
In the QUICConnection.processStreams, in the case where the connection is in the process of destroying. Any new streams that are iterated over are immediately shut down with code 1. We shouldn't be hard coding this code. We should pass in a relevant quic error into ReasonToCode and use the code provided by that function.
Additional context

Tasks

[ ] 1. Use the reasonToCode method to determine the code used when rejecting new connections during destroy.

There are 3 places where the streamShutdown code is hard-coded. 2 places in processStreams where it processes the readable and writable streams. and when the connection aborts waiting for secure establishment.
The fix is to get the code from reasonToCode while providing it a relevant error. The question is, what to call these errors?
The error for failing to connect should be different from the draining state error. I'm thinking

Failing to establish will use whatever the abortion reason is.
Rejecting when the connection is closing could be the existing ErrorQUICConnectionNotRunning error or a new ErrorQUICConnectionStopping error.

So QUIC library won't know what exactly these codes or reasons should be unless it's indeed "system" specific. In all other cases it should be setup by the application - that being Polykey library.


Passing partial partition key in QueryRequestOptions hurts COUNT index utilization

We are continuously addressing and improving the SDK, if possible, make sure the problem persist in the latest SDK version.

Describe the bug
Including the same partial partition key (that is already in the aggregate count query WHERE clause) in the query options hurts the query performance. Was I not supposed to pass the partition key in there at all? I thought we were supposed to pass the partition key wherever possible.
To Reproduce
Suppose I have a Cosmos DB "CountTest" with a collection "Subpartitioned" with a 2-part hierarchical partition key /TenantId, /id and I want to count all documents belonging to a specific tenant, say "1". A query SELECT VALUE COUNT(1) FROM c WHERE c["TenantId"] = "1" is quick and cheap, so far so good.
To my surprise, if I execute this query using the latest SDK and pass new PartitionKeyBuilder().Add("1").Build() in the QueryRequestOptions the index utilization goes down significantly (down to 10% on the test data described here, down to 0% in my real life deployment). And on bigger data sets the query become prohibitively expensive.
Consider the following code.
using Microsoft.Azure.Cosmos;
using Microsoft.Azure.Cosmos.Linq;

var cosmosClient = new CosmosClient(Environment.GetEnvironmentVariable("CosmosConnectionString"));
var container = cosmosClient.GetDatabase("CountTest").GetContainer("Subpartitioned");

var expensiveResponse = await container.GetItemLinqQueryable<Document>(requestOptions: new QueryRequestOptions
    {
        PartitionKey = new PartitionKeyBuilder()
            .Add("1")
            .Build()
    })
    .Where(doc => doc.TenantId == "1")
    .CountAsync();

var cheapResponse = await container.GetItemLinqQueryable<Document>(requestOptions: new QueryRequestOptions
    {
        PartitionKey = null
    })
    .Where(doc => doc.TenantId == "1")
    .CountAsync();

Console.WriteLine($"I would expect {expensiveResponse.RequestCharge} to be the same as {cheapResponse.RequestCharge} but it's much higher.");

public class Document
{
    public string TenantId { get; set; }
    public string id { get; set; }
}

As a workaround, I can omit the PartitionKey from the QueryRequestOptions and the index utilization goes back to 100% and RU cost back down to single digits.
Expected behavior
I would expect the count query index utilization to be the same if the partition key is inferred from the query as if it's explicitly passed in the request options. Passing the partition key in the options may seem a bit pointless, but I would not expect it to make performance worse.
Actual behavior
Explicitly passing the (partial) partition key appears to hurt index utilization and thus query charge. Based on the diagnostics, the database has to retrieve each document it counts. Though on the output there's only the one document with a number.
Environment summary
SDK Version: 3.35.0
OS Version: Windows 10
Additional context
Obviously, this is only issue with subpartitions/hierarchical partition keys, as originally one could only pass the entire partition key and not just a part of it. Furthermore, I haven't observed any index utilization issues with normal document-fetching queries. Appears to be only a problem with the aggregated ones. It doesn't matter whether I use LINQ or the string based QueryDefinition.

See https://github.com/Azure/azure-cosmos-dotnet-v3/issues/3933 and https://github.com/Azure/azure-cosmos-dotnet-v3/pull/3934
There is currently an issue with Queries and Subpartitioning when the Partition Key is partial.

Does that mean my observation regarding request options was incorrect and the entire thing won't work reliably outside of the specific case I tested?

@vit-svoboda What was discovered was that when using Partial Partition Keys with Queries, it fails to correctly route the query in some cases (when the partial Partition Key spans multiple physical partitions). With this bug still unresolved, it is hard to understand if the problem you are facing is really an issue with the query execution or really just linked to the routing problem.

I just retested the issue using the latest SDK (v3.37.1) where the possibly related issues mentioned above have been fixed. But my issue still appears to be there.


[core-amqp] Post-release activities

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


upscaler: init at 1.4.0

New packages:

python vulkan api bindings: https://github.com/realitix/vulkan, https://pypi.org/project/vulkan/
upscayl-ncnn, a fork of realesrgan-ncnn-vulkan: https://github.com/upscayl/upscayl-ncnn/tree/master
upscaler, a gtk/libadwaita image upscaling gui: https://tesk.page/upscaler/, https://gitlab.gnome.org/World/Upscaler

The python vulkan api bindings might or might not work on darwin systems too, I do not have any way to check.
This module can be tested individually against the example program using nix-shell -E 'with import /path/to/local/nixpkgs {}; mkShell { buildInputs = [ (python312.withPackages(ps: with ps; [ vulkan ]))  ]; }' --run python3 /path/to/example/file
upscayl-ncnn is a fork of realesrgan-ncnn-vulkan which is already packaged for nix. Therefore, the package definition is very similar. I assumed the fork will run on darwin systems too, like upstream does. I do not have any way to test however. The patches had to be adapted to apply cleanly on the fork. Upscayl-ncnn is not yet part of nixpkgs because upscayl nixpkg is a repackaged AppImage, thus not building the backend from source.
This can be tested individually by upscayl-bin -i INPUT.png -o OUTPUT.png
Upscaler is a regular GUI app with desktop entry and everything. It will depend on the other two packages and thus can't really be tested individually. It should just work. Tested on nixos x86_64-linux.
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Hello, I have opened https://github.com/NixOS/nixpkgs/pull/327919 before, but it's certainly better if you can do it.

Oh crap, totally missed that, probably because i was looking for gnome-upscaler instead of upscaler.
I did however manage to fix the black image issue in this (upscayl-ncnn was missing models).
I did not intend to supersede your work, sorry for that! I suppose I'll adopt the feedback you got on your version if you are fine with that, but i'd also be happy just reviewing your version.


bumping travis php versions, composer deps, php-cs fix

Codecov Report

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

@@           Coverage Diff           @@
##             master     #2   +/-   ##
=======================================
  Coverage       100%   100%
  Complexity        4      4
=======================================
  Files             1      1
  Lines            10     10
=======================================
  Hits             10     10

Continue to review full report at Codecov.

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


HDFS-14433. Remove the extra empty space in the DataStreamer logging.

Signed-off-by: Eason Lu<EMAIL_ADDRESS>

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

0
reexec
21
Docker mode activated.

_ Prechecks _

+1
@author
0
The patch does not contain any @author tags.

-1
test4tests
0
The patch doesn't appear to include any new or modified tests.  Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1
mvninstall
1144
trunk passed

+1
compile
40
trunk passed

+1
checkstyle
23
trunk passed

+1
mvnsite
44
trunk passed

+1
shadedclient
776
branch has no errors when building and testing our client artifacts.

+1
findbugs
105
trunk passed

+1
javadoc
29
trunk passed

_ Patch Compile Tests _

+1
mvninstall
39
the patch passed

+1
compile
35
the patch passed

+1
javac
35
the patch passed

+1
checkstyle
17
the patch passed

+1
mvnsite
40
the patch passed

+1
whitespace
0
The patch has no whitespace issues.

+1
shadedclient
813
patch has no errors when building and testing our client artifacts.

+1
findbugs
108
the patch passed

+1
javadoc
26
the patch passed

_ Other Tests _

+1
unit
106
hadoop-hdfs-client in the patch passed.

+1
asflicense
25
The patch does not generate ASF License warnings.

3473

Subsystem
Report/Notes

Docker
Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-747/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/747

Optional Tests
dupname  asflicense  compile  javac  javadoc  mvninstall  mvnsite  unit  shadedclient  findbugs  checkstyle

uname
Linux b071073115d2 4.4.0-143-generic #169~14.04.2-Ubuntu SMP Wed Feb 13 15:00:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
personality/hadoop.sh

git revision
trunk / 04c0437

maven
version: Apache Maven 3.3.9

Default Java
1.8.0_191

findbugs
v3.1.0-RC1

Test Results
https://builds.apache.org/job/hadoop-multibranch/job/PR-747/1/testReport/

Max. process+thread count
336 (vs. ulimit of 5500)

modules
C: hadoop-hdfs-project/hadoop-hdfs-client U: hadoop-hdfs-project/hadoop-hdfs-client

Console output
https://builds.apache.org/job/hadoop-multibranch/job/PR-747/1/console

Powered by
Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

LGTM
+1 (non-binding)

LGTM, +1. I will merge/commit it shortly.


Performing "containing" queries on subject doesn't work on utf8 encoded mails

I'm facing an issue when trying to fetch mails from the Api (v2).
Performing a query on /api/v2/search using containing on the subject of a mail gives an empty result.
For instance I search: 'containing' => 'Your free product', but in fact the subject appears as Your free =?utf-8?Q?product=0A?= when fetching all mails, so I can't retrieve it from a search query directly.
Could it be possible to do something for clean up the subject as it is done for the web interface, in order to allow performing containing queries on?
Thank you
See https://github.com/mailhog/MailHog/issues/46 for a similar issue that has been fixed on the UI side.

This issue is really problematic, forced to stop using the API for now.

Good point, fairly big oversight!
I'll have a look asap :+1:

Bump :)


fix tsnecuda

cc @h-vetinari, @erykoff, @beckermr
This was causing failures on unrelated packages as well as the repodata loading broke.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Oh boy, sorry for the mess, and thanks for fixing it... 😑

thank you @isuruf !


How do I get the current index of the datapoint?

In D3, it always returns the index, and the datapoint. It provides a lot more meta information. For example, in a bar chart plotted against months and if I add an on-click handler to .ct-bars, how would I get the current month for the bar clicked (which is the index of the datapoint in this case)?

Here's a simple example on how to use meta data and the Chartist serialization / deserialization capability. Meta data will be serialized and written onto the element attribute ct:meta from which it can be obtained later and deserialized with Chartist.deserialize.
The difference here is that you need to write your data using the object notation and must specify what you'd want to be your meta data. But this of course also gives you the freedom to do what ever you want. Value can be obtained by reading the ct:value attribute and convert to number.
Here's the example: http://jsbin.com/nokeza/edit?html,js,output
I've opened #421 to include a meta data example in the docs.
Hope this helps. Let me know if you find this weird to work with or if you like it.
Cheers
Gion

Perfect. Thank you!

Hi, just coming across this from researching. I'm trying to get the label of the bar that's been clicked. Can you confirm this is the only/best way to do that?


Follow best practices for tools.go

Issue #, if available:
None, just a small thing I noticed when we were building this software internally.
Description of changes:
Manually updated & moved the tools.go file
to match https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module.
Ran go mod tidy with Go 1.16 as well to update the go.mod/go.sum.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

cc @zeleena


Add first interactions of Phoenix API

This adds a bunch of stuff to the API spike, including a better README.

@begedin on all of these can we break them out into issues for later so that we can get this merged in the short-term? I think higher priority to have something for folks, and these have fully passing tests.

Created the issues.


Make frontend type stable

This pr makes the solve(::IntegralProblem, ::IntegralAlgorithm) interface type stable for all algorithms in the package, which solves #65. The strategy to make the infinity transformation type stable is to transform all problems at runtime instead of init time. This pr add an internal ChangeOfVariables meta-algorithm that makes adding other changes of variables easier so that #149, for example, would be easier to add. Although I haven't added tests for type consistency, this may help addressing #221. I also caught various bugs in multiple solvers and had to fix/impose type stability in others, often just adding a lot of let bindings for variables captured in closures.
The PROs of the ChangeOfVariables:

This also fixes an issue that it was impossible to use an infinity transformation and change the integration domain using the caching interface because previously the transformation was done at init time whereas now it happens at solve time.
We deprecate the do_inf_transformation keyword to solve
The new ChangeOfVariables wrapper should make the user experience far more consistent across algorithms because adding this wrapper caught a lot of bugs I had to fix

The CONs of the ChangeOfVariables:

The u-substitution allocates a few internal buffers, so there may be new allocations, especially during autodiff. Some of those buffers are hard to replace without smarter chain rules and currently I got it to work by just allocating whenever it was convenient
I really think the user should specify a ChangeOfVariables and it shouldn't be internal because it is possible to have nested changes of variables that will work but may reduce performance. However, requiring the user to opt-in to an infinity transformation is breaking.

This is the first example of a meta-algorithm in this packages and I'm interested to hear people's thoughts!
Checklist

[x] Appropriate tests were added
[x] Any code changes were done in a way that does not break public API
[x] All documentation related to code changes were updated
[x] The new code follows the
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
[x] Any new documentation only uses public API

Additional context
Add any other context about the problem here.

My only concern is the keyword arguments part, the rest looks fine so I'm fine with merging and continuing that discussion elsewhere.

I see, yes it's supposed to be filtered kwargs not all.

Are algorithms of algorithms (what I am calling meta-algorithms) used anywhere else in SciML? Most of their applications are things that users can do for themselves but which are feasible to provide for the existing api. In addition to changes of variables I think they are useful for:

Yes. DelayDiffEq just extends an ODE algorithm. Shooting methods take an ODE solver. Polyalgorithms take a list of algorithms in NonlinearSolve. I never thought about doing it for debugging information though.


missing package

Hello,
I don´t know if this is the right place for my post, but I can´t find a better one. I want to compile the MIDI Service console but I got the message that the package:
Windows.Devices.MIDI2
was not found. How can I add it to my project?
Thanks a lot and best regards,
Werner

Hi Werner
You could also ask questions like this on our Discord server. Link is in the main readme for this repo.
Windows.Devices.Midi2 winmd / nuget package is built as part of the full Windows MIDI Services here. It's also dependent upon the Windows service, and the transport and transform plugins. The Windows.Devices.Midi2 types also need special registration which, for developer preview use only our setup packages take care of.
This will ship with Windows starting in 2024. The MIDI Console is not useful without all of those parts (API, service, components, registration entries, config files, etc.).
I'll post the latest interim build here on Github soon so you don't have to build everything yourself if you don't want to. I have to move the location of the message scheduling logic, which is taking a bit longer than expected.
Pete

Hi Pete,
thanks a lot for your answer and sorry for the long delay, but I was ill for a few days. I have created a discord account and I will follow all developments there.
Best regards,
Werner

In case you missed it, I put out a release with all the packages (actually two releases) so you should be able to compile the console if you want to. The installer also installs the console and puts it in the path, FYI.


Force SSL for downloading English language data.

It would also be nice to have a checksum for this.

Thanks.
Actually the whole script is pretty inadequate. There's no caching mechanism, and no way to download part of the data but not all of it. If you'd like to suggest a rethink of it, I'd definitely be open to that.
For now, could you fill out the CLA? https://github.com/honnibal/spaCy/blob/master/contributors/cla.md Sorry about this, especially for such a small change.


Command python setup.py egg_info failed with error code 1

Hi I'm trying to work on your project, but I'm new to python and open source software. I'm getting this error when calling the command install soundscrape. Is this a problem with my version of pip?
the temp folder that was made to install also showed this error.
File "c:\users\michael\appdata\local\temp\pip_build_michael\mutagen\setup.py", line 37
except EnvironmentError, err:

Thanks

I'm converting the project to Windows and Python 3 right now, let me know if you want the source @michaelg02

I can't fix the install, as the error is with mutagen, and the Python 3 build of mutagen is not yet on pip (to my knowledge). However, the source is working downloading files on Windows and Python 3.4.

Similar issue to dimethylarginine:
Traceback (most recent call last):
  File "<builtin>/app_main.py", line 75, in run_toplevel
  File "/usr/bin/soundscrape", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

python 3.4 on ArchLinux

Same thing on Arch:
Install python2.7, python2-pip and then
sudo python2.7 /usr/bin/pip install soundscrape
:+1:

Ditto... Same error on my arch install.
On Jun 3, 2015 6:07 PM, "Florian Mierzejewski"<EMAIL_ADDRESS>wrote:

Same thing on Arch:
Install python2.7, python2-pip and then
sudo python2.7 /usr/bin/pip install soundscrape
[image: :+1:]
—
Reply to this email directly or view it on GitHub
https://github.com/Miserlou/SoundScrape/issues/5#issuecomment-108628808.

There is a python 3 mutagen package on pypi and it installs fine if you set the requirements correctly so that's not the problem. I think wsgiref is not python 3 so trying to install soundscrape using python 3 pip fails.
Using python 2.7 pip works fine to install all dependencies and have a working soundscrape install.

Hm.. does requests work with python3? That's what needs wsgiref I think.

requests does work on python3: https://pypi.python.org/pypi/requests

ok I got soundscrape to launch under Python 3 on my fork https://github.com/xHN35RQ/SoundScrape after making some syntax changes, but it will not download files so I think there are some more changes that need to be made to port it to Python 3. I don't know how long it would take to port.
At this point I think the best option is to keep it under Python 2.7 unless there's a very compelling reason to port to Python 3, OR if it turns out it won't take that long to port.
If you choose to remain on 2.7 then maybe make a note of that in the readme that it requires 2.7 and how to install.

SoundScrape on Python3 is a definite must. However, I did not realize that
requests doesn't work on python 3, that very much surprises me. Will
investigate.. or accept PRs..
On Sat, Jun 6, 2015 at 4:23 PM, xHN35RQ<EMAIL_ADDRESS>wrote:

ok I got soundscrape to launch under Python 3 on my fork
https://github.com/xHN35RQ/SoundScrape after making some syntax changes,
but it will not download files so I think there are some more changes that
need to be made to port it to Python 3. I don't know how long it would take
to port.
At this point I think the best option is to keep it under Python 2.7
unless there's a very compelling reason to port to Python 3, OR if it turns
out it won't take that long to port.
If you choose to remain on 2.7 then maybe make a note of that in the
readme that it requires 2.7 and how to install.
—
Reply to this email directly or view it on GitHub
https://github.com/Miserlou/SoundScrape/issues/5#issuecomment-109657625.

no, requests does work on python3 just fine. the requests module itself is just on 2.7.0 as of end of May.

Just tried installing on a recently upgraded to Xubuntu 15.04 laptop and I'm having the same issue. I think it's something with python versions, but I have no idea what to do.
Here's the error I'm getting:
~$ sudo pip install soundscrape
Collecting soundscrape
  Using cached soundscrape-0.16.1.tar.gz
Collecting args>=0.1.0 (from soundscrape)
  Using cached args-0.1.0.tar.gz
Collecting clint>=0.3.2 (from soundscrape)
  Using cached clint-0.4.1.tar.gz
Collecting demjson==2.2.2 (from soundscrape)
  Using cached demjson-2.2.2.tar.gz
Requirement already satisfied (use --upgrade to upgrade): fudge==1.0.3 in /usr/local/lib/python3.4/dist-packages (from soundscrape)
Collecting mutagen==1.22 (from soundscrape)
  Using cached mutagen-1.22.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-she70tqv/mutagen/setup.py", line 37
        except EnvironmentError, err:
                               ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-she70tqv/mutagen

@mobiuscoffee try running: pip -V to see which version of pip you're using. If pip on your system is actually pip3 then you'll have troubles. You can try completely uninstalling soundscrape with pip uninstall soundscrape and then try re-installing forcing pip2 using pip2 install soundscrape remember you may need to use sudo when installing. Hope that helps!

So what's actually happening here? I'd like to document this in the README.

So what's actually happening here? I'd like to document this in the README.

What's happening is that you're trying to install soundscrape via python3 which somehow has become the default on @mobiuscoffee system. Soundscrape is supposed to be installed under python2. So for 15.04 system you need to run pip2 install soundscrape to force the install under python2.
@Miserlou I can replicate this exact error by using pip3 install soundscrape which is the pip for python3. This is a problem of course since soundscrape is python2.
@mobiuscoffee your python install has defaulted to python3, and so when you run pip its actually running pip3 you can verify this by going to Terminal and running which pip and you should see the result of /usr/local/bin/pip if you run cat /usr/local/bin/pip the first line of result will most likely be #!/usr/bin/python3. To fix see my above comment.

Soundscrape works now!
Running pip -V returns:
~$ pip -V
pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)

And which pip gives:
~$ which pip
/usr/bin/pip

`cat /usr/local/bin/pip returns
~$ cat /usr/local/bin/pip
cat: /usr/local/bin/pip: No such file or directory

And cat / usr/bin/pip returns
cat /usr/bin/pip
#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==1.5.4','console_scripts','pip'
__requires__ = 'pip==1.5.4'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()
    )

Which seems weird. I used easy_install to upgrade pip I think. Could that have caused more problems?

@xHN35RQ running uninstall didn't work because soundscrape never successfully installed. However, forcing pip2 worked perfectly!
For more information here are what the other commands return for me:
~$ pip -V
pip 7.1.0 from /usr/local/lib/python3.4/dist-packages/pip-7.1.0-py3.4.egg (python 3.4)

~$ which pip
/usr/local/bin/pip

~$ cat /usr/local/bin/pip
#!/usr/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==7.1.0','console_scripts','pip'
__requires__ = 'pip==7.1.0'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('pip==7.1.0', 'console_scripts', 'pip')()
    )

running pip uninstall soundscrape didn't work because soundscrape never successfully installed.

Right, I guessed as much. I just wanted to make sure there wasn't a partial install before you tried installing with pip2.
And according to the results of the commands you ran, your Ubuntu is defaulting to python3. This might cause further issues in the future for python scripts that expect a python2 default environment.
In future, double check before using pip to make sure if what you're installing requires python2 and if so, use pip2 instead of just pip.

I kind of think this was fixed? Ping @Miserlou

I have no idea.
As far as I know, this works with Python 3, assuming Mutagen is now P3 compat, which I think it is.
However, I will not confirm this until P3 support is integrated into the Travis CI testing, at which point I will mark it as P3 compatible on Pip as well. Can somebody with a fresh P3 install confirm that SC works now?

Here's a install log that failed for me on my existing P3 install. Still need someone with a fresh P3 install to confirm if this is failing or not.
nick@lboih5y:~$ pip3 install soundscrape
Collecting soundscrape
  Using cached soundscrape-0.22.1.tar.gz
Collecting args>=0.1.0 (from soundscrape)
  Using cached args-0.1.0.tar.gz
Collecting clint>=0.3.2 (from soundscrape)
  Using cached clint-0.5.1.tar.gz
Collecting demjson==2.2.2 (from soundscrape)
  Using cached demjson-2.2.2.tar.gz
Collecting fudge==1.0.3 (from soundscrape)
  Using cached fudge-1.0.3.tar.gz
Collecting mutagen==1.31 (from soundscrape)
  Using cached mutagen-1.31.tar.gz
Collecting nose==1.3.7 (from soundscrape)
  Downloading nose-1.3.7-py3-none-any.whl (154kB)
    100% |████████████████████████████████| 155kB 115kB/s
Requirement already satisfied (use --upgrade to upgrade): requests[security]>=2.1.0 in ./.local/lib/python3.4/site-packages (from soundscrape)
Collecting simplejson==3.3.1 (from soundscrape)
  Using cached simplejson-3.3.1.tar.gz
Collecting soundcloud>=0.4.1 (from soundscrape)
  Downloading soundcloud-0.5.0.tar.gz
Collecting wheel==0.24.0 (from soundscrape)
  Downloading wheel-0.24.0-py2.py3-none-any.whl (63kB)
    100% |████████████████████████████████| 65kB 457kB/s
Collecting wsgiref==0.1.2 (from soundscrape)
  Downloading wsgiref-0.1.2.zip
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-55vzqhlf/wsgiref/setup.py", line 5, in <module>
        import ez_setup
      File "/tmp/pip-build-55vzqhlf/wsgiref/ez_setup/__init__.py", line 170
        print "Setuptools version",version,"or greater has been installed."
                                 ^
    SyntaxError: Missing parentheses in call to 'print'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-55vzqhlf/wsgiref

I will try later today and I'll post the results when I can.

Awesome. Because now it's failing on wsgiref (or is it setuptools? maybe I'm reading that log incorrectly) and not mutagen, which is different from the initial error posted by OP.

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2.7/c/_cffi_backend.o
c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------

Command "/usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-9C7UmU/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-QxX7ir-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-9C7UmU/cffi

Please put three backticks above and below your block of code to help with readability. Thanks!
```
if (isAwesome){
  return true
}
```

wsgiref in pip is not p3 compat, as it has been merged into p3 core.
Needs a requirement specifier in setup.py, ex
setup(
...
install_requires=[
'requests',
...
],
extras_require={
':python_version == "2.7"': [
'wsgiref',
],
},)
how annoying
On Wed, Dec 9, 2015 at 7:54 PM, Nick<EMAIL_ADDRESS>wrote:

Please put three backticks above and below your block of code to help with
readability. Thanks!
if (isAwesome){
  return true
}

—
Reply to this email directly or view it on GitHub
https://github.com/Miserlou/SoundScrape/issues/5#issuecomment-163372259.

the weird thing is that it WAS breaking on mutagen, now it's breaking on wsgiref which supposedly has p3 support???
Oh I see now, you have to include it differently. :disappointed: that IS annoying.

Should be python3 compatible as of 0.23.0

I can confirm it's python3 compatible and installs just fine with pip3, however I had to manually install mutagen as the soundscrape install didn't pull it in correctly.

Everything worked fine after doing pip3 install mutagen

Ahhhhhhhh. I know what's going on here. Shit..
The solution is even uglier than the problem. Really, we just need to have the P3 version of Mutagen in pip and all of this will go away. In my earlier tests, the current version is not compatible, and the TGZ from source control must be used.
Should be fixed in 0.23.3, I hope.

It earlier worked fine for me with pip mutagen installed via pip3 install mutagen - however I had to install it manually... and just now with 0.23.3 it worked nicely on Bandcamp and Soundcloud. So either way it's working great here on Python3 on 15.10. If it's at all possible it'd be nice to stick with pip only packages, and not manually pull in the TGZ but I understand if it's necessary.

Hello,
I am getting the same error as the original poster but my system has Python 2.5.1 installed. Here is what I am getting...
` WBL  ./setup.py build
File "./setup.py", line 40
except EnvironmentError as err:
^
SyntaxError: invalid syntax
WBL  python
Python 2.5.1 (r251:54863, Jul 10 2008, 17:25:56)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

`

Greg is python 3 only.

Have you tried installing via pip2 ?

I have come across such a problem, anybody has a solution for this？thanks
C:\Users\CJJC>pip install gdsCAD
Collecting gdsCAD
Using cached https://files.pythonhosted.org/packages/d0/54/60b48ee74d5ba364c4aaaf6a73e0d47274a501aafd3d64b04ce7b03b40f9/gdsCAD-0.4.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\CJJC\AppData\Local\Temp\pip-install-q3i3z0gl\gdsCAD\setup.py", line 4, in
from git_version import sdist, get_version
File "C:\Users\CJJC\AppData\Local\Temp\pip-install-q3i3z0gl\gdsCAD\git_version.py", line 107
print get_version()
^
SyntaxError: invalid syntax
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in C:\Users\CJJC\AppData\Local\Temp\pip-install-q3i3z0gl\gdsCAD\

I was trying to install audiodiff packege by pip install audiodiff and getting following error. i was stuck from weeks please help...
error:
ERROR: Command errored out with exit status 1:
command: 'c:\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-_ossu1ev\mutagen\setup.py'"'"'; file='"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-_ossu1ev\mutagen\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Admin\AppData\Local\Temp\pip-pip-egg-info-v4c_xij0'
cwd: C:\Users\Admin\AppData\Local\Temp\pip-install-_ossu1ev\mutagen
Complete output (6 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Admin\AppData\Local\Temp\pip-install-_ossu1ev\mutagen\setup.py", line 29
except EnvironmentError, err:
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
command: pip3 install --upgrade audiodiff --user
here i am also atteching screenshot also please have a look.

Please don't file issues on other packages here. This package is the soundscrape repository. Renaming this issue so that it's not a prime suspect in future searches.


bug: robot frozen when a protocol is cancelled

Overview
when you cancel a protocol, it fails to cancel, then the only solution is to restart the frozen robot, and so the previously determined offset data are not saved !
Steps to reproduce
No response
Current behavior
No response
Expected behavior
when a protocol is cancelled, the offset data should not be lost, the robot should not freeze indefinitely
Operating system
Linux
System and robot setup or anything else?
v7.02

I have the same problem with a Windows PC. My student with a Mac laptop can cancel programs without any issue.

I have the same problem.
There was a note that this was fixed in version 7.1.0 https://github.com/Opentrons/opentrons/pull/14215. I am running version 7.1.1, and still seem to be having this problem.
@sfoster1 Seth, do you have any ideas what might be going on?
-Dan

I have experienced this issue/bug over my last runs. The app is trying to cancel the run, but is stopped.
I reset it by turning off and on the OT-2
Not all runs which are cancelled, but 50% so far. It seems like my issue happens when the gantry is suppose to be active: pipetting or moving, but I have not seen this enough to be 100% sure yet.

If you still notice this problem after updating to v7.2.0 (which isn't out yet, at the time of writing), please provide:

Protocol details

Protocol Designer or Python
The Python apiLevel, if you're using Python
If you're able to share it, the protocol file itself and any custom labware definitions that are required to run it

A description of where your protocol was cancelled

Videos or pictures are best, if you manage to catch it

Thank you!

Opentrons OT-2 frozen after attempt to cancel protocol during "Pause until Temp reached" step.
App Software: 7.3.0
Robot: v7.3.0     Firmware Version  v1.1.0-25e5cea  Supported Protocol API Versions v2.0 - v2.18
Running protocol from library: https://protocols.opentrons.com/protocol/516336
For 24 samples, single channel left, multi channel right
Thanks for your help

Hi!
Opentrons OT-2 frozen after attempt to cancel protocol during "Blowing out at well A1 of Fixed Trash in at 92.86 µL/sec" step (run preview line 213, in "ADDING STANDARDS TO PCR tubes" part).
App Software: 7.3.1
Robot: v7.3.1 Firmware Version v1.1.0-25e5cea Supported Protocol API Versions v2.0 - v2.19
Running python protocol written by Opentrons support (apiLevel 2.13), adjusted myself and works fine (except for freezing when cancelling)
Protocol (in txt, could not attach .py file):
Standard_curve_preparation_03072024.txt
Custom labware definition:
evosep_96_pcrstrip_rack.json
Used for preparing STD curve in epps and distibuting to PCR strips.
Left pipette: single p1000
Right pipette: single p300
Thanks a lot for your help!


Refactor integration tests and Travis CI configuration

This is the refactored version of GH-72 with all the notes fixed. Travis CI tests should pass successfully.
Closes GH-72.

Yay, Travis is green! 😃
@johnbellone @Ginja Please, review


Add Cloudflare Pages

Cloudflare Pages is relatively a new player that is very convenient for Cloudflare users (Workers, DNS, WAF, etc.).

Thanks for the contribution!


Ability to resolve lowest compatible versions of specific packages only

First, thank you for the amazing package! We're migrating to it over at the shap repo and seeing wonderful speedups.
My question is about how best to test for compatibility with the lowest supported versions "important" dependencies, whilst using the highest versions of all "dev" dependencies. I have tried a few ways so far, but each has a few issues.
Proposal
It would be fantastic to be able to install the old versions of just the subset of libraries for which value broad compatibility, excluding things like dev dependencies. Something like:
uv pip install --resolution=lowest-subset "numpy,pandas,tensorflow` .[test]

Context: a typical scenario
Taking shap as an example, we have about 10 optional dependencies for which we'd like to test against older versions. These are the major scientific python libraries: numpy, pandas, tensorflow, pytorch, xgboost, et cetera. We think it's quite likely that users will have their own constraints for these packages, so we'd like to support a wide range and avoid overly restrictive pins.
We also have a number of other dependencies like pytest, setuptools & ipython, for which we only really need to use the latest version. These are mostly "dev" dependencies.
In our case, both of these two types of dependencies are included in the "test" extra. We can install them on ci with: uv pip install --system .[test]
Our objective
We'd like to be able to test against the oldest supported numpy, pandas, tensorflow and pytorch.
Ideally we would minimise the number of new dependency pins that we introduce. For example, we might want to test against 2-year-old numpy, but as it happens the package might still work with 4-year-old numpy and we wouldn't want to prevent a user from using that version.
Options explored so far
1. resolution=lowest-direct
I tried the --resolution=lowest-direct flag to test older versions of numpy and tensorflow. However, this also resolves the lowest versions of all the "dev" dependencies like pytest. To mitigate this, we could:

Add lower version constraints for every single dev dependency. These would then have to be maintained manually; AFAIK there is no automated solution like dependabot to update the lower pins according to something like SPEC 0. This seems unwise as we don't really care about the lowest working pytest: we only need the latest version on CI.
Add exact pins for every dev dependency. Again, this is not ideal as they will have to be manually maintained and bumped for every release. It's likely that many of these pins would become outdated over time without a maintainer carefully keeping them under review.

2. exclude-newer
I also tried the --exclude-newer flag from #2088, which could be used to automatically determine the lowest versions that should be supported according to SPEC 0. However, this prevents us from using the latest dev dependencies. In our case, our build fails as we use recent features from setuptools-scm that weren't around two years ago.
3. Explicit constraint in install command
Finally, I also tried adding some constraints into the uv pip install command directly, like: uv pip install --system numpy==1.24.0 '.[test]'. This seems to be the best solution so far, but it doesn't use the lower bounds in our pyproject.toml config and so is a little duplicative.
[Edited for clarity]

This seems like a reasonable use-case (though not yet sure how best to resolve it). One other option is that you could add a constraints file to set lower-bounds on your development dependencies... You could even take the output of the "standard" resolution to seed those constraints.

Just to add another data point and explain my use case: I'm looking for exactly the same thing on Vizro. We use hatch for project management, and I have an environment lower-bounds. This includes both dev dependencies and some of our core dependencies with manually specified lower bounds:
[envs.default]
dependencies = ["pytest"] # and others

[envs.lower-bounds]
# inherits dev dependencies from default environment and then manually specify lower bounds
# for some core dependencies
extra-dependencies = ["pydantic==1.10.13", "dash==2.17.1"]

What I'd like to do is this:
[envs.lower-bounds]
env-vars = {UV_RESOLUTION = "lowest-direct"}

... but unfortunately this means specifying a lower bound for all our dev dependencies. So ideally there would be some way to specify lowest-direct for just a subset of the dependencies.
Also just wanted to echo a huge thank you for the amazing work on uv. It's sped up our development process massively!


Migrate String to StringPrototype, Number to NumberPrototype, etc

Suggestion

🔍 Search Terms

string prototype object number stringprototype
✅ Viability Checklist

My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion
We're always seeing people writing String, Number, Object, and so on, in places where they should be writing their primitive equivalents.
We should mark these as @deprecated so that they show up with strikethroughs in the editor, and make new global interfaces named e.g. StringPrototype so it's more clear what they're for.
/**
 * @deprecated Use `string` when working with strings, or use `StringPrototype` to declare new string methods
 */
interface String {

For back compat, possibly forever, we'll need to declare these as
interface StringPrototype extends String { }

so that existing references to String["charAt"] continue to work and so that other merges continue to function.
📃 Motivating Example

💻 Use Cases

New users coming to TS

@DanielRosenwasser suggested also removing them from the global completion list, which also seems like a good idea

For back compat, possibly forever

Consider removing it in the future, perhaps as part of 6.0? #54500

I don't know if they can ever be removed completely, because otherwise what does new String("foo") return?

@fatcerberus Valid point, and I'd say: A compiler error. If people really want to do that, they can add the declaration themselves.

String the global variable stays put, of course. This is just about the interface


add sum of cube function for JS

Why:
Closes #570
What's being changed:
JS Function for sum of cube was added
Check off the following:

[x] I have reviewed my changes in staging (look for "Automatically generated comment" and click Modified to view your latest changes).
[x] For content changes, I have completed the self-review checklist.

Hey @victoriacheng15
Thanks for your contributions to this project 👍🏻
This PR will be merged shortly 🚀


agda.section.md: Fix header and enumeration

CC @alexarice
/marvin opt-in
/status needs_reviewer

The enumeration isn't fixed yet. Let me amend.

/marvin opt-in
/status needs_reviewer

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/244


Important NuGet packages are not named or linked to

This document mentions that we can use NuGet packages to enable support for newer language features on older frameworks. It should also give information about which NuGet packages these are, or how to find them.

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

ID: 7d0be2e3-8f90-8843-f98c-aadba19bec6d
Version Independent ID: 012620d5-fa79-cc15-341b-3da8e5748890
Content: The relationship between language features and library types - C#
Content Source: docs/csharp/whats-new/relationships-between-language-and-library.md
Product: dotnet-csharp
Technology: csharp-whats-new
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Thanks for noting this @SuuperW
That entire paragraph should be rewritten. Mixing an older framework with a newer version of the language is not supported. This article should be updated to reflect that.


Take care of RegroundExporter, useLeicons, Scala version

That is useLexicons.  More and more of my keyboard is going bad.


Adding component that has no declarative types is ignored

Describe the bug
When you add a component that registers things which don't have schema files (such as custom Expression functions or Adapters) composer

doesn't say it's installed
doesn't update the packages section to show that it's there.

Version

Browser

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

OS

[ ] macOS
[x] Windows
[ ] Ubuntu

To Reproduce
Steps to reproduce the behavior:

Go to community packages
Add one of these packages

Iciclecreek.AdaptiveExpressions.Humanizer (custom functions)
Iciclecreek.AdaptiveExpressions.Javascript (custom functions)
Iciclecreek.AdaptiveExpressions.Python (custom functions)
Iciclecreek.Bot.Builder.Adapters.Console (custom adapter)
It doesn't say that they are "installed" and the settings doesn't add them.

Expected behavior
That all components are installable are installable.
Screenshots
I installed Iciclecreek.AdaptiveExpressions.Javascript, it doesn't show up here:

or here

or here

Additional context

@benbrown @carlosscastro can you comment on this?

Closing as a dupe of https://github.com/microsoft/BotFramework-Composer/issues/7043


Fixup RVA pointers

In case of COL_SIG_REV1, RTTI will store relative pointers, we should add the appropriate cross references for these.

This is probably best done as a data renderer. Having just a bare xref is limiting.


DATA

WHERE  IIS THE PAPER HOW CAN HELP ME TO DOWNLOAD  DATA

The README in the repo start with the paper reference, you can download it for free from the PLOS ONE website. The data sets and their preparation are explained there


Endpoint is not appearing in the wsdl

I've created a new endpoints in an existing webservice,  following the tutorial. I'm not able to see the endpoint in the wsdl for some reason.
i've checked the below,

endpoint is annotated with "@Endpoint"
"@payloadroot" is mentioned (name space and local part are good)
"@requestpayload" and "@responsepayload" are in place
xsd file has the required configs for the bean contracts
service config is good , as the other endpoints are visible wsdl.
let me know , if I need to check anything else.

below is the response from curl cmd

curl --header "content-type: text/xml" -d @request.xml http://localhost:8090/ws
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
SOAP-ENV:Header/
SOAP-ENV:Body
SOAP-ENV:Fault
SOAP-ENV:Client
Validation error
<spring-ws:ValidationError xmlns:spring-ws="http://springframework.org/spring-ws">cvc-elt.1: Cannot find the declaration of element 'sch:activateRequest'.</spring-ws:ValidationError>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

thank you
Siva

Closed due to inactivity.


cannot open interactive.ipynb

Notebook JSON is invalid: 'ename' is a required property
Could you specify the version of jupyter notebook you use?

I have the following packages installed in my Conda environment
jupyter                   1.0.0                    py37_7
jupyter_client            5.3.4                    py37_0
jupyter_console           6.0.0                    py37_0
notebook                  6.0.1                    py37_0

If everything else fails, it should be possible to preview the notebook on Github

Thanks, problem solved🙏

From: Alex Shchur<EMAIL_ADDRESS>Sent: Tuesday, December 3, 2019 6:14:42 PM
To: shchur/overlapping-community-detection<EMAIL_ADDRESS>Cc: NIRVANA<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [shchur/overlapping-community-detection] cannot open interactive.ipynb (#1)
I have the following packages installed in my Conda environment
jupyter                   1.0.0                    py37_7
jupyter_client            5.3.4                    py37_0
jupyter_console           6.0.0                    py37_0
notebook                  6.0.1                    py37_0
If everything else fails, it should be possible to preview the notebook on Githubhttps://github.com/shchur/overlapping-community-detection/blob/master/interactive.ipynb
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/shchur/overlapping-community-detection/issues/1?email_source=notifications&email_token=AFSG6W6ZYEIGGTCZSZZZAQTQWYWRFA5CNFSM4JUTKM6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFY2WZQ#issuecomment-561097574, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFSG6W2T6G3F42ISVXXHDN3QWYWRFANCNFSM4JUTKM6A.


Support display of contributor names with accent

See  https://github.com/Slicer/Slicer/issues/5031

Assuming the data decodes correctly in girder, it's just a regular string and will be displayed properly.


Fix submodule init.

Couldn't use git protocol to download glog for reasons unbeknownst.
Error message:
"""
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
"""
Changing it to https:// fixes it for me.  Probably git protocol requires me to be logged in in some way.

It is most likely because an SSH key is required for the git protocol.
Thanks for the fix, merged.


可以添加一个开关吗

不想要锁死

wdym

Hotkey to enable and disable aim lock is a good idea -- I might add that feature at some point. Thanks for your suggestion.

Hotkey detection can be done as easily as this

不想要锁死

热键检测可以像这样轻松完成


[Feature Request] Press return in folder view to rename request / folder

I'm used to this functionality in VSCode and other apps, rather than having to right click > rename request would be nice to have it here to keep things organised easier

Thanks, let me add it 👍

@Trashpants you can try this Beta build: https://download.proxyman.io/beta/GetAPI_1.1.1_Rename_by_enter.dmg

Enter / Return to rename the current selection

https://github.com/Get-API-App/Issue-Tracker/assets/5878421/7e84bef5-425a-4050-b9a2-4398c5068d05

Hey works as expected although I do get an audible system notification when you press enter - can that be removed?


Feature/add vary headers

This request resolves the caching issue that produces #125 error by copying (and testing) the VaryOnHeadersMixin from winthrop-django.

Codecov Report

Merging #133 into develop will increase coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #133      +/-   ##
===========================================
+ Coverage    98.85%   98.85%   +<.01%
===========================================
  Files           52       53       +1
  Lines         2875     2893      +18
===========================================
+ Hits          2842     2860      +18
  Misses          33       33

Impacted Files
Coverage Δ

ppa/archive/views.py
99.08% <100%> (ø)
:arrow_up:

ppa/common/views.py
100% <100%> (ø)

ppa/common/tests.py
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Looks great.


Adding random phantom generator

There is a need for random phantom generator. Specific aim is machine learning applications: artifacts removal, classification etc. Possibly creating phantoms according to some rule, e.g. avoiding significant overlaps.

work has started: https://github.com/dkazanc/TomoPhantom/pull/79


New Getting Started section

This is a proposal for the new "Getting started" architecture based on the new design document, with some creative interpretations.
This is streamlined towards hosted Mender and Raspberry Pi devices with an fallback to a virtual device. The on-premise demo environment is removed from Getting Started, according to the new design this will be moved to "Server Installation" section, but as this is done in the rewrite feature branch I simply removed it in this PR.
The goal is to demonstrate key use cases, with ease in one location. There is therefore some duplication of text from other sections in the docs or Mender Hub. Usability and readability is the most important here, imo.
In the first round of review, I am primarily interested in comments on structure and "flow". This is hard to review using the Markdown source files, so I have prepare a rendereded version of this PR here:
http://<IP_ADDRESS>:8080/foo/getting-started
Things that I know are broken or are still TODO:

Raspberry Imager screenshot is ugly (this application does not play well with my tiling window manager :))
The design document proposes a "Deploy an configuration update" section, this is omitted for now and can add this after initial feedback.
I have based this PR on the master branch and not the rewrite feature branch. We can figure out where this should go later. I was hoping to get this in to master directly, but it might be complicated due to the rewrite branch.

Ah, I saw your hosting now, which makes it much easier: http://<IP_ADDRESS>:8080/foo/getting-started :)
A few adjustments to my comments based on this:

The virtual vs. physical preparation is much more clear
"Deploy a Docker container update" is too long title. Perhaps "Deploy a container update" ?
Rename "Getting started" to "Get started"? I set "Get started" in the information architecture because it is more actionable.

Pushed updates, note that the link is updated now as well,
http://<IP_ADDRESS>:8080/foo/get-started

Thanks! I think there are some conflicts and the URL you posted for viewing the docs is not quite right.

Aah, I am currently using that URL to host the https://github.com/mendersoftware/mender-docs/tree/documentation-restructuring branch

I have now restored the URL to show current branch,
http://<IP_ADDRESS>:8080/foo/get-started

@drewmoseley @michaelatmender , would appropriate if you can take a look as well now.
@michaelatmender, I have also been thinking about if we can make this page more visually appealing,
http://<IP_ADDRESS>:8080/foo/get-started/preparation
E.g button or/and pictures to klick instead of "boring" link text. Would love to hear what you think. I think it would be ok to have it as a followup.

Updates:

Added (moved) Demo installation to Administration section (this is per new architecture)

Re-written to better align with this section

Re-based on top of master to resolve conflicts.

Resolved most comments, and the restructuring of application updates vs preparation makes sense to me. But before I do it I wanted to discuss this,

The resolution is a bit high, there is a lot of whitespace. Would recommend using lower resolution

I kind of also realized that the resolution was to high after I did it. These are extremely tedious to create so was hoping not to re-do them :). But if you really insist I can do it again with a lower resolution, or at least take some samples before I re-do all of them.
But before I do it, do you think it ok to have all of them in full screen? I was hoping that this way they would be more uniform instead of taking "parts of the screen" on every screenshot and they would have a different size.

You are showing your Tenant Token in some of the screenshots. If it is not secret then this is fine (even better, as it is more realistic). If it is secret then I guess it is too late anyway - you should change it. :)

It is a dummy account on staging, so no problem sharing it :)

Resolved most comments, and the restructuring of application updates vs preparation makes sense to me. But before I do it I wanted to discuss this,

The resolution is a bit high, there is a lot of whitespace. Would recommend using lower resolution

I kind of also realized that the resolution was to high after I did it. These are extremely tedious to create so was hoping not to re-do them :). But if you really insist I can do it again with a lower resolution, or at least take some samples before I re-do all of them.

I do not insist. :) I know this is a hassle and they do the job well. Just keep in mind for the future, whitespace is generally useless. I am (unfortunately) sure we'll have to redo screenshots going forward because the UI will change. For this reason we removed all screenshots at some point but this makes it less user friendly. Better that we do some extra work than user getting confused, perhaps a balance can be found (for places where there is higher risk of dropoff).

But before I do it, do you think it ok to have all of them in full screen? I was hoping that this way they would be more uniform instead of taking "parts of the screen" on every screenshot and they would have a different size.

I think full screen is good, or at least show some context around it (such as the current tab in the UI), otherwise it will be hard to see where you are  as well.

Update now, hopefully addressing all you comments. I did re-do the screenshots for step1-5 which are now in "Preparation" sections. The screenshots in "Application update" are still in higher resolution, I tried re-doing them, but failed halfway and did not feel like restarting and had other things to do :).
Please have a look at,
http://localhost:8080/foo/get-started
This commit is causing conflicts and we probably need to the same update here.

Overall I think this is looking great now and will be an immense improvement! Well done!

Superseded by #1009


[authoring] cursor architecture

Current State
At present, cursors are inserted into the editor by adding a mark with from & to position being equal. The result of this is that a span is inserted at that position in the dom.
The challenges we're encountering with this are:

if the cursor overlaps the bounding box of the editor then it is cut off (https://github.com/dxos/dxos/issues/6086)
when soft-wrapping text the cursor breaks apart words causing the content to shift as the cursor passes through it (https://github.com/dxos/dxos/issues/7465)
The cursor knows nothing about the other block level decorations and so the height doesn't match that of the line (https://github.com/dxos/dxos/issues/5549)

Questions to answer

Is this the best way to add cursors into the editor?
If no, what's an alternative approach that helps address the above challenges?
If yes, are the challenges solvable?

I assume these are cursors from other people looking at the same document, not the user's own cursor? Tooltips might be a way to show these without the first two drawbacks listed. You'd have to directly define their height though, and couldn't rely on CSS sizing based on context.

@marijnh Yes, exactly that, remote cursors of other's in the same document.
Tooltips looks like it's probably the right solution for this, that's very helpful. Thank you!


Remove Eris UI theme

About the PR

It has been discussed with maintainers and art directors that the Eris theme is out of style (mostly because of the eris-themed icons, which we are trying to move away from) along with the similarities to other themes and where it fits alongside the others.

its not used by a lot of people.

Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog
:cl: Ubaser

remove: Eris UI theme has been removed.

I honestly like the Eris UI theme, why remove it?

I honestly like the Eris UI theme, why remove it?

explained why in pr description

I honestly like the Eris UI theme, why remove it?

explained why in pr description

Ah. My bad. Cannot read. I still feel like it has its place. It's just different enough to be unique in it's own way and imho using "its not used by a lot of people." as an argument is bad. Things aren't bad just because they are not used often.