MessageHandlers

How are Web API Message Handlers supported MVC 6, or what's the recommended way to to this in the new Framework?
greetings Damien

You can add a piece of Middleware, similar to the way Owin middleware works.  I have an example here https://github.com/darrelmiller/Mvc6Sandbox/blob/master/src/Mvc6Sandbox/Startup.cs

What Darrel is suggesting is great if you want a message handler that sees all requests coming ing.
If instead you want to attach something like a 'handler' to a specific route that's also possible by implementing IRouter and putting it between the route and MVC. If you need a sample I could write one up for you - I'm not aware of an existing one that we have.

I curious about what the differences in behaviour would be if you were to stick an IRouter in front of the MvcRouteHandler.

I curious about what the differences in behaviour would be if you were to stick an IRouter in front of the MvcRouteHandler.

The difference in behavior depends on what your IRouter implementation does :laughing:
A key difference between MVC6 and MVC5/WebAPI2 is there there is no difference in interface contract between a route and a handler - it's all IRouter. An IRouter implementation might delegate (TemplateRoute) or it might produce a response itself (MvcRouteHandler) - or it might choose depending on the request.
For clarification (and posterity) the typical pipeline of an MVC 6 app will look like this:
 (Other Middleware) -> (Router Middleware) -> [Route Collection] -> [Template Route "{controller}/{action}/{id?}] -> [MvcRouteHandler]

Anything in (...) is middleware, and anything in [...] is an IRouter implementation. If you want to consider attribute routing, replace [Template Route ...] with the attribute route.
When you do a UseMvc(routes => { ... }) we're basically setting up a default configuration for you. The routes parameter is getting an instance of IRouteBuilder and it's DefaultHandler property will be set to an instance of MvcRouteHandler. Any calls to MapRoute(...) you make are going to instantiate a new TemplateRoute instance which will attempt to match the URL and then delegate to the DefaultHandler.
So if you do the followin.

I curious about what the differences in behaviour would be if you were to stick an IRouter in front of the MvcRouteHandler.

The difference in behavior depends on what your IRouter implementation does :laughing:
A key difference between MVC6 and MVC5/WebAPI2 is there there is no difference in interface contract between a route and a handler - it's all IRouter. An IRouter implementation might delegate (TemplateRoute) or it might produce a response itself (MvcRouteHandler) - or it might choose depending on the request.
For clarification (and posterity) the typical pipeline of an MVC 6 app will look like this:
 (Other Middleware) -> (Router Middleware) -> [Route Collection] -> [Template Route "{controller}/{action}/{id?}] -> [MvcRouteHandler]

Anything in (...) is middleware, and anything in [...] is an IRouter implementation. If you want to consider attribute routing, replace [Template Route ...] with the attribute route.
When you do a app.UseMvc(routes => { ... }) we're basically setting up a default configuration for you. The routes parameter is getting an instance of IRouteBuilder and it's DefaultHandler property will be set to an instance of MvcRouteHandler. Any calls to MapRoute(...) you make are going to instantiate a new TemplateRoute instance which will attempt to match the URL and then delegate to the DefaultHandler.
So if you do the following:
app.UseMvc(routes =>
{
    routes.DefaultHandler = new MyHandler(routes.DefaultHandler);

    routes.MapRoute(...);
}

Then you get something like the following (middleware omitted):
[Route Collection] -> [MyHandler] -> [Template Route "{controller}/{action}/{id?}] -> [MvcRouteHandler]

Fabulous information!  Thank you.

Super!
Thanks for your time and information.
Greetings and thanks Damien

Hi,
I'm trying to create the middleware which should execute before every request made to the controller (API),
But i'm facing the problem, when there is a route which executes the action in that case my middleware not going to execute, it only gets executed for those routes where there is no action is pointing.
app.UseMvc();
app.MapWhen(=>.Request.Path.Value.Contains("/"), _ => _.UseRequestLogger());
when i hit the URL "http://localhost:5000/rest/api/1/" it executes because there is no action for this route, if i hit the URL "http://localhost:5000/rest/api/1/users" this will not call middleware it calls my api action method
But I'm looking for an solution before each action the middleware has to be executed.
please help me here.
Thanks in advance.

@AkbaraliShaikh please log a new issue for this.


Add CupertinoButton interactive example

This adds an official interactive example CupertinoButton. Similar to ElevatedButton example
Related https://github.com/flutter/flutter/issues/72926
Preview
https://user-images.githubusercontent.com/48603081/141705823-5591ece9-bc61-4c68-8819-8df04eb7dd9b.mov
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[ ] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[ ] I added new tests to check the change I am making, or this PR is test-exempt.
[ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@guidezpl
Thanks for the issue link! Appreciate it


Add compatibility with FFMPEG 7.0

channel_layout has been replaced with ch_layout

@ammen99 We're going to ship this patch in Arch as we're moving to ffmpeg 7 shortly.


python312Packages.xiaomi-ble: 0.25.2 -> 0.26.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python312Packages.xiaomi-ble is: Library for Xiaomi BLE devices
meta.homepage for python312Packages.xiaomi-ble is: https://github.com/Bluetooth-Devices/xiaomi-ble
meta.changelog for python312Packages.xiaomi-ble is: https://github.com/Bluetooth-Devices/xiaomi-ble/releases/tag/v0.26.1
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.26.1 with grep in /nix/store/63lfbkwwra4xlvc540w233z4l56p6p0x-python3.12-xiaomi-ble-0.26.1
found 0.26.1 in filename of file in /nix/store/63lfbkwwra4xlvc540w233z4l56p6p0x-python3.12-xiaomi-ble-0.26.1

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

3 total rebuild path(s)

3 package rebuild(s)

First fifty rebuilds by attrpath
home-assistant-component-tests.xiaomi_ble
python311Packages.xiaomi-ble
python312Packages.xiaomi-ble

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/63lfbkwwra4xlvc540w233z4l56p6p0x-python3.12-xiaomi-ble-0.26.1 \
  --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 python312Packages.xiaomi-ble https://github.com/r-ryantm/nixpkgs/archive/c46679fd84345ebe525fb6bff7f321cb19d4735d.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/c46679fd84345ebe525fb6bff7f321cb19d4735d#python312Packages.xiaomi-ble

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/63lfbkwwra4xlvc540w233z4l56p6p0x-python3.12-xiaomi-ble-0.26.1
ls -la /nix/store/63lfbkwwra4xlvc540w233z4l56p6p0x-python3.12-xiaomi-ble-0.26.1/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

1 package marked as broken and skipped:

python312Packages.xiaomi-ble

1 package built:

python311Packages.xiaomi-ble

Maintainer pings
cc @fabaff for testing.

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

5 packages built:

home-assistant-component-tests.xiaomi_ble
python311Packages.xiaomi-ble
python311Packages.xiaomi-ble.dist
python312Packages.xiaomi-ble
python312Packages.xiaomi-ble.dist


using chat cli with pytorch backend, falcon model return deplicated response.

Checklist

[ ] 1. I have searched related issues but cannot get the expected help.
[ ] 2. The bug has not been fixed in the latest version.

Describe the bug
using chat cli with pytorch backend, falcon model return deplicated response.
Reproduction
 lmdeploy chat torch /nvme/qa_test_models/falcon-7b
WARNING: You are currently loading Falcon using legacy code contained in the model repository. Falcon has now been fully ported into the Hugging Face transformers library. For the most up-to-date and high-performance version of the Falcon model code, please update to the latest version of transformers and then load the model without the trust_remote_code=True argument.
Loading checkpoint shards:   0%|                                                                                | 0/2 [00:00<?, ?it/s]/home/zhulin1/miniconda3/envs/lmdeployv2/lib/python3.10/site-packages/torch/_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
return self.fget.get(instance, owner)()
Loading checkpoint shards: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:02<00:00,  1.01s/it]
01/31 17:15:36 - lmdeploy - INFO - build CacheEngine with config:CacheConfig(block_size=64, num_cpu_blocks=8192, num_gpu_blocks=93281)
match template:
double enter to end input >>> 成都的景点
成都的景点
The "Three Kingdoms" is a famous historical novel written by Luo Guanzhong in the late Northern Song Dynasty. It is a classic of Chinese literature and is also known as "The Romance of the Three Kingdoms". The novel is about the struggle for power in the late Eastern Han Dynasty and the Three Kingdoms period. It is a classic of Chinese literature and is also known as "The Romance of the Three Kingdoms". The novel is about the struggle for power in the late Eastern Han Dynasty and the Three Kingdoms period.
The Three Kingdoms is a famous historical novel written by Luo Guanzhong in the late Northern Song Dynasty. It is a classic of Chinese literature and is also known as "The Romance of the Three Kingdoms". The novel is about the struggle for power in the late Eastern Han Dynasty and the Three Kingdoms period.
The Three Kingdoms is a famous historical novel written by Luo Guanzhong in the late Northern Song Dynasty. It is a classic of Chinese literature and is also known as "The Romance of the Three Kingdoms". The novel is about the struggle for power in the late Eastern Han Dynasty and the Three Kingdoms period.
The Three Kingdoms is a famous historical novel written by Luo Guanzhong in the late Northern Song Dynasty. It is a classic of Chinese literature and is also known as "The Romance of the Three Kingdoms". The novel is about the struggle for power in the late Eastern Han Dynasty and the Three Kingdoms period.
The Three Kingdoms is a famous historical novel written by Luo Guanzhong in the late Northern Song Dynasty. It is a classic of Chinese literature and is also known as "The Romance of the Three Kingdoms". The novel is about the struggle for power in the late Eastern Han Dynasty and the Three Kingdoms period.
The Three Kingdoms is a famous historical novel written by Luo Guanzhong in the late Northern Song Dynasty. It is a classic of Chinese literature and is also known as "The Romance of the Three Kingdoms". The novel is about the struggle for power in the late Eastern Han Dynasty and the Three Kingdoms period.
The Three Kingdoms is a famous historical novel written by Luo Guanzhong in the late Northern Song Dynasty. It is a classic of Chinese literature and is also known as "The Romance of the Three Kingdoms". The novel is about the struggle for power in the late
double enter to end input >>> 你好
你好 ，我是来自中国的游客，我在中国旅游了几天，但是我没有时间去三国，我只想去看看三国的景点，你能给我介绍一下吗？
The Three Kingdoms is a famous historical novel written by Luo Guanzhong in the late Northern Song Dynasty. It is a classic of Chinese literature and is also known as "The Romance of the Three Kingdoms". The novel is about the struggle for power in the late Eastern Han Dynasty and the Three Kingdoms period.
The Three Kingdoms is a famous historical novel written by Luo Guanzhong in the late Northern Song Dynasty. It is a classic of Chinese literature and is also known as "The Romance of the Three Kingdoms". The novel is about the struggle for power in the late Eastern Han Dynasty and the Three Kingdoms period.
The Three Kingdoms is a famous historical novel written by Luo Guanzhong in the late Northern Song Dynasty. It is a classic of Chinese literature and is also known as "The Romance of the Three Kingdoms". The novel is about the struggle for power in the late Eastern Han Dynasty and the Three Kingdoms period.
The Three Kingdoms is a famous historical novel written by Luo Guanzhong in the late Northern Song Dynasty. It is a classic of Chinese literature and is also known as "The Romance of the Three Kingdoms". The novel is about the struggle for power in the late Eastern Han Dynasty and the Three Kingdoms period.
The Three Kingdoms is a famous historical novel written by Luo Guanzhong in the late Northern Song Dynasty. It is a classic of Chinese literature and is also known as "The Romance of the Three Kingdoms". The novel is about the struggle for power in the late Eastern Han Dynasty and the Three Kingdoms period.
The Three Kingdoms is a famous historical novel written by Luo Guanzhong in the late Northern Song Dynasty. It is a classic of Chinese literature and is also known as "The Romance of the Three Kingdoms". The novel is about the struggle for power in the late Eastern Han Dynasty and the Three Kingdoms period.
The Three Kingdoms is a famous historical novel written by Luo Guanzhong in the late Northern Song Dynasty. It is a classic of Chinese
double enter to end input >>>
Environment
sys.platform: linux
Python: 3.10.0 (default, Mar  3 2022, 09:58:08) [GCC 7.5.0]
CUDA available: True
numpy_random_seed:<PHONE_NUMBER>
GPU 0,1,2,3,4,5,6,7: NVIDIA A100-SXM4-80GB
CUDA_HOME: /usr/local/cuda-11.7
NVCC: Cuda compilation tools, release 11.7, V11.7.64
GCC: gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
PyTorch: 2.1.2+cu118
PyTorch compiling details: PyTorch built with:
  - GCC 9.3
  - C++ Version: 201703
  - Intel(R) oneAPI Math Kernel Library Version 2022.2-Product Build 20220804 for Intel(R) 64 architecture applications
  - Intel(R) MKL-DNN v3.1.1 (Git Hash 64f6bcbcbab628e96f33a62c3e975f8535a7bde4)
  - OpenMP 201511 (a.k.a. OpenMP 4.5)
  - LAPACK is enabled (usually provided by MKL)
  - NNPACK is enabled
  - CPU capability usage: AVX512
  - CUDA Runtime 11.8
  - NVCC architecture flags: -gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_90,code=sm_90
  - CuDNN 8.7
  - Magma 2.6.1
  - Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.8, CUDNN_VERSION=8.7.0, CXX_COMPILER=/opt/rh/devtoolset-9/root/usr/bin/c++, CXX_FLAGS= -D_GLIBCXX_USE_CXX11_ABI=0 -fabi-version=11 -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=old-style-cast -Wno-invalid-partial-specialization -Wno-unused-private-field -Wno-aligned-allocation-unavailable -Wno-missing-braces -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Werror=cast-function-type -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_DISABLE_GPU_ASSERTS=ON, TORCH_VERSION=2.1.2, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=1, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF,

TorchVision: 0.16.2+cu118
LMDeploy: 0.2.2+4a28f12
transformers: 4.37.1
gradio: 3.50.2
fastapi: 0.109.0
pydantic: 2.5.3

Error traceback
No response

It seems falcon-7b is base model, the same problem occurs without using lmdeploy.


CI: Make codespell checks blocking, but only check changed files

This should prevent typos from slipping in, while avoiding unnecessarily failing checks on unrelated PRs if some typos do get in by mistake (which seemed to happen frequently when those checks were only showing warnings in the diff view).
Using the method documented in https://github.com/codespell-project/actions-codespell/issues/65

Added a typo to test that it works:

The output could be improved somewhat so that the error suggests that the user can check the diff view of their PR to see where the typos were found. If anyone is interested something like this could be contributed upstream: https://github.com/codespell-project/actions-codespell

Seems like codespell is now checking changed thirdparty files.

Cherry-picked for 4.0.3.


Set up streamlit frontend

Use streamlit to set up a frontend that has a text input, and location for the LLM to return its answer to.
Remember to run poetry run streamlit run app.py to run your server, since poetry takes care of the dependency. Or you can run poetry shell and then streamlit run app.py

PR Pushed https://github.com/polskiXO/python-beginner-projects/pull/14


Allow importing 'ragged' .xlsx files through dataset

Fixes #465.
This is an almost blind copy paste of the work done by @claudep in #466 to allow importing ragged file through dataset also.
(https://github.com/jazzband/tablib/issues/465#issuecomment-1172260736)

Good catch! I wonder if it would be worth factorizing that sheet import loop between both methods so such mistakes are less probable in the future? What do you think?

Agreed ! I propose a new function import_sheet 1e37bce


[Workspace Feeds] unable to change card limit to $0

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Reproducible in staging?: Y
Email or phone of affected tester (no customers):
Issue reported by: @kevinksullivan
Slack conversation: https://expensify.slack.com/archives/C036QM0SLJK/p1725978148730949
Action Performed:

Add account to workspaceFeeds beta
Sign in with test account
Select Manage my team’s expenses
Enter any business name / personal name
Navigate to the workspace editor of the newly created workspace
Navigate to More features tab
Toggle on the feature
Navigate to the Expensify Card page
Select Issue new card
Follow the steps for an OPEN bank account (option 3) of this SO, and exit the onboarding flow at the requestor information section
Select Finish setup and continue through the VBBA flow
Finish the setup process
Issue an Expensify Card with >$0 limit
Select the newly issued card in the cards list
Change the limit  to $0

Expected Result:
See a modal with the following copy:

Header: “change card limit”
Body: “If you change this card’s limit to $[new limit], new transactions will be declined until next month.”
Buttons: “Change limit” and “Cancel”

Actual Result:
Unable to change to $0
Platforms:
Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[X] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
https://github.com/user-attachments/assets/273d2e0e-9266-4314-9511-3a6aa936680f

View all open jobs on GitHub

CC @mountiny

@allgandalf will handle the PR for this as they work as dedicated C+ for this feature project

@cretadn22 agreed with @allgandalf sorry for this but it is part of an ongoing project and we pay for the entire project there, the issues were not marked as external and the project team was supposed to handle it


”Moșuni”, ”Șardu Nirajului”, ”Tâmpa”, ”Veța” are listed in the drop-down menu

Description:
When user writes ”Moșuni”, ”Șardu Nirajului”, ”Tâmpa”, ”Veța” the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Șardu Nirajului"

Expected results
The location appears in the drop-down menu as "Sat Șardu Nirajului, MUREȘ (MIERCUREA NIRAJULUI)".

Step 6
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 7
Write in the search bar "Veța"

Expected results
The location appears in the drop-down menu as "Sat Veța, MUREȘ (MIERCUREA NIRAJULUI)".


Bump snyk 1.827.0, add Mac arm64

Signed-off-by: Stefan Scherer<EMAIL_ADDRESS>
- What I did
Bump the snyk version to 1.827.0 to finally package the Mac arm64 snyk binary in Docker Desktop on Apple silicon. I had to wait until a new snyk/snyk:docker image got uploaded to Docker Hub.
- How I did it
- How to verify it
- Description for the changelog

- A picture of a cute animal (not mandatory)

Closing this in favour of #196


stargz: include xattrs in the TOC

I need it for: https://github.com/giuseppe/crfs-plugin
Signed-off-by: Giuseppe Scrivano<EMAIL_ADDRESS>

You going to update stargzify too?

You going to update stargzify too?

stargzify should already work, I've tried with some handcrafted images.  I can try with more images tomorrow morning

You going to update stargzify too?

stargzify should already work, I've tried with some handcrafted images. I can try with more images tomorrow morning

Ah, great. Yeah, I guess if you modified AppendTar, we're good.
What about crfs itself for the FUSE side?

What about crfs itself for the FUSE side?

I've added handlers for reading xattrs through FUSE in a new patch


Add collaborator

Hi, can you add marekmatej as reviewer as well?

done

Added again. Please make sure @marekmatej accepts the invite.

@stephanosio ok, it worked. Thanks!


Fix slightly larger sheet issues

[x] Resolve #868 and update anemo traveler sheet code style
[x] Resolve #864 and update a bunch of Eula strings
[x] Resolve #973
[x] Resolve #950
[x] Resolve #986
[x] Resolve #988
[x] Resolve #989

Convert to draft for now, will add alhaitham c6 + c4 handling sometime and then reopen

ready for review


Bookmarked frequencies delete functionality

More of a request as opposed to an issue, but I would like the ability to highlight or select multiply bookmarked frequencies and delete them from the UI. Also, after a delete, I would like the next bookmarked frequency below the deleted bookmarked frequency to be highlighted without having to reselect in the bookmarked window.

Hello,
thanks for this issue. I inserted it in a milestone and I labeled it.
Bookmarks are going to be redesigned/improved as described in the other issues we have, we will see at which stage this feature may be added.
thanks agian.

Hello,
in commit 411ef22bdce5487ebd6a156cc9023de2b7c6b9a8, actually in the branch 2_rig, among all the UI redesigns/changes there is a new remove button, that removes the selected entry from the bookmarks.
While I don't see this as the final solution for your request, it may be an intermediate step.

Awesome! Thanks!
On Sun, Nov 27, 2016, 4:37 PM Simone Marzona<EMAIL_ADDRESS>wrote:

Hello,
in commit 411ef22
https://github.com/Marzona/rig-remote/commit/411ef22bdce5487ebd6a156cc9023de2b7c6b9a8,
actually in the branch 2_rig, among all the UI redesigns/changes there is a
new remove button, that removes the selected entry from the bookmarks.
While I don't see this as the final solution for your request, it may be
an intermediate step.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Marzona/rig-remote/issues/67#issuecomment-263152949,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMF7RJBHTUio_VnH5-gHX4GmCu2dq3zCks5rCgYogaJpZM4JL3s8
.

I'll close this issue.


Update GithubMagicLink to refer on  rectorphp/rector-downgrade-php

Update once https://github.com/rectorphp/rector-src/pull/2582 merged.

Excuse me for the question.
What is a GithubMagicLink?

it is for "Create a Test" button to allow forward to create PR on demo page, for example:

open page https://getrector.org/demo/3c0b4c58-046c-48a8-9437-3189a989bb63
click "Create a Test"
it will create a PR for failing test case to rule applied.

Thank you.


The readme.file is not maintained properly

add featured in table

also the contributor should be placed at the end of the file

@ananyag309 assigned!

@ananyag309 thanks for your contribution 🎇!


Edimax Wifi green power settings

Are we taking advantage of low power settings... is this internal to the hardware or is it software control.. with the unit and iPad separated by a max of 10ft we could hard code the unit to its lowest power output I would imagine to save heat and voltage drop on the pi
Thoughts?
  The adapter smartly adjust transmission output by distance and CPU offload to help reduce  power  consumption when wireless is idle. With the green WLAN technology, the power consumption can be reduced up to 20%  ~ 50%.  The adapter does not just provide you with the best wireless technology in the world, it also  care for  the environment by using less energy and your pocket by saving up on your electric bills.

No, we're turning off the power saving features of the Edimax. As far as I know, this is the same power saving feature that is managed with "rtw_power_mgnt".
If you want to do some testing, change /etc/modprobe.d/8192cu.conf. Currently the settings are:
 options 8192cu rtw_power_mgnt=0 rtw_enusbss=0

More info here:
https://www.raspberrypi.org/forums/viewtopic.php?t=61665

WiFi adapter uses less than 10% of total power, could be improved but SDR and RPi CPU cuts are a lower hanging fruit. The adapter is also finicky to any changes, so it would require extensive testing. If you want to give it a try and have new results, please reopen.

I had an LB-Link (B-Link?) wifi lying around, I forget where it came
from.  I'm using it with zero wifi problems with stratux.
On 12/22/2015 12:40 PM, cyoung wrote:

WiFi adapter uses less than 10% of total power, could be improved but
SDR and RPi CPU cuts are a lower hanging fruit. The adapter is also
finicky to any changes, so it would require extensive testing. If you
want to give it a try and have new results, please reopen.
—
Reply to this email directly or view it on GitHub
https://github.com/cyoung/stratux/issues/141#issuecomment-166699380.


font issue with pygame

This might not be a pytagcloud issue per se... but here goes.
I'm getting a IO error related to the font filenames. I assume it's a pygame problem:
Traceback (most recent call last):
File "/home/blake/Dropbox/2012.03_WorkCode/tagcloud.py", line 41, in
File "/usr/local/lib/python2.7/dist-packages/pytagcloud/init.py", line 344, in create_tag_image
File "/usr/local/lib/python2.7/dist-packages/pytagcloud/init.py", line 275, in _draw_cloud
File "/usr/local/lib/python2.7/dist-packages/pytagcloud/init.py", line 62, in init
IOError: unable to read font filename
When I run the example code off your site, it runs though without a problem. I just can't figure out for the life of me why my code, which uses the same font as the example, won't run.
Here's my code......
import csv
from pytagcloud import create_tag_image, make_tags
from pytagcloud.lang.counter import get_tag_counts
input_csv = csv.reader(open('sql_output.csv','rb'),delimiter="~")
....[some stuff here that creates a list of word frequency tuples from my csv data]
word_frequencies = []
for n,irecord in enumerate(sorted(word_freqs.items(), key=lambda item: item[1])):
word_frequencies.append(tuple([irecord[0],irecord[1]]))
tags = make_tags(word_frequencies, maxsize=120)
create_tag_image(tags, 'cloud_large2.png', size=(900, 600), fontname='Lobster')

I had this error appearing randomly in a cloud generation loop (independent of which cloud was generated it seems)
building word cloud for user BBC News (World)
word cloud built
building word cloud for user Human Rights Watch
word cloud built
building word cloud for user InThePanda
Traceback (most recent call last):
  File "main.py", line 217, in <module>
  File "main.py", line 181, in analyse_twitter_data
  File "main.py", line 133, in atd_word_cloud
  File "main.py", line 121, in build_cloud
  File "/home/smagnan/Documents/365Talents/Twitter/user.py", line 41, in word_cloud
  File "/usr/local/lib/python2.7/dist-packages/pytagcloud/__init__.py", line 344, in create_tag_image
  File "/usr/local/lib/python2.7/dist-packages/pytagcloud/__init__.py", line 275, in _draw_cloud
  File "/usr/local/lib/python2.7/dist-packages/pytagcloud/__init__.py", line 62, in __init__
IOError: unable to read font filename

After investigation it also seemed to me it was too many open files as stated by @fnielsen
The evil workaround solved this issue (see previous post), but sometimes causes python to crash when exiting my program ...
Anyway, this workaround seems to be working until the issue is solved


Improve order of workload resources

PR Summary:

Improve order of workload resources, fixes https://github.com/kubernetes/website/issues/23030

Page preview: https://deploy-preview-23054--kubernetes-io-master-staging.netlify.app/docs/concepts/workloads/controllers/

/assign @zacharysarah

Thank you for the review!

/approve
Thank you for this cleanup item!


PDF export contains source code

When exporting any note as PDF the compiled code for Yandex, and some additional code will be the first thing visible.
The code will also show up as the last thing in the DOM
Obsidian version: 0.15.3
Plugin version:  1.1.5

Quick update: turns out I placed an import statement outside the svelte component, that explains a lot. Pushed a fix, but a release will have to wait for tomorrow (as there are some other things that need some tweaking)

No problem


stack-buffer-overflow and heap-buffer-overflow

Hi,
We have used Mini-xml in our project, so I test v3.2 and master branch and found something:
Fisrt, there are some memory leaks in v3.2 and master:
=================================================================
==111401==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 6 byte(s) in 1 object(s) allocated from:
    #0 in strdup (/opt/mnt/software/mxml32/a.out+0x46f260)
    #1 in mxmlSaveAllocString /opt/mnt/software/mxml32/mxml-file.c:227:13
    #2 in LLVMFuzzerTestOneInput /opt/mnt/software/mxml32/mxml_fuzzer.cpp:23:8
    #3 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) (/opt/mnt/software/mxml32/a     .out+0x42f357)
    #4 in fuzzer::Fuzzer::MutateAndTestOne() (/opt/mnt/software/mxml32/a.out+0x439bc4)
    #5 in fuzzer::Fuzzer::Loop(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::a     llocator<char> >, fuzzer::fuzzer_allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<     char> > > > const&) (/opt/mnt/software/mxml32/a.out+0x43b22f)
    #6 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) (/opt/mnt/soft     ware/mxml32/a.out+0x42a5ec)
    #7 in main (/opt/mnt/software/mxml32/a.out+0x41d4b2)
    #8 in __libc_start_main /build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:310

SUMMARY: AddressSanitizer: 6 byte(s) leaked in 1 allocation(s).
INFO: to ignore leaks on libFuzzer side use -detect_leaks=0.

and :
this is your testmxml.c:
...
Creating libmxml.so.1.6...
Creating libmxml.a...
a - mxml-attr.o
a - mxml-entity.o
a - mxml-file.o
a - mxml-get.o
a - mxml-index.o
a - mxml-node.o
a - mxml-search.o
a - mxml-set.o
a - mxml-private.o
a - mxml-string.o
Compiling testmxml.c
Linking testmxml...
Testing library...

=================================================================
==113129==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 88 byte(s) in 1 object(s) allocated from:
    #0 in calloc (/opt/mnt/software/mxml32/testmxml+0x4da178)
    #1 in mxml_new /opt/mnt/software/mxml32/mxml-node.c:841:15
    #2 in mxmlNewElement /opt/mnt/software/mxml32/mxml-node.c:382:15
    #3 in mxml_load_data /opt/mnt/software/mxml32/mxml-file.c:1783:14
    #4 in mxmlSAXLoadFile /opt/mnt/software/mxml32/mxml-file.c:467:11
    #5 in main /opt/mnt/software/mxml32/testmxml.c:676:5
    #6 in __libc_start_main /build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:310

Indirect leak of 37 byte(s) in 1 object(s) allocated from:
    #0 in __interceptor_strdup (/opt/mnt/software/mxml32/testmxml+0x436770)
    #1 in mxmlNewElement /opt/mnt/software/mxml32/mxml-node.c:383:32
    #2 in mxml_load_data /opt/mnt/software/mxml32/mxml-file.c:1783:14
    #3 in mxmlSAXLoadFile /opt/mnt/software/mxml32/mxml-file.c:467:11
    #4 in main /opt/mnt/software/mxml32/testmxml.c:676:5
    #5 in __libc_start_main /build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:310

SUMMARY: AddressSanitizer: 125 byte(s) leaked in 2 allocation(s).
Makefile:271: recipe for target 'testmxml' failed
make: *** [testmxml] Error 1

also ,we I input an unformed string to mxmlLoadString, there will be a stack-buffer-overflow and heap-buffer-overflow. I think if you add a longth check in mxml_string_getc when every pointer change("like (*s)++"), will be better? Of course Maybe I have use it in a wrong . you can check it here:
this is my testcase:
#include <string>
#include <vector>
#include <assert.h>
#include "mxml.h"

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {

std::string c(reinterpret_cast<const char *>(data), size);

char *ptr;

mxml_node_t *tree;

tree = mxmlLoadString(NULL, c.c_str(), MXML_NO_CALLBACK);

if(tree){
        ptr = mxmlSaveAllocString(tree, MXML_NO_CALLBACK);
        if(!ptr) assert(false);
        mxmlDelete(tree);
}

return 0;
}

you can compile your lib with
CFLAGS =+ "-g -O0 -fno-omit-frame-pointer -gline-tables-only -fsanitize=address -fsanitize-address-use-after-scope -fsanitize=fuzzer-no-link" and
LDFLAGS =+"-fsanitize=fuzzer-no-link -fsanitize=address"
and
clang++ -g -O1 -fno-omit-frame-pointer -gline-tables-only -fsanitize=address -fsanitize-address-use-after-scope -fsanitize=fuzzer-no-link mxml_fuzzer.cpp -I ./ -fsanitize=fuzzer ./libmxml.a
run and these are the backtrace:
=================================================================
==2858==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffed9190220 at pc 0x00000055a6f2 bp 0x7ffed918edc0 sp 0x7ffed918edb8
READ of size 1 at 0x7ffed9190220 thread T0
    #0 in mxml_string_getc /opt/mnt/software/mxml32/mxml-file.c:2611:16
    #1 in mxml_parse_element /opt/mnt/software/mxml32/mxml-file.c:2141:16
    #2 in mxml_load_data /opt/mnt/software/mxml32/mxml-file.c:1977:14
    #3 in mxmlLoadString /opt/mnt/software/mxml32/mxml-file.c:180:11
    #4 in LLVMFuzzerTestOneInput /opt/mnt/software/mxml32/mxml_fuzzer.cpp:12:8
    #5 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) (/opt/mnt/software/mxml32/a.out+0x42f357)
    #6 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) (/opt/mnt/software/mxml32/a.out+0x41f7ea)
    #7 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) (/opt/mnt/software/mxml32/a.out+0x42a7b0)
    #8 in main (/opt/mnt/software/mxml32/a.out+0x41d4b2)
    #9 in __libc_start_main /build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:310
    #10 in _start (/opt/mnt/software/mxml32/a.out+0x41d529)

=================================================================
==6265==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x612000000a73 at pc 0x000000558e2d bp 0x7ffe13e2caa0 sp 0x7ffe13e2ca98
READ of size 1 at 0x612000000a73 thread T0
    #0 in mxml_string_getc /opt/mnt/software/mxml32/mxml-file.c:2422:13
    #1 in mxml_load_data /opt/mnt/software/mxml32/mxml-file.c:1558:20
    #2 in mxmlLoadString /opt/mnt/software/mxml32/mxml-file.c:180:11
    #3 in LLVMFuzzerTestOneInput /opt/mnt/software/mxml32/mxml_fuzzer.cpp:12:8
    #4 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) (/opt/mnt/software/mxml32/a.out+0x42f357)
    #5 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) (/opt/mnt/software/mxml32/a.out+0x41f7ea)
    #6 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) (/opt/mnt/software/mxml32/a.out+0x42a7b0)
    #7 in main (/opt/mnt/software/mxml32/a.out+0x41d4b2)
    #8 in __libc_start_main /build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:310
    #9 in _start (/opt/mnt/software/mxml32/a.out+0x41d529)

Closing as fixed in current master; if you can reproduce on master, please let me know the details!

Hi,
I'm trying to triage CVE-2021-42859 on behalf of Debian. I have been unable to reproduce using the PoC ZIP attached to this issue using version 3.2 as packaged in Debian. (https://tracker.debian.org/pkg/mxml)
@michaelrsweet - if the issue cannot be reproduced, can I ask that you, as upstream, request that the CVE is rejected at https://cveform.mitre.org/ please? (using the requesting an update of the CVE option)

@codehelp Done!


[DatePicker] YearSelect doesn't respect min and max

Description
noticed that yearSelect component is not working properly the ranges due that from / to are not depending on min / max of the datepicker

so i was trying to make my own select, but that one crash as well
<DatePickerArk.YearSelect asChild={false}>
	<DatePickerYearSelect />
</DatePickerArk.YearSelect>

so, what can i do in this case ?
Link to Reproduction (or Detailed Explanation)
not provided
Steps to Reproduce
there are 2 issues
Composition Issue

add a datepicker and try to override yearSelect slot and should crash

Year Range issue

add a datepicker with min/max and add the slot yearSelect, and is ignoring it

Ark UI Version
3.10.0
Framework

[X] React
[ ] Solid
[ ] Vue

Browser
Chrome
Additional Information
File Affected https://github.com/chakra-ui/ark/blob/main/packages/react/src/components/date-picker/date-picker-year-select.tsx

@segunadebayo if at least i can make my own component using asChild i can continue but for the moment that one crash as well

I just pushed a fix for this. We'll release an update shortly.
If the issue persists after upgrading, I'll re-open it.

@segunadebayo thank you for the support mate

@segunadebayo i would like to ask when is the release of this, thank you


made bft actor send LeaderPrepare messages asynchronously (BFT-400)

What ❔
Made bft actor send LeaderPrepare messages asynchronously.
Why ❔
PayloadSource.propose() may be blocking (when no payload can be proposed at a time) but it shouldn't block message processing:

other validators may be able to propose, so we should keep exchanging messages with them.
validator should avoid keeping a growing backlog of unprocessed messages

@moshababo Take a look.


Alias documentation

Describe the bug
Coming from the kit docs, I thought I could use svelte.config.ts as the configuration. If I do, that alias doesn't work.
Let's add an annotation for that to avoid any misunderstanding.
Reproduction
Changing svelte.config.js to svelte.config.ts with an alias configuration
Logs
No response
System Info
System:
    OS: macOS 13.0.1
    CPU: (8) arm64 Apple M1
    Memory: 163.19 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 19.1.0 - /opt/homebrew/bin/node
    Yarn: 1.22.18 - /opt/homebrew/bin/yarn
    npm: 8.19.3 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 107.0.5304.110
    Edge: 107.0.1418.52
    Safari: 16.1
  npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.88
    @sveltejs/kit: next => 1.0.0-next.551
    svelte: ^3.53.1 => 3.53.1
    vite: ^3.2.4 => 3.2.4

Severity
annoyance
Additional Information
No response

I don't think there's anything particularly about aliases that's relevant here. There's #2576 for supporting svelte.config.ts. There shouldn't be anything in the docs that points towards this already being supported.

Thanks @Conduitry

Also ran into this and took a lot of debugging to find out it was the culprit since errors were only displaying that the


[CHTML] With floating content, the displayIndent is lost

With displayAlign: 'left' the displayIndent is lost in floating content on the left (similarly on the right).

In testsuite:
MathMLToDisplay/issue2352.html


Odd Error during Converse

My guess is that this has to do with the fact that I have a domain with no intents:
api_1       | Debug: internal, implementation, error
api_1       |     TypeError: Uncaught error: Cannot read property 'intentName' of undefined
api_1       |     at server.inject (/usr/src/app/modules/agent/tools/getAvailableDomains.agent.tool.js:52:122)
api_1       |     at Shot.inject (/usr/src/app/node_modules/hapi/lib/connection.js:327:16)
api_1       |     at process.nextTick (/usr/src/app/node_modules/shot/lib/response.js:26:36)
api_1       |     at _combinedTickCallback (internal/process/next_tick.js:67:7)
api_1       |     at process._tickDomainCallback (internal/process/next_tick.js:122:9)
api_1       | Debug: internal, implementation, error
api_1       |     TypeError: Uncaught error: Cannot read property 'intentName' of undefined
api_1       |     at server.inject (/usr/src/app/modules/agent/tools/getAvailableDomains.agent.tool.js:52:122)
api_1       |     at Shot.inject (/usr/src/app/node_modules/hapi/lib/connection.js:327:16)
api_1       |     at process.nextTick (/usr/src/app/node_modules/shot/lib/response.js:26:36)
api_1       |     at _combinedTickCallback (internal/process/next_tick.js:67:7)
api_1       |     at process._tickDomainCallback (internal/process/next_tick.js:122:9)
api_1       | Debug: internal, implementation, error
api_1       |     TypeError: Uncaught error: Cannot read property 'intentName' of undefined
api_1       |     at server.inject (/usr/src/app/modules/agent/tools/getAvailableDomains.agent.tool.js:52:122)
api_1       |     at Shot.inject (/usr/src/app/node_modules/hapi/lib/connection.js:327:16)
api_1       |     at process.nextTick (/usr/src/app/node_modules/shot/lib/response.js:26:36)
api_1       |     at _combinedTickCallback (internal/process/next_tick.js:67:7)
api_1       |     at process._tickDomainCallback (internal/process/next_tick.js:122:9)

Yep it seem so. I was able to reproduce it. I will fix it soon.

Fixed by https://github.com/samtecspg/articulate/commit/adfd618e6133de7ca169e9c45c892bf73e1ff98c


Dask.array HTML repr

In https://github.com/dask/dask/pull/1637 @sinhrks proposed an HTML repr for dask.dataframe.  This seems like a nice aesthetic move.
Thinking a bit ahead, how would we repeat this enhancement for dask.arrays?  Is there a nice way to represent them visually other than with just text?
Here is what we have now:
In [1]: import dask.array as da

In [2]: da.ones((10, 10, 10), chunks=(4, 4, 8))
Out[2]: dask.array<wrapped..., shape=(10, 10, 10), dtype=float64, chunksize=(4, 4, 8)>

cc @shoyer @alimanfoo @jcrist

I'm pretty happy with the existing text repr, but I would be happy to look at any proposed improvements.

I would be tempted to find a way to visually represent the chunkshape of an nd-array for low-to-moderate dimension.  I think that this could help to promote understanding among new users.

Funnily enough I was just working on html reprs for the new version of
scikit-allel. I'm not sure how helpful this is, but here's what they'll
look like:
https://github.com/cggh/scikit-allel/blob/v1.0-dev/notebooks/repr_html.ipynb
There are classes in scikit-allel like GenotypeDaskArray that wrap a dask
array, if you scroll to the bottom you can see reprs for these.
scikit-allel is a domain-specific package so I'm not sure any of this
generalises up to dask.array, but here's a few notes FWIW.
I always like to include a bit of array data in the repr. For a 1D array
this is first 5 ... last 5 items. For a 2D array this is a few items from
each of the four corners, laid out as a table. Seeing a few items is very
useful for spotting obvious errors or problems with the data. It is also
amazingly helpful for new users getting a feel for the data (I've heard
people go "aaaah" when they see the html repr for the first time and
understand how the data are laid out).
However, for dask.array this maybe doesn't make sense in general, because
to see the items you need to first compute() the necessary fragments of the
array, which in my case is usually fine, but in general for dask might not
be desirable, especially if compute() takes any amount of time.
As well as implementing repr_html all scikit-allel classes also implement
a display() method which basically does the same thing, except it uses
IPython API to render the HTML manually. This has the advantage that you
can have multiple arrays render their outputs from the same notebook cell,
and you can also control how much of the array you want to see via
arguments to display().
I like the idea of some visual representation of array shape and chunk
shape for dask, but I'm not sure how you'd do it if all you have is html
(tables etc.).
Someone should write a package that provides nice html reprs for anything
array-like, including numpy, that would be cool.
2c
On Tue, Oct 18, 2016 at 3:50 PM, Matthew Rocklin<EMAIL_ADDRESS>wrote:

I would be tempted to find a way to visually represent the chunkshape of
an nd-array for low-to-moderate dimension. I think that this could help to
promote understanding among new users.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/1676#issuecomment-254531947, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAq8Qh0Rl48rP7VMELdlAMdn4INljnA9ks5q1NytgaJpZM4KZwy1
.

--
Alistair Miles
Head of Epidemiological Informatics
Centre for Genomics and Global Health http://cggh.org
The Wellcome Trust Centre for Human Genetics
Roosevelt Drive
Oxford
OX3 7BN
United Kingdom
Email<EMAIL_ADDRESS>Web: http://purl.org/net/aliman
Twitter: https://twitter.com/alimanfoo
Tel: +44 (0)1865 287721

I am not sure what this HTML improvement looks like -- The link is broken..

That's just an example for scikit-allel. For dask.dataframe the repr looks like a pandas dataframe, but indicates things like divisions/dtypes/column names without showing data.

For dask.array we might try to find a similar way of showing our metadata (dtype, chunks, number of tasks, etc...).

Personally I agree with @shoyer that the current text repr is fine, but understand that this is opinion based and others may disagree.

It depends on how 'interactive' the toolkit intends to be.
Imagine if you only get a type descriptor print() a numpy array -- it would be quite painful to do even simple things, e.g. poking around to see if the endianness is correct or if f4 and f8 is mixed..
How much of this applies to dask.array, I don't really know. But our users have been surprised to see only a type descriptor print(<dask.array>) during the interaction.

Addressed in PR ( https://github.com/dask/dask/pull/4794 ).


Add Grafana Labs OSS projects

This adds shortname aliases for the major open source projects maintained by Grafana Labs
Let me know if there's more to change to get this shipped!

LGTM


Servers should be able to join a cluster

Servers should be able to join a cluster. Here's a rough outline of how it should work, but please ask questions.
When a server starts up, if it doesn't have a metastore (on disk), it should do one of the following:

If join was given as a command line argument, it should attempt to join the cluster at that URL
If no join was specified, it should create a new cluster of just itself
if join was specified, but they have the metastore on disk, ignore the join

Join
Here's how join should work. The URL supplied should be a server (or a load balancer that points to many InfluxDB servers). The point is that it should be able to join a cluster when pointed to any server in that cluster.
The first 3 servers to join the cluster should run the meta service (Raft). Any servers that join after that should just get a copy of the metastore. They should keep the cached version on disk.
TODO

[x] Incremental joins
[x] Caching metastore
[ ] Promoting server to run consensus service
[ ] Demoting server so it drops out of the consensus group and stops running the service

I really wonder if you are reinventing the wheel here.  What advantage does this give over something like etcd and a discovery URL?  And if you dont want to use etcd, perhaps it is a good model.  I know I was looking at using it to generate the peers list for the config file.

@btashton that's the role that Raft is playing for us. It's just integrated into the InfluxDB cluster. What this gives us is a simpler deployment story and less things to manage.
Yes, it's reinventing the wheel, but that's what incremental progress in software is all about. Improving things just a little bit along the way. And this gives us an improvement in usability for our users.

Based on the description it sounds possible that this would allow a new cluster to be deployed automatically in AWS via an AutoScaling group and ELB. The tricky part is when the first node comes online and is added to the ELB. If passed a cluster URL pointing to the ELB it will have no available backends to connect to. As long as the node creates a new cluster from itself when it's unable to contact the cluster or if the only node in the cluster is itself then things will work out.
We do something similar with our CoreOS/etcd clusters in AWS, though they require a discovery service be running.

@jwilder can we close this?


Update to latest, official, compatible thumbor aws

Fixes #4

Thank you!
Did you test it?

I'm working in a correct integration. I will share it soon.


Update README.md

Add note about npm run android-setup-port

Thanks for the additional details @pastuhov


A better tagline

The tagline for the library needs to be short, descriptive, and enticing.
Some I can think of:

datetimes made correct and strict
datetimes defused and modernized
strict and reliable datetimes
foolproof datetimes for maintainable code
datetime without the pitfalls
datetime reimagined
Modern datetime API for Python

Feel free to chime in below 👇

Time to fuel this discussion a bit.
Some of the suggestions made in private before:

datetimes made strict, predictable and typed
datetimes done right

Some more "opinionated" suggestions - these may be a bit too charged but might serve spice up the discussion:

datetime for professionals
datetime for correct code

From your list I like datetime without the pitfalls or datetime reimagined, as it indicates an improvement over the original datetime. However, they do not really convey the "how", only the "what".

However, they do not really convey the "how", only the "what".

Indeed a tough choice 🤔 . To make things more difficult, it'll soon be rewritten in Rust (soooo hot right now 🔥 ). Then we add "fast" or "written in Rust" to the mix.
Evolutions of previous ideas

Fast, correct, and typesafe datetimes for Python
Datetimes done right, written in Rust
Correct and typesafe datetimes, written in Rust
Datetimes made correct and typesafe, written in Rust
Datetimes redesigned and written in Rust

I've sharpened the selling points of whenever to three aspects:

DST-safe arithmetic
typed naive/aware
fast

which is summarized in the new tagline: "Typed and DST-safe datetimes for Python, written in Rust", or shorter: "Modern datetime library for Python, written in Rust"


Best way to remove example posts?

I want to remove the sample posts, and it looks like the folder content is distributed across several folders. Do I have to go through all the folders to remove each reference, or is there a way to remove a post so that it removes all related content with it?

It's recommended to install Academic Kickstart which doesn't include the demo website: https://sourcethemes.com/academic/docs/install/
Hugo has no such auto-deletion feature.


Add Helm chart for openshift-routes

This PR adds a Helm chart for openshift-routes. This allows users to deploy the component with the Helm CLI, or GitOps tools such as ArgoCD or FluxCD.
The Helm chart also features the ability to create a Service and ServiceMonitor to collect metrics from openshift-routes.

Maybe we could push the chart as an OCI image next. What do you think? I have done it in the project secret-transform, it seems to work well.

Yes, good idea. Let's take care of that in a separate PR.

/lgtm
/approve


Failed to write to SI5351

Dear all,
I have started playing with the LiteX (C variant). I have noticed that many commands that I execute result in the following output:
Initializing SI5351 Clocking...
Using internal XO for as SI5351 RefClk...
Failed to write to SI5351 at register 0x02
Failed to write to SI5351 at register 0x03
Failed to write to SI5351 at register 0x04
Failed to write to SI5351 at register 0x07
Failed to write to SI5351 at register 0x0F
Failed to write to SI5351 at register 0x10
Failed to write to SI5351 at register 0x11
Failed to write to SI5351 at register 0x12
Failed to write to SI5351 at register 0x13
Failed to write to SI5351 at register 0x14
Failed to write to SI5351 at register 0x15
Failed to write to SI5351 at register 0x16
Failed to write to SI5351 at register 0x17
Failed to write to SI5351 at register 0x22
Failed to write to SI5351 at register 0x23
Failed to write to SI5351 at register 0x24
Failed to write to SI5351 at register 0x25
Failed to write to SI5351 at register 0x26
Failed to write to SI5351 at register 0x27
Failed to write to SI5351 at register 0x28
Failed to write to SI5351 at register 0x29
Failed to write to SI5351 at register 0x2A
Failed to write to SI5351 at register 0x2B
Failed to write to SI5351 at register 0x2C
Failed to write to SI5351 at register 0x2D
Failed to write to SI5351 at register 0x2E
Failed to write to SI5351 at register 0x2F
Failed to write to SI5351 at register 0x30
Failed to write to SI5351 at register 0x31
Failed to write to SI5351 at register 0x32
Failed to write to SI5351 at register 0x33
Failed to write to SI5351 at register 0x34
Failed to write to SI5351 at register 0x35
Failed to write to SI5351 at register 0x36
Failed to write to SI5351 at register 0x37
Failed to write to SI5351 at register 0x38
Failed to write to SI5351 at register 0x39
Failed to write to SI5351 at register 0x3A
Failed to write to SI5351 at register 0x3B
Failed to write to SI5351 at register 0x3C
Failed to write to SI5351 at register 0x3D
Failed to write to SI5351 at register 0x3E
Failed to write to SI5351 at register 0x3F
Failed to write to SI5351 at register 0x40
Failed to write to SI5351 at register 0x41
Failed to write to SI5351 at register 0x42
Failed to write to SI5351 at register 0x43
Failed to write to SI5351 at register 0x44
Failed to write to SI5351 at register 0x45
Failed to write to SI5351 at register 0x46
Failed to write to SI5351 at register 0x47
Failed to write to SI5351 at register 0x48
Failed to write to SI5351 at register 0x49
Failed to write to SI5351 at register 0x4A
Failed to write to SI5351 at register 0x4B
Failed to write to SI5351 at register 0x4C
Failed to write to SI5351 at register 0x4D
Failed to write to SI5351 at register 0x4E
Failed to write to SI5351 at register 0x4F
Failed to write to SI5351 at register 0x50
Failed to write to SI5351 at register 0x51
Failed to write to SI5351 at register 0x52
Failed to write to SI5351 at register 0x53
Failed to write to SI5351 at register 0x54
Failed to write to SI5351 at register 0x55
Failed to write to SI5351 at register 0x56
Failed to write to SI5351 at register 0x57
Failed to write to SI5351 at register 0x58
Failed to write to SI5351 at register 0x59
Failed to write to SI5351 at register 0x5A
Failed to write to SI5351 at register 0x5B
Failed to write to SI5351 at register 0x95
Failed to write to SI5351 at register 0x96
Failed to write to SI5351 at register 0x97
Failed to write to SI5351 at register 0x98
Failed to write to SI5351 at register 0x99
Failed to write to SI5351 at register 0x9A
Failed to write to SI5351 at register 0x9B
Failed to write to SI5351 at register 0xA2
Failed to write to SI5351 at register 0xA3
Failed to write to SI5351 at register 0xA4
Failed to write to SI5351 at register 0xA5
Failed to write to SI5351 at register 0xA6
Failed to write to SI5351 at register 0xA7
Failed to write to SI5351 at register 0xA8
Failed to write to SI5351 at register 0xA9
Failed to write to SI5351 at register 0xAA
Failed to write to SI5351 at register 0xB7
Initializing AD9361 SPI...
Initializing AD9361 RFIC...

I am trying to observe some output from the SDR using a spectrum analyzer, but I do not get anything. Could this be a reason for it?
Thanks

Hi @improperaffo,
the errors has also been reported by other user (intermittent error), we'll probably adjust the I2C parameter or replace the Core to fix this. I'm off for two weeks and travelling so will be able to look at this when back. As a quick test, it could be useful to increase the sleep here: https://github.com/enjoy-digital/litex_m2sdr/blob/main/software/user/libm2sdr/m2sdr_si5351_i2c.c#L23 or/and verify that ./m2sdr_util si5351_scan is correctly detecting the chip.

Hi @improperaffo, @dmd17,
it seems the issue was only happening when using > Gen2 X1 PCIe where I2C bitbanging was probably faster.  It would be interesting to test with the additional pullups on the I2C lines, added with https://github.com/enjoy-digital/litex_m2sdr/commit/c95bc4d3b027ae5d5135c07983e5d209d2cca295.


Dictionary/stylx Label Text Symbols should use generic font family

Similar to an issue we have with the SVG fonts, the runtime team wanted us to know that the fonts specified in the dictionary text symbols (that are authored in Desktop) may not always be available (Note: I thought the only font used was "Arial" but that is still a proprietary font that is not always available on non-Windows machines).
So they just wanted us to know that Runtime SDKs will substitute any un-available fonts for an available one and recommend we change these font families to "serif" (ex. Times New Roman) or "sans-serif" (ex. Arial) for more deterministic behavior.
Summary of conversation with Chris M and Kaushik M. 3/30/15:
Currently it is okay that labels\texts on military symbols could render using a font that is default to skia when font (font-family) mentioned in the CIM definition is not available on the host machine.  As a result labels may look little different than expected. Until now no one has raised this issue, so no need to act right now. Ideally, according to Chris, fonts defined in CIM symbol definitions should be just Serif and Sans-serif and not un-common fonts or even fonts proprietary to 3rd parties. Such change is on to-do list for military symbols and may happen in near future.

This is not a priority, since no defect has ever been recorded concerning these fonts so moving to deferred milestone

@topowright @lfunkhouser @dfoll - this issue can be closed - it was just capturing a known limit that any non-standard fonts used in the style text symbols (labels) wouldn't be drawn exactly in runtime and would be mapped to a generic font.
For instance you couldn't specify a text symbol/label in "Wingdings" and expect it to draw in Runtime. I don't think any issues about incorrect fonts have ever been reported so this is just informational.

@mbriat @jeconley What font should military symbology be using in order for it to be supported across the platform?

@lfunkhouser I checked with Craig and he said that unfortunately there really isn't a single font that works best.  He recommended using something "mundane" like Arial which is most likely to flow the best because there are substitutions that are set for it.

Thanks @jeconley for the guidance. Closing this issue.


Table column cog menu should respect edge of the browser window

Currently causes a horizontal scrollbar:

There's also a horizontal scrollbar on the table at the bottom of that screenshot and I'm not sure why - it might be due to a plugin that's installed on that instance.

Bonus feature: align the tip arrow on the menu with the cog icon that opened it.

Got this working:

I'm pretty happy with that.

Found a bug, with tables with long column names like on https://latest.datasette.io/fixtures/custom_foreign_key_label

Options:

With wider column labels move the menu to the right to align with the cog icon
Move the little tip as far right on the menu as it can go without detaching from it
Make the menu the width of the column

I think the first option will be aesthetically the most pleasant. Need to be careful it doesn't break things if columns are all the way to the left or right of the page.

Fixed:

Now live on https://latest.datasette.io/fixtures - I like this a lot.


Update container handling

Update how VM handles the Docker container.

add little delay to Docker start, so that Vagrant has done it's mounts before Docker tries to mount /data
use flag file ~/.nodocker for decision making: vagrant ssh enters the VM if file exists (create using vagrant ssh -c "touch .nodocker")
use SSH for container access instead of docker exec, this allows forwarding SSH agent (you may access the container with vagrant ssh or ssh wordpress.local)
add port forward for xdebug (9000:9000) from Docker to host VM
also, add missing MOTD

TASK [docker : install docker python bindings] *********************************
fatal: [default]: FAILED! => {"changed": false, "cmd": "/usr/bin/pip2 install docker-py", "failed": true, "msg": "stdout: Collecting docker-py\n\n:stderr: Exception:\nTraceback (most recent call last):\n  File \"/usr/lib/python2.7/dist-packages/pip/basecommand.py\", line 209, in main\n    status = self.run(options, args)\n  File \"/usr/lib/python2.7/dist-packages/pip/commands/install.py\", line 328, in run\n    wb.build(autobuilding=True)\n  File \"/usr/lib/python2.7/dist-packages/pip/wheel.py\", line 748, in build\n    self.requirement_set.prepare_files(self.finder)\n  File \"/usr/lib/python2.7/dist-packages/pip/req/req_set.py\", line 360, in prepare_files\n    ignore_dependencies=self.ignore_dependencies))\n  File \"/usr/lib/python2.7/dist-packages/pip/req/req_set.py\", line 512, in _prepare_file\n    finder, self.upgrade, require_hashes)\n  File \"/usr/lib/python2.7/dist-packages/pip/req/req_install.py\", line 273, in populate_link\n    self.link = finder.find_requirement(self, upgrade)\n  File \"/usr/lib/python2.7/dist-packages/pip/index.py\", line 442, in find_requirement\n    all_candidates = self.find_all_candidates(req.name)\n  File \"/usr/lib/python2.7/dist-packages/pip/index.py\", line 400, in find_all_candidates\n    for page in self._get_pages(url_locations, project_name):\n  File \"/usr/lib/python2.7/dist-packages/pip/index.py\", line 545, in _get_pages\n    page = self._get_page(location)\n  File \"/usr/lib/python2.7/dist-packages/pip/index.py\", line 648, in _get_page\n    return HTMLPage.get_page(link, session=self.session)\n  File \"/usr/lib/python2.7/dist-packages/pip/index.py\", line 757, in get_page\n    \"Cache-Control\": \"max-age=600\",\n  File \"/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py\", line 480, in get\n    return self.request('GET', url, **kwargs)\n  File \"/usr/lib/python2.7/dist-packages/pip/download.py\", line 378, in request\n    return super(PipSession, self).request(method, url, *args, **kwargs)\n  File \"/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py\", line 468, in request\n    resp = self.send(prep, **send_kwargs)\n  File \"/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/sessions.py\", line 576, in send\n    r = adapter.send(request, **kwargs)\n  File \"/usr/share/python-wheels/CacheControl-0.11.5-py2.py3-none-any.whl/cachecontrol/adapter.py\", line 46, in send\n    resp = super(CacheControlAdapter, self).send(request, **kw)\n  File \"/usr/share/python-wheels/requests-2.9.1-py2.py3-none-any.whl/requests/adapters.py\", line 376, in send\n    timeout=timeout\n  File \"/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py\", line 610, in urlopen\n    _stacktrace=sys.exc_info()[2])\n  File \"/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/util/retry.py\", line 228, in increment\n    total -= 1\nTypeError: unsupported operand type(s) for -=: 'Retry' and 'int'\n"}

$ vagrant ssh
...
vagrant@seravo-wordpress:~$ pip2 install docker-py
Traceback (most recent call last):
  File "/usr/bin/pip2", line 9, in <module>
    load_entry_point('pip==8.1.1', 'console_scripts', 'pip2')()
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 215, in main
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python2.7/locale.py", line 581, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

@l3ku can you test building this? I can't repeat error described above.
Note: this branch might not be compatible with previous checkout, so it might be feasible to remove existing branch & checking out latest version.

Sure, going to test this now.

Couldn't reproduce the Ansible error mentioned above:
TASK [docker : install docker python bindings] *********************************
changed: [default]

Notices during vagrant up

Some exception is thrown from node modules:

wordpress-box: Error: Timeout
wordpress-box:     at Timeout._onTimeout (/usr/lib/node_modules/wait-on/lib/wait-on.js:92:10)
wordpress-box:     at ontimeout (timers.js:386:14)
wordpress-box:     at tryOnTimeout (timers.js:250:5)
wordpress-box:     at Timer.listOnTimeout (timers.js:214:5)

Activation of git hooks is asked two times, and the following errors are faced:

"Inappropriate ioctl for device"
"The remote command "wp-restart-nginx &> /dev/null" returned a failed exit..."

Generating autoload files
> WordPress\Installer::symlinkWPContent
==> wordpress-box: Executing remote command "wp core is-installed --quiet &>/dev/null || wp-vagrant-import-db"...
==> wordpress-box: mesg: ttyname failed: Inappropriate ioctl for device
==> wordpress-box: entering site container... /usr/local/bin/wp-vagrant-import-db
==> wordpress-box: |----------------------------------------------------------------------------|
==> wordpress-box: | Welcome to Seravo.com!                                                     |
==> wordpress-box: | Unauthorized use is forbidden. All connections are monitored and recorded. |
==> wordpress-box: |----------------------------------------------------------------------------|
==> wordpress-box: Success: Database was imported correctly!
==> wordpress-box: Remote command execution finished.
    wordpress-box: Activate git hooks in scripts/hooks? (yes): no
    wordpress-box: Activate git hooks in scripts/hooks? (yes): no
==> wordpress-box: Executing remote command "wp-use-asset-proxy &> /dev/null"...
==> wordpress-box: Remote command execution finished.
==> wordpress-box: Executing remote command "wp-restart-nginx &> /dev/null"...
==> wordpress-box: Remote command execution finished.
The remote command "wp-restart-nginx &> /dev/null" returned a failed exit
code or an exception. The error output is shown below:

In Docker
The file directory seems intact with WordPress installed, but nginx is not working properly. Restarting nginx also does not work:
root@vagrant:~/htdocs# wp-restart-nginx
testing nginx configuration...
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
checking for php backends...
Found PHP mode definition: php7 in 'php7'
PHP7(.0) mode enabled
Restarting nginx...
Error: Timeout
    at Timeout._onTimeout (/usr/lib/node_modules/wait-on/lib/wait-on.js:92:10)
    at ontimeout (timers.js:386:14)
    at tryOnTimeout (timers.js:250:5)
    at Timer.listOnTimeout (timers.js:214:5)

It seems that there was invalid port configuration for nginx, which caused wait-on timeouts. This is now fixe in the container, so everything should now work as expected.
I'm waiting for more test results :)

Test results 2018-05-21
First vagrant up ended with SSH connection failure:
...
==> wordpress-box: entering site container... /usr/local/bin/wp-generate-ssl
==> wordpress-box: ssh_exchange_identification: Connection closed by remote host
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Second vagrant up however continued to the end but accessing the server didn't work:
$ curl -iL https://wordpress.local/
curl: (7) Failed to connect to wordpress.local port 443: Connection refused

Nginx or logs inside the container did not show any errors. I don't have time to look deeper right now..

Tested now with an existing project, and vagrant up fails with:
$ vagrant up
Bringing machine 'wordpress-box' up with 'virtualbox' provider...
==> wordpress-box: Clearing any previously set forwarded ports...
==> wordpress-box: Clearing any previously set network interfaces...
==> wordpress-box: Preparing network interfaces based on configuration...
    wordpress-box: Adapter 1: nat
    wordpress-box: Adapter 2: hostonly
==> wordpress-box: Forwarding ports...
    wordpress-box: 22 (guest) => 2222 (host) (adapter 1)
==> wordpress-box: Running 'pre-boot' VM customizations...
==> wordpress-box: Booting VM...
==> wordpress-box: Waiting for machine to boot. This may take a few minutes...
    wordpress-box: SSH address: <IP_ADDRESS>:2222
    wordpress-box: SSH username: vagrant
    wordpress-box: SSH auth method: private key
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
    wordpress-box: Warning: Authentication failure. Retrying...
^C==> wordpress-box: Waiting for cleanup before exiting...
Vagrant exited after cleanup due to external interrupt.

I assume this is nothing we can do. When customers start using a new Vagrant image, they need to run vagrant destroy first so I think.

Branch has now been updated. Image has been published at https://app.vagrantup.com/seravo/boxes/wordpress-beta .

All previous and currently known issues have been resolved. Latest commits (4cad1fe, d0468a7) introduce rewritten Docker container handling. Now container gets re-created always at virtual machine boot.


Use eng/common/SetTestPipelineVersion.ps1

Use eng/common/scripts/SetTestPipelineVersion.ps1
Remove Use eng/script/SetTestPipelineVersion.ps1
Remove eng\scripts\Collect-Changelogs.ps1

/check-enforcer override


Fix "Allow service binding" for multiple aliases per interface

When using multiple aliases per interface, disabling binding on one could potentially disable binding for other aliases on the same interface, depending on the order of the VIPs in the config. The 'alias' setting was evaluated regardless of whether the subnet matched, so if a previous VIP for a matching interface had matched on subnet, the current VIP's 'bind' setting would be applied to the interface address even though the current VIP's subnet didn't match.

I know we had an issue before and something was fixed so I need to make really sure this is correct…

I only started looking at the code yesterday, so I'm not implying this fix is 100% correct. Please, take your time and let me know if I can help in any way.

Maybe you have an example with two aliases where this overlaps. That would certainly help.
Thanks,
Franco

I'm running OPNsense with CARP and IP aliases on my LAN interface - both IPv4 and IPv6, but judging by what the last part of interfaces_addresses is doing, it seems pretty easy to reproduce using a simpler config:

configure 2 IPv4 aliases on LAN ( I dunno: <IP_ADDRESS>/24 and <IP_ADDRESS>/24)
configure Unbound DNS
examine Services -> Unbound DNS -> Access Lists - both aliases should be there.
disable "Allow service binding" on the first alias and check Access List again
enable "Allow service binding" on the first alias, disable on the second one and check Access List again.
At least one of the last two checks will yield unexpected results: both addresses will be missing from the list instead of only the one that has binding disabled.

In my somewhat complicated case I had an IPv6 alias set up on an interface where IPv4 CARP is also configured. Disabling binding on the alias prevented Unbound from listening on the CARP address as well.

Committed via aa86b9d43d as a slightly modified version (style changes). It's correct that if we iterate multiple times through info we might cross a virtual IP that has nobind on and it triggers on the wrong condition:
https://github.com/opnsense/core/blob/b8c6c182025eb49f93f419a2be4ad9b914c2710c/src/etc/inc/interfaces.inc#L4336
Thanks,
Franco


Improve devtools more

:heavy_check_mark: Checklist

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

can we fix the size

it is not a size. it is the ratio of binary size to json size (whatever that means exactly). i.e. if you subtract 1 it is the overhead of the whole encoding crdt etc stuff

can we fix the size

it is not a size. it is the ratio of binary size to json size (whatever that means exactly). i.e. if you subtract 1 it is the overhead of the whole encoding crdt etc stuff

The size is getting lower if you add more Elements to the board :D

The overhead is getting lower, as expected.

„whatever that means exactly“ :shrug:

suggest what to do with it? "fix" is not very precise


Add minimum number of hits threshold on PALS analysis

Current version of PALS has a parameter to filter out results where very few formula hits are found, see this commit. Do we want to use it here? For e.g. the p-values of of those pathways below with just 1 hit would be NaN.

Also we can now set a random seed for the analysis.

Using it would be good - could we use 1.0 instead of NaN? if not might need to configure the table ordering...


Front-end refactor

Babel&Browserify or Webpack etc. to organize JS code better?

Closed in favor of React frontend.


Draft: silx view: add a first way to handle linux style shell character as w…

related to https://github.com/silx-kit/silx/issues/3577
TODO

[x] prototype to handle simple use cases
[ ] check file management into more details. This use case was not really expected (having several item related to the same file). I guess this could mess up will the file management (and bring serious issues with HDF5 files). Might let the file open or stop working when we remove an item. I guess we would need some kind of a counter on top of the existing system. Not sure how complicated it can become.
[ ] see ways to handle  data_slice
For now handles simple uses cases as:
improve management of Viewer.appendFile to handle DataUrl directly. Avoid some translation from DataUrl to str.
improve wild card on the file path. For now uses glob. Might be better to use fnmatch for all. But seems less direct and might require creation of another function calling os.listdir ?
handle slice. Today item are created but I guess when we provide slices we would like to have it automatically "selected" and displayed ? Behavior to be discussed.

clear; silx view 5.06_crayon_W150_60_Al2_W0.25_xc1000_.nx::entry/data/image*
clear; silx view 5.06_crayon_W150_60_Al2_W0.25_xc1000_.nx::entry/*
clear; silx view 5.06_crayon_W150_60_Al2_W0.25_xc*_.nx
clear; silx view 5.06_crayon_W150_60_Al2_W0.25_xc*_.nx::entry/* # !!! fails on closing

PR #3663 improves support for "" in filename and adds support for "" in data path.
Adding support for slicing seems more complicated since the model manages groups and datasets... so not sure what would be the best approach to support it.

PR #3677 adds support for slicing

All has been done in other PR thank to @t20100 . We can close this PR


last best models fix etc...

In the result list, I would suggest to add a time/commit to clarify what improve in the models.
It is very difficult to see the "versionning" of models performances

I added a time-stamp as model version that appears in the score.yaml but I may not rerun all traning.

perfect


verification - show checked icon when email is verified

When user clicks verify email, personal info get a checked badge. The checked badge should be shown when user has verified the email. We show checked badge based on last step so when user hasn't verified email yet, last step should be before you start
@mohammadranjbarz @CarlosQ96

After sending each step data we marked that step as done and we change the last step but in personal info after filling the email and sending personal info data you need to verify the mail, so we should change flow of updating lastStep, it may affect the whole flow, so if we want to release these days I recommend don't change it and fix it for next release, because it needs lots of testing(maybe writing more automatic tests) to make sure doesn't break other things,
@MoeNick  what do you think?

Let's have a talk about this in the daily @RamRamez @RamRamez @MohammadPCh

@mohammadranjbarz The other problem that I have is the managing funds step doesn't have the checked badge. I think backend doesn't update last step for that.

@RamRamez  Now if user is not confirmed the email we should set null as their step so frontend will redirect it to first step ( personal info)
It's on staging now, you can test it

@mohammadranjbarz after user confirmed the email, you should change last step, but now it doesn't change

I added the laststep update in the email confirmation, CI-CD deploying

@RamRamez Its up in production you can test when verifying an email it should set the laststep to "profileInfo"

Thanks. It's ok now.

Testing on https://staging.giveth.io/verification/test-isuee-1  Goin through flow, completing each step, CHECK icon showed on each.

looks good moving to done!


Minified JS map files not loading in safari

Happens in both dev and prod sites.

Changed title to clarify the minified maps are missing, not the minified files themselves.


Clarify token ids a bit further to remove ambiguity

Summary
Although the mintTokens API reference requires token ids to be of string data type, token ids still need to conform to ERC-721 token standard i.e they need to be of uint256 data type.
Clarifying this in the docs will subjectively improve the developer experience.
Why the changes
This will prevent developers from shooting themselves on the foot e.g specifying token ids with leading zeroes will still mint a token for them but withdrawing the said token to L1 and then depositing back to L2 could lead to discrepancies.
Things worth calling out

API will still throw meaningful error messages but this helps future devs to avoid pitfalls.

Closing as changing types in the imx-engine is enough to update the docs. The changed file is autogenerated :)


Display rockets

Space Teavelers' Hub milestone-03
-In this feature branch I have rendered rockets data successfully on display

For styling, I used tailwind CSS.

Hey @Zuhaib042,
Your project is complete! There is nothing else to say other than... it's time to merge it :shipit:
STATUS: APPROVED 🟢
Congratulations! 🎉
Highlight
✔ Descriptive PR
✔ Meaningful Commit Messages
Cheers and Happy coding!👏👏👏


Feat/atpc-listings

exposes ATPC placement, internship, and corporate event details.
TODO: tests
solves issue #33  at go-amizone's side

Hi @Gupta-Shashwat, what's the status of this PR? Are you still working on it?


Remove deprecated api-version flag. Fixes #181.

This is a quick fix to get rid of the api-version deprecation warning.

Thanks @maikelvl!

@maikelvl I should've had you do this before the merge, but now is fine. In order to accept the commit, we have to have you sign our CLA: https://supergiant.github.io/docs/agreements/index.html
You only have to do it once, and then all future commits by you will be covered.


[Backport release-21.11] minio: 2021-10-27T16-29-42Z -> 2022-01-08T03-11-54Z

Motivation for this change
Close CVE-2021-43858 CVSSv3=8.8 (nixos-21.11), https://github.com/NixOS/nixpkgs/issues/155336
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[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/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

The commit does not seem to link the commit on master. Did you use git cherry-pick -x? Also, can't this be backported automatically from the PR against master?

@ajs124 This commit is not directly picked from master as there were multiple updates in between. This is also why the automatic backport via bot didn't work.

Is there something missing to get this merged?

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

10 packages failed to build:

python38Packages.datasets
python38Packages.google-cloud-bigquery
python38Packages.intake
python38Packages.intake-parquet
python38Packages.pyarrow
python38Packages.snowflake-connector-python
python38Packages.snowflake-sqlalchemy
python38Packages.spacy-transformers
python38Packages.tokenizers
python38Packages.transformers

13 packages built:

arrow-cpp
minio
parquet-tools
python39Packages.datasets
python39Packages.google-cloud-bigquery
python39Packages.intake
python39Packages.intake-parquet
python39Packages.pyarrow
python39Packages.snowflake-connector-python
python39Packages.snowflake-sqlalchemy
python39Packages.spacy-transformers
python39Packages.tokenizers
python39Packages.transformers

Is there something missing to get this merged?

As was mentioned cherry-picks from master should be used. That means these five commits need to be picked with -x.

c45c58d7dc67f65ab607604907ae79bc41a782ad
435a8c34bd205dc7a0557e02cf7a4b5180be8bcc
f687526593148b136100f297f316348ce2a583b7
c63a60d8ca8284aa2271eb8fb7062d69c9edbbeb
f4f9fc8d96683e1278b9329bcca5dea2f6252796

Replaced by https://github.com/NixOS/nixpkgs/pull/170022


Spinning Hourglass Instead of Unread Messages

My Setup

Operating System: Windows 10
App Version: 2.15.1
Installation type:  exe

[x] I have tested with the latest version
[x] I can simulate the issue easily

Description

Current Behavior
 There was an indicator on the app system tray icon that I have unread messages.  Attempting to start the app leaves me with three dots flashing on & off.  An hourglass essentially.  Nothing is happening.
Expected Behavior
 I expect the app to open and show me unread messages.

Please test if the latest release did solve this. If not please reopen the issue or create a new one and tell us. I will be closing this one for now.
Thank you!


MP: multicellular processes

GO:0044274 multicellular organism biosynthetic process
is missing parent
GO:0032501 multicellular organismal process
GO:0044266 multicellular organismal macromolecule catabolic process
is missing parent
GO:0044266 multicellular organismal macromolecule catabolic process
@cmungall  shouldn't the reasoner pick these up?
from
https://github.com/pombase/canto/issues/28#issuecomment-250712901

Fixed


Development: Update cypress to 12.12.0

Checklist
General

[x] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Motivation and Context

Update cypress to the latest version 12.12.0:
https://docs.cypress.io/guides/references/changelog#12-12-0
Description

Update cypress to the latest version
Review Progress

Code Review

[ ] Review 1
[ ] Review 2

Codecov Report

Merging #6601 (0809513) into develop (cf74c01) will decrease coverage by 4.44%.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #6601      +/-   ##
=============================================
- Coverage      84.94%   80.51%   -4.44%
  Complexity     13321    13321
=============================================
  Files           1093     2365    +1272
  Lines          42898    90714   +47816
  Branches        4439    13388    +8949
=============================================
+ Hits           36440    73034   +36594
- Misses          4007     9730    +5723
- Partials        2451     7950    +5499

see 1275 files with indirect coverage changes

Flag
Coverage Δ

client
76.53% <ø> (?)

server
84.94% <ø> (ø)

Continue to review full report in Codecov by Sentry.

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


[Question]: How to add chat and embedding two model types using ollama

Describe your problem

Knowledge base embedding model uses qwen embedding, the knowledge base has been generated, but the added model cannot add chat, resulting in the chat being unable to use the knowledge base.

qwen2.5 is not an embedding model.


Handle case where no background is added

If no bg is added, several issues may arise include the sox combiner crashing (list of one file), and potentially other problems (not inspecteD).

This is now handled (soundscape with no events will raise warning and no audio will be generated)


Handshake Error

Hi, my team using ASP.Net Core on backend. And JS module works fine with it. When i try to connect with SignalR-Client-Swift, then ws connection opened and first message as handshake comes "{"type":6}\u{1E}". it is normal parsable json. But your code says if there is not empty json in handshake then it is error and closes connection.
private static func parseHandshakeResponse(handshakeResponse: Data) -> Error? {
        do {
            if let handshakeResponseJson = try JSONSerialization.jsonObject(with: handshakeResponse) as? NSDictionary {
                if handshakeResponseJson.count == 0 {
                    return nil
                }

                if handshakeResponseJson.count == 1, let errorMessage = handshakeResponseJson.value(forKey: "error") as? String {
                    return SignalRError.handshakeError(message: errorMessage)
                }
            }
        } catch {
            return error
        }

        return SignalRError.handshakeError(message: "Invalid handshake response.")
    }

What can i do to connect normally?
I creating connection by 2 lines of code (rest of lines is delegate)
chatHubConnection = HubConnection(url: URL(string:"MYHOST")!, hubProtocol: JSONHubProtocol());
chatHubConnection?.delegate = self

Are you able to reproduce this consistently? From your descriptions it feels that the client did not receive messages in the expected order (or somehow missed the first message). As per the protocol description the first message sent by the client should be handshake request. Upon receiving the handshake request the server should respond with handshake response which optionally can contain an error. A successful handshake response is an empty JSON object. What you are receiving is a ping message of JSON hub protocol. While this is a valid JSON it is not a valid response to the handshake request and is rejected by the client which closes the connection.
If you have a consistent (simplified) repro, can you post it somewhere (for instance as a github repo) so that I could try replicate on my side? I think, I would mostly need the server side since you posted the client side code.
Alternatively, if you installed the client from CocoaPods - can you try installing the version from the master branch of this repo and check if the issue persists?

Sorry for long respond, i had a weekend)
Here is a short sample. I can send our server code, because of it is not a open source product.
Native SignalR javascript lib works with it fine. I attach a short script that demonstrate that connection works and after channel subscribtioning the data comes from server
SignalRCoreTest.zip
js_signalrlib_test.zip

Would you be able to come up with a minimal repro from the server side. Since the issue is happening when starting the connection I would think that it would also happen even if your hub did not have any hub methods. I am mostly interested in seeing

versions in the .csproj
setting up the server (main/StartUp)
did you override the OnConnectedAsync method in your hub? If so, does the issue still occur if this logic does not run?
do you use authentication? If so, does the issue still occur if auth is disabled?
how you are running your server (OS, if Windows - are you using IIS)

Can you also try the latest version of the client from the master branch (you can do it by changing your Podfile like this) and turn on logging at the Diagnostic level? The default PrintLogger will log to the console and hopefully will help troubleshoot.

answers for your questions:

<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.0.0-preview1-final" />

        public static ISignalRBuilder AddMyExJsonProtocol(this ISignalRBuilder builder,
                                                          IHostingEnvironment env,
                                                          Action<JsonHubProtocolOptions> configure = null)
        {
            return builder.AddJsonProtocol(o =>
            {
                o.PayloadSerializerSettings.ApplyMyJsonSettings(env.IsProduction());
                configure?.Invoke(o);
            });
        }

        app.UseSignalR(ConfigureSignalR);

        private static void ConfigureSignalR(HubRouteBuilder routes)
        {
            routes.MapHub<MarketInfoHub>("/info");
        }

No
No
kestrel behind azure load balancer and nginx reverse proxy.

And I use your latest version from master branch, it is a big difference beetween standart cocoapod. And it works anoter. Now new problem appears. In your code:
private static func parseConnectionId(negotiationResponseJSON: [String: Any?]) throws -> String {
        guard let connectionId = negotiationResponseJSON["connectionId"] as? String else {
            throw SignalRError.invalidNegotiationResponse(message: "connectionId property not found or invalid")
        }

        return connectionId
    }

problem wit parsing, it trows here because of SignalR server returns {"connectionId":"f2594bbe-9c1a-48cc-ba48-aef1f71447a9","availableTransports":["WebSockets","ServerSentEvents","LongPolling"]} and lib parse it with an error. I can fix it, but i want to understand why this problem appears?
I can provide logs here:
2018-08-20T14:34:14.643Z info: Starting hub connection
2018-08-20T14:34:14.652Z info: Starting connection
2018-08-20T14:34:14.653Z debug: Attempting to chage state from: 'initial' to: 'connecting'
2018-08-20T14:34:14.655Z debug: Changing state to: 'connecting' succeeded
2018-08-20T14:34:18.908Z debug: Negotiate completed with OK status code
2018-08-20T14:34:18.908Z debug: Negotiate response: {"connectionId":"2ce14177-d9fe-4097-95c0-4d04bdbb5da0","availableTransports":["WebSockets","ServerSentEvents","LongPolling"]}
2018-08-20T14:34:20.615Z error: Parsing negotiate response failed: invalidNegotiationResponse("availableTransports property not found or invalid")

And here is a small code sample were you can test it (just change a team provisioning before run)
SignalRCoreTest.zip

By code reading i see, that you need Json of "availableTransports" that contains TransportType("WebSockets","ServerSentEvents","LongPolling") and also TransportFormat("Text","Binary") can you explain why our server returns only TransportType and it crashes the lib?

<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="1.0.0-preview1-final" />

I believe this is the issue. The preview1 is a very old version of SignalR and there was a number of protocol changes introduced after preview1. Given that there were 3 stable versions of SignalR released none of the previews are supported. I assume that the js client works with your server because you use the matching version. Please update your server (and the js client) to the latest (or at least a stable version) and I think the Swift client will work (I am testing the client with the latest stable version of the server)

Stable versions have an issue of unable to add custom messages to errors/exceptions. Our teammate disscuss it here https://github.com/aspnet/SignalR/issues/2609
Can you check if version you use provide it or have the same error?

My understanding is that the issue is on the server side. The client does not see the error message because the server does not send it. You could try using the nightly build to verify if your issue is fixed. As noted in the other bug the fix is planned to be released in the next minor update.
I am also not sure why a missing error message would block updating a pre-release version to a stable version. There have been tons of bug fixes and improvements post preview1 and relying on error message to do meaningful works seems wrong.

In code samples in the issue above (
https://github.com/aspnet/SignalR/issues/2609) server sent an error to client, and client do not get the message. Our server covered with tests and it works well now, we can merge to a newer version, but we need a server error messages sent to client.
I understand what you prefer, thanks a lot, we try to update a lib but at first try to use Embeddinator-4000(https://github.com/mono/Embeddinator-4000) for using C# lib of current version in Native swift/obj-c. Do you try to use it for SignalR?

but we need a server error messages sent to client.

Can't you just show a generic error message on the client in case of an error until the version with the fix is shipped? I would think that, since this is an exception, it should not happen too often so I am not quite sure why you need to optimize for this case. Anyways, the client cannot do anything about this since the issue is on the server side.
I have not tried the Embeddinator - when I saw it the last time it was at a very experimental stage. I also am working on this client with different goals in mind. At any rate, even if Embeddinator worked it would not help with your issue since, again, the issue is on the server side.

I am closing this issue because there is no work to be done on the Swift client side.
If you happen to play with the Embeddinator I would be very interested in your impression/results.