Cannot build Qt project on Linux, but it does on windows

Describe the bug
I'm working on a CMake project. I use vcpkg for using Qt and all other libraries. The project builds correctly on windows, but I've a CMake configuration error in Linux.
This is the CMakeFiles.txt that gives me the problem:
cmake_minimum_required (VERSION 3.13.4)

project (zlaeditorgui)

message (STATUS "Building project ${PROJECT_NAME}")

set (Boost_USE_MULTITHREADED ON)
unset (Boost_INCLUDE_DIR CACHE)
unset (Boost_LIBRARY_DIRS CACHE)
set (CMAKE_INCLUDE_CURRENT_DIR ON)
set (CMAKE_AUTOMOC ON)
set (CMAKE_AUTORCC ON)

find_package (Boost COMPONENTS program_options filesystem REQUIRED)
find_package(Qt5 COMPONENTS Core Widgets Gui REQUIRED)

include_directories (${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/Serializers ${Boost_INCLUDE_DIRS})
include_directories (${CMAKE_SOURCE_DIR}/thirdparty/loginlib/src)

set (PROJECT_SRC
  main.cpp
  manyotherfiles.cpp
  )

set (PROJECT_QRC
  Resources/ZLAEditorGui.qrc
  )

add_executable (${PROJECT_NAME} ${PROJECT_SRC} ${PROJECT_QRC})
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)

target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES} otherlibraries Qt5::Core Qt5::Widgets Qt5::Gui)

This is the error that I've when I build.
[build] Starting build
[proc] Executing command: /usr/bin/cmake --build /home/login/Projects/zla/build/vscode --config Debug --target all -- -j 1
[build] [1/12   8% :: 0.018] Automatic MOC for target zlaeditorgui
[build] [2/11  18% :: 0.396] Linking CXX executable build/Debug/bin/zlaeditorgui
[build] FAILED: build/Debug/bin/zlaeditorgui
[build] : && /bin/g++-9  -g   src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/main.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/ProgramOptions.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/ApplicationOptions.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Application.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/SessionManager.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/MainWindow.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/MenuBar.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/SessionToolbar.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/CodeGenerationToolbar.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/StatusBar.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/ObjectModel.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/Federate.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/FederatesList.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/Tree.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/StackedEditor.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/EmptyEditor.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/SimpleDatatypeEditor.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/EnumeratedDatatypeEditor.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/ArrayDatatypeEditor.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/StructureDatatypeEditor.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/Unit.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/Multiplicity.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/ObjectSectionEditor.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/ObjectNamespaceEditor.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/DatatypeNamespaceEditor.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/RootObjectEditor.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/ObjectEditor.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/Gui/ObjectAttribute.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/zlaeditorgui_autogen/mocs_compilation.cpp.o src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/zlaeditorgui_autogen/S5YYZ2ZCNV/qrc_ZLAEditorGui.cpp.o  -o build/Debug/bin/zlaeditorgui  -Wl,-rpath,/home/login/Projects/zla/build/vscode/build/Debug/lib /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libboost_program_options.a /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libboost_filesystem.a build/Debug/lib/libxmlserializer.so /home/login/Projects/vcpkg/installed/x64-linux/lib/libQt5Core.a /home/login/Projects/vcpkg/installed/x64-linux/lib/libQt5Widgets.a /home/login/Projects/vcpkg/installed/x64-linux/lib/libQt5Gui.a build/Debug/lib/libsession.so build/Debug/lib/libast.so /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libboost_serialization.a /home/login/Projects/vcpkg/installed/x64-linux/lib/libQt5Core.a /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libjpeg.a /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libfreetyped.a /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libpng16d.a /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libz.a /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libbz2d.a /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libsqlite3.a -lpthread /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libharfbuzz.a /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libfreetyped.a /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libbz2d.a /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libpng16d.a /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libz.a /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libdouble-conversion.a /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libssl.a /home/login/Projects/vcpkg/installed/x64-linux/debug/lib/libcrypto.a -ldl -lpcre2-16_LIBRARY_DEBUG-NOTFOUND -llibpq_LIBRARY_DEBUG-NOTFOUND -lQt5ThemeSupport_LIBRARY_DEBUG-NOTFOUND -lQt5EventDispatcherSupport_LIBRARY_DEBUG-NOTFOUND -lQt5PlatformCompositorSupport_LIBRARY_DEBUG-NOTFOUND -lQt5FontDatabaseSupport_LIBRARY_DEBUG-NOTFOUND && :
[build] /usr/bin/ld: cannot find -lpcre2-16_LIBRARY_DEBUG-NOTFOUND
[build] /usr/bin/ld: cannot find -llibpq_LIBRARY_DEBUG-NOTFOUND
[build] /usr/bin/ld: cannot find -lQt5ThemeSupport_LIBRARY_DEBUG-NOTFOUND
[build] /usr/bin/ld: cannot find -lQt5EventDispatcherSupport_LIBRARY_DEBUG-NOTFOUND
[build] /usr/bin/ld: cannot find -lQt5PlatformCompositorSupport_LIBRARY_DEBUG-NOTFOUND
[build] /usr/bin/ld: cannot find -lQt5FontDatabaseSupport_LIBRARY_DEBUG-NOTFOUND
[build] collect2: error: ld returned 1 exit status
[build] ninja: build stopped: subcommand failed.
[build] Build finished with exit code 1

I've checked and, for example, both pcre2 and libpq are installed correctly using vcpkg, so I don't know where the error is.
I've also tried to use find_package with not found libraries, like Qt5FontDatabaseSupport but I cannot find them.
What I'm doing wrong?
I'm using Kubuntu 19.04

How does your CMake cmd line look like?

That output appears when I use the Visual Studio code cmake extension with following settings:
{
    "cmake.buildDirectory": "${workspaceRoot}/build/vscode",
    "cmake.configureSettings": {
      "CMAKE_TOOLCHAIN_FILE" : "~/Projects/vcpkg/scripts/buildsystems/vcpkg.cmake",
      "VCPKG_TARGET_TRIPLET": "x64-linux"
    },
    "cmakeExplorer.buildDir": "build/vscode",
    "cmakeExplorer.logpanel": true,
    "cmake.ctestArgs": [
      "--output-on-failure"
    ],
    "C_Cpp.default.includePath": [
      "/Projects/vcpkg/installed/x64-linux"
    ],
    "cmake.configureOnOpen": true,
    "cmake.parallelJobs": 1
  }

With the console command:
cmake -DVCPKG_DEFAULT_TRIPLET=x64-linux -DCMAKE_TOOLCHAIN_FILE=~/Projects/vcpkg/scripts/buildsystems/vcpkg.cmake ../../

I obtain following error
/usr/bin/ld: cannot find -llibpq
/usr/bin/ld: cannot find -llibpq_LIBRARY_RELEASE-NOTFOUND
collect2: error: ld returned 1 exit status
make[2]: *** [src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/build.make:568: build/bin/zlaeditorgui] Error 1
make[1]: *** [CMakeFiles/Makefile2:1326: src/ZLAEditorGui/CMakeFiles/zlaeditorgui.dir/all] Error 2
make: *** [Makefile:95: all] Error 2

From VSCode you get cmake config with CMAKE_BUILD_TYPE=Debug
Additional libraries, like Qt5FontDatabaseSupport, are linked in share/qt5core/vcpkg-cmake-wrapper.cmake by
function(add_qt_library _target)
    foreach(_lib IN LISTS ARGN)
        find_library(${_lib}_LIBRARY_DEBUG NAMES ${_lib}d PATH_SUFFIXES debug/plugins/platforms)
        find_library(${_lib}_LIBRARY_RELEASE NAMES ${_lib} PATH_SUFFIXES plugins/platforms)
        set_property(TARGET ${_target} APPEND PROPERTY INTERFACE_LINK_LIBRARIES
        \$<\$<NOT:\$<CONFIG:DEBUG>>:${${_lib}_LIBRARY_RELEASE}>\$<\$<CONFIG:DEBUG>:${${_lib}_LIBRARY_DEBUG}>)
    endforeach()
endfunction()

Qt5FontDatabaseSupport_LIBRARY_DEBUG-NOTFOUND comes from find_library( ... ${lib}d ...), but on Linux Qt libraries in debug folder does not get d suffix (there is only debug\lib\libQt5FontDatabaseSupport.a)
Fix for libpq: https://github.com/microsoft/vcpkg/pull/9260, see commit Update the Wrapper to use the Postgres target

Ok then I'll wait, thanks for taking care of this.

I cannot repro on my local.
This should be fixed now. Please try to update vcpkg and rebuild this.


Question: update vs replace

Question
Which operation is more expensive in ArangoDB:
A replace or an update?
Does update trigger an index rebuild in ArangoDB, or only when you update fields that are part of the index? What about replace ?

Both update and replace create a new document revision, so technically a new document (append-only architecture). Therefore there should be no real difference in performance, although update might be slightly slower because it has to merge attributes.
In the MMFiles storage engine, indexes are built at each server startup as they are held in memory only (except the persistent index type). With RocksDB all indexes are persistent. Whenever a document is changed (new revision), all relevant indexes get updated accordingly. There is at least the primary index, in edge collections also the edge index. Secondary (user-defined) indexes get updated if necessary. Indexes are altered, not rebuilt.

Ok, thanks @Simran-B


Other hacktoberfest starter repo

https://github.com/ezralazuardy/hacktoberfest

it's now opened :)


Attempt at fixing nan-stars

Resolves #1717 (hopefully, hard to check as things are now)

When it shows NaN, the value not always actually zero, sometimes there has already been a rating.


libpod: discerne partial IDs between containers and pods

When specifying a podman command with a partial ID, container and pod
commands matches respectively only containers or pods IDs in the BoltDB.
Fixes: #3487
Signed-off-by: Marco Vedovati<EMAIL_ADDRESS>

bot, add author to whitelist

I believe the test issues are unrelated CI issues that @mheon has been fighting with.

Hm. I like this... actually ends up simplifying the code paths.
LGTM once things go green.

/approve
/ok-to-test

lgtm but this isnt my area of expertise ... @mheon defer to you

(Probably also a bit more performant for searches... less things to iterate through)

Merging
/lgtm


More tests

Codecov Report

Merging #44 into master will increase coverage by 22.54%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #44       +/-   ##
==========================================
+ Coverage   32.35%   54.9%   +22.54%
==========================================
  Files           2       2
  Lines         102     102
==========================================
+ Hits           33      56       +23
+ Misses         68      41       -27
- Partials        1       5        +4

Impacted Files
Coverage Δ

selenoid/selenoid.go
81.63% <100%> (+34.69%)
:arrow_up:

main.go
30.18% <0%> (+11.32%)
:arrow_up:

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 9b6cdf9...b92031f. Read the comment docs.


Credential Manager application

The text "the data developer uses the Credential Manager application (currently not supported)" is confusing, if this is not supported, shouldn't it be removed from the documentation?

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

ID: 32785d15-8202-6e44-f1d2-420ef0600f3f
Version Independent ID: 3af5fa49-7bd4-18ce-f8dc-aa4a2b8c6478
Content: Create a self-hosted integration runtime in Azure Data Factory
Content Source: articles/data-factory/create-self-hosted-integration-runtime.md
Service: data-factory
GitHub Login: @nabhishek
Microsoft Alias: abnarain

@algattik Thanks for bringing this to our attention. Your feedback  has been shared with the content owner for further review.

@algattik yes indeed. It was useful to mention for ADFv1 customers as v1 had credential manager app.
I will remove it from the doc.

#please-close


Contract verification on zksync

PR-Codex overview
This PR focuses on adding ZkSync contract verification functionality to the SDK.
Detailed summary

Added ZkSync contract verification feature
Updated zkDeployContractFromUri function
Introduced zkVerify function for verification
Added helper functions for contract verification

The following files were skipped due to too many changes: packages/sdk/src/evm/zksync/temp-artifact/TWProxy.ts

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

/release-pr

/release-pr

/release-pr


Trailing whitespace in CAPABILITY

https://github.com/emersion/go-imap/issues/571#issuecomment-1980629563
Thanks @emersion!
Offending implementation: imap.exmail.qq.com

I tried to reproduce with pwntools ...
c = connect("imap.exmail.qq.com", 993, ssl=True)
c.recv()
c.send("a capability\r\n")
c.recv()

... but can't reproduce the whitespace. Was it fixed? Reported?

The offending space only seems to appear after authentication in the original issue (AUTH= are missing in the cap list).

Ah! Thanks!


Next Generation

This pull request introduces backwards-incompatible changes that should become the next generation of this library, version 1.0.
It should solve some (long-standing) issues:

Automatic reconnect in case of connection failures. => Client instance won't be tied to a single connection. Instead it will present a simpler interface that can tolerate reconnections.
Problems with heartbeats. => Most of the problems reported by users of the library were due to heartbeat timeouts. The library should provide in such cases helpful exception messages.

As well as some design issues:

Mocking - So far, the library tied everything to concrete classes that couldn't be mocked easily. Now, client/connection/channel will extend interfaces that can be easily mocked.
Channels - Most applications, I've worked on, that needed to publish a message, do not really care about AMQP's channel multiplexing. New client interface takes care of this use case.
Sync consumers - In the begging the library was created mostly because there was no AMQP lib for ReactPHP. Sync API was an afterthought. However, most consumers, I'd created, used sync client. New concept of a subscription - iterable instance that waits for messages consumed from multiple queues, - seems like a better fit.
Duplicated sync/async logic - New version will internally use coroutines for the protocol logic. Sync/async connections will be just executors for these coroutines. It should avoid duplication of the connection code and a lot of checks whether the returned value is a promise, or an actual value found now in the library code.

TODO:

[ ] Sync interfaces
[ ] AMQP implemented using coroutines
[ ] Sync executor
[ ] Async (promise-based) interfaces
[ ] Async executor
[ ] Proper channel/connection error handling (see #80)
[ ] Connection factory can use multiple addresses (see #81)

@jakubkulhan hello!
Are you been thinking about the reconnection strategy?
How do you handle this in production environments?
Thanks!


Another bug with using alternative base version

Seeing another bug during the building of some ports using 10.2 world, but on 11-CURRENT host.
Specifically, first is the Platform: line still shows 11.0-CURRENTXXXXXX, shouldn't it show 10.2-XXXXXX? (Not sure if this is apart of the bug)
...
Platform: 11.0-CURRENTJAN2016 FreeBSD 11.0-CURRENTJAN2016 #3 1b5aa1f(HEAD): Tue Jan 12 21:19:28 UTC 2016     root@bellicose:/usr/obj/usr/src/sys/GENERIC  amd64
...
Next, during the configure phase, when it checks machdep, it returns freebsd11 still:
...
checking MACHDEP... freebsd11
...
This causes port such as lang/python27 to fail, since it puts some modules in a freebsd11 subdir, instead of freebsd10 where they are supposed to be.
Full log file:
http://slexy.org/view/s2ANluwqlz

i'm not sure this is actually a "bug" per se.
the config script might be checking uname, which reads the running kernel.
In other words, it's running the chroot uname, but still getting 11 back because uname doesn't have a static value.
basically it's a case of python configure not accepting the --build target and trying to determine it on it's own.  other than patching the script, I'm not sure what the fix could be.
maybe it's time to research how uname actually works to see if it can be influenced.

it appears on uname can be influenced by environment variables:
#define	CHECK_ENV(opt,var)				\
do {							\
	if ((var = getenv("UNAME_" opt)) == NULL) {	\
		get_##var = native_##var;		\
	} else {					\
		get_##var = (get_t)NULL;		\
	}						\
} while (0)

static void
setup_get(void)
{
	CHECK_ENV("s", sysname);
	CHECK_ENV("n", hostname);
	CHECK_ENV("r", release);
	CHECK_ENV("v", version);
	CHECK_ENV("m", platform);
	CHECK_ENV("p", arch);
	CHECK_ENV("i", ident);
	CHECK_ENV("K", kernvers);
	CHECK_ENV("U", uservers);
}

Makes sense. Did a check and it looks like poudriere has to manually set a bunch of UNAME_* variables, probably to fix this exact issue.
kris@devastator:/usr/local/share/poudriere % grep UNAME *
jail.sh:        login_env=",UNAME_r=${release% },UNAME_v=FreeBSD ${release},OSVERSION=${osversion}"
jail.sh:            login_env="${login_env},UNAME_m=${ARCH%.},UNAME_p=${ARCH#*.}"
Is this something you want to fix / add? Otherwise in the meantime I'll have to hand-set those variables for builder environment.

i will have to fix it permanently and in the meantime you'll have to hand-set those variables.

Right now the -environment file cannot support any argument with spaces.  E.g. "MYVAR="a b" will not work.
It's a limitation of the external library.  I might end up having to roll my own pipe handling rather than try to fix it (the library is bigger than I like and I don't use most of it anyway, but this is all post 1.00 stuff I think)

This appears to be fixed with the newer revision, not seeing ports fail to build due to base system / host system version mismatch now.

Yes, I rolled my own pipe command functions which gained the following:

it's no longer space sensitive.  Before 2 consecutive spaces in a command or env var string would break it.
it can accept quoted env variable values.
it can accept escaped spaces in lieu of quotes
it shrinks synth by 30%.


Webmention Blocklist

Linking to other pages in the same blog will send webmentions to oneself. Maybe this can be toggle on/off by the user?

Idea: Implement a blocklist to ignore sending webmentions to specific domains or receiving webmentions from domains. Maybe using regular expressions?


Running cythonized failed !

I have tried to install scipy using pip and it failed several times. I have tried after upgrading pip to the latest version but it was still failing. I have tried to clone the repository and then python setup.py and it fail again.
I am using windows 10 and python 2.7, I want to install scipy into my python not to be part of the conda.
This is the error message:
C:.....\scipy-master\scipy-master>python setup.py
Cythonizing sources
Processing scipy\cluster_hierarchy.pyx
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named Cython.Compiler.Main
Traceback (most recent call last):
File "C:\Users\Fares\Desktop\fhees\learn python\scipy-master\scipy-master\tools\cythonize.py", line 198, in
main()
File "C:\Users\Fares\Desktop\fhees\learn python\scipy-master\scipy-master\tools\cythonize.py", line 194, in main
find_process_files(root_dir)
File "C:\Users\Fares\Desktop\fhees\learn python\scipy-master\scipy-master\tools\cythonize.py", line 186, in find_process_files
process(cur_dir, fromfile, tofile, function, hash_db)
File "C:\Users\Fares\Desktop\fhees\learn python\scipy-master\scipy-master\tools\cythonize.py", line 160, in process
processor_function(fromfile, tofile)
File "C:\Users\Fares\Desktop\fhees\learn python\scipy-master\scipy-master\tools\cythonize.py", line 80, in process_pyx
raise Exception("Cython either isn't installed or it failed.")
Exception: Cython either isn't installed or it failed.
Traceback (most recent call last):
File "setup.py", line 415, in
setup_package()
File "setup.py", line 399, in setup_package
generate_cython()
File "setup.py", line 205, in generate_cython
raise RuntimeError("Running cythonize failed!")
RuntimeError: Running cythonize failed!

At the risk of stating the obvious, have you installed cython? (pip install cython)
In general, take a look at these instructions:
https://scipy.org/scipylib/building/windows.html

Closing, reopen if cython was installed.

run cythonize failed after installing cython


SendCommandAsync occasionally throws ArgumentExceptions()

Seems to be a race condition problem within SendCommandRawAsync.
   at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
   at System.Collections.Generic.List`1.set_Capacity(Int32 value)
   at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
   at System.Collections.Generic.List`1.AddWithResize(T item)
   at System.Collections.Generic.List`1.Add(T item)
   at Q42.HueApi.HueClient.<>c__DisplayClass20_0.<<SendCommandRawAsync>b__0>d.MoveNext()
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
   at Q42.HueApi.Extensions.IEnumerableExtensions.<ProcessAsync>d__1`1.MoveNext()
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
   at Q42.HueApi.HueClient.<SendCommandRawAsync>d__20.MoveNext()
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at HueShift2.Control.LightManager.<Transition>d__10.MoveNext() in C:\Users\mehol\git\github\hueshift2\HueShift2\HueShift2\Control\LightManager.cs:line 120

I get an ArgumentExceptions() thrown (seemingly at random) saying "Source array was not long enough. Check the source index, length, and the array's lower bounds. (Parameter 'sourceArray')"
My executing code is this:
        await Refresh(currentTime);
        PrintScheduled();
        var commandLights = this.lights.SelectLightsToControl();
        logger.LogCommand(commandLights, target);
        var commandIds = commandLights.Select(x => x.Properties.Id).ToArray();
        if (commandIds.Length > 0) await client.SendCommandAsync(command, commandIds);

Making all my code synchronous, locking, etc... isn't solving it. Checking the source code HueResults isn't thread safe but is modified inside a parallelised Foreach within SendCommandRawAsync.

Thanks for finding this issue! I fixed it with PR #250
I will do some more testing and then release it to NuGet.

Fix is in version 3.18.1, now on NuGet


Setup chunk_size_limit

How to setup a chunk_size_limit when I devided text in chunks to embed in Vector Database
max LLM token input size
max_input_size = 500
set number of output tokens
num_output = 48
set maximum chunk overlap
max_chunk_overlap = 20
prompt_helper = PromptHelper(max_input_size, num_output, max_chunk_overlap)
index = GPTSimpleVectorIndex(documents, embed_model=embedding_llm, llm_predictor=llm_predictor, prompt_helper=prompt_helper)

if the goal is just to set chunk_size_limit, all you have to do is set it when initializing the index class
index = GPTSimpleVectorIndex(documents, chunk_size_limit=500)


Validate email on registering

Requires Ericmas001/BluffinMuffin.Protocol#18 before implementing
In our case, only check if valid format. Multiple accounts with the same e-mail is OK.

Ericmas001/BluffinMuffin.Protocol#18 is done and will be in Protocol 3.0


Nuget.Server Routes are not working with IIS Express in 2021

Describe the bug
Routes are not working

https://localhost:44380/nuget/Packages
https://localhost:44380/nuget/clear-cache

=> HTTP Error 404.0 - Not Found
The site seems to be looking for static files instead of being redirected to the corresponding conrollers.
To Reproduce
Steps to reproduce the behavior:

Follow the procedure here.
Run the site and try to browse your packages or clear the cache.

Expected behavior
I should be able to see my packages.
Screenshots

@omatrot , thanks for reporting and sorry for the slow response. NuGet.Server is in maintenance mode, and as such we fix only critical bugs. If you managed to fix the problem, please consider sending us a PR.

@omatrot , thanks for reporting and sorry for the slow response. NuGet.Server is in maintenance mode, and as such we fix only critical bugs. If you managed to fix the problem, please consider sending us a PR.


Password protect excel not working for multiple sheet

Versions

PHP version: 7.1
Laravel version: 5.6
Package version: 3.0

Description
Document level security is not working it allow me to view excel with out entering password.
While exporting excel with password for multiple sheet its allow me to edit sheets. We are using Writer::macro() method to implement security on a spreadsheet.
Reference: https://phpspreadsheet.readthedocs.io/en/develop/topics/recipes/#setting-security-on-a-spreadsheet

@pravinkhot as you are using PHPSpreadsheet methods I would suggest you open a ticket over there. There's not a lot that we can do over here for that kind of functionality.

Thanks for your reply. I will surely log this issue in PHPSpreadsheet.
PHPSpreadsheet password protect method is working fine if we are exporting Excel without implementing WithMultipleSheets interface.
But when we are trying to export excel with implementing WithMultipleSheets interface then PHPSpreadsheet password protect method not working even excel contain only one sheet in it.

Which (extending) event are you using to apply the security?

This is my calling function to create sheet.
/**
 * @return array
 */
public function sheets(): array
{
    $sheets = [];

    //Genarate Main Sheet
    $sheets[] = new CreateSheet($this->headings, $this->data, $this->sheetName, $this->needPasswordProtectExcel);
    return $sheets;
}

And create sheet class is:
class CreateSheet implements FromCollection, WithHeadings, ShouldAutoSize, WithTitle, WithEvents
{
use RegistersEventListeners;
private $headings, $data, $exportExcelPassword, $needPasswordProtectExcel;

public function __construct($headings = [], $data = [], string $sheetName = '', $needPasswordProtectExcel = true)
{
    $this->data = $data;
    $this->headings = $headings;
    $this->sheetName = $sheetName;
    $this->needPasswordProtectExcel = $needPasswordProtectExcel;
    $this->exportExcelPassword = '12345678';
}

public function collection()
{
    return collect($this->data);
}

/**
 * @return array
 */
public function headings(): array
{
    return $this->headings;
}

/**
 * @return string
 */
public function title(): string
{
    return $this->sheetName;
}

/**
 * @return array
 */
public function registerEvents(): array
{
    return [
        BeforeWriting::class  => function(BeforeWriting $event) {
               Writer::macro('setPassword', function (Writer $writer, string $password) {
                    $writer->getDelegate()->getActiveSheet()->getProtection()->setSheet(true);
                    $writer->getDelegate()->getActiveSheet()->getProtection()->setPassword($password);
                });
                $event->writer->setPassword($this->exportExcelPassword);
            }
   ];
}

}

So you are only setting it on the active sheet not on all sheets.
You shout use an AfterSheet event. And would also recommend using a Sheet macro instead.

We set password for active sheet but we create sheet and set password step by step. So when we create a new sheet, that will be the active sheet, right ?
When we use an AfterSheet event with Sheet macro it gives me error. Please refer below screen shot.

The activesheet will be the last sheet, so not all sheets.
You should remove the "getActiveSheet" method from the macro. The delegate of sheet is the phpspreadsheet sheet and that one doesn't have that method. It's already the sheet.

Document level security is not working it allow me to view excel with out entering password.

I want to use getSecurity() method. I had tried with AfterSheet event(Sheet macro) but it gives me error getSecurity() method not found. Can u guide me?

How to set workbook properties in multiple sheet like setCreator(), setWorkbookPassword() etc.

Don't you just need "$sheet->getDelegate()->getProtection()->...) ?
Workbook properties are unrelated to multiple sheets. Like the name says "book", it's all sheets together. You can use the BeforeWriting for those properties.

I'm not 100% following what doesn't work. If you want to protect the entire workbook (and not each sheet separately) you should put the event on the ExportExcel not on the CreateSheet . If you want to protect each sheet individually, you need to put the event on the CreateSheet.
You should use this event in the ExportExcel not in the CreateSheet.

Tested with:
 BeforeWriting::class => function(BeforeWriting $event) {
                $spreadsheet = $event->getWriter()->getDelegate();
                $spreadsheet->getSecurity()->setLockWindows(true);
                $spreadsheet->getSecurity()->setLockStructure(true);
                $spreadsheet->getSecurity()->setLockRevision(true);
                $spreadsheet->getSecurity()->setWorkbookPassword('123');
                $spreadsheet->getSecurity()->setRevisionsPassword('123');
            },
\Maatwebsite\Excel\Events\AfterSheet::class => function (AfterSheet $event) {
                $protection = $event->getSheet()->getDelegate()->getProtection();

               $protection->setPassword('PhpSpreadsheet');
               $protection->setSheet(true);
               $protection->setSort(true);
               $protection->setInsertRows(true);
               $protection->setFormatCells(true);
            },

and works fine for me. Do note that

"Securing" doesn't mean preventing the file from being viewed, it means preventing parts of the data in the spreadsheet from being changed

(source: https://stackoverflow.com/questions/45894378/securing-xlsx-file-made-with-phpspreadsheet-doesnt-work)


Document installation via helm chart

Fixes #1040.
Signed-off-by: Ahmet Alp Balkan<EMAIL_ADDRESS>[skip ci]

LGTM. Thanks!


Add about us page #44 (mrprayag077)

Related Issue
Closes: #44  Add about us page (mrprayag077)
Description of Changes
created a new ABOUT US page.

[x] added feature of webiste.

[x] added header.

[x] whatusers get.

Screenshots
https://github.com/apoorvaron/Shorty/assets/99162236/1fcbdfb1-4087-4516-bdae-d46785ee172b

@Mrprayag077
Point 2) Replace video with Image only , remove video part

Point 3) you changed image but Styling of Images also should change (like border or shadow ) just enhance it
Point 6) Create it asap
otherwise all looks good 🎉

@apoorvaron  updated the requested changes, I think now it looks perfect too much styling will make it an over-make-up look. I feel its a good simple for Users

@Mrprayag077 Merged. Nice work 🎉

@Mrprayag077 Merged. Nice work 🎉

looking for more contributions 😃

@Mrprayag077 check another issues , if assigned person is inactive n you want to work on that , you ping me. I will assign you

@Mrprayag077 check another issues , if assigned person is inactive n you want to work on that , you ping me. I will assign you

SURE SIR


Logging out breaks in React Native

AsyncStorage requires values to be strings and we are currently setting null. See this line.
We probably need to JSON stringify and parse values or something.

Can you also post an example of using dribbble auth or any other provider, using React Native?

Yup we'll post something up when it's ready. Like we talked about in Slack (which I think was after you posted this) we have somethings to work out to support OAuth on mobile. It currently supports authenticating if you are able to get the access_token already but if you can't then we have some work to do still.


Configuring autoscaling of broker pods.

Is your feature request related to a problem? Please describe.
We can manually scale up and scale down artemis brokers via ActiveMQArtemis custom resource. But when I add horizontal pod autoscaling to artemis statefulset, initially brokers willl be scaled and after the scaling ,the operator will scale down to the number specified in ActiveMQArtemis CR. So HPA tries to bring up more pod and ActiveMQArtemis CR tries to bring down pods one after another.
Describe the solution you'd like
I would like to have Kubernetes handle autoscaling the artemis pods based on resources and Artemis operator manage the message migration when pod goes down. We can either have some fields in ActiveMQArtemis CR to mention HPA details or have a different custom resource for autoscaling.
Additional context
I didn't find any detail on HPA autoscaling in the documentation. If I miss something, please let me know.

@sachinsaju could you explain why the horizontal pod autoscaling is required in your use case?

I think we should support the scale sub resource. Particularly for the scale to zero use case, where this is a single broker that can be auto scaled between 0 and 1 with the same PV.
https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#scale-subresource

the HPA use case seems more involved, with metrics etc, and to make it work there would need to be a cluster service that can expose all brokers. As a general rule, partitioning is necessary to have brokers work better at scale with point to point messaging. For multicast, there can be benefits with bridges/federation rather than a plain cluster. this may be non trivial to configure.
To enable the possibility of HPA we need to come up with a selector path, should it contain the ArtemisCR name?
https://book.kubebuilder.io/reference/generating-crd.html?highlight=subre#scale

@brusdev There is chance of large number of active queues and messages potentially in my use case. Therefore, If pods can be scaled up or down based on load, it would be helpful . In that way , I can ensure better load balancing to artemis pods(thereby increasing overall performance of apps). HPA is a common feature in most of the k8s tool installations. We can avoid manual scale up or scale down.

https://github.com/artemiscloud/activemq-artemis-operator/pull/526 via support for a scale subresource will get the ball rolling on this capability.


Updated to work with Padrino

Fixes #75
Tested and works.  Might want to organize the load_adapter into its own file, thoughts?

Hey @cj, what if I only took the #load_adapter refactor, and then any non-rails app can explicitly call that method? That way, foreigner requires no knowledge of other frameworks.

See 002e837e41ce07a009a9a39700200686a105d124


Service's

Please add more services like phonepe paytm Google pay freecharge mobikwik e.t.c online services like phone pe red buss irctc and e.t.c

Hi @Teamolduser , Thanks for the feedback, I am already working on it, added a few of them, and will push new updates soon!
Thanks

Thanks for adding it bro and and thanks bro


Add org.apache.httpcomponents httpcore for mvn install

Hi,
when i mvn install in my mac 10.13.2,it can not compile,so i add httpcore in these poms which can not compile, resolve it.

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! :smile:

I have agree CLA

I think we can close this?

Yes, I'm unable to reproduce the problem.


ARM bug when starting map containers and build crash (Jetson Xavier)

Bug description
When I try to build Apollo on Jetson Xavier, I face the error docker: Error response from daemon: No such container: apollo_map_volume-sunnyvale_big_loop_root., which is stopping the creation of the apollo_dev container (main problem). I also have other container errors (like Error response from daemon: manifest for apolloauto/apollo:paddlepaddle_volume-aarch64-latest not found or Error response from daemon: manifest for apolloauto/apollo:local_third_party_volume-aarch64-latest not found). I just commented the lines where the script tries to download and build the containers. I suppose these images are not ready for ARM yet. Next, you have the complete log with all the errors:
[INFO] Start pulling docker image apolloauto/apollo:dev-aarch64-20170927_1111 ...
dev-aarch64-20170927_1111: Pulling from apolloauto/apollo
Digest: sha256:10fc9daa7699f30650df05b9f3aff9762a236433e089e8755dcb0f6cfb7baab0
Status: Image is up to date for apolloauto/apollo:dev-aarch64-20170927_1111
map_volume-sunnyvale_big_loop-latest: Pulling from apolloauto/apollo
Digest: sha256:1fefbec96ea5cd5ae823d37c3de32a2a1df65b6ad729cccb1e6fa226808f7b5e
Status: Image is up to date for apolloauto/apollo:map_volume-sunnyvale_big_loop-latest
921dde9cde2fbf60edfb1a7aeb0b0e689833adf5195fe6c190e5715e621285eb
map_volume-sunnyvale_loop-latest: Pulling from apolloauto/apollo
Digest: sha256:1337ca5d357f33318e38368b6218d343f6138c63a9bb491175ca7cdd39c1a789
Status: Image is up to date for apolloauto/apollo:map_volume-sunnyvale_loop-latest
4f8cacf0bed57e4ae96c8f81e078e74c770d58f979d334a21746cde04bb3b519
map_volume-sunnyvale_with_two_offices-latest: Pulling from apolloauto/apollo
Digest: sha256:816352332f66754fa9219911f0368d542315ab5e652610ddfecad4f48eba94d2
Status: Image is up to date for apolloauto/apollo:map_volume-sunnyvale_with_two_offices-latest
1c414de655e27794c5079f22b5580b62b52766ee9ffd8a10b196a7efd8cf64f6
map_volume-san_mateo-latest: Pulling from apolloauto/apollo
Digest: sha256:425502a444e3964a4c4ca1b18a422d5fa24ab89603e1dd7660fbe88a3ba8764c
Status: Image is up to date for apolloauto/apollo:map_volume-san_mateo-latest
f583d5bb2a1ddcaa1d1924032454208ca7c7667924e22f636397aefb25204935
yolo3d_volume-aarch64-latest: Pulling from apolloauto/apollo
Digest: sha256:a7c9c328ba1ab941aeb760f1b5f1f2d9dda2180530ceba48be4e6cab176f9afa
Status: Image is up to date for apolloauto/apollo:yolo3d_volume-aarch64-latest
f31d2542d6a69647d614681bd69b67f871a4fe8bb10a46847191897796c2103b
localization_volume-aarch64-latest: Pulling from apolloauto/apollo
Digest: sha256:41db44e33966cf16fdf90cc59d87a5282ec01f0c3c08a9efb337b8c5269da697
Status: Image is up to date for apolloauto/apollo:localization_volume-aarch64-latest
9a77aae6cb9bf12ae96701c43c50c48fddde84243dce666ee31827d684a82349
Error response from daemon: manifest for apolloauto/apollo:paddlepaddle_volume-aarch64-latest not found
Unable to find image 'apolloauto/apollo:paddlepaddle_volume-aarch64-latest' locally
docker: Error response from daemon: manifest for apolloauto/apollo:paddlepaddle_volume-aarch64-latest not found.
See 'docker run --help'.
Error response from daemon: manifest for apolloauto/apollo:local_third_party_volume-aarch64-latest not found
Unable to find image 'apolloauto/apollo:local_third_party_volume-aarch64-latest' locally
docker: Error response from daemon: manifest for apolloauto/apollo:local_third_party_volume-aarch64-latest not found.
See 'docker run --help'.
Cannot find device "can0"
Cannot find device "can0"
modprobe: FATAL: Module nvidia not found in directory /lib/modules/4.9.108-tegra
modprobe: FATAL: Module nvidia-uvm not found in directory /lib/modules/4.9.108-tegra
[INFO] Starting docker container "apollo_dev_root" ...
++ local_volumes
++ volumes='-v /scratch/malcon/apollo:/apollo              -v /home/malcon/.cache:/root/.cache'
++ case "$(uname -s)" in
+++ uname -s
++ volumes='-v /scratch/malcon/apollo:/apollo              -v /home/malcon/.cache:/root/.cache -v /dev:/dev                                 -v /media:/media                                 -v /tmp/.X11-unix:/tmp/.X11-unix:rw                                 -v /etc/localtime:/etc/localtime:ro                                 -v /usr/src:/usr/src                                 -v /lib/modules:/lib/modules'
++ echo '-v /scratch/malcon/apollo:/apollo              -v /home/malcon/.cache:/root/.cache -v /dev:/dev                                 -v /media:/media                                 -v /tmp/.X11-unix:/tmp/.X11-unix:rw                                 -v /etc/localtime:/etc/localtime:ro                                 -v /usr/src:/usr/src                                 -v /lib/modules:/lib/modules'
+ docker run -it -d --privileged --name apollo_dev_root --volumes-from apollo_map_volume-sunnyvale_big_loop_root --volumes-from apollo_map_volume-sunnyvale_loop_root --volumes-from apollo_map_volume-sunnyvale_with_two_offices_root --volumes-from apollo_map_volume-san_mateo_root --volumes-from apollo_yolo3d_volume_root --volumes-from apollo_localization_volume_root -e DISPLAY=localhost:10.0 -e DOCKER_USER=root -e USER=root -e DOCKER_USER_ID=0 -e DOCKER_GRP=root -e DOCKER_GRP_ID=0 -e DOCKER_IMG=apolloauto/apollo:dev-aarch64-20170927_1111 -e USE_GPU=0 -v /scratch/malcon/apollo:/apollo -v /home/malcon/.cache:/root/.cache -v /dev:/dev -v /media:/media -v /tmp/.X11-unix:/tmp/.X11-unix:rw -v /etc/localtime:/etc/localtime:ro -v /usr/src:/usr/src -v /lib/modules:/lib/modules --net host -w /apollo --add-host in_dev_docker:<IP_ADDRESS> --add-host jetson-0423418004135:<IP_ADDRESS> --hostname in_dev_docker --shm-size 2G --pid=host -v /dev/null:/dev/raw1394 apolloauto/apollo:dev-aarch64-20170927_1111 /bin/bash
docker: Error response from daemon: No such container: apollo_map_volume-sunnyvale_big_loop_root.
See 'docker run --help'.
+ set +x
[ OK ] Finished setting up Apollo docker environment. Now you can enter with:
bash docker/scripts/dev_into.sh
[ OK ] Enjoy!

To Reproduce
Just execute bash docker/scripts/dev_start.sh on an ARM device.
Solution for the main problem
The problem is that the script does not take into account the architecture when creating the map containers, so it is trying to create them with the x86 images. I just added this VOLUME_VERSION="aarch64-${VOLUME_VERSION}" between lines 175-176 (when it is checking the architecture), as you can see here:
...
170 | if [ ! -z "$VERSION_OPT" ]; then
171 |     VERSION=$VERSION_OPT
172 | elif [ ${ARCH} == "x86_64" ]; then
173 |     VERSION=${VERSION_X86_64}
174 | elif [ ${ARCH} == "aarch64" ]; then
175 |     VERSION=${VERSION_AARCH64}
176 |     VOLUME_VERSION="aarch64-${VOLUME_VERSION}"
177 | else
...

At least it worked for me.
Build crash
However, it still crashing when building Apollo with bash apollo.sh build.
System check passed. Build continue ...
[WARNING] ESD CAN library supplied by ESD Electronics does not exist. If you need ESD CAN, please refer to third_party/can_card_library/esd_can/README.md.
Running build under CPU mode. No GPU is required to run the build.
[INFO] Start building, please wait ...
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling --host_jvm_args=-XX:-UseParallelGC
ERROR: error loading package '': Encountered error while reading extension file 'bazel/grpc_deps.bzl': no such package '@com_github_grpc_grpc//bazel': Error downloading [file:/home/tmp/v1.14.2.tar.gz] to /home/user/.cache/bazel/_bazel_user/540135163923dd7d5820f3ee4b306b32/external/com_github_grpc_grpc/v1.14.2.tar.gz: /home/tmp/v1.14.2.tar.gz (No such file or directory).
============================
[ERROR] Build failed!
[INFO] Took 2 seconds
============================

Currentlly，apollo team has not fully test all modules on arm,only build pass cyber module.
please refer to this CyberRT_Docker.md
in one word:
use cyber_start.sh instead of dev_start.sh

Thank you for your quick response.
I followed the guide as you suggested. The first problem I had appeared when compiling Cyber RT with bash apollo.sh build_cyber:
ERROR: (07-04 09:11:59.914) /apollo/third_party/tf2/BUILD:6:1: C++ compilation of rule '//third_party/tf2:tf2' failed (Exit 1).
third_party/tf2/src/buffer_core.cpp: In instantiation of 'int tf2::BufferCore::walkToTopParent(F&, tf2::Time, tf2::CompactFrameID, tf2::CompactFrameID, std::__cxx11::string*, std::vector<unsigned int>*) const [with F = tf2::TransformAccum; tf2::Time = long unsigned int; tf2::CompactFrameID = unsigned int; std::__cxx11::string = std::__cxx11::basic_string<char>]':
third_party/tf2/src/buffer_core.cpp:1541:66:   required from here
third_party/tf2/src/buffer_core.cpp:488:11: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     if (m < (int)reverse_frame_chain.size()) {
           ^
third_party/tf2/src/buffer_core.cpp: In instantiation of 'int tf2::BufferCore::walkToTopParent(F&, tf2::Time, tf2::CompactFrameID, tf2::CompactFrameID, std::__cxx11::string*, std::vector<unsigned int>*) const [with F = tf2::CanTransformAccum; tf2::Time = long unsigned int; tf2::CompactFrameID = unsigned int; std::__cxx11::string = std::__cxx11::basic_string<char>]':
third_party/tf2/src/buffer_core.cpp:332:75:   required from 'int tf2::BufferCore::walkToTopParent(F&, tf2::Time, tf2::CompactFrameID, tf2::CompactFrameID, std::__cxx11::string*) const [with F = tf2::CanTransformAccum; tf2::Time = long unsigned int; tf2::CompactFrameID = unsigned int; std::__cxx11::string = std::__cxx11::basic_string<char>]'
third_party/tf2/src/buffer_core.cpp:761:67:   required from here
third_party/tf2/src/buffer_core.cpp:488:11: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
cc1plus: some warnings being treated as errors

I could solve the problem changing the error line with:

Due to the apollo 5.0 has released，apollo team has not methion aarch64, so I guess recently apollo team would not release the docker images with all modules work.Currently if you want to build all modules,you must install the dependencies into docker. One module,by one module.first build_control,then build_planning,build_pnc.etc
Currentlly I just test it a little bit. I'm Waiting Jetson JetPack 4.2.1 released,then I would working on this,and may share some scripts.

@gengqx Have you ever bring up Apollo 5.0 on aarch64 successfully?

Sorry，I did not working on this recently.

This issue should have been fixed in master HEAD.
The  cyber.aarch64 image works fine, and you can build cyber by running ./apollo.sh build cyber or ./apollo.sh build_opt cyber on aarch64.
For dev.aarch64 image, there are 2~3 packages not installed yet, blocking build of the whole Apollo project on aarch64.


Sync with master (4fa3e9fae1).

Signed-off-by: Piotr Sikora<EMAIL_ADDRESS>

@bianpengyuan could you test your WASM extension against this PR? Thanks!

@PiotrSikora Sure, will let you know when I finish the test.

@bianpengyuan did you finish the test? :)

@PiotrSikora Yes just finished and found this bug: https://github.com/envoyproxy/envoy-wasm/pull/62 Everything else works fine.


Added amar-yadav to Contributors list

@amar-yadav, I'm quite elated about your PR. I wanna evolve this project to addresses various problems faced by first time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a PR and learned that I accepted it?

The problem that I'm still facing with this whole open source contribution concept is how do I select the right project to contribute to? I mean for any project that I want to get involved in, there's already so many contributors(more experienced and probably better skilled than me) which makes me feel kinda useless.(in the sense that I'm desperately trying to poke into somewhere I'm not needed) Moreover the project is already at such an advanced stage of progress that it seems all the problems that I could solve with my limited expertise have already been solved. There's no proper guidance available about how to get up to speed with the open source community. For example where do I start as a complete novice?

@amar-yadav, I can relate to your feelings. I've been there once. You know what, everybody has been there once. Only way to get out of there is to start with something and be consistent in it.
Lemme try to answer your questions.

how do I select the right project to contribute to?

Finding where your heart lies always takes time. I'd urge you to start with something and see if it really excites you. If not, you can take up another one

I mean for any project that I want to get involved in, there's already so many contributors(more experienced and probably better skilled than me) which makes me feel kinda useless.

Just because some project is in a mature state doesn't mean there is nothing for you to do there.
Having said that, It might be easier and more interesting to get in to a project in the beginning.

There's no proper guidance available about how to get up to speed with the open source community. For example where do I start as a complete novice?

I can actually help you here. we have a slack community just for this purpose. You can join it by going to https://firstcontributions.herokuapp.com. We have people there (including me) who can spend some time to help/mentor beginners. We're also trying to pull in project maintainers and core contributors there so anybody can easily reach out to them. They can also share their grand vision of their project


Enhance readableColor to support preferences

We've been using Polished more and more in our current project, and find it particularly useful for accessibility.
The problem
readableColor will return a color that is not accessible whenever the user-supplied lightReturnColor/darkReturnColor does not contrast strongly enough with color.
This is not an issue if the user does not supply lightReturnColor/darkReturnColor as black/white are returned.
Proposal
To resolve this, I propose that we add strict flag as a fourth parameter, that ensures the function always returns an accessible color (as per WCAG AA).
readableColor(color: string, lightReturnColor: string, darkReturnColor: string, strict: boolean)

With this flag, if eitherlightReturnColor or darkReturnColor do not meet contrast requirements against a given color, black or white would be returned instead.
This would not be a breaking change.
Possible change for next major
In the next major release of polished, this could become the default setting and strict could be removed.

If you think this change is acceptable, I'll raise a PR. Feedback and other thoughts welcome.

@mrmckeb Definitely like this idea and agree with the staged rollout approach. We would gladly accept a PR for this.

Thanks @bhough, I've created PR #484 and welcome any feedback.

@bhough should I close this off now? Or will you close when you release? Thanks again.

@mrmckeb We will close it once it is actually released.


Update s3, sdk-core, sqs to 2.17.257

Updates

software.amazon.awssdk:s3
software.amazon.awssdk:sdk-core
software.amazon.awssdk:sqs

from 2.17.191 to 2.17.257.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "software.amazon.awssdk" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #537.


C API

In order for Mica to reach the larger ecosystem of programs that are written in languages other than Rust, we'll need to create a C API.

This can prove quite useful https://github.com/eqrion/cbindgen


Simplicity does not work in HTML5

I removed tags, saved again. There is something very wrong with the file, but what?
Works in Firefox, not in Chrome...

What tags and what file?

https://viller.men/soundboard/api/samples/music/macroform/simplicity.ogg

It does work when I download the file and open it in Chrome again. So there is something wrong with the delivery of the server.
I think the best thing we can do to avoid issues like this is to stop delivering the files through a PHP script using readfile(). It's probably better to directly link to the files and have Apache deel vit it. This is the way most API's work anyway, they give a direct link to a file.

Then we should probably symlink /public/api/samples to /samples

Well, I'd say the files aren't part of the API, so they shouldn't be under public/api. Instead I'd symlink/htaccessify public/samples or public/files to the samples directory.

Fair 'nuf.

Fixed in 53eab311f3d32388b65351433888685bee4ad60b.
I did not use a symlink because that requires adminstrator rights, and I couldn't make .htaccess work because of the public directory being symlinked. I went with a PHP router instead.


Allow configuration of key bindings for actions.

Is your feature request related to a problem? Please describe.
Not related to a problem.
Describe the solution you'd like
Allow users to set their own keymaps, to enable users with different keyboards to switch the keys for their own setup.
Could also involve a configuration screen in the future for letting users easily configure the key mappings.
Additional context
Would like to contribute making this.

Hola!
This would be a nice feature to add!
You can sure go ahead and work on this if you like. And you may reply to this thread if you need more info.
I've explained how config files are loaded in gmd in #36.


Add past events to the website

This PR adds past versions of the conf.techmids.io website to the current website, so that people can get access to the pages for past events to see who spoke at them, what they spoke about, and so on. Most conferences have this, and it's a very useful historical record. The goal here is that making sure that past versions of the conference are made available with close to zero burden on the website maintainers. The PR comes in three parts.
Part 1
(The two "add past version of website" commits)
The websites for the October 2022 and June 2023 events. These websites are pure static HTML with no outside dependencies and no build process; each is an independent folder of static HTML/CSS/JS stored in public/past. This is done so that they are self-contained; changes to the build process of the current website will not affect these past websites at all, because they've already been built to static HTML; they are not rebuilt on each change. This means that changing the version of next.js (or changing away from next.js entirely) and the like will not stop these past versions from working.
Part 2
(The "link-to-the-past" commit)
A script which generates these static versions of the website, which is called link-to-the-past. It is documented in detail in link-to-the-past/README.md, but the basic idea is this: there will be a day when the October 2023 event (for example) is over and you want to start changing the website for a 2024 event. On that day, before you make any changes to refer to the 2024 website, run npm run link-to-the-past 2023-10. This will bundle up the website as it currently looks into a static version of itself at past/2023-10. Then go ahead and make whatever changes are deemed necessary. This script is all inside the link-to-the-past folder, and is pure command-line nodejs; it doesn't run servers or anything like that, and you only run it once to create the static version, not every time.
Part 3
(The "Simple past-events page" commit)
A /past-events page on the website itself, linked from the footer. This page is built at build-time and adds a simple link to each of the past events by inspecting the filesystem. This is next.js stuff, and it is entirely possible that someone more expert with next.js itself could do this a more efficient or elegant way, and if that person exists and has the time then I would be happy to have them do this instead.

(note that the Past Events page could do with attention from a designer of some kind, which is not me. But that probably isn't a blocker.)

Lots of the images are not loading (looking at the preview link)
Could we bundle the images from the site at build time into the same folder and change any img links to be a child of the folder?

I'll take a look at a design for the past events page once this goes live

I get this locally when trying to run npm run link-to-the-past 2023-10 (and node link-to-the-past/link-to-the-past.mjs too):
> node link-to-the-past/link-to-the-past.mjs
file:///Users/matt/Dev/sil/conf.techmids.io/link-to-the-past/paths.mjs:13
        throw new Error(
              ^

Error: Expected to find the next config in /Users/matt/Dev/sil/conf.techmids.io/next.config.js, but we didn't.
This isn't supposed to happen, and is a bug in this script.
    at get_paths (file:///Users/matt/Dev/sil/conf.techmids.io/link-to-the-past/paths.mjs:13:15)
    at main (file:///Users/matt/Dev/sil/conf.techmids.io/link-to-the-past/link-to-the-past.mjs:16:25)
    at file:///Users/matt/Dev/sil/conf.techmids.io/link-to-the-past/link-to-the-past.mjs:36:1

Lots of the images are not loading (looking at the preview link)
Could we bundle the images from the site at build time into the same folder and change any img links to be a child of the folder?

Huh, I hadn't noticed the logo images, good catch. The issue there is that the images are bundled into the folder (https://conf-techmids-io-git-fork-stuartlangridge-main-tech-mids.vercel.app/past/2022-10/fusion-events.png exists, for example), but that the img link in the page wasn't updated to make it a relative link when next made the static build. What I think is best to do there is to manually patch the image links in the static build for that bundled static site, and I have now added this to the PR.

The next.config.js file it references does exist...

Well, that's not supposed to happen (just like it says :)) Sorry about that @mattandrews -- I don't know what's causing the problem, but I have at least poked the script to relate what the error actually is when that happens so at least we can see what's up. Can you run it again?

Done! Got this:
(The actual error we got was this: TypeError: Cannot read properties of undefined (reading 'R_OK'))

Lots of the images are not loading (looking at the preview link)
Could we bundle the images from the site at build time into the same folder and change any img links to be a child of the folder?

Huh, I hadn't noticed the logo images, good catch @Waterdrips. The issue there is that the images are bundled into the folder (https://conf-techmids-io-git-fork-stuartlangridge-main-tech-mids.vercel.app/past/2022-10/fusion-events.png exists, for example), but that the img link in the page wasn't updated to make it a relative link when next made the static build. What I think is best to do there is to manually patch the image links in the static build for that bundled static site, and I have now added this to the PR.

You may be able to specify a base path on build?

@mattandrews what? how can that not work? What does node -e 'console.log(require("node:fs/promises").constants.R_OK)' say?

Same thing: TypeError: Cannot read properties of undefined (reading 'R_OK') – some random comment here suggests it got deprecated? https://github.com/nodejs/node/issues/8044
I'm on Mac in case that adds anything...

> node -e 'console.log(require("node:fs").constants.R_OK)'
4

... promises might be your issue here

You may be able to specify a base path on build?

I do specify a base path on build :-) Most of the links to things do indeed get patched up, but those image links don't. I don't know why; someone who knows more about next.js may do. However, the advantage with dumping the sites to static is that we don't actually have to work this out immediately; it's OK to patch up the static HTML to make it work like I did, because then it stays fixed. A patch to make next.js better about fixing up such image links in the future when it exports to static would be a useful thing for someone to work on at some point if it becomes annoying, though. It looks like the image links are fixed in the vercel preview now, anyway, as expected, so that's good.

... promises might be your issue here

weird, I don't get why it still works here, since it seems to have been dropped yonks ago. Anyway, PR updated to get the stuff from just fs and that should work now, I think. Thank you!

Backing up the next.config.js before we fiddle with it...
Written our custom link-to-the-past config
Moving the 'past' folder out of the way, from /Users/matt/Dev/sil/conf.techmids.io/public/past to /Users/matt/Dev/sil/conf.techmids.io/link-to-the-past/temp_past
Confirming that we can write to the output directory /Users/matt/Dev/sil/conf.techmids.io/link-to-the-past/export
There was an error, sorry.
I am attempting to restore things after the error.
Moving the 'past' folder back, from /Users/matt/Dev/sil/conf.techmids.io/link-to-the-past/temp_past back to /Users/matt/Dev/sil/conf.techmids.io/public/past
I shall now abort. The error in the script was this:
Error: We cannot write to /Users/matt/Dev/sil/conf.techmids.io/link-to-the-past/export. This is not supposed to happen, and is a bug in this script.
    at assure_output_dir (file:///Users/matt/Dev/sil/conf.techmids.io/link-to-the-past/make-changes.mjs:38:19)
    at main (file:///Users/matt/Dev/sil/conf.techmids.io/link-to-the-past/link-to-the-past.mjs:23:15)

Export directory exists and I just made it 777 (and tried running the script as sudo), same error... sorry!
(LOVED the ascii art!)

same error... sorry!

...for the same reason. I have, this time, checked that there's nowhere else I'm using fs.constants too :)

It did things for a while, then:
Error occurred prerendering page "/past-events". Read more: https://nextjs.org/docs/messages/prerender-error
Error: ENOENT: no such file or directory, scandir '/Users/matt/Dev/sil/conf.techmids.io/public/past'
info  - Generating static pages (11/11)

> Export encountered errors on following paths:
	/past-events
There was an error, sorry.
I am attempting to restore things after the error.
Moving the 'past' folder back, from /Users/matt/Dev/sil/conf.techmids.io/link-to-the-past/temp_past back to /Users/matt/Dev/sil/conf.techmids.io/public/past
I shall now abort. The error in the script was this:
undefined

Haha thanks for all the effort, I can see how much work's gone into this. Thank you!

https://conf-techmids-maxlckqug-tech-mids.vercel.app/past/2022-10/speakers/mark-perkin.html
each user page has a set of sponsors too.
We can probably get away with merging this and fixing up if it becomes an issue later?


Define engine key at load() time rather than createEngine()?

I'm running into a situation where I need to define the engine's save key after creating the redux store. I have a web app which serves different content for different 'shortcodes', i.e. example.com/<shortcode>, and I'm persisting only shortcode-specific state slices via redux-storage. In order to prevent different shortcodes' persistent state from conflicting, I'd like to use a different engine key for each shortcode.
For example, if I have /shortcodeA and /shortcodeB, and each shortcode has its own unique state.widgets slice, I want to be able to load & save shortcodeA's state.widgets using an engine key 'shortcodeA' so it doesn't conflict with shortcodeB's state under a 'shortcodeB' engine key.
Is this something that could be supported by redux-storage? Maybe the API could look something like
const load = storage.createLoader(engine);
// ...
load({
  key: 'my-save-key',
  // ... more engine options
}, store);

I'm going to play around with a few options and make a PR; anyone have any thoughts on how this should work?

redux-storage is heavily built towards redux and it's sematics / behaviour. So how do you switch the redux between those shortcodes? Is there a default case (e.g. no data loaded) and how is it handled? Or let me go through this in a few steps:

IMHO it's a good practice to have a sane redux default state for all your reducers and I'm assuming this is the case, right?
So the next thing I assume is that you app works well behaved if there is no data to be loaded besides the initial state, right?
And after all that is set you want to load the right shortcode data for the given page, right?

So why can't you use the right shortcode while creating the initial redux-storage engine?

My original reasoning for this change was that, while I can easily access the shortcode via window.location when constructing the store, I wanted to read URL params only via react-router (to be consistent about how I read URL params). My original root render call rendered something like this:

  <Provider store={store}>

      <Router history={history}>
        <Route path="/">
          <IndexRoute component={NoShortcodeError} />
          <Route
            path=":shortcode"
            component={StorageLoaderContainer}
            loadStorage={loadStorage}
          >
            {/* ... */}
          </Route>
        </Route>
      </Router>

  </Provider>

However I realized that I don't actually need to construct the store up front; I can instead just create it in a component once react-router determines the shortcode. So now I have this:
<Router history={history}>
  <Route path="/">
    <IndexRoute component={NoShortcodeError} />
    <Route
      path=":shortcode"
      component={AppContainer}
    >
      {/* ... */}
    </Route>
  </Route>
</Router>

AppContainer constructs the store in componentWillMount (with access to shortcode to use as the engine key), then calls this.setState({ store, loadStorage }) and renders
<Provider store={store}>
  <StorageLoaderContainer loadStorage={loadStorage}>
    {children}
  </StorageLoaderContainer>
</Provider>

Long story short: I no longer need to define the engine key at load() time, so I think this can be closed 😄


v0.4.3 still seem nopickup ?

The Botty v0.4.3 still seems nopickup ?
Is it right?
Thx.

I dont know what that means. You have to apply the /nopickup command by yourself. It will presist until you restart d2r.
Problem is if botty applies it everytime it runs it might actually toggel it off again when you restart botty without restarting d2r.


How to map specific ranges?

Hi,
Really appreciate all the work that's been done on this awesome library through out the years.
I'm working on an application that could really benefit from being able to map specific ranges on buffers and subresources on images. I was wondering if there was a recommneded way to use VmaAllocation and VmaAllocationInfo so I can map a range that's local to a buffer or a subresource on an image.
For example, I'd like to od the follow things:

I'd like to be able to map chunks of 4K blocks within a 64K buffer
Map just the 3rd mip map on an image
Map just the 4th slice on an image

I scanned through the source and the docs but couldn't find anything. Did I miss something?
Thanks,
Hai

Hi,
There is no such thing in VMA as there is no need for it. Mapping works on a level of whole memory blocks - VkDeviceMemory. Because Vulkan (unlike Direct3D 12) doesn't allow to map the same memory blocks multiple times, VMA maps entire memory block even when you request mapping of a single resource allocated from it, because otherwise you wouldn't be able to map another resource from the same block simultaneously. VMA then returns a pointer adjusted to an offset of a particular allocation.
Similarly, you can just map your entire resource of interest and then move the pointer by an offset to the particular region of your interest, whether it's a 4K block in a buffer or a particular subresource of your image, with offset and size fetched using vkGetImageSubresourceLayout.
Would that work for you?
Please note that vkGetImageSubresourceLayout provides information eligible for host access via mapped pointer only for LINEAR images, while using LINEAR images is slower than OPTIMAL and usually not needed. It is recommended to prepare your image data in a buffer and then do a buffer-to-image copy (transfer).

Hi Adam,
Thanks for the reply. I can definitely just move the pointer around and calculate the necessary offsets per your suggestion.
I know the behavior and limits of vkGetImageSubresourceLayout all too well :)
Cheers,
Hai


Multichain revenue seems to be off

Describe the bug
Is the revenue correct? Seems pretty crazy they are making $32M a day

https://subgraphs.messari.io/subgraph?endpoint=messari/multichain-ethereum&tab=protocol

@pietydespises @dhruv-chauhan Can you guys take a look at this?

@dhruv-chauhan on 3-10 there was a huge spike in volume (cross-referenced with here: https://scan.multichain.org/#/charts/charts-home ) could this be part of the issue?

Crazy high revenue figure is wrong and due to wrong pricing of two tokens in particular (HOGE, and GCAKE).
PR #1916 should fix this. (will take some time to sync)
@bye43 @pietydespises


Update g_memdup call to g_memdup2

Fixes this warning:
# github.com/pion/ion-sdk-go/pkg/gstreamer-sink
gst.c:57:18: warning: 'g_memdup' is deprecated: Use 'g_memdup2' instead [-Wdeprecated-declarations]
/usr/local/Cellar/glib/2.70.1/include/glib-2.0/glib/gstrfuncs.h:256:1: note: 'g_memdup' has been explicitly marked deprecated here
/usr/local/Cellar/glib/2.70.1/include/glib-2.0/glib/gversionmacros.h:1057:49: note: expanded from macro 'GLIB_DEPRECATED_IN_2_68_FOR'
/usr/local/Cellar/glib/2.70.1/include/glib-2.0/glib/gmacros.h:1144:32: note: expanded from macro 'GLIB_DEPRECATED_FOR'
/usr/local/Cellar/glib/2.70.1/include/glib-2.0/glib/gmacros.h:1112:44: note: expanded from macro 'G_DEPRECATED_FOR'

Thank you @tab1293 !


Dry-run should warn of insufficient publishing permissions

Hey there!
Earlier this week I was trying to release a series of crates from the ink! repository. I
was able to successfully perform a dry run, but when I went to actually publish the
release I ran into a permissions issue.
Turns out I wasn't an owner of one of the crates and so I wasn't allowed to publish
it.
It would be great to have cargo-release print out a warning as part of the dry-run if
you don't have sufficient permissions to publish a crate.
Tested with<EMAIL_ADDRESS>

While I agree, I don't know of a way to do this at the moment without getting into a lot of github api calls to see if people are members of a group.


PLUTO-705: Upgrade to Selenium 3

See code review commit: https://github.com/apache/portals-pluto/commit/8a0a1d02c04e143ba1dcc9aff0a7400efb5e3478 :octocat: Sent from GH.

Merged, thank you. :octocat: Sent from GH.


Makefile outputs a linux binary

The current implementation of the Makefile outputs a linux binary to the host machine, which the rest of the make targets rely on.
This binary cannot be executed on e.g. a Mac.
Maybe we should wrap the binary in a container instead, making it portable between platforms?

I've lately using gox to build bins for multiple archs easily. An example: https://github.com/jnummelin/s3-url-signer/blob/master/build.sh#L9

Haven't used gox before, but it looks quite simple. You would have to compile multiple binaries and switch in the Makefile based on the current arch, right?
Another solution could be to wrap the binary in a docker container with something like this:
FROM golang:1.11
WORKDIR /generator

COPY generator .
COPY meetups.yaml .
RUN go build -mod vendor -o bin/generator .

ENTRYPOINT ["/generator/bin/generator"]

and then replace the make target bin-generator with
generator/bin/generator bin-generator:
	docker build -t generator .

and use a docker run the other targets:
dry-run: generator/bin/generator
	docker run --rm -v $(shell pwd):/app generator:latest  --config /app/meetups.yaml --dry-run=true

That should ensure portability, and no logic in terms of switching between archs.

The easiest way to fix this is to set GOARCH/GOOS to the host's go env GOARCH/GOOS, this is like a two-line fix


The minimum expiration date for existing parcel valuation changes should be two weeks into the future.

Summary
To help prevent spam and "hit and run" purchases of parcels, we've standardized on a minimum 2 week expiration date on changes to parcel valuations. This validation should be applied and displayed on the Cadastre, but also enforced in the smart contract (separate ticket as needed). This validation is being calculated incorrectly currently. It appears to be a 1 day minimum (see screenshots).

Closing with "wontfix" label because of the move to streaming network fee payments. Issue is no longer applicable.


[FEATURE] - auto bump with build metadata

Is your feature request related to a problem? Please describe.
If there are no feature/fix/BREAKING-CHANGE commit since the latest version cog bump --auto will fail saying no commit were found to bump the version.
This is not convenient if you have some refactor, ci, test, etc and you still want to create/deploy a new version.
Describe the solution you'd like
This could be addressed adding build metadata to the version number (only when there is no version bump).
The metadata format could look like this:
{tag}+sha.{HEAD}
1.0.0+sha.g7d9448e

sha.{sha} should point to the head commit when performing the release
the changelog should be modified to update the version (not create a new one)

Example:

current version 1.0.0
2 refactor commits since 1.0.0
running an auto bump should bump to 1.0.0+sha.g7d9448e (assuming the latest commit is g7d9448e)
the changelog should be updated so the 2 commits are included in the 1.0.0 section

Question:
Would it be  better to have this has the default behavior or to authorize "metadata bump" with a new flag ?

I'm wondering if the user shouldn't just manually select bump type anyway in such cases 🤔

Yep, this is out of the SemVer spec scope, closing now


Month change issue on initial load

On demo page, on initial load for November if you try to change the month forward it jump directly to January, if go back you can see December, the issue is just verifiable on initial load.

The demo page code hasn't been updated in a while I'll be sure to fix that! Thanks.


GEODE-8505: Upgrade netty from 4.1.48 to 4.1.52

Thank you for submitting a contribution to Apache Geode.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ ] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

[ ] Has your PR been rebased against the latest commit within the target branch (typically develop)?

[ ] Is your initial contribution a single, squashed commit?

[ ] Does gradlew build run cleanly?

[ ] Have you written or updated unit tests to verify your changes?

[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:
Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to<EMAIL_ADDRESS>

as a general rule for bumping dependencies, git grep 4\\.1\\.48 for everywhere the version appears so you don't miss any files


Error: 'KeyValuePair' is not a member of 'esphome :: api'

Hello,
I am trying to use a nodeMCU + RC522.
When I try to compile and upload in esphome, I get the following error:
src / door_lock_rfid.h: 34: 12: error: 'KeyValuePair' is not a member of 'esphome :: api'
Any ideas?
Thank you

Same problem here. In an older version of ESPHome it compiled fine. I guess the code in "door_lock_rfid.h" needs an update.

Hey, I fixed code, now it works with newest ESPhome


Allow ipv{4,6} routes when using bridged security.ipv{4,6}_filtering

Changes the firewall interface for the bridge filter setup and and teardown to accept a slice of networks. These are passed in by the bridged nic device from it's settings and handled by each firewall driver accordingly.
Closes #9878

@tomponline could you please take a look at this and let me know what you think? The container_devices_nic_bridged_filtering test fails when any ipv{n}.routes or ipv{n}.routes.external are added.
I'm beginning to wonder if it is ok to simply add multiple rules. For example, say we have one nftables rule:
iifname "eth0" ether type ip ip saddr != <IP_ADDRESS>/8 drop

It's now clear that frames are dropped where the source address is not 10.x.x.x.
If we add another rule, say
iifname "eth0" ether type ip ip saddr != <IP_ADDRESS>/24 drop

Then I think requests from 22.134.10.x are still dropped because they are not in the subnet of the <IP_ADDRESS>/8 rule above.
Perhaps the rules need to be rewritten in such a way as to accept from each subnet first, then discard any that have not matched any rules.

Perhaps the rules need to be rewritten in such a way as to accept from each subnet first, then discard any that have not matched any rules.

Yep thats whats going to be needed I think. Or if you can use an nftables variable "set" (not a vmap) then that might make things easier. E.g. this is from my home focal firewall ruleset: define int_net4 = {<IP_ADDRESS>/24,<IP_ADDRESS>/24} - this maybe be able to be negated in a rule.

FYI I've done this for the xtables driver but not yet for nftables.

Yeah I specified that on purpose to show its not used, but im not
particular bothered either way :)
On Tue, 8 Mar 2022 at 11:32, Mark Laing @.***> wrote:

@.**** commented on this pull request.
In lxd/firewall/drivers/drivers_nftables.go
https://github.com/lxc/lxd/pull/9953#discussion_r821576852:

@@ -386,7 +386,7 @@ func (d Nftables) instanceDeviceLabel(projectName, instanceName, deviceName stri

}
// InstanceSetupBridgeFilter sets up the filter rules to apply bridged device IP filtering.
-func (d Nftables) InstanceSetupBridgeFilter(projectName string, instanceName string, deviceName string, parentName string, hostName string, hwAddr string, IPv4 net.IP, IPv6 net.IP, _ bool) error {
+func (d Nftables) InstanceSetupBridgeFilter(projectName string, instanceName string, deviceName string, parentName string, hostName string, hwAddr string, allowedIPNets []*net.IPNet, parentManaged bool) error {
IIRC I changed this on the interface with intellijs "change signature"
refactoring tool so something to watch out for 👍
—
Reply to this email directly, view it on GitHub
https://github.com/lxc/lxd/pull/9953#discussion_r821576852, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACEM5NYGYRXIKIJGEPMMP3U643FJANCNFSM5O7CENOA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

@markylaing tests look unhappy im afraid.

jenkins: test this please

Excellent thanks, if you're happy this is working with xtables and nftables, I'm happy to merge.

There was a slight problem with xtables that I have now fixed. Essentially if security.ipv4_filtering=true and security.ipv6_filtering=false then IPv6 traffic needed to be explicitly accepted by ebtables, else it would be dropped by the final rule (which applies when any IPv4 or IPv6 networks are passed in and drops all remaining traffic). The same is true vice versa for IPv4.
A consequence of this is that some IPv{4,6} rules are generated when IPv{4,6}Nets is nil. So I needed to add an extra call back to InstanceClearBridgeFilter to clear any total protocol filters (previously if IPv{4,6}Nets was nil we set it to an empty slice and made the call once, but we can't do that anymore because rules are generated when it is nil). I'm sure we can optimise this but I think that should be in a separate PR.


ETL-Test does not generate correctly

Tilo:
Dear Seddryck,
while using genbi a template with an ETL-setup generates invalid XML.
The template contains:
    <setup>
        <etl-run name="XYZ.dtsx" path="C:\<mypath>\NBi Framework\"></etl-run>
    </setup>
generates
    <setup>
      <etl-run path="C:\<mypath>\NBi Framework\" name="XYZ.dtsx" bits-32="false" timeout="0" />
    </setup>

the property "timeout" is not valid. The test suite renders invalid.
Is it possible to reproduce this issue?
Best regards,
Tilo

Hello Tilo,
It's indeed a bug. I've build a bug fix and it's available at https://ci.appveyor.com/project/CdricLCharlier/nbi/build/<IP_ADDRESS>054


tailwindcss v1 & tailwind.macro v1

When v1 for both packages are published I can merge this! :)

As I switched this starter of to a theme (and the theme uses Theme UI + Tailwind preset) this branch is now obsolete. The theme already has the latest Tailwind config built-in.
https://github.com/LekoArts/gatsby-starter-portfolio-cara/pull/112


7 create an apk release of the android app

New feature

Route to {WEB_URL}/client.apk which download client.apk build by the client_mobile
Remove useless binary files

Updated feature

Improved Dockerfile clarity and efficiency

Bug fixed

There is a lot of file '.bin', are they really useful ?

There is a lot of file '.bin', are they really useful ?

These binary files are delete, not add.


Update Set-PnPTenant.md Removed duplicate description entry

-CoreLoopSharingCapability was described 2 times
Before creating a pull request, make sure that you have read the contribution file located at
https://github.com/pnp/powerShell/blob/dev/CONTRIBUTING.md
Type

[ ] Bug Fix
[ ] New Feature
[ ] Sample

Related Issues?
Fixes #X, partially fixes #Y, mentioned in #Z, etc.
What is in this Pull Request ?
Please describe the changes in the PR.
Guidance

You can delete this section when you are submitting the pull request.*
Please update this PR information accordingly. We use this as part of our release notes in monthly communications.
Please target your PR to Dev branch. If you do not target the Dev branch we will not accept this PR.

Well spotted, thanks @Studermarc !


Open Specific View when Opening App from Notification

Is there a way to Open Specific View when Opening App from Notification?
Thanks a lot

@softBarbarian I think you basically want to do the same thing that is detailed in issue #81. You don't have to use a url you can use any key. You can decide how to redirect to a new view based upon incoming push notification data. Does this answer your question?

Closing, no input for almost a month.


feat: add output command

Related Issues
Proposed Changes:
Add functions to activate and deactivate outputs
Testing:
Extra Notes (optional):
Checklist

[X] Related issues and proposed changes are filled
[X] Tests are defining the correct and expected behavior
[X] Code is well-documented via docstrings

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

32 of 32 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
384

Relevant Lines:
384

💛  - Coveralls


Blank page and missing app in webpart selection menue after adding spfx package to app-catalog and click on 'get update' it in sitecollection contents

Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested

[X] 💥 Internet Explorer
[X] 💥 Microsoft Edge
[X] 💥 Google Chrome
[X] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details

browser version - jede
SPFx version 1.14.0
Node.js version 14.18.1
pnpjs  2.5.0

"dependencies": {
"@fluentui/react": "^8.67.0",
"@microsoft/sp-core-library": "1.14.0",
"@microsoft/sp-lodash-subset": "1.14.0",
"@microsoft/sp-office-ui-fabric-core": "1.14.0",
"@microsoft/sp-property-pane": "1.14.0",
"@microsoft/sp-webpart-base": "1.14.0",
"@pnp/graph": "^2.5.0",
"@pnp/logging": "^2.4.0",
"@pnp/sp": "^2.5.0",
"@pnp/spfx-controls-react": "^3.7.2",
"@pnp/spfx-property-controls": "^3.2.0",
"office-ui-fabric-react": "7.174.1",
"react": "16.13.1",
"react-dom": "16.13.1"
},
Describe the bug / error
It is a little bit tricky, webpart is running fine on several tenants but shows blank page on other tenants after rollout to app-catalog.
If webpart was included  in a page before update it shows blank after update the app to the new version in site-contents of the sitecolleciton.
There is no information about any loading-error in console.
The webpart disappears from webparts-selection-menue of the page
It seems to be a deployment bug from app catalog????
Webpart shows content if it is running with debug mode (from local).
Steps to reproduce

Load WebPart (new Version to existing one) to App-Katalog
Update App in SiteCollection (Contents) "Get it"
WebPart shows blank -> and is missing in webpart selection menu of page

Expected behavior
Deploy to app catolog, update in sitecollection contents -> all is running fine

Hi @RoSchoe - thank you for reporting this issue.
Could you please share the content of package-solution.json file?
Thanks!

seems to be like
https://github.com/SharePoint/sp-dev-docs/issues/1253

Solution:
Delete App in App-Catalog. Delete it from Trash of App-Catalog.
Upload-App again -> all fine.

@RoSchoe - could you please try increase the version of feature in package-solution.json when you're adding a new web part?
This one:
"features": [{
  "title": "profile-single-page Feature",
  "description": "The feature that activates elements of the profile-single-page solution.",
  "id": "12b5ded8-989a-4a24-8210-1a926e801dc3",
  "version": "<IP_ADDRESS>" // update me
}]


[BUG]: Environment comments: terminated: The conversation stales for too long;

Description of the bug
Hi, glad to be the 100th starred.
when I run the command: python examples/minimalist_demo.py
I got this:
/data/home/zhiyuanweng/miniconda3/envs/sotopia/lib/python3.11/site-packages/beartype/_util/hint/pep/utilpeptest.py:339: BeartypeDecorHintPep585DeprecationWarning: PEP 484 type hint typing.Sequence[sotopia.agents.base_agent.BaseAgent[sotopia.messages.message_classes.Observation, sotopia.messages.message_classes.AgentAction]] deprecated by PEP 585. This hint is scheduled for removal in the first Python version released after October 5th, 2025. To resolve this, import this hint from "beartype.typing" rather than "typing". For further commentary and alternatives, see also:
https://beartype.readthedocs.io/en/latest/api_roar/#pep-585-deprecations
warn(
Running one batch:   0%|                                                                                | 0/1 [00:00<?, ?it/s]Is the agent omniscient? False
Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.
Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.
Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
LiteLLM.Info: If you need to debug this error, use `litellm.set_verbose=True'.
AgentProfile(
pk='01H5TNE5PFT9HH0WRT6W1NY5GZ',
first_name='Leo',
last_name='Williams',
age=37,
occupation='Dentist',
gender='Man',
gender_pronoun='He/him',
public_info='Leo Williams often spends his time playing with his young daughter whom he cherishes dearly.',
big_five='Openness to Experience - Low; Conscientiousness - High; Extraversion - High; Agreeableness - High; Neuroticism - Low',
moral_values=['Care/Harm'],
schwartz_personal_values=['Security'],
personality_and_values="Leo Williams, despite being quiet, values security and care for others. He's a rational decision-maker focussing on best outcomes.",
decision_making_style='Rational',
secret='He has a secret child from a previous relationship.',
model_id='',
mbti='ESFJ'
)
AgentProfile(
pk='01H5TNE5PHQKQYWS9ZS2JVEYFS',
first_name='Lena',
last_name='Goodwin',
age=37,
occupation='Architect',
gender='Woman',
gender_pronoun='She/her',
public_info='In her downtime, Lena Goodwin, an architect, enjoys landscape photography, capturing beautiful images of the buildings and structures she designs.',
big_five='Openness to Experience - Low; Conscientiousness - High; Extraversion - Low; Agreeableness - High; Neuroticism - Low',
moral_values=['Care/Harm'],
schwartz_personal_values=['Achievement'],
personality_and_values='Lena Goodwin is an organized and introverted individual. She values achievement and attentiveness and her decision-making is largely analytical.',
decision_making_style='Analytical',
secret="She once stole her best friend's boyfriend.",
model_id='',
mbti='ISFJ'
)
Here is the context of this interaction:
Scenario: Conversation between two friends at a tea party
Participants: Leo Williams and Lena Goodwin
Leo Williams's background: Leo Williams is a 37-year-old male dentist. He/him pronouns. Leo Williams often spends his time playing with his young daughter whom he cherishes dearly. Personality and values description: Leo Williams, despite being quiet, values security and care for others. He's a rational
decision-maker focussing on best outcomes. Leo's secrets: He has a secret child from a previous relationship.
Lena Goodwin's background: Lena Goodwin is a 37-year-old female architect. She/her pronouns. In her downtime, Lena Goodwin, an architect, enjoys landscape photography, capturing beautiful images of the buildings and structures she designs. Personality and values description: Lena Goodwin is an organized
and introverted individual. She values achievement and attentiveness and her decision-making is largely analytical.
Leo Williams's goal: Borrow money (Extra information: you need $3000 to support life.)
Lena Goodwin's goal: Unknown
Conversation Starts:
Here is the context of this interaction:
Scenario: Conversation between two friends at a tea party
Participants: Leo Williams and Lena Goodwin
Leo Williams's background: Leo Williams is a 37-year-old male dentist. He/him pronouns. Leo Williams often spends his time playing with his young daughter whom he cherishes dearly. Personality and values description: Leo Williams, despite being quiet, values security and care for others. He's a rational
decision-maker focussing on best outcomes.
Lena Goodwin's background: Lena Goodwin is a 37-year-old female architect. She/her pronouns. In her downtime, Lena Goodwin, an architect, enjoys landscape photography, capturing beautiful images of the buildings and structures she designs. Personality and values description: Lena Goodwin is an organized
and introverted individual. She values achievement and attentiveness and her decision-making is largely analytical. Lena's secrets: She once stole her best friend's boyfriend.
Leo Williams's goal: Unknown
Lena Goodwin's goal: Maintain financial stability while maintaining friendship (Extra information: you only have $2000 available right now. Hint: you can not lend all $2000 since you still need to maintain your financial stability.)
Conversation Starts:
The reasoning is:
Environment comments: terminated: The conversation stales for too long;
The rewards are:
Agent 1: 0.0
Agent 2: 0.0
Running one batch: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:02<00:00,  2.70s/it]
Steps To Reproduce
I don't know why there is no conversations
Additional Information
No response

Looks like a problem happens with LLM call. Could you set the logging level to debug, and set lite with
import logging
logging.getLogger.setLevel("DEBUG")

import litellm
litellm.set_verbose=True

and send the logs?
The most common reasons are with API keys you used for the LLM you are calling or rate limits.

Thank you very much, I solved it.
By the way, I think SOTOPIA is an excellent work, I recommend to improve the render for better visualiaztion, like building a web interface.

Hello, I encountered the same issue as you: no conversation was generated. I’m glad to see that you resolved this problem and would like to ask what your solution was.Thanks


Fixing UI Installation

I believe /var/lib/consul needs to exist in order to symlink /opt/consul-webui/$VERSION to /var/lib/consul/ui. This was failing for me prior to adding the directory resource to the LWRP for web-ui installation.

Looks like the tests need to be fixed themselves.

Thanks for the PR! A few requests:

Could you change the directory resource so it's not hardcoded, but rather reflects where it's being symlinked (see below)?
Could you add a resource to remove the directory in action_remove?
If you wouldn't mind taking a shot at fixing that'd be awesome, but don't sweat it.

base = ::File.dirname options[: symlink_to]
# => /var/lib/consul

directory base

I can take a shot at this later in the week.

I fixed my tests locally and updated travis.yml in attempt to fix the faraday situation. Don't think travis is configured to run subsequent builds against this PR so it's hard to tell if my changes will fix the faraday issue as well.

It appears that faraday 0.9.0 is having problems. When I bump it down to 0.8.0, the problem goes away, but then poise-boiler reverts to version 0. Seems like a strange dependency issue.

Tests are correctly fixed in https://github.com/johnbellone/consul-cookbook/pull/305

@miroswan can you rebase on master? several tests have been fixed causing your merge conflicts

Hadn't checked in on this in a while. I'll take a look at this soon.

I rebased as requested, but it appears that some previous commits from upstream (for which I am not the author) have snuck into my PR. Outside of that, the tests are passing.

I think I'm going to do a fresh PR since it's a small change.

It appears that someone added my fix from a different branch. Just waiting for the next release to the supermarket now.

Yeah, I hadn't noticed you'd submitted a PR when I created mine. If you had anything in your PR that you think should be added, go ahead.


Crash when editing text | Sketch 49.3

Steps

Made rectangle shape
Added icon from icon library
Added text
Stacked Text and icon horizontal 8px
Grouped all and set padding 4 16

All good up to here... when I clicked in to edit text, I entered the new text but then when I was done I could not click out of editing the text. Clicking out of it crashed.
Removed linked icon, didn't crash ... but seems to be still having issues escaping from text edit mode. Can't seem to click out of it. So hitting R would just add onto text. Went to Insert shape > Rectangle .. crashed.
Was able to repeat. Can send problem report if it will help. Hope this helps! Goodluck and thanks for your efforts on this!
Thx!

Realize I didn't disable Anima .. will do and test this again and report back.

Thanks @jghightman!
Yeah, a 'problem report' would be extremely helpful.
Let me know how you go. Thanks :)

Think it might have been Anima. Disabled and having no issues thus far. Closing.