Project images

Right now the project pages look pretty good, but are kind of same-y:

Theoretically these could be dressed up by ReST-savvy users. Realistically, I would love to see project images. I think this is especially important for the innumerable tile-based integrations out there, like this one on twitter:

That gray square seems so drab. (Even if we don't do project images, it'd be a quick fix to add the logo into the card.)
Maybe a URL in an argument to setup() (or in a toml file)? Maybe PyPI can help out with hosting? Maybe a data URL with mimetype? I think there are a lot of options, but having something graphical will really help PyPI keep visual pace in a media-rich world. :)

I don't have a problem with this, though it will likely need @nlhkabu to take a look at how to integrate it into the design sanely. I guess one question would be whether it should be a PyPI specific enhancement that is managed on PyPI, or whether it should be part of the packages themselves.
If the former then we need to add it to the (yet undone) project management pages it it likely makes the most sense to simply have it be a form that people can upload images for. If the latter then it'll need to go through disutitls-sig to figure out how to add it to the packaging metadata.

Thanks for your suggestion, @mahmoud!
As I think you know, but for the benefit of other folks finding this thread: the folks working on Warehouse have gotten funding to concentrate on improving and deploying Warehouse, and have kicked off work towards our development roadmap -- the most urgent task is to improve Warehouse to the point where we can redirect pypi.python.org to pypi.org so the site is more sustainable and reliable. Since project-level images/avatars aren't something that the legacy site has, I've moved it to a future milestone.
But I agree that it would be great to give projects a way to display their logo/screenshot-type images someplace in the page and in, e.g., the Twitter card for the PyPI project URL.
Thanks for the idea, and sorry again for the wait.

Project logo images could show up on the project detail pages, and in search results and similar listings.

@dstufft any more thoughts on this?
I think we could make this a PyPI specific enhancement - that way we could set a minumum size, recommended dimensions, file format, etc.
In terms of displaying it on the page... I'm not sure. Some projects (e.g https://pypi.org/project/black/) display their logo in their project description, so, you'd end up with duplicate images.
One solution to this would be to add options to the image upload area.  For example:

[ ] Use this image for social media links
[ ] Add this image to my project page

I'm checking to see if there's any existing conventions to use for this, but I'm not coming up with much.
CPAN, PHP PEAR, npm, ruby gems, rust crates.io: none of these have logos for packages.
GitLab projects can have a logo. Single file, raster format, square aspect ratio. It's used in a variety of contexts, some as small as 13px, up to Twitter cards which are often displayed at > 400px. https://gitlab.com/gitlab-org/gitlab/issues/17326
GitHub projects don't have a logo that displays on site, but you can add an image used specifically for "social media preview." The recommendation has a 2:1 aspect ratio, 1280×640
https://help.github.com/en/github/administering-a-repository/customizing-your-repositorys-social-media-preview
Maven's Project Object Model used to have a project.logo field, in version 3 of the model. It doesn't in version 4. I've been unsuccessful in tracking down why.
So it seems like there's not an established convention in the world of software-development package-management. Looking beyond that, to what other application designers might have in their media assets for logos and icons, there is a dizzying array of many targets.
I'm afraid that doesn't narrow things down much!

My personal preference is that a icon field should be available in the package itself. For comparison, AppStream (https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html) has much the same data as distutils but includes icons because they have a lot of GUI tools that interact with package management.
My own use case is a gui package manager (Gtk) so anything would be better than nothing. Although having html social media only graphics would be a waste to a desktop app as we'd have to download a project's html page for every search result for example.

Couldn't this be solved by taking the avatar from github/ gitlab for the project? Or specifying an url?

Adding a project image in the packages would require a new version of the Metadata spec.  It’s a high cost.
Image scraped from a project-URL (what you seem to suggest with the mention of github/gitlab) seems fragile: it’s implicit, could give unwanted result, and so would still require a page with options to control it.
The PyPI team seemed to prefer the other approach (see previous comments): specifying a picture URL for the project.   That also seems simpler to me :slightly_smiling_face:   A fallback to generic PyPI logo would round that out.

@merwok that seems like the better idea. Thank you for the explanation.

Note: since https://github.com/pypa/warehouse/pull/1441 and https://github.com/pypa/warehouse/pull/3304, there's now a default image for social media (via og:image) 👍
For example, Twitter:

https://twitter.com/PythonPillow/status/1293903094674161664
Facebook:

https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Fpypi.org%2Fproject%2FPillow%2F

Looks nice! :+1:
Still got my fingers crossed for a customizable one someday :)


Correctly set up https for wren.io

For https to work correctly on wren.io, the IP addresses of the A records need to be updated.
Current setup:
bjorn@thor:~$ dig +noall +answer wren.io
wren.io.		1277	IN	A	<IP_ADDRESS>
wren.io.		1277	IN	A	<IP_ADDRESS>

Required setup is documented here.
The documentation states that after updating the IP addresses, we also need to remove and then re-add the custom domain to the repository, to trigger the process of enabling HTTPS.
I guess only @munificent can perform the DNS changes.

Yeah, this is on me. I'll try to take a peek at this when I get a chance.

OK, that was a long delay, but I finally got around to this. I set up A records for the four IP addresses listed here. I think that's all I need to do on the DNS host? Is there anything else?

After waiting for the GitHub certificate to issue, https://wren.io is now valid, and I've enforced it as the only option 🎉 Thanks @munificent !


Unable to read certain Stata data file (others work fine)

The data file was created with Stata 13.1 and is quite big (~700MB):
julia> using DataRead
WARNING: New definition
    broadcast(Function, DataArrays.PooledDataArray...) at /Users/Tobias/.julia/v0.4/DataArrays/src/broadcast.jl:309
is ambiguous with:
    broadcast(Any, NullableArrays.NullableArray...) at /Users/Tobias/.julia/v0.4/NullableArrays/src/broadcast.jl:101.
To fix, define
    broadcast(Function)
before the new definition.

julia> read_dta("<...>/remigration-long-work.dta")
ERROR: InexactError()
 in readfield! at /Users/Tobias/.julia/v0.4/DataRead/src/DataRead.jl:154
 in handle_value! at /Users/Tobias/.julia/v0.4/DataRead/src/DataRead.jl:142
 in parse_data_file! at /Users/Tobias/.julia/v0.4/DataRead/src/DataRead.jl:199
 in read_data_file at /Users/Tobias/.julia/v0.4/DataRead/src/DataRead.jl:175
 in read_dta at /Users/Tobias/.julia/v0.4/DataRead/src/DataRead.jl:211

I'm using Julia 0.4.5, latest ReadData and latest ReadStat.

Hi, if this is still an issue, please reopen with a reproducible example.


fix(kong-manager): add ignored params to the OIDC migration guide

Description
This pull request adds the ignored parameters to the migration guide for Kong Manager's OIDC feature.
Testing instructions
Preview link:
Checklist

[x] Review label added
[x] Conditional version tags added, if applicable.

For example, if this change is for an upcoming 3.6 release, enclose your content in {% if_version gte:3.6.x %} <content> {% endif_version %} tags (or if_plugin_version tags for plugins).
Use any of the following keys:

gte:<version> - greater than or equal to a specific version
lte:<version> - less than or equal to a specific version
eq:<version> - exactly equal to a specific version

You can do the same for older versions.

@sumimakito Thanks for opening this PR! Do these ignored params only apply to Gateway 3.6 and later?

@cloudjumpercat they do only apply to 3.6, but this file only exists in 3.6, so we don't need to version-tag them.


Add new query property for aligning group by intervals to start times

Allow QueryNodes to automatically align GROUP BY time intervals to the start time for each query sent to influx.  This leverages the offset argument to GROUP BY time() to offset directly to the start time.
Required for all non-trivial PRs

[ ] Rebased/mergable
[ ] Tests pass
[ ] CHANGELOG.md updated
[ ] Sign CLA (if not already signed)

@goakley On a quick read through this looks great! I'll give it a full review soon. In the meantime could you sign the CLA?

Signed 👍

@goakley Thanks for the latest changes, they look good. Everything seems to be working well, but I am having a hard time finding good use cases for this feature that the normal .align() doesn't already cover.
Can you share some examples that lead you to creating this PR? Thanks

The trouble is that InfluxDB ignores the query dates when it determines the start times of the group by time intervals.  If you execute a query with a minimum time set anywhere between 2017-01-10T18:06:00 and 2017-01-10T18:06:59 with a GROUP BY time(1m), the interval will start at 2017-01-10T18:06:00, which means a query time > 2017-01-10T18:06:30 AND time < 2017-01-10T18:08:30 will not only return 3 buckets instead of two, but 2 of those 3 buckets will be "incomplete" since InfluxDB's boundaries force the 1st and 3rd bucket to contain only 30 second of data instead of the full minute.
Here's part of a TICKscript we have for NGINX data processing:
var batchquery = batch
    |query('''
    SELECT DIFFERENCE(LAST(handled))-DIFFERENCE(LAST(accepts)) AS value
    FROM "telegraf"."default"."nginx"
    WHERE environment = 'production' GROUP BY time(1m), "host"
  ''')
        .groupBy(time(1m), 'host')
        .period(2m)
        .every(30s)
        .align()

We want to calculate the number of unhandled requests for the past minute, and without being able to change the group by time bucket alignment, every other query (the ones at 30s instead of 0s due to the every(30s)) gives partially incorrect data because.

You example makes sense to me. I added a few notes where that can be clarified in the doc comments. After that I think this will be ready to be merged. Thanks again!

@nathanielc should I resolve this conflict and squash the fixups?

@goakley Yes please.

@goakley Thanks!


polymer event_handler_test times out in ie-10

 Issue by sigmundch
Originally opened as dart-lang/sdk#19327

Example failure:
http://chromegw.corp.google.com/i/client.dart/builders/dart2js-ie10-win8-html-be/builds/7343/steps/dart2js-ie10 tests/logs/stdio

 Comment by sigmundch

Added this to the Later milestone.
Removed Priority-Unassigned label.
Added Priority-Low label.

 Comment by sigmundch

Removed Polymer-Milestone-Later label.
Added PolymerMilestone-Later label.

 Comment by sigmundch

Removed Polymer-P-2 label.
Added Polymer-Milestone-Later label.

 Comment by sigmundch

Removed this from the Later milestone.

 Comment by sigmundch

Added Polymer-P-2 label.

this test no longer exists


Calibration: depth.png images

Hi,
I am trying to perform the calibration of the Kinect2 and when I execute:
$ rosrun kinect2_calibration kinect2_calibration chess5x7x0.03 calibrate dept
I get the following error message:
OpenCV Error: Assertion failed (points.checkVector(2) >= 0 && (points.depth() == CV_32F || points.depth() == CV_32S)) in boundingRect, file /build/buildd/opencv-2.4.8+dfsg1/modules/imgproc/src/contours.cpp, line 1895
terminate called after throwing an instance of 'cv::Exception'
what():  /build/buildd/opencv-2.4.8+dfsg1/modules/imgproc/src/contours.cpp:1895: error: (-215) points.checkVector(2) >= 0 && (points.depth() == CV_32F || points.depth() == CV_32S) in function boundingRect
Do you have any suggestion about what could be the problem and how to solve it?
Another thing which I don't know if is normal or not, is that the ''XXXXXdepth.png'' and ''0000_sync_depth.png'' images are completely black. Are they suppose to be like that or they should be like in gray scale?
Finally, the maximum frequency for depth is not greater than 3 Hz. This is the message that I am getting when running " rosrun kinect2_bridge kinect2_bridge " :
parameter:
base_name: kinect2
sensor:
fps_limit: -1
calib_path: /home/tmrcv1/catkin_ws/src/iai_kinect2/kinect2_bridge/data/
use_png: false
jpeg_quality: 90
png_level: 1
depth_method: cpu
depth_device: -1
reg_method: opencl
reg_devive: -1
max_depth: 12
min_depth: 0.1
queue_size: 2
bilateral_filter: true
edge_aware_filter: true
publish_tf: false
base_name_tf: kinect2
worker_threads: 4
[Freenect2Impl] enumerating devices...
[Freenect2Impl] 11 usb devices connected
[Freenect2Impl] found valid Kinect v2 @4:3 with serial<PHONE_NUMBER>47
[Freenect2Impl] found 1 devices
Kinect2 devices found:
0:<PHONE_NUMBER>47 (selected)
[Freenect2DeviceImpl] opening...
[Freenect2DeviceImpl] opened
starting kinect2
[Freenect2DeviceImpl] starting...
[Freenect2DeviceImpl] ReadData0x14 response
92 bytes of raw data
0x0000:  00 00 12 00 00 00 00 00 01 00 00 00 43 c1 1f 41    ............C..A
0x0010:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0x0020:  0a 21 33 55 c2 00 17 20 00 08 00 00 10 00 00 00    .!3U... ........
0x0030:  00 01 00 00 00 10 00 00 00 00 80 00 01 00 00 00    ................
0x0040:  31 33 00 00 00 02 03 0d 47 4d 48 38 32 35 2e 31    13......GMH825.1
0x0050:  58 00 00 00 00 00 00 00 07 00 00 00                X...........
[Freenect2DeviceImpl] ReadStatus0x090000 response
4 bytes of raw data
0x0000:  1d 26 00 00                                        .&..
[Freenect2DeviceImpl] ReadStatus0x090000 response
4 bytes of raw data
0x0000:  03 26 00 00                                        .&..
[Freenect2DeviceImpl] enabling usb transfer submission...
[Freenect2DeviceImpl] submitting usb transfers...
[Freenect2DeviceImpl] started
device serial:<PHONE_NUMBER>47
device firmware: 2.3.3913.0.7
default ir camera parameters:
fx 366.21, fy 366.21, cx 255.93, cy 203.813
k1 0.0890476, k2 -0.268077, p1 0, p2 0, k3 0.096709
default color camera parameters:
fx 1081.37, fy 1081.37, cx 959.5, cy 539.5
using sensor defaults for color intrinsic parameters.
using sensor defaults for ir intrinsic parameters.
using defaults for rotation and translation.
using defaults for depth shift.
[DepthPacketStreamParser::handleNewData] image data too short!
[DepthPacketStreamParser::handleNewData] not all subsequences received 0
camera parameters used:
camera matrix color:
[1081.3720703125, 0, 959.5;
0, 1081.3720703125, 539.5;
0, 0, 1]
distortion coefficients color:
[0, 0, 0, 0, 0]
camera matrix ir:
[366.2099914550781, 0,<PHONE_NUMBER>873047;
0,<PHONE_NUMBER>550781,<PHONE_NUMBER>400391;
0, 0, 1]
distortion coefficients ir:
[0.08904761075973511, -0.2680774033069611, 0, 0, 0.0967089906334877]
rotation:
[1, 0, 0;
0, 1, 0;
0, 0, 1]
translation:
[-0.052; 0; 0]
depth shift:
0
[DepthRegistration::New] Using OpenCL registration method!
[DepthRegistration::New] Using OpenCL registration method!
[DepthRegistrationOpenCL::listDevice]  devices:
0: Intel(R) HD Graphics IvyBridge M GT2 (GPU)[Intel]
[DepthRegistrationOpenCL::init]  selected device: Intel(R) HD Graphics IvyBridge M GT2 (GPU)[Intel]
[DepthRegistrationOpenCL::listDevice]  devices:
0: Intel(R) HD Graphics IvyBridge M GT2 (GPU)[Intel]
[DepthRegistrationOpenCL::init]  selected device: Intel(R) HD Graphics IvyBridge M GT2 (GPU)[Intel]
starting main loop
[RgbPacketStreamParser::handleNewData] skipping rgb packet!
[RgbPacketStreamParser::handleNewData] skipping rgb packet!
[kinect2_bridge] depth processing: ~7794.49Hz (0.128296ms) publishing rate: ~2.99179Hz
[kinect2_bridge] color processing: ~4252.88Hz (0.235135ms) publishing rate: ~29.2531Hz
[RgbPacketStreamParser::handleNewData] skipping rgb packet!
[TurboJpegRgbPacketProcessor] avg. time: 26.3784ms -> ~37.9098Hz
[kinect2_bridge] depth processing: ~9661.82Hz (0.1035ms) publishing rate: ~2.99693Hz
[kinect2_bridge] color processing: ~4246.25Hz (0.235502ms) publishing rate: ~29.9693Hz
[TurboJpegRgbPacketProcessor] avg. time: 21.9903ms -> ~45.4745Hz

Thanks in advance.

If you run Protonect, which is located inside libfreenect2, does it display depth images?
I would recommend to not use the CPU depth processing. It seems like you have beignet installed. so you could enable opencl depth processing in libfreenect2 cmake and compile it and kinect2_bridge again.

Thanks for your answer.
Protonect doesn't display depth images.
Although, I was able to enable opencl depth processing in libfreenect2 by doing cmake and compiling it again. This also fixed the problem with the depth publishing rate.

$ rosrun kinect2_bridge kinect2_bridge
parameter:
base_name: kinect2
sensor:
fps_limit: -1
calib_path: /home/tmrcv1/catkin_ws/src/iai_kinect2/kinect2_bridge/data/
use_png: false
jpeg_quality: 90
png_level: 1
depth_method: opencl
depth_device: -1
reg_method: opencl
reg_devive: -1
max_depth: 12
min_depth: 0.1
queue_size: 2
bilateral_filter: true
edge_aware_filter: true
publish_tf: false
base_name_tf: kinect2
worker_threads: 4
[OpenCLDepthPacketProcessor::listDevice]  devices:
0: Intel(R) HD Graphics IvyBridge M GT2 (GPU)[Intel]
[OpenCLDepthPacketProcessor::init]  selected device: Intel(R) HD Graphics IvyBridge M GT2 (GPU)[Intel]
[Freenect2Impl] enumerating devices...
[Freenect2Impl] 11 usb devices connected
[Freenect2Impl] found valid Kinect v2 @4:3 with serial<PHONE_NUMBER>47
[Freenect2Impl] found 1 devices
Kinect2 devices found:
0:<PHONE_NUMBER>47 (selected)
[Freenect2DeviceImpl] opening...
[Freenect2DeviceImpl] opened
starting kinect2
[Freenect2DeviceImpl] starting...
[Freenect2DeviceImpl] ReadData0x14 response
92 bytes of raw data
0x0000:  00 00 12 00 00 00 00 00 01 00 00 00 43 c1 1f 41    ............C..A
0x0010:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
0x0020:  0a 21 33 55 c2 00 17 20 00 08 00 00 10 00 00 00    .!3U... ........
0x0030:  00 01 00 00 00 10 00 00 00 00 80 00 01 00 00 00    ................
0x0040:  31 33 00 00 00 02 03 0d 47 4d 48 38 32 35 2e 31    13......GMH825.1
0x0050:  58 00 00 00 00 00 00 00 07 00 00 00                X...........
[Freenect2DeviceImpl] ReadStatus0x090000 response
4 bytes of raw data
0x0000:  5d 26 00 00                                        ]&..
[Freenect2DeviceImpl] ReadStatus0x090000 response
4 bytes of raw data
0x0000:  5f 26 00 00                                        _&..
[Freenect2DeviceImpl] enabling usb transfer submission...
[Freenect2DeviceImpl] submitting usb transfers...
[Freenect2DeviceImpl] started
device serial:<PHONE_NUMBER>47
device firmware: 2.3.3913.0.7
default ir camera parameters:
fx 366.21, fy 366.21, cx 255.93, cy 203.813
k1 0.0890476, k2 -0.268077, p1 0, p2 0, k3 0.096709
default color camera parameters:
fx 1081.37, fy 1081.37, cx 959.5, cy 539.5
using sensor defaults for color intrinsic parameters.
using sensor defaults for ir intrinsic parameters.
using defaults for rotation and translation.
using defaults for depth shift.
[DepthPacketStreamParser::handleNewData] not all subsequences received 0
camera parameters used:
camera matrix color:
[1081.3720703125, 0, 959.5;
0, 1081.3720703125, 539.5;
0, 0, 1]
distortion coefficients color:
[0, 0, 0, 0, 0]
camera matrix ir:
[366.2099914550781, 0,<PHONE_NUMBER>873047;
0,<PHONE_NUMBER>550781,<PHONE_NUMBER>400391;
0, 0, 1]
distortion coefficients ir:
[0.08904761075973511, -0.2680774033069611, 0, 0, 0.0967089906334877]
rotation:
[1, 0, 0;
0, 1, 0;
0, 0, 1]
translation:
[-0.052; 0; 0]
depth shift:
0
[DepthRegistration::New] Using OpenCL registration method!
[DepthRegistration::New] Using OpenCL registration method!
[DepthRegistrationOpenCL::listDevice]  devices:
0: Intel(R) HD Graphics IvyBridge M GT2 (GPU)[Intel]
[DepthRegistrationOpenCL::init]  selected device: Intel(R) HD Graphics IvyBridge M GT2 (GPU)[Intel]
[DepthRegistrationOpenCL::listDevice]  devices:
0: Intel(R) HD Graphics IvyBridge M GT2 (GPU)[Intel]
[DepthRegistrationOpenCL::init]  selected device: Intel(R) HD Graphics IvyBridge M GT2 (GPU)[Intel]
starting main loop
[kinect2_bridge] depth processing: ~7085.5Hz (0.141133ms) publishing rate: ~30.3295Hz
[kinect2_bridge] color processing: ~4428.99Hz (0.225785ms) publishing rate: ~29.9962Hz
[OpenCLDepthPacketProcessor] avg. time: 11.3291ms -> ~88.268Hz
[TurboJpegRgbPacketProcessor] avg. time: 24.7299ms -> ~40.437Hz

Are the depth images still black, or does it work now? What is the OS and the Kernel that you are using?

I am using Ubuntu 14.04 and the kernel version is 3.16.0-31-generic
The depth images are not completely black right now. It is possible to observe different shadows using a regular image viewer. Although, I can't manage to find a good calibration. I have been collecting sets of 200 images for color (mono), ir and sync; but it takes time to calculate the parameters and when performing the depth calibration, for some images it throws the following error message (which I can overpass deleting the files corresponding to that image):
frame: ./0102_sync_depth.png
frame: ./0103_depth.png
OpenCV Error: Assertion failed (points.checkVector(2) >= 0 && (points.depth() == CV_32F || points.depth() == CV_32S)) in boundingRect, file /build/buildd/opencv-2.4.8+dfsg1/modules/imgproc/src/contours.cpp, line 1895
terminate called after throwing an instance of 'cv::Exception'
what():  /build/buildd/opencv-2.4.8+dfsg1/modules/imgproc/src/contours.cpp:1895: error: (-215) points.checkVector(2) >= 0 && (points.depth() == CV_32F || points.depth() == CV_32S) in function boundingRect
Thanks once again for the help.

But the IR and Color calibration worked, right?
For each of the depth files there should also be a .yaml file with a list of coordinates points: [.... Does this file exist and does it contain any points.
Oh, and you need to calibrate IR before running the depth calibration.

Yes, both IR and Color calibration seem to be working.
I get the following type of .yaml files:
0248_color_points.yaml
0230_sync_ir_points.yaml
0230_sync_color_points.yaml

the depth and ir and ir_points with the same number go together. is there a list of points inside the *_ir_points.yaml file of one of the frames that failed during calibration? Or is the depth image of that frame zero? Did you removed all files from the calibration folder before you did the new calibration with the OpenCL depth processor, or could it be that some images are still from the previous calibration with the CPU depth processor, where all the depth images were zero?
If the illumination is bad it could be that the pattern is not detected in the image, but you would see that. You could use any pattern you want, but the PR2 checker board is pretty small and does not have so many points. And if you print out a pattern, glue it on something flat, so that the pattern is always flat and does not bend. And the amount of images per set is variable. Just make sure to cover the whole image area, place the pattern in several distances, rotations, etc.

Unfortunately I deleted those files and I can't see them again, so I will have to perform another calibration and see if I get some similar problem. Although, I can remember that the depth image of those frames were not zero.
After your first answer I performed a whole new calibration with the OpenCL depth processor and I removed all the files from the calibration folder (/kinect2_bridge/data), in order to use the ones you provided.
The checker board from the PR2 that I talked about is 7x6x0.108m. I tried once with it and it didn't work as expected. but maybe I didn't collect enough images. Would you recommend to fix the pattern to a surface and instead move the camera?

You can move the camera or the pattern, (or both), that does not matter.


[Bug] [Devops] The status of the completed Flink batch task is UNKNOWN

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
The status of the completed Flink batch task is UNKNOWN

What you expected to happen
The status of completing the Flink batch task should be completed
How to reproduce
Execute Flink batch tasks on Dinky, and then check the task status in the operations center.
Anything else
No response
Version
1.0.0
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

i will fix it

link #3373


Visually separate data type description from API reference

Reading the page, difficult to differentiate where the description ends and the API reference starts. Example screenshot:

https://github.com/codatio/codat-docs/compare/feat/clearer-api-ref?expand=1


Update node.js and jquery

This is the 1.6 version of #24289
1.4, 1.5, and 1.6 are all based on bookinfo 1.15.0. Master advances to 1.16.0.
Testing done:

Manually tested that all three star versions show up when viewing the website
make test passes
No errors in the browser console.

Note that many tests expect the bookinfo images to already exist and the images do not get built in the pull request process.
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

@brian-avery: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

gencheck_istio_release-1.6
db7d2cf68515c5cc28252b2bad82706be93c63fb
link
/test gencheck_istio_release-1.6

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@brian-avery: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-mixer-k8s-tests_istio_release-1.6
9ab48aeed640ae76a6409a2bc8581e685821fcb0
link
/test integ-mixer-k8s-tests_istio_release-1.6

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@brian-avery: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-mixer-k8s-tests_istio_release-1.6
9ab48aeed640ae76a6409a2bc8581e685821fcb0
link
/test integ-mixer-k8s-tests_istio_release-1.6

integ-telemetry-k8s-tests_istio_release-1.6
9ab48aeed640ae76a6409a2bc8581e685821fcb0
link
/test integ-telemetry-k8s-tests_istio_release-1.6

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Did you want to merge this in for before we publish 1.6.1? Or should we wait until after publication?

Merged from Master to release-1.6 and release-1.6 down. Closing.


ImportError goes away after restart

This issue tracker is a tool to address bugs in Flask itself.
Please use the #pocoo IRC channel on freenode or Stack Overflow for general
questions about using Flask or issues not related to Flask.
If you'd like to report a bug in Flask, fill out the template below. Provide
any extra information that may be useful / related to your problem.
Ideally, create an MCVE, which helps us
understand the problem and helps check that it is not caused by something in
your code.

I'm working on a large Flask project. Occasionally, Flask will give me an ImportError, for example the following:
NoAppException: While importing "application", an ImportError was raised:

Traceback (most recent call last):
  File "/Users/fintan/anaconda/lib/python2.7/site-packages/flask/cli.py", line 235, in locate_app
    __import__(module_name)
  File "/Users/fintan/Dropbox/LearnerShape/server3/application.py", line 1, in <module>
    from learnershape.app import *
  File "/Users/fintan/Dropbox/LearnerShape/server3/learnershape/app.py", line 4, in <module>
    from learnershape import core
  File "/Users/fintan/Dropbox/LearnerShape/server3/learnershape/core/__init__.py", line 2, in <module>
    from . import views
ImportError: cannot import name views

When I restart the server, the error goes away and Flask runs perfectly.
Do you think this could be due to a) a bad import structure, b) Flask not reloading modules correctly, c) .pyc files?
Expected Behavior
Flask should only show an ImportError when there is a problem with module imports.
This problem occurs at least twice a day, but I haven't been able to get it to occur yet in a minimal version. If anyone has time to look into this, I can add you as a collaborator to our repository.
Actual Behavior
Flask shows an ImportError which persists until Flask is restarted, then goes away.
NoAppException: While importing "application", an ImportError was raised:

Traceback (most recent call last):
  File "/Users/fintan/anaconda/lib/python2.7/site-packages/flask/cli.py", line 235, in locate_app
    __import__(module_name)
  File "/Users/fintan/Dropbox/LearnerShape/server3/application.py", line 1, in <module>
    from learnershape.app import *
  File "/Users/fintan/Dropbox/LearnerShape/server3/learnershape/app.py", line 4, in <module>
    from learnershape import core
  File "/Users/fintan/Dropbox/LearnerShape/server3/learnershape/core/__init__.py", line 2, in <module>
    from . import views
ImportError: cannot import name views

Environment

Python version: 2.7.11
Flask version: 1.0.2
Werkzeug version: 0.15.2

Please use Stack Overflow for questions about your own code. This tracker is for issues related to the project itself. Be sure to include a minimal, complete, and verifiable example.


easyeda api response changed

JSON structure changed, "BOM_Supplier Part" is now "Supplier Part"

+1, with this change the script is now working.

@yaqwsx , anything blocking this change?

Based on this comment it's seems @yaqwsx has lost his drive to update this but he points to another similar tool https://github.com/uPesy/easyeda2kicad.py
I will keep this open, but I will definitely checkout the suggested tool 😁


Implement the ThreadDiagnosticsResetCounts method for the zcl command

Problem
ThreadNetworkDiagnostics ResetCounts do not make any action on the counters.
Reading the ThreadNetworkDiagnostics NetworkName attributes fails/returns error.
Change overview
Implement the ResetCount method in GenericThreadStackManagerImpl_OpenThread that calls the reset counters apis for the active thread instance.
Abtraction for platforms that do not implement thread.
Update return code when encode the Networkname tlv.
Testing
Manually tested.
Provision thread device with the python controller.
Read a few counter attributes
ChildRoleCount
TxDataCount
RxDataCount
Send the reset command
zcl ThreadNetworkDiagnostics ResetCounts 130 0 0
Re-read the attributes and validate that the attributes value resetted.

Will it still be possible to cherry-pick this for TE6 or is it too late ?

@bzbarsky-apple

Seems fine, but does that Attributes::SetOverrunCount bit (pre-existing) still make sense?

OverunCount doesn't exist in Thread stats. So for now it is not implemented at run time. As such, it will be read from the standard read mechanism and that is why I left that bit there.

Will also cherrypick #9853 as a dependency

Commit chain for src/include/platform/ConnectivityManager.h (in master) seems to be:
* a60039c0a - (14 minutes ago) Implement ThreadDiagnosticsResetCounts method and call attach to the zcl command callback. Fix getting thread networkname attribute (#10029) - jmartinez-silabs (HEAD -> master, origin/master, origin/HEAD)
* 3e86fbb1c - (2 days ago) Make the attribute access Read method a bit easier to implement. (#9976) - Boris Zbarsky
* 50ad13fda - (2 days ago) [platform] remove legacy functions in ConnectivityManager (#9946) - Jiacheng Guo
* 45715ccba - (4 days ago) [TE6] Read Thread Network Diagnostics attributes from platform (#9853) - jmartinez-silabs
* eda07d580 - (3 weeks ago) [TE6] Read Ethernet Network Diagnostic attributes from platform at run-time (#9587) - Yufeng Wang
* 53dd5833f - (4 weeks ago) Force include lib/ files with full path (#9387) - Zang MingJie

The commit [TE6] Read Thread Network Diagnostics attributes from platform (#9853) - jmartinez-silabs  is the first one that shows up in TE6 branch.

also 3e86fbb1c does not apply cleanly ("deleted by us:   src/app/clusters/general_diagnostics_server/general_diagnostics_server.cpp"). I have assumed that one deleted.
So I cherrypicked as dependencies #9946 and #9976


site address and geolocation update

the code works fine for python2 but nor for python3, as the result of the items() is not list  thus the need to cast it as a list type

The issue was resolved with another pull-request. Thanks for picking it up


Indirect dependencies fail to resolve correct version of gem

I have published two gems.

async depends on nio4r
async-dns depends on async

nio4r has two versions: 1.x which is available for MRI 2.0+ and 2.x which is available for MRI 2.2.6+ only.
On travis, tests for async work fine for all versions of MRI 2.x
https://travis-ci.org/socketry/async
It correctly installs nio4r depending on Ruby version and availability.
However, async-dns which only depends on async, doesn't work the same way. It fails to install the correct version of nio4r for older MRI versions, instead insisting to install nio4r 2.0 which obviously fails.
https://travis-ci.org/socketry/async-dns/jobs/220522083
I feel that this should work, where testing async-dns on MRI 2.0 should work the same as testing async, in terms of what version of nio4r is selected.
Let me know if you need any more information or help to figure this one out.

Okay, I found simply updating the travis configuration to trusty appears to have resolved this issue. I'm not sure why. I'll leave this issue just in case there is something else going on here, but feel free to close it as this issue is now effectively solved.

Please add the output of bundle env when things were both failing and passing, thank you!

Uh, I'm sorry, but what would be the best way to do it in travis?

Add bundle env to the install section before bundle install?

Okay, here is the build matrix when working on trusty, with bundle env output.
https://travis-ci.org/socketry/async-dns/builds/220536182
Here is the build matrix when not working, with bundle env output.
https://travis-ci.org/socketry/async-dns/builds/220538839

It looks like it's failing with Bundler 1.7.9 and passing with Bundler 1.14.6, so it seems we've fixed the issue as some point.

Awesome, that does appear to be the case. Thanks so much for your time investigating this issue.


[cudnn] Add version v9.4

Fix https://github.com/microsoft/vcpkg/issues/40882

[x] Changes comply with the maintainer guide.
[ ] SHA512s are updated for each updated download.
[ ] The "supports" clause reflects platforms that may be fixed by this new version.
[ ] Any fixed CI baseline entries are removed from that file.
[ ] Any patches that are no longer applied are deleted from the port's directory.
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

/azp run

The changes in portfile.cmake should be mirrored in FindCUDNN.cmake to be available after installing the package.

/azp run

Thanks for the fix for current CUDAs!


ITE: drivers/flash: remove flash write protection API

This API has be removed in Zephyr 2.8, and does not need to be used
as a static function. Because flash_it8xxx2_write_protection(false)
is not supported. If the IT83XX_GCTRL_EPLR register in the
flash_it8xxx2_write_protection(false) is written as 1, the flash
write region will not be protected later, only be cleared by
power-on reset.
Signed-off-by: Tim Lin<EMAIL_ADDRESS>

Hi @keith-zephyr and @brockus-zephyr ,
This PR needs your review, thanks.

Zephyr 2.8

Zephyr 3.0? 2.8 does not exist.

Should the EPLR register get set by the ChromeEC flash driver?

A CL(Gerrit) has been created for this.


Improving the AboutSection.js

What would you like to share?
I would like to improve the AboutSection.js of this project making it engaging for the users and make it more expressive.
Additional information
No response
Would you like to work on this issue?

[X] Yes, I want to work on this issue!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I would like to work on this issue, please assign this issue to me under GSSoC'23.

Yooo welcome to WebXDAO! :tada:
Please do not forget to read our Contribution Guideline and README.

Hi, I don't think we have design for About section for v3. But if you have suggestion, feel free to discuss it.
Note: Please follow our README.

Hey I can help you with designing and developing the page. I have been selected for GSSoC  as contributor.

I'm closing this issue due to inactivity. Please feel free to reopen it if you'd like to contribute or have further discussions.


apps/openssl: add -propquery command line option

Fixes #13656. Right now all openssl commands use a NULL propq. This patch adds a possibility to specify a custom propq in a command line option. The implementation follows the example of set_nameopt/get_nameopt.
Also, the app_get0_propq() needs to be called after the command line arguments have been processed. I see no point in loading a global variable into a local variable here, so the app_get0_propq() is called everytime a propq is needed. The apps/pkcs12.c has already been using this approach.
Checklist

[x] documentation is added or updated
[X] tests are added or updated

ping for the second review

This pull request is ready to merge

Merged into master.  Thanks for the contribution.


Allow "protocol P : class, AnyObject..." for Swift 4 compatibility.

Because of the way we modeled the 'class' constraint in Swift <= 4, we
allowed both 'class' and 'AnyObject' to be specified on a protocol,
even in Swift 4 when they became equivalent. Recent refactoring
started rejecting such code; allow it now.
Fixes rdar://problem/34496151.

@swift-ci please smoke test and merge

@swift-ci please smoke test and merge


Why does Terminal::Getpass die on ^C?

Using prompt the user can cancel a prompt with Ctrl+C:
$ raku -e 'say prompt("Password: ")'
Password: ^C
$

But using getpass this results in an exception being thrown:
$ raku -MTerminal::Getpass -e 'say getpass'
Password: Died
  in block  at ... (Terminal::Getpass) line 30
  in sub unix-getpass at ... (Terminal::Getpass) line 24
  in sub getpass at ... (Terminal::Getpass) line 8
  in block <unit> at -e line 1
$

It's not uncommon for a user to Ctrl+C away from an unexpected password prompt, so this seemed to me to be a bug worth fixing. However this seems to have been intentionally introduced in a4573e484aab101da5fcf7de1959bfd8371f0d27. What's the rationale behind this?

@jjatria Thanks for your comment!
As you mentioned, it seems better that getpass behaves consistently as prompt does.
I'll fix it sometime soon.

What's the rationale behind this?

Honestly to say, there aren't any rationales.
I undeliberately called die as a one of the ways of breaking a loop.


The app crashed when using android_tracer.py

My command is
python android_tracer.py -a "com.facebook.lite" -c "*WebView*" -m "loadUrl"
and the result is
Searching method "loadUrl" in loaded classes... [ERROR]: the connection is closed
and my app crashed at the same time .
i need help TAT

it seems that the crash happened when running
Java.enumerateLoadedClasses()
but i still don't know why.
btw, when I changed the app , it worked

Without knowing too much details, the App may be protected by an anti-debugging feature. You should ask the developers for an build, without this feature.

Thank you very much!


Ubuntu 16.04

Hi, the readme indicates Ubuntu 14.04, has any tests or work been done on 16.04 yet?

Hi. Yes, we've tested 16.04 with newton yesterday - and found it works well.

http://<IP_ADDRESS>:8080/job/ScaleIO-Juju2-OpenStack-Newton/

But this version is not released now - We've checked only master version.


Automate and check for regressions std/ number of constraints

Find a clean (and automated) way to document the number of constraint for each circuit component (maybe even API?) in gnark/std (per curve, per backend).
This would give valuable information to compare gnark/std to other libraries, and to help make optimal design decision when picking a circuit component.
See also #171 and #80

note: number of constraints is a good metric for Groth16, but can be deceiving with PlonK (i.e custom gates may lower the number of constraints but augment the CPU time on the prover side)

Idea suggested by @yelhousni : have an object, similar to the go std timer, that measures constraints added by a piece of circuit.
Define(...) {

start := "time".Now()
api.Mul(x, y)
// ...
nbConstraints  := "time".Since(start)

}

harder to do accurately with PlonK post-compile linear expression factorizations.


Fix redirection for empty value

I think this pull request is better than the other, "empty" function was treating identically "" and "0" values.
So i test the property to see if it's exactly "0" or not
what you think ?

@Ladylain I've gone ahead and implemented it in the way I think it would work best. See https://github.com/rainlab/user-plugin/commit/ba27e63dd2738ffe3788da8e5a69b85dfcfd6e52 - I've credited you for the initial implementation. Please feel free to give that a try.


Generalization ability of model

@jessemelpolio Hello, I found that scripts/train_half_style.sh only takes one image (i.e. datasets/half/202/train/202.jpg) as your training data. In the testing phase, this trained model can only take the same image (i.e. dataset/half/202/test/202.jpg) as input and output a bigger one. What I want to know is whether this already trained model is only valid for this picture. If I want to test other image, does the model need to be retrained？I think this is a bit like ZSSR.

@Zheng222 Sorry for the late reply. It's quite different from super resolution as we discussed in our paper. In fact, if you feed a well-trained model with other images, you can get an image with 2x size of the input. But the result is only structurally similar to the input but is similar to the training image in texture styles. This is also mentioned in our paper. See texture transfer parts and some amazing results.

@jessemelpolio Is it necessary to train a proprietary model parameter for each picture in your experiment?

Yes. It's normal in texture synthesis task.

Ok, thank you for your reply.


[VS Code] Starting collaboration session: Already connected to a workspace.

Error:
Starting collaboration session: Already connected to a workspace.
Steps to Reproduce:
1.
2.

Version Data

extensionName
VSLS

extensionVersion
1.0.379

protocolVersion
2.2

applicationName
VSCode

applicationVersion
1.35.0

platformName
Linux

platformVersion
4.18.0-21-generic

Hi @windcrack , thank you for reporting the issue. Would you give us some more information to investigate ?  Does this consistently happen for you or happened once ? Also , your logs may provide us with helpful information. You can access them via the "Live Share: Export Logs" command from the command palette (ctrl + shift + p) and attach them to the issue.

Duplicate of #2253. A fix will be in the update coming this week.


Shared weight

Hello! I have a  question that you use shared-weight convolutional layer.
Is there are any reason you use share-weight layers? I can't not find any mention about this in paper.
Thankyou!

Hi,
Do you mean the encoder parts?

Yes, share-weight layers in encoder part.

hi,
I used different encoders for different input images. you can check it in the HDR part.

Hi. Thank you for your answer.
Maybe, I misunderstand the code because I am not used to Keras. I am so sorry.
I think this code means :
X_i_32 = self.encoder_1(X_i, 1)
X_i_64 = self.encoder_1(X_i_32, 2)
X_i_128 = self.encoder_1(X_i_64, 4)
X_i_256 = self.encoder_1(X_i_128, 8)
using shared-weight encoder layer for each same LDR.
I think it need to be write as
X_i_32 = self.encoder_1_1(X_i, 1)
X_i_64 = self.encoder_1_2(X_i_32, 2)
X_i_128 = self.encoder_1_3(X_i_64, 4)
X_i_256 = self.encoder_1_4(X_i_128, 8)

Ah,
I got your point. Yeah, I'm using same encoder (shared-weight as you say) for each input images.
One reason is that I tried to make the model to have the same number of parameters as stated in the paper.
the other one is that I think sharing the weight for different levels (in one input image) makes sense because they are just feature of the input images.
Please correct me if I'm wrong or please share your progress if you try with different encoder for different level of encoding.
Thanks!

Hello. Thank you for your answer.
I try to make code with pytorch. Actually I made it
And I find your code with tensorflow and keras.
So I just check that is there any difference with mine. haha
I mean my question is just curious about code. I also don't know exact code of paper.
Again, thank you for your answer.
Thank you.

have you tried to run some metrics? I mean PSNR or HDR-VDP? Have you reached the results are shown in the paper? If so, please share with me ^^

I actually build this code for my paper. But this model is not for comparison only just for ablation study. So, I trained it with my own dataset. So I don't compare the results with paper. And Actually Paper said it's HDR's range in [0,1] but I use HDRformat (RGBE) for groundtruth. So, my network's groundtruth not in that range it also different.

Hope to see your paper soon.


[feature][cli] Pulsar shell - Env variables interpolation - part 4

Master Issue: #16250
Motivation
In order to help cluster operators to create scripts and automation around Pulsar shell, it's very useful to have the possibility to read env variables inside the cli.
Modifications

Added Bash variable replacement inside the CLI. The only supported formats are ${variable:-default} and $variable.
The replacement is handled by commons-text library  (StringsSubstitutor).

Usages:
export tenant=mytenant
export namespace=mynamespace

./bin/pulsar-shell
pulsar> admin tenants create $tenant
pulsar> admin tenants create $tenant/$namespace

[x] doc-required

Closing as incorporated in https://github.com/apache/pulsar/pull/16268


Use tfedit to stop directly using deprecated S3 resources

We still use deprecated resources indirectly in our modules, but this takes us from 26 deprecated usages down to 14, overall.
Refs: #678

BTW, in tfedits README, there's a suggested way to migrate state and thus keep TF from thinking it needs to destroy and recreate resources. For a deployed application, we'd want to look into that. For this template, I didn't bother.

I see now that the S3 Terraform documentation says:

Each of the new aws_s3_bucket_* resources relies on S3 API calls that utilize a PUT action in order to modify the target S3 bucket. These calls follow standard HTTP methods for REST APIs, and therefore should handle situations where the target configuration already exists. While it is not strictly necessary to import new aws_s3_bucket_* resources where the updated configuration matches the configuration used in previous versions of the AWS provider, skipping this step will lead to a diff in the first plan after a configuration change indicating that any new aws_s3_bucket_* resources will be created, making it more difficult to determine whether the appropriate actions will be taken.

These new resources should be identical to the existing configuration, so we can skip terraform import but we'll have to deal with a larger plan when we initially make the change.


Fix grammar in repo description

Remove the first "your" in the repo's description, and consider removing both.

A mock store for your testing your redux async action creators and middleware

Bonus points: capitalize Redux. :)

Thanks a lot for the contribution!

It's also in the repo description. There's an Edit button to the right of it at the top of the home page.

Thanks, fixed


[Feature] A tool/command to export structure

There isn't a way to export a multi-block txt

You're just meant to write the files yourself, its unlikely I'll ever make a tool for automatically exporting and creating the files due to the amount of required work versus gain, given most people have not had issues with making the files manually.

a tool for making the multiblock files in game would make a world of difference for this mod. You couldn't intergrade it with say world edit files or something along those lines?


Error when trying to generate new Personal Site

Reporting an Issue or Missing Feature
Receiving error whenever I try to use the New-PnPPersonalSite cmd on a new licensed user. For additional info I'm connecting to our admin site via app authentication with a certificate and using Powershell 7.1.3.
Expected behavior
Cmd runs fine and backend SPO timer jobs kick off to provision the site.
Actual behavior
Receive an error of: New-PnPPersonalSite: Attempted to perform an unauthorized operation.
Steps to reproduce behavior
Running:
New-PnPPersonalSite -Email<EMAIL_ADDRESS>What is the version of the Cmdlet module you are running?
1.6.0
Which operating system/environment are you running PnP PowerShell on?

[ X] Windows
[ ] Linux
[ ] MacOS
[ ] Azure Cloud Shell
[ ] Azure Functions
[ ] Other : please specify

I've also tested Request-PnPPersonalSite and connected both with a normal user account and with a certificate. Every combination gives me the exact same message. Issue persists in 1.7.0

Reproduced with 1.7.43

Duplicate issue of https://github.com/pnp/powershell/pull/1158. Using this cmdlet requires connecting in specific ways. You can find the updated documentation on this here:
https://github.com/pnp/powershell/blob/f3721faedc7c969a5aa34cfd33fcc7ce824a45b4/documentation/New-PnPPersonalSite.md
Closing this issue assuming this answers your question. If not, feel free to reopen.


MsgRoom is not working

Why you still keep updating the lib?

There are 2 other servers: mrcs and my own. Not sure if mrcs is still working. Just checked and mine seems to be broken, dunno why.
Next time create an issue on the msgroom-server repo to tell me it's broken.
It's also considered rude to bug people about them still maintaining something.
But yeah this library and my server are currently considered inactive but supported (as in repo is inactive but it's supposed to work)
I'll look into fixing my server.


Serialization codegen fix for enum fields

Contributions: We are not currently taking public contributions - see our contributions policy. However, we are accepting issues and we do want your feedback.

Description
Fixed bug in serialization codegen where enum fields updates would not be received.
Tests
Fixed issue in MonoBehaviour Playgrounds feature I'm working on in other branch
Documentation
N/A
Primary reviewers
@jamiebrynes7 @samiwh

Indeed, we only have an enum in the nested type test among all tests... I assume there should be one on the blittable component, and a few on the exhaustive test? I could add it in this PR but I'm not 100% sure exactly where


[Run] Plugin calculator failed to load and would be disabled

ℹ Computer information

PowerToys version: 0.31.1
PowerToy Utility: Calculator
Running PowerToys as Admin: No
Windows build number: 19042.804

📝 Provide detailed reproduction steps (if any)

Just start PowerToys

✔ Expected result
❌ Actual result
During startup: plugin calculator failed to load and would be disabled
📷 Screenshots

Report
PowerToysReport_2021-02-12-03-13-33.zip

2021-02-11 14:47:41.8301|ERROR|PowerLauncher.Plugin.PluginManager+<>c__DisplayClass24_0.InitializePlugins|
	Exception full name:
	 <System.TypeLoadException>
	Exception message:
	 <Could not load type 'Wox.Plugin.ThemeChangedHandler' from assembly 'Wox.Plugin, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'.>
	Exception stack trace:
	 <   at Microsoft.Plugin.Calculator.Main.Init(PluginInitContext context)
   at PowerLauncher.Plugin.PluginManager.<>c__DisplayClass24_1.<InitializePlugins>b__1()
   at Wox.Infrastructure.Stopwatch.Debug(String message, Action action)
   at PowerLauncher.Plugin.PluginManager.<>c__DisplayClass24_0.<InitializePlugins>b__0(PluginPair pair)>
	Exception source:
	 <Microsoft.Plugin.Calculator>
	Exception target site:
	 <Void Init(Wox.Plugin.PluginInitContext)>
	Exception HResult:
	 <-2146233054>

@davidegiacometti, @mykhailopylyp
Is the plugin completely disabled in this case or only until the next program start? (Asking because of an idea for plugin management.)

@htcfreek

Is the plugin completely disabled in this case or only until the next program start? (Asking because of an idea for plugin management.)

It will try to load the plugin during the next program start. But probably a user will get the same message box.

@htcfreek

Is the plugin completely disabled in this case or only until the next program start? (Asking because of an idea for plugin management.)

It will try to load the plugin during the next program start. But probably a user will get the same message box.

If it would have been completely disabled, I would have suggested to add an error warning in plugin manager. But in this case this doesn't make sense.
But maybe we could add a hint which is shown until the next success plugin initialization in plugin manager. Something like "Plugin failed to load at last startup."
@mykhailopylyp What do you think about this? Should I open an issue?

@htcfreek

But maybe we could add a hint which is shown until the next success plugin initialization in plugin manager. Something like "Plugin failed to load at last startup."
@mykhailopylyp What do you think about this? Should I open an issue?

It is definitely not a must-have as we show the dialog box. Also, that warning should be communicated between the two processes.  So it seems like such complication does not worth it. Of course, if you think otherwise, feel free to open the issue.
Anyway, we can improve the message in the dialog.

Is there a way I can disable this error? It shows up every time I turn on my computer.

@aminya

Is there a way I can disable this error? It shows up every time I turn on my computer.

Try to update to the latest PowerToys version. It would be possible to disable plugin in order not to get the message after #10405 is done.

@aminya does a newer version fix this?  We are currently on 0.66. /needinfo


Update AliCloud support and documentation

Update Alicloud support to use the newer cmd line tool aliyun instead of aliyuncli.
Tested this with fio:
$ ./pkb.py --cloud=AliCloud --benchmarks=fio --zone=cn-beijing-g --os_type=ubuntu1804 --benchmark_config_file=fio_ali.yaml
$ cat fio_ali.yaml
worker: &worker
  AliCloud:
    machine_type: ecs.g5.4xlarge
    zone: cn-beijing-f

worker_disk: &worker_disk
  AliCloud:
    disk_type: remote_ssd
    disk_size: 100
    mount_point: /scratch

fio:
  vm_groups:
     default:
       vm_spec: *worker
       disk_spec: *worker_disk
       vm_count: 1

@dlott thank you for reviewing. I have made the necessary changes or added clarifications for most of the comments. Please take a look.
I am still working on the ssh_config comment you had, will reply when I have something.

@dlott I have addressed the ssh_config comment as well. This is good to go from my perspective. Please let me know what you think.

@dlott thanks for the feedback. Please take a look at the updated version.


Support PQL versioning

Support PQL versioning specified by pilosa/#261

I'm moving this from In Progress to Backlog since it's not currently assigned to anyone.

Closing this, since this is supported on master


Incorrect FTP link for published studies with SumStats

Go to https://www.ebi.ac.uk/gwas/downloads/summary-statistics
In the table of studies with Summary stats, search for 30093612
The FTP link is wrong or truncated? This may be with the table presentation code, but more likely with the code to create the table data

the code generating the URL is getting confused due to the apostrophe in the author name.

This should not be released until the Data Release (27-Jul-2020) is pushed to production.


[core-amqp] Shared code between ServiceBusMessageBatch and EventDataBatch should be moved to core-amqp

EventHubs has an EventDataBatch class that allows the user to incrementally add messages to a batch, checking if the message batch doesn't exceed the EventHub's max message size.
We need to add an equivalent to ServiceBus and ideally we should be able to share code. This might mean moving some of the batch code into core-amqp.

Issue logged already - https://github.com/Azure/azure-sdk-for-js/issues/7067
Here's my draft PR that adds sendBatch - https://github.com/Azure/azure-sdk-for-js/pull/7527, just waiting for the final API to rebase and implement on :)

We need to add an equivalent to ServiceBus and ideally we should be able to share code. This might mean moving some of the batch code into core-amqp.

Hmmm, didn't think that, code from getMaxMessageSize can be moved. Keeping the issue open to migrate shared code.

The code for getMaxMessageSize is fairly small and is tightly coupled with the need to initialize the sender link if it does not exist which we do for a few other operations as well. Therefore, I dont see the benefit of moving it to core-amqp
The code for the batch class itself on the other hand is big enough and shares a lot of event hubs and therefore is a candidate to be moved to core-amqp.
Renaming this issue to reflect the above as we already had #7067 for the actual work to support creating of a batch. And also moving the issue to the Backlog.

Closing in favor of #12397


Pause menu design/visual

Pause menu options are sketched out in #65 . Need some idea of the visual on how these things are going to be layed out. Something straight forward.

in master


Modify file but not change in running progress?

Hi, sorry to bother.
I change the src/main/java/io/anserini/search/SearchMsmarco.java, but the running progess not change when I run sh target/appassembler/bin/SearchMsmarco -hits 1000 -threads 1 -index ../DeepCT-master/lucene-index-msmarco.deepct -queries collections/msmarco-passage/collectionandqueries/queries.dev.small.tsv -output dev.score.try again. Please help me, thank you!

the running progess not change

What does this mean?

Sorry, I didn’t express it clearly. I wanted to get the score during BM25 retrieval, so I tried to modify the src/main/java/io/anserini/search/SearchMsmarco.java file. But re-run the command after the modification, it seems that my modification did not take effect, so I would like to ask how to get the score retrieved by BM25?

Did you rebuild with Maven?

Did you rebuild with Maven?

No. If I rebuild maven, it will be fine?
Thank you！


Create cmake script for target identification

stop using hip-config.cmake and capture the GPU_TARGET option from what is on the system

Solved with #2018


Edgeware not creating desktop icons with the setting selected

As the title says, I have the setting on to create desktop icons, and I can't get them to show up. Using windows 11, so maybe an issue with that?

same problem


Error in casetify.py

I'm getting this error on bootup. Any ideas?

Logger: homeassistant.setup
Source: custom_components/lutron_caseta_pro/casetify.py:38
First occurred: November 19, 2020, 11:00:44 PM (1 occurrences)
Last logged: November 19, 2020, 11:00:44 PM
Error during setup of component lutron_caseta_pro
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component
    result = await task
  File "/config/custom_components/lutron_caseta_pro/__init__.py", line 161, in async_setup
    await async_setup_bridge(hass, config, fname, bridge)
  File "/config/custom_components/lutron_caseta_pro/__init__.py", line 170, in async_setup_bridge
    devices = await casetify.async_load_integration_report(fname)
  File "/config/custom_components/lutron_caseta_pro/casetify.py", line 38, in async_load_integration_report
    integration_report = json.load(conf_file)
  File "/usr/local/lib/python3.8/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/local/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.8/json/decoder.py", line 340, in decode
    raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 838 column 1 (char 16111)

The error indicates an issue with the JSON integration report that would have been pasted into the configurator dialog when the component was setup. Maybe try the setup again?


Icons are a bit cut of

I noticed that the Icons are always a bit cut off (see 1 and 2).
I don't know how to fix this, but this only applies to icons that use this return (3) instead of this (4).
Because these look normal (5).

+1

Any fixes for this? Makes the plugin unusable for editors.

Thank you for reporting this and sorry for the delay. I will start looking into fixing these recent issues asap!


Refactor retry_test.go to table driven tests

Please provide a description of this PR:
This PR refactors retry_test.go to follow table driven tests.
To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[x] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

Please check any characteristics that apply to this pull request.

[x] Does not have any user-facing changes. This may include CLI changes, API changes, behavior changes, performance improvements, etc.

Hi @deveshkandpal24121990. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/ok-to-test

@deveshkandpal24121990: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
a203e60e988ed381d21b67e1dcf398162f8aa0c2
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@deveshkandpal24121990: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
c61725470ba25e62e5f0d1add657cc8678a33dc6
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test release-notes_istio


Updated job definition models, handlers, and scheduler apis

Updated models to support job definition
Added scheduler apis for job definitions
Added handlers for job definition REST apis

Rebased from main, added async apis support.

Out of curiosity, what is the set of possible values for timezone? Are we using UNIX time zone definitions like America/Los_Angeles, for example?

Out of curiosity, what is the set of possible values for timezone? Are we using UNIX time zone definitions like America/Los_Angeles, for example?

Correct.

cc @ellisonbg @3coins
Discussed implementation of task runner during standup parking lot today. I wanted to document my suggestion of a better implementation than persisting next run time in the DB records and doing an indexed scan on a set interval. I believe this indexed scan strategy for finding which jobs to run (which I'm terming "job discovery") is not using the correct data structure and can result in inefficiencies if the scan interval gets lowered to something on the order of 1s. An indexed scan is roughly on the order of O(lg N), where N is the number of total jobs.
My suggestion is that we use an in-memory min heap / priority queue ordered by next_run_time. Whenever we create a new job definition, we create a dictionary storing job_definition_id and next_run_time. The task runner then just needs to peek at the top of the heap on a set interval and only check the current time against that. If the current time is greater than next_run_time, we poll from the heap until that condition is false. Upon execution of a job, the task runner will also need to calculate the next_run_time and add that back into the heap. Given that peeking the heap is only O(1), and that doing this in memory is several orders of magnitude faster (without the overhead of a database query through an ORM), this gives us much better performance and ability to handle large numbers of scheduled jobs.
For persistence, we can simply rebuild the heap on server startup. Again, next_run_time can be computed from the job definition so this is trivial. We will also immediately want to start polling from the heap, given that many jobs may have had their next run time set before server startup.
However, one open question is how we would handle updating the next run time within the heap upon updating a job definition's schedule. This is difficult because heaps don't support efficient random access. I'd say there are two possibilities:

Use an in-memory auxiliary dictionary dict that maps job definition ID to its next_run_time. We only run a job we poll from the queue if this matches the dictionary. For example, let's say I have a job definition X scheduled to run at job 1. Then my model would look like this (where the first element is the top of the heap):

heap: [ { job_definition_id: X, next_run_time: 1 } ]
dict: { X: 1 }

I then update the schedule such that the next_run_time for this job definition X is 2. Then the model becomes
heap: [{ job_definition_id: X, next_run_time: 1 }, { job_definition_id: X, next_run_time: 2 }]
dict: { X: 2 }

Then, when we poll from the heap, we check the job_definition_id against dict and ensure the next_run_time values are equal. When the clock hits 1 and the task runner polls, it does NOT run the job because the values don't match. When the clock hits 2 and the task runner polls from the heap, it runs the job because the values match.
We could also do a database query rather than maintaining an in-memory dictionary, but that would be slower.
If job definitions are getting updated way too frequently, then the performance of the heap suffers (since it's logarithmic to the size of the heap) and could trigger a memory overflow. However, assuming the number of job definition updates << the number of job definitions, then the aforementioned time complexity is preserved.

Use a SortedMap data structure mapping next_run_time to an array of job definition IDs. O(1) random access means that given next_run_time is sufficiently unique, removing a job should only take roughly O(1) (removing the job definition ID from the hopefully small array). This supports O(lg N) pushing/polling, but peeking is now O(lg N). And of course, there's more overhead with maintaining a balanced BST than a simple binary heap, so the constant factor is also higher.

I suggest approach 1), which I think is more suitable to our use-case.

@dlqqq thanks for digging into the details of job scheduling. Some overall comments:

I think the in memory min-heap approach makes sense here. You are right to call out the difficult to increasing the poll frequency of the job runner if it takes O(N) to scan the jobs each time.
The difficulty of mutating elements of in the min-heap will also come up elsewhere. For example, if a job is paused, but otherwise unchanged, then we will need to test each job to see if it has been paused and if so, don't run it.
I believe we will need an auxiliary data structure to help us manage mutated jobs. I think it is fine to start with your (1) in memory approach, but if we run into OOM's we can shift to using the database.
We may be able to use Python's builtin min-heap implementation (https://docs.python.org/3/library/heapq.html). The default implementations of Python's data structures are usually well tested and optimized.

@dlqqq @ellisonbg
Based on recent discussions regarding the task runner, I am going to drop the next_run_time column from table and the model and use the heap for managing the job executions.

@3coins
Wanted to emphasize another point: this dict is essentially an in-memory write-through cache for the job definition fields the task runner needs to check before running a job. Maybe we just call it the "job definition cache" for future discussion. Again, we are caching here as this as task runner polling may occur very frequently and we want to avoid disk load during it.
@ellisonbg

For example, if a job is paused, but otherwise unchanged, then we will need to test each job to see if it has been paused and if so, don't run it.

Yes, in the future we may have to make the job definition cache have additional fields per job definition id. Perhaps give the dictionary a structure something like:
{ X: { next_run_time: 1, paused: True } }

and make sure this dict is updated accordingly by the pause/unpause handlers. Or alternatively we just use SQLite here ;^).

I think it is fine to start with your (1) in memory approach, but if we run into OOM's we can shift to using the database.

I agree. SQLite allows you to create a separate in-memory database, which likely has much higher memory packing than a Python dictionary. However, I think this SO post sufficiently demonstrates that with 10k job definitions, we can reasonably assume a maximum memory consumption of about ~20-30 MB. So I can't help but be a bit skeptical that an OOM error will happen before the user's system runs out of disk space.

@3coins Honestly, after giving Brian's suggestions more thought, I think going for an in-memory SQLite DB is more appropriate than trying to build our own (worse-performing) version via Python dictionaries. Think this is the direction you should pursue in your task runner PR.

Made all updates as per feedback. Merging the changes.


Card Title Typo

The landing page says "Connected communities BC", it should say "Request to Participate" https://bcgov.sharepoint.com/:i:/r/teams/04708/Shared Documents/Research/Usability Testing/Screenshots/2 - log out button, landing page card title.png?csf=1&web=1&e=Mc9J11

This has been fixed - CLOSED


OOP in PenguinMod? (Object Oriented Programming)

I know that scratch is only designed to work with strings, numbers, and booleans, but wouldn't it be so cool if we could access all of the other javascript types? We could use actual objects instead of using JSON. We could create custom classes and use bigint, symbol, and all of these other javascript types. and all the normal blocks have a cast already, so would OOP in penguinmod be possible?

I know that scratch is only designed to work with strings, numbers, and booleans, but wouldn't it be so cool if we could access all of the other javascript types? We could use actual objects instead of using JSON. We could create custom classes and use bigint, symbol, and all of these other javascript types. and all the normal blocks have a cast already, so would OOP in penguinmod be possible?

thought about doing it, never came to a decisions on it
might add this into the development repo thingy

Only wonder how something like this would integrate with the project smoothly
would it potentially need a separate tab?
Or would the block editor need to be majorly changed to support different formats alongside blocks
Whatever the solution is, I would love to have this as a feature

uhhh i made it myself

dude you made a suggestion you can’t just close it?

yes they can


Consistent handling of proj_transform failures

We know that pj_transform commonly fails when being ask to transform into spherical mercator.
In mapnik-vt 0.7.0 we used mapnik::transform_path_adapter to reproject geometries: https://github.com/mapbox/mapnik-vector-tile/blob/v0.7.1/src/vector_tile_processor.ipp#L817-L890.
The mapnik::transform_path_adapter is specifically designed to cope with pj_transform failures (by skipping](https://github.com/mapnik/mapnik/blob/master/include/mapnik/transform_path_adapter.hpp#L85-L102). This is an important solution in order to keep large shapes mostly intact that might have a small percentage of points which extend outside the valid range of spherical mercator.
The task now is to ensure that we still skip with the new reprojection that is used, which is happening inside here: https://github.com/mapbox/mapnik-vector-tile/blob/887e82a1011f02ad9ef0aa756018b03e6665c81d/src/vector_tile_processor.ipp#L1252-L1264

Just need to make small fix to MVT's calculating of bounding boxes and this can be closed.

@flippmoke My understanding is different. The concern is that if (!prj_trans_.backward(x, y, z)) return false at https://github.com/mapbox/mapnik-vector-tile/blob/master/src/vector_tile_strategy.hpp#L61 may lead to incorrectly closed polygons. We need to skip failed transforms instead of aborting on them.

This problem is deeper that I first anticipated. I worried that incorrect handling of polygons would lead to dropped features or incorrectly closed polygons. Rather what happens is that an exception is thrown which aborts all rendering.
To recap: An invalid coordinate is one that - when reprojected to the target projection from the source projection - triggers a non-zero return from pj_transform. This is very common in geodata that is global - many natural earth shapefiles will trigger this because they have a few coordinates at -180.000001 instead of exactly -180.0. Or even coordinates way outside those extents. Given the new behavior, even if 99% of the coordinates are within the valid range that can be reprojected to mercator, all rendering will abort here.
Starting at https://github.com/mapbox/mapnik-vector-tile/commit/11aed657e599251bf9ad6cbe0405a251b6bb3643#diff-2f08898bf55283bb72b03127f87d076f two things changed:

We dropped mapnik::transform_path_adapter which, as per above, previously skipped failed pj_transform.
We moved from a pipeline that did clip -> reproject -> scale to int to reproject -> scale to int -> clip.

My sense is that clipping first was likely avoiding the need for skipping in mapnik::transform_path_adapter in most cases because clipping had already removed the coordinates that might trip up pj_transform.

Testcase at https://springmeyer.s3.amazonaws.com/poly-lat-invalid-4269.zip. This has intentionally placed coordinates that cross pass -90. It renders fine in QGIS:

It renders fine in mapbox-studio with<EMAIL_ADDRESS>(sorry for the barely visible shape, squint it is there):

It breaks mapbox-studio with<EMAIL_ADDRESS>
The blank screen is because each tile is returning a 404 with Can't transformm geometry.

tracking fix at https://github.com/mapbox/mapnik-vector-tile/issues/116


pragma annotations and ghci

This is not strictly speaking a bug report.
Here is my question: is it possible to use pragma annotations in code that is read by ghci?
My problem: it looks like I miss something so that ghci correctly reads hlint pragma annotations, assuming this is possible.   Here is a stupid but minimal example showing the problem:
module Main where

main :: IO ()
main = do
  print "testing hlint annotations within ghci"
  someFunc >>= print

someFunc :: IO Int
someFunc = return 40 >>= return . (+2)
{-# ANN someFunc "HLint: ignore Use fmap" #-}

This code compiles correctly with ghc, and the annotation is correctly processed by the command-line tool hlint, but not by ghci.
$ ghci
GHCi, version 8.0.1: http://www.haskell.org/ghc/  :? for help

<interactive>:1:1: error:
    Not in scope: ‘System.Console.Editline.Readline.stifleHistory’
    No module named ‘System.Console.Editline.Readline’ is imported.
Loaded GHCi configuration from /home/damien/src/dotfiles/global-haskell/.ghc/ghci.conf
Loaded GHCi configuration from /home/damien/src/dotfiles/global-haskell/.ghci
>>> :l app/Main.hs
[1 of 1] Compiling Main             ( app/Main.hs, interpreted )

app/Main.hs:10:1: error:
    • Ambiguous type variable ‘t0’ arising from an annotation
      prevents the constraint ‘(Data.Data.Data t0)’ from being solved.
      Probable fix: use a type annotation to specify what ‘t0’ should be.
      These potential instances exist:
        instance (Data.Data.Data a, Data.Data.Data b) =>
                 Data.Data.Data (Either a b)
          -- Defined in ‘Data.Data’
        instance Data.Data.Data Ordering -- Defined in ‘Data.Data’
        instance Data.Data.Data Integer -- Defined in ‘Data.Data’
        ...plus 15 others
        ...plus 38 instances involving out-of-scope types
        (use -fprint-potential-instances to see them all)
    • In the annotation: {-# ANN someFunc "HLint: ignore Use fmap" #-}

app/Main.hs:10:18: error:
    • Ambiguous type variable ‘t0’ arising from the literal ‘"HLint: ignore Use fmap"’
      prevents the constraint ‘(Data.String.IsString
                                  t0)’ from being solved.
      Probable fix: use a type annotation to specify what ‘t0’ should be.
      These potential instances exist:
        instance a ~ Char => Data.String.IsString [a]
          -- Defined in ‘Data.String’
        ...plus one instance involving out-of-scope types
        (use -fprint-potential-instances to see them all)
    • In the annotation: {-# ANN someFunc "HLint: ignore Use fmap" #-}
Failed, modules loaded: none.
>>>

Thanks!!

Do you have OverloadedStrings turned on? Does putting a type annotation :: String in the annotation fix it?

Hi Neil,
On 09/08/2017 00:02, Neil Mitchell wrote:

Do you have OverloadedStrings turned on? Does putting a type annotation
:: String in the annotation fix it?

Yes, I have it OverloadedStrings automatically turned on in my
ghci.conf file.
and yes, adding the type annotation fixes the ghci error.  The parens
are mandatory, though:
{-# ANN someFunc ("HLint: ignore Use fmap" :: String) #-}

This workaround solves the issue for me now.  Thanks!
Do you think that this a bug, or instead that this is a limitation that
should be mentioned somewhere in the README?
Thanks again, for your responsive feedback and for this great tool!
Damien

I think it's an inevitable consequence of how GHC works. Worth noting in the README though.

Am I right in thinking annotations are actually Haskell expressions? Maybe you could introduce an annotation type which would help the type system? I could imagine something like:
{-# ANN module (Ignore "Use fmap") #-}

@ocharles - they are indeed Haskell expressions. But if I add a new constructor it has to be in a library and users have to add a compile time dependency on hlint, which would be a lot sadder than a type annotation.

Ah right, that's quite a gotcha. Thanks for clarifying.


research grammar correction of generated text

added it to the end of the paper: section: FIXING TEXT
https://paper.dropbox.com/doc/ECO-research-wbS3Kez47vRaaCLIaHdxI


Audit of exported CSV and SQL from browser

From @jlagetz:
Contributions:
Count: 6,378,695
Total: $12,620,631,640.70
Top contributors (based on contributor_full_name)

Top ZIP codes (amount desc):

Expenditures:
:warning: It also looks like full name on expenditures isn't really full name.
Count: 2,531,071
Total Amount: $13,100,377,232.31
Top by candidate full name (doesn’t appear that these are actually full names) (amount desc)

Top by Payee_last_name (amount desc)

Clearly, we can only sum on the Summary table, but it's got to see how the export worked. Looks like there's an issue with how full_name is loaded on Expenditures

Keep in mind also, when looking at the sums, that the filings include amended filings. One has to be careful to not over-count. If you have {filing_id=x,amend_id=0,amount=1000.00}, {filing_id=x,amend_id=1,amount=1500.00}, and {filing_id=x,amend_id=2,amount=2000.00}, the final amount used needs to be 2000.00, not 4500.00.


Vba Runtime Error 14 Out Of String Space

Hello. I am running into the same error mentioned by @madmatthemad and @CatalinRadoi here: https://github.com/VBA-tools/VBA-JSON/issues/50
But my error does occur on the same line @timhall suspected here https://github.com/VBA-tools/VBA-JSON/blob/b6108e88f956f36397fe82cd805233898e734a73/JsonConverter.bas#L159
JsonString = VBA.Replace(VBA.Replace(VBA.Replace(JsonString, VBA.vbCr, ""), VBA.vbLf, ""), VBA.vbTab, "")
Hitting the same endpoint with Postman shows successful Status 200 OK in 15.8 seconds, with a size of 15.36MB.
Has anyone successfully worked around such an issue by chunking the response? Thank you for your input.

Hi Merce333,
I confess I did get around it in the end.   I installed Excel on my 64bit 32Gb RAM gaming PC, and it flew through with no problems.   Previously, I was running Excel in Parallels Desktop on my mac, and that limits the amount of RAM available to Excel to only 2Gb I believe...
Not a great deal of help if you are limited by the hardware you're running on though I'm afraid.

Closing, will track this in #90. Will look into this in an upcoming batch of fixes.

The great Tim Hall commented on a thread I started! Thanks, for everything you do, Tim - I'm a big fan!


Feature: Expose  HTMLElement ref

Description
Currently, <ContentEditable /> creates a ref internally that references the base element it returns. By allowing users access to that ref, we can use the editor as a base for additional functionality composition without resorting to findDOMNode.
The specific use case this would address is wrapping the editor in Ant Design's Dropdown, Popover and Tooltip components. The Dropdown component is especially useful for generating contextual menus for the editor that retain the same design as other Ant components.
These components look for a ref argument in the child component function/constructor. If they can't find a ref argument, they use findDOMNode, which is deprecated in StrictMode.
I've tried to wrap <ContentEditable /> in a component with its own ref that simply returns <ContentEditable />, then tried to use document.querySelector<HTMLElement>(`#${id}.${className}`) inside useImperativeRef to reference the editable div. This wasn't successful. Although I could wrap <ContentEditable /> in another div, this complicates layout styling for the editable div, leaving a less-than-ideal DX.
Impact
This would benefit users of Ant Design who want to create context menus with this library. I don't have exact numbers, but I remember reading that it's the second-most-used design library in the ecosystem, so I imagine it will benefit a decent number of people.
Probably the main concern is whether or not this feels like it's exposing internals. I don't think so, since someone who wants to directly access the container could class it or wrap it with a reffed div and go to town, but it's not my call.
Proposed Solution
It should be fairly straightforward to look for an incoming ref and update it at the same time as the current callback (from src):
  const ref = useCallback(
    (rootElement: null | HTMLElement) => {
      if (userProvidedRef) {
        if (typeof userProvidedRef === 'function') {
          userProvidedRef(rootElement);
        } else {
          (userProvidedRef as MutableRefObject(HTMLElement | null).current = rootElement;
        }
      }
      // defaultView is required for a root element.
      // In multi-window setups, the defaultView may not exist at certain points.
      if (
        rootElement &&
        rootElement.ownerDocument &&
        rootElement.ownerDocument.defaultView
      ) {
        editor.setRootElement(rootElement);
      } else {
        editor.setRootElement(null);
      }
    },
    [editor, userProvidedRef],
  );

I'd be happy to submit this in a PR if approved.

I think there is already a PR for this https://github.com/facebook/lexical/pull/6381

ContentEditable doesn't really do anything special, you don't really lose compatibility with anything else if you copy and modify its implementation to behave however you want. At the end of the day it's just rendering a div with a ref that calls editor.setRootElement, plus some extra code to handle a placeholder state.

Ahh excellent! I didn't see anything when searching issues. I'll close this and look forward to the update. Thanks!

ContentEditable doesn't really do anything special, you don't really lose compatibility with anything else if you copy and modify its implementation to behave however you want. At the end of the day it's just rendering a div with a ref that calls editor.setRootElement, plus some extra code to handle a placeholder state.

Fair, but the less I can fork from the reference implementation, the better. Sounds like this is working itself out. Thanks again.

Of course, it's usually better to have less code to maintain, I only mentioned that in case you were blocked and wanted to ship something sooner than the next release and didn't want to depend on a nightly after it's merged. Since the PR is straightforward and comes from a core maintainer at Meta I suspect it will be merged early next week. The release cadence is usually every ~3-8 weeks. Meta doesn't internally depend on npm releases, so that's all driven by other stakeholders.

Sounds good. Thanks for the context!


Extend range of starting waypoint

Hello,
I am writing a python script for my thesis that extracts distances from the brouter website. It uses origin and destination coordinates to set the routing waypoints. The profile 'river' is used due to the subject of the research being inland shipping lanes. However, these coordinates are often not on the waterways resulting in a error 'starting point to far from a route' (see image below). Is there a possibility to change the profile that the nearest waterway route to the starting point is taken? I tried the solution using 'assign waypointcatchingRange = 1000' but it didn't work.

Thanks for your help, I will try again! Do you maybe have an example of your second suggestion?


Can't load fonts

Font names are dated in the file fbr.h edit as follows:
/*

Resource file for ncplot.

capture the output of xlsfonts and look for a font
that has all zero for the sizing. eg.

-bitstream-bitstream charter-bold-r-normal--0-0-0-0-p-0-adobe-standard
Pick a font name and fill out the HEADER and TRAILER font defines below.
Put "*" (ie. stars) where there are zeros except for the x-pitch.
x-pitch is the third zero in the example above.
Can't seem to find a scalable font that is consistent across Linux platforms!
*/
#if 0
// centos
#define BASE_FONT_HEADER "-adobe-utopia-bold-r-normal--",
#define BASE_FONT_TRAILER "--p--iso10646-1",
#else
// Ubuntu
#define BASE_FONT_HEADER "-bitstream-bitstream charter-bold-r-normal--",
#define BASE_FONT_TRAILER "--p--adobe-standard",
#endif
static String fallback_resources[] =
{
"*defaultFontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"*font24: " BASE_FONT_HEADER "-240-" BASE_FONT_TRAILER
"*font18: " BASE_FONT_HEADER "-180-" BASE_FONT_TRAILER
"*font14: " BASE_FONT_HEADER "-140-" BASE_FONT_TRAILER
"*font12: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"*font10: " BASE_FONT_HEADER "-100-" BASE_FONT_TRAILER
"plRCfontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"controlFormfontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"printParmsRCfontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"specOptFormfontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"editSpecShellfontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"*asciiText.fontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"*headerText.fontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"*statsText.fontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER

I have ncplot working under Ubuntu now.  Edit Makefile and uncomment the Ubuntu section, then build.


UnboundLocalError in Guide Point Processing

Hi Brendan,
I tried to go on past the segmentation stage after I thought a reasonable landmarks_df was generated. On the same linux systemn, I ran the import guidepointprocessing which yielded:
<module 'guidepointprocessing' from '/MakandaProjects/CAP-Automated-Pipeline/src/guidepointprocessing.py'>
Running the next block gives the error:

UnboundLocalError                         Traceback (most recent call last)
in
13                                   landmarks_df)
14
---> 15 GuidePoints.extract_guidepoints(display = False)
/MakandaProjects/CAP-Automated-Pipeline/src/guidepointprocessing.py in extract_guidepoints(self, display)
785
786         self.get_segmentation_files()
--> 787         self.process_short_axis(display=display)
788         self.process_long_axis(display=display)
789         self.process_landmarks()
/MakandaProjects/CAP-Automated-Pipeline/src/guidepointprocessing.py in process_short_axis(self, display)
263             point_lists = [RV_endo_pts,
264                           RV_epi_pts,
--> 265                           RV_septal_pts,
266                           LV_epi_pts,
267                           LV_endo_pts]
UnboundLocalError: local variable 'RV_septal_pts' referenced before assignment
--
Can't go past that to plot the guide points, when I run the next block of code:

FileNotFoundError                         Traceback (most recent call last)
in
3 coordinates = []
4 model_folder = '../data/processed/' + patient
----> 5 with open(model_folder + '/GP_ES.txt', 'r') as f:
6     for i,line in enumerate(f.readlines()):
7         if i > 0:
FileNotFoundError: [Errno 2] No such file or directory: '../data/processed/22-102_ccc-004r_pre/GP_ES.txt'
I checked the directory structure and there indeed wasn't a file GP_ES.txt.

Hi, I believe I have fixed this issue by (A) creating an empty list of septal points, in case none are found, and (B) only processing guide points for SAX slices we want in the model (this excludes apical/basal slices that were not selected during SAX slice selection).
Updated guidepointprocessing.py, lines 201-202 to include the following check:
# check if slice_id is a slice/view that should be included in the final model
            if int(slice_id) in [int(x) for x in self.landmarks_df['Slice ID']]:

And lines 238 to 247 to include:
# Get intersection points between RV endo and LV epi
                if len(RV_endo_pts)>0 and len(LV_epi_pts)>0:
                    pairs = self.get_intersections(RV_endo_pts, LV_epi_pts, distance_cutoff=4.5)

                    if len(pairs) > 0:
                        RV_septal_pts = RV_endo_pts[np.unique(pairs[:,0])] # deletes intersection from RV endo pts
                        RV_endo_pts = np.array([pnt.tolist() for i, pnt in enumerate(RV_endo_pts) if i not in np.unique(pairs[:,0])],
                                              dtype=np.int64)
                else:
                    RV_septal_pts = []

To update your project, replace guidepointprocessing.py with the code provided in commit d258689. Let me know if that corrects the issue you are having.


on message not call if i send message from https://api.telegram.org/file/bot/sendMessage

hi guys.
why when i send message from URL like (https://api.telegram.org/file/bot/sendMessage) the message event not call?

The bot.on('message') function is called when bot receive a message, not when send.

@sidelux thanks for response but do you know how can i understand when somebody called sendMessage api?


wrapQtAppsHook fails to wrap PIEs

Describe the bug
Unfortunately, as I just discovered, some executables are built as PIEs (e.g. keepassxc) and these won't be wrapped after this change: https://github.com/nixos/nixpkgs/commit/88146a095f5040b5beb9612c63604493aefa9fd2. PIEs are technically isELFDyn, not isELFExec. Without wrapping, the programs won't start.
Ref. https://github.com/NixOS/nixpkgs/issues/65399.
To Reproduce
$ nix-build -A keepassxc && ./result/bin/keepassxc
[...]
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
[...]
Aborted (core dumped)

Expected behavior
PIEs would be wrapped too, and keepassxc would not abort startup.
Metadata

system: "x86_64-linux"
host os: Linux 4.19.71, NixOS, 19.09.git.1a1a7ed (Loris)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.3
channels(root): "nixos-19.03.173426.541d9cce8af"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Guess the most obvious way to fix it properly is to get a function to detect if something is a position independent executable and use that in wrapQtAppsHook. A simpler alternative, since there shouldn't be too many occurrences, is to just wrap them manually with
dontWrapQtApps = true
preFixup = ''
  wrapQtApp $out/wherever
'';


[Feature] - Use case dqedit

@JenSeReal We discussed today that it would be great if you could (at least) push the project so that also others can contribute. We consider the dqedit use case as interesting for the trailer showcase presentation.


Customized doneButtonChild is not implemented in story_maker: 1.0.3

Thank you so much for the package.
below code has not been called/implemented in current version 1.0.3
doneButtonChild widget hasn't been added in
FooterToolsWidget(
                onDone: _onDone,
   )

Customizing "Add to Story" button is not working.

Thanks. I'm still working on it. Will be in the next version

@NarekManukyan oh Okay, thank you for the quick response.
If you could add 2 more options that would be good (Suggestions)

Adding more font names for google fonts.  along with static title
example  [{title : 'Aa' , fontNames : ['Sen','Armata'....]},
{title : 'لب' , fontNames : ['Noto Serif Korean','Serif'....]} ]

             Text(
                    'Aa',
                    style: GoogleFonts.getFont(
                      fontFamilyList[index],
                    )

If null current default list. i.e fontFamilyList

Passing optional image types ui.ImageByteFormat.png = ImageType : Png or Jpg.

@wilz05 Good suggestions. Thanks

@wilz05 Sorry for such a late reply. The problem has been fixed. I'll work on suggestions later.


Allow the creation of a podman-only image

To allow a slim-downed usecase for Podman, we need the ability to generate a podman-only image. For this we will likely utilize Fedora CoreOS. This means the usage is 'unsupported' from a CRC standpoint, but we can co-ordinate this with the Podman and Fedora team.

/cc: @dustymabe

This is already done as part of podman branch.


Events › Jena › University / Missing Events

Discussed in https://github.com/ec2u/data/discussions/11

Originally posted by knoan May 19, 2022

Also Jena international university events were then visible and currently those are not.
I promised to check with you if some some integrations have been taken away or do you know why there might have been events from multiple Jena calendars and now there are not?

The current status integration status is documented @ https://github.com/ec2u/data/blob/main/src/test/resources/eu/ec2u/data/tasks/events/EventsJenaUniversity.md:

we are scanning 5 separate event sites managed by the same CMS
we recently fixed #5, but no other major activity on the feed was performed after MMT launch
missing events, like https://www.uni-jena.de/international/internationale-partnerschaften/ec2u/ec2u-veranstaltungen/ec2u-videos-von-studierenden, are ignored because embedded JSON-LD metadata describe them as WebPage instead of Event as expected, e.g.

{
    "@context": "https:\/\/schema.org",
    "@type": "WebPage",
    "headline": "Show your Jena experience",
    "…": "…"
}

This is a problem to be resolved on the source side, as already done in the past in the case of pages missing start/end dates.
@ec2u/mmt

the default settings of our system set the type WebPage for entries without specifying a location.
If locations, including digital plattforms, are specified, the location is marked accordingly. So the problem
is the lack of entry in events and not a technical deficiency. We will point this out to the editors again, then
the problem should no longer occur.


Insert default hub for 'install' command if it exists

Signed-off-by: Takeshi Yoneda<EMAIL_ADDRESS>

note that this points to #38 and we merge this after it is merged.

OK, corrected the bug while I'm testing this locally, and now fixed. merging!


API docs correction for Functions hydrate_to: "use hydrate_to" should read and link as "use hydrate"

In https://docs.rs/sycamore/latest/sycamore/ under Functions hydrate_to it currently reads and links as:
"Render a View under a parent node by reusing existing nodes (client side hydration). For rendering under the <body> tag, use hydrate_to (https://docs.rs/sycamore/latest/sycamore/fn.hydrate_to.html) instead."
It should read and link as:
"Render a View under a parent node by reusing existing nodes (client side hydration). For rendering under the <body> tag, use hydrate (https://docs.rs/sycamore/latest/sycamore/fn.hydrate.html) instead."

This can be changed here, if you want to submit a PR 🙂:
https://github.com/sycamore-rs/sycamore/blob/0512e4a6e7e60b6f2611c6984585c90126b69018/packages/sycamore-web/src/hydrate_node.rs#L356-L365
Change the "[hydrate_to]" to "[hydrate]" on line 357.

Ok I think that worked. I assume docs.rs has their own update interval now?
Thank you for Sycamore, I think it's a great project.

Thank you for Sycamore, I think it's a great project.


#20 Spectral validation

Adds spectral validation rules to inspect implementation documents.
Rules:

check that documents have nodes and relationships as top level elements (error, this is a very simple example rule)
check that every relationship references a node that exists in the document (error)
check that every node referenced by a composition relationship exists (error)
check that every node is referenced by at least one relationship (warning)

Addresses issue #20