Error while building runtime lib x86 add_subdirectory given source "kaldi" which is not an existing directory.

(wenet) [root@localhost build]# build && cd build && cmake -DINTTYPES_FORMAT:STRING=C99 .. && cmake --build .
-bash: build: command not found
(wenet) [root@localhost build]# cd ..
(wenet) [root@localhost x86]# rm -rf build
(wenet) [root@localhost x86]# mdir build && cd build && cmake -DINTTYPES_FORMAT:STRING=C99 .. && cmake --build .
-bash: mdir: command not found
(wenet) [root@localhost x86]# mkdir build && cd build && cmake -DINTTYPES_FORMAT:STRING=C99 .. && cmake --build .
-- The C compiler identification is GNU 5.2.0
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Populating gflags
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/ASRT/wenet-main/runtime/server/x86/fc_base/gflags-subbuild
[100%] Built target gflags-populate
CMake Warning (dev) at fc_base/gflags-src/CMakeLists.txt:94 (project):
Policy CMP0048 is not set: project() command manages VERSION variables.
Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
command to set the policy and suppress this warning.
The following variable(s) would be set to empty:
PROJECT_VERSION
PROJECT_VERSION_MAJOR
PROJECT_VERSION_MINOR

This warning is for project developers.  Use -Wno-dev to suppress it.
-- Looking for C++ include unistd.h
-- Looking for C++ include unistd.h - not found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - not found
-- Looking for C++ include inttypes.h
-- Looking for C++ include inttypes.h - not found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - not found
-- Looking for C++ include sys/stat.h
-- Looking for C++ include sys/stat.h - not found
-- Looking for C++ include fnmatch.h
-- Looking for C++ include fnmatch.h - not found
-- Looking for strtoll
-- Looking for strtoll - not found
-- Looking for strtoq
-- Looking for strtoq - not found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - not found
-- Check size of pthread_rwlock_t
-- Check size of pthread_rwlock_t - failed
-- Populating glog
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/ASRT/wenet-main/runtime/server/x86/fc_base/glog-subbuild
[100%] Built target glog-populate
CMake Warning at fc_base/glog-src/CMakeLists.txt:51 (find_package):
By not providing "Findgflags.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "gflags", but
CMake did not find one.
Could not find a package configuration file provided by "gflags" (requested
version 2.2.0) with any of the following names:
gflagsConfig.cmake
gflags-config.cmake

Add the installation prefix of "gflags" to CMAKE_PREFIX_PATH or set
"gflags_DIR" to a directory containing one of the above files.  If "gflags"
provides a separate development package or SDK, be sure it has been
installed.
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for glob.h
-- Looking for glob.h - found
-- Looking for libunwind.h
-- Looking for libunwind.h - not found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for pwd.h
-- Looking for pwd.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for sys/syscall.h
-- Looking for sys/syscall.h - found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/utsname.h
-- Looking for sys/utsname.h - found
-- Looking for syscall.h
-- Looking for syscall.h - found
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Looking for ucontext.h
-- Looking for ucontext.h - found
-- Looking for unwind.h
-- Looking for unwind.h - found
-- Looking for C++ include ext/hash_map
-- Looking for C++ include ext/hash_map - not found
-- Looking for C++ include ext/hash_set
-- Looking for C++ include ext/hash_set - not found
-- Looking for C++ include ext/slist
-- Looking for C++ include ext/slist - not found
-- Looking for C++ include tr1/unordered_map
-- Looking for C++ include tr1/unordered_map - not found
-- Looking for C++ include tr1/unordered_set
-- Looking for C++ include tr1/unordered_set - not found
-- Looking for C++ include unordered_map
-- Looking for C++ include unordered_map - not found
-- Looking for C++ include unordered_set
-- Looking for C++ include unordered_set - not found
-- Check size of unsigned int16
-- Check size of unsigned int16 - failed
-- Check size of u_int16_t
-- Check size of u_int16_t - failed
-- Check size of uint16_t
-- Check size of uint16_t - failed
-- Looking for dladdr
-- Looking for dladdr - not found
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for pread
-- Looking for pread - found
-- Looking for pwrite
-- Looking for pwrite - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for sigaltstack
-- Looking for sigaltstack - found
-- Performing Test HAVE_NO_DEPRECATED
-- Performing Test HAVE_NO_DEPRECATED - Failed
-- Performing Test HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for get_static_proc_name in unwind
-- Looking for get_static_proc_name in unwind - not found
-- Looking for UnDecorateSymbolName in dbghelp
-- Looking for UnDecorateSymbolName in dbghelp - not found
-- Performing Test HAVE___ATTRIBUTE
-- Performing Test HAVE___ATTRIBUTE - Success
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_DEFAULT
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_DEFAULT - Success
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_HIDDEN
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_HIDDEN - Success
-- Performing Test HAVE___BUILTIN_EXPECT
-- Performing Test HAVE___BUILTIN_EXPECT - Success
-- Performing Test HAVE___SYNC_VAL_COMPARE_AND_SWAP
-- Performing Test HAVE___SYNC_VAL_COMPARE_AND_SWAP - Success
-- Performing Test HAVE___DECLSPEC
-- Performing Test HAVE___DECLSPEC - Failed
-- Performing Test STL_NO_NAMESPACE
-- Performing Test STL_NO_NAMESPACE - Failed
-- Performing Test STL_STD_NAMESPACE
-- Performing Test STL_STD_NAMESPACE - Failed
-- Performing Test HAVE_USING_OPERATOR
-- Performing Test HAVE_USING_OPERATOR - Failed
-- Performing Test HAVE_NAMESPACES
-- Performing Test HAVE_NAMESPACES - Failed
-- Performing Test HAVE_GCC_TLS
-- Performing Test HAVE_GCC_TLS - Failed
-- Performing Test HAVE_MSVC_TLS
-- Performing Test HAVE_MSVC_TLS - Failed
-- Performing Test HAVE_CXX11_TLS
-- Performing Test HAVE_CXX11_TLS - Failed
-- Performing Test HAVE_ALIGNED_STORAGE
-- Performing Test HAVE_ALIGNED_STORAGE - Failed
-- Performing Test HAVE_LOCALTIME_R
-- Performing Test HAVE_LOCALTIME_R - Failed
-- Populating googletest
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/ASRT/wenet-main/runtime/server/x86/fc_base/googletest-subbuild
[100%] Built target googletest-populate
-- Found PythonInterp: /root/anaconda3/envs/wenet/bin/python (found version "3.8.10")
-- Populating boost
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/ASRT/wenet-main/runtime/server/x86/fc_base/boost-subbuild
[100%] Built target boost-populate
-- Populating libtorch
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/ASRT/wenet-main/runtime/server/x86/fc_base/libtorch-subbuild
[100%] Built target libtorch-populate
-- Found Torch: /mnt/ASRT/wenet-main/runtime/server/x86/fc_base/libtorch-src/lib/libtorch.so
CMake Error at CMakeLists.txt:127 (add_subdirectory):
add_subdirectory given source "kaldi" which is not an existing directory.
-- Configuring incomplete, errors occurred!
See also "/mnt/ASRT/wenet-main/runtime/server/x86/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/ASRT/wenet-main/runtime/server/x86/build/CMakeFiles/CMakeError.log".

Windows does not support symlink by default.
这篇公众号推送末尾有相关解决方法：https://mp.weixin.qq.com/s/owUZAguxqV3ZcfxhU6XFxg

same error, have you soved?

kaldi is a symbol link instead of directory. Windows does not support symbol link by default.

copy the kaldi folder from the core folder
change the default settings of Windows

kaldi is a symbol link instead of directory. Windows does not support symbol link by default.

copy the kaldi folder from the core folder, or
change the default settings of Windows

Thanks! But I compiled it under linux, and the project was also directly cloned in linux by git clone?

kaldi is a symbol link instead of directory. Windows does not support symbol link by default.

copy the kaldi folder from the core folder, or
change the default settings of Windows

Thanks! But I compiled it under linux, and the project was also directly cloned in linux by git clone?

Solved! It is because I cloned the project under windows and then copied it into linux. Directly clone the projrct in linux can avoid this issue. Thanks again.


Add functional Diablo Valley College scraper

Pretty straightforward.

Turns out a GET request to http://www3.dvc.edu/org/info/schedules/course-outline-results.htm will return all of the results, so this scraper isn't necessary.


Leaking API Token Secret on Auth Failure

Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version
Terraform v0.12.20 - but I suspect this will affect any Terraform version.
$> ./terraform version
Terraform v0.12.20

Your version of Terraform is out of date! The latest version
is 0.13.5. You can update by downloading from https://www.terraform.io/downloads.html
Affected Resource(s)
N/A - this appears to be a provider issue or an issue with the github.com/atlassian/go-artifactory/v2/artifactory client implementation when the provider invokes its configure function and attempts to ping Artifactory
Terraform Configuration Files
# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file.

terraform {
  required_version = "~> 0.12.20"
}

provider "artifactory" {
  url      = "https://<artifactory URL>/artifactory"
  api_key  = "this-is-a-secret-key"
}

data "artifactory_fileinfo" "test" {
  repository = "terraform"
  path       = "modules/foreman-subnet/foreman-subnet_v1.0.0.tar.gz"
}

Debug Output
Panic Output
Expected Behavior
If the provider encounters an authentication failure, I expect the provider to fail and cause a halt in Terraform execution. However, the API token should not be dumped back to console - the token should remain hidden and the provider only displays an indication of a bad token (possibly masking token details if it absolutely must be dumped?). Something like this:
GET https:///artifactory/api/system/ping: 403 [{Status:403 Message:Bad props auth token}]
on .terraform/modules/docker-terraform-test/providers.tf line 7, in provider "artifactory":
7: provider "artifactory" {
Actual Behavior
The provider fails and dumps the token in plaintext to the console. This is a huge security issue causing us to pull/revoke this provider from our internal registry and redo compromised credentials.
GET https:///artifactory/api/system/ping: 403 [{Status:403 Message:Bad props auth token: apiKey=}]
on .terraform/modules/docker-terraform-test/providers.tf line 7, in provider "artifactory":
7: provider "artifactory" {
Steps to Reproduce
Copy configuration from Terraform Configuration Files - give it a nonsensical token for your instance
$> ls
terraform.tf

$> cat terraform.tf
terraform {
  required_version = "~> 0.12.20"
}

provider "artifactory" {
  url      = "https://<artifactory URL>/artifactory"
  api_key  = "this-is-a-secret-key"
}

data "artifactory_fileinfo" "test" {
  repository = "terraform"
  path       = "modules/foreman-subnet/foreman-subnet_v1.0.0.tar.gz"
}

#initialize Terraform
$> terraform init

Initializing the backend...

Initializing provider plugins...

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
attempt to plan the project
$> terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
Error: GET https://<artifactory URL>/artifactory/api/system/ping: 403 [{Status:403 Message:Bad props auth token: apiKey=this-is-a-secret-key}]

  on terraform.tf line 5, in provider "artifactory":
   5: provider "artifactory" {
Important Factoids
This issue does not occur when using username/password auth. It appears to only occur on API key. It does not matter if this API key is specified via env vars or statically configured.

GET https://<artifactory URL>/artifactory/api/system/ping: 401 [{Status:401 Message:Bad credentials}]
  on .terraform/modules/docker-terraform-test/providers.tf line 88, in provider "artifactory":
  88: provider "artifactory" {
References
#0000

see this ticket
This is a non-issue. Exposing a useless credential for debug is not a cause for alarm


SAK-46714 - Remove LTI13_PLATFORM columns from LTI Tool Model in Sakai 25

The conversion script to drop six columns is an attachment in the JIRA.


Progression bar

Hello developpers !
Since the questions are very simple I would like to add a timer to limit the time of reflexion
I would need a bar of progression to show the amount of time to answer, lets say 10 seconds per question is fine.
Thank you!

I enhanced your QuizGame by adding a 10-second timer for each question using Python and the curses library. This involved displaying a real-time progress bar, updating continuously without waiting for user input, and ensuring the timer visibly reaches zero before alerting "Time's up!" and moving to the next question. This addition makes the game more challenging and engaging.


search party: implement onChange

The puzzle 1-d1c6a30c from #1 has to be resolved:
https://github.com/codeforthailand/election-live/blob/c414ed1dcd9170a713cfc7aa4496b25e9f695349/src/components/ZonePartyView.js#L62-L62
The puzzle was created by Pankamol Srikaew on 23-Mar-19.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

Working on this

The puzzle 1-d1c6a30c has disappeared from the source code, that's why I closed this issue.


Null data when filtering all table

Hi
Whe use the
tableViewFilter.set(filterKeyword);
my data value from CellModel is null, causing a NullPointerException when trying to return for getFilterableKeyword()
id value from CellModel is 1-0
It does not happen when the column is set.
Greetings

Edit:
Solved. Just ad null checker in data and works perfect.

@MagoMtz can you close this issue, as you found a solution to your problem?


Keycloak RBAC fix typo

/lgtm

failure is unrelated to the change:
TIMEDOUT] [multi-platform-build-service-suite Multi Platform Controller E2E tests] ibm system z dynamic allocation when the Component with multi-platform-build is created [It] that PipelineRun completes succes


[docs] Update customized timeline demo

Updated customized timeline demo as discussed in #21735:

Removed Paper

Vertically Centered content

Renamed CustomizedTimeline to ComplexTimeline

[x] I have followed (at least) the PR section of the contributing guide.

I see that argos failed, but that is expected when changes made to demos, right?

@mageprincess Well done :)


Support Docco style literate code

It would be great if you could generate Docco style literate formatting of code.   I know you can already use the fsx generator on fs files but it would be great to have this option.  marginalia is a clojure example which also supports mathjax which would be another great feature.

Can we close old feature suggestions like this please?

I'm generally happy to keep feature suggestions open, but this one needs to be more clear before we can leave it as up-for-grabs, so closing for now.


git 2.36 installCheck uses LD_PRELOAD

https://github.com/git/git/commit/131b94a10a77e40eb3b3ba276d07fb663e220cd1 Git tests now try to LD_PRELOAD something from glibc >= 2.34. but on nix it can't find that file because it's not installed in the usual place. this results in a few failures such as this, in cases where the test suite checks an invocation's output:
'error' is not empty, it contains:
ERROR: ld.so: object 'libc_malloc_debug.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
not ok 8 - stash -p with split hunk
#
#		git reset --hard &&
#		cat >test <<-\EOF &&
#		aaa
#		bbb
#		ccc
#		EOF
#		git add test &&
#		git commit -m "initial" &&
#		cat >test <<-\EOF &&
#		aaa
#		added line 1
#		bbb
#		added line 2
#		ccc
#		EOF
#		printf "%s\n" s n y q |
#		git stash -p 2>error &&
#		test_must_be_empty error &&
#		grep "added line 1" test &&
#		! grep "added line 2" test
#

# failed 1 among 8 test(s)

Steps To Reproduce
Steps to reproduce the behavior:

be on a computer with older glibc in the base OS :skull:
disable build sandboxing :skull: :skull:
try to build git-minimal

Build log
just the excerpt of the failure:
t3904-stash-patch.sh ............................... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/8 subtests
t3701-add-interactive.sh ........................... Dubious, test returned 1 (wstat 256, 0x100)
Failed 3/70 subtests

Additional context

so like, is there a way we can rewrite that .so file reference to a nix store path? I notice that the libc_malloc_debug.so.0 file is properly included in nix's glibc release
https://github.com/git/git/blob/9c897eef06347cc5a3eb07c3ae409970ab1052c8/t/test-lib.sh#L551 there is this flag we can set to disable this part of the testing
I notice there's a disable_test system in our preInstallCheck, maybe we could disable these tests if we don't want to do either of the above

Notify maintainers

@primeos @wmertens @globin , if I may
Metadata
this env is too weird and I'm not allowed to have a copy of nixpkgs due to mentions of ethminer :skull: so I can't even run this command, sorry folks
$ nix-shell -p nix-info --run "nix-info -m"
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:13

I'm using nix as a package manager on Ubuntu (very old; thus the OS's own glibc doesn't have a libc_malloc_debug.so.0), using nixos-22.05 channel; custom store dir so everything is being built from source; sandboxing not working due to lack of permissions

@primeos @wmertens @globin I'm closing this as a wontfix since the same failures were reported in #174934 and @primeos didn't seem to think that one was actionable--but I'm hoping one of you can object if you think I'm drawing the wrong conclusion. Happy to reopen if anyone yells.
In case it helps, while evaluating this I confirmed:

the code introduced in the commit the OP linked is still there present upstream
we haven't already disabled t3701 or t3904

I just realized I didn't encounter this in the latest build of git from nixpkgs. I'm looking at the updated test-lib.sh, but I don't see anything that would change the behavior. but closing would be fine with me, thanks.


kde like windows resizinig and repositioning hit

Description of the new feature / enhancement
in kde UI shell you can resize and position any window just pressing cmd/win and mouse buttons.
Scenario when this would be used?
win + lmb - move
win + rmb - resize (zone sensitive)
win + mmb - move underneath
Supporting information
No response

/dup https://github.com/microsoft/PowerToys/issues/269


Always download latest version

The var hugot_version was outdated (it was v0.0.9 instead of v0.1.8) which made the script download Github's 404 page instead of the correct files. This edit removes the explicit hugot_version and instead downloads from the latest release.

Yeah understood. I've provided an over-engineered update that allows users to specify version for download and locations to save files. Feel free to discard and close issue if it's not helpful :smiley:

Thnaks for the PR, im much happier with version being an argument.  Will get it reviewed soon.

Merged, thanks!


Lack of frimware

Where is Linux image?
How do you install it to the board?
Board is on sale right now, but there is still no basic information.

I received my BullAnt kit today and I need the basic information to install it on my Voron 0.


config/attributes did not work

I got the following errors when putting the following config in the file ~/.config/git/attributes instead of ~/.config/git/config:
[diff "ansible-vault"]
    textconv = ansible-vault view
    # Do not cache the vault contents
    cachetextconv = false

[merge "ansible-vault"]
    name = ansible-vault merge driver
    driver = /usr/local/bin/ansible-vault-merge -- %O %A %B %P

"ansible-vault"] is not a valid attribute name: /Users/jeffparrish/.config/git/attributes:1
 is not a valid attribute name: /Users/jeffparrish/.config/git/attributes:2
 is not a valid attribute name: /Users/jeffparrish/.config/git/attributes:4
"ansible-vault"] is not a valid attribute name: /Users/jeffparrish/.config/git/attributes:6
 is not a valid attribute name: /Users/jeffparrish/.config/git/attributes:7
 is not a valid attribute name: /Users/jeffparrish/.config/git/attributes:8

Sorry, the docs weren't clear on where those config snippets were supposed to go. Should be better in 1.0.1


Support for dynamic rule configuration in repeating groups that are nested

What needs to be solved?
It should be possible to configure dynamic rules for components inside nested repeating groups.
How do you want it solved?

Configure the repeating group in the rule configuration with the nested group id and the input value configuration similar to existing dynamic
"7831f53f-7ede-4b27-941e-2643a92c1713": {
"selectedFunction": "showWhenPersonIsSelected",
"inputParams": {
"value": "A{0}.B{0}.X"
},
"selectedAction": "Show",
"selectedFields": {
"56edae00-478d-482a-8443-ec285c6a55f4": "B-dropdownY{0}"
},
"repeatingGroup": {
"groupId": "A",
"nestedGroupId": "B"
}
},

Alternative solutions

Additional context

@acn-dgopa this feature has now been implemented. Would you mind taking a look and verifying the need?
See related docs: https://docs.altinn.studio/nb/app/development/logic/dynamic/#nøstede-repeterende-grupper

Testet ok for mt-3 (Økokrim)

Closing issue as done.


Update to use new app name and host

IMPORTANT: DO NOT MERGE BEFORE MARCH 25, 2019
This updates the freckles Freckle/Noko API client to use the new URL for Freckle's/Noko's API V2 (api.nokotime.com). This new hostname will become active on or before March 25, 2019.
This PR also updates the gem version to 1.3.0.

@madrobby Thanks, you beat me to it.
I'll merge and get a new release out once the new hostname is live.

Merged, thanks! Available in v1.3.0


Add root-minimal

Following on from #5, it might be useful to have a root-minimal package to further improve install times. This would be especially useful for making CI faster.

Current proposal is to split this into two packages:

root-base The current package but with almost no dependencies (etc/allDict.pch removed)
root A meta-package that adds every dependency

Distributing etc/allDict.pch
root-base will depend on a feature called root_pch which is available in two variants that are also built in this feedstock:

default A package containing only etc/allDict.pch (~57 MB download)
gen-pch A package containing a post install hook that generates the PCH

root on Linux will depend on gen-pch to reduce the download size and ensure the paths inside the PCH are correct.
Incomplete list of dependencies that can be "optional":

compilers
python
pythia8
xrootd
fftw
openblas
numpy

@chrisburr I am working on similiar issue on a ROOT side. We already have a concept of root-base package which will consist of libCore, libCling and libRIO. All other ROOT components (e.g. packages) will be installable on the top of root-base and it will exactly resolve this issue. I will keep on posting on a progress of development.

You might also look at how Fedora packages ROOT. I don't know that you want to go that extreme but it splits things into literally 100 packages.

Hello,
I think that it is really practical to be able to install just a minimal version of ROOT from conda-forge
Is this already possible? How will that work?
Thanks!

Hi @delaossa! A minimal ROOT package is not currently available and I'm inclined to wait for @oshadura's developments with official support for modules rather than coming up with a "hacky" way of making this work.
Is there a reason the full package is not suitable for your use case? If there is I'm happy to think about an interim solution.

Hi @chrisburr and thanks for the quick answer. I haven't checked if the full package works yet because it is still installing (over an hour now). I guess and hope that it will work OK.
I agree that it is definitely preferable to wait for @oshadura if the solution is going to be more robust.
Should I understand that they are trying to achieve a modular ROOT also for the classic version?Cheers.

Assuming you have a good internet connection it should only take 5-10 minutes.
Can you share which commands you ran and which stage it is stuck on?

Hello, I confirm that the installation takes about 5 minutes in a local machine (my laptop).
For some reason when performing the installation in a cluster machine, the installation takes a way longer (around 12 minutes).

Do you know what filesystem your cluster uses? I suspect it is being slowed down by the IO performance.

Were the slow installs into a clean environment? I have been seeing really slow resolution of packages when using conda-forge recently related to the issues described here: https://www.anaconda.com/understanding-and-improving-condas-performance/


Fix license shield

Close #53.

Codecov Report

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

@@           Coverage Diff           @@
##           master      #54   +/-   ##
=======================================
  Coverage   93.26%   93.26%
=======================================
  Files           8        8
  Lines         282      282
  Branches       50       50
=======================================
  Hits          263      263
  Misses         12       12
  Partials        7        7

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 83ea19e...4115a57. Read the comment docs.


Rewrite functions to be year-agnostic

mainly teamscore.R and driver.R

also update output directory structure to better handle data from multiple years

Fixed in #9

Fixed in #9


bitcoin: add Pocket pubkey for payment requests

pocketbitcoin.com will be able to make payment requests, which will be useful for the Pocket sell feature in the BitBoxApp.

@davidknezic please confirm that this pubkey is correct. Thanks!


Invalid certifcate for https://<IP_ADDRESS>:6443

Hi,
first of all, thanks for k3s :+1:
Currently, I am testing it as an alternative to minikube :)
I see OpenSSL complaining about invalid certificate when accessing https://<IP_ADDRESS>:6443 with ca.crt extracted from kubectl get secrets ....
Reproduction:
Setup
$ docker-compose up -d --scale node=3
$ cp kubeconfig.yaml ~/.kube/config
$ kubectl get nodes # works great :+1:

Extract ca.crt
$ kubectl get secrets default-token-XXXXX -o go-template='{{index .data "ca.crt" | base64decode}}'  | tee ca.crt

Show issuer
$ openssl x509 -in ca.crt -noout -subject -issuer
subject=CN = k3s-token-ca@1549801496
issuer=CN = k3s-token-ca@1549801496

Show server certs
$ openssl s_client -showcerts -connect <IP_ADDRESS>:6443 < /dev/null &> apiserver.crt

depth=0 O = k3s-org, CN = cattle
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 O = k3s-org, CN = cattle
verify error:num=21:unable to verify the first certificate
verify return:1
CONNECTED(00000003)
---
Certificate chain
 0 s:/O=k3s-org/CN=cattle
   i:/O=k3s-org/CN=k3s-ca
-----BEGIN CERTIFICATE-----
MIIDCDCCAfCgAwIBAgIIR4ZQtTBbrXAwDQYJKoZIhvcNAQELBQAwIzEQMA4GA1UE
....
sy5YAOPhEVA6WESx1xWmdDpsAmvBFsdEPdP88pg8jHSB0tkZ9L7BIc/4X6+q0QPZ
1Ls9bSy5vEJUWoL/XY3UNDmP5ki9VkfWOBVHlWz1RIIeugZzFrD9fDiR11AxhtP3
l179G9cbE4GJ3nT7
-----END CERTIFICATE-----
---
Server certificate
subject=/O=k3s-org/CN=cattle
issuer=/O=k3s-org/CN=k3s-ca
---
No client certificate CA names sent
Peer signing digest: SHA512
Server Temp Key: X25519, 253 bits
---
SSL handshake has read 1353 bytes and written 269 bytes
Verification error: unable to verify the first certificate
---
New, TLSv1.2, Cipher is ECDHE-RSA-AES128-GCM-SHA256
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-AES128-GCM-SHA256
    Session-ID: EF5219395CABD1D9BDE462EAEFF21A7A6C350EF955978231E7A5CC4F504E6D3B
    Session-ID-ctx:
    Master-Key: KEY
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket:
    ........

    Start Time:<PHONE_NUMBER>
    Timeout   : 7200 (sec)
    Verify return code: 21 (unable to verify the first certificate)
    Extended master secret: no
---
DONE

Verifying cert fails
$ openssl verify -verbose -CAfile ca.crt apiserver.crt
O = k3s-org, CN = cattle
error 20 at 0 depth lookup: unable to get local issuer certificate
error apiserver.crt: verification failed

curl'ing fails with provided cert
$ curl -vv --cacert ca.crt  https://localhost:6443/
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 6443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: ca.crt
  CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (OUT), TLS alert, Server hello (2):
* SSL certificate problem: unable to get local issuer certificate
* Curl_http_done: called premature == 1
* stopped the pause stream!
* Closing connection 0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

curl'ing works with -k
$ curl -vv -k  https://localhost:6443/
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 6443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
*  subject: O=k3s-org; CN=localhost
*  start date: Feb 10 12:24:58 2019 GMT
*  expire date: Feb 10 12:24:58 2020 GMT
*  issuer: O=k3s-org; CN=k3s-ca
*  SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
> GET / HTTP/1.1
> Host: localhost:6443
> User-Agent: curl/7.52.1
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< Content-Type: application/json
< Www-Authenticate: Basic realm="kubernetes-master"
< Date: Sun, 10 Feb 2019 12:50:13 GMT
< Content-Length: 165
<
{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {

  },
  "status": "Failure",
  "message": "Unauthorized",
  "reason": "Unauthorized",
  "code": 401
* Curl_http_done: called premature == 0
* Connection #0 to host localhost left intact
}

Is anyone seeing similar behaviour?
It is very likely I am missing something. Hints/feedback is much appreciated :purple_heart:
Kind regards,
Peter

Also, when installing dashboard I also see errors when trying to access it.
Error: 'x509: certificate has expired or is not yet valid'
Trying to reach: 'https://<IP_ADDRESS>:8443/'

@splattael There's a bit of voodoo with the TLS that I have to explain. :6443 is the public API and is signed by a different CA then the internal https://kubernetes.default.  So the ca.crt given to service accounts will not work against the public :6443 address, that ca.crt only works against the internal kubernetes service.  So if you want the ca.crt to talk to :6443 then get it from the k3s.yaml that is generated or it's at /var/lib/rancher/k3s/server/tls/ca.crt.  If you want the ca.crt for the internal API you can get it from the secret as you've done or from /var/lib/rancher/k3s/server/token-ca.crt.

@ibuildthecloud Could you please provide steps on the host and agent sides (different nodes) to fix this issue?

@splattael There's a bit of voodoo with the TLS that I have to explain. :6443 is the public API and is signed by a different CA then the internal https://kubernetes.default. So the ca.crt given to service accounts will not work against the public :6443 address, that ca.crt only works against the internal kubernetes service. So if you want the ca.crt to talk to :6443 then get it from the k3s.yaml that is generated or it's at /var/lib/rancher/k3s/server/tls/ca.crt. If you want the ca.crt for the internal API you can get it from the secret as you've done or from /var/lib/rancher/k3s/server/token-ca.crt.

i could not connect succesfully with the certificate from  /var/lib/rancher/k3s/server/tls/ca.crt.
fwiw, there is not a single certificate in any of the directories, server or agent that allows connection to 6443 except the one inside the k3s.yaml

I'm having a similar issue. Running k3s on EC2, the apiserver certificate's SAN doesn't contain the public IP of the instance.
2019-03-04 08:44:05,839 ERROR Certificate did not match expected hostname: <IP_ADDRESS>. Certificate: {'subjectAltName': (('DNS', ''), ('IP Address', '<IP_ADDRESS>'), ('IP Address', '<IP_ADDRESS>')), 'notBefore': u'Mar  4 13:43:51 2019 GMT', 'serialNumber': u'573B3FF63D27F2AF', 'notAfter': 'Mar  3 13:44:05 2020 GMT', 'version': 3L, 'subject': ((('organizationName', u'k3s-org'),), (('commonName', u'cattle'),)), 'issuer': ((('organizationName', u'k3s-org'),), (('commonName', u'k3s-ca'),))}

It only contains localhost and a private ip address.

Running on macOS with Docker for Mac:
~/go/src/github.com/rancher/k3s $ kubectl --kubeconfig kubeconfig.yaml get node
Unable to connect to the server: x509: certificate is valid for , kubernetes, kubernetes.default, kubernetes.default.svc, kubernetes.default.svc., host.docker.internal, not localhost

Same problem here! Any news? I want to try k3s on my vps but is impossible without remote access!

Please let me know if the new --tls-san flag helps with these issues.

I hit this issue and was able to solve it by using the --tls-san flag: server ... --tls-san <external-ip>. Thanks @erikwilson!

@erikwilson many thanks! With version 0.3.0 and your option to the server all work fine!

The new cli flag is working for me as well, thanks for resolving this!

I'm also seeing the issue that the certificate from /etc/rancher/k3s/k3s.yaml (after base64 decoding) is different from /var/lib/rancher/k3s/server/tls/ca.crt and any other certificate in that directory.

I'm also seeing the issue that the certificate from /etc/rancher/k3s/k3s.yaml (after base64 decoding) is different from /var/lib/rancher/k3s/server/tls/ca.crt and any other certificate in that directory.

The same.

Running on macOS with Docker for Mac:
~/go/src/github.com/rancher/k3s $ kubectl --kubeconfig kubeconfig.yaml get node
Unable to connect to the server: x509: certificate is valid for , kubernetes, kubernetes.default, kubernetes.default.svc, kubernetes.default.svc., host.docker.internal, not localhost

I've got this issue after reboot the node few times... I reinstalled the K3S to get it working again... I'm using the v0.5.0 release.

the new version v0.7.0:
[root@(⎈ |default:default) sec-rbac]$ openssl verify -verbose -CAfile ca.crt apiserver.crt
apiserver.crt: OK
[root@(⎈ |default:default) sec-rbac]$ curl -vv --cacert ca.crt  https://server:6443/
*   Trying <IP_ADDRESS>...
* TCP_NODELAY set
* Connected to server (<IP_ADDRESS>) port 6443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: ca.crt
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Request CERT (13):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Certificate (11):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
*  subject: CN=cattle
*  start date: Jul 28 09:37:03 2019 GMT
*  expire date: Jul 27 09:37:31 2020 GMT
*  subjectAltName: host "server" matched cert's "server"
*  issuer: CN=k3s-server-ca@1564306623
*  SSL certificate verify ok.
> GET / HTTP/1.1
> Host: server:6443
> User-Agent: curl/7.61.1
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< Content-Type: application/json
< Www-Authenticate: Basic realm="kubernetes-master"
< Date: Sun, 28 Jul 2019 11:43:47 GMT
< Content-Length: 165
<
{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {

  },
  "status": "Failure",
  "message": "Unauthorized",
  "reason": "Unauthorized",
  "code": 401
* Connection #0 to host server left intact

@splattael

I generated a userKey by ca, with cluster-admin rbac permission.
bug got this:
kc --kubeconfig=koper.kubeconfig get pod
error: You must be logged in to the server (Unauthorized)

k3s server's log:
server_1    | E0728 19:15:27.324625       8 authentication.go:65] Unable to authenticate the request due to an error: x509: certificate signed by unknown authority

This should be fixed with v0.7.0 where we refactored the certs and moved from token-ca to server-ca:
[ 2019-08-24 00:29:35 ]
root🐮k3s-1:~$ kubectl get secrets default-token-srd6g -o go-template='{{index .data "ca.crt" | base64decode}}' > ca.crt
[ 2019-08-24 00:29:41 ]
root🐮k3s-1:~$ openssl x509 -in ca.crt -noout -subject -issuer
subject=CN = k3s-server-ca@1566604349
issuer=CN = k3s-server-ca@1566604349
[ 2019-08-24 00:29:52 ]
root🐮k3s-1:~$ openssl s_client -showcerts -connect <IP_ADDRESS>:6443 < /dev/null &> apiserver.crt
[ 2019-08-24 00:30:17 ]
root🐮k3s-1:~$ openssl verify -verbose -CAfile ca.crt apiserver.crt
apiserver.crt: OK
[ 2019-08-24 00:30:28 ]
root🐮k3s-1:~$ curl -vv --cacert ca.crt  https://localhost:6443/
*   Trying ::1:6443...
* TCP_NODELAY set
* Connected to localhost (::1) port 6443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: ca.crt
  CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Request CERT (13):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Certificate (11):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
*  subject: CN=cattle
*  start date: Aug 23 23:52:29 2019 GMT
*  expire date: Aug 22 23:52:31 2020 GMT
*  subjectAltName: host "localhost" matched cert's "localhost"
*  issuer: CN=k3s-server-ca@1566604349
*  SSL certificate verify ok.
> GET / HTTP/1.1
> Host: localhost:6443
> User-Agent: curl/7.65.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 401 Unauthorized
< Content-Type: application/json
< Www-Authenticate: Basic realm="kubernetes-master"
< Date: Sat, 24 Aug 2019 07:30:51 GMT
< Content-Length: 165
<
{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {

  },
  "status": "Failure",
  "message": "Unauthorized",
  "reason": "Unauthorized",
  "code": 401
* Connection #0 to host localhost left intact
}

Please re-open or create a new issue if there is still a problem @splattael

FYI: this worked for me on K3OS as well.
I added the following to cloud-init.
k3os:
  k3s_args:
    - server
    - "--tls-san=hostn.name.com"


Investigate whether search lambda (search_handler.py ) can be combined with api_handler.py

Is your idea related to a problem? Please describe.
After this potential change -  https://github.com/data-dot-all/dataall/pull/1236/. The search_handler and the api_handler have a lot of common code.
Describe the solution you'd like
Combine search_handler.py and api_handler.py without losing any performance. This will reduce the use of one lambda. Throttling should be checked as in this case both gql and the catalog search request would be coming on a single lambda
P.S. Don't attach files. Please, prefer add code snippets directly in the message body.

Absolutely, thanks @TejasRGitHub for opening the issue. I think we shall consider it for v2.7 :)


Implement library to convert a phone number into a locally formatted phone number

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

Upwork Posting: https://www.upwork.com/jobs/~0129906b4c8ea7c94b
We are implementing the structure for internationalization and localization.
As part of that, we need to implement a library (a single new file) to convert a phone number into a locally formatted phone number. You can check this PR that added this file which is related to this project.
This new library will expose 2 methods:

toLocalPhone(locale, number) which will get the localizationConfig.phoneCountryCode key from the translations, and if it matches the beginning of the number passed, it will remove it and return the rest
fromLocalPhone(locale, number) which will add the country code to the beginning of the number (if it is not there already)

You will need to add localizationConfig.phoneCountryCode to the en-EN and es-ES translation files. It should be a string without the + (so it would be "1" for en-EN and "34" for es-ES).
Please include JUnit tests for the added methods.
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/152151

I will create a single file library for your app. It will expose 2 methods. toLocalPhone and fromLocalPhone. The implementation will be according to the guidelines given above. These methods will get locale and number as arguments and will remove or add the country code depending upon the locale.

Hi,
I would love to work on this issue! My proposal is to do the following:

Expose toLocalPhone(locale, number) method: The method will get localizationConfig.phoneCountryCode from the translations, and if the countryCode matches the beginning of the number passed, the method will remove it from the number and return the rest.

So, for example, for toLocalPhone(‘es-Es’, ‘+34910604859’), the method will get phoneCountryCode from the localizationConfig.phoneCountryCode, and if the countryCode matches the beginning of the number passed (‘+34910604859’), it will remove it from the number (’+34’) and return (’910604859’).

Expose fromLocalePhone(locale, number): The method will add the country code to the beginning of the number if it is not already there:

So, for example, for fromLocalPhone(‘es-Es’, ‘910604859’), the method will get phoneCountryCode from the localizationConfig.phoneCountryCode, and add it to the beginning of the number if it’s already not there:

Add ‘+34’ to the beginning of given ‘910604859’ and return ‘+34910604859’
.

As such, we need to add localizationConfig.phoneCountryCode to the en-EN and es-ES translation files, which should be a string, meaning: “1” for en-EN and “34” for es-ES
I will add JSUnit methods to test the above two methods

@ahmedahtazaz I've sent an offer in Upwork and assigned you the issue so you can begin working on it!

Hello @Jag96,
I would love to work on this.
My proposal:

Add localizationConfig.phoneCountryCode to the translation files
Create localePhoneNumber.js in the libs directory that will  contain toLocalPhone and fromLocalPhone` functions
Export toLocalPhone(locale, number) which will get the localizationConfig.phoneCountryCode key from the translations, and if it matches the beginning of the number passed, it will remove it and return the rest
Export fromLocalPhone(locale, number) which will add the country code to the beginning of the number (if it is not there already)

Question:
What if a user is located in the US but decides to use Spanish as the language?
Can we consider allowing the user to choose the country, and default to the country of the locale?

@Jag96 sorry, I think my proposal came late

@Jag96 I have accepted your offer. Thanks a lot for assigning this issue to me.


[QUERY] How can we use configuration when registering an Azure client

Library name and version
Azure.Messaging.ServiceBus 7.17.5
Query/Question
Is there a way to register a new ServiceBusClient while depending on IServiceProvider when calling the builder.AddServiceBusClient*() methods?
I am trying to utilize the AddServiceBus* methods to register my client objects, but it does not appear there is an overload that will allow us to access IServiceProvider, am I missing something?
I am currently just doing:
serviceCollection.AddAzureClients(builder =>
{
    builder.AddClient<ServiceBusClient, ServiceBusClientOptions>((options, provider) =>
    {
        var config = provider.GetRequiredService<IOptions<MyConfigClass>>();
        ...
        return new ServiceBusClient(...);
    }
}

I would prefer to be able to use the builder.AddServiceBusClient* methods though, except there is no overload that will give me access to the provider object.
If I stick to the example above, will my instances still be cleaned up and managed properly for me?
Environment
No response

Hi @cjablonski76.   You are correct in that there is no overload that injects an IServiceProvider and the factory approach that you're using is the recommended way to do so.   The resulting factory is invoked on-demand and the resulting client instance is cached and cleaned up.
If your goal is to provide configuration to the client or overload its options, there are other more direct ways to do so.
For example, to create a client based on configuration, the recommended approach is:
var appBuilder = WebApplication.CreateBuilder(args);
var serviceCollection = appBuilder.Services;

serviceCollection.AddAzureClients(builder =>
{
    builder.AddServiceBusClient(appBuilder.Configuration.GetSection("ServiceBus");
}

Overriding client options can be done in the following way, if you'd like to avoid the factory:
var appBuilder = WebApplication.CreateBuilder(args);
var serviceCollection = appBuilder.Services;

serviceCollection.AddAzureClients(builder =>
{
    builder
        .AddServiceBusClientWithNamespace("<your_namespace>.servicebus.windows.net");
        .ConfigureOptions(options =>
        {
            var myOptions = new MyOptions();
            appBuilder.Configuration["MyOptions"].Bind(myOptions);

            options.TransportType = myOptions.ServiceBusTransportType;
        });
}

More discussion and examples can be found in Dependency injection with the Azure SDK for .NET.

@cjablonski76:

You're saying there's nothing wrong with the way I'm currently doing it though (i.e. with builder.AddClient<ServiceBusClient, ServiceBusClientOptions>)?

Correct.  There's nothing wrong with what you're currently doing, and it seems like the best approach for your specific scenario of not knowing the configuration that you want upfront.   What you're doing will register the client and ensure proper cleanup.

Awesome, thanks for the help!


object should not be able to add data to become data object.

object should not be able to add data to become data object.

@tenSunFree A data object is identical to a regular object but provides a default implementation of the toString() function that will print its name, removing the need to override it manually, and aligning behavior with a data class definition.
It is now the recommended approach for sealed class hierarchies.

References:

https://kotlinlang.org/docs/object-declarations.html#data-objects:~:text=Just like data,the data object
<EMAIL_ADDRESS>

I learned, thank you for sharing.


Fixes for issues #40 and #48

This PR contains fixes for issues #40 and #48, as proposed in the descriptions.
This includes some restructuring in the processing of distro release files.
Also, the distro release file dict now contains only those entries that were found (as opposed to all
entries with the empty string if no information was found). The users of accessor functions like id() or get*attr() see no change due to this, because they default non-existing entries to the empty string.
Finally, the distro ID found in the file name of the distro release file is no longer stored in self.dist, but as key 'id' in the distro release file dict. This seems to be more consistent, to me.
Note the change in expected test case results, when reviewing.

I assume you are talking about the release_file_pattern variable?
Of course they could become globals, but the reason I removed 'version' from the pattern used for searching the distro release file if not specified, is issue #48. if we think there are distro release files that end with 'version' and where there is no other release information, then we could also have 'version' in the pattern but special-case the debian_version case on Ubuntu. However I'd prefer not having 'version' and to wait for people finding a distro that needs support for 'version'.
I just added 'version' again this morning in a private version to double check this, and was wondering why the TestDistRelease did not surface the error of issue #48, and it turns out the reason is that this class does not have a testcase for Ubuntu. I will add one and will update the PR.
I don't see a particular reason for having 'version' in the pattern used for the case where the distro release file was specified by the user. I just did not remove it, because there was no issue similar to #48. I would not object to removing 'version' from this pattern as well.
For now, I'll update the PR with the Ubuntu test case, and I wait for your opinion on making the variables global, and about the use of 'version' in their patterns.

This time, I left the commits separate because the one that reordered the test methods would have convoluted the other changes quite a bit.
On commit eb15b3a:

I found that adding an Ubuntu testcase for the distro release files does not make sense, because debian_version in ubuntu14 should not really be considered a distro release file. Nevertheless, I have added that file for better testing.
Because the slackware-version file can be considered a distro release file, I added *version again to the pattern when the distro release file is searched, and moved the resulting single pattern definition into a global variable. I also moved the pattern for the distro release file content into a global variable.
I found that I had forgotten to add the support for ignoring certain generic or otherwise excluded distro release file names, and added that now.
The commit message details the changes.


[WIP] Experimental exports

[x] Separate exports for CJS/ES6
[x] Verify types work for both exports
[x] Verify bundle sizes are smaller for ES6 exports
[x] Proper minification
[x] Revisit scss config
[ ] Verify that components don't break in SSR
[ ] Verify that external modules are included where needed
[x] Verify peerDeps aren't accidentally included
[x] Change publish flow to publish experimental versions

Importing a single component:
ESM

CJS

Merging this with experimental, v0.11.0-beta.10


The system boots but nothing happens.

I figured out the installation, but now just nothing happens. There is a load on the video card, but transcription does not occur. What could be the problem?

Why didn't you use the print() function?

Вы написали и запустили .pyфайл сценария? Вы можете распечатать результаты, используя функцию print(). Если вы новичок в Python, вы можете сначала пройти базовое руководство по Python. Это не займет много времени!
Yes you are right! But I already figured it out, just didn’t understand where the transcription result is saved?

It's hard for me to help because I don't know your code.
for segment in segments:
    print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))

This is how you can see the results of transcribe.

Tell me please, I did not find a command how to output the finished text to a separate file without time codes?

Tell me please, I did not find a command how to output the finished text to a separate file without time codes?

Then you would only need to save segment.text separately.

Tell me please, I did not find a command how to output the finished text to a separate file without time codes?

Then you would only need to save segment.text separately.

what command can i do it? Please tell me, the truth is near! :)

with open('file.txt', 'w') as f:
    for segment in segments:
        f.write(f"{segment.text}\n")

Таким образом, вы можете сохранить результаты в текстовый файл.

What am I doing wrong please tell me.

I figured out the installation, but now just nothing happens. There is a load on the video card, but transcription does not occur. What could be the problem?

If Python is too complicated you can try: https://github.com/Purfview/whisper-standalone-win


An error happened when i use outline

My neovim veriosn is 0.8.1 on archlinux system.
The following error often happened when i use outline:

outline had refactor in version 0.2.3  see #586 . please wait for this pr merge.


Is it possible to move location of ClientApp folder (or even change it's name)?

I want to move the ClientApp folder up one level, so that it is not inside of the .Net folder structure.  (many reasons for this). I can not do this without losing the ability to set breakpoints in the ClientApp from within Visual Studio (2019). In fact, I have this problem even if I just change the name of "ClientApp". I do the following:

Create an app with "dotnet new angular"

Change name of the ClientApp folder to XClientApp

Make these changes in startup.cs:
 configuration.RootPath = "XClientApp/dist";
 ...
 spa.Options.SourcePath = "XClientApp";

Make this change in the project file:
 <SpaRoot>XClientApp\</SpaRoot>

The program continues to run if I press F5. But if I try to set a breakpoint via VS2019 in the Typescript code, I only see an open circle by the break point and the error "The breakpoint will not currently be hit. Breakpoint set but not yet bound."
BUT: If I (1) run the app with F5, (2) press F12 in the Chrome Browser, (3) set a break point using the Chrome Dev Tools, (4) hit & clear the break point, then breakpoints will start working in Visual Studio. But I don't want to go through this each time to get breakpoints working.
Is there any way around this issue?
I an using Visual Studio Pro 2019 Preview Version 16.3.0 Preview 2.0 and .Net Core 3.0.100-preview8-013656.
I already asked this question on stackoverflow:
https://stackoverflow.com/questions/57649009/vs2019-debugger-fails-after-renaming-clientapp-folder-in-dotnet-core-angular-app

@johnpankowicz it's the same team - they own the full experience.


Studio List - List shows deprecated studios

We should filter out deprecated studios from the studio list

It is fixed but not deployed!

@annakristinkaufmann has given feedback that this issues is still unresolved.


Search posts by title

When you have a lot of posts, find one of them is really complicated because you need to scroll down until find the post. This PR allows the user to search for a post by title. Possible fixed #687.
PS: I'm new on this, so my apologies if something is wrong. And sorry for my English too.

Thanks for submitting this @jamguz. I'll take a look and let you know what I think!


[Feature] Migrate to Next.js 13

Description
Next JS Provides better SEO and support for SSR that has its own advantages
Screenshots
No response
Checklist

[X] I have checked the existing issues
[X] I have read the [Contributing Guidelines]
[X] I have read the discussion tab thoroughly and got the project idea
[X] I am willing to work on this issue (optional)
[X] I am a GSSoC'23 contributor

@rohansx Please assign me this issue

@ManasMadan go for it
make sure all the functionalities remain same
and before migrating to nextjs try reading about refine
https://refine.dev/blog/next-js-pwa/
just read this and integrate refine too with nextjs

@k-deepak04 i guess someone else is working on refine

@k-deepak04 some one is also working on migration to tailwind issue #420

@k-deepak04 i guess someone else is working on refine issue #331

he is working from last week and hasn't given any update
it's better that if you can do this

@k-deepak04 Let me migrate the website to Next JS first then will work on Refine and tailwind implementation

@k-deepak04 some one is also working on migration to tailwind issue #420

@ManasMadan yes i know that
i'm talking about giving structure while migrating to next js
are you getting that?

@k-deepak04 What Structure ?

@k-deepak04 Let me migrate the website to Next JS first then will work on Refine and tailwind implementation

after that please make sure to integrate refine in the project

@k-deepak04 Yeah will work on refine after this

@k-deepak04 i think we should use the app router, because that way we can remove the components folder and instead keep all the components in the app/ directory.

The Components Would Be Kept in the same location they are used and for components used in multiple places we can have a components folder. I think this would be easy to maintain and scale as the application grows larger it will be easier to locate files

@ManasMadan okay

@ManasMadan any updates? till now what changes have you made? also, if you need any help in next js please do ping me am also working

@ManasMadan are you working on it or shall i close this?

@k-deepak04 i will be working on it. not well from the past few days if you want can assign this to someone else as my End Sem exams are coming

@k-deepak04 can you please label all the pr created by me as they are not showing up on the gsssoc 23 leaderboard

@ManasMadan i'll do that
your PR of this project that have labels are showing up?
As i'm unable to find my PR's

@k-deepak04 i have only 5 PR showing there on the leaderboard while have over 20 accepted

You can use this query
is:pr author:ManasMadan is:closed
On
https://github.com/pulls
To see my PR


UX: Sort plugin list output by plugin name

What this PR does / why we need it
This pull request sorts the plugin list output first by plugin name, and then by plugin target. Sorting the list by name and then target provides a better user experience for the end user by organizing the plugins in a consistent and easy to scan order.
Which issue(s) this PR fixes

Fixes #
Describe testing done for PR
Before the fix, the tanzu plugin list output was not sorted by the plugin's name and then target. After applying the fix, the plugins list output is now sorted by plugin name first, and then by target.

E2E tests are added.
Manual testing has done for tanzu plugin list, below is the output:
2.a) Before Fix: tanzu plugin list output:

2.b) After Fix: tanzu plugin list output:
You can see the plugins has been sorted by plugin name's, and the 'cluster' plugin has been sorted by target.

Manual testing has done for tanzu plugin search, below is the output:
3.a) Before fix: tanzu plugin search output:

3.b) After Fix: tanzu plugin search output:

Release note

The `tanzu plugin list` and `tanzu plugin search` outputs are now sorted by plugin names instead of by targets.

Additional information
Special notes for your reviewer

The PR also improves the list order for tanzu plugin search. Could you mention that in the PR description and especially in the release notes?
Could you make the release notes more clear? The current message: "The tanzu plugin list output is now sorted by plugin names and targets." does not convey what changed for someone not close to the CLI. How about saying "The tanzu plugin list and tanzu plugin search outputs are now sorted by plugin names instead of by targets." Note that I don't think you need to mention the second sort criteria: the users will mostly pay attention to the main sorting criteria.
The code LGTM Thanks!

@marckhouzam thank you for suggestion, actually i though of addressing the tanzu plugin search, but seems same sort code is being used for both, so i have added e2e tests for both use cases.
Yes i have updated the release note. thanks.


feat: add support for dagger pipeline

Codecov Report

Merging #1 (f31fdc0) into main (3b1ccf0) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main        #1   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines           11        11
=========================================
  Hits            11        11


Allows baking subclasses of commands into instances of the subclass

I subclassed sh.Command to finally add command monitoring as initially mentioned in amoffat/sh#138, and need this for my subclass to survive baking !

Cool, I see no problems with this.  It'll make it into the next release.  Thanks!


Release/1.0.0

package updates

Coverage decreased (-0.4%) to 93.333% when pulling 3bd5b4a620f108fb039533968626173caa36c625 on release/1.0.0 into<PHONE_NUMBER>3ce4c9edafd25dabe503a0944350f7 on master.


 Also use this for determining if to deduplicate the X chromosome or not, and for the .sex property.

Left a comment - otherwise looks good!


[no-master] Add an option -P:scalajs:sjsDefinedByDefault.

When enabled, this option switches the default for js.Any things from @js.native (0.6.x style) to @ScalaJSDefined (1.x style). The option only applies to source files in the current run, not to things loaded from the classpath.
This option is intended as a nicer transition between 0.6.x and 1.x. For a time, users will want to cross-compile their codebases. But there is no way to have Scala.js-defined JS classes that compile without deprecation warnings under the two versions. This option fixes that. The codebase can be written in 1.x style, and the option activated when scalaJSVersion.startsWith("0.6.").
The content of this commit should not reach the master branch.

Does that make sense, @gzm0?
Testing is hard. I added compiler tests, but no run tests in testSuite. I tested locally with:
$ cd test-suite/js/src/test/
$ find . -name '*.scala' | xargs sed -i 's/<EMAIL_ADDRESS>$ cd -
$ sbt 'set scalacOptions in (testSuite, Test) += "-P:scalajs:sjsDefinedByDefault"' testSuite/test

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/3991/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/5286/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/3996/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/5293/
Test PASSed.


Better description of how to include a written plugin

🗄 Docs report
Description
Currently in the docs it is described how a plugin (e.g. Router Plugin) is build:
https://github.com/scullyio/scully/blob/master/docs/plugins.md
I couldn't find any hint of where to put the plugin file should be put ideally and from where registerPlugin plugin is called.
🔬 Minimal Reproduction
What's the affected URL?**
https://github.com/scullyio/scully/blob/master/docs/plugins.md
Expected vs Actual Behavior**
The docs should include:

[ ] The import of registerPlugin (I think it comes from @scullyio/scully doesn't it?
[ ] Where to put the plugin configuration file? Is there a naming convention for this file? Is it a *.js or *.ts file? Or is it may just part of scully.config.js?
[ ] How will scully find this plugin? Is there a configuration flag which links to the file(s)?

Best regards,
Danny

I agree. We need to nail this down. You are right. We are locking down the plugins right now, and this is about to get better.


Remove govuk_frontend_toolkit from finder-frontend

Removing the final traces of govuk_frontend_toolkit from finder-frontend, including the dependency from the Gemfile.
Most of the sass dependencies were removed a while ago, and I'm fairly sure there aren't any JS dependencies, so this isn't a huge change.

Search page examples to sanity check:

http://finder-frontend-pr-1610.herokuapp.com/search/all
http://finder-frontend-pr-1610.herokuapp.com/search/research-and-statistics
http://finder-frontend-pr-1610.herokuapp.com/search/news-and-communications?parent=%2Feducation&topic=c58fdadd-7743-46d6-9629-90bb3ccc4ef0
http://finder-frontend-pr-1610.herokuapp.com/get-ready-brexit-check/questions
http://finder-frontend-pr-1610.herokuapp.com/drug-device-alerts
http://finder-frontend-pr-1610.herokuapp.com/find-eu-exit-guidance-business
http://finder-frontend-pr-1610.herokuapp.com/find-eu-exit-guidance-business?keywords=eori&order=relevance
http://finder-frontend-pr-1610.herokuapp.com/find-eu-exit-guidance-business?sector_business_area[]=aerospace&order=topic
http://finder-frontend-pr-1610.herokuapp.com/uk-nationals-living-eu
http://finder-frontend-pr-1610.herokuapp.com/prepare-business-uk-leaving-eu

Other finders

Does this mean we can switch to sassc-rails?  It should improve assets compilation time 🤞

@sihugh I don't know, @injms is the knower of such things. Ian?

@andysellick in case it's useful, we're currently looking at improving asset compilation times across our apps, in development. At the moment, using sassc-rails actually seems to make compilation slower, so we should definitely test this before making the change.
Ref: https://trello.com/c/5u00EAWo/104-fix-apps-timing-out-in-the-browser-due-to-css-asset-pipeline-issues

It might work with frontend toolkit gone, as the problem with sassc-rails was that it was being run twice for each stylesheet - but the honest answer is I don't know.
An easy way of finding out is to request dependant to rebase the PR to upgrade to sass-rails 6 once this has been merged in as sass-rails 6 is a wrapper around sassc-rails.


Feature: --precision flag for decimal percentage precision

For slower-running processes, or for specific progress snapshots (like disk usage), it would be nice to have the percentage on the end of the progress bar optionally have a few points of decimal precision.
I may grab this soon. My massive media server is filling very slowly and the progress bar has been sitting at 23% all day, i'm curious how quick that 1% is filling up :)

I will definitly look into this. :-)

Can you please explain currentState($1) and totalState($2) ? Any examples. Lets say i'm running a 'du' on some folder OR drive. What would be the currentState and totalState in that case?
I wanted to create a new thread for this, but since mturley mentioned disk usage, I though maybe this question be part of this too.

The currentstate refers to the current loop value of the entire loop number(totalstate), for e.g. Currentstate 1 of totalstate 100 would show 1% , 5 100 would show 5%.

It would be cool if this "high precision" version used Unicode partial block characters to get a smoother, more fine-grained output.
https://en.m.wikipedia.org/wiki/Block_Elements


fix: hangs in an iframe when it redirects to a cross-domain site

Purpose
TestCafe hangs when click in an iframe redirects to a page on a different domain. It occurs due to the cross-origin iframe's driver not able to read the pending actions from the ContextStorage of its parent and because of that the driver doesn't send the "ready" driver status and TestCafe hangs.
Approach
In the cross-domain iframe we should check that the parent doesn't have pending actions as well. Because the iframe and its parent with different origins doesn't share a common sessionStorage (its used under the hood of ContextStorage), we should send the message to check if there're some pending actions in the parent's driver.
References
Fixes #4232
Pre-Merge TODO

[x] Write tests for your proposed changes
[x] Make sure that existing tests do not fail

I will finish this PR.


Fix kuviz permissions

Related to: https://github.com/CartoDB/cartoframes/issues/1027
Only allow create/update/delete to master api keys.

Acceptance :green_apple:


[Improvement] Add timeout reconnection in DelegationRssShuffleManager

When DelegationRssShuffleManager send an AccessClusterRequest to the Coordinator, should we increase the logic of overtime resending?

Why do we need this? What's your situation?

The reason is that the ShuffleServer returns the heartbeat at a frequency of 10s each time. The Coordinator filters the ShuffleServer whose available memory is lower than the threshold value, which may cause the ShuffleServer to be lower than the allocable quantity. In this way, it is pushed down to SSM, add a retry logic and two parameters, retry times and time. Within the user's expected retry time, run on RSS as much as possible.WDYT?

Similar pr: https://github.com/apache/incubator-uniffle/pull/115 , Could it solve your issue?

Similar pr: #115 , Could it solve your issue?

My fault. I misunderstand you. The improvement is acceptable for me. Do you want to raise a pr?

Sure, I am trying to do this.

Solved by #139


Error message css class issue bg-red-400 -> bg-red-500

After fresh installation go to checkout and try to apply invalid coupon code.
error message seems with missing bg-red-400 class.

The build includes environment specific information, it would probably be best to remove the build commit and just push the CSS changes and then we publish a new build file once we tag a new version later on.
Otherwise, please create a new build on a vanilla clone of this repository :)


mix deps.update --all

Pull Request Test Coverage Report for Build 2352

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 98.454%

Totals

Change from base Build 2344:
0.0%

Covered Lines:
828

Relevant Lines:
841

💛  - Coveralls


Gstreamer Metadata

Is it possible to attach metadata when using the Gstreamer command line to produce an HLS stream? I see that it's possible when using the C++ API.

Can you tell us about what you are envisioning for attaching metadata using the gstreamer command line? Can you give us more details to help us understand your use case better.

I haven't fleshed out the exact specifics of my use case but I suppose I'm looking to attach some of the standard metadata the PutMedia API allows for such as producer timestamp/timecode along with some custom metadata such as a camera ID, a latitude-longitude coordinates, etc.
At a high level, I'm essentially trying to decide between the ease of use of a Gstreamer producer and the fine-grained control of a producer implemented with the C++/Java SDK.

The GStreamer plugin (kvssink) uses the SDK underneath. Based on your use case description,either one of the samples should be fine for use case.
Closing the issue for now. Please reopen or create a new one if needed.


Mandatory root tag

When i use a file with content like bellow it will generate only the first part
<!-- first -->
<Address>
    <street>Paradise street</street>
    <city>Heaven</city>
</Address>
<!-- second-->
<Address>
    <street>Hell street</street>
    <city>Hell</city>
</Address>>

in this case it will only convert the first address tag.
result :
{
  "Address": {
    "street": [
      "Paradise street"
    ],
    "city": [
      "Heaven"
    ]
  }
}

when i add a global root tag  like bellow it parse the whole content as expected:
<data>
    <!-- first -->
    <Address>
        <street>Paradise street</street>
        <city>Heaven</city>
    </Address>
    <!-- second-->
    <Address>
        <street>Hell street</street>
        <city>Hell</city>
    </Address>
</data>

result :
{
  "data": {
    "Address": [
      {
        "street": [
          "Paradise street"
        ],
        "city": [
          "Heaven"
        ]
      },
      {
        "street": [
          "Hell street"
        ],
        "city": [
          "Hell"
        ]
      }
    ]
  }
}

XML must have a single root node.  If it doesn't, then you can't sensibly use it to represent a tree.

Yes, that's exactly the reason why it only parses the first root node.

I had just the same issue. Having a root element seems reasonable to me. I suggest adding this to the docs:
"A root element is mandatory; it ensures complete data and you can throw an error otherwise."


sap.m.dialog is slowing growing in height when using firefox/windows

OpenUI5 version: tested with 1.35 and current
Browser/version (+device/version): Firefox 46 on Windows (and Mac as previously reported in #969)
Any other tested browsers/devices(OK/FAIL): Other browsers work fine
Steps to reproduce the problem:

Create a sap.m.dialog in javascript code
Call dialog.open()
Wait for a few seconds to see it grow

What is the expected result? The dialog has a fixed height
What happens instead? The dialog grows slowly
Any other information? (attach screenshot if possible)
You can try it out yourself here: https://dialoggrowing-d065362trial.dispatcher.hanatrial.ondemand.com/

after a few seconds

Hi,
thanks for spotting this for us. I am passing this to the responsible developers here.
Tracked internally under<PHONE_NUMBER>.
Kind regards,
Christiane

Hello Fidge123,
it is a well known issue, which is already fixed in master as well as in lower releases.
Thanks for reporting this,
Evgeni


Cache refresh required after updating folder to a different image (to avoid return to default manila).

Thanks for the updates since a year ago, when I last checked in :D
Reproducing the issue:

I successfully changed a folder (c:\games) to a new, custome icon (using template windows 11 A and png), which IIRC required calling Activate Icon to get going.
I then tried it again on the same folder, again right clicking the icon choosing "Change Folder Icon", before dragging in a different png. It happily created the new ico and did it's work on the ini file and folder.
The icon on "c:\games" changed from my first custom folder (1) back to the Win10 default, yellowish manila folder. I hit refresh a few times, going in and out of the folder,  but it remained default manila.
I right clicked again, clicked "Refresh Icon Cache (Without Restart), and was able to see my new custom folder (2).

Request/Potential Solution:
Would it be possible to call Refresh Cache by default, when a folder icon is changed? Or, just for ones that were already activated and customised previously, if that's more appropriate?
If there's a reason that's too heavy a default for various setups (maybe Win11 doesn't require it?), could there be a preference/checkbox I could set so it becomes a users personal default?
System:
OS: Windows 10, 22H2, Build 19045.5011

When you change a folder icon, it sometimes updates immediately, but often it doesn't. You might need to wait around 30-40 seconds and then manually refresh it using "Refresh Icon Cache (Without Restart)." Alternatively, if you use the "restart explorer" method, the icon will change immediately without needing to wait.
What does "Refresh Icon Cache" do?

Removes the "Read Only" properties on  the folder.
Renames "desktop.ini" to "DESTOP INI"
Renames it back to "desktop.ini"
Reapplies the "Read Only" properties to the folder.

When generating/changing a folder icon, the process is similar:

Removes the "Read Only" properties on the folder.
Creates and writes to "Desktop.ini"
Renames it to "desktop.ini.temp"
Renames it back to "desktop.ini"
Adds "Read Only" properties to the folder.

So, it actually already did what "Refresh Icon Cache" does. In my experience, while it works sometimes, more often it doesn’t. This has been a persistent issue; as it appears that Explorer doesn't always recognize the change immediately.
I've searched for solutions on "how to make folder icon changes update instantly," and I did find some useful hints, such as this Stack Overflow post and this recent discussion on VBForums. However, I haven’t yet found a method I can apply to this project, as I don't have knowledge in VBScript, C, C++, or any language other than windows batch script.

Thanks for the very thorough answer 🙏. You've done some pretty flash work with batch scripts and calls to ImageMagick!
Hopefully over the Dec/Jan holidays I'll get a chamce to look into how the cache/icons can be refreshed in C++, and maybe make a little exe or dll. The refresh problem seems amazingly iffy - even before you start trying to change folders on mapped/network mounted drives 😂

That's awesome! 😀 It’s a tricky problem that’s been hard for me to solve. Definitely let me know if you make any progress; I'd love to test it out!

I think I’ve finally solved the issue! It turns out I just needed some guidance from an AI on how to use C++ to address it. Here’s what I came up with: FolderIconUpdater.
If you’d like to try it, you can test the unreleased v0.5 version of RCFI Tools here: RCFI Tools v0.5 (test version).
Let me know your thoughts or if you encounter any issues!


Which library does the progress bar depend on in cargo?

Problem
Which library does the progress bar depend on in cargo? I want to add a progress bar to my project, so I want to learn from it.
Proposed Solution
No response
Notes
No response

Cargo got its home-made progress bar here.
There are many other progress bar crates like indicatif and pbr to named a few.

Friendly remind that you can ask questions on the user forum. People there usually have great idea with this kind of topics.

I think the question here is answered, so I'm going to close this as well.


[docs] Update sample output for offenses and worst formatters

Update the sample output for the Offense Count and the Worst Offenders formatters to match the changes in #11113.

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[ ] Added tests.
[ ] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[ ] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

Thanks!


Progam seems to randomly hang on certain computers

I am having some issues trying to run my program on a dell optiplex with a usb wifi adapter. My program just hangs randomly. Scraping in a loop just stops and other hero websites never load (infinite loading circle). Comparatively, my lenovo s540 with built in wifi card never has this issue. Same with my macbook pro 2015. Smooth as butter. I'm just wondering if an external wifi card might be the reason?
ulixee 2.0.0-13
Pc that fails:
Dell optiplex 16gb ram i5-8500
Usb wifi adapter
Pc that succeeds:
Lenovo S540 16gb ram  AMD Ryzen 4000 series
Macbook Pro 2015 16gb ram i7 processor
My program runs smoothly on the lenovo and macbook. When the program fails on the PCs it doesn't tell me anything, its like everything just freezes and then theres some network errors that pop up in dev tools on each hero instance.
I have tried the following and still no luck:

New network (phone hotspot etc) fast networks with 40-50mbs speed
New wifi adapter (altho still not great onces from ebay)
Less hero instances

Could you try disabling the mitm in hero constructors?

Update from discord: this seems to relieve issues when running with disableMitm: true. @paulosllvn to try a plugin that disables tcp settings to see if that's the issue.

Update: TCP disabled not the issue. Still maxes out at 4 concurrent Heros on those machines.


add warning about package status

This PR adds a courtesy warning for users about the package status.
fixes #135

thanks, @itsdfish!

No problem!


Graph Algorithms in Java

Implementation of Graph Algorithms:
Needs to be merged in java/graph_algorithms

[ ] A* (A star)

[ ] Dijkstra’s shortest path algorithm

[ ] Dijkstra’s Algorithm for Adjacency List Representation

[ ] Kruskal’s Minimum Spanning Tree Algorithm

[ ] Bellman-Ford Algorithm

[ ] Floyd Warshall Algorithm

[ ] Kahns Algorithm

[ ] Peterson Graph Problem

[ ] Steiner Tree

[ ] Boruvka’s algorithm for Minimum Spanning Tree

[ ] Karp’s minimum mean weight cycle algorithm

Hi! I would like to work on this issue :)

i want to work on Steiner Tree issue. please assign

Hi @geekquad, I would like to work on Bellman-Ford Algorithm.

Assigning A*Floyd Warshall, and Kruskal’s Minimum Spanning Tree Algorithm to @PrasoonSingh28.
Assigning Steiner Tree to @Astitv23.
Assigning Bellman-Ford Algorithm to @vlx01.

can you assign me peterson graph problem?

Hi @geekquad , I would like to work on Dijkstra's Algorithm for Adjacency List Representation

Hey @geekquad, I'd love to help you with this issue if still possible.

Hey @joaoMpf, go ahead :))
Yes @oliviadinicola, please go ahead :)).
Hey @juanrodl, which issue one would you like to work on?

I would like to work on Kahn's algorithm if possible

I would like to work on Kahn's algorithm if possible

Go ahead @juanrodl.

I would like to work on Karp’s minimum mean weight cycle algorithm.


Add device type POST endpoint

Closes #176

Should the merge "into" on this one be feature/s2?

Should the merge "into" on this one be feature/s2?

I though feature/s2 was just going to be used for the demo?

I had the exact opposite thought. Main would remain untouched and all sprint related dev was going into the "sprint 2" branch.

You are correct, I thought I had set it properly but it looks like I did not. It should be correct now.


TLSStores & TLSOptions use the label selector

Do you want to request a feature or report a bug?
Bug  (maybe)
What did you do?
Using the kubernetescrd and kubernetesingress providers.
I need to run two instances of traefik that will handle ingresses separated by labels.
I want to use a default TLS config common to both using in cluster secrets (via TLSStore and TLSOptions)
apiVersion: traefik.containo.us/v1alpha1
kind: TLSOption
metadata:
  name: default
  namespace: infra
spec:
  minVersion: VersionTLS12
  cipherSuites:
  - "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
  - "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
  - "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305"
  - "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305"
  - "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"
  - "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
  - "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"
  - "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"

apiVersion: traefik.containo.us/v1alpha1
kind: TLSStore
metadata:
  name: default
  namespace: infra
spec:
  defaultCertificate:
    secretName: wildcards-tls

The code lists both stores and options from all namespaces, and RBAC permits that. Note that there are no labes.
my config.toml:
defaultEntryPoints = []
[entryPoints]
  [entryPoints.https-auth-tls]
  address = ":8884"
  [entryPoints.https-auth-tls.http.tls]

[providers.kubernetescrd]
endpoint = "http://localhost:8001"
allowcrossnamespace = true
ingressclass  = "traefik"
labelselector = "externalAccess in (private)"

[providers.kubernetesingress]
endpoint = "http://localhost:8001"
ingressclass  = "traefik"
labelselector = "externalAccess in (private)"

[log]
level = "debug"

What did you expect to see?
I expect all discovered ingresses (that match the private label) to use the default certificate and options.
What did you see instead?
Traefik discovers the ingresses, but uses an self signed cert and default options.
If I snoop the kube api requests I can see that traefik is requesting tlsoptions and tlsstores using the label selector:
GET /apis/traefik.containo.us/v1alpha1/tlsstores?labelSelector=externalAccess+in+%28private%29&limit=500&resourceVersion=0 HTTP/1.1\r\n

If I comment out the label selector, traefik discovers my options and stores, but this means the selector must match the stores/options and the ingresses/crd-resources, but that precludes mutually exlusive sets of ingresses.
Two workarounds exist (I think):

have a 2 tlsstore and tlsoptions objects, in different namespaces, which match diffferent label queries.
use two different ingress classes, and drop the use of labels.

The docs don't mention that stores/options have to match the label selectors, and it's not really obvious that the default ones should.
Output of traefik version:
Version:      2bbb6fc427cbc8354f15405ffa5715738b5cfabf
Codename:     cheddar
Go version:   go1.16
Built:        2021-06-04_01:11:35pm
OS/Arch:      linux/amd64

What is your environment & configuration (arguments, toml, provider, platform, ...)?
defaultEntryPoints = []
[entryPoints]
  [entryPoints.https-auth-tls]
  address = ":8884"
  [entryPoints.https-auth-tls.http.tls]

[providers.kubernetescrd]
endpoint = "http://localhost:8001"
allowcrossnamespace = true
ingressclass  = "traefik"
labelselector = "externalAccess in (private)"

[providers.kubernetesingress]
endpoint = "http://localhost:8001"
ingressclass  = "traefik"
labelselector = "externalAccess in (private)"

[log]
level = "debug"```

Hello @tcolgate,
If you configure either of the kubernetes providers to filter using a labelselector, then all resources will be filtered using that selector.
If you want to share only some objects between different selectors, you should probably look at using a more complex set based selector, allowing for an "or" to be used: (https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#set-based-requirement).
You could then use:
example in (crdprivate, shared) and example in (ingressprivate, shared), and you could add the label example: shared to the objects you want to share between the two providers.
Does this help?
Thanks.

These aren't things being shared between the providers, they will be shared between two separate running instances of traefik. a "traefikResource" label to the CRD stuff (that will never be on an ingress), and then have the selector include that, maybe. I'll experiment (I'd convinced myself this wouldn't work, but it may if it's a label that is on resource but not ingresses).

@tcolgate My mistake, I thought you meant between providers, however you are correct, the labels can be used to share between instances as well.
As long as you are using set based selectors, you can create complex logic, and you can use multiple labels to achieve the correct inclusion/exclusion rules you are after.

Maybe I'm wrong, but since label selectors (even set based ones, I think), don't support a "or" operator (, means and, there's no ||), I'm not sure it's possible. I need a selector that would match one subset of ingress or the tls options/store.

@tcolgate from the doc linked:
As already mentioned set-based requirements are more expressive.  For instance, they can implement the OR operator on values:

kubectl get pods -l 'environment in (production, qa)'

selects all resources with key equal to environment and value equal to production or qa

OK, got you. That could work (unfortunately the label is "well known" through our infra tooling, so it's going to take some effort to work out what a new value might trigger elsewhere).
I can use the distinct ingress classes to work round this, so am happy to close, but I would suggest at least a documentation update is sensible. Given the requirement for one specifially named object for tls stores/options, it definitely feels odd that the label selector applied to them.

@tcolgate Feel free to keep this issue open until you can confirm it works for you. In case it doesn't, we can keep discussing here.


Buttons on Create Stream: Fix Button UI not turns On clicking over,

button was referencing initialValue, when user clicks on that button it was not updating it's value
I have fixed it by changing current value of the button
Fixes:#3760

The code fix looks good, but there are several issues with the commit message. See https://zulip.readthedocs.io/en/latest/contributing/version-control.html#commit-messages for more details.
In addition, although not explicitly called out in that document:

The second line of the commit message should always be blank, separating the one-line summary from the message proper.
While GitHub will recognize many things as issue-closing remarks, it does seem to require a space between the keyword and the issue number.


Create collector types

Create collector type schemas

Add schemas for the different types of collector.
Each collector type needs three schemas:

query.json - used to validate the query parameters of the collector
options.json - used the validate the optional parameters of the collector
descriptor.json - describes the properties required to create a collector type.
Used by the import_collector_types script to extract properties e.g. The title in the
descriptor schema will become the human readable name of the collector type.

Every collector type should have a query, options, and descriptor schema.
Even if a collector type doesn't allow for a query and/or options object, a
schema with empty properties has been added to be able to validate that no
properties can be passed in.

All of the schemas have additionalProperties set to false so that we can
catch any collector type attributes that may have been missed when the
collectors are imported.

Script to create collector types
The folder names that contain the schemas for a collector type follow a pattern.
If the collector in performanceplatform-collector can be found in
performanceplatform/collector/ga/trending then the folder name for the schemas should
be 'ga-trending'
The collector type slug is determined by the name of the folder containing
the schemas for the collector type. e.g in the example above the collector type slug
is 'ga-trending'
The provider is determined by trying to match the name to the first part of
collector type slug. e.g. if the slug is 'ga-trending', the provider name is 'ga'.
The provider is created if it doesn't already exist.
Provider creation should be revisited to perhaps add a slug to the Provider and base Provider
selection on the value of the slug.
Story in Pivotal: https://www.pivotaltracker.com/story/show/98935306

Nice commit message :+1: I have rolled bits into the smushed together PR #401


Add table comment to the prompt of DataFrame transform

For the df.ai.transform method, if the input dataframe is reading from a single table, include the table comment into the prompt can help the accuracy of generated SQL.
Before the changes, the following WikiSQL tests
{"phase": 1, "table_id": "1-1004033-1", "question": "When did the Metrostars have their first Rookie of the Year winner?", "sql": {"sel": 0, "conds": [[4, 0, "MetroStars"]], "agg": 2}, "result": [2001.0], "query": "SELECT MIN(col0) AS result FROM table_1_1004033_1 WHERE col4 = 'metrostars'"}
{"phase": 1, "table_id": "1-1004033-1", "question": "What college did the Rookie of the Year from the Columbus Crew attend?", "sql": {"sel": 7, "conds": [[4, 0, "Columbus Crew"]], "agg": 0}, "result": ["virginia"], "query": "SELECT col7 AS result FROM table_1_1004033_1 WHERE col4 = 'columbus crew'"}
{"phase": 1, "table_id": "1-1004033-1", "question": "How many teams had a #1 draft pick that won the Rookie of the Year Award?", "sql": {"sel": 4, "conds": [[5, 0, "1"]], "agg": 3}, "result": [1], "query": "SELECT COUNT(col4) AS result FROM table_1_1004033_1 WHERE col5 = '1'"}

will failed:
Question: When did the Metrostars have their first Rookie of the Year winner?
Expected query: SELECT `MIN(Season)` FROM `1-1004033-1` WHERE `Team` = 'metrostars'
Actual query: select season from spark_ai_temp_view_f554c8 where team = 'metrostars' and player like '%rookie of the year%' order by season asc limit 1
Expected result: [2001.0]
Actual result: []

Question: What college did the Rookie of the Year from the Columbus Crew attend?
Expected query: SELECT `(College)` FROM `1-1004033-1` WHERE `Team` = 'columbus crew'
Actual query: select college from spark_ai_temp_view_4372d6 where team = 'columbus crew' and `draft class` = 'rookie of the year'
Expected result: ['virginia']
Actual result: []

The question does not provide enough information to write a query. The table does not have a column indicating whether a player won the Rookie of the Year Award.

With the prompt, all tests passed.

cc @xinrong-meng


Upgrade the Service Self-Balancing: target high demand non-terminus stops

With #12 being released, bus efficiency should be higher than before, but the efficiency can still be pushed higher still.
Now, buses can be randomly sent to the terminus of the "route section" (ie route direction) with a higher relative demand. The problem is, when there are stops in the middle of the line which is in high demand (e.g. a very effective bus interchange stop), and this is detected by #12, buses will still travel to the terminus of the segment. Currently, there is an observable rate at which bus termini dispatches the next bus, so #12 causes a lot of buses to get piled up at termini, which can be much more than expected and starts blocking roads. On the other hand, the many buses are needed to ensure the termini keeps dispatching buses (to be sent to high-demand stops), so if you are using TLM, the line budget is forced to stay high, and the upkeep remains high too.
The improvement, then, is to allow buses to redeploy not only to bus termini, but also to high-demand middle-of-line stops. Another set of rules is needed for this feature, but most of the required code is already done in #12 as infrastructure, What is needed is truly only to think of the rules of sending buses to middle-of-line stops instead of always the termini, and add them to the existing code.
We will gradually add more details to this.

If we do this right, this may satisfy #5.

We will do this:

When redeploying to a segment, the bus will check the stop in the same segment with the max pax waiting
If such stop has more than 30 pax waiting, then the bus will have 50% chance of picking that stop instead of the terminus for redeployment

This is now released on Steam.


I505 GDAL configured with updated libopenjp2

Just the library libopenjp2.so.2.1.2 was updated.  The rest of openjpeg-v2.1.2-linux-x86_64.tar.gz is unchanged.

On all supported platforms, I (1) previewed the JP2 resource, and (2) added an imagery resource and saved it.  Both steps failed before the change.

Two approvals but the Travis CI build failed.  I checked the log and the problem was that Travis CI timed out.  Since this branch was before the fixes to keep Travis CI from timing out, I'm going to ignore the failure and merge the changes.


How to change date without firing 'dp.change' event?

I'm using datetimepicker as a mini datepicker on the side of a calendar like Google calendar.
When I change the date of datetimepicker, the date of the calendar should change. So I use 'dp.change' to make it - Easy work.
But how can I update datetimepicker when I change the date of the calendar? If I use 'date()', it will change the selected date and fire 'dp.change', which makes it infinite loop.
Can I change month of datetimepicker without changing selected date? (just like I click the next button)

Any fix you found yet, I'm having the same issue.
Let me know,
Thanks