Fixes 3974: add priority to tasks

Summary
Adds the priority column to tasks, an integer representing the priority of the task. Tasks with a higher integer will be dequeued first. Ready tasks view is sorted by priority then queued_at time i.e. highest priority, then oldest, goes first.
Make the priority of update_template_content tasks 1, so it is always dequeued first.
Testing steps

Run the db migration
Change worker_count in your config.yaml to 1
Create two EPEL repos, one after the other.
While the first one is snapshotting, create or update a template.
The order of the task completion should be: snapshot (for the first EPEL repo), update_template_content, snapshot (for the second EPEL repo).

Checklist

[ ] Tested with snapshotting feature disabled and pulp server URL not configured if appropriate

https://issues.redhat.com/browse/HMS-3974

/retest

/retest


Fix ExtAuthz setup and add testing to CI

As per title, this fixes the ExtAuthz setup and sets it up in a way that can be run in CI to not let it rot again.
Notable changes:

I hardcoded the configuration types as that seemed to work better.
I added a bypass for the readiness probes so that the gateway can become ready without having to go through ExtAuthz.
Fixed response handling in the test image.
Rewrote the test in terms of the ingress test framework (no Serving needed)

/lgtm


Supported Postgres versions

Could you please clarify which versions of postgres are supported?

@cduk right now just pg15 and pg16. But as you can see there is another PR to add support


Thread byte value through decorate

Such that decorating '.' can distinguish a literal period from a control
byte.

I’ve added commits for the empty buffer and veryEmptyHuman options.

bug fix published in v1.2.1
new nullHuman feature published in v1.3.0


Improve printability of results page

As Madison City Council Chief of Staff Kwasi Obeng, I need to be able to print the entirety of the election results page to PDF so that I can email it to myself and preserve it for public record.
Currently the only information included in the printed PDF is the content available on the first screen's worth of the page, even if there are more screens' worth of content that can be scrolled to on the same webpage.
The current workaround is to save a screenshot of the top of the page, scroll to the next screen's worth of information, screenshot that, repeat until no more content is left.

This behavior was observed using Firefox 61.0.1 (64-bit) on Windows 10.

Not sure if relevant, but Firefox was using this extension:
https://testpilot.firefox.com/experiments/containers

And the page was printed with Ctrl+P, Selecting "Microsoft Print to PDF" for the printer name.

Duplicate of https://github.com/pivot-libre/pivot/issues/95

I'm dusting off the old front end skills, taking a crack at this one :)

Print view is broken again in Chrome. It may be related to this pr:
https://github.com/pivot-libre/pivot/pull/232
@neckberg any ideas?

Based on discussion, we'll have a dedicated route that goes to a text-only version of the results.


klaus: 2.0.2 -> 2.0.3

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/klaus-git-web-viewer/versions.
meta.description for klaus is: The first Git web viewer that Just Works
meta.homepage for klaus is: https://github.com/jonashaag/klaus
Updates performed

Version update

To inspect upstream changes

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.0.3 with grep in /nix/store/29sv5qg707bmyz6j7gpnxkcl4l75vcyx-python3.10-klaus-2.0.3
found 2.0.3 in filename of file in /nix/store/29sv5qg707bmyz6j7gpnxkcl4l75vcyx-python3.10-klaus-2.0.3

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)

3 package rebuild(s)

First fifty rebuilds by attrpath
klaus
python310Packages.klaus
python311Packages.klaus

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/29sv5qg707bmyz6j7gpnxkcl4l75vcyx-python3.10-klaus-2.0.3 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A klaus https://github.com/r-ryantm/nixpkgs/archive/eb78158e9cfc4ab7b2089eed2883589faad7be2a.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/29sv5qg707bmyz6j7gpnxkcl4l75vcyx-python3.10-klaus-2.0.3
ls -la /nix/store/29sv5qg707bmyz6j7gpnxkcl4l75vcyx-python3.10-klaus-2.0.3/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

2 packages built:

klaus (python310Packages.klaus)
python311Packages.klaus

Maintainer pings
cc @pSub for testing.

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

4 packages built:

klaus (python310Packages.klaus)
klaus.dist (python310Packages.klaus.dist)
python311Packages.klaus
python311Packages.klaus.dist


Restore Nuget Packages Step: "chcp.com 65001" takes nearly 1 minute

2017-05-05T18:00:08.1167083Z ##[section]Starting: Restore nuget packages
2017-05-05T18:00:08.5386488Z [command]C:\Windows\system32\chcp.com 65001
2017-05-05T18:00:08.5542809Z Active code page: 65001
2017-05-05T18:01:01.3833822Z Detected NuGet version <IP_ADDRESS> / 3.3.0
2017-05-05T18:01:01.3990072Z SYSTEMVSSCONNECTION exists true
Potentially not an issue with the build step itself, but the process of activating code page to 65001 takes nearly a minute on all of our build machines (separate dedicated VMs). That's just under 10% of the total build time.
Is this an issue with the build step or something else?

Can you update to version 1 of the task (which will update you to NuGet 4) and see if that fixes this issue?

Closing this due to inactivity - please reactivate if you're still having this issue.


fix(runtime-core): use correct container for patch Teleport inside …

…block tree
fix #1690

This failing test actually exposed some issues regarding the handling of Teleport children in block tree mode. The main reason is that its direct children needs to always inherit vnode.el from previous children so that they can be moved later, but it is sometimes skipped in block tree mode.


Skip macro-expanded code in the playground transform.

Playgrounds cannot display any macro expansions anyway and the @Observable macro can generate instrumentations that don't typecheck and/or reference missing functions.
rdar://112122752
(cherry picked from commit 388bd6e5f4cea63531b6c33584c7d6701814fbdc)

@swift-ci test


Add support for more buttons in modal footer

This project uses semver, please check the scope of this pr:

[ ] #patch# - backwards-compatible bug fix
[x] #minor# - adding functionality in a backwards-compatible manner
[ ] #major# - incompatible API change

CHANGELOG

Added new buttons property to modals to allow user to specify additional buttons to show between the cancel and confirm buttons in the modal footer.

Visual Acceptance tests:
No changes

Approved


How to solve the noise when using Intel RealSense Viewer to shoot video

| Camera Model                       | {  D455 } |
| Operating System & Version |   {Win (10)   |

Thank you very much!

There is a hole-filling Filter inside the Intel RealSense Viewer.However, after each recording, the result of bag is not the result of hole-filling Filter. How can I save the result of hole-filling Filter .

The effects of post-processing filters are not saved to bag files in the RealSense SDK.  The bag is loaded into the computer's memory and then the filters are applied to the bag data in real-time.

后处理过滤器的效果不会保存到 RealSense SDK 中的包文件中。袋子被加载到计算机的内存中，然后过滤器实时应用于袋子数据。

I want to perform a series of operations on the filtered depth map, what should I do?

Does your project have the ability to use ROS and the RealSense ROS wrapper and apply the post-processing filters to streams in the wrapper instead of the RealSense Viewer? The rosbag record function of ROS can handle bag recording in different ways to the RealSense SDK (such as allowing the saving of aligned data to a bag, which the RealSense SDK's bag recording does not).

There was a mouse analysis case several years ago where a RealSense team member provided detailed technical advice at https://github.com/IntelRealSense/librealsense/issues/1171#issuecomment-365055104 for improving the image.  A D415 camera was being used in that particular case.  It may be worth trying to apply that advice to your project first before exploring use of ROS.

几年前在#1171有一个鼠标分析案例，RealSense 团队成员为改善图像提供了详细的技术建议。在这种特殊情况下使用的是 D415 相机。在探索 ROS 的使用之前，首先尝试将该建议应用到您的项目中可能是值得的。

I have carefully read the mouse analysis case you sent, and I have tried to debug the parameters, but the depth map at the bottom of the barrel fluctuates greatly and is not one color. How can I improve the image quality?

There was a past case at https://github.com/IntelRealSense/librealsense/issues/8799 of this fluctuating depth phenomenon when depth-sensing a bucket.
The RealSense user in that case was also performing mouse analysis, as described at https://github.com/IntelRealSense/librealsense/issues/8799#issuecomment-818383037
In that case, I suggested that better light illumination into the bucket might improve results, as the center of the bottom of the bucket was stable but the areas towards the sides of the bucket were not.
Using a Temporal Filter post-processing filter and changing its alpha value from its default of '0.5' to a lower value such as '0.1' can also reduce the depth fluctuation rate.

在#8799过去有一个案例，即在对桶进行深度感应时出现这种波动的深度现象。
在这种情况下，RealSense 用户也在执行鼠标分析，如#8799（评论）中所述
在这种情况下，我建议更好的光照到桶中可能会改善结果，因为桶底部的中心是稳定的，但桶侧面的区域却不是。
使用Temporal Filter后处理过滤器并将其alpha值从默认的“0.5”更改为较低的值，例如“0.1”，也可以降低深度波动率。

Thank you very much for your reply. Any operation in intelrealsense viewer will not change the content in the recorded bag. I will consider the rosbag method you mentioned before.  In addition, whether it can parse the. Bag package through Python, and filter the quality of the picture after parsing.  Like the images I shared above, I can successfully set the bottom of the barrel to the same color in depth Visualization with Visual Preset set to NEAR, I wonder how this can be done in Python.

在#8799过去有一个案例，即在对桶进行深度感应时出现这种波动的深度现象。
在这种情况下，RealSense 用户也在执行鼠标分析，如#8799（评论）中所述
在这种情况下，我建议更好的光照到桶中可能会改善结果，因为桶底部的中心是稳定的，但桶侧面的区域却不是。
使用Temporal Filter后处理过滤器并将其alpha值从默认的“0.5”更改为较低的值，例如“0.1”，也可以降低深度波动率。

Thank you very much for your reply. Any operation in intelrealsense viewer will not change the content in the recorded bag. I will consider the rosbag method you mentioned before.  In addition, whether it can parse the. Bag package through Python, and filter the quality of the picture after parsing.  Like the images I shared above, I can successfully set the bottom of the barrel to the same color in depth Visualization with Visual Preset set to NEAR, I wonder how this can be done in Python.

You can set the Near depth visualization color preset in Python with the code below.
colorizer = rs.colorizer()
colorizer.set_option(rs.option.visual_preset, 2) # 0=Dynamic, 1=Fixed, 2=Near, 3=Far

If you want to set minimum and maximum distance for the colorizer:
colorizer = rs.colorizer()
colorizer.set_option(rs.option.visual_preset, 2) # 0=Dynamic, 1=Fixed, 2=Near, 3=Far
colorizer.set_option(rs.option.min_distance, value_min)
colorizer.set_option(rs.option.max_distance, value_max)
depth_colormap = np.asanyarray(colorizer.colorize(depth_frame).get_data())
https://github.com/IntelRealSense/librealsense/issues/3363 has a discussion that contains a script in the Python language that includes setting the colorizer color scheme with rs.option.color_scheme.
The colorizer color schemes are selected with a number code (Jet is '0'). The full list of numbers is in the link below:
https://github.com/IntelRealSense/librealsense/blob/master/include/librealsense2/hpp/rs_processing.hpp#L764-L773

Thank you very much. I have now implemented some operations in The RealSense Viewer using Python, and the results are good.  What can I do to extract the color and depth maps from the .bag.

You can use a RealSense SDK tool called rs-convert to extract depth and color frames from a bag file in a range of file formats.
https://github.com/IntelRealSense/librealsense/tree/master/tools/convert
The Windows version of the SDK has a pre-built .exe version of the tool so that you do not need to build its code.  You can launch it with the following procedure.

Launch the Windows Command Prompt interface.  You can do this by typing the word command into the text box at the bottom of your Windows screen, next to the corner button where the PC is shut down.

Navigate to the Windows folder location where the pre-built rs-convert.exe program resides and paste a copy of your bag file into it.

C: > Program Files (x86) > Intel RealSense SDK 2.0 > Tools

Input the command below to navigate to the Tools folder location where the pre-built rs-convert.exe program resides.

cd C:\Program Files (x86)\Intel RealSense SDK 2.0\tools

Input a command to launch rs-convert.exe and perform a particular conversion operation on the bag file that was placed in the Tools folder.  For example to extract

For example, to extract into the Tools folder all the depth and color frames from a bag file called test.bag and give the PNG files the filename 'test' plus a number:
rs-convert.exe -p test -i test.bag

I have tried this method and the resulting color map and depth map are inconsistent in number. And the transformed image is not processed by filtering.  I have now filtered and aligned the bag package in Python.  I want to use Python to extract the image and verify that the color and depth images are not missing.

A RealSense Python user at https://github.com/IntelRealSense/librealsense/issues/4934#issuecomment-537705225 took the approach of extracting frames from a bag file and saving color to PNG and depth as an array of scaled matrices in an .npy file.
https://github.com/IntelRealSense/librealsense/issues/2731#issuecomment-529938267 instead saves depth and color to video .avi files, which could work as well as PNG extraction if the purpose is to visually verify whether frames are missing.  The script is for a live camera but could likely be easily edited to use a bag file as the data source instead.
https://github.com/IntelRealSense/librealsense/issues/2877#issuecomment-446102880 suggests Python code for saving both depth and color frames to PNG.

Thank you very much. I successfully extracted the AVI video from bag file.  I found a problem that when extracting depth, I could only use raw or aligned depth frames.  I failed in my attempt to get depth using a depth stream filled with holes.
`frames = pipeline.wait_for_frames()
aligened_frames=align.process(frames)
aligened_depth_frame=aligened_frames.get_depth_frame()
color_frame=frames.get_color_frame()
    spatial=rs.spatial_filter()
    spatial_depth=spatial.process(aligened_depth_frame)
    temporal = rs.temporal_filter()
    temporal.set_option(rs.option.filter_smooth_alpha, 0.1)
    temporal.set_option(rs.option.filter_smooth_delta, 20)
    tem_depth = temporal.process(spatial_depth)
    hole_filling = rs.hole_filling_filter()
    filled_depth = hole_filling.process(tem_depth)

    filled_depth_frame = filled_depth.get_depth_frame()
    w=filled_depth_frame.get_width()
    h=filled_depth_frame.get_height()
    dis=round(filled_depth_frame.get_distance(int(w/2),int(h/2))*100,2)`

In your filled_depth definition, please try placing aligened_depth_frame in the brackets instead of 'tem_depth'.
filled_depth = hole_filling.process(aligened_depth_frame)

`align_to = rs.stream.color
align = rs.align(align_to)
# Streaming loop
while True:
    # Get frameset of depth
    frames = pipeline.wait_for_frames()
    aligened_frames=align.process(frames)
    aligened_depth_frame=aligened_frames.get_depth_frame()

    color_frame=frames.get_color_frame()

    spatial=rs.spatial_filter()
    spatial_depth=spatial.process(aligened_depth_frame)

    temporal = rs.temporal_filter()
    temporal.set_option(rs.option.filter_smooth_alpha, 0.1)
    temporal.set_option(rs.option.filter_smooth_delta, 20)
    tem_depth = temporal.process(spatial_depth)

    hole_filling = rs.hole_filling_filter()
    filled_depth = hole_filling.process(aligened_depth_frame)

    # Colorize depth frame to jet colormap
    depth_color_frame = colorizer.colorize(filled_depth)

    # Convert depth_frame to numpy array to render image in opencv
    depth_color_image = np.asanyarray(depth_color_frame.get_data())
    depth_colormap = cv2.applyColorMap(cv2.convertScaleAbs(depth_color_image, alpha=0.41), cv2.COLORMAP_JET)
    color_image=np.asanyarray(color_frame.get_data())

    w=filled_depth.get_width()
    h=filled_depth.get_height()

    dis=round(filled_depth.get_distance(int(w/2),int(h/2))*100,2)
    print("the dis are",dis,"cm away")

`
I modified it but it ran wrong.

The script may be having a problem with the filled_depth definition:
filled_depth = hole_filling.process(aligened_depth_frame)
This instruction may not provide useful values that can be used for 'filled_depth' by w=filled_depth.get_width() and h=filled_depth.get_height() as it is essentially just saying to activate the application of the hole_filling filter to the depth frame.
The link below has a Python script in the section headed get the depth distance of a point that provides an example of similarly storing the contents of w and h variables, setting up its equivalent of filled_depth with a def instruction.
https://codestudyblog.com/cs2112pyb/1215213230.html

My original depth map was less than ideal, so the depth distance extracted was also less than ideal.My idea is to filter the depth flow, and the filtered depth map is very good.  In this way, it is impossible to extract the filtered depth.

Is it possible for you to pause the stream with the space bar on a good image and then use the Snapshot icon on top of the depth panel of the Viewer to extract that paused frame as csv and raw files that preserve the depth values?  Or does it need to be a moving recording like a bag?

The method of using Snapshot was not suitable for my project.I recorded a five-minute video, and I wanted to extract the depth value of the mouse.The depth values of mice were used for behavioral analysis.

If the problem is that the original depth that is saved to the bag file in the RealSense Viewer is of insufficient quality, please try going to the Depth Units option under 'Stereo Module > Controls' and changing the default '0.001' value to 0.01 using the pencil icon next to the option to enter the value with the keyboard manually.  This can result in a better depth image at close range, such as the distance of the camera from the bucket.

Hi @L-xn  Do you have an update about this case that you can provide, please?  Thanks!

Hi @L-xn  Do you require further assistance with this case, please?  Thanks!

hey @L-xn There is a whole guide for improving the depth quality from the realsense documentation, including trade-offs of changing certain parameters. If you would like to try someting more experimental, it is possible to solve this problem by using a denosing autoencoder neural network (Unet) based on this guide also prepared by realsense. I have personally tried a similar solution based on deep learning and it seems to work.

嘿@L-xn有一个完整的指南，用于从 realsense 文档中提高深度质量，包括更改某些参数的权衡。如果您想尝试更多的实验，可以通过使用基于本指南的去噪自动编码器神经网络 (Unet) 来解决这个问题，该指南也是由 realsense 编写的。我个人尝试过基于深度学习的类似解决方案，它似乎有效。

Thank you very much, I will try this method.  It may be the only way.

I have now recorded a video of the mouse through the IntelRealsense Viewer. The video was saved as BAG.The first thing I need to do is extract the exact distance of the mouse.As discussed above, a series of post-processing operations through the intelrealsense viewer does not change the video content in the BAG. This is a bad situation!Tensorflow is the only way to train depth data.  But I saw that the realsense document needed to use the infrared image, and I did not turn on the red outflow when I took the data. In that case, can we still train?

It does look as though the RealSense Tensorflow guide depends heavily on infrared images.
You can obtain 3D world depth from a bag by drag and dropping it into the center panel of the RealSense Viewer to play it and then moving the computer mouse cursor over coordinates on the image in real-time to obtain the depth in meters in the corner of the panel.

You can also use the 'Snapshot' option on top of the Depth panel in the Viewer to export a depth frame from the bag as PNG, csv and raw format files.
You would not be able to obtain infrared frames from the bag if they are not recorded within it though.

This's a good way to do it.But I want to extract the depth data of each mouse frame and there are a lot of frames.

Thanks very much for your patience.  I researched your problem carefully, but the available options are limited if you have to work with a bag file that does not have infrared frames and you are not able to record another bag with the mouse in the bucket.
One possibility might be to use a Python script at https://github.com/IntelRealSense/librealsense/issues/4934#issuecomment-537705225 to use the bag as the data source instead of a live camera and export its depth stream values to an .npy file.  This file could then be imported into a Python tool such as Pytorch for data training purposes.
That script also exports a color stream in the bag, so you would have to edit out the code relating to the color stream if your mouse bag-file does not contain color stream data.
The link below has a tutorial for loading an .npy file into Pytorch.
https://towardsdatascience.com/beginners-guide-to-loading-image-data-with-pytorch-289c60b7afec
If you google for the term pytorch training then you can find resources for performing data training and image classification with Pytorch, such as this Microsoft guide for doing so:
https://docs.microsoft.com/en-us/windows/ai/windows-ml/tutorials/pytorch-train-model

Thank you very much! I will try to do it.


Some areas outside the sidebar will not set sidebar display to false when clicking on them.

Added an event listener to the navigation bar container. It could detect clicks on its padding.


CloudApp Security OS requirement

The documentation mentiones that Windows 10 1809 is required, will we see this for lower versions as well in the near future? I.e. 1803? I am concerned that it will take a while until we see corporate adopt 1809 and it would be sad to not use this awesome capability

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

ID: 05d99de0-789d-3c71-4bd9-f45e62f82a7b
Version Independent ID: d56d09f0-1f9a-563e-fee0-142bda27a99b
Content: Configure advanced features in Windows Defender ATP
Content Source: windows/security/threat-protection/windows-defender-atp/advanced-features-windows-defender-advanced-threat-protection.md
Product: w10
GitHub Login: @mjcaparas
Microsoft Alias: macapara

Hi alexverboon,
Thank you for your feedback. At the moment, I'm not sure if this capability will be available for lower versions.


Fix for bug with auto opening.

Yeah... it actually makes a difference.

Sorry didn't notice that.. !


rewrite readme

Current version README.md outdated, we need to update it in accordance with the paper

Add section How it works with description of transformations, project structure etc...


python311Packages.hkdf: refactor and remove nose

Description of changes
part of https://github.com/NixOS/nixpkgs/issues/311054

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[x] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Result of nixpkgs-review pr 317197 at b3b929f3 run on x86_64-linux 1

2 packages failed to build:

python311Packages.labgrid
python312Packages.labgrid

27 packages built successfully:

authentik
buildbot
buildbot-full
buildbot-ui
buildbot-worker
gnome-keysign
magic-wormhole (python311Packages.magic-wormhole)
paperless-ngx
python311Packages.autobahn
python311Packages.channels
python311Packages.channels-redis
python311Packages.daphne
python311Packages.hkdf
python311Packages.magic-wormhole-mailbox-server
python311Packages.magic-wormhole-transit-relay
python311Packages.spake2
python311Packages.strawberry-graphql
python312Packages.autobahn
python312Packages.channels
python312Packages.channels-redis
python312Packages.daphne
python312Packages.hkdf
python312Packages.spake2
python312Packages.strawberry-graphql
tahoe-lafs
tahoe-lafs.doc
tahoe-lafs.info


make it easier to reject an authorization request from the login page…

… #1352

@brockallen,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot


Remove dependency on svelte internals

Hi, thanks for making this library!
Svelte 5 is still in alpha, but I'm using it in a project. When trying to use trap-focus-svelte I got the following error:
Error: Your application, or one of its dependencies, imported from 'svelte/internal', which was a private module used by Svelte 4 components that no longer exists in Svelte 5.
It is not intended to be public API.
If you're a library author and you used 'svelte/internal' deliberately, please raise an issue on https://github.com/sveltejs/svelte/issues detailing your use case

I tried refactoring the code and it seems to still work, although it does increase the size of the bundle a bit :\ I can try optimizing that.

Sounds good.
I appreciate the work you did, but the best way to resolve this is probably just copying the tiny listen function out of svelte/internal and popping it into index.ts. That way we're guaranteed not to break anything. And the size of the vanilla versions shouldn't change at all.
Here's the function:
https://github.com/sveltejs/svelte/blob/svelte%404.2.12/packages/svelte/src/runtime/internal/dom.js#L360
So I'll close this pr but will merge if you open a new one with that change. Let me know if you want any clarification.


Nodetool decomission requires JAVA_HOME to be set, CCM not catching error

The system variable "JAVA_HOME" needs to be set as a system variable for nodetool commands to work. If this variable is not set, "decommission" will fail silently with the output:
('The JAVA_HOME environment variable must be set to run this program!\r\nPress any key to continue . . . \r\n', '')
However, this output is not caught or printed to the screen.

Quick followup-- JAVA_HOME has to be set to a supported version of the JDK for that particular version of Cassandra. Otherwise, Cassandra will not start on the nodes via ccm start.


misplaced parenthesis in event map causes invalid endtimes for VTT

Hi,
Thanks for your work on this module.  I'm using it in my video workflow.  My VTTs were coming up as invalid though, because endtimes were sometimes greater than starttimes.  I found the culprit on line 75:
from: Math.floor(parseFloat(e.start_time) * 1000),
to: Math.floor(parseFloat(e.end_time)) * 1000,
the second one has a misplaced parenthesis, causing the endtime to be rounded to the nearest second rather than the nearest 1/100 of a second.

@bcorvino great catch!

fix published in 1.0.2


Allow method parameter override for training based indices (solves issue #2246)

Description
https://github.com/opensearch-project/k-NN/issues/2246
From mode/disk-based feature, we introduced concept of mode and compression level that will dynamically set default resolution. For indices created directly from the method (i.e. mapping) we allow users to override parameters if they want.
However, for training, we added the mode and compression, but made them mutually exclusive with method. See: https://github.com/opensearch-project/k-NN/blob/main/src/main/java/org/opensearch/knn/plugin/rest/RestTrainModelHandler.java#L138-L139. We need to remove this and allow method overriding to provide a consistent ux experience across the plugin.
Related Issues
Resolves #2246
Check List

[x] New functionality includes testing.
[x] New functionality has been documented.
[N/A] API changes companion pull request created.
[x] Commits are signed per the DCO using --signoff.
[x] Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@owenhalpert can you please fix the changelog.

Do we know why this was previously blocked, considering it only involves removing two lines of code?

Do we know why this was previously blocked, considering it only involves removing two lines of code?

Hi Heemin,
So Jack said that these checks were added in this pr https://github.com/opensearch-project/k-NN/pull/2034 and not removed before the release. Then it got removed in this pr https://github.com/opensearch-project/k-NN/pull/2083 but training was missed

@buddharajusahil Can you run ./gradlew :spotlessApply to fix style?

@buddharajusahil can you fix the conflicts and create a backport PR to 2.x ?


belindas-closet-nextjs_8_467_minimized-card

Resolves #467
This PR improves the appearance of the All Products page by minimizing the information included for each product. It also makes the columns more narrow to allow for more space for other products.
There are 4 columns now (rather than 3) but I noticed there was a weird space on the right side, so I adjusted the column size to reduce that extra space. I made these changes for category-page too to fix it on there too and keep it consistent.
How the pages look now:

Looks good @intisarosman1, I wonder if you can add more to have 5 on one row instead of 4 or would that probably break styling.
This is what I see on my end:
sidenote: on lines 83-86 on your file was there a reason you removed the product fields for the product card section.

5 products per row would be great but it drastically impacts the appearance of the buttons (squishes them together). Got the heads up from @keiffer213-- this PR's purpose was to make the page consistent with category-page, which shouldn't have those product fields in the card sections either!


build failed when sync graddle

I am using   implementation 'com.github.satyan:sugar:1.5'
error: Failed to resolve: sugar

I am using implementation 'com.github.satyan:sugar:1.5' error: Failed to resolve: sugar

Found any solution ?


Fixed issue in change tab after Reset is pressed in report editor

Fixed code to set prefix correctly for tab ids on tabs in Reports editor after Reset button is pressed
Added spec test to verify tab ids

https://bugzilla.redhat.com/show_bug.cgi?id=1290440
https://bugzilla.redhat.com/show_bug.cgi?id=1290170
@dclarizio please review/merge

Verified fix.


Add support for stemming, query-command, rank, and implement Struct for Documents

This consolidates the relatively small changes in #409, #410, #411, and #412 allowing to be merged at once, leaving other big Pull Requests (#408 and #413) to be rebased and merged later.

Add support for Stemming
Add rank support
Add query-command support
Add Struct support for Document

The commits have closes #XXX so they will automatically close the related pull requests.
I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Woot woot for Struct support!


Broken manifests

Checklist

[X] Double-checked my configuration.
[X] Tested using the latest version.
[X] Used the Emissary executor.

Summary
What happened/what you expected to happen?
I want to run hello-world and expect it to successfully complete
Instead when describing the pod I get "failed to resolve reference "quay.io/argoproj/argoexec:untagged"
What version are you running?
I use the latest cluster-install manifests rolled out by argo-cd
This bug does not occur if I pin version to before the following commit 2b5e4a1d2df7877d9b7b7fbedd7136a125a39c8d
It would seem that the above commit broke the manifests.
Diagnostics
Paste the smallest workflow that reproduces the bug. We must be able to run the workflow.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: hello-world-
  labels:
    workflows.argoproj.io/archive-strategy: "false"
  annotations:
    workflows.argoproj.io/description: |
      This is a simple hello world example.
      You can also run it in Python: https://couler-proj.github.io/couler/examples/#hello-world
spec:
  entrypoint: whalesay
  templates:
  - name: whalesay
    container:
      image: docker/whalesay:latest
      command: [cowsay]
      args: ["hello world"]

Message from the maintainers:
Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@alexec Do you know more about the intent behind the manifest change? Was the idea to pin image version to v3.3.0 instead of latest and it's a typo?

The issue might be in argo.GetVersion().Version. cc @alexec

Fixing.


Can't process "]]"

Code:
struct Uniforms {
    positions: array<vec3f, 2>,
    ids: array<i32, 2>
}

@binding(0) @group(0) var<uniform> uniforms: Uniforms ;

@compute @workgroup_size(1i, 1i, 1i)
fn main() {
    uniforms.positions[uniforms.ids[0]];
}

Result:

Thanks for the report, I'll get that fixed up.

Fixed in 1.0.8, just published.

Thank you, I can confirm the issue has been fixed


feature Add fe cloud storage module

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall


Could not locate the bindings file. Tried:

Hi team,
I moved this from here: https://github.com/MicrosoftDocs/azure-docs.ja-jp/issues/2913
The comment below was machine translated
@masakinoda111 commented 2 days ago
Connect Raspberry Pi to Azure IoT Hub (Node.js)
Running the sample application
When I tried, I got the following error.
pi@raspberrypi:~/iot-hub-node-raspberrypi-client-app $ sudo node index.js 'HostName=test1011musuke.azure-devices.net;DeviceId=raspi;SharedAccessKey=fS6c2LUT1sIb6nWZbnig8rd9L+sdJzz8muecMhKKNBs='
/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/node_modules/bindings/bindings.js:91
throw err
^
Error: Could not locate the bindings file. Tried:
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/build/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/build/Debug/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/build/Release/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/out/Debug/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/Debug/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/out/Release/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/Release/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/build/default/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/compiled/10.17.0/linux/arm/nodeWiringPi.node
at bindings (/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/node_modules/bindings/bindings.js:88:9)
at Object. (/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/index.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/pi/iot-hub-node-raspberrypi-client-app/index.js:10:13)
I'm not sure what the error means, but how can I fix it?

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

ID: a57d05c9-562c-02a5-7ccd-b1b1bb7c8f0c
Version Independent ID: 17ee094f-aee3-ca0c-959b-6380e4ea8b89
Content: Connect Raspberry Pi to Azure IoT Hub in the cloud (Node.js)
Content Source: articles/iot-hub/iot-hub-raspberry-pi-kit-node-get-started.md
Service: iot-hub
GitHub Login: @wesmc7777
Microsoft Alias: wesmc

@masakinoda111 I'm sorry to hear that you are facing this issue. There is a Pull Request that has a fix for this you could grab the code from there or just make the changes on your local https://github.com/Azure-Samples/iot-hub-node-raspberrypi-client-app/pull/26
You can see the changes here https://github.com/Azure-Samples/iot-hub-node-raspberrypi-client-app/pull/26/files I will test and merge the PR but it should work. Please let me know how it goes.

Hi @masakinoda111  did you have a chance to try the changes on the PR I linked to? did that resolve your issue?

変更を試してみましたが状況は変わらず、以下のようなエラーが発生します。
/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/node_modules/bindings/bindings.js:91
throw err
^
Error: Could not locate the bindings file. Tried:
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/build/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/build/Debug/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/build/Release/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/out/Debug/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/Debug/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/out/Release/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/Release/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/build/default/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/compiled/10.17.0/linux/arm/nodeWiringPi.node
at bindings (/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/node_modules/bindings/bindings.js:88:9)
at Object. (/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/index.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/pi/iot-hub-node-raspberrypi-client-app/index.js:10:13)

Hi @ I was able to clear that error by doing
sudo apt-get install wiringpi
followed by:
npm install node-wiring-pi
Can you please try that?

試してみましたが同様のエラーが発生します。
updateがあったようなので以下を実行しました。
sudo npm install -g npm
そして、もう一度試しましたが、やはり同様のエラーが発生します。
仕方がないのでNode.jsは諦め、現在はPythonでチュートリアルを進めています。
ご対応いただきありがとうございました。

Thank you for your feedback @masakinoda111 , if you try using Node.js again, please follow Alberto's suggestion and let us know if you were not successfull.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.

yeah having the exact same issue.

@CeciAc @Alberto-Vega this problem still exists. i bought a new rpi 3 and also try it on a rpi4 please assist to solve these issue. it is very bad to see that people wants to use azure but stuck on it.

Since this has been an ongoing issue and I've tried all solutions others have had I'm going to abandon the node.js route and try the instructions for C

MARCH 9 2020...
NO idea why this topic was CLOSED when CLEARLY people were having SO MANY problems they were ABANDONING this (node.js-based) sample application and instead openly TELLING you they were going to try the C-based version...

FACT: it's behaviors JUST LIKE THIS that convince new users that Microsoft ISN'T SERIOUS about IoT, so they end up going with OTHER cloud-service provides (you know who) - STOP SCREWING AROUND MICROSOFT !
THAT SAID, here it is MARCH 9th, and I just purchased several BRAND-NEW CanaKits with Raspberry Pi 4 units in them.
CONFIGURATION & READYING these new units has been completely FLAWLESS... UNTIL it came time to RUN YOUR SAMPLE APP.
I get the SAME error message as many other people who AREN'T bothering to post requests-for-fixes because of this team's foolish-interpretation-of-leaving-threads-as-all's-well...

This is a PRISTINE brand-new Raspberry Pi 4 running Raspbian as of March 7th 2020.
I've tried EVERY suggested change I could find thus far on these forums - so far NO LUCK getting it to work, but I'm NOT going to try the C-based version.
PLEASE MICROSOFT FIX YOUR STUFF - THIS IS MORE IMPORTANT THAN EVER IN 2020.
-Mark in North Aurora IL

UPDATE MARCH 9th 2020...
IF you're new to Raspberry Pi's and Azure IoT, then you're discovering:

Microsoft's assigned team doesn't seem to care (not really guys - sorry);
There are numerous "red herrings" (misleading clues) which only make newbies
(including me) really really aggravated.

THAT SAID, I'm committed to trying to RESOLVE this issue, AND EXPLAIN what's going on...
IF you did what I did (buy a NEW Pi4 kit from Amazon, meticulously follow EVERY STEP in the Microsoft Docs), and YOU TOO got this error in your Raspbian Terminal's window:
Error: Could not locate the bindings file. Tried:
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/build/nodeWiringPi.node
→ /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/node-wiring-pi/build/Debug/nodeWiringPi.node
...
...
THIS WAS MY FIRST "RED HERRING" - that (stupidly) AMBIGUOUS error message !

There ISN'T a missing "bindings" file >:-(
There are NUMEROUS "bindings" files all over the various node packages;
These bindings files point to COMPILED JS files called ".node" files;
What IS missing is a .NODE file specified by one of these bindings files!
I VALIDATED this by actually EDITING the bindings.js file itself (line 127) so it has a more accurate exception like this:
'Could not locate a .node file specified in one of the bindings files. Tried looking in the following common paths:\n' +

THEN the error message starts to make SENSE:

the SAMPLE APPLICATION isn't running because it's MISSING a critical .NODE file;
the missing file is "nodeWiringPi.node"

BRIEF-BUT-USEFUL HISTORY LESSON...

nodeWiringPi is the NODEJS version of the popular "WiringPi" package; and
WiringPi is the RASPBERRY PI-based package (think "function library") of the "Wiring" library used on the (wildly-popular) ARDUINO microprocessor boards to manage reading & writing from/to all the various serial and digital "pins" on the Arduino boards; and this was SO popular that when the Raspberry Pi "microCOMPUTER" (more than a "microPROCESSOR" like Arduino) came out, and the Raspberry Pi units ALSO had the SAME types of serial and digital PINS, then it only made sense for someone to:

"PORT" the Arduino's "Wiring" library over to RaspberryPi to become yes-you-guessed-it WiringPi; AND then
"PORT" the WiringPi library over to becoming a set of NODEJS functions, and now you have nodeWiringPi :-)

WHICH BEGS THE QUESTION: WHY ISN'T there a "nodeWiringPi.node" file anywhere?
ANSWER:
This file was SUPPOSED to be actually BUILT on-the-fly when you executed the following commands:

THIS command "clones" (creates a local-on-the-Pi4) the sample app's SOURCE CODE:
$ git clone https://github.com/Azure-Samples/iot-hub-node-raspberrypi-client-app

note: this INCLUDES the nodeWiringPi source code as well (the .node needs to be BUILT)

THIS command then BUILDS all the source code (for all the of numerous nodejs packages which comprise this entire sample app):
$ cd iot-hub-node-raspberrypi-client-app
$ npm install             <-- this is the NodePackageManager command which BUILDS .node files !!

NO nodeWiringPi.node file  means SAMPLE APP THROWS ERRORS when running !
THIS BEGS THE QUESTION: WHY ISN'T the nodeWiringPi.node file BUILDING ???
I'm STILL working on THAT (wasn't EXPECTING to be troubleshooting the BULLETPROOF SAMPLE APPS FROM MICROSOFT)...
THAT SAID, others HAVE had success MANUALLY installing & building ONLY nodeWiringPi using the following commands:
sudo apt-get install wiringpi   <---- THIS command uses Raspbian's apt programm to GET the LINUX ("application") package "wiringpi" as a necessary starting point...
and
npm install node-wiring-pi   <---- THIS command ultimately BUILDS the nodeWiringPi.node file, but THIS command will throw the SAME ERRORS as the other .node-building-command above, so...

-Mark in North Aurora
ps: I'm HOPING there are some people SO annoyed and SO discouraged in trying to get this "dang" sample app working that they find VALUE in the posting I'm providing. Please let me know?
-Mark

@CeciAc @Alberto-Vega this problem still exists. i bought a new rpi 3 and also try it on a rpi4 please assist to solve these issue. it is very bad to see that people wants to use azure but stuck on it.

You & I are in complete agreement.
DON'T UPLOAD sample applications that DON'T work and you're NOT SUPPORTING...
TRYING to decide if we're (my teammates & I) are going to:
a. keep beating our heads against the wall making node.js (javascript approach) work; OR
b. switch over to PYTHON (which we like better anyways)
ME?
Time is MONEY... so it's off to PYTHON land for Raspberry Pi4-to-AzureIoTHub connectivity :-)

Holy $%@# Mark, you figured it out. Thanks a lot. I've been trying to fix this for a week or two.  The 2 commands you mentioned above:

sudo apt-get install wiringpi
npm install node-wiring-pi

Fixed my problem. Up arrowed to my statement "sudo node index.js ...." and it started sending to Azure.
Cheers to your for persistence and ownership!

We just updated the US version of this topic. Others should be updated soon.  An updated sample has been provided to clear up most if not all the issues with the old stale sample.
Updated English US version of the topic:
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-raspberry-pi-kit-node-get-started


Add monster loot logger

A plug in on the side that lists all loot you obtained. It will be useful for tracking boss loot and slayer task loot.

Some how my suggestion got labeled a duplicate of yours and has been closed.  Your suggestion doesn't seem to be like mine so I'll drop my suggestion here since ours is now linked and it is unlikely mine will be seen.  I didn't even mention loot.  Here goes  /
Is your feature request related to a problem? Please describe.
I want to keep track of the monsters I kill via a plugin similar to the Xp tracker plugin. I would like this mainly for times that I need to know the amount of the monsters I've killed, like going for champion scrolls. The likelihood is 1in5k
Describe the solution you'd like
Add a plugin that will keep track of the number of each monster the player kills for the play session. Like the xp tracker that shows the skills you worked on during the play session except this will list all the monster you have killed and the number of times you killed them.
Describe alternatives you've considered
Another option would be the health bar plugin you guys have for monster. Just add a spot/ option to have kill count shown in addition.
Additional context
Perhaps this could integrate with other plugins, Like the examine of an item will give the value on ge, and for this perhaps examine on a monster could display their kill count.


Improving Actions menu UX

I love monu. My only issue seems to be when I go to click "Stop All" and the cursor doesn't change to a pointer. For a second I get confused and wonder "can I not stop the processes for some reason?" This is a super small change but it makes a huge difference for me.

Thanks. I've also added the class to the other action buttons in the detail view.

Sweet, thanks!


Website Crashes on Google Chrome Andriod

Describe the bug
When the website is accessed from Google Chrome Android The Site Crashes
To Reproduce
Steps to reproduce the behavior:

Go to https://bit.ly/vitary on Google Chrome Android
The website will cause the browser to crash

Expected behavior
The website should open as normally as it work on desktop
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Windows 10
Browser: Microsoft Edge
Version: 96.0.1054.34 (Official build) (64-bit)
It works on Desktop and on other mobile browser like Mozilla Firefox

Smartphone (please complete the following information):

Device: OPPO F11
OS: Android 11
Browser: Google Chrome
Version: 96.0.4664.104

Additional context
Works on any other browser like Mozilla Firefox etc

https://stackoverflow.com/questions/70508044/django-app-is-crashing-chrome-browser-on-android

This bug has been solved.
If you are facing this buy, please update your chrome browser.
Versions supported: 97.0.4692.87 and above

This issue seems to happen on Android Device with Version greater than 9 [Pie]


[#396] New processor to merge trial and record identifiers

Fixes opentrials/opentrials#396

I don't know how to check if it's picking up all the required rows for update, but by reading the query I can only assume that. So I'm OK with that.
But... After I run it once against the API DB dump I have, I can still run it again and have it pick up a few trials again and update them. Same story.
Even more: it's never ending. If I run it a 3rd time, it outputs this. Same on a subsequent 4th, 5th and so on:
INFO:processors.merge_trial_identifiers.processor:[1] Trial 011ba7e60ea14087ab9b18afd1632811 was updated
INFO:processors.merge_trial_identifiers.processor:[2] Trial 50f12b8a73de4379bea53de56633e9f4 was updated
INFO:processors.merge_trial_identifiers.processor:[3] Trial fcfa0dd7587c40c19f9f5dcdb81291de was updated
INFO:processors.merge_trial_identifiers.processor:3 trials updated
INFO:processors.merge_trial_identifiers.processor:0 trials failed

The reason it's failing is because, somehow, the dashes are removed from the ID. Of course, the update should fail. But it's not!
Random pieces of the puzzle:

our ES index can return a trial even if you request an ID without dashes. It's fuzzy. As far as I'm aware, our Pg doesn't do this.
why doesn't raise an exception if it fails? I'm almost sure it does, but...

🐰hole again?

@nightsh completely out of context, but reading your last comment: uuids with or without dashes are "the same" as far as a UUID object is concerned in python or postgres, and probably elasticsearch too. i.e.: it is not a string, and the dashes don't matter this way or that.

@pwalsh wow, that's an interesting information, thanks!
(I'm now revisiting the code to see if this changes anything)

import uuid

out1 = uuid.uuid4()
nodash = out1.hex
out2 = uuid.UUID(nodash, version=4)
out2 == out1  # returns True

@vitorbaptista following Paul's comment (which was new info for me) I'd dare to suggest going for my original PR for this, but running the update function until there are no more left? Or something around those lines. We're circling around this issue for a while now.
By the way @vitorbaptista, have you run my PR against your DB? Maybe it's just my host (or my local containers) acting weird, so far nobody bothered to confirm it in other environments.

As we talked, you found an actual bug. Just fixed it on https://github.com/opentrials/processors/pull/61/commits/d6e4e43de79876dc26d3ee0aab383548b02ddd48.
I ran your PR against my local database, but I didn't have a production dump at the time, so couldn't reproduce the error. I got the dump now, but it took a while and I wrote this in the meantime. This is good to go and tested, so I don't think it's worthy for us to spend time looking for the bug in your code (sounds like something for a long and lazy Sunday :smile: )

@nightsh Apart from the error you found, is there anything else blocking this to be merged?

Nope, go for it! 👍


add getSignedIntIterator to roaring bitmaps

SUMMARY
Add getSignedIntIterator to roaring bitmaps
We sometimes use roaring bitmaps for iterative filtering where the opposite side of the join is sorted using signed comparison. This adds a function for creating a peekable int iterator to more easily allow that. This is considerably more efficient and easier than implementing the sorted iterator on the client side.
Tests are added for both roaring bitmaps and immutable roaring bitmaps. As well, existing int iterator tests have been improved to use integers above 2^31 in the test iterators, which was missing by only taking the absolute value of the random integers.
Automated Checks

[X] I have run ./gradlew test and made sure that my PR does not break any unit test.
[X] I have run ./gradlew checkstyleMain or the equivalent and corrected the formatting warnings reported.

Looks reasonable.

Merging. This will be part of the next release.
Cheers!


Create API

Created an api with Fast API
Close #9

@kjaymiller  Okay so currently the tests for the image  parser are failing so I commented out the tests and the actual code to fix it today while I push the current changes.
Also am  sorry about not running the linting. I am will do that going forward.
I need to rename the convert to mermaid function to something more descriptive


MB-15473 Set up OIDC

MB-15473
Summary
build: put in initial framework to set up oidc
Verification Steps for the Author
These are to be checked by the author.

[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] Have the Jira acceptance criteria been met for this change?

Verification Steps for Reviewers
These are to be checked by a reviewer.
Setup to Run the Code
How to test

Access the
Login as a

Messages

:book:
:link: MB-15473

  Generated by :no_entry_sign: dangerJS against 771b96cd97fede637a2c990b8592c59f2f75cd89


April Fools and another bug (maybe)

Do I need to activate the april fools effects from lib? Because in my server config is "IS_APRILFOOLS = True". And after I end the game (which is I already played Testify) after the credit scene suddenly the game crashed. Is it from client or server?

April Fool function can only be used on the clients of April Fool's version, if there are no changes in lib file.
The crash is from the client, most likely due to magic modification and hard-coding.

If I enable april fools effects from lib, are the game will crash?

Theoretically not. But sorry I haven't known the practical effect.

Okay, anyway, the crash after Testify, what do you mean by magic modification and hard-coding?

Well, the client is changed via modifying the binary lib file and thus some program logics will be destructed. "Testify" is a very special song. So there must be many logics binding to it. If the modification is improper, the client crashes.

Ah okay, seems I need to travel through the lib again. And activate the April Fools effects. I'll close this issue.


shims: adjust the Windows path for Windows 11

The Windows 10 SDK Version 2104 (10.0.20348.0) which adds support for
Windows 11 introduces new enumerated values for the logical processor
configuration.  Only one of the two is documented at MSDN.
https://docs.microsoft.com/en-us/windows/win32/api/winnt/ne-winnt-logical_processor_relationship:
`RelationNumaNodeEx`

Introduced in TBD - Release Iron. Requests that the full affinity be
returned. Unlike the other relation types, `RelationNumaNodeEx` is not
used oninput. It is simply a request for `RelationNumaNode` with full
group information.

Treat this enumerated value as RelationNodeNode.  It is unclear what
the details of RelationProcessorDie is currently.  For now, we leave
that value ignored, though it is likely that we may have to address it
in the future once the value is explained.

@swift-ci please test

CC: @rokhinip

Verified with the cross-repository testing and locally using on Windows 11.  I'm going to merge this to enable supporting Windows 11 once the SDK is available generally.


How to pin a post at the top?

How do I pin one or more posts at the top regardless of the publication dates?

If you're using a paginated home page

@mmistakes Sorry for the dumb question, but how do I know if I'm using a paginated home page? If there're many posts then it may be apparent, but if I've a new blog with few posts, how can I tell?

@asarkar If you have index.html and it’s using layout: home, you’re pagination posts.

Seems it can pin posts and collections, what about pages? I didn't find any mention in the docs.

@asarkar No idea, never used their plugin. Maybe inquire with the developer?

Not sure about the plugin, but I achieved pinning a post check it live here just by adding a front matter sth like this in the post(s) you want to pin.
---
pin: true
---

then picked up the post for listing whose pin value is true as:
{% for post in site.posts %}
  {% if post.pin == true %}

{{ post.title }}

{{ post.description | strip_html | truncatewords: 30 }}

  {% endif %}
{% endfor %}

you can play around to best suit your need!

@lakshmanbasnet Where did you put the script?

@asarkar If you look at the link above and dig into their documentation they advise that you need to use a modified for loop to display posts correctly with those marked sticky at the top.
This modified for loop has to be changed in the theme files. Depending on if you're using pagination or not will determine how you modify the theme:
If you're using a paginated home page you'll need to modify _layouts/home.html to something like:
{% assign sorted = paginator.posts | sort: "stickiness" %}
{% for post in sorted %}
...etc...
{% endfor %}

If you're not paginating you'll have to make modifications to _layout/posts.html to sort sticky posts correctly.

what should i put in ...etc... ?


Add in ability to keep-alive requests and reuse them within hydra

A followup on the 'Next Steps' section of the README.
Just a reminder to all who might want to contribute a pull request. Also looking to gauge interest, all for - chime in.
is there any manual way of handling this with Typhoeus in its current state?

Well that is damn cool
I'm glad it does this automatically 👍

[7] pry(main)> first_request = Typhoeus::Request.new("http://my.local.host:3001/api", verbose: true)
=> #<Typhoeus::Request:0x007f98a1784a88
 @base_url="http://my.local.host:3001/api",
 @options={:verbose=>true, :headers=>{"User-Agent"=>"Typhoeus - https://github.com/typhoeus/typhoeus", "Expect"=>""}, :maxredirs=>50},
 @original_options={:verbose=>true}>
[8] pry(main)> first_request.run
Found bundle for host my.local.host: 0x7f98a1f93120
Re-using existing connection! (#1) with host my.local.host
Connected to my.local.host (<IP_ADDRESS>) port 3001 (#1)
GET /api HTTP/1.1
Host: my.local.host:3001
Accept: */*
User-Agent: Typhoeus - https://github.com/typhoeus/typhoeus

HTTP/1.1 302 Found
Content-Type: text/html
Content-Length: 181
Connection: keep-alive
Status: 302 Found
Cache-Control: no-cache
Vary: Origin
X-Request-Id: a8bc083c-887c-4827-ae55-adb81db1cf62
Location: http://swagger-docs.riiid.co.s3-website.ap-northeast-2.amazonaws.com/?url=http://my.local.host:3001/swagger
X-Runtime: 0.000942
Date: Tue, 22 Nov 2016 09:16:31 GMT
X-Powered-By: Phusion Passenger 5.0.30
Server: nginx/1.10.1 + Phusion Passenger 5.0.30

Connection #1 to host my.local.host left intact
ETHON: performed EASY effective_url=http://my.local.host:3001/api response_code=302 return_code=ok total_time=0.04631
#...skip...
[9] pry(main)> Typhoeus::VERSION
=> "1.1.0"

In my case, there is no Connection: Keep-Alive in http request header.
What should I do for enable keep-alive?

The fact that it says: Connection #1 to host my.local.host left intact indicates, that the connection is being left open for reuse. Can you post two subsequent requests with verbose logs?

@i0rek yes!
[28] pry(main)> first_request = Typhoeus::Request.new("http://localhost:3000/api", verbose: true); # ‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼
[29] pry(main)> first_request.run; # ‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼
Found bundle for host localhost: 0x7fa6d10ee550
Re-using existing connection! (#4) with host localhost
Connected to localhost (<IP_ADDRESS>) port 3000 (#4)
GET /api HTTP/1.1
Host: localhost:3000
Accept: */*
User-Agent: Typhoeus - https://github.com/typhoeus/typhoeus

HTTP/1.1 302 Found
Location: http://swagger-docs.riiid.co.s3-website.ap-northeast-2.amazonaws.com/?url=http://<IP_ADDRESS>:3000/swagger
Content-Type: text/html
Cache-Control: no-cache
X-Request-Id: 9daa7dfa-c8a3-41ee-ab6a-75e9d04054ed
X-Runtime: 0.000932
Vary: Origin
Content-Length: 167

Connection #4 to host localhost left intact
ETHON: performed EASY effective_url=http://localhost:3000/api response_code=302 return_code=ok total_time=0.002445
[30] pry(main)> first_request = Typhoeus::Request.new("http://localhost:3000/api", verbose: true); # ‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼
[31] pry(main)> first_request.run; # ‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼‼
Found bundle for host localhost: 0x7fa6d10ee550
Re-using existing connection! (#4) with host localhost
Connected to localhost (<IP_ADDRESS>) port 3000 (#4)
GET /api HTTP/1.1
Host: localhost:3000
Accept: */*
User-Agent: Typhoeus - https://github.com/typhoeus/typhoeus

HTTP/1.1 302 Found
Location: http://swagger-docs.riiid.co.s3-website.ap-northeast-2.amazonaws.com/?url=http://<IP_ADDRESS>:3000/swagger
Content-Type: text/html
Cache-Control: no-cache
X-Request-Id: 722d3304-862d-44a4-8a6f-6b285b78cef9
X-Runtime: 0.001132
Vary: Origin
Content-Length: 167

Connection #4 to host localhost left intact
ETHON: performed EASY effective_url=http://localhost:3000/api response_code=302 return_code=ok total_time=0.002207
[32] pry(main)>

And...

I tried to capture the packet.
And I can see that 3-way-handshake is implemented only one times.
But I can't still find Connection: Keep-Alive header in request packet.
What happend?

@jumph4x https://en.wikipedia.org/wiki/HTTP_persistent_connection says:

In HTTP 1.1, all connections are considered persistent unless declared otherwise.

No header is needed to do that.

Ah..! Thank you! for answering @i0rek


The generated bip49 address is incorrect.

        String bip49DerivationPath = "m/49'/0'/0'/0/0";
        PrivateKey bip49PrivateKey = wallet.getKey(CoinType.BITCOIN,bip49DerivationPath);
        PublicKey publicKey = bip49PrivateKey.getPublicKeySecp256k1(true);
        BitcoinAddress bitcoinAddress = new BitcoinAddress(publicKey,CoinType.BITCOIN.p2shPrefix());

bitcoinAddress.description() = 31tg3fdy2Nbm7KtQQZ5stx3op2FdxoL4aY
But real address is 3KMuxpzDyXkaFEa54AiToSvnyqhBAG6gK5

In Trust Wallet we use derivation path m/84'/0'/0'/0/0, and SegwitAddress (native segwit).
Please double check derivation path, and prefix used.
How did you derive expected address?
If you provide an example with a private key that can be shared, we can check.

StoredKey storedKey = StoredKey.importHDWallet(mnemonic,"test",newPassword.getBytes(),CoinType.ETHEREUM);
HDWallet wallet = storedKey.wallet(newPassword.getBytes());

String bip49DerivationPath = "m/49'/0'/0'/0/0";
PrivateKey bip49PrivateKey = wallet.getKey(CoinType.BITCOIN,bip49DerivationPath);
PublicKey publicKey = bip49PrivateKey.getPublicKeySecp256k1(true);
BitcoinAddress bitcoinAddress = new BitcoinAddress(publicKey,CoinType.BITCOIN.p2shPrefix());
LogUtils.ln("bitcoinAddress.description()",bitcoinAddress.description());

print:33KPW4uKuyVFsCEh4YgDMF58zprnb817jZ

But in this(https://iancoleman.io/bip39/) is 3PQ5BD39rDikf7YW6pJ9a9tbS3QhvwvzTG
my mnemonic:cluster model myself pet impose acquire flip breeze pass energy inch grant

I have verified that public key matches ('039d645d2ce630c2a9a6dbe0cbd0a8fcb7b70241cb8a48424f25593290af2494b9'), this means derivation path, mnemonic, private key also matches.
Derived address is indeed different.  Investigating.

mnemonic: cluster model myself pet impose acquire flip breeze pass energy inch grant
derived priv key with dp m/49'/0'/0'/0/0 and coin 0: aa3858e668530a3cc6e1b4c685c190994a7dc6adfd4423cd48ad1599a897c48c
derived pub key: 039d645d2ce630c2a9a6dbe0cbd0a8fcb7b70241cb8a48424f25593290af2494b9
hash of pubkey (sha256ripemd): 11d91ce1cc681f95583da3f4a6841c174be950c7
with P2SH prefix 05 prepended, and Base58-encoded: '33KPW4uKuyVFsCEh4YgDMF58zprnb817jZ'

The reference iancoleman test produces the same 2. & 3., 4. is not visible, and the address 5. is different:
'3PQ5BD39rDikf7YW6pJ9a9tbS3QhvwvzTG'

Here is the answer:
The Bitcoin::Address class is used for both p2pkh and p2sh addresses.  The pubkey-based constructor makes sense only for p2pkh addresses, but not for p2sh.  For p2sh one has to take the pubkey hash, build a script (prepend 0014), take the script hash, prepend 05, and create Address from that data.
See also:  https://github.com/trustwallet/wallet-core/discussions/1342
Test code:
        const auto wallet = HDWallet("cluster model myself pet impose acquire flip breeze pass energy inch grant", "");
        const auto privateKey = wallet.getKey(TWCoinTypeBitcoin, DerivationPath("m/49'/0'/0'/0/0")); // aa3858e668530a3cc6e1b4c685c190994a7dc6adfd4423cd48ad1599a897c48c
        const auto publicKey = privateKey.getPublicKey(TWPublicKeyTypeSECP256k1); // 039d645d2ce630c2a9a6dbe0cbd0a8fcb7b70241cb8a48424f25593290af2494b9
        const auto pubKeyHash = publicKey.hash({}); // 11d91ce1cc681f95583da3f4a6841c174be950c7
        const auto script = Script::buildPayToWitnessProgram(pubKeyHash); // 0014 11d91ce1cc681f95583da3f4a6841c174be950c
        const auto scriptHash = Hash::sha256ripemd(script.bytes.data(), script.bytes.size()); // ee1e69460b59027d9df0a79ca2c92aa382a25fb7
        Data addrdat = {TWCoinTypeP2shPrefix(TWCoinTypeBitcoin)};
        TW::append(addrdat, scriptHash); // 05ee1e69460b59027d9df0a79ca2c92aa382a25fb7
        const auto addr = Address(addrdat); // 3PQ5BD39rDikf7YW6pJ9a9tbS3QhvwvzTG

Thank you for your help.
But how to write in java language?I can't find sha256ripemd

Here is the answer:
The Bitcoin::Address class is used for both p2pkh and p2sh addresses. The pubkey-based constructor makes sense only for p2pkh addresses, but not for p2sh. For p2sh one has to take the pubkey hash, build a script (prepend 0014), take the script hash, prepend 05, and create Address from that data.
See also: #1342
Test code:
        const auto wallet = HDWallet("cluster model myself pet impose acquire flip breeze pass energy inch grant", "");
        const auto privateKey = wallet.getKey(TWCoinTypeBitcoin, DerivationPath("m/49'/0'/0'/0/0")); // aa3858e668530a3cc6e1b4c685c190994a7dc6adfd4423cd48ad1599a897c48c
        const auto publicKey = privateKey.getPublicKey(TWPublicKeyTypeSECP256k1); // 039d645d2ce630c2a9a6dbe0cbd0a8fcb7b70241cb8a48424f25593290af2494b9
        const auto pubKeyHash = publicKey.hash({}); // 11d91ce1cc681f95583da3f4a6841c174be950c7
        const auto script = Script::buildPayToWitnessProgram(pubKeyHash); // 0014 11d91ce1cc681f95583da3f4a6841c174be950c
        const auto scriptHash = Hash::sha256ripemd(script.bytes.data(), script.bytes.size()); // ee1e69460b59027d9df0a79ca2c92aa382a25fb7
        Data addrdat = {TWCoinTypeP2shPrefix(TWCoinTypeBitcoin)};
        TW::append(addrdat, scriptHash); // 05ee1e69460b59027d9df0a79ca2c92aa382a25fb7
        const auto addr = Address(addrdat); // 3PQ5BD39rDikf7YW6pJ9a9tbS3QhvwvzTG

Check out TWHashRIPEMD in TWHash (it is exposed to java side)

can i spend p2sh's address utxo? @optout21 , i found buildPayToWitnessScriptHash,  buildPayToWitnessPubkeyHash, not found buildPayToWitnessProgram.


Random blank screen at connection

Randomly occurs:

Expected behavior:

Anyone got this problem too?
I don't know if it's a build problem, some cross-compile wxWidget error or another thing like that
@mariuz had you gotten this too?

HI @arvanus
This issue has happened to me several times but I was unable to identify a sequence of steps that was 100% reproducible.
This is an easier issue to be seen on high latency networks.
In other words, this is a valid issue and I hope you can find the root cause.
Best Regards,
Luciano

I think it's something related to the thread while connecting, it's an easy stuff to mess with, and hard do find
😢
Unfortunately I have a little experience with threads in c++, and as it's not really and blocking bug, I won't try to fix it right now

Hi @arvanus
Did you have the opportunity to compare the current source code with the source code for version 5ece15b?
I am almost 100% sure that in version 5ece15b this issue would not happen.
Comparing the current code with the 5ece15b code can help you identify the issue.

https://github.com/mariuz/flamerobin/compare/<IP_ADDRESS>...master
Looking across versions, I couldn't find much changes
I would list major changes: WINVER change from WINVER=0x400 to WINVER=0x500 and wxWidget change...
The change list aren't that long but off-course I could miss something

If we don't have so many changes compared to the 5ece15b version, we are probably seeing this issue because the executable is not optimized.
Lets wait for the @mariuz reply in the issue #38 and retest this issue with the optimized version of flamerobin.

I doubt that the lack of optimization is the cause. In fact to much optimization at compiler level can lead to some strange bugs like this small example:
https://developercommunity.visualstudio.com/content/problem/161765/c-compiler-bug-optimization-with-demo-code.html
But of course everything must be tested

Looks like don't occurs at debug, just in the "Release Dynamic" build

Can we get a clear picture of what's happening?

Does the connection still open?
What method of opening is being used (e.g. double-click on registered DB)
What version of wxWidgets (check About dialog)

Looks to me like some kind of race condition in wx setting up the dialog. So I guessed at a possible solution in pull req #117

Can we get a clear picture of what's happening?
* Does the connection still open?

Yes

* What method of opening is being used (e.g. double-click on registered DB)

double-click

* What version of wxWidgets (check About dialog)

3.1.3

Looks to me like some kind of race condition in wx setting up the dialog. So I guessed at a possible solution in pull req #117
This bug just occurs randomly in release mode,when I'm running in debug mode never occurred
I'd guess it's related to some c++ optimization in release....

* What version of wxWidgets (check About dialog)

3.1.3

Have you tried 3.1.4? Seeing as wx3.1 is the development branch, it's likely they've created some bugs along the way. Seen problems like this before in other desktop GUI libs (Qt, IUP), and it's usually a case of forcing the dialog to layout.
TBH I've just been using the wx debug DLLs for code work, I should really build the static libs.

I'll try 3.1.4
I'll give a try to stable 3.0.5 too, (don't know if will compile)

Apparently with the new cmake build it's working

Apparently with the new cmake build it's working


Class 'OneLogin_Saml2_Settings' not found .. metadata.php

Hi!
demo1/ is broken.

Class 'OneLogin_Saml2_Settings' not found

means that the metadatap.php file was not able to load the OneLogin_Saml2_Settings class.
Are you using the php-saml 2.X version?
Otherwise, if you using php-saml 3.X you may use this version of metadata.php that uses namespaces
use OneLogin\Saml2\Settings;

I am using 'master' branch.

master is 2.X branch.
Are you loading the toolkit libs properly?

I fetched latest release and found no demo1/ directory so I made git clone. This might explain the problem.

The zip does not include demo code, just the toolkit itself, if you need the demo, then you need the git repository, but I guess you modified something so the demo1 is not able to load the libraries.

Latest release available for download here is v3.1.0. Master branch is is 2.X.
Surely I shot myself in the foot. I did not expect the master branch to be a major version behind.

3.X is incompatible with 2.X
master is still set to 2.X to prevent environments using master branch in its composer to have their env broken.


Does backpressure on response body work?

Reading through the code I can't see that backpressure is applied from the response body.
i.e.
      this.parser[HTTPParser.kOnBody] = (chunk, offset, length) => {
        this[kLastBody].push(chunk.slice(offset, offset + length))
      }

Does nothing with the return value of push which should be indicating whether more data should be received or not...

It was working as expected. That push was triggered via kRead and using the pull interface.


i18n weighted multi language support

Adding support for multiple types, weighted with the quality value syntax:
Accept-Language: fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5

We should use Locale.LanguageRange.parse(String ranges) to parse the Accept-Languag header. Then using Locale.lookup(List<Locale.LanguageRange> priorityList, Collection<Locale> locales) method we can select the correct locale.


Test pre-release notebooks after pre-release in isolation

Description of the issue
Our notebook test infra is pretty good but has one gap: pre-release notebooks are not tested in isolation, only on PRs against the given branch. This gap should be covered by a test that runs after a master commit triggered the pre-release to pypi, the new release is in the index and should cover all the notebooks that have pre-release cirq installed in them.

Do we know if this was already done? Otherwise it seems simple enough to add, but not priority for 1.0.


typo: libary -> library

@nschonni : Thanks for your contribution! The author, @devinrader, has been notified to review your proposed change.

+1


[Unity][FX] Add fx support for functional linear and conv2d

This PR adds support for the functional variants of linear and conv2d in the relax fx importer. I was trying out using the fx path to import SDXL and found that it generated functional nodes. After this change, the full import goes smoothly.

Thank you @jwfromm! Also CC @guoyaol who is looking into SDXL.

Hmmm looks like fx_translator.py is conflict with the latest commit https://github.com/apache/tvm/commit/fd08c1c6cd7bbcf7e7a47f6b421d82d29adac986


Added support FCM push notifications

Added support FCM push notifications
Refactoring real time notification interface to remove skypetoken

https://skype.visualstudio.com/SPOOL/_wiki/wikis/SPOOL.wiki/21694/Android-Details
This is a wiki for the call flows behind.


Unified environment build errors with ifx

Describe the bug
I am trying to build the full unified environment with the OneAPI compilers (oneapi) using ifx instead of ifort. The following packages don't build:

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>(or 2.0.8) - this doesn't show up as error, because we've excluded wgrib2 from all packages with oneAPI C/C++ compilers (icx, icpx) already.

Except for wgrib2, the packages all fail in the same way:
  >> 35     /home/dom/work/spack-stack/spack-stack-1.8.0/cache/build_stage/spack-stage-landsfcutil-2.4.1-dijmr3dnylycshr6q6cjtbj7ksqzfdue/spack-src/src/co
            nsts.f(1): error #5149: Illegal character in statement label field  [m]
     36      module consts
     37     -^

All of these packages are NOAA-EMC's NCEPLIBS, therefore tagging @AlexanderRichert-NOAA and @edwardhartnett. I checked some of the GitHub packages and I saw that there was recent development for supporting Intel LLVM compilers, but there are no releases yet that contain that code, or the releases aren't in spack yet.
Otherwise, things are looking pretty good!
[ue-oneapi-2024.2.1] [dom@blackpearl spack-stack-1.8.0]$ spack find
==> In environment /home/dom/work/spack-stack/spack-stack-1.8.0/envs/ue-oneapi-2024.2.1
==> 20 root specs
-- no arch / oneapi ---------------------------------------------
[+]<EMAIL_ADDRESS>           [+] geos-gcm-env%oneapi         [+] jedi-geos-env%oneapi     [+]<EMAIL_ADDRESS>[+]<EMAIL_ADDRESS>                -  global-workflow-env%oneapi  [+] jedi-mpas-env%oneapi     [+] neptune-env%oneapi ~espc+python~xnrl
[+]<EMAIL_ADDRESS>snapshot=none    [+] gmao-swell-env%oneapi       [+] jedi-neptune-env%oneapi  [+] soca-env%oneapi
[+]<EMAIL_ADDRESS>snapshot=b11   -  gsi-env%oneapi               -  jedi-ufs-env%oneapi       -  ufs-srw-app-env%oneapi
[+] ewok-env%oneapi ~cylc+ecflow        [+] jedi-fv3-env%oneapi         [+] jedi-um-env%oneapi       [+] ufs-weather-model-env%oneapi

==> Installed packages
-- linux-oracle9-skylake /<EMAIL_ADDRESS>---------------------------
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
-- linux-oracle9-skylake /<EMAIL_ADDRESS>----------------------
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>ca-certificates-mozilla@2023-05-30  <EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>         shumlib@macos_clang_linux_intel_port
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>==> 314 installed packages

To Reproduce
Use a compiler config like this to install the unified environment:
- compiler:
    spec<EMAIL_ADDRESS>    paths:
      cc: /opt/intel/oneapi/2024.2/bin/icx
      cxx: /opt/intel/oneapi/2024.2/bin/icpx
      f77: /opt/intel/oneapi/2024.2/bin/ifx
      fc: /opt/intel/oneapi/2024.2/bin/ifx
    flags: {}
    operating_system: oracle9
    target: x86_64
    modules: []
    environment:
      # change to append_path once relevant PR is merged
      append_path:
        CPATH: /opt/intel/oneapi/compiler/2024.2/opt/compiler/include/intel64
    extra_rpaths: []

Expected behavior
All packages build with icx/icpx/ifx
System:
Oracle Linux 9.1 in WSL2
Additional context
n/a

We've added OneAPI support for all NCEPLIBS' develop branches, but a few of them still need releases. Working on it now...

No rush! We don't have ifx in the list of supported compilers for 1.8.0 - would be great to have it for 1.9.0.

GEOSgcm v12 should support ifx (and GCC 14) as well is my hope. Maybe even an upcoming version of v11.

What's the status of this? Are the NCEPLIBS packages all building with latest releases?

Checking this right now. Some versions are not updated in spack-stack common packages.yaml as required, I will create a PR for that.

Definitely missing is wgrib2, but there is a separate issue for it in this repo.

Everything except wgrib2 is addressed in #1406 - I assume EMC will take care of the wgrib2 update?


Possible optional params for transaction input

Regarding these transaction specs, certain fields were specified as optional in the legacy spec:

I'm not sure if this is still true, and even if it is, I'm not sure if the added EIP-2930 and EIP-1559 parameters are optional

It does appear that most of these fields are optional values for eth_sendTransaction. For eth_signTransaction it appears value is optional and the request must either provide gasPrice or maxFeePerGas + maxPriorityFeePerGas.
This is starting to make me feel like the approach of reusing objects across the rpc spec is not sustainable.


Adjusting the bg image with 3 dogs

Describe the bug
The background image of the landing page with contains 3 dogs is not fitting the spcae meant for it and there is a blank space left out at the bottom of the image.
To Reproduce
Steps to reproduce the behavior:

Go to 'your website'
Scroll down to 'just above "about"'
See error

Expected behavior
The white space should not be showing.
Screenshots

Additional context
Allow me to fix this issue by assigning this task to me under the label of GSSOC 2023

Hi @laibaahsan27
I will adjust the background with 3 dogs . Please assign me this issue;


arabic input is not parsing

I'm using formidable in my express backend. Everything works fine, but when im passing anything other than english in any field, that field is undefined

Hello, @ibrahimmvp :wave:
Can you give us examples? And what version you are using?


ARROW-15960: [C++] Fix crash on adaptive int builder edge cases

AdaptiveIntBuilder (and AdaptiveUIntBuilder) would crash when asked to append 0 nulls to a 0-length builder.
Also fixes the following PyArrow crash:
pa.array([None], pa.list_(pa.dictionary(pa.int32(), pa.string()), 0))

@github-actions crossbow submit test-conda-python-3.8-hypothesis

Crossbow job running here:
https://github.com/ursacomputing/crossbow/runs/5648003625?check_suite_focus=true


Add limits on Key Usage

Problem:
There are cryptographic limits on the amount of plaintext which can be safely encrypted under a given set of keys. [AEAD-LIMITS]provides an analysis of these limits under the assumption that the underlying primitive (AES or ChaCha20) has no weaknesses.Implementations SHOULD do a key update as described in Section 4.6.3prior to reaching these limits.
For AES-GCM, up to 2^24.5 full-size records (about 24 million) may be encrypted on a given connection while keeping a safety margin of approximately 2^-57 for Authenticated Encryption (AE) security. ForChaCha20/Poly1305, the record sequence number would wrap before the safety limit is reached.
https://tools.ietf.org/html/rfc8446#section-5.5
Proposed Solution:

This was finished in #1920


App lifecycle separation

This is a work in progress (expect bugs) aiming to improve separation of app lifecycle and windowing without changing the API.
See multiwindow.cc for an example with multiple windows managed by the library (shifted focus away from user-managed windows).
Tested and working on the following platforms:

[x] Linux
[x] Windows
[x] macOS

Current behavior when closing windows:

Linux: Closing any window makes run() return.
macOS: Closing all windows doesn't make run() return (just no remaining windows open).
Windows: Closing any window makes run() return.

Looks interesting. I'll take a look over the weekend. Thank you for the work!

If we're going to support multiple windows created by the library then it needs to stop immediately calling terminate() whenever a window closes.

I've managed to avoid the crashes on macOS but a remaining problem is how the first webview instance's run() call returns during construction of the second instance which then exits the app.
This is turning into a bit of a mess in my opinion.

With some more adjustments for macOS...

This looks awesome already. I gave it a shot with the V binding without stopovers. On mac I'm still running into a seg fault as soon as opening the second window. Works on Linux and Windows.
I will try better tomorrow and in one of the officially supported langs!
import webview { EventId, JSArgs }

const doc = '<button id="new-window">New window</button>
<script>
	const newWindowButton = document.querySelector("#new-window");
	document.addEventListener("DOMContentLoaded", () => {
		newWindowButton.addEventListener("click", () => {
			window.new_window();
		});
	});
</script>'

fn main() {
	w := webview.create()

	w.set_title('Win1')
	w.set_html(doc)
	w.set_size(480, 320, .@none)

	w.bind('new_window', fn [w] (_ EventId, _ JSArgs, _ voidptr) {
		w.dispatch(fn (_ &webview.Webview, _ voidptr) {
			w2 := webview.create()
			w2.set_title('Secondary Window')
			w2.set_html('My second Window')
		}, 0)
	}, 0)

	w.run()
}

Not sure but to me it looks like maybe somewhere in create_app_delegate() a method is called on a null pointer.

Make sure that w2 isn't destroyed at the end of the scope of the binding handler. Maybe that's it?

Unfortunately no change.

Okay works when disabling garbage collection, should have tried that earlier... Thanks for the assistance!

It seems like I was incorrect regarding the current behavior on macOS when closing windows. When testing it again, it appears that the run loop does stop, and the app does exit. It just takes a few seconds sometimes.

The behavior is now aligned on all platforms: run() returns when closing all windows.

Regarding creating multiple windows on macOS:
Go works well with the PR 🙂:+1:.
In V, building with -gc none will also not cause a segfault anymore. But funnily, this is also the case without the PR. It's possible to create multiple windows without GC on mac. This is not the case for Go.
I tried several approaches so that V users would only require [manualfree] for the affected sections to make an app that uses multiple windows mac compatible. Unfortunately, the only solution I found was a that a entire program needs to be set to manual memory management.

This is not the case for Go.

Sorry, can you please clarify this bit? I read this as Go working well except when you disable GC on macOS.
Is there any chance the webview library is being compiled with ARC enabled on macOS? If so then you currently need to disable it just for the webview core library.

Yes sure, what I mean is that Go is working well with the PR, just regularly compiled. Using the git head it crashes on macOS. I never fiddled with the garbage collector in go so this is all with the defaults.
I'm working on the V wrapper, so I also added the experience made with it. With V it is already possible to create multiple windows on macOS the git head, as long as not using garbage collection. Of course there are still the life cycle issues you fix here, but it won't crash. With the PR it's still required to use manual memory to not segfault with V.
IDK if and if yes how it's possible to help the GC better understand.

By "git head", I guess you mean the master branch that doesn't currently have the fix?
Frankly I'm not really a Go developer and have never worked with V before, but I would just assume that there's a sensible way to avoid your objects from being destroyed by the GC.
For example this snippet that you shared before:
	w.bind('new_window', fn [w] (_ EventId, _ JSArgs, _ voidptr) {
		w.dispatch(fn (_ &webview.Webview, _ voidptr) {
			w2 := webview.create()
			w2.set_title('Secondary Window')
			w2.set_size(480, 320, .@none)
			w2.set_html('Secondary Window')
		}, 0)
	}, 0)

To me this looks like it'll for sure be GC at some point because w2 goes out of scope and nothing else references it.
I assume you made changes to this example so what does it look like now?

By "git head", I guess you mean the master branch that doesn't currently have the fix?

Yes, exactly - latest master, fix not yet merged.

I assume you made changes to this example so what does it look like now?

Yes it changed. I'm at my phone currently on the way to do some light work. When I get the chance I add one or two of the approaches here during the day. Else this night. Thanks already :pray:

To share a very short insight at first: The segfault happens as soon as calling webview_create a second time, no matter the scope.
E.g.
import webview

fn main() {
	w := webview.create()
	w2 := webview.create()
}

An example using dispatch and adding the window into the applications scope:
import webview

const doc = '<button id="new-window">New window</button>
<script>
	const newWindowButton = document.querySelector("#new-window");
	document.addEventListener("DOMContentLoaded", () => {
		newWindowButton.addEventListener("click", () => {
			window.new_window();
		});
	});
</script>'

[heap]
struct App {
mut:
	w  &webview.Webview
	w2 &webview.Webview
}

fn main() {
	mut app := App{
		w: webview.create()
		w2: unsafe { nil }
	}
	app.w.set_title('Primary Window')
	app.w.set_size(480, 320, .@none)
	app.w.set_html(doc)
	app.w.bind_ctx('new_window', fn (e &webview.Event, mut ctx App) {
		e.dispatch_ctx(fn (mut ctx App) {
			ctx.w2 = webview.create()
			ctx.w2.set_title('Secondary Window')
			ctx.w2.set_size(480, 320, .@none)
			ctx.w2.set_html('Secondary Window')
		}, ctx)
	}, app)

	app.w.run()
}

Some attempts included modifying the wrapper functions in the library to force it into a working version. They didn't work either so I won't go further into them. In the end the only way was to disable garbage collection entirely.

I hate to ask something that may seem so obvious but did you see proof that webview.h is the same version as in this PR when compiled with V?
I guess you could just put an #error hello directive in webview.h and if it errors with "hello" then that would prove it.
If that doesn't help then it would be interesting to figure out what's causing the segfault inside create_app_delegate(). Not sure if you're able to place breakpoints here and step through the code, but if not, maybe it could help to put log lines such as std::cout << "something" << std::endl; before each call to the Objective-C runtime inside create_app_delegate() (and you'll need to add #include <iostream> near the other #include directives).

That's good steps to come closer to the problem, thank you! @SteffenL
I'll walk the dog and come back to this.

I hate to ask something that may seem so obvious but did you see proof that webview.h is the same version as in this PR when compiled with V?

I made sure of this. In fact I just manually copied the webview.h and webview.o files that were created in the PR build that made Go work.

I guess you could just put an #error hello directive in webview.h and if it errors with "hello" then that would prove it.

Adding #error hello to the header file confirmed that.
But! Adding the std::couts, recompiling and not seeing them did reveil that something is not right.
Deleting the cache in .vmodules did the trick.

So @SteffenL it works.

The multiwindow.cc example has been removed to narrow down the scope of this PR. If we're going to fully support this then we also need examples that cover passing an existing window, and that isn't something that worked well across all platforms even before this PR. The library is missing features that are important for managing windows so that isn't the main focus of this PR.
The initial post has been rewritten to describe the changes in more detail.


Np 2385 add cristin headers

This is the first PR for this issue. More will come later to create smaller PR instead of one large one


minor, code improve

improve QueryResutsCache

Please open a JIRA https://issues.apache.org/jira/issues/
Rename this branch to HIVE-xxxx
Make the title of this PR: HIVE-xxxx: QueryResultsCache minor code improve


How to implement JWT?

Seem that the json API is not secure enough, may i know if it is possible to implement JWT?

There's a old branch with an example here

thx. I have one more question.
How to split into mobile view and desktop view for angular universal.


Generic scope name

Hey, the scope feature is pretty neat. However, there are times where one might prefer a generic scope name that takes a parameter. I.e. rather than MyModel.foo, MyModel.attr_name(:foo). Or MyModel.with_attr_name(:foo), whichever naming seems best. How does this sound to you?

class Project
  include Mongoid::Document
  include Mongoid::Symbolize

  field :name
  symbolize :state,
    :in => [:active, :wip, :done],
    :default => :active,
    :i18n => false, :scopes => true

  default_scope    where(:state => :active)
  scope :inactive, any_in(:state => [:done, :wip])

  def self.with_attr scope_name
    self.send(scope_name.to_sym)
  end

end

Then calls like Project.with_attr(:wip) will work.
Better approach of field related scope calls would be (in 1.9 style):
scope :with_state, ->(state){ where(state: state)}

If you really want to implement such a feature, try to extend the ":scopes => true" to internally add these additional lambda scope with corresponding names of scheme "with_@@FIELDNAME@@_attr", because a general "with_attr" could be confusing if somebody has a lot of different fields with symbolized attributes.
Furthermore: A general problem will be, that it is not possible to define different fields with identical attribute names and get them scoped.
symbolize :foo, :in => [:one, :two, :three], …
symbolize :bar, :in => [:two, :three, :four], …
# don't try to add ":scopes => true" on both
# -> the latest definition will overwrite any already existing scopes

# what should happen here?
MyModel.with_attr(:two)

A  #with_attr method won't help here (which of the fields with the requested attribute should be called?).
For this issue we would need an additional parameter for the with_attr call and end up in an origin scope call. Then I would prefer a predefined scope definition in my model instead of a helper which won't help me / save my time / reduce my code.

For the scope gets overwritten problem see issue #17.