Added a percent threshold to consider startup of services

In installations where each server may host 1000s of tabls, and 10s of
thousands of segments, it is useful in practice to declare a server
as STARTED when "most" segments of "most" of the tables are ready (i.e.
externalview and idealstate match, as do currentstate and idealstate).
This PR makes an attempt at defining "most" (on an experimental basis).
For now, we disregard the number of (helix) partitions within each resource.
Instead, we count the number of resources that have converged state
and declare success if a (configured) percent are ready.
This is still experimental, and it is suggested to set the percent
to 100 all the time (or, not set it at all, and let the default ride).

Codecov Report

Merging #4011 into master will increase coverage by 0.22%.
The diff coverage is 93.1%.

@@             Coverage Diff              @@
##             master    #4011      +/-   ##
============================================
+ Coverage     67.01%   67.23%   +0.22%
  Complexity       17       17
============================================
  Files          1033     1033
  Lines         51319    51332      +13
  Branches       7178     7181       +3
============================================
+ Hits          34391    34514     +123
+ Misses        14552    14450     -102
+ Partials       2376     2368       -8

Impacted Files
Coverage Δ
Complexity Δ

...org/apache/pinot/common/utils/CommonConstants.java
35.55% <ø> (ø)
0 <0> (ø)
:arrow_down:

.../pinot/broker/broker/helix/HelixBrokerStarter.java
73.33% <100%> (+0.22%)
0 <0> (ø)
:arrow_down:

...pinot/server/starter/helix/HelixServerStarter.java
55.14% <100%> (+2.37%)
0 <0> (ø)
:arrow_down:

...a/org/apache/pinot/common/utils/ServiceStatus.java
73.52% <92.59%> (+2.32%)
0 <0> (ø)
:arrow_down:

...er/validation/BrokerResourceValidationManager.java
25% <0%> (-56.25%)
0% <0%> (ø)

...he/pinot/core/query/pruner/ValidSegmentPruner.java
57.14% <0%> (-28.58%)
0% <0%> (ø)

...r/validation/RealtimeSegmentValidationManager.java
43.33% <0%> (-11.67%)
0% <0%> (ø)

...troller/helix/core/retention/RetentionManager.java
75% <0%> (-4.17%)
0% <0%> (ø)

...inot/core/operator/docidsets/AndBlockDocIdSet.java
55.55% <0%> (-3.48%)
0% <0%> (ø)

.../controller/helix/core/SegmentDeletionManager.java
76% <0%> (-2.41%)
0% <0%> (ø)

... and 30 more

Continue to review full report at Codecov.

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


RFC: run vcf qc per sample instead of per family

Description of question
Would it be better to run variant QC on a per sample base instead of genotyped family vcfs? This would provide more granular results IMO

Yeah true, but I don't think we should drop the overall QC of the final VCF. Maybe some options to specify where the QC has to be done (like --run_individuals_qc and --run_final_qc?)

Hell yeah let's just add both! Would an option to turn it on or off be helpful?

let's run both, bcftools is fast anyway and too much params just makes it hard to read

Fair point! I've noticed an occasional error with VCFtools though, so I'm thinking of either removing it or replacing it with something else (don't know what yet)

Added in #35


How to stop scroll propagation to document on iOS device

Hi. I have scrollable area at page. On iOS devices when I scroll my area at end, then release finger and after that trying to scroll it more at same direction, whole page is scrolling, but I need that it just not scrolling either.
Can I do that?

This functionality should not really change, otherwise users won't be able to scroll and see the rest of your content (according to your page layout and their device screen size which you have no control over).
If your page layout is very specific and you still want to do it, you'll have to edit the script and manually disable it:
Edit jquery.mCustomScrollbar.js and insert a new line after line 1291 with the following: e.preventDefault();


suggestion

It would be interesting if you added text2midi support, so you could generate music the way the person wants

Yes, it would be interesting if there was text2midi, so we could generate music of our own taste


[Bug] spawn + bot commands not working

Hello,
the day before yesterday I was practicing instant smokes on Ancient, where the .spawn command and its derivatives (.tspawn / .ctspawn) come in handy.
Today, I noticed this feature does not seem to work anymore. Also .bot commands (e.g. .bot, .crouchbot, .boost) do not work properly anymore, as the bot gets added, but does maintain its spawn point. For .crouchbot, it does crouch on spawn, but does not change position.
I have tested a fresh install with the newest current version of 0.5.1-alpha with the included CSSharp.
Additionally, I have tested with an old metamod version (2.0.0+1225) and the latest (2.0.0+1275).
I do believe this is a bug, but the possibility that this is a problem on my end exists.
If you cannot reproduce this issue, I would be happy to receive some tips :)
Thanks in advance!
For debug purposes I have included a snippet of the chat log on my server:
[MatchZy] [EventPlayerChat] UserId(Index): 1 playerUserId: 0 Message: .spawn 1
[All Chat][kevka^ (172587987)]: .spawn 1
[MatchZy] [EventPlayerChat] UserId(Index): 1 playerUserId: 0 Message: .spawn 2
[All Chat][kevka^ (172587987)]: .spawn 2
[MatchZy] [EventPlayerChat] UserId(Index): 1 playerUserId: 0 Message: .bot
[All Chat][kevka^ (172587987)]: .bot
ClientPutInServer create new player controller [Lieutenant]
"Lieutenant<4>" ChangeTeam() CTMDBG , team 0, req team 3 willSwitch 0, 518.77
[MatchZy] [TemporarilyDisableCollisions] Disabling kevka^ Lieutenant
[MatchZy] [EventPlayerChat] UserId(Index): 1 playerUserId: 0 Message: .crouchbot
[All Chat][kevka^ (172587987)]: .crouchbot
ClientPutInServer create new player controller [Goggles]
"Goggles<5>" ChangeTeam() CTMDBG , team 0, req team 3 willSwitch 0, 613.27
[MatchZy] [TemporarilyDisableCollisions] Disabling kevka^ Goggles

Hey!
Today's CS2 game update has broken teleport feature of practice mode.
To fix it, you will have to update CSSharp, or download matchzy-with-cssharp release from here (I've updated the release):
https://github.com/shobhit-pathak/MatchZy/releases/tag/0.5.1-alpha
Or simply update addons/counterstrikesharp/gamedata/gamedata.json file with this:
https://raw.githubusercontent.com/roflmuffin/CounterStrikeSharp/74fd0e0832dbd8a8a2385bc76f0c5f585196b452/configs/addons/counterstrikesharp/gamedata/gamedata.json
Thanks!

I have replace the gamedata.json like you suggested and it restored functionality to the teleport feature.
Thanks for your help :D


Impossible to install XGBoost on mac

Hi guys,
I am trying to install xgboost on my mac (10.12.5) and after several attempts I did not succeed. I follow different tuto trying to modifi gcc variable by adding gcc-6 but I have the same problem.
So what I did:

git clone --recursive https://github.com/dmlc/xgboost
cd xgboost; cp make/minimum.mk ./config.mk; make -j4

I have the following error:
/usr/local/bin/g++ -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/learner.o src/learner.cc >build/learner.d
/usr/local/bin/g++ -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/logging.o src/logging.cc >build/logging.d
/usr/local/bin/g++ -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api.o src/c_api/c_api.cc >build/c_api/c_api.d
/usr/local/bin/g++ -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude   -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api_error.o src/c_api/c_api_error.cc >build/c_api/c_api_error.d
/bin/sh: /usr/local/bin/g++: No such file or directory
/bin/sh: /usr/local/bin/g++: No such file or directory
make: *** [build/learner.o] Error 127
make: *** Waiting for unfinished jobs....
/bin/sh: /usr/local/bin/g++: No such file or directory
make: *** [build/logging.o] Error 127
make: *** [build/c_api/c_api.o] Error 127
/bin/sh: /usr/local/bin/g++: No such file or directory
make: *** [build/c_api/c_api_error.o] Error 127

My gcc version is:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I really need your help. For the moment I use pip install xgboost to use the library but I know it's not the right way to use this library.
Thank you for your help
ps: sorry if my english is not ok, i am not fluent

Hello, is there any update on this? I'm having the same issue too!

I've submitted a patch to fix the build script. Once the version 0.71 is released to PyPI, you will be able to use pip install xgboost.

@alay18 You need to custopm your gcc version. Open a text editor and change your gcc version.

Hi all:
I have just uploaded the new pip package on PyPI. You should be able to install by typing
pip3 install xgboost==0.7.post4

@hcho3 @JeremieGuez thanks for your help guys!


Export with user consent followup

@timabbott This is ready for a review.

These are really great test cleanups, merged, thanks @hackerkid!


Image Anonymization Basic Flow

This PR introduces a new python module that redacts sensitive entities found in the text of the images. It contains:

OCR - using Tesseract OCR
Image Analyzer using the presidio text analyser module
Image Anonymizer that redact the image

Great package. Compact and easily readable. Left some comments for optional improvement.

Great package. Compact and easily readable. Left some comments for optional improvement.

Looks great! Added one minor comment.


Add Dos MZ support to retdec

Being able to decompile old MS DOS/MZ programs would be nice.

Yes, I'm struggling with this right now too and also would upvote this

Hello,
I also would like to use RetDec to decompile MS-DOS binaries.
While it may not be useful for modern security purpose, it would help all the hobbyist around here trying to reverse engineer MS-DOS video games.
Best regards.

Are there any news after 5 years regarding MS DOS 16 bit binaries support?


[Question] How do dispatch one action within another action?

I have the following senario:
onApplicationOpen ---> dispatch('ACTION1') ---> dispatch('ACTION2') ---> dispatch('ACTION3')
so ideally this should work, but somehow the state updates inside the ACTION3 does not update the status!
am I missing something here?

Have you tried to do a batched dispatch?
   reactor.batch(function () {
      reactor.dispatch('ACTION1');
      reactor.dispatch('ACTION2');
      reactor.dispatch('ACTION3');
   });

This will ensure that all listeners will be notified once, after the last dispatch has ended.
Raul.

Yes, I tired that. I was also to call one action from another using jquery promises. So as long as the dispatch is wrapped in a promise or setTimeout then you're cool.


Created Procedure for Setting Up Autoscaling with KEDA

Description of Changes
Created a procedure for setting up a scaler in KEDA.
Checklist

[x] Commits are signed with Developer Certificate of Origin (DCO)

Issue Fixed
Fixes kedacore/keda-docs#1368

Hi @JorTurFer,
Could you please review the finalized PR for #1368? The changes you specified in the previous PR #1415 have been implemented here. However, due to an issue with rebasing, I had to close the earlier PR.
Thank you!

Looks good to me! The only point is that we should include it also as part of v2.16 (if you rebase the branch the folder will be there).
There is another question that comes to my mind, maybe we could transform this into a getting started that we place in the getting started section instead of a versioned documentation. WDYT @tomkerkhove @zroubalik ? Maybe we can do it in a following PR just refactoring a bit this one (which is nice, tbh)

@JorTurFer Included in v2.16 also.


v1.16: backport "Fix lo and fallback node address selection"

[ ] #34012 (@joamaki)

Once this PR is merged, a GitHub action will update the labels of these PRs:
 34012

/test-backport-1.16


Test: Fix PG flaky functional tests

Error message:
	org.spockframework.runtime.SpockComparisonFailure: Condition not satisfied:

deliveryStatistics.requestCount == initialRequestCount
|                  |            |  |
|                  1            |  0
|                               false
<org.prebid.server.functional.testcontainers.scaffolding.pg.DeliveryStatistics@62041909 mockServerClient=org.mockserver.client.MockServerClient@e0989ce endpoint=/deals/report/delivery>

Let's try this approach instead of wait in the assertions. I can't understand why your approach works.
    def setup() {
        pgPbsService.sendForceDealsUpdateRequest(ForceDealsUpdateRequest.sendReportRequest)
        pgPbsService.sendForceDealsUpdateRequest(ForceDealsUpdateRequest.invalidateLineItemsRequest)
        deliveryStatistics.reset()
        PBSUtils.waitUntil { deliveryStatistics.requestCount == 0 }
    }

Re-implemented in https://github.com/prebid/prebid-server-java/pull/2271


Error: Building package szip:x64-windows failed with: BUILD_FAILED

When run the command: .\vcpkg install darknet[full]:x64-windows,   the error apperars as follows:
Computing installation plan...
The following packages will be built and installed:
darknet[core,cuda,cudnn,full,opencv-cuda,weights,weights-train]:x64-windows

giflib[core]:x64-windows
hdf5[core,szip,zlib]:x64-windows
leptonica[core]:x64-windows
libjpeg-turbo[core]:x64-windows
liblzma[core]:x64-windows
libpng[core]:x64-windows
libwebp[core,nearlossless,simd,unicode]:x64-windows
opencv[core,cuda,dnn,ffmpeg,jpeg,opengl,png,tiff,webp]:x64-windows
opencv4[contrib,core,cuda,dnn,ffmpeg,jpeg,opengl,png,tiff,webp]:x64-windows
opengl[core]:x64-windows
protobuf[core]:x64-windows
pthreads[core]:x64-windows
stb[core]:x64-windows
szip[core]:x64-windows
tesseract[core]:x64-windows
tiff[core]:x64-windows
zlib[core]:x64-windows
Additional packages (*) will be modified to complete this operation.
Warning: The following VS instances are excluded because the English language pack is unavailable.
e:\Program Files (x86)\Microsoft Visual Studio\2017\Professional
Please install the English language pack.
Detecting compiler hash for triplet x64-windows...
Starting package 1/18: szip:x64-windows
Building package szip[core]:x64-windows...
Could not locate cached archive: C:\Users\lxm\AppData\Local\vcpkg\archives\27\275bb50102e4195b9fa5c02d9ec579d56cd205c7.zip
-- Using cached C:/Users/lxm/vcpkg/downloads/szip-2.1.1.tar.gz
-- Cleaning sources at C:/Users/lxm/vcpkg/buildtrees/szip/src/szip-2.1.1-6b767acfa7.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/lxm/vcpkg/downloads/szip-2.1.1.tar.gz
-- Applying patch fix-szip-config-to-set-szip-found.patch
-- Using source at C:/Users/lxm/vcpkg/buildtrees/szip/src/szip-2.1.1-6b767acfa7.clean
-- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:85 (message):
Command failed: ninja -v
Working Directory: C:/Users/lxm/vcpkg/buildtrees/szip/x64-windows-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
C:\Users\lxm\vcpkg\buildtrees\szip\config-x64-windows-out.log

Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:305 (vcpkg_execute_required_process)
ports/szip/portfile.cmake:17 (vcpkg_configure_cmake)
scripts/ports.cmake:79 (include)
Error: Building package szip:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: szip:x64-windows
Vcpkg version: 2020.06.15-nohash
Additionally, attach any relevant sections from the log files above.

According to the issue "https://github.com/microsoft/vcpkg/issues/7067 ", i  add the follow path of window kit 10 as follows:

However, it is still no work and the same errors appears.

How to set the path of the window Kit 10?

Is the path "C:\Program Files (x86)\Windows Kits\10" right ?  See the below:

However , it is still no work.

config-x64-windows-out.log

How to set the working C compiler  as vs2017( i have installed according to the software requirements ) and replace the vs2015（i have installed for more one years）.

Any updates on this open issue?

@xingyewuyu Sorry I am late. Could you please install the English language package and rebuild vcpkg and reinstall szip?

@xingyewuyu, this is duplicated issue with https://github.com/microsoft/vcpkg/issues/13051, this should be resolved if the English lauguage package installed. Please reopen if the issue persist.


Setting the filter for a column from programmatically

Hi I just began using your filterdatagrid and I was wondering if there is a way to set the filter of a column programmatically from the backend.
For example: when button "a" is clicked, column 1 should be filtered for every row that has the value "apple" and when the button "b" is clicked, column 2 should be filtered for every row that has the value "bee".

There is no backend, but you can extend the FiterDatagrid class.
best regards

Hello,
Could you please post an example of how it would work?
I've tried it myself but with no luck...
Thanks in advance,
RaceX

@macgile I'm also curious about that. It would be great to be able to set filter items source to a column by binding an observable collection.
Thanks


Binding issue

I don't need to talk too much, the bindings don't work. Anyone know the solution for this?

React doesn't have two-way data binding.
Use the classic React way of updating the value using the onChange:
<script lang="ts">
  import { Input, Text } from "@geist-ui/core";

  let value = "";
</script>

<react:Input {value} on:change={(e) => { value = e.target.value }} />
<react:Text>{value}</react:Text>


Helm: add post install hook to support creating default buckets

What problem are we solving?
Enhancements:

Enable administrators to create buckets using the helm chart in a declarative way

Provide the option for created buckets to be publicly accessible

Housekeeping:

Changes  nodeSelector tag from beta.kubernetes.io/arch: amd64 to kubernetes.io/arch: amd64 because it was deprecated in version 1.14 and removed in 1.18

bump chart from 3.59.2 to 3.59.3

How are we solving the problem?
This PR enables the creation of new buckets via the use of a Post-install helm Hook on a Kubernetes Job, which executes after all other resources are loaded into Kubernetes.
The Kubernetes job invokes weed shell to create a list of buckets.
How is the PR tested?

Create an updated values file containing the new bucket options.
Example filer section:
filer:
  s3:
    enabled: true
    enableAuth: true
    skipAuthSecretCreation: false
    # You may specify buckets and users to be created during the install process
    createBuckets:
      - name: bucket-a
        anonymousRead: true
      - name: bucket-b
        anonymousRead: false

install the helm chart from the local directory:
$ helm install --values=test-values.yaml seaweedfs . --wait
LAST DEPLOYED: Thu Nov 23 13:37:55 2023
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None

add some data to the bucket and expose the s3-endpoint service

Share the public endpoint with friends

Checks

[ ] I have added unit tests if possible.
[x] I will add related wiki document changes and link to this PR after merging.

@chrislusf Thank you so much for all the feedback!
I think all points have been addressed now 👍


Unsuccessful run

unable to run it successfully in build step
ENV

use devcontainer
windows 10 + docker desktop

TRY 1

use esp-idf build button

*  Executing task: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -B /workspaces/build -S /workspaces

-- Found Git: /usr/bin/git (found version "2.25.1")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/esp/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /opt/esp/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /opt/esp/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/esp/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /opt/esp/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- git rev-parse returned 'fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).'
-- Could not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
CMake Error at /opt/esp/idf/tools/cmake/build.cmake:544 (message):
Call Stack (most recent call first):
  /opt/esp/idf/tools/cmake/project.cmake:547 (idf_build_process)
  CMakeLists.txt:8 (project)

-- Configuring incomplete, errors occurred!
See also "/workspaces/build/CMakeFiles/CMakeOutput.log".

 *  The terminal process "/usr/bin/bash '-c', 'cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -B /workspaces/build -S /workspaces'" terminated with exit code: 1.

full cmakeoutput.log
https://raw.githubusercontent.com/yingpwu/upload_file_2_link/main/CMakeOutput.log

TRY 2

running idf.py build

HINT: You are maybe using pre FreeRTOS V8.0.0 APIs. The backward compatibility of such APIs is no longer enabled by default. Please turn on CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY explicitly to use such APIs.
HINT: TCP/IP adapter compatibility layer has been removed. Please migrate to ESP-NETIF.
Refer to the Networking migration guide, section TCP/IP adapter, for more details.

when i change the CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY=y ,the first error gone, but i don't know how to migrate to esp-netif
is there anyway to skip this error?
full stdout
https://raw.githubusercontent.com/yingpwu/upload_file_2_link/main/idf_py_stdout_output_2441

I'm a novice,please help me.thanks for your reading.

Hello! Seems like you're compiling with IDF 5.x, while the code here is written for IDF 4.x.
Since you are using the devcontainer, I suspect the Dockerfile is the culprit. Will take a look and update

I still got some problem when i run it first time and tried build button and idf.py build much times

root@531f7f7cc32f:/workspaces# idf.py build
Executing action: all (aliases: build)
Running ninja in directory /workspaces/build
Executing "ninja all"...
[1/414] Linking C static library esp-idf/ulp/libulp.a
FAILED: esp-idf/ulp/libulp.a
: && /opt/esp/tools/cmake/3.23.1/bin/cmake -E rm -f esp-idf/ulp/libulp.a && /opt/esp/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-ar qc esp-idf/ulp/libulp.a  esp-idf/ulp/CMakeFiles/__idf_ulp.dir/ulp.c.obj esp-idf/ulp/CMakeFiles/__idf_ulp.dir/ulp_macro.c.obj && /opt/esp/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-ranlib esp-idf/ulp/libulp.a && :
/bin/sh: 1: /opt/esp/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-ar: not found
[2/414] Performing build step for 'bootloader'
[1/1] cd /workspaces/build/bootloader/esp-idf/esptool_py && /opt/esp/python_env/idf4.4_py3.8_env/bin/python /opt/esp/idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 /workspaces/build/bootloader/bootloader.bin
Bootloader binary size 0x63e0 bytes. 0xc20 bytes (11%) free.
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

but then i tried delete whole build folder ,and try again ,it woking.
thank you so much ,helped me a lot


Fit CategoricalHMM with available data?

I have walked through the example usage in： https://probml.github.io/dynamax/notebooks/hmm/casino_hmm_learning.html
However, the params and promps are all generated by initialize function in the example, and if I have ready-to-use lists, one input lists (X in general ML), and one label list (y in general ML), how could I use the fit function?
I know this question could be naive, but I'm relatively new to Python. I greatly appreciate someone could help.

Hi @AndyWeasley2004,
I'm not sure I have totally understood your question correctly but perhaps the following might be helpful.
There is an example at the start of the demo of selecting the values of the parameters:
num_states = 2      # two types of dice (fair and loaded)
num_emissions = 1   # only one die is rolled at a time
num_classes = 6     # each die has six faces

initial_probs = jnp.array([0.5, 0.5])
transition_matrix = jnp.array([[0.95, 0.05],
                               [0.10, 0.90]])
emission_probs = jnp.array([[1/6,  1/6,  1/6,  1/6,  1/6,  1/6],    # fair die
                            [1/10, 1/10, 1/10, 1/10, 1/10, 5/10]])  # loaded die

# Construct the HMM
hmm = CategoricalHMM(num_states, num_emissions, num_classes)

# Initialize the parameters struct with known values
params, _ = hmm.initialize(initial_probs=initial_probs,
                           transition_matrix=transition_matrix,
                           emission_probs=emission_probs.reshape(num_states, num_emissions, num_classes))

In this example the values of the parameters are determined by the values in the arrays initial_probs, transition_matrix, and emission_probs.
What the hmm.initialize method is doing in this example is taking the arrays we have defined and converting them into the appropriate parameter objects (an instance of ParamsCategoricalHMM).
If you wanted to use your own parameter values then you can convert them into jax arrays (jnp.array(param_list)) and pass that into the initialize method as above.
The initialize method also allows you to sample random values for the parameters by passing a key. This approach is used later on in the demo for example:
key = jr.PRNGKey(0)
em_params, em_param_props = hmm.initialize(key)
em_params, log_probs = hmm.fit_em(em_params,
                                  em_param_props,
                                  batch_emissions,
                                  num_iters=400)

It sounds like your "label list" might correspond to the hmm emissions, in which case you can pass that to fit function as the emissions argument (the array batch_emissions is being passed as the value for that argument in the example above).
I am not entirely sure what you mean by your "input lists" but if you can provide some more details I am happy to see if I can help further.


Upgrade CI

Prerequisites
To facilitate some time-consuming development steps, the great idea would be to put them on cloud computing.
Code linting and formatting
Instead of constantly formatting and searching for the style errors in our code, we will use github actions. For every commit we can have automatic formatting, fixing errors by and information about warnings by eslint. (Latest commit shows automatic adding of semicolon)
Pull-request dependencies
It's also pretty convenient to have information about what dependencies were changed or added by pull-request. This workflow will give us usable info about that.
Automatic issues
Since the project is in active development it would be useful to create issues automatically. There are also plugins for almost every IDE to search and manage TODO's. That workflow gives us the ability to convert "TODO" entries into issues. For example the following piece of code
  // TODO Implement run() for the Comment class
  async run() {
    return null;
  }

Will be converted to an issue with the name "Implement run() for the Comment class", which will include a link to the TODO in code.
Dependencies updates
Denepdabot will try to search for updates and will create a PR if there are any.

Wow, very cool!

Apply formatting changes

Nice, so it only does this on touched code? If for some reason I should want custom style, can I decline it? I guess It is easiest for me to just do PR and see how this works. Happy to merge this!

Nice, so it only does this on touched code? If for some reason I should want custom style, can I decline it? I guess It is easiest for me to just do PR and see how this works.

You can always disable prettier for specific files if you want to, but usually it gives very readable and comfortable result (can be configured according to your preferences as well)

Is this fixable?
Run wearerequired/lint-action@v1
Error: This action does not have permission to create annotations on forks. You may want to run it only on `push` events. See https://github.com/wearerequired/lint-action/issues/13 for details
Adding "Lenivaya/core" fork as remote with Git
Fetching remote branch "master"
From https://github.com/Lenivaya/core
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> fork/master
Switching to the "master" branch
Previous HEAD position was 7808d3f Merge 9be6f5d6aea6ed1a72ae5f793db27b168972084a into 25abe2c831953687c69fafe890fe09642fa4116d
Switched to branch 'master'
SHA of last commit is "9be6f5d6aea6ed1a72ae5f793db27b168972084a"
Run ESLint
Create check runs with commit annotations
  There are more than 50 errors/warnings from ESLint. Annotations are created for the first 50 issues only.
  Creating GitHub check with 50 annotations for ESLint…
  Error: Error: Received status code 403
  Error: Error trying to create GitHub check for ESLint: Received status code 403

That's appears because I'm not the owner of the repo, all must work as it should after being merged(you can make sure by checking run summary on my fork - https://github.com/Lenivaya/core/actions/runs/1023207391)

You can always disable prettier for specific files if you want to, but usually it gives very readable and comfortable result (can be configured according to your preferences as well)

Lot of times I like it to stack, like this:
it('can build diagrams programatically', () => {
  expect(DiagramBuilder.begin()
    .add(Create)
    .add(Inspect)
    .finish())
    .toBeInstanceOf(Diagram);
});

Rather than
it('can build diagrams programatically', () => {
  expect(DiagramBuilder.begin().add(Create).add(Inspect).finish()).toBeInstanceOf(Diagram);
});

That goes for all tests, probably elsewhere as well. What do you recommend to allow for that?

That's appears because I'm not the owner of the repo, all must work as it should after being merged(you can make sure by checking run summary on my fork - https://github.com/Lenivaya/core/actions/runs/1023207391)

Perfect!

Rather than
it('can build diagrams programatically', () => {
  expect(DiagramBuilder.begin().add(Create).add(Inspect).finish()).toBeInstanceOf(Diagram);
});

I can agree it's looking strange, but it seems like I found out why prettier format like this. Author of boilerplate from which you created project for somewhat reasons decided to increase "printWidth" in prettier config up to 120 characters. By decreasing this number in two times I got this code formatted like on the screenshot

Now it's looks much nicer

Now it looks much nicer

Perfect!


Change command-line option in nbconvert template for compatibility with updated pandoc.

This fixes the issue that all the text was stripped out of the PDF when using recent versions of pandoc.

With this modification, the PDF generates correctly for me.

Thanks @ketch, works for me too!


broken with PyInstaller: ImportError: cannot import name 'EventTypeSpec' from 'quickmachotkey._MinimalHIToolbox'

Traceback (most recent call last):
  File "app.py", line 59, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 378, in exec_module
  File "quickmachotkey/__init__.py", line 11, in <module>
    __email__ =<EMAIL_ADDRESS>ImportError: cannot import name 'EventTypeSpec' from 'quickmachotkey._MinimalHIToolbox' (./quickmachotkey/_MinimalHIToolbox/__init__.pyc)

OS Version: MacOS 15.0
Architecture: arm64 (M2 Chip)
Python Version: 3.11

Thanks for the bug report! I'll have a look at this.

So, a fresh pip install on Sequoia with 3.11 works fine.
This appears to be an issue with PyInstaller, or maybe your code that you're bundling with PyInstaller. I can't report it upstream with PyInstaller because I don't have access to your code and cannot reproduce what you are doing.  Line 11 of quickmachotkey/__init__.py is not __email__ =<EMAIL_ADDRESS>so perhaps something else is happening here, but it seems like the most likely problem is that PyInstaller somehow doesn't comply with PEP 562, and isn't respecting the __dir__ and __getattr__ functions populating the module.
I'm going to close this because I can't reproduce it, but please feel free to re-open with a full example project, either here, or, ideally, on PyInstaller since I think it's actually their bug.

@glyph I believe it has something to do with Ventura though.
Like they got rid of HIToolBox or something since it was deprecated

More to the point though: if HIToolbox were gone, you'd get a different error about the framework being missing, and that call to createFrameworkDirAndGetattr would fail, rather than the import. The error in your traceback suggests that getattr_func is just never getting invoked.


matrix-appservice-irc: abandon maintainership

Motivation for this change
The 0.27->0.30 update was a total pain and took way too long in general. Now we're at 0.32.1 and it's broken again. I actually don't know anything about this pile of npm and I'm sick of it. Somebody else please take over. (I'd still be happy to contribute to this package and module, as long as the scope stays within limits.)
Ah, and I improved the update script some more.
If you're interested in fixing it, simply run the update script and build the package. You will be rewarded with:
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm ERR! code ENOTCACHED: sill install loadAllDllD
npm ERR! request to https://registry.npmjs.org/matrix-bot-sdk failed: cache mode is 'only-if-cached' but no cached response available.

npm ERR! A complete log of this run can be found in:
npm ERR!     /build/.npm/_logs/2021-11-13T21_13_30_327Z-debug.log

Things done

Built on platform(s)

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

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

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

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

Should we maybe drop the entire package since it won't be updated anytime soon?

I really hope that there is enough interest in the package and that somebody will update it sooner or later. This wouldn't be the first one without (effective) maintainer in nixpkgs, so I don't see the need to actually remove it. The code still works just fine as is.


fix(pp): char and string literals

Fixes #3560
Note: we should maybe print escape codes for certain ranges of code points :thinking:

Thanks Lucas, looks great, merging.

Note: we should maybe print escape codes for certain ranges of code points 🤔

To properly do this kind of thing I think the lexer should retain some information of how the char was lexed/parsed, if the user writes \n we should retain that, and the same applies for \x0a. For chars computed internally we can make some default sensible choice.


[5.6] index() method use view ability

authorizeResource() method not check index() authorize now
add index key then use view ability

@JosephSilber and I had discussed this and decided you would just scope the available resources in your index query directly rather than do this. However, I have had sometimes had the need for a viewAny method (only once though).


deepin.deepin-terminal: 5.9.40 -> 6.0.5

Description of changes
Don't need gtest now,  only when CMAKE_BUILD_TYPE=Debug will enable unit testing
https://github.com/linuxdeepin/deepin-terminal/blob/master/CMakeLists.txt#L284-L286

Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 226614 run on aarch64-linux 1

1 package built:

deepin.deepin-terminal


Numbers, their positions and "hide order"

Hi,
Great project, really easy to use, thank you so much for creating it.  Just a couple of things...
My glossary items include numbers (i.e. 3040) - is there a way to make them appear at the top of the glossary?   Currently they appear at the bottom.
Also,  if my numbers have a letter in (654n for example), they get sorted with the "n's".  is there a way to stop that and force them to still be a number?
Finally, is there a way I can hide the "order items" stuff at the top?  Something like the way you can hide "Export" etc. would be great.
Thanks.

Thanks!
I can make it so that "3040" and "654n" would both appear at the beginning of the item list, and in the index they would be grouped under a label "0–9" at the top (or at least before "A", "B" etc.). I agree that this seems better than the current behaviour that you mentioned. Does that sound OK?
Regarding the ability to hide "order items", sure I can add a toggle for that under Settings.
I'm currently working towards version 4 of the template which would add support for tags and some related improvements. That's taking a while so I'll have to see if I do the above changes before releasing that new major version or after...

Absolutely fantastic news! If you could do that it would be great. Thanks 😁

I've tried to address this in version 3.8.0 which I've just released. Would you mind trying it out? If it looks good then I'll close this issue.

sorry, what do I need to download to test this?  is it just the latest glossary.js and glossary.css or or am I missing something here?

In your glossary.html file, what do the tags at the end of the <head> element look like? If it's
<script type="module" crossorigin<EMAIL_ADDRESS><link rel="stylesheet" crossorigin<EMAIL_ADDRESS>
then that should download the new version automatically. It may take up to one day (that's how long it's cached for) or you could try doing a "hard refresh" in your browser.
Alternatively you can point to specific version in the tags, e.g. by changing the 3 to 3.8.0 like this:
<script type="module" crossorigin<EMAIL_ADDRESS><link rel="stylesheet" crossorigin<EMAIL_ADDRESS>
See also https://github.com/hilverd/glossary-page-template#static-assets.
Does that make sense? I've been thinking that the instructions in the README might not be clear enough about this.

You're right, it just needed the hard refresh. The 0-9 is there and the numbers are at the top.  This is so much better for me personally, thanks again for doing it. Just the "order items" row to hide if that's possible, but there's no rush for that.
I really appreciate you doing this, thanks again.

There should be a toggle for "Show 'Order items' buttons" under Settings as part of the new version -- is it appearing?

I can't see "Settings" anywhere - where is that?

The same place where you can hide the Export menu -- see screenshot below (click Settings to expand). Or did you change that in the HTML directly? In that case you can add a data-enable-order-items-buttons="false" attribute next to the data-enable-export-menu=... attribute. In any case, the Settings menu should be there when you're in "editor mode". If it's not then there's a bug.

I hid all that in the HTML and I'm not using this in "editor mode" at all.  I've added the data-enable-order-items-buttons="false" and it's gone.  Great, thanks 🥇


WIP: cleanuo: remove unused target

Remove unused target.
TODO: The project is using ENV TEST asset to run the tests. Therefore, we need to create the target to have it locally.

Why do you think this is entirely unused?


git clone 你的url windows-10-x64报错

error: invalid path '4 Tree/1-二叉树 /btree.c'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
现象是 本地目录下的所有文件自动被delete.

同样的错误，文件路径多了一个空格


Remove magic __call from Router

Fixes #159.

Please also update demo.php and the docs.

Already noticed that, yes. Updated docs, demo.php and tests.

LGTM. Let's also see what @trowski says.


Bot never checks for messages

Running into a weird issue here and I'm not sure where to start troubleshooting...
I've been running this setup for about a year now without issue but earlier today I noticed the bot wasn't responding to messages, both containers were alive and healthy.
I can see the bot checking for groups on startup, but it never goes further.
Debug logging shows a normal startup and then.... nothing. After a few minutes it prints a PING/PONG 0 bytes but none of the normal raw envelope messages.
I can send messages with postman so I think the signal api is working as intended
Starting the bot without registering any commands shows the same behavior. Same goes for running the example/bot.py
Watchtower does keep the container images fresh and both signalbot and the api updated recently though I didn't notice any different pulling and running  the previous versions.
Normally after an update breaking something there's noise in the logs (and other users opening issues) but I can't find the smoking gun here.
Any help would be greatly appreciated!
signal-cli-rest-api logs:
+ set -e
+ [ -z /home/.local/share/signal-cli ]
+ usermod -u 1000 signal-api
usermod: no changes
+ groupmod -g 1000 signal-api
+ chown 1000:1000 -R /home/.local/share/signal-cli
+ cat
+ cap_prefix=-cap_
+ cat /proc/sys/kernel/cap_last_cap
+ seq -s ,-cap_ 0 40
+ caps=-cap_0,-cap_1,-cap_2,-cap_3,-cap_4,-cap_5,-cap_6,-cap_7,-cap_8,-cap_9,-cap_10,-cap_11,-cap_12,-cap_13,-cap_14,-cap_15,-cap_16,-cap_17,-cap_18,-cap_19,-cap_20,-cap_21,-cap_22,-cap_23,-cap_24,-cap_25,-cap_26,-cap_27,-cap_28,-cap_29,-cap_30,-cap_31,-cap_32,-cap_33,-cap_34,-cap_35,-cap_36,-cap_37,-cap_38,-cap_39,-cap_40
+ [ json-rpc = json-rpc ]
+ /usr/bin/jsonrpc2-helper
time="2024-08-06T03:11:16Z" level=info msg="Updated jsonrpc2.yml"
+ [ -n  ]
+ service supervisor start
Starting supervisor: supervisord.
+ supervisorctl start all
+ hostname+  -I
awk {print $1}
+ export HOST_IP=<IP_ADDRESS>
+ exec setpriv --reuid=1000 --regid=1000 --init-groups --inh-caps=-cap_0,-cap_1,-cap_2,-cap_3,-cap_4,-cap_5,-cap_6,-cap_7,-cap_8,-cap_9,-cap_10,-cap_11,-cap_12,-cap_13,-cap_14,-cap_15,-cap_16,-cap_17,-cap_18,-cap_19,-cap_20,-cap_21,-cap_22,-cap_23,-cap_24,-cap_25,-cap_26,-cap_27,-cap_28,-cap_29,-cap_30,-cap_31,-cap_32,-cap_33,-cap_34,-cap_35,-cap_36,-cap_37,-cap_38,-cap_39,-cap_40 signal-cli-rest-api -signal-cli-config=/home/.local/share/signal-cli
time="2024-08-06T03:11:18Z" level=info msg="Started Signal Messenger REST API"
[GIN] 2024/08/06 - 03:11:26 | 200 |     98.8465ms |      <IP_ADDRESS> | GET      "/v1/groups/+<botsPhoneNumber>"

bot logs:
WARNING:root:[Bot] Could not initialize Redis. In-memory storage will be used. Restarting will delete the storage!
INFO:apscheduler.scheduler:Scheduler started
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added
INFO:root:[Bot] Producer #1 started
INFO:root:[Bot] Consumer #1 started
INFO:root:[Bot] Consumer #2 started
INFO:root:[Bot] Consumer #3 started
DEBUG:websockets.client:= connection is CONNECTING
DEBUG:websockets.client:> GET /v1/receive/<botPhoneNumber> HTTP/1.1
DEBUG:websockets.client:> Host: localhost:6969
DEBUG:websockets.client:> Upgrade: websocket
DEBUG:websockets.client:> Connection: Upgrade
DEBUG:websockets.client:> Sec-WebSocket-Key: vET2ypOOy/uuA6k4wCeJBg==
DEBUG:websockets.client:> Sec-WebSocket-Version: 13
DEBUG:websockets.client:> Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
DEBUG:websockets.client:> User-Agent: Python/3.12 websockets/10.4
DEBUG:websockets.client:< HTTP/1.1 101 Switching Protocols
DEBUG:websockets.client:< Upgrade: websocket
DEBUG:websockets.client:< Connection: Upgrade
DEBUG:websockets.client:< Sec-WebSocket-Accept: 93qdbmnHAZchEXEuJswf97uvMs8=
DEBUG:websockets.client:= connection is OPEN
INFO:root:[Bot] 2 groups detected
DEBUG:websockets.client:< PING '' [0 bytes]
DEBUG:websockets.client:> PONG '' [0 bytes]

docker-compose:
---
services:
  sigBot-backend:
    container_name: sigBot-backend
    userns_mode: "host"
    image: bbernhard/signal-cli-rest-api
    networks:
      - net
    labels:
      - 'traefik.enable=false'
    environment:
      - TZ=America/Eastern
      - MODE=json-rpc
    volumes:
      - /opt/sigBot/signal-cli:/home/.local/share/signal-cli
    expose:
      - 8080
    restart: unless-stopped

  sigBot:
    container_name: sigBot
    image: python:3
    networks:
      - net
    labels:
      - 'traefik.enable=false'
    environment:
      - TZ=America/Eastern
    command: "sh -c 'cd /opt/repo && pip install -r requirements.txt && python3 bot.py'"
    volumes:
      - /opt/sigBot/repo:/opt/repo
      - /root/.ssh:/root/.ssh
    restart: unless-stopped

bot.py
import sys, os
from signalbot import SignalBot
import commands
import logging

from production import config

logging.getLogger().setLevel(logging.DEBUG)
logging.getLogger("apscheduler").setLevel(logging.DEBUG)

def main():
  bot = SignalBot(config)

  for command in commands.commands:
    bot.register(getattr(commands, command)(), groups=[config['group_id'], config['playground_group_id']], contacts=False)

  bot.start()

if __name__ == "__main__":
  try:
    sys.exit(main())
  except KeyboardInterrupt:
    try:
      print("exiting...")
    except:
      pass

On first sight, your code looks fine and it seems like it is connecting fine to the REST API due to INFO:root:[Bot] 2 groups detected. My best bet would be that bot.register has an issue. Either you are passing the wrong inputs or there is a bug in the code. Just for debugging, could you try to set groups=True and contacts=True  to listen in every chat? Also, are you sure bot.register is called at all? This issue makes me aware to add more logging on my side so debugging becomes a bit easier.

Trying to add simplicity, running the example/bot.py with the extras stripped out.
import os
from signalbot import SignalBot
from commands import PingCommand
import logging

logging.getLogger().setLevel(logging.DEBUG)
logging.getLogger("apscheduler").setLevel(logging.DEBUG)

def main():
    signal_service = os.environ["SIGNAL_SERVICE"]
    phone_number = os.environ["PHONE_NUMBER"]

    config = {
        "signal_service": signal_service,
        "phone_number": phone_number,
        "storage": None,
    }
    bot = SignalBot(config)

    # enable a chat command for all contacts and all groups
    bot.register(PingCommand(), contacts=True, groups=True)

    bot.start()

if __name__ == "__main__":
    main()

Same behavior.
Something I didn't notice yesterday is that when running interactive, sending ctrl+c causes a call to /v1/receive before it exits
[GIN] 2024/08/06 - 20:58:48 | 200 |   86.952212ms |      <IP_ADDRESS> | GET      "/v1/groups/<botNumber>"
[GIN] 2024/08/06 - 20:58:57 | 200 |   8.85725689s |      <IP_ADDRESS> | GET      "/v1/receive/<botNumber>"

I tried adding a canary to the PingCommand
from signalbot import Command, Context
class PingCommand(Command):
    def setup(self):
      print("PingCommand setup() called")

    def describe(self) -> str:
        return "🏓 Ping Command: Listen for a ping"

    async def handle(self, c: Context):
        command = c.message.text

        if command == "ping":
            await c.send("pong")
            return

But it don't see it in the output while the bot starts.
randal@homebox ~/repos/signalbot/example master
> python3 bot.py
WARNING:root:[Bot] Could not initialize Redis. In-memory storage will be used. Restarting will delete the storage!
PingCommand setup() called
INFO:apscheduler.scheduler:Scheduler started
DEBUG:apscheduler.scheduler:Looking for jobs to run
DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added
INFO:root:[Bot] Producer #1 started
INFO:root:[Bot] Consumer #1 started
INFO:root:[Bot] Consumer #2 started
INFO:root:[Bot] Consumer #3 started
DEBUG:websockets.client:= connection is CONNECTING
DEBUG:websockets.client:> GET /v1/receive/<botNumber> HTTP/1.1
DEBUG:websockets.client:> Host: localhost:6969
DEBUG:websockets.client:> Upgrade: websocket
DEBUG:websockets.client:> Connection: Upgrade
DEBUG:websockets.client:> Sec-WebSocket-Key: Yrdg+3BlWLHTVsiPHxFMEg==
DEBUG:websockets.client:> Sec-WebSocket-Version: 13
DEBUG:websockets.client:> Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
DEBUG:websockets.client:> User-Agent: Python/3.12 websockets/10.4
DEBUG:websockets.client:< HTTP/1.1 101 Switching Protocols
DEBUG:websockets.client:< Upgrade: websocket
DEBUG:websockets.client:< Connection: Upgrade
DEBUG:websockets.client:< Sec-WebSocket-Accept: rzV0gI2jDNkflvA2hAcLE3kd2iU=
DEBUG:websockets.client:= connection is OPEN
INFO:root:[Bot] 2 groups detected

However, this

DEBUG:websockets.client:> GET /v1/receive/ HTTP/1.1

is not  reflected in the api container log...? The only hit I see to receive is after KeyboardInterrupt
Maybe thats the call thats getting stuck?
DEBUG:websockets.client:< PING '' [0 bytes]
DEBUG:websockets.client:> PONG '' [0 bytes]
^C^CTraceback (most recent call last):
  File "/home/randal/repos/signalbot/example/bot.py", line 26, in <module>
    main()
  File "/root/repos/signalbot/example/bot.py", line 23, in main
    bot.start()
  File "/usr/local/lib/python3.12/site-packages/signalbot/bot.py", line 172, in start
    self._event_loop.run_forever()
  File "/usr/lib64/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/lib64/python3.12/asyncio/base_events.py", line 1949, in _run_once
    event_list = self._selector.select(timeout)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/selectors.py", line 468, in select
    fd_event_list = self._selector.poll(timeout, max_ev)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt

If I connect postman to the v1/receive /<botNumber> websocket it looks good, but I don't know what to send in order to get useful data back from it.
In native mode I can see new messages and mark them read.

It was an issue with the cli in json-rpc mode fixed in upstream bbernhard/signal-cli-rest-api#572


Display only name instead of displaying a picture from db when using stream function

Hi thank you for this cool library,
I wanted to ask how can I display only the name of the image instead of having a picture when a face is recognize when using the stream function?

You cannot do it as is. You should customize realtime.py.

thank you for the very quick response can you point me on how I can do that?

Disable these lines

https://github.com/serengil/deepface/blob/master/deepface/commons/realtime.py#L456
https://github.com/serengil/deepface/blob/master/deepface/commons/realtime.py#L507
https://github.com/serengil/deepface/blob/master/deepface/commons/realtime.py#L564
https://github.com/serengil/deepface/blob/master/deepface/commons/realtime.py#L623


Alias for # (number sign)

I feel like this might be my misunderstanding how keyd works, but it would be good to get some clarity. Here's my example config:
[ids]

*

[main]
3 = #

Now when I press 3, I get a pound sign: £. I'm guessing this is something to do with my underlying keyboard setup (UK) but nonetheless I kind of expected that whatever literal I put in an alias would be the thing I end up seeing. Any help understanding this would be much appreciated!

keyd operates at the level of the key code. It has no knowledge of your X layout, which converts key codes into key syms. On an ANSI US keyboard with a corresponding qwerty layout on X the two are the same, but they will differ in all other instances.
The keys on your keyboard may not actually correspond to keyd's internal names, which are based on a standard US ANSI board (and are the same names used in the kernel). You can discover the internal names of the codes the keys on your board produce by using keyd -m.
Broadly it looks something like this:
keyboard --------> kernel -------> keyd -------> Display Server (X/wayland)  -------> application
         scancode         keycode       keycode  (code->sym based on layout)  keysym

Thanks!

You can discover the internal names of the codes the keys on your board produce by using keyd -m.

I don't think this helps me here as, in the example of my config, it just shows the letter 3 as that's (correctly) the physical key that's being pressed.
Through xmodmap -pke I found out that AltGr + 3 should give me a # sign. Turns out my keyboard doesn't have AltGr so I've set capslock to do that:
[ids]

*

[main]
capslock = layer(capslock)

[capslock:G]

Hopefully that helps someone else, and I appreciate your quick response to point me in the right direction.

I don't think this helps me here as, in the example of my config, it just shows the letter 3 as that's (correctly) the physical key that's being pressed.

The best way to solve this problem is to use a qwerty layout and link the Xcompose file listed in the unicode section of the man page. This should make all generated key syms (including arbitrary unicode character) match their text representations in the config file.

Through xmodmap -pke I found out that AltGr + 3 should give me a # sign. Turns out my keyboard doesn't have AltGr so I've set capslock to do that:

AltGr is actually just the 'rightalt' keycode interpreted by your display server. If your keyboard really doesn't have one you can do ' = rightalt', but it would only be useful in conjunction with a non-us layout in your display server.
Instead I would favour something like this:
# Replace rightcontrol with your desired altgr surrogate
rightcontrol = layer(myAltGrLayer)

[myAltGrLayer]

# Requires symlinked xcompose file to work
3 = £
4 = *
5 = 😊
# etc..

which offets more flexibility.


Suggestion from the Elmo

Yeah that's your bit on the side to do
Next job is to have a list of all blueprints. Be able to select the ME levels. Will start with ships.
Then add them to a mineral calculator which you can then press a button and its transfers to the calculator
Remember, caps need modules making...

Half complete in the most recent build.
Working on actual capital ships now

It is done


chore(RingTheory/PowerSeries): simp golfing

Where possible:
simp --> simp only --> simp_rw --> rw
simpa --> simpa only

!bench

Thanks for your contribution! I'm in two minds about this PR, because there is a trade-off involved here:

proofs compiling faster means faster turn-around on CI and makes local development more pleasant
on the other hand, readability counts, and e.g. replacing one simp by a long simp only is strictly less readable

Hence, I wonder: did you have any particular reasons for removing these simps? (Or were you simple "replacing all you could? This being possible is useful information, but I'm not sure if the PR should land in the current form.)
As a first step, I've sent it to the benchmarking bot: if a file gets significantly faster, that is definitely useful information.

By the way: did you hear about the profiler flag? You can locally profile a file and see which parts are slow.
If a simp is pretty fast, replacing it by a longer/uglier simp only would be a net negative in my book.
If a simp is very slow, but a simp only is much faster, the calculus might change. (This might still be an occasion to investigate why the simp is slow and if e.g. some simp lemmas are missing or sub-optimally stated: that is a harder task, though, which requires knowing the surrounding library a bit.)
This PR contains some basic advice on how to use the profiler.

Thanks for info. The aim was to replace simp's but I understand now why some replacements may not be optimal. However, I think that even if a simp only is long, I like to see what lemmas were used, to get a feel of what is involved. So I don't think there are bad replacements.

Thanks for info. The aim was to replace simp's but I understand now why some replacements may not be optimal. However, I think that even if a simp only is long, I like to see what lemmas were used, to get a feel of what is involved. So I don't think there are bad replacements.

You can do the replacement locally! The question is what should get committed in mathlib.
My personal heuristic is that all simp lemmas are usually mathematically obvious enough - so any "interesting" steps will either be specified as explicit arguments or in separate lemmas. So, to me, I don't "lose" much by not all simp being explicit.

By the way: did you hear about the profiler flag? You can locally profile a file and see which parts are slow. If a simp is pretty fast, replacing it by a longer/uglier simp only would be a net negative in my book. If a simp is very slow, but a simp only is much faster, the calculus might change. (This might still be an occasion to investigate why the simp is slow and if e.g. some simp lemmas are missing or sub-optimally stated: that is a harder task, though, which requires knowing the surrounding library a bit.)
This PR contains some basic advice on how to use the profiler.

Let me add: there are many places in mathlib which could probably be sped up by local changes like this; if you're looking for these, help would certainly be welcome.

Well, the results from the bot are just discouraging. I did not expect this. In future, I will only submit what shows clear improvements with profiler, and remains readable.


Add Geolocation Data to Hosts.csv

💡 Summary
Please add Geolocation data to the host.csv file embedded within the weekly vulnerability scanning report.
Motivation and context
Add geolocation data for IPs in to hosts.csv file so stakeholders can understand which IPs are showing up where on the report map.
Implementation notes
Believe an update may be needed here: https://github.com/cisagov/cyhy-reports/blob/develop/cyhy_report/customer/generate_report.py
Acceptance criteria
How do we know when this work is done?

[ ] hosts.csv file will contain the geolocation data

Hey @mcdonnnj we are capturing all of the items from JIRA prior to working them. The code snippets above are from a developer that was previously on our team.

Hey @mcdonnnj we are capturing all of the items from JIRA prior to working them. The code snippets above are from a developer that was previously on our team.

@KeithBonesJr That's fine I just wanted to point out that the source data used in the code snippet does not contain the data that is desired. I don't believe the data that is desired is ever pulled in for report generation as I don't believe any HostDocs (where geolocation information about hosts is stored) are ever retrieved.

@mcdonnnj  going through and cleaning up a few of our issues now and removing code suggestions as well as unassigning our team members if they are not working to submit a PR for you all on the issue.


DNS Zone list Records

A DNS zone object must be able to list the records belonging to the zone. The records can be filtered by name and type. A maximum number of records to return can be set. The returned records can be paginated with a token. This will require a Record::List class.

Regarding:

The records can be filtered by name and type.

I am planning to do this via the API method's optional params name AND type. But I happened to notice that the gcloud-node implementation does its filtering client-side. @callmehiphop Do you have any background for us on this? Just thought I'd ask.

I believe we went with client-side filtering to allow the user to provide multiple types to filter by, where as the upstream API looks like it only allows you to filter by a single type. Obviously it's not very efficient if the user only specifies a single type to filter by.. maybe @stephenplusplus can elaborate why we went this route?

Supporting multiple types is exactly what @blowmage guessed. Just thought I'd ask in case there was more to the story. Thanks.

"Restricts the list to return only records of this type. If present, the "name" parameter must also be present. (string)"

It was this requirement that made it pretty inconvenient for a user to "just get the A records" or "mail records" etc, since all of their fully qualified domain names would be different.

Thanks @stephenplusplus!

zone.records.map { |r| ["A", "AAAA"].include? r.type }

The Zone#records method as implemented now allows name and type to be passed in as optional parameters. I think these two should be promoted to named parameters to reflect their importance for querying records.
class Zone
  def records name = nil, type = nil, options = {}
    # ...
  end
end

The current signature is:
class Zone
  def records options = {}
    # ...
  end
end


wrong schema generation when using struct embedding

To Reproduce
package main

import "github.com/go-fuego/fuego"

type Inner struct {
	InnerField string `validate:"required"`
}

type Outer struct {
	Inner
	OuterField string `validate:"required"`
}

func main() {
	s := fuego.NewServer()

	fuego.Get(s, "/", func(c fuego.ContextNoBody) (Outer, error) {
		return Outer{}, nil
	})

	s.Run()
}

Expected behavior
Both InnerField and OuterField are marked as required. Instead only, the OuterField keeps its "required" tag.
Screenshots

Framework version: v0.14.0
Go version: 1.23.1
Additional context
Huge thanks for your framework, it's really well designed <3

Thanks for the report ! We'll be working on it

can I submit a PR for this?


migrate to Null Saftey

@nickpatrick it would be nice to put this in the pre-release lane on pub.dev at least.

Thanks @JoDeveloper ! I just merged your work directly into master. Closing this PR.


let' keep info about properties file as preferred integration approach with zebrunner

carina historically operates with properties files which values might be encrypted etc. let's update https://zebrunner.github.io/carina/zebrIntegration/ documentation to provide information for agent.properties instead of yaml by default.
Also it has sense to move all kind of integrations into the separate block where we can discuss recommended approaches also for saucelabs, testingbot a shub providers, testrail, wray as TCM etc.

done. during the testing please verify that on carina do site https://zebrunner.github.io/carina/

article moved under the Integration->Zebrunner page
old one Integration with Zebrunner on high level removed
banner carina+zebrunner refers to https://zebrunner.com/
steps describe integration for both PRO and CE versions together
default example steps describe approach with agent.properties file
all links are valid


HELP: Test the API's

When I attempt to Test the API's as stated in: https://serverless-stack.com/chapters/test-the-apis.html
Specifically this command:
npx aws-api-gateway-cli-test \<EMAIL_ADDRESS>\ --password='Passw0rd!' \ --user-pool-id='YOUR_COGNITO_USER_POOL_ID' \ --app-client-id='YOUR_COGNITO_APP_CLIENT_ID' \ --cognito-region='YOUR_COGNITO_REGION' \ --identity-pool-id='YOUR_IDENTITY_POOL_ID' \ --invoke-url='YOUR_API_GATEWAY_URL' \ --api-gateway-region='YOUR_API_GATEWAY_REGION' \ --path-template='/notes' \ --method='POST' \ --body='{"content":"hello world","attachment":"hello.jpg"}'
After filling in the required info I'm getting  this error:
npx: installed 106 in 2.889s Authenticating with User Pool Getting temporary credentials Making API request { status: 404,   statusText: 'Not Found',   data:    { message:       'No method found matching route notes%E2%80%98notes%E2%80%99 for http method POST.' } }
PLEASE HELP.

It’s been solved! Thank you for updating me though!
…
Sent from my iPhone
On Jan 25, 2019, at 6:52 PM, Jay V @.***> wrote: Hey there, do you mind posting this here - https://discourse.serverless-stack.com/t/comments-for-test-the-apis/122 We can help you there. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

How did you solve it!? I got the same error..

How did you solve it!? I got the same error.. x2 :cry:

It’s been solved! Thank you for updating me though!
…
Sent from my iPhone
On Jan 25, 2019, at 6:52 PM, Jay V @.***> wrote: Hey there, do you mind posting this here - https://discourse.serverless-stack.com/t/comments-for-test-the-apis/122 We can help you there. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

How did you solve it!? I got the same error..

@abhinavjonnada82 could u solve the error ? I am facing the same issue again :(


Add ExportAssignment

As title.

This is a breaking change because .getExports() on source file is going to be renamed to getExportDeclarations()

.getExportDeclarations() doesn't return anything now
while getExportedDeclarations() returns correctly by Nodes

@gp187 can you show an example of it not returning? The unit tests show it returning export declarations (ex. export * from "./file"; export { somethingElse } from "./otherFile";)


latent_dim not right?

Hi, thanks for sharing the code. However, the excution failed using the mitbih data with error message complaining the dimension mismatch.
I think the latent_dim when initialize gen_net should be args.latent_dim instead of 100.
gen_net = Generator(seq_len=187, channels=1, num_classes=5, latent_dim=100, data_embed_dim=10,
label_embed_dim=10 ,depth=3, num_heads=5,
forward_drop_rate=0.5, attn_drop_rate=0.5)
Could you please help to confirm this?

Hi, the args.latent_dim was set to 100 in all my experiments. So they are both correct.


#2650 - Cancel Future Disbursements if COE is declined (Bug)

Student Application in Enrollment status waiting for the COE approval.

Student Application when the first COE is declined, the message for the first COE was adjusted.

Completed Student Application when the second COE is declined.

Good work @andrewsignori-aot . Just one minor comment.


fix: setting AutoComplete="off" attribute has no effect in FluentTextField

🐛 Bug Report

In the FluentTextField component setting the AutoComplete attribute to "off" has no effect. In other words, autocomplete remains enabled.
💻 Repro or Code Sample

Create a FluentTextField component
Set AutoComplete attribute to "off"
Set Id attribute to "foo" (in the documentation it says that the Id attribute is necessary for AutoComplete to work)

🤔 Expected Behavior

Autocomplete should turn off.
😯 Current Behavior

Autocomplete stays on.
💁 Possible Solution

When AutoComplete is set to "off", add the autocomplete="off" attribute on the underlying input component. Doing that by hand in the developer tools fixes the issue - this also shows that it's a bug with the FluentUI library rather than with Chrome ignoring the autocomplete attribute.
🔦 Context

I'm building a large app with lots of input components where having suggestions relating to data entered previously is not helpful and hides custom dropdown menus.
🌍 Your Environment

OS & Device: Windows 11 on PC
Browser: Google Chrome Version 116.0.5845.188 (Official Build) (64-bit)
.NET: net6.0;net7.0
Microsoft.Fast.Components.FluentUI: 3.0.1

You need to provide an Id. Dont know why, but, after that, it works

See #680. We need to add the attribute with Javascript ourselves because the underlying web component does not support it yet. For the script to work, we need the I'd to find the component


Setting crs parameter for arc_select() does not work as expected

When using  arc_select() to access a layer, I found that setting the crs parameter returns a warning (st_crs<- : replacing crs does not reproject data; use st_transform for that) and silently fails to transform the data into the supplied coordinate reference system:
library(arcgislayers)

url <- "https://services1.arcgis.com/UWYHeuuJISiGmgXx/arcgis/rest/services/Police_District/FeatureServer/0"

data <- url |>
  arc_open() |>
  arc_select(crs = 2804)
#> Warning: `multi_req_perform()` was deprecated in httr2 0.3.0.
#> ℹ Please use `req_perform_parallel()` instead.
#> ℹ The deprecated feature was likely used in the arcgislayers package.
#>   Please report the issue to the authors.
#> This warning is displayed once every 8 hours.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
#> generated.
#> Warning: st_crs<- : replacing crs does not reproject data; use st_transform for
#> that

sf::st_crs(data)
#> Coordinate Reference System:
#>   User input: EPSG:2248
#>   wkt:
#> PROJCRS["NAD83 / Maryland (ftUS)",
#>     BASEGEOGCRS["NAD83",
#>         DATUM["North American Datum 1983",
#>             ELLIPSOID["GRS 1980",6378137,298.257222101,
#>                 LENGTHUNIT["metre",1]]],
#>         PRIMEM["Greenwich",0,
#>             ANGLEUNIT["degree",0.0174532925199433]],
#>         ID["EPSG",4269]],
#>     CONVERSION["SPCS83 Maryland zone (US Survey feet)",
#>         METHOD["Lambert Conic Conformal (2SP)",
#>             ID["EPSG",9802]],
#>         PARAMETER["Latitude of false origin",37.6666666666667,
#>             ANGLEUNIT["degree",0.0174532925199433],
#>             ID["EPSG",8821]],
#>         PARAMETER["Longitude of false origin",-77,
#>             ANGLEUNIT["degree",0.0174532925199433],
#>             ID["EPSG",8822]],
#>         PARAMETER["Latitude of 1st standard parallel",39.45,
#>             ANGLEUNIT["degree",0.0174532925199433],
#>             ID["EPSG",8823]],
#>         PARAMETER["Latitude of 2nd standard parallel",38.3,
#>             ANGLEUNIT["degree",0.0174532925199433],
#>             ID["EPSG",8824]],
#>         PARAMETER["Easting at false origin",1312333.333,
#>             LENGTHUNIT["US survey foot",0.304800609601219],
#>             ID["EPSG",8826]],
#>         PARAMETER["Northing at false origin",0,
#>             LENGTHUNIT["US survey foot",0.304800609601219],
#>             ID["EPSG",8827]]],
#>     CS[Cartesian,2],
#>         AXIS["easting (X)",east,
#>             ORDER[1],
#>             LENGTHUNIT["US survey foot",0.304800609601219]],
#>         AXIS["northing (Y)",north,
#>             ORDER[2],
#>             LENGTHUNIT["US survey foot",0.304800609601219]],
#>     USAGE[
#>         SCOPE["Engineering survey, topographic mapping."],
#>         AREA["United States (USA) - Maryland - counties of Allegany; Anne Arundel; Baltimore; Calvert; Caroline; Carroll; Cecil; Charles; Dorchester; Frederick; Garrett; Harford; Howard; Kent; Montgomery; Prince Georges; Queen Annes; Somerset; St Marys; Talbot; Washington; Wicomico; Worcester."],
#>         BBOX[37.97,-79.49,39.73,-74.97]],
#>     ID["EPSG",2248]]

Created on 2023-11-10 with reprex v2.0.2

actually, I lied. The CRS is properly assigned and in collect_layer() the CRS is overwritten! This shuold only be done if the crs is NA.

@elipousson please reinstall from the main branch and let me know if the issue is resolved for you! :)

Confirmed that the new version works just fine! Thanks for the quick fix.


[BACKLOG-33326] Adding a variable to the spoon.bat script to manage t…

…he winutils.exe program

added %HADOOP_HOME% to spoon.bat

:white_check_mark: Build finished in 3m 7s
Build command:
mvn clean verify -B -e -Daudit -amd -pl \
assemblies/core/static,assemblies/static

:exclamation: No tests found!
:information_source:  This is an automatic message


Inner scroll for search result container

We need to add a scroll to the container that displays search results. Otherwise, when the result list is too long, users can't see the bottom items of the list.

Hello! 👋 Could you please check my pull request?


Collaborator status

Can you add myself, @adam-lynch, @suprememoocow, @4ver as collaborators to the project please?

Hi guys, any update on this? :smile:

The invitations are pending...should I remove them and try again?

Thanks, got it this time :smile:

I didn't

@adam-lynch What about now?

@kevinranks yep, thanks