SVG data-template does not display

I want to inject inline SVG into my page. So I created a data template like this:
<svg data-template="MyIcon" xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
    <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
    ...

I can successfully inject this into my page using Template.MyIcon.Doc () but the SVG does not get displayed. If I open the Developer Tools in Chrome and look at the Elements page, I can see what looks like correct SVG elements. If I then use the Edit as HTML command and just insert a space, my SVG icon then gets displayed.
I think I understand why.
When the browser parses HTML text, the xmlns attribute tells it that this element and all nested elements are part of the SVG namespace. But if you create nodes using the DOM, you have to use createElementNS and specify the namespace for each node (not just the parent node) at the time you create it.
This is done when you create SVG nodes in F# since they all go through Doc.SvgElement, which creates nodes in the SVG namespace. But this is not done when an SVG data template is used. So all the SVG nodes are created with the default namespace, which is why they do not display. If you then use the Edit as HTML command, Chrome reparses the HTML text and creates correct nodes instead.
What is the best workaround for this? I thought of copying the Doc tree returned from Template.MyIcon.Doc () and calling Doc.SvgElement for each node. I can cast the Doc to an Elt since I know I have a single root element. But I can't find a way of traversing the structure.
Or is there a better workaround?

Thanks for the report. This looks like an accurate assessment of the cause of the problem.
I can't really think of a way to work around the issue with the current UI.Next, but it should be quick enough to fix the templating engine to create any <svg> node and all of its children with Doc.SvgElement instead of Doc.Element.

Thanks for fixing it so quickly. In the meantime, here is my rather brutal workaround:
let fix (svg: Doc) =
    let inject parent =
        (svg :?> Elt).Html
        |> JQuery.ParseHTML
        |> Array.fold (fun (parent: Dom.Node) child -> parent.AppendChild child) parent
        |> ignore
    spanAttr [on.afterRender inject] []

let create () =
    let kiwi = Template.KiwiIcon.Doc ()
    let chamfer = Template.ChamferIcon.Doc ()

    Doc.Concat [fix kiwi; fix chamfer]


Multiple notification sounds when multiple tabs are opened.

When multiple zulip tabs are opened in the same browser and a new messages comes in while at least two tabs are out of focus, multiple notification sounds will be played with a small overlay.
This issue is similar to #99, which caused the browser to open a notification for each open zulip tab.
Issue #99 could be fixed by adding "tags" to the notifications. This is notification-specific and not a possible approach for this issue.
Another approach discussed  for issue #99 was to set a notification-id object in local-storage, so that each tab could check whether a notification was already sent. This turned out to be tricky, since multiple tabs tried to read and set the object at the same time, so race issues popped up. The (by my knowledge only existing) library to lock localStorage objects turned out to be broken.
A possible approach for this issue could be the use of $(window).on('storage', message_receive); (localStorage events). These are asynchronous, so an event handler could try to check his own sound playback if he receives such an event. However, a cleaner solution that prevents the sound from being played back would be optimal :)

@zulipbot claim


fix various small typos

This fixes various small typos across the blog and docs.
We, Ritza, are a team of technical writers, editors, engineers, and quality assurance specialists. We create new technical content, such as developer tutorials, for highly technical products, and help improve and maintain existing developer documentation sites.

p.s. This reminds me that it would be nice to have an automatic spell/grammar checker... Could try https://github.com/marketplace/actions/check-spelling or https://github.com/marketplace/actions/check-spelling-js-vue-html-markdown-text for now

Fixed and merged #2508 instead 🙂


git push fails because "default" does not exists

In the Debug step, in number 4, the operation fails. I had to go to the gcp console, to the source repository, and create a repository called "default", and then do git push again.

See the solution here: https://github.com/googlecodelabs/cloud-cardboard-viewer/issues/10


Allow identity, ensure dimensions is returned, & use pre-commit.ci

This PR implements 3 things:

Support for aliasing uri as identity in entities.
Ensure dimensions is always returned.
Use pre-commit.ci

Aliasing uri as identity
In the backend, the entities will still use uri. This is similar to the behaviour of dims/shape, where dims is an alias for shape and shape is what is stored in the backend.
This also means when returning the entity from the service uri (and shape) will be used in place of the aliases.
Ensure dimensions is always returned
Always return dimensions from a call to the service. Even if dimensions is an empty list or dict/object.
In the backend, if dimensions is empty, the key will not be stored for the given document/entity.
Use pre-commit.ci
Set up configuration for pre-commit.ci usage in .pre-commit-config.yaml.
It will run pre-commit for each PR as a CI job.
Hence, the current CI job, which runs pre-commit has been "turned off".

I was thinking we could perhaps consolidate the different existing schemas for entities and make a conversion tool in the soft7 package such that we could "upgrade". That way we don't have to implement any version checking in other tools.

I fully agree with this sentiment. Indeed, issue #80 reflects part of this thought.


feature/schema-renderer

Codecov Report

Merging #118 (1ebf0ee) into dev (d7a643b) will decrease coverage by 1.86%.
The diff coverage is 50.96%.

@@            Coverage Diff             @@
##              dev     #118      +/-   ##
==========================================
- Coverage   92.44%   90.57%   -1.87%
==========================================
  Files         128      149      +21
  Lines        3295     3450     +155
  Branches     1096     1133      +37
==========================================
+ Hits         3046     3125      +79
- Misses        114      176      +62
- Partials      135      149      +14

Impacted Files
Coverage Δ

...ges/react-magma-dom/src/components/Input/index.tsx
100.00% <ø> (ø)

...react-magma-dom/src/components/InputBase/index.tsx
96.72% <ø> (ø)

...t-magma-dom/src/components/PasswordInput/index.tsx
100.00% <ø> (ø)

...eact-magma-dom/src/components/RadioGroup/index.tsx
100.00% <ø> (ø)

...s/react-magma-dom/src/components/Spinner/index.tsx
100.00% <ø> (ø)

.../react-magma-dom/src/components/Textarea/index.tsx
100.00% <ø> (ø)

...gma-dom/src/components/TimePicker/useTimePicker.ts
95.94% <ø> (ø)

packages/react-magma-dom/src/i18n/default.ts
100.00% <ø> (ø)

.../schema-renderer/src/components/Combobox/index.tsx
8.69% <8.69%> (ø)

...es/schema-renderer/src/components/Select/index.tsx
16.66% <16.66%> (ø)

... and 40 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 d7a643b...1ebf0ee. Read the comment docs.


Removal of obsolete code owners

Description
Changes proposed in this pull request:

Removal of codeowners who has no longer access to repository

Related issue(s)

Not sure if removal would be proper solution


Add RandomKit

RandomKit is a Swift framework for OS X, iOS, and watchOS that extends Swift and ObjC types to produce random values.

Please put on the end of the list


fix broken link

fix broken link

/assign @quinton-hoole

/lgtm
@irfanurrehman Are there any other links that broke as a result of the repo move?

/ok-to-test

@irfanurrehman Are there any other links that broke as a result of the repo move?

@quinton-hoole I did give a pass at most of the documentation (with more focus on federation docs published at https://kubernetes.io/). In federation repo, we did find replace all k8s.io/kubernetes/federation to k8s.io/federation, this seems missed because of that. Meanwhile the api reference docs are actually published at kubernetes.io docs authoritatively, for example https://kubernetes.io/docs/reference/generated/federation/federation/v1beta1/operations/.


FT: Zenko-20: Prometheus Metrics

Description: Added Metrics that need to be forwarded to Prometheus in Zenko.
Motivation and context: Monitoring via Zenko
The below metrics are included in this change
Metrics List

processCpuTotal
processStartTime
osMemoryHeap
processOpenFileDescriptors
processMaxFileDescriptors
eventLoopLag
processHandles
processRequests
heapSizeAndUsed
heapSpacesSizeAndUsed
NodeJS version
Total number of buckets
Current number of buckets
Total number of lifecycle buckets
Total number of objects
Current number of objects
Number of GET Requests
Number of PUT Requests
Number of DELETE Requests
Number of HEAD Requests
Number of bytes uploaded
Throughput (bytes / sec)

Closing the pull request, as we need might need to refactor the code after getting the stats from the orbit


(still under development) add NSE function

A new score or metric should be developed on a separate feature branch, rebased against the main branch. Each merge request should include:
The implementation of the new metric or score in xarray, ideally with support for pandas and dask
100% unit test coverage
A tutorial notebook showcasing the use of that metric or score, ideally based on the standard sample data
API documentation (docstrings) using Napoleon (google) style, making sure to clearly explain the use of the metrics
A reference to the paper which described the metrics, added to the API documentation
For metrics which do not have a paper reference, an online source or reference should be provided
For metrics which are still under development or which have not yet had an academic publication, they will be placed in a holding area within the API until the method has been properly published and peer reviewed (i.e. scores.emerging). The 'emerging' area of the API is subject to rapid change, still of sufficient community interest to include, similar to a 'preprint' of a score or metric.
Add your score to summary_table_of_scores.md in the documentation

All merge requests should comply with the coding standards outlined in this document. Merge requests will undergo both a code review and a science review. The code review will focus on coding style, performance and test coverage. The science review will focus on the mathematical correctness of the implementation and the suitability of the method for inclusion within 'scores'.
A github ticket should be created explaining the metric which is being implemented and why it is useful.
added NSE function

I'm sure you're already aware of this, but obviously unit test coverage will be needed.

All checks have passed . Please check @nicholasloveday  @tennlee .
Thank you.

Thanks for the update Mahadi. I will try and review the changes this week - I have not been able to get to it before now. I just wanted to acknowledge your update and let you know that I will come and look through this soon.


Add support for next/previous image keybindings

Contributes to https://github.com/trustsitka/sitka/issues/3426

We may not need this if we can bump to 0.17.1 which I'll be working on this morning.


Create wiregrid calibration module

This PR creates the wiregrid calibration module, allowing for running a wiregrid calibration with the run.wiregrid.calibrate() command.
A few other commands are included, mostly to facilitate debugging, as they allow for command over individual actions taken during the calibrate() function -- eject(), insert(), and rotate().
I split most of the new, unrelated, features out to separate PRs (see #104 and #103), but one thing I didn't split out was the addition of check_running(). I don't think I like the way I implemented this, but I don't want it to hold up getting the wiregrid module out, so I'll probably change that later.
Resolves #97.

This is finally ready to go. @sadachi5, I don't think there should be any surprises here following our offline discussions.

Going to rebase and merge this. We can update things as needed from there.


DO-2152 Update test workflows

[x] Update GitHub actions' versions following node 16 deprecation
[x] Use go-junit-report to export go tests result as JUnit
[x] Using Test Summary to produce human-readable results form JUnit files
[x] Using ci mode in jest

@amitza Where can we see the tests report?

In the summary of each pipeline e.g. https://github.com/lavanet/lava/actions/runs/8310796313/attempts/1#summary-22743703835

@shleikes In the summary of each pipeline e.g. https://github.com/lavanet/lava/actions/runs/8310796313/attempts/1#summary-22743703835

Can we see the failed tests as well?


adjusted order of head tags

@LukeHagar as discussed on Discord. I'd normally go for this change, but when it comes to Analytics specifically, we typically want those to be the last items loaded. That helps ensure page state is "finalized" before new metrics are recorded. We'll keep this as is for now. But thanks for the PR!


Refactor marketplace-env to use docker-compose and less magic

A bit sad at seeing all that work go, but hey that's life.
If it works r+ from me.


[BUG] Cython 3 regression when using Python 3 typehints - runs 10x slower

Describe the bug
When I convert my code to type annotated syntax, it runs much slower. (10X in my case):
code to reproduce:
import numpy as np # 1.23.5
import pandas as pd # 2.1.1
import cython # 3.0.4

import io
billing_data = \
'''cancel_date,period_start,start_date,end_date,rev,sum_payments
12/1/2019,1/1/2020,12/15/2019,5/15/2020,999,50
,1/1/2020,12/15/2019,5/15/2020,999,50
,1/1/2020,12/15/2019,5/15/2020,999,1950
1/20/2020,1/1/2020,12/15/2019,5/15/2020,499,0
,1/1/2020,12/24/2019,5/24/2020,699,100
,1/1/2020,11/29/2019,4/29/2020,799,250
,1/1/2020,1/15/2020,4/29/2020,799,250'''

def tweak_bill202(df_):
    return (df_
            .assign(cancel_date=pd.to_datetime(
                df_.cancel_date.replace('<NA>', ''), format='%m/%d/%Y')
                   )
           )

bill_df = tweak_bill202(pd.read_csv(io.StringIO(billing_data),
    dtype_backend='pyarrow',
    parse_dates=['cancel_date', 'period_start', 'start_date',
                 'end_date']))
bill_100k = bill_df.sample(100_000, replace=True)

# this is the code I want to cythonize
def calc_unbilled_rec(vals):
    cancel_date, period_start, start_date, end_date, rev, \
         sum_payments = vals
    if cancel_date < period_start:
        return np.nan#float('nan')
    if start_date < period_start and end_date > period_start:
        if rev > sum_payments:
            return rev - sum_payments
        else:
            return 0

Here is my fast cython code:
%%cython

cimport cython
import numpy as np
cimport numpy as np

@cython.boundscheck(False)
@cython.wraparound(False)
cpdef calc_unbilled_cy(np.ndarray[np.int64_t] cancel_date,
                        np.ndarray[np.int64_t] period_start,
                        np.ndarray[np.int64_t] start_date,
                        np.ndarray[np.int64_t] end_date,
                        np.ndarray[np.int64_t] rev,
                        np.ndarray[np.int64_t] sum_payments):
    cdef np.ndarray[np.float64_t ] results = np.full(rev.shape[0], np.nan, dtype=np.float64)
    cdef long cd, pd, sd, ed;
    for i in range(rev.shape[0]):
        cd = cancel_date[i]
        ps = period_start[i]
        sd = start_date[i]
        ed = end_date[i]
        if cd > 0 and cd < ps:
            continue
        elif sd < ps < ed:
            if rev[i] > sum_payments[i]:
                results[i] = rev[i] - sum_payments[i]
            else:
                results[i] = 0
    return results

Here is the slow code. I just changed the type annotations to Python 3:
%%cython

import cython
import numpy as np

@cython.boundscheck(False)
@cython.wraparound(False)
def calc_unbilled_cy2(cancel_date: np.ndarray[np.int64_t],
                    period_start: np.ndarray[np.int64_t],
                    start_date: np.ndarray[np.int64_t],
                    end_date: np.ndarray[np.int64_t],
                    rev: np.ndarray[np.int64_t],
                    sum_payments: np.ndarray[np.int64_t]):
    results: np.ndarray[np.float64_t] = np.full(rev.shape[0], np.nan, dtype=np.float64)
    i: cython.int

    for i in range(rev.shape[0]):
        cd:cython.long = cancel_date[i]
        ps:cython.long = period_start[i]
        sd:cython.long = start_date[i]
        ed:cython.long = end_date[i]
        if cd > 0 and cd < ps:
            continue
        elif sd < ps < ed:
            if rev[i] > sum_payments[i]:
                results[i] = rev[i] - sum_payments[i]
            else:
                results[i] = 0
    return results

Code to reproduce the behaviour:
This is fast
>>> %%timeit
>>> calc_unbilled_cy(*(ser.astype(int).to_numpy() for name, ser in bill_100k.items()))

This is slow
>>> %%timeit
>>> calc_unbilled_cy2(*(ser.astype(int).to_numpy() for name, ser in bill_100k.items()))

Expected behaviour
The code using Python 3 annotations runs at the same speed as the "cython" code.
OS
mac02
Python version
3.10.13
Cython version
3.0.4
Additional context
No response

My guess would be that np.ndarray[np.int64_t] isn't handled when in an annotation. Part of the issue is that  the full np.ndarray syntax isn't valid Python Syntax (e.g np.ndarray[np.int64_t, ndim=2] so can't really go in an annotation.
Although you aren't using that here, I think it's the reason we haven't yet supported that feature in annotations.

np.ndarray[np.int64_t] isn't handled when in an annotation.

Right. The canonical answer is: use memoryviews.

Here's my attempt at using memory views. It appears to compile fine but gives a NameError when running:
%%cython

import cython
import numpy as np

@cython.boundscheck(False)
@cython.wraparound(False)
def calc_unbilled_cy3(cancel_date: cython.long[:],
        period_start: cython.long[:],
        start_date: cython.long[:],
        end_date: cython.long[:],
        rev: cython.long[:],
        sum_payments: cython.long[:]) -> cython.double[:]:
    results: cython.double[:] = np.full(rev.shape[0], np.nan,
                                        dtype=cython.double)
    i: cython.int

    for i in range(rev.shape[0]):
        cd:cython.long = cancel_date[i]
        ps:cython.long = period_start[i]
        sd:cython.long = start_date[i]
        ed:cython.long = end_date[i]
        if cd > 0 and cd < ps:
            continue
        elif sd < ps < ed:
            if rev[i] > sum_payments[i]:
                results[i] = rev[i] - sum_payments[i]
            else:
                results[i] = 0
    return results

Result:
>>> %%timeit
>>> calc_unbilled_cy3(*(ser.astype(int).to_numpy() for name, ser in bill_100k.items()))
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Cell In[12], line 1
----> 1 get_ipython().run_cell_magic('timeit', '', 'calc_unbilled_cy3(*(ser.astype(int).to_numpy() for name, ser in bill_100k.items()))\n')

File ~/.envs/menv/lib/python3.10/site-packages/IPython/core/interactiveshell.py:2422, in InteractiveShell.run_cell_magic(self, magic_name, line, cell)
   2420 with self.builtin_trap:
   2421     args = (magic_arg_s, cell)
-> 2422     result = fn(*args, **kwargs)
   2423 return result

File ~/.envs/menv/lib/python3.10/site-packages/IPython/core/magics/execution.py:1162, in ExecutionMagics.timeit(self, line, cell, local_ns)
   1160 for index in range(0, 10):
   1161     number = 10 ** index
-> 1162     time_number = timer.timeit(number)
   1163     if time_number >= 0.2:
   1164         break

File ~/.envs/menv/lib/python3.10/site-packages/IPython/core/magics/execution.py:156, in Timer.timeit(self, number)
    154 gc.disable()
    155 try:
--> 156     timing = self.inner(it, self.timer)
    157 finally:
    158     if gcold:

File <magic-timeit>:1, in inner(_it, _timer)

File _cython_magic_e06ed44ab6c6521b766c7429289f0b3928f3e961.pyx:14, in _cython_magic_e06ed44ab6c6521b766c7429289f0b3928f3e961.calc_unbilled_cy3()

NameError: name 'cython' is not defined

dtype=cython.double -> dtype=np.float64.
This isn't a compile-time directive for Cython but if just an object you're passing to Numpy at runtime

@da-woods 🙏🤦♀

    results: cython.double[:] = np.full(rev.shape[0], np.nan,
                                        dtype=cython.double)

I thought about allowing this but am against it because it would almost never do what users expect. You really want an explicit np.float64 here, not just a Python float type that this could map to. Even worse, you'd get a bare Python int type instead of a specific native integer type if we allowed cython.int etc.
We should make sure that we warn about such a usage, though. Or even error out on left-over usages of cython.* after replacing all valid usages.

I'm closing this as "won't fix" because we're not planning to support the old buffer notation in Python syntax.

@cython.boundscheck(False)
@cython.wraparound(False)
def calc_unbilled_cy3(cancel_date: cython.long[:],
        period_start: cython.long[:],
        start_date: cython.long[:],
        end_date: cython.long[:],
        rev: cython.long[:],
        sum_payments: cython.long[:]) -> cython.double[:]:
    results: cython.double[:] = np.full(rev.shape[0], np.nan,
                                        dtype=np.float64)
    i: cython.int

    for i in range(rev.shape[0]):
        cd:cython.long = cancel_date[i]
        ps:cython.long = period_start[i]
        sd:cython.long = start_date[i]
        ed:cython.long = end_date[i]

Note, BTW, that this is dangerous code. You have disabled boundscheck but without validating the bounds yourself. If someone passes views of different lengths into the six arguments, you will get invalid memory reads and likely also crashes. Always make sure that you remove safety belts only if you know that you won't need them.
If you have further questions, please ask them on the cython-users mailing list. The bug tracker is not the right place.

Got it. I put my code here for future searchers who run into the same issue.


Avatar Editor Glitch

Ok so i just wanted to say THANK YOU for adding this coo, feature! But sadly there is a small error. The character is on the edge of the carpet when the lights and SFX is aiming for the center of the carpet. Basically, the player is supposed to be in the middle of the carpet where the spotlight it. Also you shouldn't be able to see white or the edge of the floor. So try zooming in.
Hope this didn't come across rude and once again THANK YOU for the feature! <3

The character is on the edge of the carpet when the lights and SFX is aiming for the center of the carpet.

Yeah, positioning for R6 and R15 characters are different. I'll fix it to be R15 since it's what everyone uses.

Also you shouldn't be able to see white or the edge of the floor. So try zooming in.

But then you wouldn't be able to see your avatar. Also, it wasn't designed for this camera angle, so there's that. Only way to "fix" it would be to modify and extend the map, which I'd rather not do.


My bot is able to join the channel but won't play music

Please make sure these boxes are checked (put an 'x' inside them) before creating the issue.

[x ] I am using Python 3.5 or higher (run python --version on the command line)
[ x] I have followed the official guides to install the bot for my system
[ x] I have updated my dependencies to the latest version using the appropriate update_dependencies script
[ x] I am running version 1.9.6_1 of MusicBot

Description of issue
When I try to play music, it queues up the command but then the bot leaves the channel and rejoins and does not play anything
Steps to reproduce

Log file
Please attach your MusicBot log file (located at logs/musicbot.log) to this issue. You can do so by dragging and dropping the file here.

You’ve said you’re using version 1.9.6_1 of the bot but you’re clearly not if you’re having this issue. You should also have looked at existing issues before creating a new one.
The solution to your issue is on leaving: https://github.com/Just-Some-Bots/MusicBot/issues/1433#issuecomment-353684748.


Insecure registries not working with latest fixed 1.10

It as working before. Now, with last update, startup just fails :
* + Setting up insecure-registries on kube-master
Job for docker.service canceled.

My insecure registries variable is :
DIND_INSECURE_REGISTRIES="[ \"localregistry:5000\", \"<IP_ADDRESS>/0\"]"

Error not related to DIND_INSECURE but to other custom docker options .. sorry

On the node, the /etc/docker/daemon.json is right.
If I try to run systemctl restart dockermanually I get this logs :
#  systemctl daemon-reload
# systemctl restart docker
Job for docker.service canceled.
# service docker status
WARNING: terminal is not fully functional
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: https://docs.docker.com

Dec 04 15:36:15 kube-master systemd[1]: Starting Docker Application Container Engine...
Dec 04 15:36:15 kube-master rundocker[60]: Trying to load overlay module (this may fail)
Dec 04 15:36:15 kube-master systemd[1]: Stopped Docker Application Container Engine.
Dec 04 15:37:52 kube-master systemd[1]: Starting Docker Application Container Engine...
Dec 04 15:37:52 kube-master rundocker[148]: Trying to load overlay module (this may fail)
Dec 04 15:37:52 kube-master rundocker[148]: /dev/sda1 /var/lib/kubelet/pods ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
Dec 04 15:37:52 kube-master rundocker[148]: /dev/sda1 /var/log/pods ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
Dec 04 15:37:52 kube-master systemd[1]: Stopped Docker Application Container Engine.

same effect for 1.12 when using DIND_REGISTRY_MIRROR and supplying DIND_CA_CERT_URL

To get around this you can add || true to the end of line 2295 in dind-cluster-v1.10.sh
docker exec ${container_id} systemctl restart docker || true
I think the issue is that when docker.service starts, it also tries to start containerd.service. containerd.service fails with the following message.
Dec 07 20:48:06 kube-master containerd[114]: containerd: creating temp mount location: mkdir /var/lib/containerd: file exists
Dec 07 20:48:06 kube-master systemd[1]: containerd.service: Main process exited, code=exited, status=1/FAILURE
Dec 07 20:48:06 kube-master systemd[1]: containerd.service: Unit entered failed state.
Dec 07 20:48:06 kube-master systemd[1]: containerd.service: Failed with result 'exit-code'.
Dec 07 20:48:06 kube-master systemd[1]: Stopped Docker Application Container Engine.

This is due to the symlink created in the Dockerfile ln -s /dind/containerd /var/lib/containerd, but /dind/ is empty at this point.
Later on, /usr/local/bin/wrapkubeadm is executed in the container. This scripts calls mkdir -p /dind/containerd. With /dind/ no longer empty, docker.service and containerd.service start successfully.


Overloaded AddModuleAsync with Type

IDK

How is this different from AddModule<T>()?

You can do things like this:
foreach (KeyValuePair<System.Type, bool> pair in dic)
{
    if (pair.Value)
    {
        await CommandService.AddModuleAsync(pair.Key);
    }
}

:-1: Code duplication which could have been avoided by redirecting one method to the other. Also, there is no check that the type is actually a valid module before attempting to build it.
@MarkusGordathian AddModule(type) is useful for when you don't have access to use its generic twin, e.g. if you're loading modules from a source other than an Assembly.

@FiniteReality better?

:+1: LGTM, with this I can add a nice check to AddModuleAsync to prevent non-module types from attempting to be added before we try to build them.


add missing peerDependencies upgrade for 3.5.2

Change Summary
Add missing peerDependencies upgrade for 3.5.2
PR Checklist

[X ] I have read and signed the Contributor License Agreement.

@fharper I've published this in v0.22.0-1.
On a side note, I've also merged in #50 as part of this. So hopefully future updates don't require version changes. Could you let me know if this works as expected?

Seems to be working from my side, thanks.

Great, thank you for confirming!


.NET 6: Facebook, Google, and external provider authentication

[Enter feedback here]

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

ID: d1612f19-f267-493a-c230-2ca18e4eb50b
Version Independent ID: d312db0f-6cf1-87ca-09b0-604a66e18a07
Content: Facebook, Google, and external provider authentication in ASP.NET Core
Content Source: aspnetcore/security/authentication/social/index.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Fixed in #24589


PartMap does not validate string name

PartMap does not validate String name.
Example validation: Name.java

PartMap.getPartQuantity
Is this intended to return 0 if not found?


Facebook can't login

Hello, this looks like an awesome hack,
However when I try to connect with my credentials I get
Error in login: Couldn't login. Facebook might have blocked this account. Please login with a browser or enable the option 'forceLogin' and try again.

Is it possible that Facebook has blocked access to this hack?

You can close this - it was Facebook thinking a login from Ashburn, VA (Heroku location) was suspicious.

Thanks @mvaragnat :smile:
Yeah, unfortunately when logging in from another country (such as a heroku instance) you will occasionally get blocked by Facebooks suspicious login attempt system.
Even more unfortunately I have found that after a few days facebook may block you and force you to change password. I think the only way around this would be to turn off login notifications (although I haven't tested that yet).
The most bulletproof way around this is to run the app locally, which is pretty easy but obviously inconvenient unless you have a box running all the time already.

Yeah pretty inconvenient lol :-)
I don't think I'll be running it permanently anyway, it was more to see how it worked. Very clever. I'm waiting impatiently for the official API release, perhaps you'd want to chat about it? You can reach me by Slack if you want using my Smooz connection.


Upgrade maven-checkstyle-plugin 3.4.0 -> 3.5.0

This PR contains the following updates:

Package
Type
Update
Change

maven-checkstyle-plugin
build
minor
3.4.0 -> 3.5.0

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade maven-checkstyle-plugin 3.4.0 -> 3.5.0

See https://github.com/apache/maven-checkstyle-plugin/compare/maven-checkstyle-plugin-3.4.0...maven-checkstyle-plugin-3.5.0


Update Create.cshtml.cs

This change is necessary in case await _context. SaveChangesAsync (); will throw an exception and you will need to return the page back with the previously entered data, so as not to start typing again. If you leave it as it is, then when you try to save the changes, it gives an error that "An unhandled exception occurred while processing the request.
ArgumentNullException: Value cannot be null. (Parameter 'source')"

@alarihwertbars  good  catch. Do you find that with client side validation disabled and entering invalid data?

@alarihwertbars хороший улов. Находите ли вы это с отключенной проверкой на стороне клиента и вводом недопустимых данных?

The error appeared due to my error in the code, the data was incorrectly transferred to the database.


Forwards compatibility and the @if_def Directive

Strawman Proposal
Add an @if_def field directive that allows GraphQL queries against fields that are not defined on the server to be excluded from the response.
For example:
query {
  @if_def name
  @if_def website
}

Where a name field is defined in a resolver but website is not would return:
{
  name: "D1plo1d",
  website: None,
}

Motivation
Background
In my software many distributed 3D printers present GraphQL interfaces to a user's single centralized frontend. These servers are managed by users so each server may be running a different schema version. Also these servers talk directly to the frontend for end-to-end encryption.
The Problem
The issue I have is that I cannot add new fields to frontend queries without breaking compatibility with older servers which will error because the field is not defined on them
So in addition to the strong backwards compatibility of GraphQL I am looking to add a sort of "forwards compatiblity". @if_def is my thinking so far but I'd really like to hear alternative solutions or if/how this could be implemented outside of the core of async-graphql.
Reference: https://spec.graphql.org/June2018/#Directives

Let me think about it.

Appreciate it!

I added the @ifdef directive in v1.17.3.
Here is the test code.
https://github.com/async-graphql/async-graphql/blob/5cdb2a99b818ea0c601e6dd86b52f9ef6d94811d/tests/directive.rs#L66

Wow! That is beyond awesome. Thanks so much @sunli829!


Allow users to change cache dir for bloop

What is this needed for? Maybe it's worth upstreaming?

What is this needed for? Maybe it's worth upstreaming?

I want to enable changing cache directory for bloop, to download all necessary dependencies and cache them. Because I want to allow users to run scala-cli without access to internet, so I need all required dependencies downloaded for bloop.

What is this needed for? Maybe it's worth upstreaming?

I want to enable changing cache directory for bloop, to download all necessary dependencies and cache them. Because I want to allow users to run scala-cli without access to internet, so I need all required dependencies downloaded for bloop.

Wouldn't eat be easier to just download it to the default directory instead of adding the new config option?

Wouldn't eat be easier to just download it to the default directory instead of adding the new config option?

@tgodzik My understanding is that @lwronski uses that option only under special circumstances. We should have a command in Scala CLI allowing to generate an archive with all required JARs pre-fetched. Tweaking the Bloop cache location allows to know which JARs Bloop downloads in scenarios we want the archive to support.

It might be worth upstreaming it, yeah.

We started discussing it with @lwronski and maybe we should have just one command:
scala-cli cache . -S 3.1.0 which would create a cache in a stable location like .cache/.bleep/bleep-3.1.0.zip and then we would find it automatically if it exists and unpack to the default location?
But on the other hand, if we would do that when creating a VM, why not just run the compilation itself to cache its results? This would skip the additional steps of having to manually send a zip somewhere and use it.

I will close this PR as we currently have no plans to create scala-cli caches. There are numerous security concerns that need to be analyse.


MGMT-17283 - IBI - Run restorecon after mounting /var/lib/containers

/cc @donpenney
/cc @eranco74

/hold

It makes more sense to run restorecon in the live ISO
please @eranco74 review again :sweat_smile:
/unhold

/retest

Yea, lets understand first why is it need and not happens in IBU

in IBU the directory/filesystem is created by ignition, which should properly handle the SELinux relabeling
in IBI the directory/filesystem is created by our tool, so we need to handle this first SELinux labeling
once the main directory /var/lib/containers are properly labeled, newly created files will inherit those labels, so this only needs to be done right after we mount it for the first time
this PR now handles exactly that case, labeling the empty /var/lib/containers while in RHCOS live iso, and this code is only run the first time, just before using /var/lib/containers for the first time

/retest


remove lib functions from this gem

@rultor release, tag is 0.3.0

@rultor release, tag is 0.3.0

@yegor256 OK, I will release it now. Please check the progress here


[2/2] Release 0.5.4

update 0.5.4 image tag in example
Signed-off-by: Jyoti Mahapatra<EMAIL_ADDRESS>

/close


Update Kaniko to 1.8.1, update Trivy to 0.25.3

Changes
Updating build strategy tools
Submitter Checklist

[ ] Includes tests if functionality changed/was added
[ ] Includes docs if changes are user-facing
[x] Set a kind label on this PR
[x] Release notes block has been filled in, or marked NONE

Release Notes
The sample build strategies now use Kaniko v1.8.1 and Trivy v0.25.3

/lgtm


disable set rating

how can i use simple rating bar for only show rate? not set rating?
thanks for this laibrary

        app:isIndicator="true"

Hi !
I guess you already answered yourself :)
You can use app:isIndicator="true" in XML layout or myRatingBar.setIsIndicator(true); in java.
This will disable user interaction with the rating bar.


aktualizr: make use of boot-complete.target

From the systemd.special(7) man page section boot-complete.target:
This target is intended as generic synchronization point for services
that shall determine or act on whether the boot process completed
successfully.
Let's make use of the target. Since aktualizr by default marks a boot
as successful, we consider aktualizr.service a service which needs to
be executed on successful boot (hence after the boot-complete.target).
This allows to declare a service as crucial by simply ordering it before
the boot-complete.target. The systemd example service
systemd-boot-check-no-failures.service can serve as an example.
This change does not add any service dependency by default as
boot-complete.target by default does not has any extra dependencies.
Note that rebooting in the failure case is not handled by this
mechanism. This can be added by using FailureAction.
Boot assessement infrastructure got introduced with systemd 240. See
also:
https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT/
Signed-off-by: Stefan Agner<EMAIL_ADDRESS>

FWIW, warrior uses systemd 241, thud uses systemd 239. So this only should get backported to warrior.


Node Release Version is not updated or found

Expected Behaviour
Hello @mbeacom , I believe you helped me with this tool before...
When running the eksupgrade command:
eksupgrade {cluste_name} 1.29 us-east-1 --force --latest-addons all available updates/versions should be found and updated. When I ran it just now, it did not detect the on-demand Release Version latest update as it seems to still have available updates.

Current Behaviour
eksupgrade staging-gcs-eks-cluster 1.29 us-east-1 --force --latest-addons
Upgrading cluster: staging-gcs-eks-cluster from version: 1.29 to 1.29...
Are you sure you want to proceed with the upgrade process against: staging-gcs-eks-cluster? [y/N]: y
The current version of the cluster was detected as: 1.29
Cluster: staging-gcs-eks-cluster already on version: 1.29! Skipping cluster upgrade!
Found the following Managed Nodegroups
        * on-demand
        * spot
Getting cluster managed nodegroup details...
Managed Node Group: on-demand - Version: 1.29 - Release Version: 1.29.0-20240415 - Cluster: staging-gcs-eks-cluster
Getting cluster managed nodegroup details...
Managed Node Group: spot - Version: 1.29 - Release Version: 1.29.0-20240415 - Cluster: staging-gcs-eks-cluster
Getting cluster autoscaling group details...
Autoscaling Group: eks-on-demand-6cc1fdfd-d8c1-f92c-e2b5-63706644407e - Cluster: staging-gcs-eks-cluster
Healthy Instances:
         * i-096aadfd7318e8f61
         * i-0b44cd39c6d258ea8
         * i-0da7ebaff0a4671a4
Getting cluster autoscaling group details...
Autoscaling Group: eks-spot-8cc1fdfb-f7c2-057a-031b-4ed7a29e8bbf - Cluster: staging-gcs-eks-cluster
The add-ons update has been initiated...
Fetching Cluster Addons...
Getting the list of current cluster addons for cluster: staging-gcs-eks-cluster...
No Cluster AutoScaler is Found
No outdated managed nodegroups found!
Found the following Self-managed Nodegroups:
EKS Cluster staging-gcs-eks-cluster UPDATED TO 1.29

Code snippet
I'm not sure there's any thing I can provide to reproduce this unless you build your own cluster and try to run the same with the same versions I currently have.

Possible Solution
No response
Steps to Reproduce
I'm not sure there's any thing I can provide to reproduce this unless you build your own cluster and try to run the same with the same versions I currently have.
I am not sure this is a bug and not all the fields that are required are relevant for me
Amazon EKS upgrade version
latest
Python runtime version
3.9
Packaging format used
PyPi
Debugging logs
No response

Hello
I understand that the person who used to help me in this matter before has left AWS. May I ask that someone else pick this up?


sap.m.ObjectHeader: sap.m.IconTabBar data binding, no margin when there is no data

OpenUI5 version: 1.54.7
Browser/version (+device/version): Chrome Version 67.0.3396.99 (Official Build) (64-bit) on Windows
Any other tested browsers/devices(OK/FAIL):
URL (minimal example if possible): https://embed.plnkr.co/VLIkf6CEbnueZZg5qdrv/
User/password (if required and possible - do not post any confidential information here):
Steps to reproduce the problem:

Bind an empty JSONModel to the sap.m.IconTabBar in sap.m.ObjectHeader (responsive="true")

Try to add a new tab by pushing new data to the model on Clicking "Add model data" button

Try to remove a tab by popping data out of the model on Clicking "Remove model data" button

Set the IconTabBar to be invisible when the model is empty (length = 0)

What is the expected result?
When there is no data in the JSONModel, there should be a proper margin between the bottom border of the object header and the attributes of the object header, just like object headers without icon tab bar

What happens instead?
There was no margin between the attributes and the bottom border when the IconTabBar was set to be "visible=false" if there is no data in the JSONModel

Any other information? (attach screenshot if possible)
I tried to add the margin by using custom CSS, but I wonder if there is another better method to achieve the expected result?

Hi,
I've created an internal incident<PHONE_NUMBER>. The status of the issue will be updated here in GitHub.
Best,
Teo

Hi @nataliekate ,
Thank you for reporting this issue. It was fixed and will be downported to all relevant versions of UI5.
Kind Regards,
Gery


Add correlation id as option for grouping measurements

Add an optional correlation id for grouping measurements to create observations in FHIR.
When a template is set to the new ObservationPeriodInterval = CorrelationId all measurements for a given device, type, and correlation id will share the same observation in FHIR.  This overrides the traditional time based grouping like hourly or daily.
In order to use the feature the device messages need to supply a correlation id that is then extracted with the via the CorrelationIdExpression property added to the Json & Iot templates.

Please update the Configuration document with information on correlationId.

Added documentation.


Add a new WebSocketServer constructor allowing  to specify the maximum number of pending connections

After running some load tests on our company's app, I found that is not possible to specify the maximum number of pending connections (backlog) for the WebSocketServer.
I would be very interested in having a new WebSocketServer constructor that receives a new parameter in order to specify the backlog here socket.bind( address ).
Thanks

Hello @dregueira,
could you please describe your requirement a bit more?
What do you mean by pending connections?
When is a connection no longer pending?
Etc etc
Best regards,
Marcel

Hello @marci4 ,
With "pending connections" I'm referring to incoming connections waiting to be accepted by the WebSocketServer SocketChannel channel = server.accept();.
When the incoming connections can't be accepted fast enough by the WebScoketServer, the backlog queue gets full and new connections will be not accepted, causing a connection retry or a connection timeout (if the condition persists) at client side.
We are interested in customizing the backlog size according to our traffic characteristics, the WebSocketServer backlog size can be specified at the bind function socket.bind( address ).
You can find more info about the backlog here https://blog.cloudflare.com/syn-packet-handling-in-the-wild
Thanks!

Hello @marci4 ,
Here you will find (at bind function, line 208) how the backlog parameter is used and his default value (50) http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/2a93ed39a4e9/src/share/classes/sun/nio/ch/ServerSocketChannelImpl.java
A backlog size of 50 is not allowing us the handle thousands of web socket clients try to connect to a web socket server at the same time, since the "backlog" gets full and start dropping connections, that's the reason why we are requesting a way to set this value.
Not sure if I was able to explain the problem correctly. If it was not the case, please let me know.
Thanks!

Hello @dregueira,
feel free to open a PR :)
Best regards,
Marcel


Fix for active navigation links and position of the navigation bar

This pull request addresses fixes #328 . Specifically, it fixes the active links functionality and changes the position of the navigation bar to a fixed position.
Changes Made:

Active navigation links fixed:
Navigation bar position changed to fixed:

Demo:
https://github.com/MonalikaPatnaik/UMatter/assets/78682260/b6bf6352-1297-432c-b4a3-4889cd52302a
Addition Notes
I have solve the link active issue but there is a minor bug in it when we go to blogs page then on the three on home page links in which we last visited remain active. So to prevent that I add page reload when we go to blogs page.

LGTM!
Thanks for Contributing!


Objects as maps do not handle Generic Function Types as values

Here example: https://flow.org/try/#0C4TwDgpgBAggxsAlgewHYGEBOECGxmYDOUAvFAN4BQUUA2ocJoqgOYC6AXFADwAqAfAAowOTDgC2XXgEpS-ClFCQuDJqwA0UESAA2yHABMA-FKgBfSmYDclSnDQMoOBClS9wEYmSo1nSNACMXAAGfq4BwerUTi5oAEwhYfHBllY0NNEZ9qiOSTlc8P4Y2HgEXhTReUFQgrIk8oI+6UoQXHnukIQAdFXRZtJRvrGoCTUiYpJQqswsdQ1NNC1twx2ePcNxg+naeoZc4xJ90qlAA

I don't think the ActionCreators type could actually be usable as you want - You could type the ActionCreators as an object with all the properties specified, but dynamically constructing the ActionCreators type at runtime using generics isn't possible currently.
This is about as close as you can get I think: https://flow.org/try/#0C4TwDgpgBAggxsAlgewHYGEBOECGxmYA8AKgHxQC8UAFGDpjgLYBcUxAlJeQN5SiSsAzsEyJUAcwA0UOiAA2yHABMA-K2IBfANwAoHf2jwkaLLnyZBlKNx1QoAbQDWEEEJFjxAXVZGUGbHgEhDioIKSSOtp6cGjCUDgIfsTgEJZUNnYJxqgAjKwABll+OfkRmYloAEwFRVX5kVp2drZNOjGocbUdPhX+ZgRp1i1deTScFOTUGU0GrF3JkIIAdCMtGuxl8b3VNHQMLFDCohLjk9N2s1vZC6kr25t2sgrKrHtMaxvDvQDMrLT0TFYACNkMg5LhUKcaOc+ClWDlpAB6RFQACaEDA0mAAAtMMgAO6WEJQCCYPGYJYtR44eSKJSvAGMD4NIA


Sample doesn't match doc for Create User

The documentation for Create User (http://docs.cloudfoundry.com/uaa/#create48) doesn't match the sample input in the documentation. The following fields appear in the sample, but not in the doc:
meta.version
meta.created
name.formatted
schemas
It seems unlikely that the user should be setting meta (it's up to the system to decide when a user was created, not the requestor, for audit reasons).
The formatted name field is reasonable, but not consistent with (for example) list users.
I don't understand uaa enough to know whether schemas is appropriate here.

The schemas and meta fields come from the early SCIM specification
http://www.simplecloud.info/specs/draft-scim-core-schema-00.html
Those fields are not required, they are being sent up in the sample, because the Java object that represents the data model simply sends it up. It's completely ignored on the server.


Small details added in installation in readme and index

Added MOABB installation as a step in installation process. Moved "special" case of installing newest version of braindecode from github using pip to be a "normal" alternative way.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #126   +/-   ##
=======================================
  Coverage   60.38%   60.38%
=======================================
  Files          34       34
  Lines        1840     1840
=======================================
  Hits         1111     1111
  Misses        729      729

great


vedo2meshlab not working as intended

When running vedo.utils.vedo2meshlab(mesh.clean()): free(): corrupted unsorted chunks
It has also shown corrupted size vs. prev_size.
This occurs in the arrowed line below where k="Normals":
    for k in vmesh.pointdata.keys():
        data = vmesh.pointdata[k]
        if data is not None:
            if data.ndim == 1:  # scalar
                m.add_vertex_custom_scalar_attribute(data.astype(np.float64), k)
            elif data.ndim == 2:  # vectorial data
                m.add_vertex_custom_point_attribute(data.astype(np.float64), k)  # <----------------------------

data.shape = (8340, 3) with type float32.
Note that "Normals" is already added in the line above:
    m = mlab.Mesh(
        vertex_matrix=vertex_matrix,
        face_matrix=face_matrix,
        v_normals_matrix=v_normals_matrix,
        f_normals_matrix=f_normals_matrix,
        v_color_matrix=v_color_matrix,
        f_color_matrix=f_color_matrix,
    )

After adding in if "k" != "Normals" it runs.

Also note that vedo.meshlab2vedo(mesh) returns a vtkmodules.vtkCommonDataModel.vtkPolyData rather than a vedo.Mesh as per docs (and intended).

It also fails with k="TCoords" for vedo.Cylinders as it expects shape [m, 3] but gets [m,2]
 line 2526, in vedo2meshlab
    m.add_vertex_custom_point_attribute(data.astype(np.float64), k)
TypeError: add_vertex_custom_point_attribute(): incompatible function arguments. The following argument types are supported:
    1. (self: pymeshlab.pmeshlab.Mesh, attribute_values: numpy.ndarray[numpy.float64[m, 3]], attribute_name: str) -> None

Invoked with: <pymeshlab.pmeshlab.Mesh object at 0x7fb384256bb0>, array([[ 1.        ,  0.        ],
       [ 1.        ,  1.        ],
       [ 0.91666669,  0.        ],
... ]),
 "TCoords"

Hi, thanks for the fixing, I just committed a bunch of additional fixes to deal with custom arrays in pymeshlab:
from vedo import *

msh = Cylinder().rotate_y(10).triangulate()

msh.pointdata["pscalars"] = msh.points()[:, 2]
msh.celldata["cscalars"] = msh.cell_centers()[:, 2]

lmsh = vedo2meshlab(msh)

cmsh = meshlab2vedo(
    lmsh,
    pointdata_keys=["pscalars"],
    celldata_keys=["cscalars"],
)

cmsh.print()
print(cmsh.pointdata["pscalars"])
print(cmsh.celldata["cscalars"])

cmsh.show()

Works a charm! Thank you.

Hi Marco, the same issue occurred for TextureCoordinates. Worked fine after changing to if "tcoord" not in k.lower() and k not in ["Normals", "TextureCoordinates"]:.

Thanks! I made the change, feel free to reopen if anything else goes wrong :)


Use OpenShift GitOps to deploy the GitHub Runner

Currently, we install the GitHub Runner using a helm command. We want to move to a GitOps model.
We will install OpenShift Gitops manually, and then it will install the Runner for us.
This will also prepare us to deploy the application, and other tools.
Success Criteria:

The infra-ops README has instructions for installing OpenShift GitOps and configuring it to use infra-ops as a GitOps repository
When we do that, OpenShift GitOps deploys the ploigos github runner

Notes:

OpenShift GitOps is a supported distribution of ArgoCD, from Red Hat.
We can reuse code from https://github.com/ploigos/argocd-tekton-reference/

Work started: https://github.com/ploigos/infra-ops/tree/argocd


Can't download data

I'm trying to download data from SMAP, made the installation of podaac-data-subscriber and configure netrc.
podaac-data-subscriber -c SMAP_RSS_L2_SSS_V4 -d ./data/SMAP_RSS_L2_SSS_V4 --start-date 2015-04-01T00:43:12Z
[2023-03-07 14:09:19,991] {podaac_data_subscriber.py:335} DEBUG - Log level set to DEBUG
[2023-03-07 14:09:19,993] {podaac_data_subscriber.py:340} ERROR - Uncaught exception occurred during execution.
Traceback (most recent call last):
File "/home/arofcn/anaconda3/lib/python3.8/site-packages/subscriber/podaac_data_subscriber.py", line 338, in main
run()
File "/home/arofcn/anaconda3/lib/python3.8/site-packages/subscriber/podaac_data_subscriber.py", line 124, in run
pa.setup_earthdata_login_auth(edl)
File "/home/arofcn/anaconda3/lib/python3.8/site-packages/subscriber/podaac_access.py", line 77, in setup_earthdata_login_auth
username, _, password = netrc.netrc().authenticators(endpoint)
File "/home/arofcn/anaconda3/lib/python3.8/netrc.py", line 30, in init
self._parse(file, fp, default_netrc)
File "/home/arofcn/anaconda3/lib/python3.8/netrc.py", line 104, in _parse
raise NetrcParseError(
netrc.NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/home/arofcn/.netrc, line 3)

this helped
chmod u+rw,u-x,go-rwx ~/.netrc
ls -la ~/.netrc

thanks for the info- we can add that to any netrc documentation we have, but it is system specific (linux/unix/mac vs windows).

linux debian 10


Incorrect highlight region in custom popup menus with unicode characters

Thanks for the great feature of custom popup menus. However, I found that in some cases highlight regions are incorrect:

It looks like the unicode (wide) letters like … or • are causing the problem. An easy way to reproduce this is to use clangd as a LSP server.

And fuzzy matching as well:

I have the same issue

I found a solution for this
Steps:
You need to add this code to your cmp.setup

@Johan-Palacios This is not a solution. The context is that we don't use native popup menu but use a custom popup menu (hence the highlight); though you are welcome to use native popup menu if you want. Actually I don't get what you feel is the same issue (or wrong) in your previous screenshot. I do see highlights are consistent in your cases.

ok I think my choice of words is incorrect, I meant that it is an alternative while some adequate solution to the problem is achieved

Still incorrect; looks like we just have an offset error by 1.

For other file types rather than C++ (e.g. python, javascript, etc.), it works well. The clangd LSP adds some unicode characters... :|

Tried f4c33ac; the fuzzy matching part has been resolved, thanks! However the source menu part (e.g. [LSP], [Buffer]) are having issues.

I am not sure whether it's the same problem or whether it would be helpful to solve the problem, just post here, the highlighting regions are not cleared correctly with clangd, see the following pictures.
Input v.clear, the clear string in the floating window is highlighted correctly:

Now, remove the lear, the clear string in the floating window is still highlighted which is not right:

Other LSP servers like pyright clear the highlighting regions flawlessly. The problem only happens with clangd.

Yes. It's known issue( i have plan to fix


Update instructions

Just finished writing updated instructions. The current ones, while technically correct, leave a lot of ambiguity (mainly because of the mess that is metro), so these should be much more clear.
1.  Download [SFP (formerly Steam Friends Patcher)](https://github.com/PhantomGamers/SFP/releases/latest)

2.  Extract the files, run “SFP_UI”, then press the “Patch” button

3.  Download the [original metro for steam](https://github.com/minischetti/metro-for-steam/releases/tag/v4.4), extract to `~/.steam/steam/skins/[name]` (linux) or `c:\Program Files\Steam\skins (windows)`

4.  Download the [latest release of the metro patch](https://github.com/redsigma/UPMetroSkin/tags)

5.  Extract the contents of [Unofficial 4.x patch/Main Files](https://github.com/redsigma/UPMetroSkin/tree/master/Unofficial%204.x%20Patch/Main%20Files%20[Install%20First]) into the folder you put the original metro. Make sure to replace/overwrite, rather than skipping!

6.  Download your selected theme’s folder, located in [themes/](https://github.com/catppuccin/steam/blob/main/themes)

7.  Copy all contents of this folder into the folder with metro

8.  In steam, go to settings->interface, then change skin to the name of your metro folder. If you did this right, steam should prompt you to restart-- press OK, and steam should restart.

9.  Enjoy your new theme!

And here's how it looks:

Download SFP (formerly Steam Friends Patcher)

Extract the files, run “SFP_UI”, then press the “Patch” button

Download the original metro for steam, extract to ~/.steam/steam/skins/[name] (linux) or c:\Program Files\Steam\skins (windows)

Download the latest release of the metro patch

Extract the contents of Unofficial 4.x patch/Main Files into the folder you put the original metro. Make sure to replace/overwrite, rather than skipping!

Download your selected theme’s folder, located in themes/

Copy all contents of this folder into the folder with metro

In steam, go to settings->interface, then change skin to the name of your metro folder. If you did this right, steam should prompt you to restart-- press OK, and steam should restart.

Enjoy your new theme!

Goddamnit I just tested on a friends windows laptop, the instructions don't work bc steam-library has weird extra steps for windows. Here's some updated instructions:
1.  Download [SFP (formerly Steam Friends Patcher)](https://github.com/PhantomGamers/SFP/releases/latest)

2.  Extract the files, run “SFP_UI”, then press the “Patch” button

3.  Download the [original metro for steam](https://github.com/minischetti/metro-for-steam/releases/tag/v4.4), extract to `~/.steam/steam/skins/[name]` (linux) or `c:\Program Files\Steam\skins (windows)`

4.  Download the [latest release of the metro patch](https://github.com/redsigma/UPMetroSkin/tags)

5.  Extract the contents of [Unofficial 4.x patch/Main Files](https://github.com/redsigma/UPMetroSkin/tree/master/Unofficial%204.x%20Patch/Main%20Files%20[Install%20First]) into the folder you put the original metro. Make sure to replace/overwrite, rather than skipping!

6.  Download your selected theme’s folder, located in [themes/](https://github.com/catppuccin/steam/blob/main/themes)

7.  Copy all contents of this folder into the folder with metro

8.  In steam, go to settings->interface, then change skin to the name of your metro folder. If you did this right, steam should prompt you to restart-- press OK, and steam should restart.

9.  Enjoy your new theme!
### NOTE: (steam-library)[https://github.com/AikoMidori/steam-library], which the library styling is based on, has strange steps for windows-- until there is a separate implementation that accounts for this, windows users will only be able to style the header, and some of the panels.


Demo data

Hey guys,
I was looking at your app and wanted to do some try-and-error refactoring and create a PR if I manage to refactor it.
However, It would be awesome if I could run the app using some kind of dummy data, afaik their is a call to addDemoSessions() comment out: https://github.com/ng-be/2016-app-ng-be-org/blob/master/src/services/conference-data.service.ts#L126
However, I do not see any way to uncomment this line as the method does not exist.
Do you have any firebase test account or something I can use to populate my own firebase ?
Ps: I know the readme says to open an issue before creating a PR. But I'm okay with the PR not getting merged if you dislike it or are already working on it . :)
Thanks !

Hi @frederikprijck , please don't use this repo for your prod as it contains some security flaws only recently identified. But ofcourse you're free to play around :) I'll send you the data we used via private mail!
I would recommend checking out the app we made for ngvikings here: https://github.com/samvloeberghs/ng-vikings-2017-workshop.
Thanks for your interest :) :+1:


Error on creating menu, old one disapear after update

After the update, my menu lists disappear from the dashboard:
-also, locales defined in config file also are not on creation form.
-create menu throw error
In console apears an error related to LocaleButton:

Error that i receive when i try to create a new menu.

{message: "The given data was invalid.", errors: {locale: ["validation.in"]}}
errors: {locale: ["validation.in"]}
message: "The given data was invalid."
Can somebody tell me what is wrong
Laravel Nova: 3.0.1
Laravel: 7.1
Regarding replication, we can't tell a lot regarding actions that were before, we work more than one person. hope that I set enough details

I get the same thing :/

@Reached
The menus can be accessed via the locale filter.

@vadimcasap
Can you try updating to the latest Nova and Nova menu builder versions? Nova continuously makes breaking changes to the APIs that I use for packages and I have to re-work stuff constantly, sometimes breaking previous versions.

@Tarpsvo, have the same trouble, nova v3.4.0, nova-menu-builder v2.3.5
index problems can be fixed by overriding filters method:
//custom MenuResource.php
...
    public function filters(Request $request)
    {
        return [
            LocaleFilter::make()->locales(MenuBuilder::getLocales()),
        ];
    }
...

or just
    public function filters(Request $request)
    {
        return [];
    }

if you not using multiple locales.
But on forms, it seems to LocaleField ignores locales method, and locales prop stuck on its default value from nova-locale-field config. You can publish this config file and set locales as needed as a temporary fix.

@vadimcasap
Can you try updating to the latest Nova and Nova menu builder versions? Nova continuously makes breaking changes to the APIs that I use for packages and I have to re-work stuff constantly, sometimes breaking previous versions.

I tested an update of the latest nova and latest menu builder,  the validation problem when creating menu is still there.
T think the solution now is to downgrade to version 2.3.4

@ArroWsGM Thanks! The locale filter was indeed receiving wrong locales.

But on forms, it seems to LocaleField ignores locales method, and locales prop stuck on its default value from nova-locale-field config. You can publish this config file and set locales as needed as a temporary fix.

That was also the case and fixed that as well. Thanks a ton for debugging this! I don't know how I missed these critical issues.

Also released version 2.0.9 of nova-locale-field which should fix the JavaScript error in the original post. Let me know if there's still any issues. Thanks!

Great work @Tarpsvo , and thanks for creating this :)

@Tarpsvo
Thanks, work like a charm

Glad to hear!


Sgemm ppc mma

[x] I have read the contributing guidelines
Self-reported review complexity:

[ ] Low
[ ] Medium
[ ] High

wrong pull request created. so closing this


[WIP] CuPy: Add and use a new GPU array backend with NumPy-compatible interface

This is a large PR aiming at replacing the CUDA array backend from PyCUDA/scikit-cuda to a new one named CuPy. This PR includes the implementation of CuPy and updates on Chainer.
Background: PyCUDA is a great wrapper of CUDA that enables us to write our own kernels and call them from Python. However, its GPUArray has few functionalities and almost every time we have to write our own kernels to write down Function implementations. We want to make it easier to write user-defined Functions runnable on GPU. It requires us to use more powerful GPU-array implementations.
We want to use a GPU array backend with following features:

It should enable us to write a common code running on both CPU and GPU. It should be able to write most Functions in this way.
It should enable us to write our own elementwise kernels for performance.
There exist some GPU-array implementations (e.g. CUDAMat, gnumpy, CUDArray, etc.), though none of them satisfies both requirements.

About CuPy: CuPy implements a subset of NumPy interface.

Within this subset, we can write one code running on NumPy and CuPy. See __init__.py for the list of supported functions (cupy.random is also provided).
It supports PyCUDA-style user-defined elementwise kernels.
Like PyCUDA, CuPy compiles kernels on runtime and caches them to files (including all kernels predefined in CuPy). It may be slow at the first usage, which will be resolved by continuing to use it.

We are aiming at merge this PR by Sep. 2 for the v1.3.0 release. If you want to make a PR with new Functions, we recommend you to implement them based on this branch and merge them for the v1.3.0+. Of course, feature PRs written on the current Chainer can also be merged for v1.2.0.
TODO:

[x] CuPy implementation
[x] Replace PyCUDA/scikit-cuda by CuPy
[x] Pass tests
[x] Run examples on the new implementations
[x] Fix the CUDA-related Chainer documentations
[x] Write CuPy documentation

Do you plan to make CuPy a separate project in the long term?

We currently have no any long term plan yet. I want to include it into chainer project to keep the development speed (managing two projects doubles the maintenance cost). This is a short term plan, though. We may make it a separate project in the future.

Following the internal discussion by the core developer team, we decided to merge this branch now for the next release v1.3.0. If you want to try this out before the official release, see the documentation and start from the updated examples.
Note that we now switched the default documentation shown at http://docs.chainer.org to the stable version instead of the latest master version. In order to read the documentation of CuPy, see http://docs.chainer.org/en/latest until this change is released.
Another note: the new implementation based on CuPy has one (and important) known issue: it might be slower than that based on PyCUDA (e.g. MNIST example), since many index manipulations are done by pure Python codes. Especially, the code which is not GPU intensive might get slower. GPU-intensive code is not affected (e.g. ImageNet example runs as fast as the PyCUDA version). We will raise an issue to resolve this degradation.

Do you have any plans to support something similar to pyCuda's SourceModule in CuPy?

We do not currently support something similar to SourceModule, though you could use cupy.cuda.compile_with_cache as an alternative. It compiles a plain CUDA code to a cupy.cuda.Module object. You might pass a pointer to the array content to the resulting function, though we are not testing such use case yet.
You can also use cupy.carray.compile_with_cache like most CuPy kernels. A cupy.ndarray object can be passed to the resulting kernel, which is converted to a value of type CArray<T, ndim> defined in cupy/carray.cuh. Sorry for that both functions are currently not documented.

Okay.
CuPy seems like a very promising project:)
Btw, it would be cool if you added and "add_dot" function to CuPy, similar to the skcuda.linalg.add_dot (blas gemm routine) function.


ENHANCING THE CONTACT US FORM

### ENHANCING THE CONTACT US FORM
Enhancing the Contact Us Form
A well-designed Contact Us form is essential for effective communication between users and the organization. The current form may lack important features and design elements that promote user engagement and ease of use. Enhancing this form can significantly improve user interaction and increase the likelihood of users reaching out.
### Key Enhancements:
Improved User Experience: By adding clear labels, placeholders, and validation messages, the form will become more user-friendly, ensuring that users can submit their information easily and accurately.
Interactive Features: Integrating real-time feedback, such as input validation for phone numbers, emails, and required fields, will make the form more interactive and reduce submission errors.
Responsive Design: Ensuring that the form is mobile-friendly and responsive across all devices will enhance accessibility for a broader range of users.
Visual Appeal: Updating the design with modern fonts, buttons, and layouts can make the form more visually appealing, encouraging users to engage with it.
Enhanced Functionality: Adding features like drop-down menus, auto-suggestions, and dynamic field adjustments can streamline the form submission process and improve the overall experience.
Enhancing the Contact Us form will create a professional, user-friendly, and engaging interface, fostering better communication between users and the organization.
### issue

As a skilled frontend developer, I am confident in my ability to enhance the Contact Us form by improving its design, interactivity, and functionality. I can implement real-time validation, ensure responsiveness, and make it visually appealing to provide a seamless user experience. Please assign this task to me, and I will ensure the form is upgraded to meet professional standards.

@dnyanesh99borse Thanks for creating the issue in BuddyTrail!!! The issue has been assigned to you.
Before you start working on your PR, please make sure to:

⭐ Star the repository if you haven't already.
Pull the latest changes to avoid any merge conflicts.
Attach before & after screenshots in your PR for clarity.
Include the issue number in your PR description for better tracking.

Contributors will start at Level 1, and their level will increase based on the quality and quantity of their contributions. The more effort and value you bring, the faster you'll progress. Put forth your best effort to unlock new levels and opportunities!
I'm excited to see your contribution as part of GSSOC EXTENDED 2024! 🎉
Don't forget to follow me on GitHub for more updates.
Happy open-source contributing! 🚀


"make test" fails if "make install" is not done

As part of make test, its trying to find codes in /usr/local/lib/sail/codecs but if make test is done before make install then the codecs are not found and the test fails.
SAIL: [D] [context_private.c:781] Initialized in 0 ms.
Error: /build/sail.n/tests/bindings/c++/load_options.cpp:45: assertion failed: codecs.size() > 0U
Error: child killed by signal 6 (Aborted)
/bindings/c++/load-options/copy      [ ERROR ]
SAIL: [D] [context_private.c:58] Allocated new global context mutex
SAIL: [D] [context_private.c:206] Allocated new context 0x55b5f205e6e0
SAIL: [I] [context_private.c:710] Version: 0.9.0
SAIL: [I] [context_private.c:715] Build type: Standalone
SAIL: [I] [context_private.c:721] Static build: no
SAIL: [I] [context_private.c:727] Combine codecs: no
SAIL: [I] [context_private.c:731] Thread-safe: yes
SAIL: [I] [context_private.c:737] SAIL_THIRD_PARTY_CODECS_PATH: enabled
SAIL: [D] [context_private.c:663] SAIL_CODECS_PATH environment variable is not set. Loading codecs from '/usr/local/lib/sail/codecs'
SAIL: [D] [context_private.c:164] SAIL_THIRD_PARTY_CODECS_PATH environment variable is not set. Not loading codecs from it
SAIL: [D] [context_private.c:352] Optional LIB directory '/usr/local/lib/sail/codecs/lib' doesn't exist, so not updating LD_LIBRARY_PATH with it
SAIL: [D] [context_private.c:462] Enumerating codecs in '/usr/local/lib/sail/codecs'
SAIL: [E] [context_private.c:518] Failed to list files in '/usr/local/lib/sail/codecs': No such file or directory
SAIL: [E] [context_private.c:705]

*** No codecs were found. You could try the following:                       ***
*** - Inspect the error messages printed in stderr.                          ***
*** - Check the installation directory.                                      ***

Steps to reproduce:

cmake -DSAIL_BUILD_APPS=OFF -DSAIL_BUILD_EXAMPLES=OFF
make
make test

Hi!
Thank you so much for the packaging efforts!
This is expected. Many SAIL tests load codecs from the expected
installation path in /use/local/lib/sail/ so it's required to install SAIL
before running tests.
If you're compiling and running tests locally without using pbuilder, you
can always uninstall SAIL afterwards with
sudo xargs rm -v < install_manifest.txt
чт, 14 дек. 2023 г., 00:39 sudipm-mukherjee @.***>:

As part of make test, its trying to find codes in
/usr/local/lib/sail/codecs but if make test is done before make install
then the codecs are not found and the test fails.
SAIL: [D] [context_private.c:781] Initialized in 0 ms.
Error: /build/sail.n/tests/bindings/c++/load_options.cpp:45: assertion failed: codecs.size() > 0U
Error: child killed by signal 6 (Aborted)
/bindings/c++/load-options/copy      [ ERROR ]
SAIL: [D] [context_private.c:58] Allocated new global context mutex
SAIL: [D] [context_private.c:206] Allocated new context 0x55b5f205e6e0
SAIL: [I] [context_private.c:710] Version: 0.9.0
SAIL: [I] [context_private.c:715] Build type: Standalone
SAIL: [I] [context_private.c:721] Static build: no
SAIL: [I] [context_private.c:727] Combine codecs: no
SAIL: [I] [context_private.c:731] Thread-safe: yes
SAIL: [I] [context_private.c:737] SAIL_THIRD_PARTY_CODECS_PATH: enabled
SAIL: [D] [context_private.c:663] SAIL_CODECS_PATH environment variable is not set. Loading codecs from '/usr/local/lib/sail/codecs'
SAIL: [D] [context_private.c:164] SAIL_THIRD_PARTY_CODECS_PATH environment variable is not set. Not loading codecs from it
SAIL: [D] [context_private.c:352] Optional LIB directory '/usr/local/lib/sail/codecs/lib' doesn't exist, so not updating LD_LIBRARY_PATH with it
SAIL: [D] [context_private.c:462] Enumerating codecs in '/usr/local/lib/sail/codecs'
SAIL: [E] [context_private.c:518] Failed to list files in '/usr/local/lib/sail/codecs': No such file or directory
SAIL: [E] [context_private.c:705]
*** No codecs were found. You could try the following:                       ***
*** - Inspect the error messages printed in stderr.                          ***
*** - Check the installation directory.                                      ***
Steps to reproduce:

cmake -DSAIL_BUILD_APPS=OFF -DSAIL_BUILD_EXAMPLES=OFF
make
make test

—
Reply to this email directly, view it on GitHub
https://github.com/HappySeaFox/sail/issues/204, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABGDS3RMR727D5YSHJ6OWL3YJIN7TAVCNFSM6AAAAABAT25TNWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2DANJQG4ZDAOA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Few points:

That is not how the Debian or Ubuntu official builds works. Official builds will use sbuild to build. sbuild will never install the built package and will run make test immediately after building it.
/usr/local/lib will never be the installation path for an offical Debian package.  FSF says:  The /usr/local hierarchy is for use by the system administrator when installing software locally.

Anyways, I have now disabled running make test, so this is not a blocker at the moment. But it will be good to have it fixed so that make test can be run as part of the build.
Also, fyi (not related to this issue) - I have excluded the debian folder while importing the source and have almost rewritten it. Only taken the library names and part of description.

For (2) the path is not hardcoded and is configurable with CMAKE_INSTALL_PREFIX, so it's totally possible to install into /usr/lib which is done by default in sbuild I guess.

For (2) the path is not hardcoded and is configurable with CMAKE_INSTALL_PREFIX, so it's totally possible to install into /usr/lib which is done by default in sbuild I guess.

For (1) as a workaround it's possible to combine codecs into a single library with -DSAIL_COMBINE_CODECS=ON. This way I guess the tests can be executed without installation. However I would prefer having separate codecs for engineering purposes. It's faster to load or unload them when they're separate. When they're combined, we lose some control over them.


Add support for ['escape' => false] for Flash element

Currently all flash templates always escape there content with h(). It would be nice if this could be turned off using ['escape' => false] as in the official templates.

Sorry for the delay.
The standard FlashHelper has been modified recently and I can't find the new template but according to the documentation the standard behavior is to not escape anything (without the possibility to ['escape' => true]).
I will try to update the BootstrapFlashHelper as soon as I can.

The default templates are part of the app template. The templates escape the message, that's probably why the helper won't do it.

Again, sorry for the delay... I just pushed a new version with "correct" behaviour - fa2a71accffdb763d70a8dfbaa8e6ba6e6b03673.
I wanted to do something a bit more generic but I ended up simply adding the if () { ... } block inside the elements since the CakePHP official doc is kind of disturbing... The Flash Component documentation says:

By default, CakePHP escapes the content in flash messages for security reasons. If you are using any request or user data in your flash messages those are escaped and therefore safe to be printed. If you want to output HTML, you need to pass in an escape param and also adjust the templates to allow disabling escaping when such a param is passed.

While the Flash Helper documentation says:

By default, CakePHP does not escape the HTML in flash messages. If you are using any request or user data in your flash messages, you should escape it with h when formatting your messages.

I yet have to try with the latest CakePHP version but on my version, the only escaping done are in the .ctp, meaning that custom flash elements are not escaped by default... This is kind of strange for me, maybe you can give a feedback on this part of the doc before I raise an "issue" on the CakePHP repository?

Thanks for the new version 👍
I just checked the source of the FlashComponent, and there is absolutely no escaping. That section of the doc seems wrong. I'm fine with posting an issue. Unfortunately the docs are often confusing/misleading 😦


Jupyter lite GitHub page

Description
Please include a summary of changes, motivation and context for this PR.
This PR adds a workflow which will build a Jupyter Lite site, which should become available as a Github page.
Fixes # (issue)
Type of change
Please tick all options which are relevant.

[ ] Bug fix
[x] New feature
[ ] Added/removed dependencies
[x] Required documentation updates

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.05%. Comparing base (edd830f) to head (ea78818).

Additional details and impacted files

@@           Coverage Diff           @@
##             main     #145   +/-   ##
=======================================
  Coverage   82.05%   82.05%
=======================================
  Files          17       17
  Lines         613      613
  Branches       59       59
=======================================
  Hits          503      503
  Misses        110      110

@anutosh491 @vgvassilev After this PR has been merged the Github page should in theory become available. I've checked the build stage of the workflow. Won't know if anymore settings need to be changed for deployment until merged.


CMake Error: The source directory "/home" does not appear to contain CMakeLists.txt

I don't know what is the problem, with the same cmake command, I got an error.
user@volta92:~$ cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON -DGMX_GPU=CUDA -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-11.6 -DCMAKE_INSTALL_PREFIX=/home/user/gromacs_cuda11_6
CMake Error: The source directory "/home" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

to use -DCMAKE_INSTALL_PREFIX flag, you can always create the folder first.
query where you are know
pwd

and let say, you're in /home/fawwaz/gromacs-2022/build-gpu , and let's decide that we can gromacs binary is to be installed in gromacs folder /home/fawwaz/gromacs-2022/, thus set the flag as:
-DCMAKE_INSTALL_PREFIX=/home/fawwaz/gromacs-2022/gromacs_gpu_compiled

note: before compile, always clean (or remove) build folder:

cmake --build build  --target clean -v


[Type] using onSettled or onSuccess messes with the type inference

Describe the bug
Using onSuccess or onSettled messes with the inference and data becomes unknown.
I don't know if this is an issue with TS or with react-query but I think TS tries to infer response's type from the fetcher AND from the config object at the same time. And as it fails, it falls back to unknown.
To Reproduce
I made a code sandbox with this issue:
https://codesandbox.io/s/react-query-error-jvseh?file=/src/App.tsx
Expected behavior
response's type in both onSuccess and onSettled should be auto-inferred
Screenshots

Additional informations:

react-query: 2.4.14
typescript: 3.9.3 (I also tried on 3.9.6 and it was the same thing)

I had the same problem. As a workaround you can use the object syntax:
const {data} = useQuery({
        queryKey: ["key1", "key2"],
        queryFn: foo,
        config: {
            onSuccess: (response) => console.log(response),
        }
    })

Same issue :)

As a workaround you could also either pass the type arguments to useQuery (TResult and TKey):
const { data } = useQuery<string, ["key1", "key2"]>(["key1", "key2"], foo, {
    onSuccess: response => console.log(response),
});

or add the parameters type to onSuccess/onSettled (TResult):
const { data } = useQuery(["key1", "key2"], foo, {
    onSuccess: (response: string) => console.log(response),
});

I fixed the issue by changing the type definitions from:
export type UseQueryRest<TResult, TKey extends AnyQueryKey, TError> =
  | []
  | [QueryFunction<TResult, TKey>]
  | [QueryFunction<TResult, TKey>, QueryOptions<TResult, TError>]
  | [QueryOptions<TResult, TError>]

export function useQuery<TResult, TKey extends AnyQueryKey, TError = Error>(
  queryKey: TKey | false | null | undefined,
  ...rest: UseQueryRest<TResult, TKey, TError>
): QueryResult<TResult, TError>

export function useQuery<TResult, TKey extends string, TError = Error>(
  queryKey: TKey | false | null | undefined,
  ...rest: UseQueryRest<TResult, [TKey], TError>
): QueryResult<TResult, TError>

to:
export function useQuery<TResult, TKey extends AnyQueryKey, TError = Error>(
  queryKey: TKey | false | null | undefined,
  queryFn?: QueryFunction<TResult, TKey>,
  queryOptions?: QueryOptions<TResult, TError>
): QueryResult<TResult, TError>

export function useQuery<TResult, TKey extends string, TError = Error>(
  queryKey: TKey | false | null | undefined,
  queryFn?: QueryFunction<TResult, [TKey]>,
  queryOptions?: QueryOptions<TResult, TError>
): QueryResult<TResult, TError>

UseQueryRest is not needed.
@tannerlinsley I'll be happy to open PR if you agree.

Is this still a valid problem now #767 is merged? 🤔

If I change the react-query version in the sandbox to 2.5.7-tsnext.1 then it seems to resolve the issue

I'm still seeing this bug in 2.5.11

This is fixed in the new types (2.5.7.-tsnext.1). Soon to be released and set as the default types!

Sorry I don't understand, there have been several releases since 2.5.7 and they don't seem to include these typings?


Support identification of additional linux distributions

Should be able to:

determine the distro version
distinguish the distros from https://hub.docker.com/search?source=verified&type=image&category=os (note: many already have their own tickets, the extras are listed here):

ros
cirros
photon
clearlinux
mageia
sourcemage
clefos
deepinOS

This is a placeholder issue, it would be a good idea to break of individual items into separate issues as they are picked up.

I'm considering contributing some PhotonOS support for syft... not sure if anything else in here would make more sense for containerized env's.


unraid docker GPU not working.

Hello,
I can't seem to get the GPU to be working in a docker for Unraid. Like the information said I have added the "--gpus all" in “Extra arguments”, but when I give it a try it will just use the CPU and not GPU.

Try adding"--runtime nvidia" to extra parameters as well.
And a Container Variable with the followings:
Key: NVIDIA_VISIBLE_DEVICES
Value: all

I have the same issue with Unraid’s Docker. When I enter the nvidia-smi command in the Docker terminal, it can correctly identify the GPU, but Whisper still uses the CPU to work. I tried adding “–runtime nvidia” to the extra parameters and a Container Variable with Key: NVIDIA_VISIBLE_DEVICES and Value: all, but it still doesn’t work with the GPU.

I solved the issued by downloading the docker GPU version.
onerahmet/openai-whisper-asr-webservice:latest-gpu

On Unraid 6.12.2 after the docker is created you can go in and modify it. In the top right there is a toggle for advanced options and I just removed the --gpus all option and let it run on CPU only and it worked fine. Documentation on the Unraid side was pretty vague on how to do this from what I was able to gather.


Is grouping too much?

The question has been slightly discussed in #1, but better having an issue for this.
Right now, we do something like this:
getSome() // produce an uni
   .onNoResult().after(ofHours(1)).fail()
   .onResult().mapToResult(i -> i*2)
   .onFailure().recoverWith(42)

Should we consider removing the grouping to be like:
getSome() // produce an uni
   .onTimeout(ofHours(1)).fail()
   .onResultMap(i -> i*2)
   .onFailureRecoverWith(42)

The second approach has the advantage to use a single class, which could make a bit easier than with the current chaining. Most of the method will start with onX, where X is the type of events triggering the behavior.  It would also slightly reduce object creation (at assembly time).
So, to be discussed....

@cescoffier I have read the discussion in issue #1
I'm a very beginner user of Reactive API to be honest and I haven't a very strong opinion.
That said, I think I prefer a less fluent API, so the 2nd choice.

I was chatting about this to @cescoffier and I mentioned I felt the former was more flexible, but the latter easier to read.
If there was a way to offer both, that would allow both use cases.

@FroMage, @vietj, and @ebernard had a chat yesterday.
Basically,  there are a few alternatives:

Flat structure like RX and Reactor:

- too many methods, IDE completion not useful (we are talking about 400 methods with many overrides)
- not really usable by non-reactive / functional developer
+ like RX

Adding options, like:

uni.onTimeout(new TimeoutOptions().of(ofHours(1)).fail())
multi.onResult().flatMap(mapper, new FlatMapOptions().withConcurrency(2))

* `-` IDE does not guide you for the options
* `-` duplicate all methods for the one with sensible defaults
* `+` avoid most of the subgroups
* `-` does not fix overloading like: `flatMap` vs. `flatMapUni` vs. `flatMapIterable`

Flatten group as follows:

`onResultApply(Function<I, O>)` // map
`onResultMerge(Function<I, Multi<O>>)` // flatMap
`onResultConcat(Function<I, Multi<O>>)` // concatMap
`onResultMergeIterable(Function<I, Iterable<O>>)` // flatMap iterable
`onResultCompose(Function<I, Uni<O>>` // flatMapUni

* `-` Different wording
* `-` Lots of method on Uni/Multi
* `-` Missing fine-tuning (concurrency, scheduler...) as we would need to avoid overload

I've got one more thing to add to this topic, which I was finally able to put into words after quite some time of feeling "there's something wrong but I'm not sure what exactly":
This looks like a fluent API, but isn't.
It might sound obviously wrong, but the thing is: this is not a fluent API; it is two fluent APIs mixed into one. On one level, we have a fluent API for building the data pipeline. On the other level, we have a fluent API for configuring each stage of the pipeline.
(In addition, all the .onEvent().doSomething() looks more like an event dispatcher instead of a pipeline. Yet it's still a pipeline. Not a fan.)

For common, well-established method I would provide first-level methods. This is already done for the map and flatMap. Writing onItem zillion times makes code less readable because almost every line starts with onItem() and then you must look for the real operation.
I would also shorten .transform().byFilteringItemsWith() to .filter().
For the less used things, I like the 2nd level. It keeps the first level clean.

@zeljkot @jponge just added filter: https://github.com/smallrye/smallrye-mutiny/pull/157

Closing - out of date.

Closing - out of date.


Floating Finder when Time Machine is open

###Floating Finder window while Time Machine is open
I was wondering if there is any way to do this
chunkc tiling::rule --owner Time Machine --state float
Helps witht the glitchy buttons, although chunkwm keeps trying to resize the Finder window while in Time machine

I usually just shut down chunkwm when using TM. This is not a real solution, hence I am very interested in alternative approaches

The best solution I have is to just keep a desktop around in float mode that you switch to when using applications that don't cooperate well.

I mean i have a floating window for Finder Copy using “—owner Finder —name
Copy”. I just don’t know what time machine runs as. I assume nobody else
has figured that out either. I don’t remember how I got the Copy one
exactly.
On Tue, Oct 23, 2018 at 3:08 AM Åsmund Vikane<EMAIL_ADDRESS>wrote:

The best solution I have is to just keep a desktop around in float mode
that you switch to when using applications that don't cooperate well.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/koekeishiya/chunkwm/issues/512#issuecomment-432121664,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAl_tPvKap9zUvLYxHIODzkmp4c4Az_Hks5unsBagaJpZM4W1cla
.

--
Regards,
Jarrett Lusso

Open the Time Machine window and open a terminal on the same desktop, Run the folllowing command:
chunkc tiling::query --desktop windows and then run the command chunkc tiling::query --window id where id is the if given by the first command.
This will tell you some information about the window that you can use to create rules.
As you can probably tell already, there is a huge lack of consistency in the macOS Application ecosystem..

Open the Time Machine window and open a terminal on the same desktop, Run the folllowing command:
chunkc tiling::query --desktop windows and then run the command chunkc tiling::query --window id where id is the id given by the first command.
This will tell you some information about the window that you can use to create rules.
As you can probably tell already, there is a huge lack of consistency in the macOS Application ecosystem..

Not sure how you do this because when I open Time Machine it takes over my whole screen and the only way I can get it gone is to close it...

Open terminal window in same space and run something like:
sleep 5 && chunkc tiling::query --desktop windows | sed 's/[ \t]*\([0-9]\{1,\}\).*/\1/' | while read id; do
    chunkc tiling::query --window $id
done

the sleep is there so you can launch Time Machine. I just tested and I don't think you'l be able to create useful rules, since the only differing property is the level.


[Poll] Raw request body option name

In order to tackle #534, we would like to ask for the community assistance to find the most approprite option name :)
In short, we are implementing a way to specify the raw request body. Example:
$ http --new-option 'My name is John' --offline pie.dev/post
POST /post HTTP/1.1
Accept: application/json, */*;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 15
Content-Type: application/json
Host: pie.dev
User-Agent: HTTPie/2.5.0-dev

My name is John

I will add a comment per suggestion and you will only have to :+1: or :-1: to let us know your preference.
If you have suggestions, feel free to comment too.
Here is the list of already used names:

body, -b
-c
-d
-p, -P

If it's a raw request body, what do you think about --raw?

Then --raw is will be!
Thanks everyone for your participation :)


Support SE-0129

swift build failed with two reasons, and fixed.

https://github.com/apple/swift-evolution/blob/master/proposals/0129-package-manager-test-naming-conventions.md
error: 'init' has been renamed to 'init(describing:)'

Confirmed, fixed locally.  Thank you so much @mono0926.


don't require all ruby parsers when loading unparser

On my system, loading unparser in a rails app takes about 16 MiB at boot
  unparser: 16.5391 MiB
    parser/all: 15.418 MiB
      parser/ruby18: 4.4492 MiB
      parser/ruby19: 4.1523 MiB
      parser/ruby20: 3.0742 MiB
      parser/ruby22: 1.5313 MiB
      parser/ruby23: 1.1055 MiB (Also required by: parser/current)
      parser/ruby21: 0.5547 MiB
      parser/ruby24: 0.5469 MiB
    concord: 0.9219 MiB
      adamantium: 0.8398 MiB
        ice_nine: 0.3945 MiB

If we drop parser/all, we also drop 10 MiB at boot. 🎉
  unparser: 6.5898 MiB
    parser/current: 4.625 MiB
      parser/ruby23: 4.6094 MiB
    concord: 0.668 MiB
      adamantium: 0.6602 MiB
        ice_nine: 0.4102 MiB

Since we only use parser current, in the tests how do we feel not loading the other parsers?

@HParker I think we'll also have to adjust the specs to not unparse / parse ruby for other than current ruby. Conceptually fine with me. Sadly I've no time for OSS recently, so I cannot promise at all when / if this will happen.

@mbj No worries about timing. I would like to get this merged eventually, but it doesn't have to be quick.
If you do find some time though, I could use some help figuring out why tests pass for my locally, but fail on CI.

Ah! I think I got it!

@HParker Nice, can you squash this?

all squashed.

Thanks!


Stack cannot find ghc when building 8.0 example

I am trying to run the example servant-api app for 8.0 image and keep getting the following error:
docker build .
Sending build context to Docker daemon 15.36 kB
Step 1/5 : FROM haskell:8
8: Pulling from library/haskell
...
No compiler found, expected minor version match with ghc-8.0.1 (x86_64) (based on resolver setting in /opt/servant-api/stack.yaml).
To install the correct GHC into /root/.stack/programs/x86_64-linux/, try running "stack setup" or use the "--install-ghc" flag. To use your system GHC installation, run "stack config set system-ghc --global true", or use the "--system-ghc" flag.

Am I doing something wrong?

Looks like docker inc rebuilt the haskell images about 2 weeks ago and when they did that stack updated. It looks like stack changed something breaking between these versions. I'll have to look into the fix later.
> docker images | ack haskell
haskell                               8                   3fc5a5260db0        13 days ago         994 MB
haskell                               <none>              5f974c5f08c2        2 months ago        991 MB

@ChristopherBiscardi great, thanks! I'm having the problem too.

@ChristopherBiscardi
From stack's 1.3.0 changelog:

Stack will now always use its own GHC installation, even when a suitable GHC installation is available on the PATH. To get the old behaviour, use the --system-ghc flag or run stack config set system-ghc --global true.

So, RUN stack config set system-ghc --global true will fix the problem, but maybe specifying stack version explicitly would also be a good idea.


Provide a way to donate to the project

There's no "Donate" button. This project has saved me so much time (and money) that I'm willing to give back some.

@powdahound I propose to set up donations on Patreon to help cover your hosting costs which are apparently growing over time.

Thanks — I really appreciate the sentiment and will leave this issue open to gauge interest.  But I'm hesitant to take direct donations now as I'm having difficulty finding time to put into this project and most work is being done by others via PR. The hosting costs will return to being totally reasonable once #411 is resolved.

I am closing this primarily because Vantage is now fronting the bill for hosting costs as part of the announcement here: https://www.vantage.sh/blog/vantage-has-acquired-ec2instances-info
We will still get to #411 though!