Run Q&A Generator with the Latest Collected Data

User story

As a data engineer
I want/need to generate Q&A pairs from the CNCF web pages and Stackoverflow row data
So that our train set can be enriched

Acceptance criteria

The data from web pages are generated into Q&A pairs

The data from Stackoverflow are generated into Q&A pairs

Align the format of Q&As from Stackoverflow with ours

Store the generated pairs on the HuggingFace Q&A dataset repo

Definition of done (DoD)

Bill of Materials in the planning document has been updated
All feature branches have been merged and closed
New feature code has been documented
Potential new licenses have been checked
All GitHub Actions are passing
The requirement.txt is updated

DoD general criteria

Feature has been fully implemented
Feature has been merged into the mainline
All acceptance criteria were met
Product owner approved features
All tests are passing
Developers agreed to release

We encountered some issues with HPC and get significantly less resources. Computation takes ages. Christian was in contact with the Chair and HPC support but the cluster does not provide him with any output. We will have to see

already spent SP02

Uploaded Q&A to Huggingface


Little work for a lot less clicking

CPod version:
CPod v1.26.1
Description:
Thank you for such a beautiful, functional podcast desktop program!
In the current version we can customize our individual listening sessions. However, most listening sessions are predictably simple: listen to unlistened-to episodes of either all our subscribed podcasts or one podcast in particular. I think there are a few changes that can reduce by 90+% the # of clicks for the typical usecases to make your program even better.
A few ideas sorted by effect divided by effort:

On an empty-queue, [Play] will auto-generate a playlist of unlistened-to episodes of subscribed podcasts

#84 goes into this partially

Clear queue button
Integration with keyboard media keys for playback control with program in background
[Play] button on a Podcasts' Details view that will auto-generate a queue of unlistened-to episodes for that podcast for binging
Sorting for auto-generated queues

Newest->Oldest
Oldest -> Newest
Most listened to
Most listened to relative to subscriber count

Podcast groups, i.e. a "Javascript Podcasts" group

On the podcast group view, be able to click [Play] and auto-generate a queue of unlistened-to episodes of podcasts in podcast group

Empty search result for empty search results--instead of showing suggested podcasts
Mouseover overlay/highlight with Subscribe/View details button on Podcast icon in Search results

Current subscribe button in tooltip has too low of a tolerance for mouse errors. Particularly true for long podcast titles

Queue history
Trending podcast episode/podcast list
Minimize to taskbar
Podcast suggestions more reflection of Subscriptions/Searches
Multiple profiles

Looking for it now, I see it. Sorry. I think two small UI details helped mislead me:

Suggested podcasts aren't "fixed position" and the "No search results" div is short, height-wise, so the suggestions move up to where the search results would normally be.
"No results" is in small type + gray font. I had my brightness turned down at night, and I missed the gray text.

Adjusted OP to account for this.

@EmperorEarth Thanks for the clarification. Solved in 6b09f1c8ef69dc94663a0f4dba26088486ceae09.


Build an image with release to make the image have a version record

Description
Build an image with release to make the image have a version record.

Linked Issues
Additional context

Thanks, but we have no plans to maintain the version number in v1. Bringing in version numbers would cause confusion.


to_netcdf() modifies scheduler='single_threaded' behaviour

Hello,
When specifying an xarray saving (with to_netcdf()) the scheduler in 'single_threaded' mode seems to change temporarly into 'threads' mode. That is a little bit confusing.
Is it a bug ?
thanks,
Patrick
Hereafter, a short code to reproduce the problem.
if SAVING is False, Profiler returns (WHAT IS EXPECTED) :

if SAVING is True, Profiler returns (WHAT IS NOT EXPECTED) :

import numpy as np
import xarray as xr
from dask.diagnostics import Profiler, visualize

SAVING = False

xarr = xr.DataArray(np.random.random((100, 100, 10)), dims=["x", "y", "z"])
xarr = xarr.chunk(chunks={"z": 1})

def interpolate(x):
    z_interp = np.arange(0, 10, 0.5)
    x = x.interp(z=z_interp)
    if SAVING:
        x.to_netcdf("test.nc")
    return x

with Profiler() as prof:
    xarr = interpolate(xarr)
    xarr.compute(scheduler='single-threaded')

visualize([prof])

Environment:
Windows 10
python 3.7.7
dask : 2020.12.0
xarray : 0.16.1

As you have it written, you are not specifying the 'single-threaded' scheduler for the to_netcdf part of your example. Instead, you are computing the interpolated array with the single-threaded scheduler after using the default scheduler (threaded) to write the netcdf file. There are a few ways to do this though:
You could wrap your full computation with dask.config's context manager:
with dask.config.set(scheduler='single-threaded'):
    with Profiler() as prof:
        xarr = interpolate(xarr)

Or you could globally set the scheduler to single-threaded:
dask.config.set(scheduler='single-threaded')

Or you could instruct xarray to return a dask delayed object from the to_netcdf call:
...
if SAVING:
    task = x.to_netcdf("test.nc", compute=False)
    task.compute(scheduler='single-threaded')

More details on how to control the dask scheduler are available here: https://docs.dask.org/en/latest/setup/single-machine.html

As you have it written, you are not specifying the 'single-threaded' scheduler for the to_netcdf part of your example. Instead, you are computing the interpolated array with the single-threaded scheduler after using the default scheduler (threaded) to write the netcdf file. There are a few ways to do this though:
You could wrap your full computation with dask.config's context manager:
with dask.config.set(scheduler='single-threaded'):
    with Profiler() as prof:
        xarr = interpolate(xarr)

Or you could globally set the scheduler to single-threaded:
dask.config.set(scheduler='single-threaded')

Or you could instruct xarray to return a dask delayed object from the to_netcdf call:
...
if SAVING:
    task = x.to_netcdf("test.nc", compute=False)
    task.compute(scheduler='single-threaded')

More details on how to control the dask scheduler are available here: https://docs.dask.org/en/latest/setup/single-machine.html

Thank you very much jhamman for your answer.
I ignored such differencies between pure computational instructions and 'simple' writing ones in the point of view of the 'scheduler'. Thanks again.
I close the issue.
Patrick

Thank you very much jhamman for your answer.
I ignored such differencies between pure computational instructions and 'simple' writing ones in the point of view of the 'scheduler'. Thanks again.
I close the issue.
Patrick


feat(icons): added spotlight icon

#2555
What is the purpose of this pull request?

[x] New Icon

Description
Added new spotlight icon.
Icon use case

highlight the winners, feature, or person on stage (virtually and physically)

Alternative icon designs

Icon Design Checklist
Concept

[x] I have provided valid use cases for each icon.
[x] I have not added any a brand or logo icon.
[x] I have not used any hate symbols.
[x] I have not included any religious or political imagery.

Author, credits & license

[x] The icons are solely my own creation.
[ ] The icons were originally created in # by @
[ ] I've based them on the following Lucide icons:
[ ] I've based them on the following design:

Naming

[x] I've read and followed the naming conventions
[x] I've named icons by what they are rather than their use case.
[x] I've provided meta JSON files in icons/[iconName].json.

Design

[x] I've read and followed the icon design guidelines
[x] I've made sure that the icons look sharp on low DPI displays.
[x] I've made sure that the icons look consistent with the icon set in size, optical volume and density.
[x] I've made sure that the icons are visually centered.
[x] I've correctly optimized all icons to three points of precision.

Before Submitting

[x] I've read the Contribution Guidelines.
[x] I've checked if there was an existing PR that solves the same issue.

I feel like something like this might be better
 over
Maybe even bigger?

I feel a subtle noise between the two new icons because of the lines. The first one indicates that something is going down—typically, a spotlight comes from above, but when displayed, it feels stable and stagnant, not moving lower. The second one feels like it is speaking or indicating subtle noise.

I feel a subtle noise between the two new icons because of the lines. The first one indicates that something is going down—typically, a spotlight comes from above, but when displayed, it feels stable and stagnant, not moving lower. The second one feels like it is speaking or indicating subtle noise.

I am not super happy with my suggestions either, what is making me feel unhappy about the current version is the density, it feels quite small and just hard to identify at small scales.

Perhaps, we can make the ellipse bigger?

What about something like this?
Open lucide studio

@chessurisme Just a friendly ping to ask about the suggested changes from @jguddas . What is the current state of this PR? Do you need more ideas / examples? How can I help you with?

I'm not super happy with the current state of the PR, feels like we can do a more clean, more "Lucid-y" icon.

How about this one:
https://lucide-studio.vercel.app/edit?value=<path+d="M20.686+18.46+8.505+6.72"+/><path+d="M3.8+4a2+2+0+0+0-.4+2.8l1.8+2.4+4-3-1.8-2.4a2+2+0+0+0-2.8-.4z"+/><path+d="m5+19.082.918-10.42"+/><ellipse+cx="13"+cy="19"+rx="8"+ry="2"+/>

or this: https://lucide-studio.vercel.app/edit?value=<path+d="m5+19+6-15h3l7+15"+/><ellipse+cx="13"+cy="19"+rx="8"+ry="2"+/>

here's one, not yet optimized:
https://lucide-studio.vercel.app/edit?value=<path+d="m16.558+14.962+2.524-7.3"+/><path+d="M19.288+17.748+7.505+5.721"+/><path+d="M2.8+3a2+2+0+0+0-.4+2.8l1.8+2.4+4-3-1.8-2.4a2+2+0+0+0-2.8-.4z"+/><path+d="M20+19.5a2.5+2.5+0+0+0-2.5-2.5h-11A2.5+2.5+0+0+0+4+19.5V21a1+1+0+0+0+1+1h14a1+1+0+0+0+1-1z"+/><path+d="M21.2+3a2+2+0+0+1+.4+2.8l-1.8+2.4-4-3+1.8-2.4a2+2+0+0+1+2.8-.4z"+/><path+d="M4.714+17.75+16.495+5.722"+/><path+d="M7.29+14.59+4.918+7.663"+/>

or this one (still not optimized): https://lucide-studio.vercel.app/edit?value=<path+d="M19.082+7.662+12+22+4.918+7.662"+/><path+d="M2.8+3a2+2+0+0+0-.4+2.8l1.8+2.4+4-3-1.8-2.4a2+2+0+0+0-2.8-.4z"+/><path+d="M21.2+3a2+2+0+0+1+.4+2.8l-1.8+2.4-4-3+1.8-2.4a2+2+0+0+1+2.8-.4z"+/><path+d="m7.5+6+12.245+14.618a.923.923+114.774+0+1-.703+1.521H4.452a.925.925+65.181+0+1-.704-1.524l12.54-14.754"+/>

We have this projector icon, that is very lovely, maybe we can somehow get a similar feel.
Open lucide studio

What about something like this?
Open lucide studio

This one may be a good candidate.

This is also my favorite :)

Feels Lucid-y and a great one. How is it @jguddas?

Ready to launch, I guess! 🚀

Ready to launch, I guess! 🚀

I'm still not 100% happy, maybe you @danielbayley has something flying around somewhere?


Missing license

Hi, missing License,

Yeah, would definitely love to see a non-viral license strapped to this project.
Right now I'm using it by calling the API, but I'd love to be able to include some bits in some of the projects I work on now...

https://tldrlegal.com/license/apache-license-2.0-(apache-2.0) maybe?


Envoy in kubernetes with VCL interface

Title: Envoy in kubernetes with VCL interface
Description:

I'm trying to run envoy with VCL socket [1] in kubernetes environment. Unfortunately, envoy crashes every time with output [2]. I tried the same configuration without docker, and everything works fine. Am I missing some Kubernetes's configuration [3]?

Relevant Links

[1] #18149
[2] envoy.log
[3] Configuration

@florincoras here is bt:
(gdb) bt
#0  raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x000055b073cdee56 in Envoy::SignalAction::sigHandler (sig=6, info=0x7fee5d07ebf0, context=0x7fee5d07eac0) at source/common/signal/signal_action.cc:53
#2  <signal handler called>
#3  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#4  0x00007fee5c11d921 in __GI_abort () at abort.c:79
#5  0x000055b073c82676 in os_panic () at /b/f/w/external/com_github_fdio_vpp_vcl/src/vppinfra/unix-misc.c:177
#6  0x000055b073c82775 in os_out_of_memory () at /b/f/w/external/com_github_fdio_vpp_vcl/src/vppinfra/unix-misc.c:221
#7  0x000055b073c8421a in clib_mem_alloc_aligned_at_offset (size=137438953480, align=8, align_offset=<optimized out>, os_out_of_memory_on_failure=1)
    at /b/f/w/external/com_github_fdio_vpp_vcl/src/vppinfra/mem.h:243
#8  vec_resize_allocate_memory (v=<optimized out>, v@entry=0x0, length_increment=length_increment@entry=4294967296, data_bytes=137438953480, header_bytes=8, header_bytes@entry=0,
    data_align=data_align@entry=8, numa_id=numa_id@entry=255) at /b/f/w/external/com_github_fdio_vpp_vcl/src/vppinfra/vec.c:71
#9  0x000055b073bc2db8 in _vec_resize_inline (v=0x0, length_increment=<optimized out>, data_bytes=<optimized out>, header_bytes=0, data_align=1, numa_id=255)
    at /b/f/w/external/com_github_fdio_vpp_vcl/src/vppinfra/vec.h:170
#10 fifo_segment_msg_qs_discover (fs=0x7fee4a8db638, fds=fds@entry=0x7fff21de5efc, n_fds=n_fds@entry=0) at /b/f/w/external/com_github_fdio_vpp_vcl/src/svm/fifo_segment.c:1145
#11 0x000055b073c1ac93 in vcl_segment_discover_mqs (segment_handle=segment_handle@entry=18446744073709551614, fds=0x7fff21de5efc, n_fds=0)
    at /b/f/w/external/com_github_fdio_vpp_vcl/src/vcl/vcl_private.c:541
#12 0x000055b073c1b896 in vcl_api_attach_reply_handler (mp=<optimized out>, fds=0x7fff21de5ef0) at /b/f/w/external/com_github_fdio_vpp_vcl/src/vcl/vcl_sapi.c:93
#13 vcl_sapi_attach () at /b/f/w/external/com_github_fdio_vpp_vcl/src/vcl/vcl_sapi.c:184
#14 0x000055b073ba9e01 in vcl_api_attach () at /b/f/w/external/com_github_fdio_vpp_vcl/src/vcl/vppcom.c:1333
#15 vppcom_app_create (app_name=0x55b070d4fcb3 "envoy") at /b/f/w/external/com_github_fdio_vpp_vcl/src/vcl/vppcom.c:1382
#16 0x000055b073b9d9e5 in Envoy::Extensions::Network::Vcl::vclInterfaceInit (dispatcher=..., concurrency=1) at contrib/vcl/source/vcl_interface.cc:119
#17 0x000055b073b9bd38 in non-virtual thunk to Envoy::Extensions::Network::Vcl::VclSocketInterface::createBootstrapExtension(google::protobuf::Message const&, Envoy::Server::Configuration::ServerFactoryContext&) () at contrib/vcl/source/config.cc:16
#18 0x000055b072e63e57 in Envoy::Server::InstanceImpl::initialize (this=this@entry=0x1748ffb12000, local_address=..., component_factory=...) at source/server/server.cc:511
#19 0x000055b072e60224 in Envoy::Server::InstanceImpl::InstanceImpl (this=0x1748ffb12000, init_manager=..., options=..., time_system=..., local_address=..., hooks=..., restarter=..., store=...,
    access_log_lock=..., component_factory=..., random_generator=..., tls=..., thread_factory=..., file_system=..., process_context=..., watermark_factory=...) at source/server/server.cc:111
#20 0x000055b071a69914 in std::__1::make_unique<Envoy::Server::InstanceImpl, Envoy::Init::Manager&, Envoy::Server::Options const&, Envoy::Event::TimeSystem&, std::__1::shared_ptr<Envoy::Network::Address::Instance const>&, Envoy::ListenerHooks&, Envoy::Server::HotRestart&, Envoy::Stats::ThreadLocalStoreImpl&, Envoy::Thread::BasicLockable&, Envoy::Server::ComponentFactory&, std::__1::unique_ptr<Envoy::Random::RandomGenerator, std::__1::default_delete<Envoy::Random::RandomGenerator> >, Envoy::ThreadLocal::InstanceImpl&, Envoy::Thread::ThreadFactory&, Envoy::Filesystem::Instance&, std::__1::unique_ptr<Envoy::ProcessContext, std::__1::default_delete<Envoy::ProcessContext> > > (__args=..., __args=..., __args=..., __args=..., __args=..., __args=..., __args=..., __args=..., __args=..., __args=..., __args=...,
    __args=..., __args=..., __args=...) at /opt/llvm/bin/../include/c++/v1/memory:2094
#21 0x000055b071a68c99 in Envoy::MainCommonBase::MainCommonBase (this=this@entry=0x1748ffca0ad0, options=..., time_system=..., listener_hooks=..., component_factory=..., platform_impl=...,
    random_generator=..., process_context=...) at source/exe/main_common.cc:88
#22 0x000055b071a6a437 in Envoy::MainCommon::MainCommon (this=0x1748ffca0400, argc=<optimized out>, argc@entry=8, argv=argv@entry=0x7fff21de6ed8) at source/exe/main_common.cc:207
#23 0x000055b071a6a5cc in std::__1::make_unique<Envoy::MainCommon, int&, char**&> (__args=<optimized out>, __args=<optimized out>) at /opt/llvm/bin/../include/c++/v1/memory:2094
#24 Envoy::MainCommon::main(int, char**, std::__1::function<void (Envoy::Server::Instance&)>) (argc=8, argv=0x7fff21de6ed8, hook=...) at source/exe/main_common.cc:235
#25 0x000055b071a6679c in main (argc=2, argv=0x7fff21de5b70) at source/exe/main.cc:24

@jlatusek it looks like vcl is crashing while mapping the shared memory messages queues vpp allocated because of dubious data in the fifo segment. The only thing that comes to mind is that vpp is somewhat older than the vcl built into Envoy is.
Are you running the same vpp version in containers like the one you were using without docker? Check for instance with show version cli. Note that in case you want to change vcl's version, you can move it forward from here.
If that's not the issues, we'll have to understand why vpp and vcl's memory mappings for the fifo segment are different. All of my recent testing was done with ubuntu 20.04 and Intel CPUs, so let me know if this is considerably different for your test setup.

@florincoras Thanks for your help. Previously, I was using the official build of envoy and VPP. Now I tried official envoy docker image and build VPP using pointed out git commit hash. Everything seems to be working fine for now.

@jlatusek perfect! Let us know if you hit any other issues.


Crashing every few seconds. Android Studio unstaged changes.

Hi all,
I ran through the debugging report. I have run Atom on safe mode and checked to make sure I have the most updated version of atom. I was working on a new project last night with no issues. Early today, I started to edit the file, and atom crashed. I checked the window for any clue of what might have happened, and a new window appeared on my screen called git. It listed over 1000 unstaged changes from Android studio. The only thing I can think to do next is to clear the save state or return to factory settings, but I don't want to lose all my data. I'm unsure about what changed between yesterday and today. It did not crash at all yesterday. I have attached a screenshot below.

Expected behavior: When I open up Atom, I expect the program not to crash a few seconds after I make a change.
Actual behavior: The git window is filled with unstaged changes relating to android studio after I make any change to Atom. Atom then crashes. This has never happened before, I have had android studio installed the entire time I have had atom installed (a few months).
Reproduces how often: Every time I open up Atom and click, or type, 100%.

Prerequisites

[X] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description
[Description of the issue]
Steps to Reproduce

[First Step]
[Second Step]
[and so on...]

Expected behavior: [What you expect to happen]
Actual behavior: [What actually happens]
Reproduces how often: [What percentage of the time does it reproduce?]
Versions
You can get this information from copy and pasting the output of atom --version and apm --version from the command line. Also, please include the OS and what version of the OS you're running.
Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.

Just to be safe, I'd suggest copying the project you're working on if you haven't already.
Can you check if you have a .git directory in your home directory?
ls -ld ~/.git

If you do and you didn't create it intentionally, go ahead and rename it and start Atom again:
mv ~/.git ~/.git-backup

Sorry and just to clarify, you should run the commands I shared above in Git Bash which I see you have installed based on your screenshot.


Fix: ignore empty lines and spaces between XML tags

Codecov Report

Merging #129 into master will increase coverage by 0.61%.
The diff coverage is 45.16%.

@@            Coverage Diff             @@
##           master     #129      +/-   ##
==========================================
+ Coverage   83.86%   84.48%   +0.61%
==========================================
  Files         114      109       -5
  Lines        5034     4962      -72
==========================================
- Hits         4222     4192      -30
+ Misses        523      480      -43
- Partials      289      290       +1

Impacted Files
Coverage Δ

pkg/codec/xml/errors.go
100.00% <ø> (ø)

pkg/codec/xml/object.go
48.14% <40.00%> (-3.86%)
:arrow_down:

pkg/codec/json/types.go
96.96% <66.66%> (-2.40%)
:arrow_down:

pkg/flow/caller.go
68.00% <0.00%> (ø)

pkg/checks/checks.go
100.00% <0.00%> (ø)

pkg/broker/logger/logger.go
92.85% <0.00%> (ø)

pkg/broker/listeners/listeners.go

pkg/broker/endpoints/errors.go

pkg/broker/listeners/errors.go

pkg/broker/endpoints/transport.go

... and 2 more


feat(WEG-61): sort facilities by geolocation

This PR makes sure that the facilities are sorted by geolocation (closest to user first) when geolocation access has been granted.

:tada: This PR is included in version 1.3.0-rc.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Tinkerbell theme

Deplot preview url https://deploy-preview-27--festive-goldwasser-489842.netlify.app/


Disable touch drag selection in the body of the case table

Disable touch drag selection in the body of the case table to make it easier to scroll
Note that this requires a modified version of the jquery.event.drag library as well, which is part of the CODAP repository.

Closing as CODAP is no longer using SlickGrid as a submodule, preferring to simply embed the required files directly.


add table schema and describe undo log entries

Refactor SchemaID, TableID to use u64 directly.
Group buffer pool, block index, schema to form table abstraction.
Add detailed description about undo log.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 17.56757% with 61 lines in your changes missing coverage. Please review.

Project coverage is 72.68%. Comparing base (ee5a2d8) to head (496611b).

Files with missing lines
Patch %
Lines

doradb-storage/src/row/mod.rs
15.00%
34 Missing :warning:

doradb-storage/src/table/mvcc.rs
0.00%
24 Missing :warning:

doradb-storage/src/table/mod.rs
0.00%
2 Missing :warning:

doradb-storage/src/value.rs
0.00%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #146      +/-   ##
==========================================
- Coverage   72.77%   72.68%   -0.09%
==========================================
  Files         128      130       +2
  Lines       17984    18008      +24
==========================================
+ Hits        13087    13089       +2
- Misses       4897     4919      +22

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Update files.json

Adding Support for the new translation's format server-side

Adding Support for the new translation's format server-side


Replaced invalid toastr message with "Upload cancelled" message

Fixes #707

Description

Fixed: invalid toastr message being shown when upload cancelled

Checklist
- [ ] I have made corresponding changes to the documentation.
- [ ] I have updated the types definition of modified exports.

[x] I have verified the functionality in some of the neeto web-apps.
[x] I have added the necessary label (patch/minor/major - If package publish
is required).

Reviewers
@AbhayVAshokan _a

Cannot auto-update because of conflicts.


Update requirements.txt

The stanza version 1.1.1 does not match the current resources.
When run_preprocess.sh is executed, an error like "Missing key(s) in state_dict" will appear.
The stanza package should be updated to the latest version.

sorry, this is my own mistake, because I messed up the package version and the resource version


Base url is not correct on reverse_proxy

Im using Rails5API and Rails_admin 1.1.1 Some links use <IP_ADDRESS>:3000 as base url instead using relative path (as other routes do). NOTICE: IM ON PRODUCTION SO <IP_ADDRESS> is not the correct url
OK

WRONG

WRONG

UPDATE: This bug happens when i do a reverse_proxy on nginx. Same app on heroku works perfect.
UPDATE: Fixed with application.rb => config.action_controller.default_url_options

Same problem here. Setting config.action_controller.default_url_options = { host: 'example.com', port: 80 } can be used as a workaround.

If we're serving on https should we use 443 or still on 80? I've got an nginx reverse proxy as well and am redirecting from 80 to 443 for ssl.

config.action_controller.default_url_options

undefined method `action_controller' for RailsAdmin::Config:Module (NoMethodError)


feat: define a type synonym for right action on the domain of a function

Based on this discussion on Zulip

LGTM. Except I can't bors it because I can't read the run_cmd bit.

I borrowed it from Data.UInt. It runs the instance line for each name in the list.

bors r+
Thanks!


Sort collections in 'Add to Collection' dropdown alphabetically (bug …

…1041234).
https://bugzilla.mozilla.org/show_bug.cgi?id=593634
Reproduced:

Fixed:

This is excellent, thanks! Two minor nits, and it'll be good to merge

Also, if you could squash those commits at the end, that would be helpful, otherwise i'll just do it when merging.

Perfect! Thanks a lot for this contribution!
r+

*/!\ The bug number in the commit is wrong, the correct bug number is 593634 /!*


Twindle website

Following the design and remaking the website .. since reviewing will be alot in that sense creating a pr after each section :)
Not yet completely responsive

@JoelVinayKumar

Please create separate issues for each section

close #625

done @JoelVinayKumar

As we are working on phase 1
Convert to PDF not needed
Should be replaced with Email
@JoelVinayKumar @UnevenCoder

I  am not sure , I followed the design

@vasudeveloper001 please review
earlier code using html5 section etc looks much better

What do you mean looks better ?

section vs div
I think you are referring wrong design. Below u should refer

@JoelVinayKumar created a design file for the project , I followed it ..
https://www.figma.com/file/34YX1uk6ZVhQWVzLyjzUdG/Twindle?node-id=0%3A1

@UnevenCoder scroll to right 😊 in the same figma

wait yea unnecessary time waste :( , will close the pull request then


Quality Gate check in Sonar Task during PR

I don't know if this is even somehow technically possible with the current feature set of Sonar, but currently while running the Sonar Task during a PR it won't check the quality gate. With Sonars default quality gate which checks that no technical dept > 5% is introduced in new code this can lead to the situation that the build for the PR is successful, but the build after the merge of the PR fails. This is especially troublesome if there is a branch policy is in inplace which doesn't allow direct commits to fix this, but instead requires a new PR.
It would be nice if the Sonar task would be able to determine the resulting quality gate during a PR, but still without uploading the results or setting the quality gate in Sonar.

Hi Pascal,
I am glad you're making advanced use of these build tasks!
In PR builds we force SQ analysis to "incremental mode", which means that the result of the analysis are not uploaded to the SQ server and that the quality gate is not computed. This also means that a PR build cannot fail because of the quality gate failure, so a new PR build should be fine ?
I do agree however that there is value in computing the quality gate during incremental analysis and thus allowing PR builds to fail. You'll have to speak to the Sonar Source folks about this. We have discussed it with them a few times as many users ask for this feature, but there were more pressing matters on their backlog at the time.

Thanks @bgavrilMS. I assumed that it's like this. I've also posted it to the Sonar group: https://groups.google.com/forum/#!topic/sonarqube/FgevBBai-Rc


New implementation

/cc @codeliner

@prolic So I can use the category projection as an replacement for take snapshot by event name?

The snaoshotter itself is a projection, so you always have the newest state
in snaoshot store, as long as the process does not lag too much behind.
Am 09.12.2016 03:26 schrieb "Sandro Keil"<EMAIL_ADDRESS>@prolic https://github.com/prolic So I can use the category projection as
an replacement for take snapshot by event name?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/prooph/snapshotter/pull/16#issuecomment-265830774, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAYEvP845_r_dZCYpMkEt41a_j5fLT2vks5rGFnXgaJpZM4LFFja
.


Week 3

Here is a link to my blogpost with the quiz/game that I created.

3.0+
Nathan did all the required quiz steps. However, he also added a ton of features that required deep thought. Although it was with my help a lot of things were figured out on his own.


Is there a way to have a full REPL or console for vs code Python?

I find it extremely frustrating using terminal as a REPL. There is no console. It's not a real IDE. I hope to see something like Matlab or R have done.
The following is extremely inconvenient:

you can't highlight in terminal
shortcut like shift+left arrow which is used to highlight produces characters ;2D (see picture)
breaking from a loop using Ctrl+C sometimes exits Python, you have to invoke all over again.

Essentially,
The Python extension just invokes Python from terminal. I mean, if I wanted the terminal experience, I'd do it with VIM. The whole point of VS Code Python is to step away from that.
I'm running:

VS Code version: 1.33.1
Extension version: 2019.3.6558
OS and version: OS X
Python version: 3.6.7

I think you're misunderstanding my intent.
We have this:

I'm suggesting this UI will meet your needs.
If this doesn't meet your needs, are you willing to go into more depth on what you want?

How can I get to that setup? It looks like what I would need if I can run code fragments in my .py file with a shortcut (like shift+enter in terminal). So far I followed the links you provided and got to this stage

I don't know how to run code on the left with a shortcut in the interactive window though.

I think you're misunderstanding my intent.
We have this:

I'm suggesting this UI will meet your needs.
If this doesn't meet your needs, are you willing to go into more depth on what you want?

How can I get to that setup? It looks like what I would need if I can run code fragments in my .py file with a shortcut (like shift+enter in terminal). So far I followed the links you provided and got to this stage

I don't know how to run code on the left with a shortcut in the interactive window though.

@butterkaffee you can do a couple of things to get code in a python file to run in the interactive window.

Add the # %% comment above a group of code you want to mark as a cell. Hit the 'Run Cell' link that appears after that.

Actually that seems to be the only one working at the moment. There's supposed to be a command to run the current selection in the interactive window. Thanks for asking as you helped us find a bug.

@butterkaffee you can do a couple of things to get code in a python file to run in the interactive window.

Add the # %% comment above a group of code you want to mark as a cell. Hit the 'Run Cell' link that appears after that.

Actually that seems to be the only one working at the moment. There's supposed to be a command to run the current selection in the interactive window. Thanks for asking as you helped us find a bug.


Invenio indexer  task process_bulk_queue fails with extended user profile

Package version (if known): v.10
Describe the bug
Invenio indexer fails when a user with custom profile belongs to a community. If a user with a custom profile is part of a community, further editing of the profile will cause the following:
ERROR/ForkPoolWorker-3] Task invenio_indexer.tasks.process_bulk_queue[d45d5785-3dea-45f1-9239-81b2f9c39c73] raised unexpected: BulkIndexError('4 document(s) failed to index.', [{'index': {'_index': 'berd-nfdi-communitymembers-members-member-v1.0.0-1681215677', '_id': '889b6c03-2021-4e20-83d7-63eca830dd80', 'status': 400, 'error': {'type': 'strict_dynamic_mapping_exception', 'reason': 'mapping set to strict, dynamic introduction of [...] within [user.profile] is not allowed'}
Steps to Reproduce

Create a custom user profile
Create a user with that profile
Add the account to a community / create a community with the account
Update the profile from /account/settings/profile
See error

Expected behavior
The indexer works without issue.
Additional context
We are adding some custom fields for the user profile. Everything seems to be working great except when the indexer tries to run. It only happens with accounts that belong to a community. If there is no community, there is no problem.
It looks like the schema for users and the schema for community members are at odds. The user schema has the a dynamic profile and the community member does not. At least, this is a best guess about what is happening
There is a test for a custom profile but it only checks that the new field is added.
Everything else seems to be working fine with the expanded profile.

This issue still prevents us from customizing user profiles on our platform. Is there anything we can do to help resolve it?


Fix: 'Namespace' object has no attribute 'json'

When running the script with the auto mode, a Find object is created without the -json parameter. Hence, the attribute isn't present in the argsparse namespace. A check is needed to differenciate when launched in find mode or auto mode.
Here is the stacktrace:

This is a quickfix by looking before if the object options has a json attribute. It seems to be the only occurence of checking the self.options.json object when launched in the auto mode, so it could also be done by modifying the next line like so :
if hasattr(self.options, "json") and self.options.json

I don't know, you tell me !

Sorry for the late response. Thanks for your PR! :-)


Wilcoxon with Pratt behaves strangely in presence of ties

My issue is about Wilcoxon signed rank (scipy.stats.wilcoxon).
It offers 3 alternatives to deal with ties.
One is "pratt" and it behaves strangely: the pvalue goes to 0 when one
adds ("enough") ties to a balanced number of wins and losses.
Since Pratt designed this method to deal with ties, I'm surprised by this
behavior.
Anyone more knowledgeable than me to tell if the implementation has an
issue, or if this is what one must expect?
Thanks,
JL Meunier
Reproducing code example:
import scipy.stats
print(scipy.stats.wilcoxon([1]*15 + [0]*40 + [-1]*15, zero_method="pratt"))
""" WilcoxonResult(statistic=832.5, pvalue=0.015400580278721392) """

""" should be close to 1.0, because both are clearly equal"""

"""like "zplitt" says:"""
print(scipy.stats.wilcoxon([1]*15 + [0]*40 + [-1]*15, zero_method="zsplit"))
""" WilcoxonResult(statistic=1242.5, pvalue=1.0) """

""" the number of ties is causing this problem:"""
print(scipy.stats.wilcoxon([1]*15          + [-1]*15, zero_method="pratt"))
""" WilcoxonResult(statistic=232.5, pvalue=1.0) """

print(scipy.stats.wilcoxon([1]*15 + [0]*34 + [-1]*15, zero_method="pratt"))
""" WilcoxonResult(statistic=742.5, pvalue=0.04390350653018313) """

Scipy/Numpy/Python version information:
import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)

1.2.1 1.16.2 sys.version_info(major=3, minor=6, micro=8, releaselevel='final', serial=0)

I tried it with R (first time using R...) and the results makes sense to me (in R , not in numpy)
x <- c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1)
y <- c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
wilcox.test(x, y)

	Wilcoxon rank sum test with continuity correction

data:  x and y
W = 2450, p-value = 1
alternative hypothesis: true location shift is not equal to 0

Thanks for reporting this. I hope i fixed this in #10040 which is include in SciPy 1.3.0. can you test it in that version of SciPy?

Hi,
Thanks!
Yes, now it Wilcoxon+Pratt does as expected. (tested with scipy 1.3.0 on win64)


Multiple Dispatch for Conversion from Julia Types to SQL Types

Currently, the conversion from Julia Types to SQL types is just facilitated by a dictionary between types.
While a solution other than hardcoding the type conversion would be preferable (maybe a more popular library that already maintains this map?), taking advantage of the Julia multiple dispatch system will make it a more flexible hardcoding.

Like you said, using multiple dispatch is more flexible than using a Dict{Type,Symbol} since you can do stuff like:
sql_type(::Type{<:Real}) = :Real
sql_type(::Type{<:Integer}) = :Int

Another complication is that different SQL DBs have very different data types, e.g. compare SQLite's minimal types to all the Postgres data types.

That would be an indication that we should make an sql_type(::Type{PGSQLConverter}, t::T) or sql_type(::Type{SQLiteConverter}, t::T) function so that multiple backends can be added later.


Centering PIXI.Graphics inside Container

How to archieve that?
I'm looking for smth like this: https://pixijs.github.io/examples/#/basics/container-pivot.js
But PIXi.Graphics doesnt support the anchor property, I couldnt find anything else on the docs/internet either.

Just position it in the center, offseting for your size:
graphics.position.x = (container.width / 2) - (graphics.width / 2);
graphics.position.y = (container.height / 2) - (graphics.height / 2);

And how to rotate it then?

Have you tried setting the pivot to be centered and rotating it?

@Shawak check this out:
https://jsfiddle.net/scvwdy74/

Thanks for trying to help me @bigtimebuddy but this example is not using a container with multiple graphics.

I'm not exactly sure what you're trying to do here.
To change the rotational point, set container.pivot.x and container.pivot.y, like @englercj suggested. These x, y values are relative to the coordinates of the container, not the stage.

It is much simpler than that, you can do code below
class MyContainer extends PIXI.Container {
    _anchorX = 0;
    _anchorY = 0;

    set anchorX(value) {
        this._anchorX = value;
        this.pivot.x = value * this.width / this.scale.x;
    }

    get anchorX() {
        return this._anchorX;
    }

    set anchorY(value) {
        this._anchorY = value;
        this.pivot.y = value * this.height / this.scale.y;
    }

    get anchorY(){
        return this._anchorY;
    }

}

Then the only thing you need to do is to is to update it the pivot everytime you change the affective ones (width, height, scale.x, scale.y) you can do so by
myContainer.anchorX = myContainer.anchorX;
or you can add something like that inside MyContainer class:
refershAnchors(){
this.anchorX = this.anchorX;
this.anchorY = this.anchorY;
}

I personally override the setters and getters for height, width, pivot.x, pivot.y inside MyContainer class


adding publish step for collection

Signed-off-by: Nathan Weatherly<EMAIL_ADDRESS>

Codecov Report

Merging #140 (1ca3de5) into main (463f87b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #140   +/-   ##
=======================================
  Coverage   51.54%   51.54%
=======================================
  Files          19       19
  Lines        1490     1490
  Branches      201      201
=======================================
  Hits          768      768
  Misses        717      717
  Partials        5        5

Flag
Coverage Δ

sanity
30.68% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out 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 463f87b...1ca3de5. Read the comment docs.


simplify check for initial claim. fix #290

@lyoshenka if you had given me longer than an hour to review I would have said add a CHANGELOG :)
Nice fix though.


Add support for explicit SSL FTP storage

Currently the FTP storage doesn't support FTP servers that are configured with explicit SSL. Would it be possible to change the FTP library for the FTP storage that uses a library with support for explicit (or implicit) SSL?
I found this library, but am not familiar with it: https://github.com/bnix/double-bag-ftps

hi @jgornick, the maintainers aren't currently planning to add new features in the near future. Any new feature will have to come from the community.
If you're up for it you can create a PR adding explicit SSL support for the FTP storage option. However, I can see that the double-bag-ftps library won't be allowed as a dependency. It should be attempted to add it to the Storage::FTP class with minimal impact.
I'll close the issue, if you want to pick it up please send in a PR. If not, I recommend creating an issue on the backup-features repo.


Set us up to create components of types other than terraform

Codecov Report

Merging #210 into master will decrease coverage by 0.3%.
The diff coverage is 20%.

@@            Coverage Diff             @@
##           master     #210      +/-   ##
==========================================
- Coverage   57.99%   57.68%   -0.31%
==========================================
  Files          11       11
  Lines         807      813       +6
==========================================
+ Hits          468      469       +1
- Misses        266      271       +5
  Partials       73       73

Impacted Files
Coverage Δ

config/config.go
70.58% <0%> (-4.42%)
:arrow_down:

apply/apply.go
33.58% <0%> (-0.13%)
:arrow_down:

plan/plan.go
92.13% <100%> (+0.04%)
:arrow_up:

Continue to review full report at Codecov.

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

At a high level, I like this pluggable type system in fogg. I know there are specifics about the helm kind which I'm not sure what the right way to handle is (Helm "best practices" seem to prefer packaging Helm charts and releasing them as an artifact, not so much installing from a local directory. I ran into interesting behavior with respect to that along the way, specifically with respect to the versioning aspects of helm.)

@mbarrien I think this system still allows us to import packaged helm charts if you specify them in the requirements.yaml that gets generated


I want to re-design "A Map to Learn to Code.." (https://www.freecodecamp.com/map)

I would like to redesign the 'Map' page in order to enhance:

The educational value of the map.
The attractiveness of the page.

It just has a single long list of challenge topics, with dozens of items included in a single topic.  If there were sub-topics, it's easier for the learner to develop a concept of the material, to remember, and to use a list as a reference when using the material later.
The page could be set up with a few "divs, " or as a table:

HTML Topics
CSS Topics

Block Elements
Fonts Colors

(This is the first time I'm using Markdown.)

We could use the current headlines, with  2 or 3 columns across the page for subtopic headlines.  Individual challenges could be nested under the subtopic headlines, with a toggle for viewing or hiding the challenges.
In a formal proposal, should I make up a sample page, or choice of pages?
I could either decide how to group  and name sup-topics, or would it be a decision by wiki?
The current page is just one long laundry list. (Could anything be better than a laundry list?)
Here's the current page:

Looking forward to getting some response.
FCC  @dewhiz

Agreed. The curriculum's display could be greatly improved.
Seems like you've already got ideas on how to improve it, so perhaps it'd be best if you made some sort of mock or even better submit a PR we could iterate over :)

I agree that the map could use some work. I've had some ideas float through my mind in regards to this issue and would be interested in seeing what others have in mind.

It just has a single long list of challenge topics, with dozens of items included in a single topic.
Individual challenges could be nested under the subtopic headlines,

Just to clarify, this isn't a list but a linear map (hence why it's at /map). We want it to convey the idea that there is only one single track, instead of multiple tracks that are tangentially related to the others like on other coding sites. Any mock ups should preserve this idea.

Individual challenges could be nested under the subtopic headlines

They are separated by super-block(getting started, front end, data vis, ...etc), then broken into blocks (in front end: html/css, jquery, projects, ...etc), then each block lists it's challenges. This order should be preserved and unchanged. Putting them into categories doesn't make sense. That would make more sense as a wiki article instead of a change in how the map is organized (there is a lot going on internally and on the back end that relies on this structure).
With the above said, it could use a better layout, although a table wouldn't make sense and does not convey the idea of linear progression.

@hallaathrad I assigned you so you can do QA :stuck_out_tongue_winking_eye:

Yup, while I agree this needs more love with perhaps the most visited resource, potential mock-ups should not break the underlying concept of the linearity (rightly pointed by Berkeley).
Also to consider that this page needs to be rendered on mobile devices (smaller view ports) and the aside.
Looking forward to a more accessible change though.

I agree with Berkeley. The idea of putting the sections in certain categories and having them stand on their own would confuse the beginner. Most newbies are used to a linear progression when learning a new trade. A general IT approach of learning is picking a category and just learning it. Everything else just falls in line as long the learner is meeting an objective. It would be a shock for those with non-technical IT backgrounds and the bulk of our new members consist of them.

Perhaps I've misunderstood the opening post, but the way it sounds to make, @dewhiz wanted to show the "list" in a more understandable way, by visually segmenting the chapters while respecting the linear structure, yet it was never implied breaking it into parallel learning paths.
Having thought of some myself, I do believe there are ways to keep it as @BerkeleyTrue correctly puts it, but with a much better and more understandable visual metaphor. And I've explained I'm curious about other people's input on how we can improve it, as long as we keep the forementioned requirements. Maybe I should've expressed it in my previous comment but I took it for granted.
Let's see options! :) at worst, we can just not take the changes, but it's an interesting intellectual and technical exercise. Even something that can be added to your portfolio as information architecture and design.

@dewhiz - Perhaps a good start for a mockup would be color code the main sections (front end, back end and data visualizations, plus non-profit projects, etc). You could then break down the subsections while still keeping the order but increasing the lightness or darkness. So Objects might be #ff0000 with the next section, JSON, being #b30000.
[http://www.w3schools.com/colors/colors_picker.asp](W3 color picker)

@dewhiz ya the map seems fine in the sense that it's serving its purpose, a straight, linear, focused progression. I'd imagine a separate resource would be better for what you had in mind. Say an interactive mind map, linking concepts and topics? Linked to later in course to help aid in developing a larger context a and mental picture.

Discussion on this has stalled out, so I'm closing this issue. We are keeping the map linear for the reasons that @BerkeleyTrue mentioned, but making it easier to drill into specific topics. Here's my mockup if you're interested: http://codepen.io/FreeCodeCamp/full/VKXyZJ


Stripe link redirects to the wrong URL when returning from the "customer Portal"

After opening the "customer portal"m the user is taken to Stripe billing page. The link on that page to return to the vercel app is incorrect. Seems to be redirecting to the deployment URL. Where can I change this?

SOLVED by adding another environment variable NEXT_PUBLIC_SITE_URL


Request: Make Shapely PEP 561 compliant to include it in type checking

I'm trying to add type check to several projects, and it would be really beneficial if I could do typechecking of shapely geometry types. In the mypy docs it says that in order to include third party libraries they should be PEP 561 compliant or you should do your own stub files.
Is it possible to make shapely compliant? In case is it too much work, has anyone done or know where to find stub files for it? I could not find anything related.

I'm not aware of any stub files. If someone created them and they added sgnificant value to other projects, I'd be mildly interested in adding typing to Shapely, but not in the current or next version.


Invalid file types are correctly not added to the model but turn the form invalid

So I have this snippet which actually works fine adding multiple files on multiple drags/selects, until I add an invalid file type. The invalid file type is not added to the model but will make the form invalid. The form becomes valid again when I add/append another valid file to the list. I tried put allowInvalid false, ngf-valid-only but none of them solve my problem. Always get the form.files.$error = {"pattern":true} when adding an invalid file.
How can I make these unsupported file types not turn the form invalid?
<div name="files" ngf-drop ngf-select ng-model="ui.files" class="drop-box"
   ng-model-options="{allowInvalid: false}"
   ngf-drag-over-class="{accept:'dragover', reject: 'reject-dragover'}"
   ngf-multiple="true" ngf-allow-dir="true"
   accept="{{ui.validFileTypes}}" ngf-keep="true" ngf-valid-only="true"
   ngf-change="filesChanged()"
   ngf-pattern="ui.validFileTypes" required>
</div>

Same problem here.
Need a way to stop invalid files being added to the model, and also keep the form valid.

So is there a fix for this?

Hi there,
I ended up with a simple solution using ngf-change:
ngf-change="validateFile($invalidFiles)"
then, on the controller:
//UI method that is triggered when files are changed resetting the sendFaxForm validity
$scope.validateFile = function($invalidFiles){
   //https://github.com/danialfarid/ng-file-upload/issues/1593
  if($invalidFiles && $scope.sendFaxForm.files.$error.pattern){
     $scope.invalidFiles = [];
     $scope.sendFaxForm.files.$setValidity('pattern', true);
     ModalService.displayInfoModal(UtilsService.createModalMessage('INFO.INFO', null, 'INFO.SEND_FAX_INVALID_FILE_TYPE'));
   }
   $scope.ui.progress = 0;
};

Hope this helps you

You can use ngf-ignore-invalid="'pattern'" to achieve this since version 12.1.0

Thanks @danialfarid.
Do you have a list of parameters you can use with ngf-ignore-invalid ? I'm not sure exactly how it should be used - the docs don't explain completely.
I tried adding the line you pasted above but it didn't fix the issue for me. Maybe I need different parameters.

That is the name of the error which is specified on each validation directive.

You can test it on the demo page by removing accept and setting ngf-ignore-invalid to pattern

I was still having trouble with ngf-ignore-invalid. invalid files weren't being added but the form was still being set as invalid. I checked the source and found a logic typo.
#1685 should fix it
now, if there were a way to ignore invalid files (not validate them) but still give a message? I've tried other fixes in the forums but my form has other fields in it that I want to check.

@jonathan-chin ignore-invalid is there to ignore the validation so you it won't be validating those. If you want it to be validated you can just let it be validated and in the ngf-model-invalid check for the validations that you want to ignore.

@danialfarid How can I use ngf-ignore-invalid when I have a custom validation function using ngf-validate-async-fn?
I tried this, but it's not working...
ngf-ignore-invalid="'validateAsyncFn'"

That should work, What's the value of the file.$error in the case the validation fails?

When I print the error value for the content in ngf-model-invalid - it only says the following - "validateAsyncFn"
This is the full form error (validateAsyncFn is mentioned at the start and at the end):
{"validateAsyncFn":[{"$viewValue":[],"$modelValue":[],"$validators":{},"$asyncValidators":{},"$parsers":[],"$formatters":[null,null],"$viewChangeListeners":[],"$untouched":true,"$touched":false,"$pristine":false,"$dirty":true,"$valid":false,"$invalid":true,"$error":{"validateAsyncFn":true},"$name":"imageForm","$options":null,"$ngfValidations":[{"name":"maxHeight","valid":true},{"name":"minHeight","valid":true},{"name":"maxWidth","valid":true},{"name":"minWidth","valid":true},{"name":"dimensions","valid":true},{"name":"ratio","valid":true},{"name":"maxRatio","valid":true},{"name":"minRatio","valid":true},{"name":"maxDuration","valid":true},{"name":"minDuration","valid":true},{"name":"duration","valid":true},{"name":"validateAsyncFn","valid":false}]}]}

Can you create a jsfiddle or test it on the demo page?

@danialfarid Here you go - the button still becomes invalid if an image is used outside the specified dimensions.
http://jsfiddle.net/n0Ly4aax/7/

This is working as expected for me: http://jsfiddle.net/z08x4ubk/

@danialfarid I'm still seeing the same problem.
In your example, when I select an image with invalid dimensions - the form button still turns invalid - it is not ignoring validateAsyncFn.

@stevehealy fixed at 12.2.9

Verified. Many thanks.

@danialfarid How can I show my images thumbnail. for example I have this:

photo_camera
          Agrega imagen 1...

photo_camera
          Agrega imagen 2...

I want to show thumbnail of 2 images but always show in ng-model number 1
How can I fiz that?


Update privacy policy links

Closes :no_good_woman:
PT-1596: Update privacy policy link on teachers UI

Codecov Report

Merging #277 (4553f5d) into master (cf70ac0) will decrease coverage by 0.01%.
The diff coverage is 77.77%.

@@            Coverage Diff             @@
##           master     #277      +/-   ##
==========================================
- Coverage   82.23%   82.22%   -0.02%
==========================================
  Files         244      244
  Lines        4673     4681       +8
  Branches     1412     1417       +5
==========================================
+ Hits         3843     3849       +6
- Misses        800      801       +1
- Partials       30       31       +1

Impacted Files
Coverage Δ

...rc/domain/app/register/RegistrationPendingPage.tsx
100.00% <ø> (ø)

...c/domain/myProfile/myProfileForm/MyProfileForm.tsx
97.77% <ø> (ø)

src/domain/app/layout/PageLayout.tsx
89.47% <60.00%> (-10.53%)
:arrow_down:

src/constants.ts
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


[VS Code] Joining collaboration session: Unable to connect to the host. Verify both you and the host are online.

Error:
Joining collaboration session: Unable to connect to the host. Verify both you and the host are online.
Steps to Reproduce:
1.
2.

Version Data

extensionName
VSLS

extensionVersion
1.0.614

protocolVersion
2.2

applicationName
VSCode

applicationVersion
1.36.1

platformName
Windows

platformVersion
10.0.17763

@ivanjj22 thanks for reporting the issue. Network inconsistency can cause this error. Do you know if host had been offline while the session was ongoing?

Closing this due to inactivity. Please reopen it if you’re still encountering the issue. Thanks!


Save images separately

Hey! How can i save every images separately?

show(sr_images, 24, save_dir='Z:/out')' , but how to save images with random names ?

Thanks!

they are not random, they are numbered. Anyway, you can adapt a python code from other collabs like here or, if you don't know enough, like me, you can use !zip to compress an entire folder:
show(sr_images, 24, save_dir='steps')
zip -r compressed.zip steps/


'StatusChangedEventArgs' issue on local environment

error CS1061: 'StatusChangedEventArgs' does not contain a definition for 'CultureInfo' and no accessible extension method 'CultureInfo' accepting a first argument of type 'StatusChangedEventArgs' could be found (are you missing a using directive or an assembly reference?)

the error coming on windows and running fine on IIS server
if any change occurs state remain still 'WaitingForNotification'

Hi,
can you provide the needed steps to reproduce this problem?
Otherwise i cannot investigate.

you mean code ?

public class CommentHubService
{
private string ConnectionString { get { return System.Configuration.ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString; } }
private readonly static Lazy _instance = new Lazy(() =>
new CommentHubService(GlobalHost.ConnectionManager.GetHubContext().Clients));
    private static SqlTableDependency<CommentModel> _tableDependency;
    public static CommentHubService Instance { get { try { return _instance.Value; } catch { return null; } } }
    private IHubConnectionContext<dynamic> Clients { get; set; }

    public CommentHubService(IHubConnectionContext<dynamic> clients)
    {
        Clients = clients;

        var mapper = new ModelToTableMapper<CommentModel>();
        mapper.AddMapping(e => e.CommentId, "CommentId");
        //mapper.AddMapping(e => e.Comment, "Comment");
        //mapper.AddMapping(e => e.CommentDate, "CommentDate");
        //mapper.AddMapping(e => e.OrderId, "OrderId");
        //mapper.AddMapping(e => e.UserId, "UserId");
        //mapper.AddMapping(e => e.RoleId, "RoleId");

        _tableDependency = new SqlTableDependency<CommentModel>(ConnectionString, "Comments", mapper, null, null, DmlTriggerType.All);

        _tableDependency.OnChanged += _tableDependency_OnChanged;
        _tableDependency.OnStatusChanged += _tableDependency_OnStatusChanged;
        _tableDependency.OnError += _tableDependency_OnError;

        //_tableDependency.TraceLevel = TraceLevel.Verbose;
        //_tableDependency.TraceListener = new TextWriterTraceListener(Console.Out);

        _tableDependency.Start();
    }

    private void _tableDependency_OnError(object sender, ErrorEventArgs e)
    {

    }

    private void _tableDependency_OnStatusChanged(object sender, StatusChangedEventArgs e)
    {

    }

    private void _tableDependency_OnChanged(object sender, RecordChangedEventArgs<CommentModel> e)
    {
        if (e.ChangeType == ChangeType.Insert)
        {
            //Clients.Group("contentComment_" + e.Entity.KeywordMetaId).PushNewComment(e.Entity);
        }
    }

    //private void _tableDependency_OnChanged(object sender, RecordChangedEventArgs<CommentModel> e)
    //{
    //    if (e.ChangeType == ChangeType.Insert)
    //    {
    //        //Clients.Group("contentComment_" + e.Entity.KeywordMetaId).PushNewComment(e.Entity);
    //    }
    //}

    private void SqlTableDependency_Changed(object sender, RecordChangedEventArgs<CommentModel> e)
    {
    }

    #region IDisposable Support
    private bool disposedValue = false; // to detect redundant calls

    protected virtual void Dispose(bool disposing)
    {
        if (!disposedValue)
        {
            if (disposing)
            {
                _tableDependency.Stop();
            }
            disposedValue = true;
        }
    }
    ~CommentHubService()
    {
        Dispose(false);
    }
    // This code added to correctly implement the disposable pattern.
    public void Dispose()
    {
        Dispose(true);
        GC.SuppressFinalize(this);
    }
    #endregion
}

i don't know why trigger is not running, I only got this difference while running on windows and IIS

The code example using SignalR is very only and I am not sure that is 100% compatible with latest version of SqlTableDependency.Can you check which version of SqlTableDependency are you using?

8.5.3

It running perfectly on Windows Server 2012 but causing issue on windows,
I connected my project which is running on windows and connected to Database which is on Server it triggers the notification but when I connect to db on local nothing happens.

which service is required for running this, if any i will check may be some services are stopped so they causing a issue

So, as resume:

if you use a Sql Server database hosted on Windows Server 2012, all work fine.
if you use a Sql Server database hosted on your local Windows, it does not works.

Question: when you run your application using Sql Server database hosted on your local Windows, can you see a new the trigger created on your database table?

trigger and stored procedure both were created

and the query you have run on DB to check its compatibility level is on Sql Server database hosted on your local Windows?

already mentioned in previous comment

Can you backup your local DB (removing all unnecessary tables and data), tip and send to me?

script.zip

no, i need the BACKUP of your DB. Otherwise i cannot have the same environment you have.
Of course, remove all sensitive data before make the backup. Just leave the table you need to monitor.

I have same problem, Can you find a fix ?


pull request for e2e test at 11/04/2016 22:56:01

Open Publishing Service
Your pull request has been validated and published.
Validation status: :white_check_mark:Passed
Here is the list of files that get changed in this pull request:

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

Details

Here are detailed warnings/errors in each file:
For more details, please refer to the publish report.

Open Publishing Service
Your pull request has been validated and published.
Validation status: :white_check_mark:Passed
Here is the list of files that get changed in this pull request:

File
Status
Preview URL
Details

For more details, please refer to the publish report.


Provide better git logging around push failures

Overview
When the locker push fails, it doesn't appear as though the logs show the failure so people think that the local locker was pushed to the remote locker when in fact it hasn't.
Requirements
When a locker push fails we should raise a proper exception for that.
Approach
TBD
Security and Privacy
N/A
Test Plan
TBD

We need better locker operations logging in general, not just push failures.


Autofill Payment Details

I have a question regarding autofill functions. Currently, customers in our online shop https://shop.lena.de/ have to fill in their payment details every time they perform a new purchase.
Does Mangopay offer a service of presenting already used payment methods (such as credit card details) in the process of payment to a returning customer, similar to Amazon? This way it should be possible to store payment details in the customer's account in the LENA marketplace.
Unfortunately, Mangopay could not give me a complete solution to this problem.
Thanks for your help!

Hi @LENAshopde
You can register a user credit card, and next time he want to pay, he can just choose that registered card to pay with, just like on Amazon.
You can read more about this feature here : https://docs.mangopay.com/endpoints/v2.01/cards#e177_the-card-registration-object.
Cheers,
Marc

Hi Marc,
Thank you very much for your feedback. This requires, however, that the payment process is configured as direct payin, correct? We implemented it as web payin. Do we have to switch to direct payin? Or is there also an option for our current setup?
Cheers
Tilman

Von: Marc @.>
Gesendet: Montag, 12. September 2022 18:21
An: Mangopay/mangopay2-php-sdk @.>
Cc: @.*** @.>; Mention @.>
Betreff: Re: [Mangopay/mangopay2-php-sdk] Autofill Payment Details (Issue #566)
Hi @LENAshopdehttps://github.com/LENAshopde
You can register a user credit card, and next time he want to pay, he can just choose that registered card to pay with, just like on Amazon.
You can read more about this feature here : https://docs.mangopay.com/endpoints/v2.01/cards#e177_the-card-registration-object.
Cheers,
Marc
—
Reply to this email directly, view it on GitHubhttps://github.com/Mangopay/mangopay2-php-sdk/issues/566#issuecomment-1243979861, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2ODHARZGQGROJBOS55UKBDV55J65ANCNFSM565BZXXA.
You are receiving this because you were mentioned.Message ID: @.***>

Hi Tilman,

This requires, however, that the payment process is configured as direct payin, correct?

Yes.

We implemented it as web payin. Do we have to switch to direct payin? Or is there also an option for our current setup?

I am afraid you have to switch to direct payin here.
Cheers,
Marc

You can register a user credit card, and next time he want to pay, he can just choose that registered card to pay with, just like on Amazon.

But we have to ask for the CVV, and I don't know how to confirm the CVV, I couldn't find anything about this in the documentation.

So, I did this a long time ago, and since MangoPay decided to terminate our contract with them, I am not using their solution anymore, and I am not updated with the latest changes, so my answer may not be accurate, but at least you get an answer from someone :)
Unless things have changed, you don't need to check the CVV, MangoPay will do it for you.
Once a user add a card, you need to make a payment with it to validate it. You won't be able to make an MIT (merchant initiated transaction) until you first do a CIT (customer initiated transaction).


Add a way to clear the value of an action

Is your feature request related to a problem? Please describe.
I have a web page which connects to a USB or BLE device using an action:
let connect = create_action(|connection_type: &ConnectionType| {
        let connection_type = connection_type.to_owned();
        async move {
            let result = match connection_type {
                ConnectionType::Usb => UsbConnectionBuilder::connect().await,
                ConnectionType::Ble => BleConnectionBuilder::connect().await,
            }
            .map(|b| Rc::new(b));
            if let Err(e) = result.as_ref() {
                console_log!("Error connecting with {:#?}: {:#?}", connection_type, e);
            }
            result
        }
    });

    let connection = connect.value();

I want a way of clearing the value of an action when a "Disconnect" button is clicked.
Describe the solution you'd like
A Action::clear_value function or something similar
Describe alternatives you've considered
Create a signal that is a number. If the number is greater than the action version, it means that the action's result should be ignored. When the "Disconnect" button is pressed, increase the number.
Additional context
My project that uses Leptos: https://github.com/ChocolateLoverRaj/rust-esp32c3-examples/tree/sensor-connect-web/sensor-connect

PR welcome to add it. Another possibility is to use a resource, which does allow mutation.

In my case I can't use a resource because resources will execute the async function right away, but I want it to execute when a button is clicked.

@leorsousa05 and I will have a look at it in pair programming. Let us know if there was any progress since your last comment, @ChocolateLoverRaj.

I didn't start making a PR at all. I'm working on other programming projects rn. You don't need to wait for me.

I didn't start making a PR at all. I'm working on other programming projects rn. You don't need to wait for me.

We will probably start on monday. Good projects by the way!


Use externalTrafficPolicy: Local for ingress and gateways.

Fixes #7328.
Signed-off-by: Piotr Sikora<EMAIL_ADDRESS>

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: costinm
If they are not already assigned, you can assign the PR to them by writing /assign @costinm in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

install/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Not an owner.

@PiotrSikora: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e-bookInfoTests-v1alpha3.sh
ead5c128806e4ecae0d0ed853597cb0bbaa351c4
link
/test e2e-bookInfo-envoyv2-v1alpha3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/lgtm

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: andraxylia
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

install/OWNERS [andraxylia]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/test e2e-bookInfo-envoyv2-v1alpha3

Shouldn't other platforms be ignoring this field? This is part of the API spec. If it was provider specific, it would have been an annotation

/hold
Please don't submit to 1.0 with the default changed unless extensive testing has been done on multiple platforms.
The doc is pretty clear - there is a tradeoff ( balancing may suffer, etc ) - we can't change the default behavior without extensive testing that the new one works properly. Our test suites are obviously not adequate for validating load balancing changes and multiple providers, we have zero automated tests in this area even in Prow/GCP. So making such change without testing is not a good idea.

To be clear: no problem with having his as an option, but off by default.
And after enough people report that it works on different platforms, and we do verify load balancing works - we may make it on by default in 1.1.

So, what's is the resoluton on this? This is one of the things that prevents customers using istio charts as-is (https://github.com/istio/istio/issues/7328).

We can commit this to release-1.0 with a helm option that is off by default.


Provide details of the failing CI tests in the PR

At present if a test fails, it's necessary to trawl through the CI log to see which test actually failed.
Ideally, there's a means of showing it in the PR to improve feedback to developers

Resolved with #40


Treat direnv-non-file-modes as possibly derived modes.

Suppose we're in a Magit Status buffer, whose major-mode is magit-status-mode, which is derived from magit-mode.
With this change, if direnv-non-file-modes contains magit-mode, direnv-mode
will now treat it as a non-file mode.
Open question: do we add magit-mode to the default list?

thanks! whenever this is merged, another pr that adds magit to the defaults sounds fine


Update no changes

When data is submitted to ermrestJS for update without any changes to the entity, an error is thrown and a warning message is shown in chaise.
This must be merged before PR #1216 is merged in chaise.

@RFSH this is ready for review now although I only added a test case since you did look at it this morning.

@jrchudy The test case looks good. You can go ahead and merge this PR.


Can the model used for action recognition for 2D skeleton data?

Hi author,
I was impressed with your work. I would like to ask you a question about "Can the model used for action recognition for 2D skeleton data?"
Suppose that I have a lot of short trimmed video clips around 1s - 2s. I've used the HRNet to extract the 2D keypoints. Can I utilize your module to recognize the action just only based on the 2D keypoints ?
Thank you

Yes, and you will need annotations/labels to finetune on your own dataset.

Hello.
Thank you for your quickly reply.
Please correct me if I am wrong. Here are the steps to train the model

For RGB videos, you need to extract 2D poses (inference.md), convert the keypoint format.

The model uses 17 body keypoints according the H36M format. Because I am use the COCO format, so I need to convert to H36M format. (H36M format).

Feed the training data into the MotionBERT.

By the way, how fast the MotionBERT inference on the RGB videos ? Can it achieve the realtime processing (30FPS).
Sorry for asking too much.

From my understanding, you want to fine tune MB on your action dataset for skeleton-based action recognition. Then you need to prepare your action dataset like dataset_action.py and train like train_action.py
As for the speed, it generally depends on your 2D pose estimator and the MB part is quite fast.

Thank you for reply. I will check it later.


Bugs in --individual-files: URI-escaping filenames, un-merging accounts, properly referencing media

Describe the bug
Links to notes that have # in names are not encoded properly
To Reproduce
Have notes some of them with # in name

Export notes with --individual-files flag turned on
Open index file
Try to open some of the notes with # in the name
See error

Expected behavior
'#' character is encoded to '%23' and note html is opened
Actual behaviour
'#' character is not encoded and url is not working
Example
Actual link to file
file:///Users/user/projects/apple_cloud_notes_parser/output/2023_08_11-01_23_27/html/note_store1/Hall%20of%20Fame/63318%20-%20#testTag%20i%20#testTag2
Expected link to file
file:///Users/user/projects/apple_cloud_notes_parser/output/2023_08_11-01_23_27/html/note_store1/Hall%20of%20Fame/63318%20-%20%23testTag%20i%20%23testTag2
Command used
ruby notes_cloud_ripper.rb --individual-files -r -m ...
Please confirm the following

Error occurs on the latest version of this program on GitHub [Y]
You have run bundle install [Y]

Thanks for reporting this. I took a quick peek and noticed some other issues with --individual-files. It also looks like it isn't taking into account that multiple accounts can have the same folder name, so it overwrites the index.html in a duplicate folder with just the notes from the last account.
I had hoped for a quick fix, but I'll need to poke at this a bit and see if there are any other issues to roll in.

👍
I noticed one more bug, nested folder attachment links are wrong, or better said they are offset-ed by their parent.
Example
level1Folder > level2Folder > exampleNote
Expected attachment link
file:///Users/userx/projects/apple_cloud_notes_parser/output/2023_08_11-01_23_27/html/note_store1/files/Accounts/7DD9R21EC-EFD0-481A-AD7C-E2DB4203A584/Previews/37960CA8-8BAC-4E05-9DE9-95408B5C2155-1-1024x576-0.png
Actual attachment link
file:///Users/userx/projects/apple_cloud_notes_parser/output/DOBAR%202023_08_11-01_23_27/html/note_store1/**level1Folder**/files/Accounts/78B921EC-EFD0-481A-AD7C-E2DB4203A584/Previews/37960CA8-8BAC-4E05-9DE9-95408B5C2155-1-1024x576-0.png
Let me know if I should open a new bug.
Thank you.

No, I'll just add it to this one and turn it into a thread for --individual-file bugs. Thanks for flagging.

76c0ce97a69bd63e5bdf24881117315726936d13 should fix the first two issues, please let me know if it doesn't. I'll work on properly re-basing the media paths tomorrow, hopefully.

not working, all links are now broken not only ones with special characters
actual
file:///Users/userX/projects/apple_cloud_notes_parser/output/2023_08_12-14_31_26/html/note_store1/iCloud-FolderNameFooBar/iCloud-FolderNameFooBar%2F92615%20-%20%23unitedkingdom.html
expected
file:///Users/userX/projects/apple_cloud_notes_parser/output/2023_08_12-14_31_26/html/note_store1/iCloud-FolderNameFooBar/92615%20-%20%23unitedkingdom.html

The account name is prefixed to the root folder, it isn't used as a folder itself, although I suppose that could also work. My browser doesn't care that the slashes in the URL are escaped and opens the right file, is yours saying the file cannot be found? I could escape each portion separately, if need be.

There are several new issues,
Links to subfolders are broken, in all browsers, chrome/safari/firefox
Last "/" is encoded and it shouldn't be - it's not part of the name but part of the location to it

In subfolders, links contain duplicate of account name + folder, much easier to demonstrate with a screenshot

Ok, I just pushed a commit that escapes each portion of the path separately. Try that, please?

🙌 Works, links are working - thank you.
Only thing left is relative paths for media - other than that I don't see any other issues.

Didn't quite get to the media links today and will learn a lesson from last night about not slinging code late at night after a long day. Will let you know when I push a fix for the media links! Thank you for your patience.

Thank you - please don't feel pressured by me even the slightest.

I clearly didn't feel pressured, just finally pushed a fix for this as I was toying with a few different solutions. Check out 04372b481fd44f51f82c066137cdefb5483c266e and see if it performs better. If so, I'll close.

Works - do a large degree. It fails for sub nested folders, attachment path has extra folders in path,
Current:
file:///Users/userX/projects/apple_cloud_notes_parser/output/2023_08_19-20_34_04/html/note_store1/files/Accounts/99B921EC-EFD0-AD7C-E2DB4203A584/Previews/778FBCEB-74AA-4636-8C75-64DF8238AEB5-1-1024x500-0.png
Expected:
file:///Users/userX/projects/apple_cloud_notes_parser/output/2023_08_19-20_34_04/files/Accounts/99B921EC-EFD0-AD7C-E2DB4203A584/Previews/778FBCEB-74AA-4636-8C75-64DF8238AEB5-1-1024x500-0.png
Additional question,
Doesn't it make more sense for 'files' folder to be under html instead at the root?

Right you are, I missed passing individual_files back into the recursive call for to_relative_root. Should be fixed now.
As far as 'files' is concerned, that isn't strictly for HTML. This package was originally written from a forensics perspective and the 'files' folder is really where just files that are extracted from the application go. These are also referenced in the CSV files and JSON exports. It just happens that a lot of people now use this also as a tool for backing up Notes, because there aren't a ton of great alternatives, so I try to support that use case as well.

Works. Thank you 👏
Issues described here are all fixed, I do have other small quirks that make it cumbersome to import notes to obsidian, but that requires a new ticket.

Great, glad to hear it! Thanks for flagging this issue.


onSlideChange triggers when swipe animation starts

onSlideChange callback is called when the swipe animation start.
So it is called even when the page doesn't change.
With that, when the user start to swiping it will be called and when he release the swipe without changing the screen it will be triggered again in the same page.
I'm trying to fix it but I dont see where do you keep trace of the actual index in your component
Update
I fixed it wrapping in a component like this:
import React, { Component } from 'react';
import AppIntro from 'react-native-app-intro';

export class TourScreen extends Component {
  constructor(props) {
    super(props);
    this.onSkipBtnHandle = this.onSkipBtnHandle.bind(this);
    this.doneBtnHandle = this.doneBtnHandle.bind(this);
    this.nextBtnHendle = this.nextBtnHendle.bind(this);
    this.onSlideChangeHandle = this.onSlideChangeHandle.bind(this);
    this.index = 0;
  }
  onSkipBtnHandle() {
    console.log('Skip');
  }
  doneBtnHandle() {
    console.log('Done');
  }
  nextBtnHendle() {
    console.log('Next');
  }
  onSlideChangeHandle(i) {
    if (i !== this.index) {
      console.log('change:', i);
      this.index = i;
    }
  }

  render() {
    const pageArray = [{
      title: 'Page 1',
      description: 'Description 1',
      img: 'https://goo.gl/Bnc3XP',
      imgStyle: {
        height: 80 * 2.5,
        width: 109 * 2.5,
      },
      backgroundColor: '#fa931d',
      fontColor: '#fff',
      level: 10,
    }, {
      title: 'Page 2',
      description: 'Description 2',
      img: 'https://goo.gl/GPO6JB',
      imgStyle: {
        height: 93 * 2.5,
        width: 103 * 2.5,
      },
      backgroundColor: '#a4b602',
      fontColor: '#fff',
      level: 10,
    }];
    return (
      <AppIntro
        onNextBtnClick={this.nextBtnHendle}
        onDoneBtnClick={this.doneBtnHandle}
        onSkipBtnClick={this.onSkipBtnHandle}
        onSlideChange={this.onSlideChangeHandle}
        pageArray={pageArray}
      />
    );
  }
}

Sorry late reply to this issues. In #9  I fix this bug, thank your report.
I just have not been to use onSlideChange  😅
You dont see where my keep trace of the actual index, because app-intro base on react-native-swiper swiper handle this event

Thank you :)
I'll make the changes on my code.
I'm using it to keep tracking on analytics, so on every page change I send a event to GA to know where the users are droping the tour :)


Crash Upon Rendering Model Head items

Hello, I'm having an issue where the dropped heads of modified player models just instantly crash the game.
I'm not sure if this is a mod compatibility issue, but I do use Embeddium, Oculus and Lazurite.. So most likely.
Here's the latest log -
latest.log
Unsure if this place is the right one but I'd be honoured to have some pointers from experienced people-
Have a good day.

Embeddium made a breaking change into skull rendering, downgrade to 0.3.0

Thanks for the info! Will do.


Snapshot -- fetch the State from a live charm

adds a scripts.snapshot util that can be used as:
scenario snapshot myapp/0
to obtain a State data structure. It will print it to stdout using the builtin dataclass repr, which means that you should be able to import * from scenario and that code should work out of the box.
Alternative format options:

json: the asdict() representation of the State.
test: a 99%-ready pytest test case using the output State.

For the moment, only the following State components are implemented:

leader
model
status
config
relations
networks
containers
container mounts (requires some setup)

The rest will follow in a separate PR.
Testing:
deploy locally some charm.
Run scenario snapshot myapp/0 --format test > ./tests/scenario/case1.py
Then add the necessary imports (and patching/mocking) to make that into a unittest!
Have fun.

This is definitely cool!
One concern I'd have with generated tests is would people just dump the current state and test against that without really reviewing or understanding it? They might have a bug in the charm that they'd then be propagating to the test. But maybe that's okay? At least then if/when the fixed the bug the test would break and they could correct it (potentially by running snapshot again). Thoughts?

One concern I'd have with generated tests is would people just dump the current state and test against that without really reviewing or understanding it? They might have a bug in the charm that they'd then be propagating to the test.

I see it a bit differently: Snapshot could output invalid states, but the bug itself (what led to the invalid state) is in the black box that is the charm. So indeed there is a risk that people will extract invalid states without realizing that they're invalid and build upon them, but I don't see this as a problem specific to this tool. The only difference between a harness test that's passing for the wrong reason and a subtly invalid State is that you can better visualize and inspect the State object itself.

Couple comments:

One general comment that I would make is that you should be adding a license header to each file in this testing framework. That way if end-users and/or developers using code from this repository will now that each file is licensed under the Apache 2.0 license. It also helps mark which files may be from outside the framework and therefore have a different license. Would not want someone pull code from your project to get in legal trouble because a file they are using in closed-source solution is actually licensed under GPLv3. Generally, this is how you would apply the Apache 2.0 license file to each file, but you could get away with just using:

#/usr/bin/env python3
# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.

Docstrings! Generally I will not approve pull requests if there is no complementing documentation for newly added modules, classes, functions, etc. As I have learned the hard way, doubling back after writing an entire library to add documentation is a morally degrading process that makes you hate yourself :sweat_smile:. I suggest adding docstrings to the newly added/modified files before merging this pull request.

@NucciTheBoss thanks a lot for the feedback! I updated to happify most of that.
RE the license: I once read some very convincing article by someone who just ditched all of these license statements throughout the codebase because it was annoying, and I felt compelled.
The license is on GH and in the repo root.
 But it's low on my list and definitely not part of this PR :)

I would argue since this project is under the Canonical organization, you should follow our licensing guidelines. Might need a bigger kahuna to weigh in here however. From what I have seen, you can just use the simple header:
Copyright 2023 Canonical Ltd.
See LICENSE file for licensing details.

It is important that you reduce the potential for other software devs to accidentally violate the terms of the license. This code is published under the Canonical organization, so it will potentially have higher visibility than a project hosted in your personal account. Copyright will apply to this file even if you don't include the header, but if someone is looking this file in isolation from the ops-scenario package (say through a code grepper) and there is no license header, how will they know whether or not they are violating your copyright? If this project were be licensed under a copyleft-like license, a legal headache can be created for you and them especially if they are using the code in violation of the copyleft license. Permissive licenses like Apache-2.0 have restrictions and red tape too!

 But it's low on my list and definitely not part of this PR :)

You don't even have to go that far. You can just use trusty ole' ctrl+c,crtl+v. Unless you treat licenses like fast-fashion, you won't need to update it that often :)


imlib2: add explicit svg-support-disabling (fixing darwin build)

Description of changes
...instead of just buildInput omission. Darwin still fails to build with svg support, but librsvg being accidentally included in one of the existing dependencies will cause support to be enabled. Oops.
See https://github.com/NixOS/nixpkgs/pull/166452#issuecomment-1120151120
cc @vcunat
Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

Hmm... this does not seem to do the trick.

Ah.. HEIF support also causing the problem.

@ofborg build imlib2


Allow spaces in the fallback section contents

This allows for use of the / offline.html pattern. Without this patch / offline.html would be output to the manifest file as /%20offline.html

Are you guys adding it to the npm dist?

@juristr looks like the npm version isn't up to date, see: https://github.com/gunta/grunt-manifest/issues/63#issuecomment-180145372

@philwolstenholme oh I see...well meanwhile I copied it down locally. Thx for replying

is there already a plan when to release a new version with the fix? 0.4.4. still has spaces.


[release-1.19] Cannot join etcd node with specific combinations of member IP addresses

Backport fix for Cannot join etcd node with specific combinations of member IP addresses to branch release-1.19:

#3831

Validated using v1.19.14-rc1+k3s1 using the same steps as in https://github.com/k3s-io/k3s/issues/3833#issuecomment-901405862


Update dependencies

There are many dependencies in the library have deprecated or vulnerabilities which has been fixed but not updated, can we update the those libraries for security reasons.

Hi, yea this is in progress 👌


Allow mult-dimension arrays when generating base string for HMAC-SHA1 signature. Fixes #39

With this implementation, multi-dimensional arrays can be passed
to League\OAuth1\Client\Server::getHeaders() and be correctly
transformed. For prior art, consider the WP REST API - OAuth 1.0a Server
plugin. Specifically:

https://github.com/WP-API/OAuth1/blob/master/lib/class-wp-rest-oauth1.php#L667-L674
https://github.com/WP-API/OAuth1/blob/master/lib/class-wp-rest-oauth1.php#L706-L753

Includes tests. (closing #60)

Related PR against the WP-API/OAuth1 library: https://github.com/WP-API/OAuth1/pull/122

How do you guys feel about this PR? As it is now, multi-dimensional arrays in POSTed data is not possible.

After reading through the spec in detail, I can't see why this shouldn't be included!
Thanks :)

👍


trVAE: MMD loss always zero

hi,
my reference and query data do not mix when i use scanvi, so i decided to go ahead and try trvae as it applies additional MMD loss. however, i noticed that MMD loss seems to always equal zero:
In [114]: trvae.train(
     ...:     n_epochs=trvae_epochs,
     ...:     alpha_epoch_anneal=200,
     ...:     early_stopping_kwargs=early_stopping_kwargs
     ...: )
Trying to set attribute `.obs` of view, copying.
Trying to set attribute `.obs` of view, copying.
 |███-----------------| 15.0%  - epoch_loss:   13730 - epoch_recon_loss:   13723 - epoch_kl_loss:      18 - epoch_mmd_loss:       0 - val_loss:   13714 - val_recon_loss:   13707 - val_kl_loss:      18 - val_mmd_loss:       0
ADJUSTED LR
 |████----------------| 20.0%  - epoch_loss:   13717 - epoch_recon_loss:   13708 - epoch_kl_loss:      17 - epoch_mmd_loss:       0 - val_loss:   13708 - val_recon_loss:   13699 - val_kl_loss:      17 - val_mmd_loss:       0
ADJUSTED LR
 |████----------------| 21.4%  - epoch_loss:   13693 - epoch_recon_loss:   13684 - epoch_kl_loss:      17 - epoch_mmd_loss:       0 - val_loss:   13713 - val_recon_loss:   13704 - val_kl_loss:      17 - val_mmd_loss:       0
Stopping early: no improvement of more than 0 nats in 20 epochs
If the early stopping criterion is too strong, please instantiate it with different parameters in the train method.
Saving best state of network...
Best State was in Epoch 85

[...]
In [119]: new_trvae.train(
     ...:     n_epochs=surgery_epochs,
     ...:     alpha_epoch_anneal=200,
     ...:     early_stopping_kwargs=early_stopping_kwargs,
     ...:     weight_decay=0
     ...: )
Trying to set attribute `.obs` of view, copying.
Trying to set attribute `.obs` of view, copying.
 |████████████████████| 100.0%  - epoch_loss:   14079 - epoch_recon_loss:   14064 - epoch_kl_loss:      15 - epoch_mmd_loss:       0 - val_loss:   14220 - val_recon_loss:   14205 - val_kl_loss:      15 - val_mmd_loss:       0
Saving best state of network...
Best State was in Epoch 499

i am using readthedocs code without any modifications, just with my own data.
any ideas what may be wrong? thanks in advance!

How many batches do you have in your data?

How many batches do you have in your data?

yes there only 1 batch in each

yes there only 1 batch in each

Then MMD cant be computed, since you dont have different batches on which a MMD can be calculated on, therefore its 0.

Then MMD cant be computed, since you dont have different batches on which a MMD can be calculated on, therefore its 0.

ok, thanks for the explanation!

ok, thanks for the explanation!


imagesResponseFormat does not work

imagesResponseFormat as defined in the docs does not work. Instead the following works: response_format.

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

ID: fadd6778-b11c-d9af-1bd9-e3ed394e0fcb
Version Independent ID: 45436c53-4aae-284b-a6c5-3f47c9342537
Content: Azure OpenAI Service REST API reference - Azure OpenAI
Content Source: articles/ai-services/openai/reference.md
Service: azure-ai-openai
GitHub Login: @mrbullwinkle
Microsoft Alias: mbullwin

@oldrich-s
Thanks for your feedback! We will investigate and update as appropriate.

@oldrich-s
Thank you for bringing this to our attention. It seems like there is an error in the documentation. The correct parameter name for specifying the response format in the OpenAI API is response_format, not imagesResponseFormat.

@oldrich-s
Thanks for reporting this! We have created a PR for this issue and the changes should go live soon.


Update UG for client crud

Closes #95, #41.

overall looks ok. tho i think we can drop the bold around inline code, and drop the bash syntax highlighting. but these r minor things we can update agn w a later review


How to stop blog from being in danger zone

I'm still fairly new so might have missed something, but could you explain what you mean by danger zone? Except for the Kenny Loggins song


Using argument on appId

is possible to pass arg to appId?
appId: ${PACKAGE}
---
- launchApp
- tapOn: "Send"

maestro test -e PACKAGE="com.mypackage" test.yaml

Yes @josinaldobarbosa it should be possible to pass that in env variable. Did you faced any difficulty?

@amanjeetsingh150 update to latest version and now it works thanks


go-chromecast: 0.3.1 -> 0.3.2

Thanks to vishen/go-chromecast#195 switch buildGo122Module back to buildGoModule as version 0.3.2 works with and requires go 1.23.

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 353343

x86_64-linux

:white_check_mark: 1 package built:

go-chromecast


add battery level and status sensor

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

I don't know why it's not posted correctly
this my post ,,
I have a laptop running OMV Its always on AC power So I need every 15 days to switch the power adapter off to let the battery level be at 20 % and turn it on again to save battery lifespan
I do circuit control relay to do this through ESPhome By HA so if passable add a sensor to read battery level and charger status it is nice to create HA automation to do this,,
Most important sensor is
capacity
status
all data you need it can be found in
/sys/class/power_supply/BAT1

This is API cased integration, so anything outside of API is not possible.