text:
String parameter cannot be passed to torchvision.ops.deform_conv2d

🐛 Describe the bug
Bug Explanation
The current implementation of torchvision.ops.deform_conv2d implicitly assumes that padding is passed as a tuple or an integer, this means that if the padding is passed as either "same" or "valid" then torchvision is going to parse it as padding = ("same").
Sample Code
import torch

X = torch.randn((1,3,5,5))
torchvision.ops.deform_conv2d(
            X,
            torch.randn([1, 2 * 1 * 3 * 3, 3, 3]), #offset
            torch.randn([1, 3, 3, 3]),
            torch.randn([1]),
            stride=1,
            padding="zero",
            dilation=1,
            mask=None,
        )

Stacktrace
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
d:\Documents\Python Scripts\test.ipynb Cell 13 in <cell line: 2>()
      [1](vscode-notebook-cell:/d%3A/Documents/Python%20Scripts/test.ipynb#X14sZmlsZQ%3D%3D?line=0) X = torch.randn((1,3,5,5))
----> [2](vscode-notebook-cell:/d%3A/Documents/Python%20Scripts/test.ipynb#X14sZmlsZQ%3D%3D?line=1) torchvision.ops.deform_conv2d(
      [3](vscode-notebook-cell:/d%3A/Documents/Python%20Scripts/test.ipynb#X14sZmlsZQ%3D%3D?line=2)             X,
      [4](vscode-notebook-cell:/d%3A/Documents/Python%20Scripts/test.ipynb#X14sZmlsZQ%3D%3D?line=3)             torch.randn([1, 2 * 1 * 3 * 3, 3, 3]), #offset
      [5](vscode-notebook-cell:/d%3A/Documents/Python%20Scripts/test.ipynb#X14sZmlsZQ%3D%3D?line=4)             torch.randn([1, 3, 3, 3]),
      [6](vscode-notebook-cell:/d%3A/Documents/Python%20Scripts/test.ipynb#X14sZmlsZQ%3D%3D?line=5)             torch.randn([1]),
      [7](vscode-notebook-cell:/d%3A/Documents/Python%20Scripts/test.ipynb#X14sZmlsZQ%3D%3D?line=6)             stride=1,
      [8](vscode-notebook-cell:/d%3A/Documents/Python%20Scripts/test.ipynb#X14sZmlsZQ%3D%3D?line=7)             padding="zero",
      [9](vscode-notebook-cell:/d%3A/Documents/Python%20Scripts/test.ipynb#X14sZmlsZQ%3D%3D?line=8)             dilation=1,
     [10](vscode-notebook-cell:/d%3A/Documents/Python%20Scripts/test.ipynb#X14sZmlsZQ%3D%3D?line=9)             mask=None,
     [11](vscode-notebook-cell:/d%3A/Documents/Python%20Scripts/test.ipynb#X14sZmlsZQ%3D%3D?line=10)         )

File d:\Installations\Anaconda\lib\site-packages\torchvision\ops\deform_conv.py:77, in deform_conv2d(input, offset, weight, bias, stride, padding, dilation, mask)
     74     bias = torch.zeros(out_channels, device=input.device, dtype=input.dtype)
     76 stride_h, stride_w = _pair(stride)
---> 77 pad_h, pad_w = _pair(padding)
     78 dil_h, dil_w = _pair(dilation)
     79 weights_h, weights_w = weight.shape[-2:]

ValueError: too many values to unpack (expected 2)

Versions
Collecting environment information...
PyTorch version: 1.12.1
Is debug build: False
CUDA used to build PyTorch: 11.3
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 10 Home
GCC version: (x86_64-posix-seh, Built by strawberryperl.com project) 8.3.0
Clang version: Could not collect
CMake version: version 3.24.0-rc1
Libc version: N/A

Python version: 3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.19041-SP0
Is CUDA available: True
CUDA runtime version: 11.5.50
GPU models and configuration: GPU 0: NVIDIA GeForce GTX 1650
Nvidia driver version: 512.15
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] mypy-extensions==0.4.3
[pip3] numpy==1.23.1
[pip3] numpydoc==1.4.0
[pip3] torch==1.12.1
[pip3] torch-tb-profiler==0.4.0
[pip3] torchaudio==0.12.1
[pip3] torchvision==0.13.1
[conda] blas                      1.0                         mkl
[conda] cudatoolkit               11.3.1               h59b6b97_2
[conda] mkl                       2021.4.0           haa95532_640
[conda] mkl-service               2.4.0            py38h2bbff1b_0
[conda] mkl_fft                   1.3.1            py38h277e83a_0
[conda] mkl_random                1.2.2            py38hf11a4ad_0
[conda] numpy                     1.23.1           py38h7a0a035_0
[conda] numpy-base                1.23.1           py38hca35cd5_0
[conda] numpydoc                  1.4.0            py38haa95532_0
[conda] pytorch                   1.12.1          py3.8_cuda11.3_cudnn8_0    pytorch
[conda] pytorch-mutex             1.0                        cuda    pytorch
[conda] torch                     1.12.1                   pypi_0    pypi
[conda] torch-tb-profiler         0.4.0                    pypi_0    pypi
[conda] torchaudio                0.12.1               py38_cu113    pytorch
[conda] torchvision               0.13.1               py38_cu113    pytorch

Hi @dario-loi, thanks for raising this.
I don't want to argue semantics but TorchVision quite explicitly declares that expected inputs for paddings is either an integer or a Tuple of ints:
https://github.com/pytorch/vision/blob/93c85bbcc31f8d5a052daf06f2f91f39697af1a4/torchvision/ops/deform_conv.py#L14-L23
Currently it doesn't support strings ({'same', 'valid'}). Perhaps that's a worth expansion and possibly we would have to follow the same approach as _ConvNd from PyTorch Core. It's not within our plans to do this now but if you are interested in sending a PR, we can certainly review it.

Thank you for the response,
I've began working on a possible PR, however, after dissecting the code it seems that there is no possibility, from the python library all the way down to the CUDA kernel, to have a padding with an uneven number of pixels, for example: left_pad = 1, right_pad = 2.
Would the implementation of this enhancement require the rewriting of both CPU & CUDA kernels to take into account this padding in the same way that _ConvND does?
Can we get away with a call to F.pad() as the implementation of _ConvND seems to be suggesting?
I'm asking you this since I've seen that you're the one responsible for the implementation of the kernels and therefore you would have knowledge regarding the performance impact of complicating the padding in C++ vs calling F.pad() on Python.

@dario-loi This is a great question. Unfortunately I don't know the answer and we would probably need to dig deep on how the specific kernel is designed. I will need to find the bandwidth for such a thing as I'm a bit swamped at the moment. So if you continue work on this feature, keep in mind I might not be able to review or merge it.

I'm asking you this since I've seen that you're the one responsible for the implementation of the kernels and therefore you would have knowledge regarding

Unfortunately this is not true. We did a major refactoring of the C++ codebase at one point, to ensure that there is proper encapsulation and that we follow the latest practices from Dispatcher. Though I tried to rewrite as little parts as possible during the refactoring, unfortunately Github was unable to understand this on the diff and thus when you git blame you see me as the Uber author of all kernels. That's far from truth.

authors: dario-loi datumbox


text:
Change pad value to int

Solve the problem of (#5913)
@datumbox

@rvandeghen I don't believe this needs fixing. The original issue with PIL and floats has been already addressed on the latest main branch with #5596.
I suspect you are facing issues because you are using reference scripts from main (v0.13.0-dev) using v0.12.0 which doesn't contain the above patch. Could you try the latest nightly and confirm?

@datumbox Yes my bad.
I will close the PR.
However, I am always building on the reference script for detection for my own research so I always try to improve the whole pipeline.
Is it something that could interest you ?

@rvandeghen This specific issue was addressed with the other PR by making pad for PIL work with float values. So converting the scripts to use ints is no longer needed on the latest version. Nevertheless, we are happy to receive other improvements if you spot further issues. Feel free to open a new issue and let's chat there. :)

source: gharchive/pull-request

authors: datumbox rvandeghen

repo: pytorch/vision

license_type: permissive

license_source: github-api


text:
add a function for multi-scale feature extraction of swin models

It is related to #6886.

Hello, @datumbox
Oh I am sorry, I didn't know this fuction. I will try to use this function. Thanks

@developer0hye You can still extract features based on their number order. See the code example on the previous reference tutorial, where we grab the output from layer1.2.relu_2. As you can see, non-named attributes can be extracted.


text:
polygon rendering bug with Geostationary projection

I have found a mysterious bug that only appears with Geostationary projections.
import holoviews as hv
import geoviews as gv
import geoviews.feature as gf
from cartopy import ccrs
hv.notebook_extension()

# create two polygons

# this one works fine
good_tri = np.array(
 [[161.10399999999998, -50.62000000000003],
 [156.569, -52.84800000000001],
 [158.563, -48.80600000000001]]
)

# this one renders strangely ... what could the difference be?
bad_tri = np.array(
 [[150.388, -63.71100000000001],
 [143.041, -63.62899999999999],
 [179.209, -65.34300000000002]])

# turn these into geoviews shapes
extents = (-180, -90, 180, 90)
bad_tri_shape = gv.Shape(shapely.geometry.Polygon(bad_tri), extents=extents)
good_tri_shape = gv.Shape(shapely.geometry.Polygon(good_tri), extents=extents)

# define a projection: Orthographic works
projection = ccrs.Orthographic(central_longitude=180)

# <--- new cell --->
%%opts Feature (facecolor='0.9' edgecolor='0.2')  [projection=projection]
%%opts Shape (facecolor='red') [projection=projection]
gf.land() * bad_tri_shape * good_tri_shape

# now use Geostationary
projection = ccrs.Geostationary(central_longitude=180)

# <--- new cell --->
%%opts Feature (facecolor='0.9' edgecolor='0.2')  [projection=projection]
%%opts Shape (facecolor='red') [projection=projection]
gf.land() * bad_tri_shape * good_tri_shape

The output of Orthographic is this:
(The polygons are small but visible in the lower left part of the globe.)

The output of Geostationary is this:

The bad_tri_shape is somehow covering the whole globe.

This seems related to https://github.com/pyviz/geoviews/issues/214, in that case tiny slivers are blowing up to cover the whole globe. Something similar seems to be happening here but the sliver in this case is much bigger than in that example.

In fact it seems to invert the polygon, the sliver becomes the interior of a huge polygon covering the globe.

Maybe it's not a slight gap in the original data, but a slight overlap.

source: gharchive/issue

authors: jbednar philippjfr rabernat

repo: pyviz/geoviews


text:
Add possibility to set custom vtkjs serializer

In reference to https://github.com/pyviz/panel/issues/408
I separate the vtkjs serialization implementation from the pane implementation
I add a method set_serializer which register a custom serializer.
I add a try catch to wait for vtki serializer implementation. If it fails (and it fails for the moment). I register the actual serializer
a serializer expect a vtk render window as input and the vtkjs file binary stream output
I factorized the base64 encoding to send the stream to vtkjs
the _vtk_serializer.py should not be in pane package but I don't know where to put it

the _vtk_serializer.py should not be in pane package but I don't know where to put it

I'd be fine making a vtk sub-package in pane where this could go.
What's the status of this PR otherwise?

@xavArtley Any updates on this? I know you were/are on vacation but is there any chance this could get into a release due this weekend?

I have a day off tomorrow I'll worked on it
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Garanti
sans virus. www.avast.com
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Le jeu. 30 mai 2019 à 11:38, Philipp Rudiger notifications@github.com a
écrit :

@xavArtley https://github.com/xavArtley Any updates on this? I know you
were/are on vacation but is there any chance this could get into a release
due this weekend?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pyviz/panel/pull/409?email_source=notifications&email_token=AENMGSY3DYYOU7EETV2UKQTPX6ODDA5CNFSM4HKSMR22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWR33QQ#issuecomment-497270210,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AENMGSZ4XXENDIRNJP2JOOLPX6ODDANCNFSM4HKSMR2Q
.

I should work as before but with possibility to change the serializer

Thanks for the updates, made some small review comments, but otherwise this is ready to merge.

Looks good to me, will merge if it passes this time.

Thanks for doing this @xavArtley, hugely appreciated!

authors: philippjfr xavArtley

repo: pyviz/panel


text:
🛑 nitter.1d4.us is down

In d2be587, nitter.1d4.us (https://nitter.1d4.us) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nitter.1d4.us is back up in 07e9434 after 10 minutes.

license: MIT


text:
🛑 nitter.projectsegfau.lt is down

In 4578cb5, nitter.projectsegfau.lt (https://nitter.projectsegfau.lt) was down:

HTTP code: 503
Response time: 330 ms

Resolved: nitter.projectsegfau.lt is back up in 5014e32 after 14 minutes.


text:
🛑 nitter.us.projectsegfau.lt is down

In 6dd31b2, nitter.us.projectsegfau.lt (https://nitter.us.projectsegfau.lt) was down:

HTTP code: 503
Response time: 214 ms

Resolved: nitter.us.projectsegfau.lt is back up in 622c0c4 after 21 minutes.


text:
🛑 nitter.poast.org is down

In c2fda69, nitter.poast.org (https://nitter.poast.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nitter.poast.org is back up in 2dc639d after 5 minutes.


text:
🛑 nitter.tiekoetter.com is down

In 1fab7e1, nitter.tiekoetter.com (https://nitter.tiekoetter.com) was down:

HTTP code: 502
Response time: 577 ms

Resolved: nitter.tiekoetter.com is back up in e841f0b after 48 minutes.


text:
🛑 nitter.net is down

In eebecec, nitter.net (https://nitter.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nitter.net is back up in 483d9ac.


text:
🛑 nitter.privacytools.io is down

In 54586cc, nitter.privacytools.io (https://nitter.privacytools.io) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nitter.privacytools.io is back up in 1549758 after 10 minutes.


text:
🛑 nitter.projectsegfau.lt is down

In 75327cc, nitter.projectsegfau.lt (https://nitter.projectsegfau.lt) was down:

HTTP code: 503
Response time: 474 ms

Resolved: nitter.projectsegfau.lt is back up in f976ba8 after 2 hours, 27 minutes.


text:
Add possibility to attach closed issues from TestRail as Known Issue without reopen them

If we have stable TestRail integration, Zafira check bugs status.
Here we have only open bugs available (even with some duplicates):

It will be good to have closed bugs assigned to this tests (with green background) for selection as well. May be in separate extendable div.
Will be useful if bug was already closed on Master branch, but still available in some feature branch.

Looks like this ticket is dedicated to Jira integration, this logic was globally refactored in the latest releases.

authors: hursevich maksimsarychau

repo: qaprosoft/zafira


text:
Fix: Alphabetical Sorting

It is common convention that special character are listed first.

Fixed in fb26d241aa32f81da91c07e7196087c7c1854d64
I used Notepad++ to sort, so I thought everything was gonna be okay.

authors: TheDuriel qarmin

repo: qarmin/Games-created-in-Godot


text:
Validation fails because of difference types

× And I expect number of elements in 'Search Results' collection to be equal '20' # node_modules@qavajs\steps-wdio\lib\validations.js:51
AssertionError: expected 20 to deeply equal '20'

Workaround: Add explicit type caster into memory/index.js
number = n => parseFloat(n)
and use steps in form of And I expect number of elements in 'Search Results' collection to be equal '$number(20)'

repo: qavajs/steps-wdio


text:
ENH: Add render functionality

Not ready for merge, just staging here.

This is ready for a first pass. Want to take it, @thermokarst? I have a working branch ready for q2-taxa, that I've been using to test it, once this is good to go as well!

Thanks @thermokarst! Addressed the off-thread review comments on both this and q2-taxa!

Thanks @thermokarst, this should be good to go after "testing" 👍 !


text:
bug: networked filesystem race conditions

This changeset attempts to address some longstanding issues we've seen crop up on the forum from time to time:

https://forum.qiime2.org/t/qiime-tools-import-on-cluster/17531
https://forum.qiime2.org/t/error-while-runing-dada2/16600
https://forum.qiime2.org/t/qiime2-installation-and-run-error/4766
https://forum.qiime2.org/t/out-of-disk-space-error/5736

This has been a tricky one to debug though, since it seems to be specifically tied to the BeeGFS filesystem. I finally figured out how to reproduce this error though, using the following repo (plus patch; I also had to manually rebuild the beegfs client and launch the system service):
https://github.com/jeremysj/beegfs-sandbox/
diff --git a/roles/beegfs_client/tasks/main.yml b/roles/beegfs_client/tasks/main.yml
index 5ea86fa..6ed0ec9 100644
--- a/roles/beegfs_client/tasks/main.yml
+++ b/roles/beegfs_client/tasks/main.yml
@@ -6,7 +6,8 @@
 - name: "BeeGFS client packages"
   yum: name="{{ item }}" state=present
   with_items:
-  - "kernel-devel-{{ ansible_kernel }}"
+  - kernel
+  - kernel-devel
   - gcc
   - beegfs-client
   - beegfs-helperd

So, after poking around a bit, I can't find anything obviously wrong with the framework's handling of these temp paths - no double-creation of dirs/files, etc. It really only seems to be an issue when setting your machine's TMPDIR to a beegfs mount. One thing I learned while poking around at things is that pathlib.Path.rename is a thin wrapper around os.rename. Check out this os.rename note in the docs:

The operation may fail on some Unix flavors if src and dst are on different filesystems.

I suppose we have been warned. Anyway, other solutions I looked at included replacing rename with replace, but I saw identical failures.
I haven't written any tests for this yet, I wanted to put this out there into the world (cc @ebolyen) to see what folks think. This changeset takes the approach of attempting to perform the lower-cost rename operations, and if it fails due to this FileExistsError, falls back to a slightly more expensive copy operation. I am open to other suggestions, just let me know. PS - thought about trying to use qiime2.util.duplicate in here, but steered clear for now.

This is fantastic! What great detective work, I remember trying to figure this out once and giving up, I had no idea about os.rename, but I suppose it makes sense.
Re: Duplicate, is this worth addressing further? I feel like we could really use our own cheap copy-tree utility that recursively calls duplicate (or even something smarter). This seems like a good motivation to introduce it and fix any other renames in the framework. This shouldn't be construed as a problem you need to solve (i.e. I'm good with merging), but I think we might be staring at some reasonably low-hanging fruit.

Maybe duplicate isn't quite it, but something that let's us generally "move" things, where you could choose to "destroy" the original (meaning we will try rename, then hard-link+delete, then copy+delete, else error), or force a copy skipping rename.
clone_tree(destructive=False)/clone_file(destructive=False)

Hi, my name is Philipp and I am part of the BeeGFS product support team. I was made aware of this issue by one of our customers.
I would like to learn more about the process on the filesystem that triggers this error. I read through the discussions mentioned above and as far as I understood, having TMPDIR set to a path on a BeeGFS filesystem seems to trigger this, but then some of the reports mention, that the location of the TMPDIR doesn't make a difference. Is it really the TMPDIR or is it the working directory that triggers the error?
I also didn't fully understand the error message that is raised by Python. For example:
[Errno 17] File exists: ‘/scratch/qiime2-provenance-difz5eeh’ -> ‘/scratch/qiime2-archive-isgo3hiy/b7f5c095-1f9f-480d-837b-aba392d161c4/provenance’

This mentions two filenames. What exactly happens at that step and what does that arrow mean? Is it a copy or a move? Is that related to the rename you mention?

Hey @philippfalk, thanks for stopping by!

I would like to learn more about the process on the filesystem that triggers this error.

Me too! I think it is safe to say we are still in the early stages of trying to get a grip on what is going on here. One thing I am still unsure of, is it seems to me like we should be seeing this error on other networked filesystems, but, I can't find any reports on our support forum for a non beegfs mount experiencing these issues. That has me a bit stumped, because I think a significant number of our users utilize QIIME 2 in HPC environments, which almost always seem to have some kind of network fs.
One thing to keep in mind is that we still haven't ruled out definitively any bad behavior on our part - it is still entirely possible that we have some file operations that are running multiple times, but, its worth noting again that for some reason we only see this become a problem in very specific cases.

Is it really the TMPDIR or is it the working directory that triggers the error?

With respect to QIIME 2 (and the changes introduced in this PR), I have only observed these issues when writing to the system TMPDIR. As far as QIIME 2 goes - we use the tmp dir extensively during operation, to keep track of input and output data, as well as some other bookkeeping activities.

I also didn't fully understand the error message that is raised by Python

This is a pretty confusing python error message in my opinion. The operation that is raising this is os.rename, which is a move (or maybe a link?). I believe the format of the error message is src -> dst, and the message is claiming that the dst path already exists.
I'm still looking into this, but any help or insight would be really helpful! Thanks so much, @phillippfalk!

I can't find any reports on our support forum for a non beegfs mount experiencing these issues.

I found this issue, that looks very similar and there seems to be no BeeGFS involved, only NFS:
https://forum.qiime2.org/t/errno-17-file-exists-during-classify/6554
To analyze this a little better, it would be great to have some strace output of the specific code path that triggers this. I will work together with our customer to get that.
Regarding the rename: There is a limitation in BeeGFS, which makes it impossible to move open files to a different directory. The error that is triggered should be different (EBUSY), but that is the only limitation I can think of that seems somewhat related to what we are seeing here.

Great, thanks so tracking that post down, @philippfalk! I'm still surprised that there aren't more reports like that floating around. Anyway, I'm going to work on doing a more thorough review of the current handling of these tmp files from within the QIIME 2 framework. I'll report back what I find sometime in the next few days.

Okay, after taking a closer look at the python stdlib docs, it really does look to me like the change I have proposed here in this PR probably should've been implemented all along (or something like it, as @ebolyen proposed above). os.rename is just not guaranteed to work across different filesystems, although it sounds like in general we've been pretty lucky, and in most cases, it has seemed to work for us.
I think in general we haven't used shutil.move for these operations because a) it isn't exposed in pathlib and b) it isn't atomic.
The framework falls over on its use of os.rename in at least two cases, where the following directories might exist: 1) the archive's data directory and 2) the archive's provenance directory.
I don't think we can just drop the preemptive creation of those directories, at the very least it would break the contract for things like InPath and OutPath and would make for some test-churn to accommodate (that's not a real concern though, at the end of the day - I imagine there must be some other reason why we preemptively create those dirs -  @ebolyen, maybe you have some thoughts?). Otherwise, I think its safe to say that we just need to handle the os errors more gracefully in QIIME 2 (although it is a bummer that there isn't better tooling for this in the python stdlib...).

I suspect any reason for the directories to exist (or not exist) was just an artifact of how I was thinking about these objects. I wouldn't put too much significance in them, the most likely reason I can think of is it would have made ancestral provenance tracking barely simpler as you can just take the contents of X/ and put it in artifacts/UUID/.
I think directory handling in general is pretty much a mess, and I hate reaching for distutils, so maybe we categorize some situations and figure out a general API (perhaps after merging this)?

so maybe we categorize some situations and figure out a general API (perhaps after merging this)?

Definitely. I'll stick a few test cases in with this PR, then we can merge. Later, we can circle back on planning an overhaul on file/dir move/copy ops.

Okay @ebolyen, this is ready for review.

authors: ebolyen philippfalk thermokarst

license_source: bigquery


text:
Mac M1pro 连接报错

配置正常，报错Stream On Error: NOAUTH Authentication required.
密码带* 账号带_

截个配置，这报错应该是密码没填或者错误

同样的问题

同样的问题

root应该是ssh用户的账密了吧，填redis的

时隔多日，目前还是有这个问题，远程的redis版本5.0左右，输入账号密码还是有这个问题。

authors: Over-Reel a-boom hellokitty-23 qishibo

repo: qishibo/AnotherRedisDesktopManager


text:
Update RapidUpload, add rapidUploadV2

实现了新秒传接口

create步骤中的如下参数其实是无效参数:
"a":          "commit",
"sequence":   "1",
"autoinit":   "1"
*源于最初开发时误参考了旧版文档, 新版文档在 这里

已修改
原来这个就是分片上传的接口，怪不得我看有的结构都是现成的

试了两个之前有问题的秒传，都成功了，感谢两位的工作

似乎有 bug，上传一个全新文件时，默认尝试秒传，结果秒传没有返回错误，之后看看什么原因

似乎有 bug，上传一个全新文件时，默认尝试秒传，结果秒传没有返回错误，之后看看什么原因

我在issue内详细注明了: https://github.com/qjfoidnh/BaiduPCS-Go/issues/106
预上传是不会返回报错的, 需要根据block_list:是否为空判断秒传是否有效

嗯 单纯的代码错误，判断逻辑没问题，已经修复

今天测试了下发现:
新接口可以简化, 直接create即可, 不需要precreate, uploadid参数可以省去无任何影响
顺便, 新接口是支持20G以上文件的, 可以添加下支持

authors: ReveEver mengzonefire qjfoidnh

repo: qjfoidnh/BaiduPCS-Go


text:
Test Issue - ozutp

Test Body - fkwszlebha

Test Comment - yevsy

repo: qlikqaa/dummyrepo


text:
Test Issue - quxvk

Test Body - yujdgdctez

Test Comment - byrmn


text:
Test Issue - vpsng

Test Body - hmcwmshrnb

Test Comment - nxwcq


text:
Test Issue - skzcb

Test Body - fkcqdezgdo

Test Comment - zzwrq


text:
Test Issue - utgru

Test Body - xydqvroloo

Test Comment - gpbmv


text:
Test Issue - emymr

Test Body - mwplzgchov

Test Comment - mepru


text:
Test Issue - lbayo

Test Body - hpyccfawbl

Test Comment - kdczr


text:
Test Issue - djzot

Test Body - xhqavhkhov

Test Comment - fvslq


text:
Test Issue - ctofb

Test Body - bkznmuqpqy

Test Comment - pauuo


text:
Test Issue - tiglw

Test Body - okhnhjzhru

Test Comment - wblzs


text:
Test Issue - vclps

Test Body - qzdjzdpazr

Test Comment - lfevp


text:
Test Issue - eqlsf

Test Body - nnhmruozcf

Test Comment - kugmg


text:
Test Issue - ocjef

Test Body - gpvcswwsch

Test Comment - vkyzt


text:
Test Issue - bhoen

Test Body - cbudpzvdzg

Test Comment - zdmez


text:
Test Issue - xijbu

Test Body - usncfbilzs

Test Comment - bkqpd


text:
Test Issue - ealso

Test Body - dzuysdwkjn

Test Comment - kyzpf


text:
Test Issue - zilda

Test Body - zbtewbnjpz

Test Comment - elyae


text:
Test Issue - zlagy

Test Body - bohbafegqx

Test Comment - owxxp


text:
Test Issue - odbcc

Test Body - olwpzidhmc

Test Comment - fbkox


text:
Test Issue - cwwfm

Test Body - pwyxnqvdwd

Test Comment - qspdw


text:
Test Issue - qdmvi

Test Body - plmqdjeivq

Test Comment - bomaj


text:
Test Issue - iwbds

Test Body - ndpfzjuvso

Test Comment - ydolq


text:
Test Issue - umanv

Test Body - oryydixyup

Test Comment - rdusi


text:
Test Issue - qwpun

Test Body - xxqpknskmb

Test Comment - sidkn


text:
Test Issue - oomwr

Test Body - fsqortfqmw

Test Comment - ayfbf


text:
Test Issue - citjy

Test Body - ozkrrpfrfw

Test Comment - tjiye


text:
Test Issue - widwy

Test Body - peoqsdimpj

Test Comment - xmapx


text:
Test Issue - ogbox

Test Body - vfhtlkldej

Test Comment - jfvso


text:
Test Issue - fvuns

Test Body - cmhwenvqrk

Test Comment - fyynd


text:
Test Issue - djchn

Test Body - ligtoucoka

Test Comment - qtmpj


text:
Test Issue - snpee

Test Body - fuizwkukhb

Test Comment - hvmho


text:
Test Issue - tfqox

Test Body - drhptooust

Test Comment - bjvfx


text:
Test Issue - ngdcz

Test Body - istsoedcje

Test Comment - rewxg


text:
Test Issue - pamcj

Test Body - gisqegxltk

Test Comment - tniqs


text:
Test Issue - uewpn

Test Body - bdlejudzom

Test Comment - mvmbf


text:
Test Issue - bquck

Test Body - qxyulgwael

Test Comment - ncoir


text:
JSONata for Python seems broken

Hi,
I am trying to use JSONata for python by using the python wrapper available here: https://pypi.org/project/pyjsonata/ I can't seem to install this, pip install command fails with:
 pip install pyjsonata
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement pyjsonata (from versions: none)
ERROR: No matching distribution found for pyjsonata

Is there a plan to fix the PyPI build? I see that the make file needs to be written in python as mentioned here:
Source packages are currently broken until I can be bothered to rewrite jsonata-c’s Makefile in Python, as required by setuptools.

I am planning to take a dependency on JSONata in python and java and was hoping to understand if this is available for customer use. Any help here would be greatly appreciated.
Thanks

@anshikg you're probably getting that error because there isn't a pre-compiled (wheel) version that matches your architecture (see e.g. https://pypi.org/project/pyjsonata/0.0.1a9/#files for what's available). For me at least, installation via pip does work in principle, as long as there's a published version that matches the machine it's being installed on.
Until the root cause (which you correctly point to) is fixed, you can still build your own wheel manually by following the instructions in the README, and then install that. It worked reasonably well on a Mac.

I think I have an idea on how to fix this in pyjsonata. Btw I'm moving the issue to that repo since it's really a pyjsonata build problem.
Terribly sorry for taking a year to respond, I've had github email notifications turned off as they're so noisy, but it's made me miss quite a lot.

authors: anshikg qlyoung svet-b

repo: qlyoung/jsonata-c


text:
【Table】表格固定列横向滚动bug

复现条件：文档“固定行列”示例，使用mac妙控板无法横向滚动，只能实现纵向滚动。横向需拖拽滚动条。

Table 的滚动并不是一个自由滚动，它的纵向和横向滚动是作用在不同元素上的。
在用鼠标交互时，直接的滚动是纵向，按住 Shift 后滚动则为横向。
mac 妙控板是否可以像鼠标一样配合键盘的 Shift（或类似的指令，我不太了解）一起使用？

长时间未回复，暂时关闭 issue。

repo: qmhc/vexip-ui


text:
Theme: List of Virtualmin/Cloudmin domains/systems doesn't trigger left menu change

Before when you clicked on the list in the content page, the navigation menu was reloaded. Needs a fix.

It will be fixed in 18.00.
Finding function __lle() and adding to the end t__wi_p.t___p__ll = 0 will fix the issue.

repo: qooob/authentic-theme


text:
Apparently dead code in LoggerFactory

While reading slf4j2 code to figure out how ~bindings~providers work, I came across a line that confused me: catch(NoSuchFieldError) in LoggerFactory
https://github.com/qos-ch/slf4j/blob/216459e5d81c3b066748c51a4eabcda32395fe05/slf4j-api/src/main/java/org/slf4j/LoggerFactory.java#L364-L388
I was wondering why the comment references REQUESTED_API_VERSION, while there's no such thing in the try.
I found the change that invalidated that catch, and ~I'm still baffled as to why Java does not complain about a checked exception being not used~ I see why javac didn't alert: it's an Error, not checked!.

Hi @TWiStErRob
I think the NoSuchFieldError can no longer occur and it makes no sense to check for it. As for the compiler not complaining, it is a good question but beyond the scope of SLF4J. :relaxed:

See edit: Error is not a checked exception.

Unreachable code removed in commit 5ccbe20b118828f35fd64a887d77fb9b72ad1a6e

authors: TWiStErRob ceki

license: mit


text:
qpdf fails if /Length is not provided in encryption dictionary

According to section 7.6.1 of the PDF 1.7 specification (unchanged in the PDF 2.0 spec):

Length - Integer - (Optional; PDF 1.4; only if V is 2 or 3) The length of the encryption key, in bits. The value shall be a multiple of 8, in the range 40 to 128. Default value: 40.

This means that for V 4 or 5 there is no need to produce the Length key in the encryption dictionary. Additionally, the extended description of the V key in the PDF 2.0 spec describes that V=4 always has a 128bit key and V=5 always has a 256bit key.
However, qpdf set the default length to 40 in https://github.com/qpdf/qpdf/blob/master/libqpdf/QPDF_encryption.cc#L935 and only changes it if there is a Length key.
Possible resolution: If V = 4, set the default value of Length to 128, if V = 5, set it to 256.
Here is a sample PDF that doesn't work with qpdf but works fine with Adobe Acrobat and every other viewer I tried.

Thanks. I'll make sure this is fixed for the next qpdf release. qpdf was historically very strict. Over time, as issues like this have come up, I've just made it more lax about things that it can infer. I'll have to look at the code, but most likely qpdf can just infer the length. Anyway, I'll have to reread this section of the spec, look at your files, and look at the code, but I'm quite sure I can easily resolve this issue. I have set aside some time to work on qpdf next week. I will try to work this in.

@jberkenbilt Thank you!
And thank you for making qpdf - I use it to test the results of my PDF library and also for performance comparisons.

Does this file have a password? I am getting an invalid password error on this file with all readers that I have tried including Adobe reader. However, I have been able to fabricate files that exercise this bug, and I'm pretty sure I will have it fixed properly for qpdf 9. But if you supply the password for this file, I can also test with it. Thanks for reporting.

@jberkenbilt Sorry, the password is 'test'.

Great, thanks. Yes, it works now with qpdf in master.

authors: gettalong jberkenbilt

repo: qpdf/qpdf


text:
Error building qpdf 10.3.1 on macOS Catalina and XCode 12.1

OS: macOS 10.15.7
Xcode 12.1
Trying to build qpdf 10.3.1, and I get:
libtool: link: g++ -std=c++14 -g -O2 -fvisibility=hidden -Wconversion -Wsign-conversion -Wold-style-cast -Wall qpdf/build/test_xref.o -o qpdf/build/.libs/test_xref -Wl,-bind_at_load  -Llibqpdf/build -L/usr/local/lib /Volumes/ramdisk/qpdf-10.3.1/libqpdf/build/.libs/libqpdf.dylib -lz /usr/local/lib/libjpeg.dylib
gcc -g -O2 -fvisibility=hidden -I/usr/local/include -I/usr/local/include -Wconversion -Wsign-conversion -Wall  -MD -MF qpdf/build/qpdf-ctest.dep -MP -Iinclude  -c qpdf/qpdf-ctest.c -o qpdf/build/qpdf-ctest.o
qpdf/qpdf-ctest.c:505:5: error: use of undeclared identifier 'qpdf_oh'
    qpdf_oh trailer = qpdf_get_trailer(qpdf);
    ^
qpdf/qpdf-ctest.c:507:12: error: use of undeclared identifier 'trailer'
    assert(trailer == 1);
           ^
qpdf/qpdf-ctest.c:508:5: error: use of undeclared identifier 'qpdf_oh'
    qpdf_oh root = qpdf_get_root(qpdf);
    ^
qpdf/qpdf-ctest.c:509:12: error: implicit declaration of function 'qpdf_oh_get_generation' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
    assert(qpdf_oh_get_generation(qpdf, root) == 0);
           ^
qpdf/qpdf-ctest.c:509:41: error: use of undeclared identifier 'root'
    assert(qpdf_oh_get_generation(qpdf, root) == 0);
                                        ^
qpdf/qpdf-ctest.c:510:5: error: use of undeclared identifier 'qpdf_oh'
    qpdf_oh root_from_trailer = qpdf_oh_get_key(qpdf, trailer, "/Root");
    ^
qpdf/qpdf-ctest.c:511:12: error: implicit declaration of function 'qpdf_oh_get_object_id' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
    assert(qpdf_oh_get_object_id(qpdf, root) ==
           ^
qpdf/qpdf-ctest.c:511:40: error: use of undeclared identifier 'root'
    assert(qpdf_oh_get_object_id(qpdf, root) ==
                                       ^
qpdf/qpdf-ctest.c:512:40: error: use of undeclared identifier 'root_from_trailer'
           qpdf_oh_get_object_id(qpdf, root_from_trailer));
                                       ^
qpdf/qpdf-ctest.c:513:5: error: use of undeclared identifier 'qpdf_oh'
    qpdf_oh pages = qpdf_oh_get_key(qpdf, root, "/Pages");
    ^
qpdf/qpdf-ctest.c:514:12: error: implicit declaration of function 'qpdf_oh_is_dictionary' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
    assert(qpdf_oh_is_dictionary(qpdf, pages));
           ^
qpdf/qpdf-ctest.c:514:40: error: use of undeclared identifier 'pages'
    assert(qpdf_oh_is_dictionary(qpdf, pages));
                                       ^
qpdf/qpdf-ctest.c:515:5: error: use of undeclared identifier 'qpdf_oh'
    qpdf_oh kids = qpdf_oh_get_key(qpdf, pages, "/Kids");
    ^
qpdf/qpdf-ctest.c:516:12: error: implicit declaration of function 'qpdf_oh_is_array' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
    assert(qpdf_oh_is_array(qpdf, kids));
           ^
qpdf/qpdf-ctest.c:516:35: error: use of undeclared identifier 'kids'
    assert(qpdf_oh_is_array(qpdf, kids));
                                  ^
qpdf/qpdf-ctest.c:517:12: error: implicit declaration of function 'qpdf_oh_get_array_n_items' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
    assert(qpdf_oh_get_array_n_items(qpdf, kids) == 1);
           ^
qpdf/qpdf-ctest.c:517:44: error: use of undeclared identifier 'kids'
    assert(qpdf_oh_get_array_n_items(qpdf, kids) == 1);
                                           ^
qpdf/qpdf-ctest.c:518:5: error: use of undeclared identifier 'qpdf_oh'
    qpdf_oh page1 = qpdf_oh_get_array_item(qpdf, kids, 0);
    ^
qpdf/qpdf-ctest.c:519:5: error: implicit declaration of function 'qpdf_oh_begin_dict_key_iter' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
    qpdf_oh_begin_dict_key_iter(qpdf, page1);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [qpdf/build.mk:49: qpdf/build/qpdf-ctest.o] Error 1

My guess is that you have an older version of qpdf installed, and your build is getting header files from the old installation. This isn't really supposed to happen, but if you can uninstall any old versions first, you might have better luck.

Yes, was the case. Thank you.

authors: jberkenbilt mario-grgic


text:
🛑 otakusan is down

In a592ac5, otakusan (https://otakusan.net/LightNovel) was down:

HTTP code: 0
Response time: 0 ms

Resolved: otakusan is back up in 196f835 after 10 minutes.


text:
🛑 yureisub is down

In 6c6f8d6, yureisub (https://www.yureisub.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: yureisub is back up in fbb9855.


text:
🛑 Ani 47 is down

In f1e8152, Ani 47 (https://anime47.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ani 47 is back up in 04796c5.


text:
🛑 anonystick - Tips Javascript is down

In f54a0c3, anonystick - Tips Javascript (https://anonystick.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: anonystick - Tips Javascript is back up in 67a44b2 after 7 minutes.


text:
🛑 kokocon is down

In 5ba34b6, kokocon (http://kokocon.net/) was down:

HTTP code: 500
Response time: 199 ms

Resolved: kokocon is back up in e975e61 after 14 minutes.


text:
🛑 kokocon is down

In 86e6fd4, kokocon (http://kokocon.net/) was down:

HTTP code: 500
Response time: 130 ms

Resolved: kokocon is back up in 4d8ce2b after 50 minutes.


text:
🛑 kokocon is down

In 7fcbee5, kokocon (https://tracker.kokocon.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: kokocon is back up in 06757cc after .


text:
🛑 kokocon is down

In 0ebaadd, kokocon (https://tracker.kokocon.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: kokocon is back up in 6112e7c after .


text:
🛑 kokocon is down

In cb937ef, kokocon (https://tracker.kokocon.net/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: kokocon is back up in 4b01c19 after .


text:
feat: Add toggle to display n-%-th confidence interval

With toggle:

Without toggle:

I like the idea here, but I think the functionality could be done cleaner. Maybe @Hazelfire @berekuk could one of you work with Nuno a bit to clean this up and add it?
It doesn't seem super urgent to me, maybe next 1-2 weeks or so.

Won't it be a better UX to make the chart zoomable? https://vega.github.io/vega-lite-v2/docs/selection.html#scale-domains seems relevant though it'd require some tuning.

Won't it be a better UX to make the chart zoomable?
Good point. If it were zoomable, we'd want to have it started as zoomed to the right amount, in these sorts of cases.

That said, it seems preferably to manually zoom the graph in this PR, instead of truncating the distribution.

Haha, this is very much related to my work in #760, which allows you to change the domain of the distribution that's charted. I was thinking of adding an option that allows you to specify the percentile that you want.
I put it off because the variable that allows you to specify what percentiles you want to graph to is hidden deep inside the squiggle-lang package, so it would require making it available through the environment or something. I think this is probably the best bet, as it would mean that we would not even need to compute the points outside of the specified domain (and it would be the simplest solution).
I'd be happy to look into this after I've got #760 and #759 sorted

authors: Hazelfire NunoSempere OAGr berekuk

repo: quantified-uncertainty/squiggle


text:
Revamped Chapter 1 to look more like the original chapter, updated me…

…ntions of PyMC to PyMC3, fixed parentheses

Should be all set. Most of what I did was break some cells up, rearrange some cells.

[ ] fix indentation of

with model:
        observation = pm.Poisson("obs", lambda_, observed=count_data)

[ ] fix reference [3] to point to: https://peerj.com/articles/cs-55/

One last to go! :+1:

authors: mmargenot twiecki


text:
Need help for creating holiday calendar for India

Here's the list of holidays for NSE. Problem is, there are some holidays which follow Gregorian calendar (eg. Republic day, Independence day, Mahatama Gandhi Jayanti etc), some holidays which follow Hindu Calendars (eg. Diwali, Holi) and few holidays follow Islamic calendar (Ramzan, Eid)
How to deal with this. One option I could think is work backwards from data. Take the data of a stock which has traded longest and then figure out holidays based on it.
I am looking at hk branch but have not been able to figure out any solution yet.
Any help on this will be appreciated.
Thanks

Hey, I am the person who worked on the Hong Kong calendar. I plan on implementing the NSE calendar as well as the Singapore SGX calendar either this week or next week. I will likely use something similar to the code on the hk branch's etc/lunisolar to compute the holidays based on the lunar cycles.

Great!! Thanks!!

Hey Thanks! How can I help!

Hi @llllllllll, I checked out hk branch. I ran all the tests successfully (except few memory 'out of memory errors', probably because I'm running it in a VM with limited memory)
I'm trying to run python etc/lunisolar new-moon but I'm getting an error FileNotFoundError: [Errno 2] No such file or directory: 'solar-ecliptic-longitude'

The lunisolar tool works by calculating the ecliptic longitude of the sun and moon to derive the new moons and solar terms. That process currently takes like 40 minutes to an hour so there are two entry points:

solar-ecliptic-longitude
lunar-ecliptic-longitude

that compute these values and save them to disk.
The other commands then read the data in these directories to do further processing. This currently computes the new moons and solar terms at minute resolution (UTC) so you can convert them to the appropriate time zone to determine which date they fall on. For example, the Chinese lunisolar calendar says that the day. midnight to midnight UTC+8, that contains the new moon is the start of the month. I am not sure what rules the Indian calendar uses but it should be possible to encode them given this data.

I added NSE calendar for India. (XNSE)
Holidays are back dated from 2010 to 2019.
#60

authors: llllllllll sjerry4u suryafx swapniljariwala


text:
Make zipline Pandas >= 0.20 compatible

Currently Zipline requires pandas 0.18.1 which is quite outdated and incompatible with many other current versions of other packages. As such, having zipline installed in your environment makes things very difficult. Would be great to update the requirement to a current version.

Thanks @twiecki . I'm going to close this as a duplicate of #1870, but I agree with the issue.
cc @abhijeetkalyan

authors: richafrank twiecki

repo: quantopian/zipline


text:
[KED-2900] Remove Rope 0.19.0 dependency subject to GPL license

Description
Remove or bump Rope dependency version subject to GPL license (Next versions: LGPLv3)
Context
Kedro version 0.17.5 gets blocked by corporate Nexus as depends on Rope which has an GPL license.
Steps to Reproduce
Have corporate nexus not allowing LGPv3 license usage.
Expected Result
Being able to use Kedro in a corporate setting.
Your Environment
Kedro 0.17.5

@idanov FYI

Thanks very much for raising this and figuring out the fix @theauheral. We've bumped to rope 0.21.0 in e9b288972dc6b7c440a9330e24b00ea18e1ccd1d - this will be released in kedro 0.17.6.

authors: AntonyMilneQB datajoely theauheral

repo: quantumblacklabs/kedro


text:
Detected by Windows Defender

Hi.
the payload is detected by windows Defender.
please FUD the file.
thanks

You have to make the file FUD yourself with a crypter, a packer, or obfuscation. It is not his responsibility to FUD files for you. Once the antivirus engines have the paradoxias signature, it’s the users job to make files FUD. We aren’t your personal army.

authors: augustgl merlin123h quantumcore

repo: quantumcored/paradoxiaRAT


text:
Syntactic sugar for cirq.Circuit.from_ops (?)

When using cirq, you'll typically want to create a circuit. As far as I can tell, the most common way of doing that is with cirq.Circuit.from_ops. Since this is so common, it might be nice to have a shorter alias. Maybe cirq.ascircuit(...) by analogy to np.asarray. What do you think?

Why don't we just allow arbitrary op_trees in the Circuit constructor?

Now that we have the convention about moments going in without being reflowed, from_ops is in fact a strict superset of the constructor. Allowing cirq.Circuit(OP_TREE) could be reasonable.

authors: Strilanc bryano mpharrigan

repo: quantumlib/Cirq


text:
Fix PauliString.pass_operations_over not supporting common gates

Add _decompose_into_clifford_ method to GateOperation
Add _decompose_into_clifford_with_qubits_ method to several common gates
Add PauliString.conjugated_by, which accepts an OP_TREE defining a composite Clifford operation in Circuit order. This differs from pass_ops_over, because pass_ops_over which takes a list of operations in reverse circuit order (which is confusing).
Fix op_gate_isinstance type annotation not allowing type tuples
Add PauliString.dense method

Code such as the following now works:
a, b = cirq.LineQubit.range(2)
print(cirq.X(a).pass_operations_over([cirq.H(a)]))
print(cirq.X(a).conjugated_by(cirq.Circuit(cirq.H(a), cirq.CNOT(a, b))))

Z(0)
Z(0)*X(1)

Fixes https://github.com/quantumlib/Cirq/issues/2179

Reviewers: please check that conjugated_by does the thing that you would expect based on the name. Ideally, predict it before reading the code or the tests.

Yes, I kept the decompose methods private without a publicly exposed method because I didn't want to commit to the interface yet.

is anything blocking this?

@mpharrigan Nothing except actually getting a review of it.

authors: Strilanc mpharrigan


text:
Add __tracebackhide__ = True to several test methods

This makes the errors produced by these test methods more useful, because the source line is in user code instead of library code.

Automerge cancelled: A status check is failing.

Automerge cancelled: A status check is failing.

authors: CirqBot Strilanc


text:
Custom Notification and Footer Tabs BUG

I am use custom notification and footer tabs at same page(wether default page or not get same bug).
And then tab buttons have no response for change tab (but swipe work fine).
After debug with Chrome Inspect, I find out even notification was hide,
It still keep some height from bottom and cover on footer tabs.
After tried z-index to notification , nav , tab-items , tab-item
My final solution is
deviceReady{
    document.querySelector('#notification_id').style.height="0px";
}

document.querySelector('#notification_id').style.height="";
phonon.notif('#notification_id').show();

document.querySelector('#notification_id').style.height="0px";
phonon.notif('#notification_id').hide();

Dirty but it works fine.

Hi @ckhsu3926,
Thank you for opening this issue.
I can't reproduce your bug..
Is your custom notification outside your page wrapper?
Example:
...

...

    <home data-page="true">...</home>
    ...
</body

@Qathom thanks for reply.
In my case,
I've tried

...

    ...
    <home data-page="true">...</home>
    ...

    <home data-page="true">
        ...

...

    </home>
    ...

Both of these style make this issue.
Totally Strange haha.
"Maybe" I bind mapsplugin/cordova-plugin-googlemaps(Ver.2.0) at same page is the reason why this happen,
although I did recheck every px are not overlap each other,
but I haven't give a shot to set map unclickable and figure out is this the reason of this issue.

repo: quark-dev/Phonon-Framework


text:
Support @StepScoped / @JobScoped

JBeret's CDI extension provides @StepScoped / @JobScoped annotations. Quarkus not supporting Portable CDI extensions, it doesn't work: annotations are on the classpath but do nothing, Quarkus fails at build time because any dependency using @StepScoped / @JobScoped beans won't work.
Reference documentation to implement custom contexts: https://quarkus.io/guides/cdi-integration#custom_context
This also seems to be quite useful:
https://stackoverflow.com/questions/60546069/how-to-create-a-custom-scope-in-quarkus/60725194#60725194
Here is some naive, unfinished implementation:
import io.quarkus.arc.InjectableBean;
import io.quarkus.arc.InjectableContext;
import jakarta.batch.runtime.context.StepContext;
import jakarta.enterprise.context.ContextNotActiveException;
import jakarta.enterprise.context.spi.Contextual;
import jakarta.enterprise.context.spi.CreationalContext;
import org.jberet.cdi.StepScoped;
import org.jberet.creation.ArtifactCreationContext;

import java.lang.annotation.Annotation;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Collectors;

public class StepScope implements InjectableContext {

    private final Map<StepContext, StepContextState> stepStateMap = new ConcurrentHashMap<>();

    @SuppressWarnings({"rawtypes", "unchecked"})
    @Override
    public void destroy() {
        stepStateMap.values()
                .forEach(StepContextState::destroy);
    }

    @Override
    public void destroy(Contextual<?> contextual) {
        stepStateMap.values()
                .forEach(stepContextState -> stepContextState.destroy(contextual));
    }

    @Override
    public ContextState getState() {
        return getStepContextState();
    }

    private StepContextState getStepContextState() {
        StepContext stepContext = getCurrentStepContext();
        if (stepContext == null) {
            throw new ContextNotActiveException("StepContext not available (step not running), StepScope is not active.");
        }
        return stepStateMap.computeIfAbsent(stepContext, absentStepContext -> new StepContextState());
    }

    @Override
    public Class<? extends Annotation> getScope() {
        return StepScoped.class;
    }

    @Override
    public <T> T get(Contextual<T> contextual, CreationalContext<T> creationalContext) {
        StepContextState stepContextState = getStepContextState();
        return stepContextState.get(contextual, creationalContext);
    }

    @Override
    public <T> T get(Contextual<T> contextual) {
        StepContextState stepContextState = getStepContextState();
        return stepContextState.get(contextual);
    }

    @Override
    public boolean isActive() {
        ArtifactCreationContext currentArtifactCreationContext = ArtifactCreationContext.getCurrentArtifactCreationContext();
        return currentArtifactCreationContext.getStepContext() != null;
    }

    private StepContext getCurrentStepContext() {
        return ArtifactCreationContext.getCurrentArtifactCreationContext().getStepContext();
    }

    static class StepContextState implements ContextState {

        private final Map<InjectableBean<?>, ScopedInstance<?>> injectableBeanScopedInstanceMap = new ConcurrentHashMap<>();

        @Override
        public Map<InjectableBean<?>, Object> getContextualInstances() {
            return injectableBeanScopedInstanceMap.entrySet()
                    .stream()
                    .collect(Collectors.toMap(Map.Entry::getKey, entry -> entry.getValue().instance));
        }

        @SuppressWarnings({"unchecked"})
        public void destroy() {
            injectableBeanScopedInstanceMap.forEach((contextual, scopedInstance) -> destroy((Contextual) contextual, scopedInstance));
        }

        @SuppressWarnings({"rawtypes", "unchecked"})
        public void destroy(Contextual<?> contextual) {
            getScopedInstanceOptional(contextual)
                    .ifPresent(scopedInstance -> destroy((Contextual) contextual, scopedInstance));
        }

        private static <T> void destroy(Contextual<T> contextual, ScopedInstance<T> scopedInstance) {
            CreationalContext<T> creationalContext = scopedInstance.creationalContext;
            T instance = scopedInstance.instance;
            contextual.destroy(instance, creationalContext);
        }

        public <T> T get(Contextual<T> contextual) {
            return getScopedInstanceOptional(contextual)
                    .map(ScopedInstance::instance)
                    .orElse(null);
        }

        @SuppressWarnings("unchecked")
        public <T> T get(Contextual<T> contextual, CreationalContext<T> creationalContext) {
            InjectableBean<T> injectableBean = (InjectableBean<T>) contextual;
            return (T) injectableBeanScopedInstanceMap.computeIfAbsent(injectableBean, absentInjectableBean -> createScopedInstance(contextual, creationalContext)).instance;
        }

        private <T> ScopedInstance<T> createScopedInstance(Contextual<T> contextual, CreationalContext<T> creationalContext) {
            T instance = contextual.create(creationalContext);
            return new ScopedInstance<>(instance, creationalContext);
        }

        @SuppressWarnings("unchecked")
        private <T> Optional<ScopedInstance<T>> getScopedInstanceOptional(Contextual<T> contextual) {
            ScopedInstance<T> scopedInstance = (ScopedInstance<T>) injectableBeanScopedInstanceMap.get(contextual);
            return Optional.ofNullable(scopedInstance);
        }
    }

    public record ScopedInstance<T>(
            T instance,
            CreationalContext<T> creationalContext
    ) {

    }
}

import io.quarkus.arc.deployment.ContextRegistrationPhaseBuildItem;
import io.quarkus.arc.deployment.ContextRegistrationPhaseBuildItem.ContextConfiguratorBuildItem;
import io.quarkus.arc.deployment.CustomScopeBuildItem;
import io.quarkus.deployment.annotations.BuildStep;
import org.jberet.cdi.StepScoped;
import org.jboss.jandex.DotName;

public class JBeretCustomBuildStep {

    @BuildStep
    ContextConfiguratorBuildItem registerContext(ContextRegistrationPhaseBuildItem phase) {
        return new ContextConfiguratorBuildItem(phase.getContext().configure(StepScoped.class).normal().contextClass(StepScope.class));
    }

    @BuildStep
    CustomScopeBuildItem customScope() {
        return new CustomScopeBuildItem(DotName.createSimple(StepScoped.class.getName()));
    }

}

Scopes support has been added in latest extension version (https://github.com/quarkiverse/quarkus-jberet/releases/tag/2.3.0) via https://github.com/quarkiverse/quarkus-jberet/pull/123

Nice! Thanks for that :smile: . Seems I worked just the day before on my own solution then :smile:

authors: luca-bassoricci ymajoros

repo: quarkiverse/quarkus-jberet


text:
Decrypt Logs

Describe the bug
When I try to recover key logs from a users computer (i even tried my own) I get the error Failed to decrypt and write logs. It looks Like this ò}¿•4s$Ãù¾)!P|k³–Ž in the logs.
Screenshots
https://gyazo.com/ee49a715aea891cd2ad5577d2379ec4d
Please help. Thank you

Fixed! All i had to do was goto the folder - clients - and deleted all .html files before that!

Ok, just tested and it's working fine for me. Glad you figured it out.

authors: BurntDog KcioX

repo: quasar/Quasar


text:
ERROR CODE: 10013

My rat wont connect, its showing the below error message.
"An unexpected socket error occurred: An attempt was made to access a socket in a way forbidden by its access permissions."
Kindly assist

You might have another program listening on the requested socket. use the command prompt with the command "netstat -ano | findstr "YourPortHere"" and replace YourPortHere with the port you are trying to use. If you get results back, you can kill them by "taskkill /f /pid number" and replace number with the number at the end of the result from netstat.

repo: quasar/QuasarRAT


text:
Smui v3 11

upgrading SMUI to current latest
activated Spelling feature (incl. ReplaceRewriter & replace-rules.txt deployment to Solr)

a good test use case for that is:

create new spelling for "laptop"
add misspelling "leptop"
create new rule for "laptop"
UP(+++++) "toshiba" or any other brand

expected:

search for misspelled "leptop"
spelling should be corrected (implicitly), boosting for the laptop brand should be applied

cc @epugh

This looks good, and I'll merge after the ApacheCon talk, probably tomorrow!

authors: epugh pbartusch

repo: querqy/chorus


text:
DefaultMapper should return maps with predictable order

I've came accross this issue while writing unit tests with asserts on SQL query strings. I've noticed that between multiple runs of the same test, the order of fields in generated SQLs varied. This rendered my tests flaky.
Also, because of this, we could possibly be expecting different SQL queries for the same lists of fields produced on different JVMs in the production environment. This in turn would decrease database's ability to skip parsing similar statements.
The quickest fix would be to replace HashMap with a LinkedHashMap in DefaultMapper.
Thanks in advance

@elser Would you have time to write a PR for this?

Sure, will do!
On 2 Oct 2015 05:48, "Timo Westkämper" notifications@github.com wrote:

@elser https://github.com/elser Would you have time to write a PR for
this?
—
Reply to this email directly or view it on GitHub
https://github.com/querydsl/querydsl/issues/1594#issuecomment-144827553.

Thanks! :)

authors: dagguh elser timowest

repo: querydsl/querydsl


text:
A stupid robot closed #3531, reopen it and leave it open until it is actually fixed.

Observed vs. expected behavior

Steps to reproduce

Environment

Querydsl version:
Querydsl module:
Database:
JDK:
Additional details

Robots is all the activity you gonna get here

authors: akimd velo


text:
fixed broken PKGBUILD

closes #205
tested, and confirmed that it builds properly with this patch.
AUR pkg guidelines say that you should increment the 'pkgrel' number in the PKGBUILD whenever you apply a fix - but I'm not sure if that would interfere with your CI pipeline!
credit goes to lamelos on the AUR forums!

Thanks. I'll try to do a manual push bypassing the CI pipeline with the pkgrel change.

Thanks again for the PR. By the way, I believe your git commit email is not registered to your GitHub account. In the GitHub log this does not link to your account:

Thanks again for the PR. By the way, I believe your git commit email is not registered to your GitHub account. In the GitHub log this does not link to your account:

ahh thanks for letting me know. time to go play with git, yay!

repo: quexten/goldwarden


text:
request AWS AssumeRoleWithWebIdentity API

Describe the bug
A clear and concise description of what the bug is.
Version: v0.8.0
In the last 24 hours, the searcher cluster requested AWS AssumeRoleWithWebIdentity API 34,934,189 times.  From what I understand, Quickwit is supposed to store credential temporarily for an hour. However, we've noticed that it's getting bombarded with a huge volume of requests nearly every second. The error log from a quickwit pod.

2024-03-26T08:16:36.417Z ERROR fetch_docs: quickwit_search::fetch_docs: error when fetching docs in splits split_ids=["01HSWWX3VSY1K4C2AAYY6WG898", "01HSWWTHNAMAKHV7ZHH3M9PYZJ"] error=open-index-for-split

Caused by:
    0: failed to fetch hotcache and footer from s3://path for split `01HSWWTHNAMAKHV7ZHH3M9PYZJ`
    1: storage error(kind=Internal, source=failed to construct request: failed to load credentials from the credentials cache: an error occurred while loading credentials: service error: unhandled error: unhandled error: Error { code: "Throttling", message: "Rate exceeded", aws_request_id: "e08a1aa3-6d6c-487e-a6f2-" } (ConstructionFailure(ConstructionFailure { source: CredentialsStageError { source: ProviderError(ProviderError { source: ServiceError(ServiceError { source: Unhandled(Unhandled { source: ErrorMetadata { code: Some("Throttling"), message: Some("Rate exceeded"), extras: Some({"aws_request_id": "e08a1aa3-6d6c-487e-a6f2-"}) }, meta: ErrorMetadata { code: Some("Throttling"), message: Some("Rate exceeded"), extras: Some({"aws_request_id": "e08a1aa3-6d6c-487e-a6f2-"}) } }), raw: Response { inner: Response { status: 400, version: HTTP/1.1, headers: {"x-amzn-requestid": "e08a1aa3-6d6c-487e-a6f2-", "content-type": "text/xml", "content-length": "255", "date": "Tue, 26 Mar 2024 08:16:36 GMT", "connection": "close"}, body: SdkBody { inner: Once(Some(b"<ErrorResponse xmlns=\"https://sts.amazonaws.com/doc/2011-06-15/\">\n  <Error>\n    <Type>Sender</Type>\n    Throttling\n    <Message>Rate exceeded</Message>\n  </Error>\n  <RequestId>e08a1aa3-6d6c-487e-a6f2-</RequestId>\n</ErrorResponse>\n")), retryable: true } }, properties: SharedPropertyBag(Mutex { data: PropertyBag { contents: ["aws_types::SigningService", "aws_smithy_http::operation::Metadata", "aws_smithy_http::connection::CaptureSmithyConnection", "aws_http::user_agent::AwsUserAgent", "aws_sig_auth::signer::OperationSigningConfig", "aws_sdk_sts::endpoint::Params", "aws_types::region::Region", "aws_smithy_types::endpoint::Endpoint", "aws_credential_types::cache::SharedCredentialsCache", "alloc::vec::Vec<http::version::Version>", "aws_types::region::SigningRegion"] }, poisoned: false, .. }) } }) }) } })))
    2: failed to construct request: failed to load credentials from the credentials cache: an error occurred while loading credentials: service error: unhandled error: unhandled error: Error { code: "Throttling", message: "Rate exceeded", aws_request_id: "e08a1aa3-6d6c-487e-a6f2-" } (ConstructionFailure(ConstructionFailure { source: CredentialsStageError { source: ProviderError(ProviderError { source: ServiceError(ServiceError { source: Unhandled(Unhandled { source: ErrorMetadata { code: Some("Throttling"), message: Some("Rate exceeded"), extras: Some({"aws_request_id": "e08a1aa3-6d6c-487e-a6f2-"}) }, meta: ErrorMetadata { code: Some("Throttling"), message: Some("Rate exceeded"), extras: Some({"aws_request_id": "e08a1aa3-6d6c-487e-a6f2-"}) } }), raw: Response { inner: Response { status: 400, version: HTTP/1.1, headers: {"x-amzn-requestid": "e08a1aa3-6d6c-487e-a6f2-", "content-type": "text/xml", "content-length": "255", "date": "Tue, 26 Mar 2024 08:16:36 GMT", "connection": "close"}, body: SdkBody { inner: Once(Some(b"<ErrorResponse xmlns=\"https://sts.amazonaws.com/doc/2011-06-15/\">\n  <Error>\n    <Type>Sender</Type>\n    Throttling\n    <Message>Rate exceeded</Message>\n  </Error>\n  <RequestId>e08a1aa3-6d6c-487e-a6f2-</RequestId>\n</ErrorResponse>\n")), retryable: true } }, properties: SharedPropertyBag(Mutex { data: PropertyBag { contents: ["aws_types::SigningService", "aws_smithy_http::operation::Metadata", "aws_smithy_http::connection::CaptureSmithyConnection", "aws_http::user_agent::AwsUserAgent", "aws_sig_auth::signer::OperationSigningConfig", "aws_sdk_sts::endpoint::Params", "aws_types::region::Region", "aws_smithy_types::endpoint::Endpoint", "aws_credential_types::cache::SharedCredentialsCache", "alloc::vec::Vec<http::version::Version>", "aws_types::region::SigningRegion"] }, poisoned: false, .. }) } }) }) } }))
    3: failed to fetch slice 8194735750..8199046294 for object: s3://path/01HSWWTHNAMAKHV7ZHH3M9PYZJ.split

We're using the default AWS Rusk SDK credentials cache, which should cache credentials for 15 minutes. Can you set the log level to debug for aws_credential_types::cache and track the following logging statements for a single searcher:

debug!("loaded credentials from cache");
`info!("credentials cache miss occurred; added new AWS credentials (took {:?})", start_time.elapsed());
debug!("loaded credentials");

Thanks for your advice, but I don't know how to enable the debug log.
I don't find it in the doc or in the helm chart.

You can:

Use RUST_LOG env variable like RUST_LOG=info,quickwit_indexing=debug
Use a curl  curl -XPOST "http://localhost:7280/api/v1/log_level?filter=debug"

Debug like this will generate a looooot of logs. Enough to disrupt your server. You can apply debug to a specific module only:
info,aws_credential_types::cache=debug

After discussion with people from AWS, they suggest the bug is coming from the AWS SDK we use.

authors: fmassot fulmicoton guilload tuziben

repo: quickwit-oss/quickwit


text:
Check sort-by-score CLI

Make use of FormatError in make rest reply to display a more meaningful error message in CLI upon SearApiError
Closes https://github.com/quickwit-oss/quickwit/issues/2790

A standard API error message is provided in https://github.com/quickwit-oss/quickwit/pull/2843


text:
Allow visitors to provide feedback on the current page

Inspired (heavily) by Stripe, we'd like a feedback feature added to the ETM header. This will allow visitors to provide quick feedback about the page they have loaded and is the first step to collecting more data to aid the renewal of our front-end.
My intention is for feedback to be sent to a Basecamp project where we'll be able to discuss it and perhaps reply to the sender. We'll include some basic information about the page the visitor was using, which charts are loaded, and a link to the scenario in case they're reporting a problem.
It currently looks like this:

To say this looks like Stripe's version is an understatement:

I would like to think they wouldn't mind, but we might need to differentiate ours a little more.

Wow this is a great idea!!! I am curious what kind of feedback we will receive! It makes us more approachable for users and we can get in contact with them more :)

Wow this is a great idea!!! I am curious what kind of feedback we will receive! It makes us more approachable for users and we can get in contact with them more :)

Closed with #3554

Closed with #3554

authors: antw marliekeverweij noracato

repo: quintel/etmodel


text:
End points are not 'equally treated' with local solar storage?

I started with the 100% co2 reduction 2030 preset, scaled down to 600 residences and choose all the defaults. I ended up with LES 340. I selected the first strategy, and I found that all three end points have very different loads:

Which is different from what I expect: since it wouldn't matter whether you are part of HH1, HH2 or HH3, right? :smile:
cc @antw

BTW: Technologies are distributed equally over the end points, except some rounding differences.

Hopefully this behaviour will be solved with #310. First implementation expected today! I suggest we deploy this to production too.

Assigned to @antw

authors: ChaelKruip dennisschoenmakers

repo: quintel/etmoses


text:
docs: Documentation needs to be updated with new NetRegexes format

Several documentation pages need to be updated to conform to the new NetRegexes format introduced by #4957.  At a glance, the Cactbot Customization, Triggers File Format, and Oopsy Raidsy Trigger Format documents all use the older style.

Yeah, this is part of #4986

authors: quisquous xiashtra

repo: quisquous/cactbot


text:
fix: type of disabled trigger and beforeSeconds field

try to catch up upstream change in my user config files.
Find some problems:
  timelineTriggers: [
    {
      id: 'T8 timeline example',
      regex: /11/,
      infoText: () => 'hello',
    },
   {
      id: "A Trigger I don't want",
      disabled: true,
    }
  ],
  triggers: [
    {
      id: 'E12S Double Aero Finder',
      disabled: true,
    },
]

first one can't compile because tsc says it missing beforeSeconds property.
Don't know why it's required in timelineTrigger.
the second and third can't compile because tsc says it missing regex or netRegex property.
This PR set beforeSeconds optional and add a union on trigger type which make it can be disabled.
I'm not sure how do you think about this union.
I think built-in triggers won't have any disabled trigger, but it could be in user triggers, so I'm not sure it's ok to put this union here.
But it's not likely to have another trigger set type called something like UserTriggerSet
{
  triggers?: (NetRegexTrigger<Data> | { id: string; disabled: true })[];
  timelineTriggers?: (TimelineTrigger<Data> | { id: string; disabled: true })[];
}

I think built-in triggers won't have any disabled trigger, but it could be in user triggers, so I'm not sure it's ok to put this union here.

This is the difference I am trying to express with NetRegexTrigger (a built-in cactbot trigger, with stricter type defintiions) and LooseTrigger (a user trigger, which has everything optional).   So, I think LooseTriggerSet already covers what you're proposing in UserTriggerSet, unless I'm misunderstanding?
I'm not sure I understand what you're trying to do with this:
    {
      id: 'E12S Double Aero Finder',
      disabled: true,
    },

...is this a common pattern for you?

So, I think LooseTriggerSet already covers what you're proposing in UserTriggerSet, unless I'm misunderstanding?

LooseTriggerSet is not a generic type, data didn't have any type information except RaidbossData

So, I think LooseTriggerSet already covers what you're proposing in UserTriggerSet, unless I'm misunderstanding?

LooseTriggerSet is not a generic type, data paramater didn't have any type information except RaidbossData

LooseTriggerSet is meant to be used by PopupText which doesn't know anything about the typing of data other than RaidbossData.  It's not intended to be used in trigger files itself, if that makes sense.
My thought is that if you are writing triggers in TypeScript, you should use the stricter NetRegexTrigger and TriggerSet types.  If cactbot is handling user triggers in PopupText, it should use the LooseTriggerSet which makes fewer assumptions.

My thought is that if you are writing triggers in TypeScript, you should use the stricter NetRegexTrigger and TriggerSet types.

Yes, that's what I want to do.
And met this problem when disabling triggers.
Maybe I should maintain my own copy of TriggerSet?

I'm not sure I understand what you're trying to do with this:
...is this a common pattern for you?

This is what I'm trying to ask above.  What is the goal of disabling a trigger that isn't doing anything?  What are you trying to do?

Here is another example:
I have a TEA trigger for limit-cut.
This limit-cut trigger overwrite built-in limit-cut trigger, and with some other solution different with built-in trigger.
Then there is a new trigger TEA Wormhole Puddle, which I have implemented in my limit-cut trigger, so there is no need to enable the built-in version.

Oh!  Thank you for the explanation; I just couldn't understand why you wanted this.  I think I had imagined that most people would disable triggers through the config UI, but it is more clean to disable them in the trigger file in some ways.
That seems reasonable to me.  My one suggestion is can you make a DisabledTrigger type and use that instead of repeating {id, disabled}?

Yes, you just remaid me that the most important reason: these triggers didn't need to be disabled if this trigger file is not loaded, so they should be disabled in the trigger file not config UI.
I'll add that.

(Sorry for my confusion! Thanks for patiently explaining it to me!)

re: beforeSeconds, I'm working on a PR to convert the 00-misc/test.js file to typescript and there are timeline triggers there that just flat out don't have beforeSeconds, and there's code in place to default to 0 if not specified, so that seems correct.

authors: Trim21 quisquous valarnin


text:
Website not working 502 Bad Gateway

The website does not work as of now. I tested this on Firefox, Widows 10 and Android, Chrome. This is what I am given:

jazakAllah khairan - fixed. will add this to the uptime checker to watch it for the future in sha' Allah.

authors: ahmedre validity-check


text:
implement search-as-you-type suggestions

this should match surah names as well as ayah text and translations. if a surah name is the suggestion, clicking that should take you to that surah; if an ayah is suggested, clicking that ayah should take you to that ayah. this is coupled with quran/quran.com-api#27

we should use Karim's autocomplete api just like we did in legacy. no need to re-implement the backend of this a second time (especially when we're short staffed and have so much to do!)

i want to give a shot with elasticsearch first
On Wed, Mar 23, 2016 at 11:57 AM Ahmed El-Helw notifications@github.com
wrote:

we should use Karim's autocomplete api just like we did in legacy. no need
to re-implement the backend of this a second time (especially when we're
short staffed and have so much to do!)
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/quran/quran.com-frontend/issues/224#issuecomment-200274670

authors: ahmedre sharabash


text:
🛑 Adguard Home DoT is down

In 6bcdaef, Adguard Home DoT ($AG_DOT) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Adguard Home DoT is back up in a703cfe after 31 minutes.

repo: quyleanh/upptime


text:
🛑 Adguard Home DoT is down

In bb529ba, Adguard Home DoT ($AG_DOT) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Adguard Home DoT is back up in 0aaf758 after 7 minutes.


text:
🛑 Adguard Home DoT is down

In 2da724b, Adguard Home DoT ($AG_DOT) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Adguard Home DoT is back up in 4b65040 after 7 minutes.


text:
Compilation Message Update

"/home/user/.hunter/_Base/bc7da32/7f32107/75298a5/Install/include/boost/pending/integer_log2.hpp:7:89: note: #pragma message: This header is deprecated. Use <boost/integer/integer_log2.hpp> instead."
Above msg keeps popping on Linux 16/18. Can hunter be updated to use the file in recommendation instead?

Fixed by 469d63ceff1b1fb417826c2a7e1f4cd3e55cd984 and 6b13eda36a9c11c48ab2f55294597dc9a77b643d
I've Updated boost to 1.70.

[ 59%] Building CXX object lib/CMakeFiles/QwertycoinFramework_Wallet.dir/WalletLegacy/WalletTransactionSender.cpp.o
In function ‘T CryptoNote::{anonymous}::popRandomValue(URNG&, std::vector&) [with URNG = std::linear_congruential_engine<long unsigned int, 16807, 0, 2147483647>; T = long unsigned int]’:
cc1plus: warning: ‘void* __builtin_memset(void*, int, long unsigned int)’: specified size 18446744073709551608 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]

config.status: src/config.h is unchanged
src/hashtable_test.cc: In instantiation of ‘void {anonymous}::TEST_onetype_HashtableIntTest_Typedefs::Run() [with TypeParam = google::HashtableInterface_SparseHashMap<int, int, {anonymous}::Hasher, {anonymous}::Hasher, {anonymous}::Alloc >]’:
src/hashtable_test.cc:571:1:   required from ‘{anonymous}::TEST_onetype_HashtableIntTest_Typedefs::TEST_onetype_HashtableIntTest_Typedefs() [with TypeParam = google::HashtableInterface_SparseHashMap<int, int, {anonymous}::Hasher, {anonymous}::Hasher, {anonymous}::Alloc >]’
src/hashtable_test.cc:571:1:   required from here
src/hashtable_test.cc:577:32: warning: variable ‘kt’ set but not used [-Wunused-but-set-variable]
typename TypeParam::key_type kt;
^~
src/hashtable_test.cc:583:33: warning: variable ‘st’ set but not used [-Wunused-but-set-variable]
typename TypeParam::size_type st;
^~
src/hashtable_test.cc: In instantiation of ‘void {anonymous}::TEST_onetype_HashtableIntTest_Typedefs::Run() [with TypeParam = google::HashtableInterface_SparseHashSet<int, {anonymous}::Hasher, {anonymous}::Hasher, {anonymous}::Alloc >]’:
src/hashtable_test.cc:571:1:   required from ‘{anonymous}::TEST_onetype_HashtableIntTest_Typedefs::TEST_onetype_HashtableIntTest_Typedefs() [with TypeParam = google::HashtableInterface_SparseHashSet<int, {anonymous}::Hasher, {anonymous}::Hasher, {anonymous}::Alloc >]’
src/hashtable_test.cc:571:1:   required from here
src/hashtable_test.cc:577:32: warning: variable ‘kt’ set but not used [-Wunused-but-set-variable]
typename TypeParam::key_type kt;
^~
src/hashtable_test.cc:583:33: warning: variable ‘st’ set but not used [-Wunused-but-set-variable]
typename TypeParam::size_type st;
^~
src/hashtable_test.cc: In instantiation of ‘void {anonymous}::TEST_onetype_HashtableIntTest_Typedefs::Run() [with TypeParam = google::HashtableInterface_SparseHashtable<int, int, {anonymous}::Hasher, {anonymous}::Negation, {anonymous}::SetKey<int, {anonymous}::Negation >, {anonymous}::Hasher, {anonymous}::Alloc >]’:
src/hashtable_test.cc:571:1:   required from ‘{anonymous}::TEST_onetype_HashtableIntTest_Typedefs::TEST_onetype_HashtableIntTest_Typedefs() [with TypeParam = google::HashtableInterface_SparseHashtable<int, int, {anonymous}::Hasher, {anonymous}::Negation, {anonymous}::SetKey<int, {anonymous}::Negation >, {anonymous}::Hasher, {anonymous}::Alloc >]’
src/hashtable_test.cc:571:1:   required from here
src/hashtable_test.cc:577:32: warning: variable ‘kt’ set but not used [-Wunused-but-set-variable]
typename TypeParam::key_type kt;
^~
src/hashtable_test.cc:583:33: warning: variable ‘st’ set but not used [-Wunused-but-set-variable]
typename TypeParam::size_type st;
^~
src/hashtable_test.cc: In instantiation of ‘void {anonymous}::TEST_onetype_HashtableIntTest_Typedefs::Run() [with TypeParam = google::HashtableInterface_DenseHashMap<int, int, kEmptyInt, {anonymous}::Hasher, {anonymous}::Hasher, {anonymous}::Alloc >]’:
src/hashtable_test.cc:571:1:   required from ‘{anonymous}::TEST_onetype_HashtableIntTest_Typedefs::TEST_onetype_HashtableIntTest_Typedefs() [with TypeParam = google::HashtableInterface_DenseHashMap<int, int, kEmptyInt, {anonymous}::Hasher, {anonymous}::Hasher, {anonymous}::Alloc >]’
src/hashtable_test.cc:571:1:   required from here
src/hashtable_test.cc:577:32: warning: variable ‘kt’ set but not used [-Wunused-but-set-variable]
typename TypeParam::key_type kt;
^~
src/hashtable_test.cc:583:33: warning: variable ‘st’ set but not used [-Wunused-but-set-variable]
typename TypeParam::size_type st;
^~
src/hashtable_test.cc: In instantiation of ‘void {anonymous}::TEST_onetype_HashtableIntTest_Typedefs::Run() [with TypeParam = google::HashtableInterface_DenseHashSet<int, kEmptyInt, {anonymous}::Hasher, {anonymous}::Hasher, {anonymous}::Alloc >]’:
src/hashtable_test.cc:571:1:   required from ‘{anonymous}::TEST_onetype_HashtableIntTest_Typedefs::TEST_onetype_HashtableIntTest_Typedefs() [with TypeParam = google::HashtableInterface_DenseHashSet<int, kEmptyInt, {anonymous}::Hasher, {anonymous}::Hasher, {anonymous}::Alloc >]’
src/hashtable_test.cc:571:1:   required from here
src/hashtable_test.cc:577:32: warning: variable ‘kt’ set but not used [-Wunused-but-set-variable]
typename TypeParam::key_type kt;
^~
src/hashtable_test.cc:583:33: warning: variable ‘st’ set but not used [-Wunused-but-set-variable]
typename TypeParam::size_type st;
^~
src/hashtable_test.cc: In instantiation of ‘void {anonymous}::TEST_onetype_HashtableIntTest_Typedefs::Run() [with TypeParam = google::HashtableInterface_DenseHashtable<int, int, kEmptyInt, {anonymous}::Hasher, {anonymous}::Negation, {anonymous}::SetKey<int, {anonymous}::Negation >, {anonymous}::Hasher, {anonymous}::Alloc >]’:
src/hashtable_test.cc:571:1:   required from ‘{anonymous}::TEST_onetype_HashtableIntTest_Typedefs::TEST_onetype_HashtableIntTest_Typedefs() [with TypeParam = google::HashtableInterface_DenseHashtable<int, int, kEmptyInt, {anonymous}::Hasher, {anonymous}::Negation, {anonymous}::SetKey<int, {anonymous}::Negation >, {anonymous}::Hasher, {anonymous}::Alloc >]’
src/hashtable_test.cc:571:1:   required from here
src/hashtable_test.cc:577:32: warning: variable ‘kt’ set but not used [-Wunused-but-set-variable]
typename TypeParam::key_type kt;
^~
src/hashtable_test.cc:583:33: warning: variable ‘st’ set but not used [-Wunused-but-set-variable]
typename TypeParam::size_type st;
^~

In short, variable kt and st are specified but never used.

repo: qwertycoin-org/qwertycoin


text:
Use link to hyperSpec class in @return

For functions, that return hyperSpec object, use link to hyperSpec class as follows:
#' @return [hyperSpec][hyperSpec::hyperSpec-class()] object.

Just a quick comment about this issue. I recently learned and began using @template for documentation that occurs a lot of places and which one might want to fine tune or change from time-to-time.  Very handy. Described here.

authors: GegznaV bryanhanson


text:
Search feature returns some tracks that don't have the icons/buttons row below track bar

Soundcloud-ngrx version: 0.4.0
OS Version: Windows 10 Pro
When I search for songs or click on an artist's name,  sometimes the returned list of songs contains a track that is missing the row of icons below the track's waveform bar.  I am referring to the row of icons that include the play button, favorites count etc.

Hi @Plex4000 — some tracks on SoundCloud do not support streaming. The row of icons is not displayed for those tracks.

repo: r-park/soundcloud-ngrx


text:
Cookie request header could be in mixed case

Google Chrome "cookie" is lower case and the re.search doesn't find it.

Support for mixed case request header.

@gerovan i 'm working on some upgrades which also have a fix for this. so i 'm closing this PR.


text:
🛑 Home Assistant is down

In bae45ce, Home Assistant ($SECRET_SITE_HA) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Home Assistant is back up in c296361.


text:
🛑 heat-api is down

In bc9efac, heat-api (https://heat.api.sjc3.rackspacecloud.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: heat-api is back up in 749ff1d after 4 minutes.

repo: rackerlabs/rs-flex-uptime


text:
Test makePath with optional trailing slash (failing test)

Causes tests to fail, illustrating issue #768
This probably deserves a new test scenario, but there are a lot of edge cases that currently aren't being tested for makePath().

awesome, thanks. this was fixed by 5bcf6536a89c28640889c61fb4f60cd24a7b888f

authors: aldendaniels ryanflorence

repo: rackt/react-router


text:
A way to get data state in JSON format?

Hallo!
I'm trying to tie together Ractive with a Backbone Model.
Since the adaptor doesn't really work that well: https://github.com/ractivejs/ractive/issues/1877, I passed a JSON object to the Ractive instance instead (model.toJSON()).
I have a form on the page that updates some data. I need to get that changed data back to set on a model and call model.save()
If I simply call ractive.get() it returns entire template context with additionally set properties, helpers and everything else. Is there a way to get simple JSON without all the clutter?
As if this moment I have to do the following:
data = {}
    for input in @$inputs
      data[input.name] = input.value

    @fire('submit', data)

That's a bit tedious to do all the time and kind-of defeats the purpose of having ractive in the first place...

Use a key on the data object to isolate your model
data: {
    myModel: json
}

ractive.get('myModel')

But then I'll have to prefix everything in the view with myModel.
Oh :(

But then I'll have to prefix everything in the view with myModel.

{{#with myModel}}

<!-- no prefixes needed here -->

{{/with}}

legit! thanks @martypdx

authors: martypdx suprMax

repo: ractivejs/ractive


text:
Typings  on later versions

Now there are only ts declarations for 0.7 version. It will be nice if it appears for  0.8, 0.9 or edge

Looks like a duplicate of https://github.com/ractivejs/ractive/issues/2969
Yep, we're trying to update it. 😄

authors: enneid fskreuz


text:
[WIP] KVO support.

Supersedes #118 and #67. Fixes #87.
This is just a beginning and big WIP, but wanted to upload it so people know it's happening 🎉

Interesting @f-meloni would you have a second to take a look at this? For some reason danger-swift cannot parse the swiftlint result, but I'm not sure why, maybe you'll have an idea.

Yep will have a look tomorrow morning :)

Oh that would be awesome! Thanks!

Worked 🎉

Perfect! Thanks for the help @f-meloni, means a lot :) Probably would spend few more hours to realize that something messed up with the Swiftlint output 🤦♂

No problem, happy to help :)

Seems to be working, just need to update documentation and we are good to go. Gonna do that tomorrow! 🎉

authors: f-meloni sunshinejr

repo: radex/SwiftyUserDefaults


text:
macOS Sierra: Error loading library

After having updated to macOS Sierra, Radiant Player can't load my library.

+1 same issue

Might be a duplicate of #600 .. Not too sure

Enabling the use of Safari cookies mentioned in #600 fixed the issue for me. The exact comment is https://github.com/radiant-player/radiant-player-mac/issues/600#issuecomment-247295337

Yup, enabling Safari's cookies worked for me too. Thanks!

Please note that while the comment @xrubioj linked to has a working download, there is a v2 of it with more fixes down below at https://github.com/radiant-player/radiant-player-mac/issues/600#issuecomment-247714939

A PR will be submitted today didn't have time the last few days but it will be PR'ed today sorry about the wait.

PR has been submitted once @jacobwgillespie or someone from the Radiant Player Team hops on and merges the changes a new version will be out :)

@mordocai You're right, I saw the big chunk of code in this comment and I missed the download link. ;)

This should be resolved by v1.11.0.

Yay! It's working for me. Set the cookie store back to application internal one and works perfectly. Thanks!

authors: BarakaAka1Only donlion jacobwgillespie milansamardzic mordocai noahjensen xrubioj

repo: radiant-player/radiant-player-mac


text:
System admin training doc

System admin training doc
!story G18.6
!component docs

Will use the User Guide to build slides for brief

repo: radiantbluetechnologies/ossim-geotools


text:
NERSC: HYDU_create_process (utils/launch/launch.c:75): execvp error on file srun (No such file or directory)

Testing on NERSC has shown that running completely in Shifter may not be possible with libEnsemble.
If rsopt is started within a Shifter container and the job requires MPI then libEnsemble will try to use mpirun, but it appears MPI commands cannot originate within a Shifter container and a command like:
mpirun -machinefile machinefile_autogen_for_worker_2_task_0 -np 1 --ppn 1 elegant fodo_opt.ele

gives the error:
[mpiexec@nid02304] HYDU_create_process (utils/launch/launch.c:75): execvp error on file srun (No such file or directory)

One possible solution is just to install rsopt and dependencies (Sirepo and libEnsemble) natively and have libEnsemble include shifter in the launch command. This shouldn't be hard to implement (though I haven't tried installing Sirepo at NERSC) but does mean users will need to install more software.
Do you have any suggestions on this issue @robnagler ?

I think we could install SLURM in the docker image. This would allow srun to work, I think, unless uses a modified SLURM. I'll ask NERSC if they have any suggestions

I started testing an approach inspired by https://docs.nersc.gov/development/shifter/how-to-use/#multiple-shifter-images-in-a-single-job. I use a stripped down version of https://github.com/cchall/simpleserver that just executes shell commands it is sent. This runs natively with the idea that rsopt/libEnsemble manager could be launched in one container and the libEnsemble executor would send commands srun -w node ... shifter ...  etc to start up new containers as needed.
Basic idea works on a login node, but I haven't done the real test yet with a compute allocation.

I did try just running rsopt natively first and having the executor launch jobs with shifter. However, the Sirepo installation was problematic. Trying pip install . --user gave an error and trying to just add sirepo to my path failed because of the sdds dependency.

This is a security problem. You need have some type of authentication. Just pass a secret key know to both the client and a server, for example.
You probably just want to use JSONL to communicate with the server. That's how the sirepo job supervisor talks to the agents. It'll be a lot simpler than the argparse approach.
You should be able to reach the login node that the simple server is running on, but you'll need to program that address.

We use pyenv on Cori. See this installer https://github.com/radiasoft/download/blob/master/installers/nersc-sirepo-update/radiasoft-download.sh
For sirepo, you should run it this way:
SIREPO_FEATURE_CONFIG_SIM_TYPES=myapp sirepo

This will avoid any code imports.

authors: cchall robnagler

repo: radiasoft/rsopt


text:
Memory requirements?

In performing my JOSS review (https://github.com/openjournals/joss-reviews/issues/6898), I have having issues running the NIRISS notebook.  I keep running out of memory on my 64 Gb machine.  Is this expected?  What are the memory requirements for this notebook/reducing TSO data.  I'm not an exoplanet researcher so maybe this is obvious if I was, regardless might be good to document this at least.

Just to clarify, you mean memory as in RAM, and not storage space correct?
In any case, TSO data, particularly from NIRISS is large. Individual segments are often >8GB. So if its storage that you mean, then I'm not surprised that you run out after completing the notebook.
I've never run into memory issues, though I normally (and I think this is standard practice) reduce my observations on a cluster as opposed to a laptop. What step is failing for you, and I can look into it?

Yes, I mean RAM.  A number of the steps are causing the kernel to crash.  I'll try the NIRSpec notebook next.  All looks good, but would be fun to get one of the notebooks to finish.  Maybe you can come up with a smaller example, that would likely be good for other users as well as myself and my "small" amount of RAM.  Hah!

Yeah, I have the same issue running on my 16GB laptop, some steps will require too much memory and crash.
Honestly, I think this is just an unavoidable facet of reducing TSO data, particularly from NIRISS which are the largest of all.
I'll make a note in the documentation that the memory requirements of a laptop are likely not going to be enough to run the notebook (and analyze any other observations).
I could, in theory, make a smaller dataset that could be reduced on a laptop. However, I don't think this would be worthwhile for a couple of reasons:
First, I've tried to structure the notebooks for this package (and my related exoUPRF package) such that a user is able to reproduce the WASP-39b results that we published last year. These are the first exoplanet results from JWST, and are extremely well known in the field. As such, I believe it has a lot of pedagogical value to use this data for the tutorial.
Second, as I mentioned above, in order to reduce any real observations, a user will most likely need to switch to a cluster. So I don't see too much value in testing out the code on your laptop with a fake dataset, then having to move to a cluster for real observations. In theory you'd need to re-run through the notebooks again to make sure everything works in the new installation.
I'll make a note to try and reduce the memory requirements wherever possible, such that, perhaps, things can be run on a laptop. But I don't think this is super high-priority.
Thoughts?

All good thoughts.  I do agree that reducing the memory use would be good.  I did notice that there was a case where the pipeline step ran fine, but then creating the diagnostic image/plot seemed to crash things.  Maybe this is just too much on top of already running the pipeline.  Or maybe this is keeping the large data in memory instead of using the disk.  Regardless, I agree with your points.
Mentioning the memory needs is a good and reasonable solution.

Addressed in c1c959e.

authors: karllark radicamc

repo: radicamc/exoTEDRF


text:
🛑 GPS Receiver API is down

In f361fb6, GPS Receiver API (http://tracker.ace-energy.co.th/receiver/api/v1/health) was down:

HTTP code: 0
Response time: 0 ms

Resolved: GPS Receiver API is back up in d910942.

repo: radiuszon/upptime


text:
[Tooltip] Does not open/close on mobile devices (iOS)

Bug report
Current Behavior
The tooltip component does not open/close on iOS Safari. It works in mobile emulation mode in Chrome Dev tools but not on the actual device. Tapping the trigger does not open any tooltip.
Expected behavior
The tooltip should open and close when the trigger is tapped. (Ideally, all primitives would behave on mobile as they do on desktop.)
Reproducible example
The Radix Documentation
https://user-images.githubusercontent.com/2600729/180950707-7f606fd3-4318-449b-89dd-a6c4c102ff52.MOV
Additional context

Your environment
Since this issue can be recreated on your documentation page, i figure you already have environment details.

Software
Name(s)
Version

Radix Package(s)
react-tooltip
1.0

React
n/a

Browser

Assistive tech

Node
n/a

npm/yarn

Operating System
iOS
15.5

Hi @dimamarkus, thanks for raising but this is by design.

@andy-hook Excuse me, would like to ask, how to solve the problem of using and displaying Tootip on mobile terminal.

"Closes when the trigger is activated or when pressing escape." Or can I turn this feature off? @andy-hook

I've found a way to make it work perfectly for my needs, which are:

Keep the same hover functionality on desktop.
Do not enable on-click on desktop.
Enable on-click on mobile.

@matstyler solution worked, but it felt a bit hacky and did not allow me to customize the Trigger like I wanted.
First, create a context which we are going to use all across the Root component tree:

// tooltip-trigger-context.tsx
'use client';

import { createContext } from 'react';

type TooltipTriggerContextType = {
  open: boolean;
  setOpen: React.Dispatch<React.SetStateAction<boolean>>;
};

export const TooltipTriggerContext = createContext<TooltipTriggerContextType>({
  open: false,
  setOpen: () => {}, // eslint-disable-line
});

Then, utilize your context starting from the root:
const TooltipRoot: React.FC<TooltipPrimitive.TooltipProps> = ({ children, ...props }) => {
  const [open, setOpen] = React.useState<boolean>(props.defaultOpen ?? false);

  // we only want to enable the "click to open" functionality on mobile
  const { isMd } = useTwBreakpoint('md');

  return (
    <TooltipPrimitive.Root
      delayDuration={isMd ? props.delayDuration : 0}
      onOpenChange={(e) => {
        setOpen(e);
      }}
      open={open}
    >
      <TooltipTriggerContext.Provider value={{ open, setOpen }}>
        {children}
      </TooltipTriggerContext.Provider>
    </TooltipPrimitive.Root>
  );
};

And update your Trigger component as well:
const TooltipTrigger = React.forwardRef<
  React.ElementRef<typeof TooltipPrimitive.Trigger>,
  React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger>
>(({ children, ...props }, ref) => {
  const { setOpen } = React.useContext(TooltipTriggerContext);

  return (
    <TooltipPrimitive.Trigger
      ref={ref}
      {...props}
      onClick={(e) => {
        e.preventDefault();
        setOpen(true);
      }}
    >
      {children}
    </TooltipPrimitive.Trigger>
  );
});

  const { isMd } = useTwBreakpoint('md');

Just as an improvement suggestion, I don't know what your hook here is referencing but if it is using a media query you should consider using hover instead. Not all devices below an arbitrary breakpoint are touch devices and same goes the other way

Still happening today

FWIW, here's mine that checks for :hover support instead of TW breakpoint:
export default function useHasHover() {
  try {
    return matchMedia('(hover: hover)').matches
  } catch {
    // Assume that if browser too old to support matchMedia it's likely not a touch device
    return true
  }
}

Thank you providing your solution @askorupskyy 🙌

authors: andy-hook chrispollock darkdx dimamarkus mikker rcbxd suitux

repo: radix-ui/primitives


text:
[Feature]: Allow ToastViewport label to take a function as a prop

Describe the feature
The default implementation forces me to use '{hotkey}' for interpolation. However, when used like this with vue-i18n, the library assumes this is a parameter of a message meant to passed with the $t function. I suggest label prop also accepted a function with hotkey a parameter, so I can use it with vue-i18n.
<ToastViewport :label="(hotkey) => $t('notifications.label', { hotkey })" />

Additional information

[X] I intend to submit a PR for this feature.
[ ] I have already implemented and/or tested this feature.

Okay, sorry. I've found out that the docs mention escaping the curly brackets, but I still think it would be nice to have more control over how the label is generated.

repo: radix-vue/radix-vue