Build error (58.0.3029.110/ develop branch) on Archlinux

I tried to build the latest release (58.0.3029.110) on Archlinux but compilation failed :
[347/347] c++ -pthread -o gn -Wl,--start-group tools/gn/gn_main.o libevent.a base.a xdg_user_dirs.a gn_lib.a dynamic_annotations.a -Wl,--end-group -lrt -latomic
FAILED: gn
c++ -pthread -o gn -Wl,--start-group tools/gn/gn_main.o libevent.a base.a xdg_user_dirs.a gn_lib.a dynamic_annotations.a -Wl,--end-group -lrt -latomic
base/threading/thread_task_runner_handle.o: In function 'base::ThreadTaskRunnerHandle::OverrideForTesting(scoped_refptr<base::SingleThreadTaskRunner>)':
thread_task_runner_handle.cc:(.text+0x10a5): undefined reference to 'base::ScopedClosureRunner::ScopedClosureRunner(base::Callback<void (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1> const&)'
thread_task_runner_handle.cc:(.text+0x1168): undefined reference to 'base::ScopedClosureRunner::ScopedClosureRunner(base::Callback<void (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1> const&)'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Command '['ninja', '-C', '/tmp/tmpZwENSm', '-v', 'gn']' returned non-zero exit status 1

I could not build develop branch either :
[367/367] c++ -pthread -o gn -Wl,--start-group tools/gn/gn_main.o libevent.a base.a xdg_user_dirs.a gn_lib.a dynamic_annotations.a -Wl,--end-group -lrt -latomic
FAILED: gn
c++ -pthread -o gn -Wl,--start-group tools/gn/gn_main.o libevent.a base.a xdg_user_dirs.a gn_lib.a dynamic_annotations.a -Wl,--end-group -lrt -latomic
base/task_scheduler/task_scheduler_impl.o: In function 'base::internal::TaskSchedulerImpl::CreateTaskRunnerWithTraits(base::TaskTraits const&)':
task_scheduler_impl.cc:(.text+0x1f5): undefined reference to 'base::internal::GetEnvironmentIndexForTraits(base::TaskTraits const&)'
base/task_scheduler/task_scheduler_impl.o: In function 'base::internal::TaskSchedulerImpl::CreateSequencedTaskRunnerWithTraits(base::TaskTraits const&)':
task_scheduler_impl.cc:(.text+0x255): undefined reference to 'base::internal::GetEnvironmentIndexForTraits(base::TaskTraits const&)'
base/task_scheduler/task_scheduler_impl.o: In function 'base::internal::TaskSchedulerImpl::GetMaxConcurrentTasksWithTraitsDeprecated(base::TaskTraits const&) const':
task_scheduler_impl.cc:(.text+0x298): undefined reference to 'base::internal::GetEnvironmentIndexForTraits(base::TaskTraits const&)'
base/task_scheduler/task_scheduler_impl.o: In function 'base::internal::TaskSchedulerImpl::PostDelayedTaskWithTraits(tracked_objects::Location const&, base::TaskTraits const&, base::Callback<void (), (base::internal::CopyMode)0, (base::internal::RepeatMode)0>, base::TimeDelta)':
task_scheduler_impl.cc:(.text+0x2e3): undefined reference to 'base::internal::GetEnvironmentIndexForTraits(base::TaskTraits const&)'
base/task_scheduler/task_scheduler_impl.o: In function 'base::internal::TaskSchedulerImpl::GetWorkerPoolForTraits(base::TaskTraits const&) const':
task_scheduler_impl.cc:(.text+0x968): undefined reference to 'base::internal::GetEnvironmentIndexForTraits(base::TaskTraits const&)'
base/task_scheduler/scheduler_single_thread_task_runner_manager.o:scheduler_single_thread_task_runner_manager.cc:(.text+0x1287): more undefined references to 'base::internal::GetEnvironmentIndexForTraits(base::TaskTraits const&)' follow
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Command '['ninja', '-C', '/tmp/tmpcBxbHa', '-v', 'gn']' returned non-zero exit status 1

Am I missing something ?

I'm not sure at this point. How are you building it?

I tried to follow BUILDING.md   :
export UTILIKIT_CONFIG_TYPE=linux_simple
./utilikit/prepare_sources.py
./utilikit/substitute_domains.py
./utilikit/generate_build_files.py linux_simple --apply-domain-substitution
./ungoogled_linux_simple/build.sh

linux_simple is not a valid utilikit config type. Perhaps you mean linux_conservative? You could also try archlinux.
The other commands look fine to me.

The reason I put linux_simple is this :
$ ./utilikit/generate_build_files.py archlinux --apply-domain-substitution
generate_build_files.py: error: argument files_type: invalid choice: 'archlinux' (choose from 'debian', 'macos', 'linux_simple')

The documentation (as it is now) does not explain it clearly, but the utilikit config type and the build files type are not the same thing. The utilikit config type is set through an environment variable, and the build files type is set in the argument to generate_build_files.py. Only the utilikit config type needs to be changed.

@Alex2242 did you successfully build ungoogled on arch?
I had build error related to ICU (no rules to build a target). Fixed it. But build stopped on error related to Breakpad.

@Eloston  Thanks, my bad.
@avently No, it still fails. I think I've the same error you had :
ninja: error: '../../components/domain_reliability/baked_in_configs/c_bigcache_googleapis_com.json', needed by 'obj/components/domain_reliability/bake_in_configs.inputdeps.stamp', missing and no known rule to make it

but I haven't found a way to fix it. How did you do ?

@Alex2242 I have no time and hardware resources to try to fix every error I get while building software. I think the developer can make as easy build configuration as possible. One hour of developer time can save thousands hours of time for regular users that need to fix build errors.
I don't know why build fails on my arch. Maybe gn attributes is wrong. Removing gn attributes one by one can help.

@Alex2242 Are you trying to build the develop branch? You shouldn't be getting that error on master.

@Eloston this happens on master.
export UTILIKIT_CONFIG_TYPE=archlinux
mkdir build/
mkdir build/sandbox
mkdir build/downloads
./utilikit/prepare_sources.py
./utilikit/substitute_domains.py
./utilikit/generate_build_files.py linux_simple --apply-domain-substitution
cd build/sandbox
ungoogled_linux_simple/build.sh
ninja: Entering directory `out/Default'
ninja: error: '../../third_party/icu/common/icudtl.dat', needed by 'obj/third_party/icu/make_data_assembly.inputdeps.stamp', missing and no known rule to make it

touch third_party/icu/common/icudtl.dat
ninja -C out/Default chrome
ninja: Entering directory `out/Default'
[47/26165] CXX obj/breakpad/client/exception_handler.o
FAILED: obj/breakpad/client/exception_handler.o
../../../../../../../../usr/bin/clang++ -MMD -MF obj/breakpad/client/exception_handler.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUILD -DENABLE_MEDIA_ROUTER=1 -DCR_CLANG_REVISION=\"296320-1\" -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../breakpad -I../../breakpad/src -I../../breakpad/src/client -I../../breakpad/src/third_party/linux/include -I../.. -Igen -I../../breakpad/src -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -fcolor-diagnostics -m64 -march=x86-64 -pthread -O2 -fno-ident -fdata-sections -ffunction-sections -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-deprecated-register -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-shift-negative-value -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -Wno-block-capture-autoreleasing -Wno-unused-lambda-capture -Wno-user-defined-warnings -fvisibility-inlines-hidden -std=gnu++11 -fno-rtti -fno-exceptions -Wno-deprecated -c ../../breakpad/src/client/linux/handler/exception_handler.cc -o obj/breakpad/client/exception_handler.o
In file included from ../../breakpad/src/client/linux/handler/exception_handler.cc:66:
../../breakpad/src/client/linux/handler/exception_handler.h:194:21: error: field has incomplete type 'struct ucontext'
    struct ucontext context;
                    ^
../../breakpad/src/client/linux/handler/exception_handler.h:194:12: note: forward declaration of 'google_breakpad::ucontext'
    struct ucontext context;
           ^
../../breakpad/src/client/linux/handler/exception_handler.cc:442:41: error: invalid application of 'sizeof' to an incomplete type 'struct ucontext'
  memcpy(&g_crash_context_.context, uc, sizeof(struct ucontext));
                                        ^     ~~~~~~~~~~~~~~~~~
../../breakpad/src/client/linux/handler/exception_handler.h:194:12: note: forward declaration of 'google_breakpad::ucontext'
    struct ucontext context;
           ^
../../breakpad/src/client/linux/handler/exception_handler.cc:456:13: error: member access into incomplete type 'struct ucontext'
  if (uc_ptr->uc_mcontext.fpregs) {
            ^
../../breakpad/src/client/linux/handler/exception_handler.h:194:12: note: forward declaration of 'google_breakpad::ucontext'
    struct ucontext context;
           ^
../../breakpad/src/client/linux/handler/exception_handler.cc:457:49: error: member access into incomplete type 'struct ucontext'
    memcpy(&g_crash_context_.float_state, uc_ptr->uc_mcontext.fpregs,
                                                ^
../../breakpad/src/client/linux/handler/exception_handler.h:194:12: note: forward declaration of 'google_breakpad::ucontext'
    struct ucontext context;
           ^
../../breakpad/src/client/linux/handler/exception_handler.cc:479:19: error: variable has incomplete type 'struct ucontext'
  struct ucontext context;
                  ^
../../breakpad/src/client/linux/handler/exception_handler.h:194:12: note: forward declaration of 'google_breakpad::ucontext'
    struct ucontext context;
           ^
5 errors generated.
[52/26165] CXX obj/base/base/file_util_posix.o
ninja: build stopped: subcommand failed.

@avently This seems to be a problem with ungoogled-chromium's code, but I'm not sure what the problem could be. I think the problems with the other configurations show that Archlinux support is finicky at best.
For now, I think it's best to hold off until the next stable version of ungoogled-chromium. I think trying to fix 58 may be more effort than it's worth.

@avently Most probably you need to apply breakpad-use-ucontext_t.patch from the official Arch Linux chromium package, see https://git.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/chromium.

@xsmile yes, now it builds fine. Thank you!
@Eloston please, include this patch into your repo. In arch repo chromium version is 62 and this patch will be compatable with your next milestone.

@avently Alright, will do :+1:

@Eloston also, what about
ninja: error: '../../third_party/icu/common/icudtl.dat', needed by 'obj/third_party/icu/make_data_assembly.inputdeps.stamp', missing and no known rule to make it

?
touch third_party/icu/common/icudtl.dat   -- doesn't work. Later i received an error related to this file. I could only return this file from chromium repo because it gets deleted via cleaning_list.

@avently The GN flag icu_use_data_file=false is supposed to disable the use of icudtl.dat, and it works on Debian. Debian and Arch essentially have the same GN configuration, so I don't know why this is failing specifically on Arch.

After a quick search, it seems the only thing that might be making a difference is the unbundle script. This script essentially replaces some GN files so Chromium builds against more systme libraries. Since the ICU library has a corresponding file, the unbundle script is probably causing Chromium to use the system ICU library, which may be bypassing the dependency on icudtl.dat (and also icu_use_data_file=false).
So, you could either:

Remove icu_use_data_file=false and add back the original icudtl.dat
Run the unbundle script in resources/packaging/debian/standard/scripts/, which will cause Chromium to build against more system libraries. But I have a feeling that this may break something else since 58 is pretty old.

@Eloston for now i'm building with icu. In the next version i'll try second option

@Eloston another build error
LINK ./font_service.service
FAILED: font_service.service
../../../../../../../../usr/bin/clang++ -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--no-as-needed -lpthread -Wl,--as-needed -fuse-ld=gold -B -Wl,--icf=all -m64 -pthread -Wl,-O1 -Wl,--gc-sections -Wl,-rpath-link=. -Wl,--disable-new-dtags -Wl,--export-dynamic -o "./font_service.service" -Wl,--start-group @"./font_service.service.rsp"  -Wl,--end-group  -ldl -lrt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -latomic -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpangocairo-1.0 -lpango-1.0 -lcairo -lfontconfig -lfreetype -lexpat -lgio-2.0
obj/base/libbase.a(message_pump_libevent.o):../../base/message_loop/message_pump_libevent.cc:function base::MessagePumpLibevent::WatchFileDescriptor(int, bool, int, base::MessagePumpLibevent::FileDescriptorWatcher*, base::MessagePumpLibevent::Watcher*): error: undefined reference to 'event_get_fd'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
[8/11380] CXX obj/media/capture/mojo/...ure_types/video_capture_types.mojom.o
ninja: build stopped: subcommand failed.

Seems like this line ruins the build:
https://github.com/Eloston/ungoogled-chromium/blob/d3f382b9c723aea48b1a50ed533b303c91d02498/resources/patches/debian/system/event.patch#L82
I returned the old line and then the build continued.

another error:
FAILED: obj/third_party/WebKit/Source/platform/platform/SharedGpuContext.o
../../../../../../../../usr/bin/clang++ -MMD -MF obj/third_party/WebKit/Source/platform/platform/SharedGpuContext.o.d -DBLINK_PLATFORM_IMPLEMENTATION=1 -DINSIDE_BLINK -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUILD -DENABLE_MEDIA_ROUTER=1 -DCR_CLANG_REVISION=\"296320-1\" -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DSK_IGNORE_DW_GRAY_FIX -DSK_IGNORE_DIRECTWRITE_GASP_FIX -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DSK_SUPPORT_GPU=1 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DENABLE_LAYOUT_UNIT_IN_INLINE_BOXES=0 -DENABLE_OILPAN=1 -DWTF_USE_CONCATENATED_IMPULSE_RESPONSES=1 -DWTF_USE_WEBAUDIO_FFMPEG=1 -DWTF_USE_DEFAULT_RENDER_THEME=1 -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUSE_SYSTEM_LIBJPEG -DENABLE_IPC_FUZZER -Igen/blink -I../../third_party/ffmpeg -I../.. -Igen -I../../third_party/WebKit/Source -I../../third_party/WebKit -Igen/blink -Igen/third_party/WebKit -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../../third_party/khronos -I../../gpu -I../../third_party/libwebp -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/images -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pdf -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/skia/include/gpu -I../../third_party/skia/src/gpu -I../../third_party/skia/src/sksl -I../../third_party/libwebm/source -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/protobuf/src -I../../third_party/boringssl/src/include -I/usr/include/nss -I/usr/include/nspr -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/iccjpeg -I../../third_party/libpng -I../../third_party/zlib -I../../third_party/ots/include -I../../v8/include -Igen/v8/include -I../../third_party/ced/src -I../../third_party/harfbuzz-ng/src -I../../third_party/ffmpeg/chromium/config/ChromeOS/linux/x64 -I../../third_party/ffmpeg -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -fcolor-diagnostics -m64 -march=x86-64 -pthread -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-deprecated-register -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-shift-negative-value -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -Wno-block-capture-autoreleasing -Wno-unused-lambda-capture -Wno-user-defined-warnings -O2 -fno-ident -fdata-sections -ffunction-sections -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wglobal-constructors -g0 -Wno-header-guard -fvisibility-inlines-hidden -std=gnu++11 -fno-rtti -fno-exceptions -c ../../third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp -o obj/third_party/WebKit/Source/platform/platform/SharedGpuContext.o
In file included from ../../third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp:5:
../../third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h:38:16: error: no template named 'function' in namespace 'std'
  typedef std::function<std::unique_ptr<WebGraphicsContext3DProvider>()>
          ~~~~~^
../../third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h:53:53: error: cannot initialize a member subobject of type 'blink::SharedGpuContext::ContextProviderFactory' (aka 'int') with an rvalue of type 'nullptr_t'
  ContextProviderFactory m_contextProviderFactory = nullptr;
                                                    ^~~~~~~
2 errors generated.

fixed by suggest from https://bugs.webkit.org/show_bug.cgi?id=162268
Solution was to add
#include
to
third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.h
Than build was successfull

Fixed in 5ca1b6e7bdcad5d32b5a998c69312758f681e6c1


Silent error when re-adding a primary key during document addition

Currently, we can add the primary key of an index when adding/updating documents.
documents = [{ numero: 1, titre: 'Le Rouge et le Noir' }]
index.update_documents(documents, 'numero')

The first time the script is run, the index will be created and the primary key will be set to numero.
If I re-launch the script, the index is already created, and so is the primary key. But MeiliSearch does not throw any error despite a primary key is already present and the user might want to be informed about this.
This silent error might be problematic if the user tries to send a different primary key compared to the one that is stored in the index: he/she is clearly doing something that he/she should not do.
However, if the primary key that is sent is the same primary key that is already set up, I personally don't like with the fact of raising an error since it brings an unpleasant user experience when coding.
Indeed, users usually send documents by batch, so in a loop, like this:
for batch_documents in all_documents:
  index.update_documents([batch_documents], 'numero')

Here it will not fail at the first call, but it will at the second one. So the users would need to create an index first with the primary key. This is not convenient: we might not want to make this kind of complexity back (create an index first) knowing that we succeeded to remove it with the implicit index creation handling.
Conclusion
The silent error is problematic: the users should know what they are doing if they are doing something wrong. However, if the primary key sent is the same as the one already stored, they are not in a dangerous situation when manipulation MeiliSearch.
A solution would be to raise an error only if the primary key sent is different from the primary key already set in the index.
Discussed with @MarinPostma about the problematic silent error.
Suggestion of improvement coming from @bidoubiwa and @eskombro.

100% agreed. From my POV, MeiliSearch should raise an error when the user tries (voluntarily or not, knowingly or not) to change the primary key, because this is technically not possible. Other than that, sending the same primary key (as in the loop example) shouldn't raise any error or even warning.

@gmourier this one can interest you


failed to set OOM Score on shim

Hi!
While creating task from container:
task, err := container.NewTask(ctx, cio.NewCreator(cio.WithStdio))

I get an error:
failed to set OOM Score on shim: write /proc/714/oom_score_adj: permission denied: unknown

Similarly, while importing image using ctr:
> ctr image import --format oci.v1 --oci-name busybox <PATH_TO_TAR>
> ctr: failed to extract layer sha256:0271b8eebde3fa9a6126b1f2335e170f902731ab4942f9f1914e77016540c7bb: rpc error: code = Unknown desc= failed to mount: operation not permitted

My environment is Docker container (based on golang image).
Some advice?
Thanks ;)

Hi, could you provide more information about your environment?
From your comments I'm assuming you've built containerd inside a Docker container and are running the getting started example, but I can't reproduce the permission denied error.

Hi @schomatis , thanks for reply :)
Steps to reproduce:

Build docker image from Dockerfile https://gist.githubusercontent.com/jakub-gawlas/6d0218fca4353d807fe3ff5609135809/raw/2a3cc63e56305420de82cdd44b40fd0bf6bdd534/Dockerfile

docker build -t test .

Run container (with containerd) as daemon

docker run -d --name containerd-test test

Run getting started example (https://gist.githubusercontent.com/jakub-gawlas/6d0218fca4353d807fe3ff5609135809/raw/2a3cc63e56305420de82cdd44b40fd0bf6bdd534/main.go) inside container

docker exec -it containerd-test go run main.go

Received result:
INFO[0011] Apply failure, attempting cleanup             error="rpc error: code = Unknown desc = failed to mount: operation not permitted" key="extract-923593800-tS-l sha256:6dfaec39e726d242fcd42e9fffac82c3079a1aa20fc39420b662507b163ee4da"
2017/12/29 19:46:24 failed to extract layer sha256:6dfaec39e726d242fcd42e9fffac82c3079a1aa20fc39420b662507b163ee4da: rpc error: code= Unknown desc = failed to mount: operation not permitted
exit status 1

Expected result: as in getting started example
Docker version:
Client:
 Version:      17.09.0-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:40:09 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      17.09.0-ce
 API version:  1.32 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:45:38 2017
 OS/Arch:      linux/amd64
 Experimental: true

Docker info:
Containers: 67
 Running: 4
 Paused: 0
 Stopped: 63
Images: 105
Server Version: 17.09.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host ipvlan macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0
runc version: 3f2f8b84a77f73d38244dd690525642a72156c64
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.49-moby
Operating System: Alpine Linux v3.5
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.952GiB
Name: moby
ID: MOJB:HKAA:NS2F:SZ3Q:RJVI:WO56:ZT27:EIO4:DQR5:DFJF:YQ35:Z5HK
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 45
 Goroutines: 57
 System Time: 2017-12-29T19:58:51.0771421Z
 EventsListeners: 1
No Proxy: *.local, 169.254/16
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 docker.for.mac.localhost:3000
 <IP_ADDRESS>/8
Live Restore Enabled: false

I hope now you'll be able to reproduce this error.
Thanks :clinking_glasses:

The instructions in your Dockerfile differ significantly from the ones on the getting started guide. Most importantly the container was not being run in --privileged mode and there were some incorrect paths (also the recommended RUNC version was not being used, but I don't think that was a problem in this case).
"Merging" your Dockerfile with the official instructions, I can run your container (your step 2) successfully with this command:
docker run --rm --name containerd-test -it --privileged \
    -v /var/lib/containerd \
    -e GOPATH=/go \
    -w /go/src/github.com/containerd/containerd test

And then execute the getting started program (step 3) with:
docker exec -it containerd-test go run /go/src/test/main.go

But I would recommend trying to adhere as much as possible to the official guide (which could benefit from some refactoring, I prefer your style of having everything unified in a single Dockerfile like Moby, I'll try to add something similar to the build guilde).

works! so much thanks @schomatis !
but I'm curious, why needed is mount /var/lib/containerd and set workdir path to containerd sources? maybe you have a some time and patience to give more info?


Install script extracts files into unknown temporary directory

Rewrite to install into local bin directory.

Codecov Report

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

@@           Coverage Diff           @@
##           master      #92   +/-   ##
=======================================
  Coverage   19.04%   19.04%
=======================================
  Files           3        3
  Lines         147      147
=======================================
  Hits           28       28
  Misses        117      117
  Partials        2        2

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 47745ad...cac1e56. Read the comment docs.


Bug Report: Date Picker Overflow if the Field Size is Small

Description
The date picker widget overflows if the field size is small. Instead of overflowing, the date picker should overlay the parent widget with no size restriction.

Expected Behavior
The date picker should overlay properly without size constraints, regardless of the parent field size.
Current Behavior
The date picker overflows when the field size is small.
Steps to Reproduce

Use flutter_web_date_picker in a Flutter app.
Set a small width for the parent field.
Open the date picker.

Environment
Flutter version: 3.24.5
Package version: vph_web_date_picker: ^0.1.1
Suggested Fix
Introduce a width parameter for the date picker:

If width is null, use the parent size as the default.
If width is specified, use the provided width size.

Already have the 'width' parameter. Please check the example for details.


Fix windows build with missing symbols

Problem was new nightly introduced some issues. Reverted to using a previous nightly.

Also made serde serialize be config option.


[WT-619] Add order source and order status columns to orders table

Description
Adds order_status and order_source columns to orders table and updates corresponding server code for reasons described in issue #619.
Risks
Does not actually handle payments that have issues with them, but neither did the code before this, Arguably such cases are best dealt with in PRs relating to issues #620 and #621.
Validation
Manual testing
Issue
Issue #619
Operating System
Pop OS 22.04

It looks like this just needs to be updated with main and it should be good to go.

It looks like this just needs to be updated with main and it should be good to go.

Now ready to merge into main. The biggest required here was in the readerWebhook function in orderController.service.ts.

This looks good to me, I am not sure if @ben16williams wants to take a last look.

Just some merge conflicts that need addressed and then I'll approve

Merge conflicts resolved


Run "poetry update"

https://github.com/sadikkuzu/squiral/blob/b152bf2242677b7765902dc6ce7eb2fa26df84d9/poetry.lock#L1-L339

This is what she ran on me it most certainly has the same trait. I am completely green I have read about a few things but essentially know zilch. I am 45 and didn't have the internet in my school work hen I graduate In 95.

Would I try and sneak that into her phone with a screenshot of us. Inside a folder of many picturssdwill be oblivious


New version: winpython.winpython version 4.6.20220116

Installation timed out.
Auto-updated by vedantmgoyal2009/winget-pkgs-automation in workflow run 2154
Microsoft Reviewers: Open in CodeFlow

The InstallerRegex needs to be fixed, will do it tomorrow. (https://github.com/microsoft/winget-pkgs/pull/43921, https://github.com/microsoft/winget-pkgs/pull/43922)


Licence for using the Code (incl. model)

Your project is of great interest to me and i am very excited to try Your models!
You list Your code under the MIT licence and link Your parameter set (the model) in the read.me.
To actually being able to use Your model/code for inference, one would also need the vocabulary: vocab.bin .
Am i correct in the assumption, that You do not allow inference of Your model in commercial use (as part of a back-end service) ?
Otherwise, leave me a comment (which of course would make me very happy).

The model is also MIT: free as in freedom. I do hope it finds use in commercial and non-commercial applications :)
Also, let me know if you want help building a new model. I've been wanting to throw some of the shiny new NLP models at the problem, but haven't had a good enough reason to.
Good luck!


Dataset Release

Hi there!
I really appreciate you sharing your work with the community. I was wondering if you have any plans to release the training dataset. Access to this data would be very helpful for testing different configurations during training and ensuring fair comparisons with your reported results.
Could you let me know if and when the dataset might become available?
Thanks!

Uploading it now :)

Here you go: https://huggingface.co/datasets/vidore/colpali_train_set

any plans on releasing the hard negatives too?

They have been out on my HF account (Manu) for a few weeks now, but are probably not that great which is why they are not official!
They are just mined with Bipali basically


Variable explorer doesn't update list of hidden variables when docked vertically.

VS Code Insiders with Jupyter extension from main.

Open or create a new notebook (native notebook)
Add this code to a cell but don't execute yet.

import time
t0 = time.perf_counter()
t1 = time.perf_counter()
t2 = time.perf_counter()
t3 = time.perf_counter()
t4 = time.perf_counter()
t5 = time.perf_counter()
t6 = time.perf_counter()
t7 = time.perf_counter()
t8 = time.perf_counter()

Open the variable viewer -> Jupyter: Open Jupyter Variable View
Drag and dock the viewer to the left panel.
Size the Variable Viewer as short as possible.
Execute the above cell
Drag the bottom of the Variable View down to reveal all the tx variable. You'll only see the first 4. The rest will say "Loading..."

Is there supposed to be an icon? It's not showing for me, I spent a couple minutes hunting for it after docking it to the left panel.
Apart from that, seems to work now.

Is there supposed to be an icon? It's not showing for me, I spent a couple minutes hunting for it after docking it to the left panel.
Apart from that, seems to work now.

Nope, no icon. Mostly because I've always been working with it in the bottom view panel where it doesn't really need one. I'll file a new issue and loop with Claudia about getting one.

Nope, no icon. Mostly because I've always been working with it in the bottom view panel where it doesn't really need one. I'll file a new issue and loop with Claudia about getting one.


Added News and Weather app

Added a News and Weather App to the JavaScript folder.
With this app, you can view Different types of news and current weather of you location

resolve conflict and update your code


Help with pattern recognition

Hello,
I want to study the use of AI in the context of pattern recognition. Not that of human faces that has been done for a long time, but in that of the recognition of mushroom spores. Visually we can compare these spores to seeds of various plants.
I start in this area but I think it is already building models of these objects.
Can Windows Vision Skills help with this project?
Thank you

If you're wanting to bundle your spore recognition model as a Windows Vision Skill, then yes absolutely. Check out our Sentiment Analyzer sample to see how to produce and consume a custom skill using an ONNX  machine learning model. You can get ONNX models from the ONNX model zoo or by converting to the ONNX format from other ML frameworks (e.g. PyTorch, TensorFlow, etc).
If you're looking for a pre-trained model for recognizing mushroom spores, unfortunately we don't currently have such a model/skill. However, we welcome your contribution!

Hello,
I want to study the use of AI in the context of pattern recognition. Not that of human faces that has been done for a long time, but in that of the recognition of mushroom spores. Visually we can compare these spores to seeds of various plants.
I start in this area but I think it is already building models of these objects.
Can Windows Vision Skills help with this project?
Thank you

Also on top of David's suggestions, check out Azure Custom Vision Services where you can upload images of your spores and train a custom classifier model from them. After you've reached the accuracy you are satisfied with, you can export this model to the ONNX fomat and run it with WindowsML inside of your application.
-Louis

Good track that these Azure Custom Vision Services. I will follow her and try to build models of mushroom spores. In this field a great precision is necessary in the detection of forms.
Thank you Louis
Alain
De : Louis-Philippe Bourret<EMAIL_ADDRESS>Envoyé : mardi 7 mai 2019 21:21
À : microsoft/WindowsVisionSkillsPreview<EMAIL_ADDRESS>Cc : AmycoFr<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Objet : Re: [microsoft/WindowsVisionSkillsPreview] Help with pattern recognition (#24)
Hello,
I want to study the use of AI in the context of pattern recognition. Not that of human faces that has been done for a long time, but in that of the recognition of mushroom spores. Visually we can compare these spores to seeds of various plants.
I start in this area but I think it is already building models of these objects.
Can Windows Vision Skills help with this project?
Thank you
Also on top of David's suggestions, check out Azure Custom Vision Services https://azure.microsoft.com/en-us/services/cognitive-services/custom-vision-service/  where you can upload images of your spores and train a custom classifier model from them. After you've reached the accuracy you are satisfied with, you can export this model to the ONNX fomat and run it with WindowsML https://docs.microsoft.com/en-us/windows/ai/windows-ml/  inside of your application.
-Louis
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/microsoft/WindowsVisionSkillsPreview/issues/24#issuecomment-490221157 , or mute the thread https://github.com/notifications/unsubscribe-auth/AGNXLPV27A67UXIRJXNXVPDPUHJDNANCNFSM4HKWQIRQ .  https://github.com/notifications/beacon/AGNXLPXWWVQPRXN25KJYC33PUHJDNA5CNFSM4HKWQIR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODU4C4ZI.gif

Thank You dhung-msft for your interesting suggestions.
Regards

feel free to re-open or open a new issue if you need more help.
-Louis


[Slack] Add redirectUri in getInstallLink()

On Slack adapter, redirectUri is not send to Slack via getInstallLink(). Therefore Slack is redirecting to a wrong url during installation, hitting the wrong endpoint and breaking installation.
If you use the Slack adapter with a redirectUri param before this fix, you cannot trigger OAuth with Botkit getInstallLink().

Thank you for this - if you have time, could you make this a conditional addition to the URL if the configuration is set?
Can you also wrap it in encodeURIComponent?
See the legacy version:
https://github.com/howdyai/botkit/blob/legacy/lib/SlackBot.js#L637

@benbrown I updated the code accordingly

Thanks @jebarjonet!
Are you a member of community.botkit.ai? If not, you should join us :)

@jebarjonet this is now in 1.0.2 on npm


Cant implement lazy loading

Thanks for this great tool!
I am not able to implement lazy loading using route shell
I have tried to add loadchildren in about route about-routing.module.ts like below
const routes: Routes = Route.withShell([
{
path: 'about',
component: AboutComponent,
data: { title: 'About' },
loadChildren: './about.module#AboutModule',
}
]);
when I hit ng serve I am getting below warning
WARNING in Duplicated path in loadChildren detected during a rebuild. We will take the latest version detected and override it to save rebuild time. You should perform a full build to validate that your routes don't overlap.
and I am unable to click on about route as i am getting below error in developer console
core.js:1350 ERROR Error: Uncaught (in promise): Error: Component ShellComponent is not part of any NgModule or the module has not been imported into your module.
Error: Component ShellComponent is not part of any NgModule or the module has not been imported into your module.
but when I build the app using ng build --prod and access the application using node express
its working file and also lazy loading working fine for the about module
I dont know whether this issue or not  but as I am going to develop enterprise level application I want to use router lazy loading feature
ngx version
1.6.0

This won't work like this, see https://angular-2-training-book.rangle.io/handout/modules/lazy-loading-module.html for an in-depth explanation of how lazy loading works, but in short:

You have to remove AboutModule from the app.module.ts imports

The routes definition that tells which module to lazy needs to be in your root route definition, ie in app-routes.module.ts: { path: 'about', loadChildren: 'app/about/about.module#AboutModule' }
The complete route definition would look like:
const routes: Routes =[
  {
    path: '',
    component: ShellComponent,
    children: [
      { path: 'about', loadChildren: 'app/about/about.module#AboutModule' },
    ],
    canActivate: [AuthenticationGuard],
    // Reuse ShellComponent instance when navigating between child views
    data: { reuse: true }
  },
  // Fallback when no prior route is matched
  { path: '**', redirectTo: '', pathMatch: 'full' }
];

The route definition in about-routing.module.ts should be adapted to match only when it's lazy loaded:
const routes: Routes = [
  { path: '', component: AboutComponent, data: { title: extract('About') } }
];

I'll try to put up an example repo quickly, maybe even make it a generator option if I have time for it :wink:

I figured out how to make it work with Route.withShell() in app-routing.module.ts:
const routes: Routes = Route.withShell([
  { path: 'about', loadChildren: 'app/about/about.module#AboutModule' }
]);
routes.push({ path: '**', redirectTo: '', pathMatch: 'full' });

So it's even simpler 😉
(Originally I was using concat to merge the routes but that breaks the Angular compiler)

I already tried second approach but with this I am unable to click on about route in development.
Please give a try

You may have missed something, take a look here for an example implementation: https://github.com/sinedied/ngx-rocket-lab
No issue when navigating to and from about screen 😉
As for suggestions, you are welcome to open an issue on github to propose your ideas.
Concerning HttpClient/Interceptor, see https://github.com/ngx-rocket/generator-ngx-rocket/issues/94 and for form validation/async example you can take a look at the login page and https://github.com/ngx-rocket/generator-ngx-rocket/issues/186.

@nileshpatilwork Did you succeed based on the example?

No. Same problem unable to click on about link
On Dec 11, 2017 1:46 PM, "Yohan Lasorsa"<EMAIL_ADDRESS>wrote:
@nileshpatilwork https://github.com/nileshpatilwork Did you succeed based
on the example?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ngx-rocket/generator-ngx-rocket/issues/195#issuecomment-350651522,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AaBEyZVjbA-lXdYEWsRLqHIF-mB1bbW3ks5s_OS_gaJpZM4QzwF-
.

Do you have the same issue with the example repo I provided you, when running with npm start?

Hi, I have used your repo and its working fine now. Thanks.
Can we have httpClient instead http?
This plugin is to generate enterprise level projects then why you are included http cache service?
please implement lazy loading in upcoming updates :)

Good to hear that it's working now :)
As for HttpClient, see https://github.com/ngx-rocket/generator-ngx-rocket/issues/94
Http cache is enabled as most of the time you want some caching/persistence strategy in enterprise apps.
And I keep this issue open to integrate a lazy loading choice in a next release.


[wtsqs#enqueueMany] Fix empty list error

fixes #7

Pull Request Test Coverage Report for Build 46

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 89.416%

Totals

Change from base Build 44:
0.1%

Covered Lines:
156

Relevant Lines:
164

💛  - Coveralls


Level guide on game filter should always be open

The level diagram on the game filter should be open as soon as the filter is opened.

'Difficulty' should be called 'levels'.
It should be "Rough guide to difficulty" underneath.


How to save and repair session

I have one more question :) I can`t understand how to save and repair session.   I must input verify code always, or there is some serialization functionality available?How use it? Thanks

var client = ClientFactory.BuildClient(new FactorySettings { Id = ApiId, Hash = ApiHash, ServerAddress = _ServerAddress, ServerPort = _ServerPort, StoreProvider = new TelegramClient.Core.Sessions.FileSessionStoreProvider("session")});

FileSessionStoreProvider save session in current directory.

yes, and how I can restore session?

The library save and restore session automatically

How can I get user object?  Task MakeAuthAsync  receive string code parameter

please, use new library
https://github.com/OpenTl/OpenTl.ClientApi


[SearchField]: Update design

Before

After

New lg (48px) variant

@nachofassini Thank you for this PR! Could you take a look at these stylelint failures?

If you have VSCode, we recommend installing https://github.com/stylelint/vscode-stylelint so you see there errors / warning realtime


datahub-kafka-setup-job with MSK (amazone kafka) error

Describe the bug
I have error when run Datahub with MSK:
MSK version: 2.8.0
WARNING: Due to limitations in metric names, topics with a period ('.') or underscore ('_') could collide. To avoid issues it is best to use either, but not both.
--
Thu, Apr 6 2023 6:33:48 am | WARNING: Due to limitations in metric names, topics with a period ('.') or underscore ('_') could collide. To avoid issues it is best to use either, but not both.
Thu, Apr 6 2023 6:33:51 am | 1 done working
Thu, Apr 6 2023 6:33:51 am | 2 done working
Thu, Apr 6 2023 6:33:51 am | Topic Creation Complete.
Error while executing config command with args '--command-config /tmp/connection.properties --bootstrap-server b-2.devdwhdatahubmsk.....c5.kafka.ap-southeast-1.amazonaws.com:9092,b-1.devdwhdatahubmsk.....c5.kafka.ap-southeast-1.amazonaws.com:9092 --entity-type topics --entity-name _schemas --alter --add-config cleanup.policy=compact'
--
Thu, Apr 6 2023 6:34:01 am | java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.UnknownTopicOrPartitionException:
Thu, Apr 6 2023 6:34:01 am | at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
Thu, Apr 6 2023 6:34:01 am | at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2022)
Thu, Apr 6 2023 6:34:01 am | at org.apache.kafka.common.internals.KafkaFutureImpl.get(KafkaFutureImpl.java:180)
Thu, Apr 6 2023 6:34:01 am | at kafka.admin.ConfigCommand$.getResourceConfig(ConfigCommand.scala:576)
Thu, Apr 6 2023 6:34:01 am | at kafka.admin.ConfigCommand$.alterConfig(ConfigCommand.scala:346)
Thu, Apr 6 2023 6:34:01 am | at kafka.admin.ConfigCommand$.processCommand(ConfigCommand.scala:326)
Thu, Apr 6 2023 6:34:01 am | at kafka.admin.ConfigCommand$.main(ConfigCommand.scala:97)
Thu, Apr 6 2023 6:34:01 am | at kafka.admin.ConfigCommand.main(ConfigCommand.scala)
Thu, Apr 6 2023 6:34:01 am | Caused by: org.apache.kafka.common.errors.UnknownTopicOrPartitionException:

Please help me!
Thanks.

Hi,
I resolved this problem. I must manual create topic _schemas in MSK fisrt.
Thanks.

Hi @gathineou,
maybe this still helps you:
We've created a topic for the schema management by ourselves (default is _schema but you can name it according to your convention)
Make sure to pass the name of the topic via the kafkastore.topic to the schema registry

Hi 👋🏽 and thanks for the reply here @bossenti! So in our case ti came out that the prerequisites schema-registry was disabled after an automatic upgrade in the latest version (issue was that we were missing a lock on the prerequisites version). Once configured properly the schema-registry run before (through a helmfile) and all schemas and setup was in place.


Deprecate old domain-independent heuristics

Deprecate old domain-independent heuristics, and run solver tests only for non-deprecated heuristics.
The reason is that these old heuristics have not been maintained for a while and often perform poorly (#181). Sometimes they make CI break because tests take too much time using those heuristics.

@madmike200590 so far you have only approved this pull request. Could you please also merge it? See our Contributing Guidelines.

@madmike200590 so far you have only approved this pull request. Could you please also merge it? See our Contributing Guidelines.

Sorry, that one slipped through.. I wasn't aware I was supposed to merge as well when I did the review (wasn't sure if one review was enough).


too much space

Hi
Can each line be condensed a little more? Seems a lot of space between lines

Also, I wonder if the icons being there is putting more load on the servers? Each line is now retrieving a gif??

Yeah, I can definitely update the line heights for that.
As for the load on the server, your browser will cache the files so it's only grabbing it the first time you see it anywhere.
I'm also noticing some items don't have icons there, that's odd.

Had another report about how long lists are a pain, might make sense to add the scrolling styles like the gift entries or maybe after a certain amount of items, do something else with it 🤔

Updated this in v0.35.0 and I think it's a bit nicer now. please reopen if you have any other suggestions for it!


Using defined location for config, fixed some regex

Also fixes the issue of #38

Note, this does not copy the original config.ini over. If that is a wished behavior, that could be arranged. Also, may i suggest adding a field for the version of the config file? then we can prevent issues like missing keys not being added, as we know that those keys havent existed and would be needed to be added

Thanks for this. I will study it and try to understand what you made different.
As I should have already said, I am a beginer, it's my first script and before this script I knew nothing about programming or Python ;)
Because of adding features over the times and the lack of knowledges, I am aware that there are some redundancies and many things to improve. Maybe one day I will write a new script or clean this one, but... one day

For one part, i removed class variables several times where you set paths, as you are not giving them as parameter, you were using the same all over the place. so instead of being a part of the class, every class can now utilize global functions that handle it. Additionally by default, logs, temp folder and config are no longer saved in the same folder as the executable. This is, so this can be shipped as standalone program to be installed, as at least for most linux systems, programs cant write to their own folder. It also unifies were to find stuff. But ofc, one might want to use other configs for other modpacks, so i made an option to use another file.
Furthermore, some regexes were broken, at least to what i understood.

Also, all the pretty printing you are doing is causing lines to be very long and increasingly harder to read, you might wanna consider to make templates for the printing part.
Since this has grown a lot since its beginnings, you should think about putting the handling of different parts of the program into separate modules that you utilize in the main file.

Hello,
Thanks again for your time and explanations. But keep in mind that I know "nothing". I am a great beginner. I don't have the logical of a programer.  When I started I had no idea of was a class nor what programing was. And yet now, I am not confortable with all these notions. But each issue /new idea bring a lot of comprehension. I am aware that there are many things that are not "good", "conventional" or "optimized". There're many things I won't do in the same way for sure.
I won't merge the code for now, because If I add code I didn't make I won't understand and I will be lost. But it will be very useful to learn and understand and... change later.
My main aim is a functional script I've made. Later, with more knowledges, I will try to optimize or make things cleaner.
Most of things/terms you use are very abstract for me. What you said in "A look to the future" are things that I am starting to realize. But it is too abstract for me to change things in this script. It would be a big mess ans I would break everything and will shall spend too many time. Probably I should think to rewrite all the script. Maybe a v2.0 will come one day. According time, feeling...

Also, may i suggest adding a field for the version of the config file?

Well it's already there. Or I didn't understand what you mean.
`[ModsUpdater]
info about the creation of the config.ini file
ver = 1.4.0`

programs cant write to their own folder.

I didn't know this. I am not a linux user ;)
At the first begining, the config.ini was in the Vintagestorydata folder. But I didn't think that we could use another datapath. So I decided to put files in the program folder. And Linux version came later.
I could use system temp folder for temp. But where do you put the config.ini ? (I didn't yet have a look at your code). Because , probably a Windows thought, but I think that the config.ini is a at the right place in the program folder.

I won't merge the code for now, because If I add code I didn't make I won't understand and I will be lost.
Totally valid. Better that than being lost. For not knowing how to program, that script is already pretty good. This PR will be here as long as you want.

Well it's already there. Or I didn't understand what you mean.
Actually a fair point.

I could use system temp folder for temp.
Honestly the better way, I personally just don't know myself how you would do it.

I think that the config.ini is a at the right place in the program folder
You could make a config.ini that has the defaults for it, then just copy it to desired location and make changes.


diet: inline syntax for nested tags

Jade provides an abbreviated inline syntax for nested tags which is nice for boilerplate html elements.
a: img
a(href="#"): img

Also see http://jade-lang.com/reference/tags/

Duplicate of #33. I'll probably implement this in the context of a completely new Diet compiler that is separated into parser, DOM and generator parts. Hopefully, the compiler (CTFE) enhancements that have happened over the years make this possible and hopefully it won't eat up too much RAM during compilation. I already have this new implementation about 80% finished, but it's not yet public.

Hopefully, the compiler (CTFE) enhancements that have happened over the years make this possible and hopefully it won't eat up too much RAM during compilation.

We still need to implement a proper AST interpreter, so don't expect too much.


Sync with master

Codecov Report

:exclamation: No coverage uploaded for pull request base (v4@41ec17f). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Current head 44d2b0e differs from pull request most recent head faa3b1f. Consider uploading reports for the commit faa3b1f to get more accurate results

@@          Coverage Diff           @@
##             v4     #1055   +/-   ##
======================================
  Coverage      ?   100.00%
======================================
  Files         ?        36
  Lines         ?      2423
  Branches      ?         0
======================================
  Hits          ?      2423
  Misses        ?         0
  Partials      ?         0


Define overall schedule

For a draft schedule, see this Google doc.

Think about ways to involve the different stakeholders, as per
#24, #25, #26, #27, #28, #29, #30, #31, #33, #34.

The draft schedule is stable now.
We'll be zooming in on specific aspects now.
Closing.


Swagger UI (with swagger 2) javascript error

Hello,
I have added the swagger2 dependency in my Spring MVC application.
and I have added in my resources/webapp the files found in the list folder in the git swagger-ui project
(I have also added a controller /doc to point to that folder)
When I go to
http://localhost:8080/myapp/v2/api-docs
I can see the JSON.
When I go to
http://localhost:8080/myapp/doc/index.html
The swagger html shows up but I get a javascript error
swagger-ui.js:1932 Uncaught TypeError: Cannot read property 'definitions' of null
Note: when I use the http://petstore.swagger.io/v2/swagger.json the UI displays fine.. So for some reasons the JSON generated for my app (which has ONE single test controller and a DTO as parameter) is not correct ?
Could someone help me fix this problem?
thank you

I think I found where the problem is, the call to
http://localhost:8080/myapp/v2/api-docs
returnes in fact a JSON but the whole json string is surrounded by two quote??
"{"version":2.0 ......}"
How can I make that simply return a JSON? is it something to do with jackson ?

@Paul776 Its definitely seems like a problem with your jackson setup.

v2/api-docs return "{}", this question how to fix ?

@virtuecai Hopefully you're using 2.5.0. This is a closed issue. Please create a new issue with specifics

@dilipkrish thanks, springfox can not work with fastjson

Just to clarify out of the box only Jackson is supported. Other serializers CAN be supported using plugins.


is_elevated still asks for password even if sudo is using cached credentials

Defect
Version of process-compose:
$ process-compose version
Process Compose
Version:        v1.27.0
Commit:         2b65c79
Date (UTC):     2024-09-14T20:35:54Z
License:        Apache-2.0
Discord:        https://discord.gg/S4xgmRSHdC

Written by Eugene Berger

OS environment:
nixos with devenv.nix
Steps or code to reproduce the issue:

start process compose with a process that has is_elevated: true
type password -> process runs
restart process compose

-> elevated process runs directly without waiting for password input, but process compose TUI is still asking for a password.
Expected result:

process-compose should not ask for a password if sudo is caching credentials

Actual result:

process-compose always asks for a password

This also happens when the user does not require a password for sudo (NOPASSWD-policy)

This also happens when the user does not require a password for sudo (NOPASSWD-policy)

In the case of NOPASSWD policy, I recommend not using the is_elevated flag.

In the case of NOPASSWD policy, I recommend not using the is_elevated flag.

my use case for process-compose is as process manager for my devenv.nix powered development environment. I don't really know if the user running my devenv has NOPASSWD configured.

The use case is clear.
Will be fixed in the next release.


Exclude useless files from dist archive

Archives fetched from packagist are built by Github (see https://github.com/composer/packagist/issues/1364#issuecomment-1446255498). To exclude files from them, rules should be placed in .gitattributes.

For information, there is 2 ways to validate this. From the branch last commit, either git archive HEAD --format=zip > test.zip, either composer archive should produce cleaned archives.
I will try the v2 ASAP.

Wouldn't it be good to keep the archive.excluded part of the composer.json? Or is the .gitattribute always winning in ALL cases and thus this setting can be ignored?

Both are combined by composer archivee, see https://github.com/composer/composer/blob/1f164244ab54ba5d74af73507750661f9dcb36c9/src/Composer/Package/Archiver/ArchivableFilesFinder.php#L55-L58
So, since it is now in .gitattributes file, there is no need to have it in composer.json:archive.exclude.

Just to follow up on what is happening currently
composer archive excludes the listed files

However composer appears to still be distributing the ignored files

So I don't know what the right answer is if composer are ignoring their own systems or if these lines don't actually accomplish things they suggest they will

See comment from the maintainer of composer:

I guess that makes sense on some level, did you want to recreate the PR or should I just do it and credit you in the commit?

Sorry, I cleaned the forked repo and did not remembered of this PR. You apply the patch using
curl https://patch-diff.githubusercontent.com/raw/RobThree/TwoFactorAuth/pull/103.patch | git apply if the proposal was OK for you.
Anyway, I do not really mind about not being credited for this, I did not proposed this change to get rewards ;).


go hunt overloaded functions that make NIO hard to use

functions like scheduleRepeatedTask are basically impossible to use because they're overloaded on the closure's return type. We ought to rename them and I'm sure there's similar other ones out there.
Proposal:

for sync stuff: scheduleRepeatedSyncTask or maybe just scheduleRepeatedTask (closure returns Void)
for async stuff: scheduleRepeatedAsyncTask (closure returns ELF<Void>)

CC @Lukasa / @normanmaurer good names? We really need to come up with a name here basically today, similar naming issue in #435.

Sounds alright / consistent... How about scheduleRepeatedTask and scheduleRepeatedAsyncTask though?
Actually, I might be missing semantic difference perhaps? From docs and skimming the code it does not seem like returning the future causes "don't schedule next one until current has completed" right (or does it and I misread the code?)? If it did there's another layer of naming there

"don't schedule next one until current has completed" right

Correct. That's quite important because otherwise you can get this nasty 'piling up of work' with timers. Say you schedule something once a second that takes two seconds to do: bad

@ktoso still think scheduleRepeatedTask and scheduleRepeatedAsyncTask are good?

"don't schedule next one until current has completed" right

Correct. That's quite important because otherwise you can get this nasty 'piling up of work' with timers. Say you schedule something once a second that takes two seconds to do: bad

Ok, good. Then mini nitpick while we're at it: this should be mentioned in the swift doc of the other method. Might seem obvious once you know it does, but such guarantee is better documented rather than not-entirely-sure-i-hope-it-does which is what I felt reading / checking the API :)

To me the "sync" feels a bit off... so yeah the naming I'd propose as mentioned. The consistent rule then becoming "things that expose/flatmap/take futures and have versions with just a T" are the "async" versions. Maybe @Lukasa or @normanmaurer have a better idea.


 Doom provides the doom/open-vanilla-sandbox command, which lets you open a blank Emacs session with some code that has access to your packages. This command is bound to SPC h E. It will open a buffer for the code you want to run there.
(require 'evil)
;; do your testing

Then press C-c C-c to execute the vanilla session, or C-c C-d to execute the vanilla Doom session (no private config is loaded).

Thanks!


Update Cluster Management Docs

This is a...

[x] Feature Request
[ ] Bug Report

Either delete or prune this topic: Cluster Management. Much of the content is specific to cloud providers and does not belong in the Kubernetes docs. It might be that the rest of the content is covered by existing Task topics, or could be covered with a couple new Task topics.

/remove-lifecycle rotten
/lifecycle frozen
Do we want to completely kill the vendor specific contents or set up a quarantine saying that "these contents are vendor specific, they are here only for reference, they are supposed to be maintained by the vendor, for more precise information go vendor/k8s page" ?

/language en

/priority backlog

Do we want to completely kill the vendor specific contents or set up a quarantine saying that "these contents are vendor specific, they are here only for reference, they are supposed to be maintained by the vendor, for more precise information go vendor/k8s page" ?

We mainly want to remove them; see the (recently added) content guide

Relevant to issue #20232

/triage accepted
/remove-priority backlog
/priority important-longterm


Integrating FAPI-RW conformance tests run into keycloak’s CI/CD pipeline

It is helpful to run FAPI-RW conformance tests automatically on keycloak’s CI/CD pipeline like the existing arquillian integration tests.
It can keep keycloak to comply with FAPI-RW whenever any PR is merged.
It seems too much complicated to treat this task by one issue so that decomposing it into several sub tasks might be preferable.

@pritish-nitb & @arunganesh-a can help here ... but would be nice if someone can own the task.

@kannan-ra I think it might be sufficient to use FAPI-SIG's repository to conformance tests automatically and follow new version of keycloak and conformance suite. Therefore, I close this issue. Thank you.


Adding a Response::from_bytes() API

I think this would be better API than providing raw nom parsers. I tried to implement it but ran into some snags which I briefly mentioned on Discord. Capturing here because it's probably a better venue:
If we implement a generic Response::from_bytes() API I don't think we can easily keep the Greeting and Ehlo variants
because those are really just more specific cases of Reply_lines/Other. I would be inclined to simplify Response to just be what Response::Other is now, it could provide as_greeting() and as_ehlo() methods instead that handle further parsing? The question here is if the connection state is allowed to influence parsing; IMO it's better to keep these separate where possible.

I think this would be better API than providing raw nom parsers.

I agree that nom should not be part of the API. Having Object::from_bytes(), or Object::decode() sounds good when it is used for different parsing entry points. Maybe even as a Decode trait to keep things consistent. But Response::from_bytes() as in "a parser for all SMTP responses" might be too generic.

If we implement a generic Response::from_bytes() API I don't think we can easily keep the Greeting and Ehlo variants because those are really just more specific cases of Reply_lines/Other. I would be inclined to simplify Response to just be what Response::Other is now, it could provide as_greeting() and as_ehlo() methods instead that handle further parsing? The question here is if the connection state is allowed to influence parsing; IMO it's better to keep these separate where possible.

I think of smtp-codec as a "layer" that can translate raw bytes into verified-to-be-sane SMTP objects. It should be possible to have a process A that only does parsing and forwards the SMTP objects to a process B that only does business logic. Process B won't have a dependency on smtp-codec and can implement all of its logic based on easy-to-consume objects.
With this in mind, the as_greeting() solution blurries this "boundary" a bit. After obtaining a response it could happen that as_greeting fails. If we want to make it so that it doesn't fail we (probably) need to parse anyway. Thus, I think it is better to eagerly parse (and verify) everything from the beginning.
This is also somehow related to #7. When we extract the types into a separate crate, we probably don't want to have any form of parsing in the types. It would somehow push us to decouple things. And this is IMO a good thing.
Hope that this makes sense? :-)


Configure header for generated code

Many projects have guidelines for headers in source code, for instance to state copyright. Some projects even check that using tools like CheckStyle, and fail the build if the header doesn't match the required pattern.
To work well for such projects, RADL's code generation should be configurable with the header to include.

Fixed in core-1.0.15 and gradle-1.0.12.


Running as root is discouraged!

i become a warning messages "Running as root is discouraged!" that i have not the root privileges.
i am the root! i installed all software as a root: geth, postgres, miningcore
i clone on a fresh linux system the latest version of miningcore, compiled it with no error messages ...
but the system works ... waiting for node and make sync ... generated dag .. and the miner works with the pool ...
here is the screen until i started:
[2022-01-19 22:01:17.0054] [I] [Core] Version <IP_ADDRESS>-master [fb0f2f7bff1dc96e1a077561d446b8af42c71a57]
[2022-01-19 22:01:17.0249] [I] [Core] Runtime .NET 6.0.1 on Linux 5.10.0 #83.linux.211201 SMP Wed Dec 1 11:51:04 UTC 2021 [X64]
[2022-01-19 22:01:17.0249] [W] [Core] Running as root is discouraged!
[2022-01-19 22:01:17.0332] [I] [Core] Prometheus Metrics <IP_ADDRESS>:4000/metrics
[2022-01-19 22:01:17.0332] [I] [Core] WebSocket notifications streaming <IP_ADDRESS>:4000/notifications
[2022-01-19 22:01:17.9970] [I] [XmlKeyManager] User profile is available. Using '/home/user/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest.
[2022-01-19 22:01:18.0276] [I] [ShareRecorder] Online

You get the message because you are running Miningcore as root which is not advisable just as the message states.

thx
i changed the user


Swap and Maximize - POTD | 1-Nov-2024

Swap and Maximize
Link
Difficulty: Easy
Given an array arr[ ] of positive elements. Consider the array as a circular array, meaning the element after the last element is the first element of the array. The task is to find the maximum sum of the absolute differences between consecutive elements with shuffling of array elements allowed i.e. shuffle the array elements and make [a1..an] such order that  |a1 – a2| + |a2 – a3| + …… + |an-1 – an| + |an – a1| is maximized.
Examples:
Input: arr[] = [4, 2, 1, 8]
Output: 18
Explanation: After Shuffling, we get [1, 8, 2, 4]. Sum of absolute difference between consecutive elements after rearrangement = |1 - 8| + |8 - 2| + |2 - 4| + |4 - 1| = 7 + 6 + 2 + 3 = 18.
Input: arr[] = [10, 12]
Output: 4
Explanation: No need of rearrangement. Sum of absolute difference between consecutive elements = |10 - 12| + |12 - 10| = 2 + 2 = 4.

Constraints:

2 ≤ arr.size()≤ 105
1 <= arr[i] <= 105

Solved
arr.sort()
l=[]
i=0
j=len(arr)-1
while(i<j):
    l.append(arr[i])
    l.append(arr[j])
    i+=1
    j-=1
if i==j:
    l.append(arr[i])
s=0
for i in range(len(l)-1):
    s+=abs(l[i]-l[i+1])
s+=abs(l[0]-l[-1])
return s


not recognizing modeling library

when I run through your example, it only recognizes preprocessing and not the other three library.
from cophi_toolbox import preprocessing, modeling, postprocessing, visualization
so here it can not recognizes these modeling, postprocessing, visualization
I have installed dariah....
anyone faced with this before?

it should be:
from cophi_toolbox import preprocessing
from dariah_topics import modeling, postprocessing, visualization

appreciate your prompt reply, It should be better if you edit your good example.
one more question, what it mean by labels.
My dataset does not have any label, it is a collection of txt files.
I appreciate that if you can let me know about this?

This is indeed a typo in the README, thanks! (Will fix this).
A label is just the descriptor of one text. You could simply use the filenames for this. If you use e.g. glob to list your files
>>> import glob
>>> path_to_corpus = "/home/user/corpus/*.txt"
>>> files = glob.glob(path_to_corpus)
>>> files
["/home/user/corpus/text1.txt", "/home/user/corpus/text2.txt"]

You could use files as labels, too.
If you really want to get started with topic modeling and this library, clone or download this repository, (install and) run Jupyter, and check out the notebooks in the folder notebooks.

thanks, I have already listed the files, I did not know why the labels may be needed:) anyway many thanks.
I guess the example you put in the readme is not correct.
I got this error
File "/home/m193053/PycharmProjects/testi/tt.py", line 13, in
model = modeling.lda(topics=10, iterations=1000, implementation='mallet')
TypeError: lda() missing 1 required positional argument: 'document_term_matrix'
definitely I will go in depth, but I want to make sure it is applicable on my dataset.

we changed the data model significantly since we wrote the readme. Will be changed asap :)

Thanks :)

hi Michael,
Do you have the plan to update it during today or tomorrow?
Thanks for letting me know :)

I hope to fix it this afternoon. I will let you know as soon as it is done

sounds great

@saria85 switch to branch "testing" and try the Example of the README. It should work now.
Please let me know if it doesn't :)

I would appreciate if you can look at it, still raises error:
File "/home/m193053/PycharmProjects/testi/tt.py", line 13, in
model = modeling.lda(topics=10, iterations=1000, implementation='mallet')
TypeError: lda() missing 1 required positional argument: 'document_term_matrix'

this is the whole error: Also I amrunning on IDE
this is my code 👍
from cophi_toolbox import preprocessing
from dariah_topics import modeling, postprocessing, visualization
import glob
pathlist = "/infodev1/phi-data/sohn/biobank/saria/biobank_65up_noCI_random_CN_cp/*.txt"
labels = glob.glob(pathlist)

corpus = preprocessing.read_files(pathlist)
tokens = [preprocessing.tokenize(document) for document in corpus]
matrix = preprocessing.create_document_term_matrix(tokens, labels)
stopwords = preprocessing.list_mfw(matrix)
clean_matrix = preprocessing.remove_features(stopwords, matrix)
vocabulary = clean_matrix.columns
model = modeling.lda(topics=10, iterations=1000, implementation='mallet')
topics = postprocessing.show_topics(model, vocabulary)
document_topics = postprocessing.show_document_topics(model, topics, labels)
PlotDocumentTopics = visualization.PlotDocumentTopics(document_topics)
static_heatmap = PlotDocumentTopics.static_heatmap().show()

/home/m193053/anaconda3/envs/conda3/bin/python3 /home/m193053/Downloads/Topics-master/test.py
ERROR cophi_toolbox.preprocessing: Skipping /, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping i, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping n, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping f, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping o, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping d, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping e, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping v, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping 1, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping /, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping p, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping h, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping i, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping -, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping d, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping a, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping t, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping a, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping /, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping s, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping o, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping h, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping n, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping /, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping b, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping i, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping o, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping b, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping a, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping n, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping k, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping /, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping s, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping a, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping r, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping i, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping a, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping /, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping b, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping i, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping o, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping b, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping a, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping n, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping k, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping _, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping 6, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping 5, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping u, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping p, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping _, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping n, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping o, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping C, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping I, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping _, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping r, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping a, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping n, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping d, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping o, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping m, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping _, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping C, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping N, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping _, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping c, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping p, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping /, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping *, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping ., because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping t, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping x, because the file format  is not supported.
ERROR cophi_toolbox.preprocessing: Skipping t, because the file format  is not supported.
Traceback (most recent call last):
  File "/home/m193053/Downloads/Topics-master/test.py", line 13, in <module>
    model = modeling.lda(topics=10, iterations=1000, implementation='mallet')
TypeError: lda() missing 1 required positional argument: 'document_term_matrix'

you need to switch to the github branch "testing".
main page
in the top left side is a tab "branch: master" where you can switch to branch: testing. On this page the code is different :)
or just use this (copy pasted):

from cophi_toolbox import preprocessing
from dariah_topics import modeling, postprocessing, visualization
pathlist = ['corpus/dickens_bleak.txt', 'corpus/thackeray_vanity.txt']
labels = ['dickens_bleak', 'thackeray_vanity']
corpus = preprocessing.read_files(pathlist)
tokens = [preprocessing.tokenize(document) for document in corpus]
matrix = preprocessing.create_document_term_matrix(tokens, labels)
stopwords = preprocessing.list_mfw(matrix)
clean_matrix = preprocessing.remove_features(stopwords, matrix)
vocabulary = clean_matrix.columns
model = modeling.lda(topics=10, iterations=1000, implementation='mallet')
topics = postprocessing.show_topics(model, vocabulary)
document_topics = postprocessing.show_document_topics(model, topics, labels)
PlotDocumentTopics = visualization.PlotDocumentTopics(document_topics)
PlotDocumentTopics.static_heatmap().show()

greatly appreciate your help. Its running know. :)


Add CounterSampleBuffer::resolve_counter_range

Tested manually in https://github.com/kvark/blade/pull/179

@grovesNL please take a look!

I'll just merge this one, at least.


Does not compile under Xcode 15 and Sonoma

Hi, I just updated Xcode and macOS and I tried to run my app, and got this flurry of errors:

I guess there is a new check for the availability of the Data class. Is there any easy workaround for now?

Found the issue, the target in the podspec is set to 10.09. Bumping it to 10.10 fixes it. For now I've worked around setting it directly on Xcode.


Release Yotoc

Codecov Report

Merging #584 into master will decrease coverage by 0.06%.
The diff coverage is 97.95%.

@@            Coverage Diff             @@
##           master     #584      +/-   ##
==========================================
- Coverage    96.5%   96.43%   -0.07%
==========================================
  Files         132      123       -9
  Lines        3944     3707     -237
  Branches      360      326      -34
==========================================
- Hits         3806     3575     -231
+ Misses         95       94       -1
+ Partials       43       38       -5

Impacted Files
Coverage Δ

datahub/search/company/views.py
100% <ø> (ø)
:arrow_up:

...mis/core/management/commands/load_omis_metadata.py
100% <ø> (ø)
:arrow_up:

datahub/investment/validate.py
98.18% <ø> (ø)
:arrow_up:

datahub/metadata/metadata.py
100% <ø> (ø)
:arrow_up:

datahub/search/omis/views.py
100% <ø> (ø)
:arrow_up:

datahub/core/constants.py
100% <ø> (ø)
:arrow_up:

datahub/metadata/admin.py
100% <ø> (ø)
:arrow_up:

datahub/leads/serializers.py
100% <ø> (ø)
:arrow_up:

datahub/search/company/serializers.py
98.94% <100%> (ø)
:arrow_up:

datahub/omis/order/serializers.py
100% <100%> (ø)
:arrow_up:

... and 23 more

Continue to review full report at Codecov.

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


Automatically generate markdown help for all command line flags

Is your feature request related to a problem? Please describe.
It has been noted that not all flags for cert-manager components (controller, webhook, cainjector, kubectl plugin) are documented.
We should have some kind of utility that generates markdown for the cert-manager website from the cmd packages.
Describe the solution you'd like
Some sort of utility that takes a git reference for cert-manager and then generates one page of markdown for each component's cmd flags.
This should be runnable in the CI for the cert-manager website.
Additional context
https://github.com/jetstack/cert-manager/pull/4265 was barely started
/kind feature

/remove-lifecycle rotten

/assign


[DATA] aggregate HREA to 2 km resolution so it can be used in el access dashboard

Issue Description
HREA data is sparse and it can not be compared easily with ML el access data. Alternatively custom pyramids might be a better solution
References
https://geohub.data.undp.org/data?queryoperator=and&operator=and&sortby=updatedat%2Cdesc&limit=10&offset=10&query=electricity+access+estimate
Dataset ID
https://geohub.data.undp.org/data/724417aac902cc839818fcca21548b2e
Screenshots
No response
┆Issue is synchronized with this Wrike task by Unito

this was already fixed


feat: :sparkles: build lambda body

Codecov Report
Base: 90.81% // Head: 90.81% // No change to project coverage :thumbsup:

Coverage data is based on head (2cd55bc) compared to base (574374d).
Patch coverage: 100.00% of modified lines in pull request are covered.

:exclamation: Current head 2cd55bc differs from pull request most recent head b0f50e1. Consider uploading reports for the commit b0f50e1 to get more accurate results

Additional details and impacted files
@@           Coverage Diff            @@
##           develop       #7   +/-   ##
========================================
  Coverage    90.81%   90.81%
========================================
  Files           27       27
  Lines          370      370
  Branches        49       49
========================================
  Hits           336      336
  Misses          31       31
  Partials         3        3

Impacted Files
Coverage Δ

...tructure/services/dexcomService/auth/dexcomAuth.ts
65.71% <ø> (ø)

src/infrastructure/envConfig/envConfig.ts
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Fixing NEXUS/CSV download

Fix for #405

Current coverage is 91.67% (diff: 100%)

Merging #406 into master will not change coverage

@@             master       #406   diff @@
==========================================
  Files            30         30
  Lines          1922       1922
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1762       1762
  Misses          160        160
  Partials          0          0

Powered by Codecov. Last update db79fb7...a4657e2


Monitoring folder before a repository is created is broken again

Not sure what happened, but it's broken. :frowning:

Seems to work when I do it in the debugger.


changes in last version of Telegram Cli

last version of Telegram Cli rename settings path, that must be fixed in pytg
in __init__.py , line 120
#was
authfile = os.path.join(os.environ['HOME'], '.telegram', 'auth')
#now:
authfile = os.path.join(os.environ['HOME'], '.telegram-cli', 'auth')

This will be fixed with the merge of the pytg2 fork, soon.
(Actually that particular function will not exist any longer, sorry. If you still need that functionallity, drop a note.)

BAM. there you go.

Thanks @luckydonald


Call.cancel shouldn't offend strict mode

We should document that it doesn't block, and get our friends at AOSP to fix strict mode to not issue a false positive warning.

Do you have a stack trace? Is it one of these cases where it calls a potentially blocking POSIX call that, in practice, will never block with the way the sockets are configured?

It's related to this issue, which has come up again: https://github.com/square/okhttp/issues/869

I'm not up on conscrypt. From a quick skim of the code: when it closes it looks like it sets the socket into blocking mode, then calls SSL_shutdown, which is documented to potentially block. If that's correct it looks like the call to block guard is at least correct with the current implementation.
What makes you think it's a false positive?

Hmmm . . .  . What I want is to quickly & violently break a socket that isn't needed anymore. This isn't intended to be a clean shutdown that flushes queued bytes; instead it just severs the network. Perhaps for SSL we need to break the underlying socket only, which shouldn't require any blocking.

The block guard code for close() appears to be smart enough to check for linger and only complain if they have it set. AFAIK, the HTTP sockets shouldn't have it set, so it will be classed as non-blocking.

I've got a stack if it helps:
android.os.NetworkOnMainThreadException
at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1145)
at com.android.org.conscrypt.OpenSSLSocketImpl.close(OpenSSLSocketImpl.java:1009)
at com.squareup.okhttp.Connection.closeIfOwnedBy(Connection.java:142)
at com.squareup.okhttp.OkHttpClient$1.closeIfOwnedBy(OkHttpClient.java:71)
at com.squareup.okhttp.internal.http.HttpConnection.closeIfOwnedBy(HttpConnection.java:136)
at com.squareup.okhttp.internal.http.HttpTransport.disconnect(HttpTransport.java:135)
at com.squareup.okhttp.internal.http.HttpEngine.disconnect(HttpEngine.java:507)
at com.squareup.okhttp.Call.cancel(Call.java:122)
...

@Wavesonics you supposed to run any network call on background thread.

@iNoles that is not the issue

@iNoles the issue is that calling cancel() on a connection from the main thread triggers the OS's block guard. This is a quick call and shouldn't trigger that protection.

Should be pretty straightforward after this PR lands:
https://github.com/square/okhttp/issues/1592
We'll need to keep both the raw socket and the SSL socket. When closing asynchronously we close the raw socket; when cleaning up or closing synchronously we close both.

Also we should be precise around concurrency on access to the transport & connection. Right now it's not safe.

I'm going to punt this to 3.0, only because not involving HttpURLConnection will make this much easier.

Are there any updates on this?  I'm also getting a android.os.NetworkOnMainThreadException from Call.cancel()
09-15 15:52:20.205 6069-6069/com.etiennelawlor.loop E/AndroidRuntime: FATAL EXCEPTION: main
09-15 15:52:20.205 6069-6069/com.etiennelawlor.loop E/AndroidRuntime: Process: com.etiennelawlor.loop, PID: 6069
09-15 15:52:20.205 6069-6069/com.etiennelawlor.loop E/AndroidRuntime: android.os.NetworkOnMainThreadException
09-15 15:52:20.205 6069-6069/com.etiennelawlor.loop E/AndroidRuntime:     at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1273)
09-15 15:52:20.205 6069-6069/com.etiennelawlor.loop E/AndroidRuntime:     at com.android.org.conscrypt.OpenSSLSocketImpl.shutdownAndFreeSslNative(OpenSSLSocketImpl.java:1126)
09-15 15:52:20.205 6069-6069/com.etiennelawlor.loop E/AndroidRuntime:     at com.android.org.conscrypt.OpenSSLSocketImpl.close(OpenSSLSocketImpl.java:1121)
09-15 15:52:20.205 6069-6069/com.etiennelawlor.loop E/AndroidRuntime:     at com.squareup.okhttp.Connection.closeIfOwnedBy(Connection.java:148)
09-15 15:52:20.205 6069-6069/com.etiennelawlor.loop E/AndroidRuntime:     at com.squareup.okhttp.OkHttpClient$1.closeIfOwnedBy(OkHttpClient.java:75)
09-15 15:52:20.205 6069-6069/com.etiennelawlor.loop E/AndroidRuntime:     at com.squareup.okhttp.internal.http.HttpConnection.closeIfOwnedBy(HttpConnection.java:137)
09-15 15:52:20.205 6069-6069/com.etiennelawlor.loop E/AndroidRuntime:     at com.squareup.okhttp.internal.http.HttpTransport.disconnect(HttpTransport.java:135)
09-15 15:52:20.205 6069-6069/com.etiennelawlor.loop E/AndroidRuntime:     at com.squareup.okhttp.internal.http.HttpEngine.disconnect(HttpEngine.java:573)
09-15 15:52:20.205 6069-6069/com.etiennelawlor.loop E/AndroidRuntime:     at com.squareup.okhttp.Call.cancel(Call.java:122)
09-15 15:52:20.205 6069-6069/com.etiennelawlor.loop E/AndroidRuntime:     at retrofit.OkHttpCall.cancel(OkHttpCall.java:158)
09-15 15:52:20.205 6069-6069/com.etiennelawlor.loop E/AndroidRuntime:     at retrofit.ExecutorCallAdapterFactory$ExecutorCallbackCall.cancel(ExecutorCallAdapterFactory.java:63)

I guess I have to wrap the Call.cancel() method in an AsyncTask until this gets resolved.
new CancelTask().execute(call);

private class CancelTask extends AsyncTask < Call, Void, Void > {@
    Override
    protected Void doInBackground(Call...params) {
        Call call = params[0];
        call.cancel();
        return null;
    }
}

@lawloretienne you can use the OkHttp dispatcher executor service for it:
client.getDispatcher().getExecutorService().execute(new Runnable() {
    @Override
    public void run() {
        call.cancel();
    }
});

Any news on this one?

Calling unsubscribeOn(Schedulers.io()) fixed the issue for me for the time being. Found the solution here.

@ubuntudroid Thanks, it works for me

Unfortunately all of these solutions involve doing it async. I have a use case that requires it to be deterministic so they won't work for me.
I see @swankjesse suggested punting this to 3.0, is that a wait and see about it in 3.0? Or do we expect 3.0 will inherently fix this because it's ditching HURL?

I'm working on it for OkHttp 2.7.

@swankjesse Outstanding news! Do you have any super rough idea how much longer 2.7 will be in the oven?

4–12 weeks!


Remote Validation on Validator

@jpotts18 here's a pull request that adds remote validation to Validator. I have yet to update readme or add tests so this is not ready for merger.

I ended up adding another method (remoteValidationRequest) to ValidationDelegate to accomplish this instead of creating a rule that does dynamic validation. I did this to avoid breaking the validation structure that is already in place.

Current coverage is 77.00%

Merging #95 into master will decrease coverage by -12.65% as of 30a1dd1

@@            master    #95   diff @@
=====================================
  Files           22     22
  Stmts          406    474    +68
  Branches         0      0
  Methods
=====================================
+ Hit            364    365     +1
  Partial          0      0
- Missed          42    109    +67

Review entire Coverage Diff as of 30a1dd1

Powered by Codecov. Updated on successful CI builds.

I am a little concerned that having networking code in this library. It makes me feel like we are trying to accomplish more than just validating UIViews. I also worry that no matter how you try to implement this we are going to end up with a million different issues for people wanting to support JSON, XML, different REST HTTP verbs, etc.
I originally thought the idea of the DynamicRule would have worked for this and we wouldn't care whether they hit a server with HTTP, local database, or check another UIView. As long as they provide a Closure that responds with a Bool we are fine.

I agree that networking code should not be a part of the library. But that's why I made a delegate method that puts the networking code in hands of the developer using the library. When a field has remote validation, the remoteValidationRequest method is called with all the information a developer needs to make her server request that will check the field against whatever server-side requirements she has. So I kind of feel like SwiftValidator is not responsible for networking but for only declaring a field to be valid or invalid depending on whether the developer sets remoteValidationRequest's completion handler to true or false.

But I could just be being too partial.

@jpotts18 I created branch called remote-validation that has an updated README detailing how remote validation is accomplished. Don't worry, it's my last press on the matter. haha. Just wanted you to see exactly how I went about doing it in effort to remove networking responsibility from SwiftValidator.


Ant Design doesn't work with Nuxt Layers

ui-kit.zip
reproducible code attached to this issue, i was using pnpm (but it doesn't matter, if it's pnpm or npm / yarn)
Steps to reproduce:

pnpm install
pnpm dev it gets stuck

Same problem, and it took over two minutes to warm up on my Windows!

Eventually, the page fails to render.

Additional Notes:
The final page rendered, but some warnings appeared before that. After about five minutes.
[Vue warn]: Failed to resolve component: a-extract-style
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
[Vue warn]: Non-function value encountered for default slot. Prefer function slots for better performance.
[Vue warn]: Component <Anonymous> is missing template or render function.
[Vue warn]: Failed to resolve component: a-extract-style
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
[Vue warn]: Non-function value encountered for default slot. Prefer function slots for better performance.
[Vue warn]: Component <Anonymous> is missing template or render function.
[Vue warn]: Failed to resolve component: a-extract-style
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
[Vue warn]: Non-function value encountered for default slot. Prefer function slots for better performance.
[Vue warn]: Component <Anonymous> is missing template or render function.
[Vue warn]: Failed to resolve component: a-extract-style
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
[Vue warn]: Non-function value encountered for default slot. Prefer function slots for better performance.
[Vue warn]: Component <Anonymous> is missing template or render function.

Does this seem to be a result of Vite optimizing ES Modules?
I think this is a serious performance issue. I will try to provide a reproduction to help fix this if necessary.

@Sun-ZhenXing have you tried to use this module in a module instead?

@Sun-ZhenXing have you tried to use this module in a module instead?

No, I don't know how to make such an attempt.

@avxkim, please check this minimal reproduction, it works fine but takes about 5 minutes to render on my Windows 11 (Intel 12900).
Try:
pnpm i
pnpm dev

It seems to have been working since Nuxt 3.12.4.
I checked it with different Nuxt versions:
3.10.3 to 3.12.3: It takes about 2 minutes on my laptop to warm up the dev server
3.12.4 and 3.13.0: It takes a few seconds to warm up the server

@andreev-nikita Nuxt 3.13 has refactored many of the layers implementations, and this is no longer an issue.


chore(main): release 0.1.0

:robot: I have created a release beep boop
0.1.0 (2023-08-25)
Features

add redis compat client (#1) (2ee5822)

Bug Fixes

add missing redis service to run tests against (#4) (d2b2e76)
add token to setup repo step and rename package (#3) (b06af63)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/momentohq/momento-python-redis-client/releases/tag/v0.1.0 :sunflower: