SIGSEGV, Segmentation fault when trying to open a non-zst file

When opening an .xz file with IndexedZstdFile, in order to check for exceptions, no exceptions is thrown, however when trying to read one byte, it will segfault! This should be detected and an exception should be thrown.
Consider this:
gdb --args python3 -c '
    from indexed_zstd import IndexedZstdFile
    f = IndexedZstdFile( "tests/simple.xz" )
    print( "Opened File!" )
    f.read( 1 )
'

I'll get this output:
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python3...
(No debugging symbols found in python3)
(gdb) r
Starting program: /usr/bin/python3 -c from\ indexed_zstd\ import\ IndexedZstdFile\;\ f\ =\ IndexedZstdFile\(\ \"tests/simple.xz\"\ \)\;\ print\(\ \"Opened\ File\!\"\ \)\;\ f.read\(\ 1\ \)
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Opened File!

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff73dc7d1 in ZSTDSeek_getJumpCoordinate (sctx=sctx@entry=0x9a3ef0, uncompressedPos=1048576) at indexed_zstd/libzstd-seek/zstd-seek.c:192
192	indexed_zstd/libzstd-seek/zstd-seek.c: No such file or directory.
(gdb) bt
#0  0x00007ffff73dc7d1 in ZSTDSeek_getJumpCoordinate (sctx=sctx@entry=0x9a3ef0, uncompressedPos=1048576)
    at indexed_zstd/libzstd-seek/zstd-seek.c:192
#1  0x00007ffff73dcacd in ZSTDSeek_read (sctx=0x9a3ef0, outBuffSize=1048576, outBuff=0x7ffff6dc1010) at indexed_zstd/libzstd-seek/zstd-seek.c:325
#2  ZSTDSeek_read (outBuff=0x7ffff6dc1010, outBuffSize=1048576, sctx=0x9a3ef0) at indexed_zstd/libzstd-seek/zstd-seek.c:319
#3  0x00007ffff73d4bee in ZSTDReader::read (this=<optimized out>, this=<optimized out>, outputFileDescriptor=-1, nBytesToRead=<optimized out>,
    outputBuffer=<optimized out>) at indexed_zstd/ZSTDReader.hpp:197
#4  __pyx_pf_12indexed_zstd_16_IndexedZstdFile_12readinto (__pyx_v_self=0x7ffff7483f90, __pyx_v_bytes_like=<optimized out>)
    at indexed_zstd/indexed_zstd.cpp:2216
#5  __pyx_pw_12indexed_zstd_16_IndexedZstdFile_13readinto (__pyx_v_self=0x7ffff7483f90, __pyx_v_bytes_like=<optimized out>)
    at indexed_zstd/indexed_zstd.cpp:2152
#6  0x00000000005c4b10 in ?? ()
#7  0x00000000005f4ca1 in ?? ()
#8  0x00000000005f57c0 in PyObject_CallMethodObjArgs ()
#9  0x000000000064db5d in ?? ()
#10 0x000000000064dc32 in ?? ()
#11 0x000000000064f425 in ?? ()
#12 0x0000000000504743 in ?? ()
#13 0x000000000056b399 in _PyEval_EvalFrameDefault ()
#14 0x000000000056955a in _PyEval_EvalCodeWithName ()
#15 0x000000000068c4a7 in PyEval_EvalCode ()
#16 0x000000000067bc91 in ?? ()
#17 0x000000000067bd0f in ?? ()
#18 0x000000000067bf1f in PyRun_StringFlags ()
#19 0x000000000067dc8f in PyRun_SimpleStringFlags ()
#20 0x00000000006b60ec in Py_RunMain ()
#21 0x00000000006b63bd in Py_BytesMain ()
#22 0x00007ffff7dd60b3 in __libc_start_main (main=0x4eea30 <main>, argc=3, argv=0x7fffffffd798, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7fffffffd788) at ../csu/libc-start.c:308
#23 0x00000000005fa4de in _start ()

Thanks for testing this!
It's a regression introduced when I separated the creation of the jump table in libzstd-seek.
I've added a check to read the first frame header. If it's not valid now it doesn't initialize the seek context and the expected exception is thrown.
And.. I've just discovered that github close the issue automatically if the commit message have the word "fix" follower by the issue number.
This weekend I'm going to stress test this library. I have a lot of edge cases including corrupted zstd files, files that starts with valid frames and are followed by garbage and so on.

Thanks for the fast fix. Seems to work now.

And.. I've just discovered that github close the issue automatically if the commit message have the word "fix" follower by the issue number.

"Closes" should also work but I think it only actually closes it, if you push it to your main branch, i.e., by default "master". So you can push commits like this to the develop branch and on merging the pull request, the issue gets closed.

So you can push commits like this to the develop branch and on merging the pull request, the issue gets closed.
Nice, I didn't know that. I'm going to test it the next time, thanks!


Multiple Months Visible At Once

Hey, this is a wonderful calendar! Much appreciated.
Is there a way to show multiple months at once? Right now, every month section occupies the entirety of the calendar view frame.
I want it much like Apple's iOS Calendar App (See image).

It is located in the documentation section here -> https://patchthecode.github.io/CommonQuestions/
If youre still stuck let me know.

Right! I'm sorry I didn't' check the questions before posting.
Thanks a lot for responding!
It worked well..

awesome! cool. Have a good one

@patchthecode I want to achieve the same thing. Can you please check the common Questions link - Its not working.
https://patchthecode.github.io/CommonQuestions/

@taimur link is dead.
ok. to accomplish this, just decrease the size of the cell.
The smaller the cell size, the more months fit on the screen.
calendarView.cellSize = x


Making ContactUs Section fully responsive

Is your feature request related to a problem? Please describe.
Currently ContactUs is not responsive in small devices, I will enhance its responsiveness across all devices.

@Priyaaa1 can you please assign this issue to me


AddParameters

https://www.iab.com/wp-content/uploads/2016/04/VAST4.0_Updated_April_2016.pdf

Need AdParameters in Linear

okay LGTM :-)

LGTM 👍


omopso example does not work in release 1.7.0

AttributeError: 'FloatSolution' object lacks the attribute 'number_of_objectives.'
This error arises when executing the omopso_zdt1.py example in release 1.7.0. It appears that the issue originates from modifications made to the solution class in jmetal/core/solution.py.
In the omopso.py file, the 'number_of_objectives' attribute is referenced by various functions, including update_velocity and update_position, as part of the solution class. I conducted a test with release 1.6.0, and the example functioned correctly.

Dear Nebro,
Thank you. It is working now.
Best regards,
Mehran
On Mon, Sep 2, 2024 at 1:21 PM Antonio J. Nebro @.***>
wrote:

I have fixed some errors in OMOPSO. The algorithm should work now.
—
Reply to this email directly, view it on GitHub
https://github.com/jMetal/jMetalPy/issues/175#issuecomment-2324309711,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BKTLEH36J3NFIIGMCTJLLI3ZUQYJFAVCNFSM6AAAAABNCRW3WSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRUGMYDSNZRGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Mehran Sanjabi


fixes speech sample README links

Do you prefer having the full URL in the PHP doc? Can it be something like "refer to the README.md in this directory" or something? Whenever you change the directory structure, it will break again.

We could have something like "see the README in the root of this project." but I think that is less convenient than providing the link directly.

LGTM go ahead


Can I use two language in one code highlighting?

Hi!
My question is simple. Can I use two language in one code highlighting? I want to use php code and html code in one code highlighting.
Thank you.

Hi,
short answer: currently not possible
hybrid code support is projected for EnlighterJS v3.1...3.3 - i'm currently working on the v3.0 release - it will take some time until the feature will become available
best regards, Andi

Ohh..
I will waiting for that feature. Thank you very much.


Exception NameError: "global name 'FileNotFoundError' is not defined"

Hi, running the following command on Ubuntu 16.04:
python train.py cfg/ape.data cfg/yolo-pose.cfg backup/ape/init.weights
and getting:
/home/user/.local/lib/python2.7/site-packages/torch/cuda/__init__.py:114: UserWarning:
    Found GPU0 TITAN V which requires CUDA_VERSION >= 9000 for
     optimal performance and fast startup time, but your PyTorch was compiled
     with CUDA_VERSION 8000. Please install the correct PyTorch binary
     using instructions from http://pytorch.org

  warnings.warn(incorrect_binary_warn % (d, name, 9000, CUDA_VERSION))
2018-07-11 13:05:37 epoch 0, processed 0 samples, lr 0.000100
Exception NameError: "global name 'FileNotFoundError' is not defined" in <bound method _DataLoaderIter.__del__ of <torch.utils.data.dataloader._DataLoaderIter object at 0x7f5b7db5b8d0>> ignored
Traceback (most recent call last):
  File "train.py", line 399, in <module>
    niter = train(epoch)
  File "train.py", line 89, in train
    output = model(data)
  File "/home/user/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 491, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/user/workspace/singleshotpose/darknet.py", line 91, in forward
    x = self.models[ind](x)
  File "/home/user/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 491, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/user/.local/lib/python2.7/site-packages/torch/nn/modules/container.py", line 91, in forward
    input = module(input)
  File "/home/user/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 491, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/user/.local/lib/python2.7/site-packages/torch/nn/modules/conv.py", line 301, in forward
    self.padding, self.dilation, self.groups)
RuntimeError: CUDNN_STATUS_EXECUTION_FAILED

Any thoughts?

Are you using pytorch 0.3 or 0.4? The code is based on pytorch 0.3 and there seems to be some incompatibility issues with version 0.4.

Downgrading it to 0.3 solved the problem.


searchContractMetadata results very inconsistent / unreliable

[REQUIRED] Environment

Browser version: Chrome 116.0.5845.96 (Arm64)
Alchemy SDK version: 2.10.0

[REQUIRED] Describe the problem
Results for searchContractMetadata are wildly inconsistent for queries of different length.
Phrase: 'dead'
Results: 20+, including DeadFellaz, DeadFrenz, DeadFrenz Pass
Phrase: 'deadf' (should return DeadFellaz, DeadFrenz, DeadFrenz Pass)
Results: 0
Phrase: 'degen'
Results: 20+, including Degenz
Phrase: 'degenz'
Results: 0
Here's a Loom
How to reproduce:
This behaviour is present on the v3 reference page
Relevant code or sample repro:
import { NftContract } from 'alchemy-sdk'

import { alchemyService } from '@/services'

export async function alchemySearchContractMetadata({
  searchQuery,
  chainId
}: {
  searchQuery: string
  chainId?: number
}): Promise<{ contractMetadata: NftContract[] }> {

  try {
      const contractMetadata: NftContract[] = await alchemyService({chainId}).nft.searchContractMetadata(searchQuery)
    return {
      contractMetadata
    }
  } catch (error) {
    console.error(error)
  }

  return {
    contractMetadata: [] as NftContract[]
  }
}

@bjfresh thanks for filing an issue! We're aware of this inconsistent search performance. It's on the backlog, but not currently prioritized. I'll keep this issue open and update it when we do work on it.

Not stale

Not stale

Not stale

Not stale

Not stale


macOS镜像下载后无法打开，只有75k

如题，您好，请问是镜像问题还是我下载的问题？可否更新一下镜像？谢谢。Nice work。

are you on 64-bit? which MacOS? You can also download Qt and compile directly.


Other Providers

Could you add to readme those providers please
https://github.com/hybridauth/hybridauth/tree/90d8b41955853a03555e024428ca8fb3d3a1fdc9/src/Provider

Nope, I am not going to duplicate Hybridauth docs. People can just follow link to it and read on it's repo.


[DNM] Compaction failure with partial updates

Change Logs
Describe context and summary for this change. Highlight if any code was copied.
Impact
Describe any public API or user-facing feature change or any performance impact.
Risk level (write none, low medium or high below)
If medium or high, explain what verification was done to mitigate the risks.
Documentation Update
Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none".

The config description must be updated if new configs are added or the default value of the configs are changed
Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
ticket number here and follow the instruction to make
changes to the website.

Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

The compaction and clustering on partial updates introduced in Hudi 1.0 are fixed by #12390 and #12426 .


[Question] Instructions to build a custom image?

I've tried to build a custom ISO (to embed k3os config/firmware) due to there being 0 bytes free in the image -- otherwise, I'd just edit the image. However, I cannot figure out how to do this on OSX and the docs don't give many details.

u may check the https://github.com/harvester/harvester-installer and run make to build your custom ISO, however, because we are using the containerd which is currently not supported in the macOS so u may need to make the create via a VM like Ubuntu to run the build with tools like Virtualbox.

Ah, I saw the HFS partition and assumed a mac was needed. Worked like a charm on a Linux machine!


[Bug] ImportError : cannot import name 'gemma_fused_add_rmsnorm' from 'flashinfer.norm'

Checklist

[ ] 1. I have searched related issues but cannot get the expected help.
[X] 2. The bug has not been fixed in the latest version.
[ ] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
[ ] 4. If the issue you raised is not a bug but a question, please raise a discussion at https://github.com/sgl-project/sglang/discussions/new/choose Otherwise, it will be closed.
[ ] 5. Please use English, otherwise it will be closed.

Describe the bug
I have installed flashinfer-0.1.6;
But only "rmsnorm" and "fused_add_rmsnorm" methods are available here (norm.py).
Reproduction
python3 -m sglang.launch_server --model-path /home/models/deepseekcoder-6.7b-base/ --port 30000
Environment
/usr/local/lib/python3.9/site-packages/pydantic/_internal/_config.py:341: UserWarning: Valid config keys have changed in V2:

'underscore_attrs_are_private' has been removed
warnings.warn(message, UserWarning)
Python: 3.9.9 (main, Feb 28 2023, 12:44:34) [GCC 10.3.1]
CUDA available: True
GPU 0,1: NVIDIA A100-PCIE-40GB
GPU 0,1 Compute Capability: 8.0
CUDA_HOME: /usr/local/cuda
NVCC: Cuda compilation tools, release 12.4, V12.4.99
CUDA Driver Version: 550.107.02
PyTorch: 2.4.0+cu121
sglang: 0.3.0
flashinfer: 0.1.6
triton: 3.0.0
transformers: 4.44.2
requests: 2.32.3
tqdm: 4.66.5
numpy: 1.26.4
aiohttp: 3.10.5
fastapi: 0.114.0
hf_transfer: 0.1.8
huggingface_hub: 0.24.6
interegular: 0.3.3
packaging: 24.1
PIL: 10.4.0
psutil: 6.0.0
pydantic: 2.9.1
uvicorn: 0.30.6
uvloop: 0.20.0
zmq: 26.2.0
vllm: 0.5.5
multipart: 0.0.9
openai: 1.44.1
anthropic: 0.34.2
NVIDIA Topology:
GPU0    GPU1    NIC0    NIC1    CPU Affinity    NUMA Affinity   GPU NUMA ID
GPU0     X      SYS     SYS     SYS     12-17,60-65     2               N/A
GPU1    SYS      X      SYS     SYS     36-41,84-89     6               N/A
NIC0    SYS     SYS      X      PIX
NIC1    SYS     SYS     PIX      X

Legend:
X    = Self
SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
PIX  = Connection traversing at most a single PCIe bridge
NV#  = Connection traversing a bonded set of # NVLinks
NIC Legend:
NIC0: rocep1s0f0
NIC1: rocep1s0f1
ulimit soft: 65535

ref https://github.com/flashinfer-ai/flashinfer/actions/runs/10582649299
commit ac41d1b

ref https://github.com/flashinfer-ai/flashinfer/actions/runs/10582649299 commit ac41d1b

I didn't understand, could you explain it in more detail？


A warning and two syntax errors

pygmy ➜  ~  dropcaster
DEPRECATION WARNING: this file is deprecated and will be removed. (called from require at /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36)
/home/andrej/.rvm/gems/ruby-2.1.0/gems/dropcaster-0.0.4/lib/dropcaster/channel.rb:156: warning: else without rescue is useless
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': /home/andrej/.rvm/gems/ruby-2.1.0/gems/dropcaster-0.0.4/lib/dropcaster/channel.rb:151: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError)         when nil   : nil                     ^ /home/andrej/.rvm/gems/ruby-2.1.0/gems/dropcaster-0.0.4/lib/dropcaster/channel.rb:153: syntax error, unexpected keyword_when, expecting keyword_end         when false : 'No'             ^ /home/andrej/.rvm/gems/ruby-2.1.0/gems/dropcaster-0.0.4/lib/dropcaster/channel.rb:159: syntax error, unexpected keyword_end, expecting $end 	from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /home/andrej/.rvm/gems/ruby-2.1.0/gems/dropcaster-0.0.4/lib/dropcaster.rb:15:in <top (required)>' 	from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require' 	from /home/andrej/.rvm/gems/ruby-2.1.0/gems/dropcaster-0.0.4/bin/dropcaster:28:in <top (required)>'
from /home/andrej/.rvm/gems/ruby-2.1.0/bin/dropcaster:19:in load' 	from /home/andrej/.rvm/gems/ruby-2.1.0/bin/dropcaster:19:in '
from /home/andrej/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks1.9.1:15:in eval' 	from /home/andrej/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks1.9.1:15:in '
pygmy ➜  ~  gem list
*** LOCAL GEMS ***
activesupport (4.0.2)
atomic (1.1.14)
bundler (1.5.2)
bundler-unload (1.0.2)
dropcaster (0.0.4)
executable-hooks (1.3.1)
gem-wrappers (1.2.4)
i18n (0.6.9)
minitest (4.7.5)
multi_json (1.8.4)
ruby-mp3info (0.8.3)
rubygems-bundler (1.4.2)
rvm (<IP_ADDRESS>)
thread_safe (0.1.3)
tzinfo (0.3.38)

Is this issue still present? I just tried the latest Ubuntu 14.04 with Ruby 2.2, and it seems to work flawlessly.
If it doesn't for you, could you please run the VM described in this Vagrantfile, and compare it to your environment?
Thanks!

I tested it the other day. Yes, present and kicking on Mac OS X, CentOS and Ubuntu. I will test the vagrant set up and report back.

I tested it and it works in the vagrant box. I checked it on my Ubuntu box. It seems like libxml2-dev was not installed. I installed it, it made no difference for my error initially. But if I test it now with the self-compiled version, I get an error unrelated to dropcaster (Complains about a VBR header).
Testing it on my Mac, I deleted all gems for the ruby 2.1.0p0 version and used gem install dropcaster --pre.  I get the following loading errors:

Bundler
active_support/core_ext/logger

After installing these with gem, the gem install dropcaster --pre does the trick on my Ubuntu and Mac. The last time I tested it was about a month ago. I still had the error back then. So, I suppose that some of the recent commits fixed it.  I still get the active_support error if I do not use the pre-flag on all machines.
From my point of view, the ticket can be closed, but it feels strange for me to not have really figured out the cause.

Thanks for testing this. Yes, I updated a whole bunch of dependencies recently. I will add some notes on the runtime dependencies (libxml etc). Simply installing the gem should probably pull in all Ruby dependencies automatically.


mediapipe.autoFlip error - Segmentation Fault : 11 when running the autoflip example multiple times.

I've followed the installation steps for autoflip and build it using the following command:
bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 mediapipe/examples/desktop/autoflip:run_autoflip
I ran the autoflip example by specifying the input & output file locations using command:
GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/autoflip/run_autoflip \   --calculator_graph_config_file=mediapipe/examples/desktop/autoflip/autoflip_graph.pbtxt \   --input_side_packets=input_video_path=/absolute/path/to/the/local/video/file,output_video_path=/absolute/path/to/save/the/output/video/file,aspect_ratio=1:1
and I get the following error:

This issue appears more often when the you try to run the example multiple times. For this, I created a bash script which runs the example 5 times (which is why you see the error in above image referring to the bash script line where it failed).
Here is the link to the video file I used when running the example : https://github.com/keplerlab/katna/blob/master/tests/data/pos_video.mp4
Below are the system details:
OS : MacOS Catalina (v 10.15.7),
Memory : 16 GB,
openCV & bazel version -  OpenCV @ 3, bazel 4.0.0-homebrew

@ndimension, can you take a look at this issue when you have time. I believe the fix to https://github.com/google/mediapipe/issues/497 was fixed. This can be a new corner case?

@nitinkatyal1314 Assuming you are resolved, we are closing this issue. Please feel free to open, if the issue still persists and share the latest update.

@nitinkatyal1314 Assuming you are resolved, we are closing this issue. Please feel free to open, if the issue still persists and share the latest update.

The main issue is still there. As a workaround, I have added a configurable parameter (currently set to 3) in my code. If segmentation fault is encountered, the code re-runs the pipeline.
Opening the issue so it can be fixed.

Hi @nitinkatyal1314, Are you still looking resolution for the above query, Thanks!

i am also facing the same "segmentation fault" error. Any resolution yet ? This looks like same issue as well: https://githubmemory.com/repo/google/mediapipe/issues/2585

Hi, I am facing the same issue with Autoflip on Ubuntu 20.04

Facing the same issue on a few videos. The code works on some videos but throws "segmentation fault" for other videos. Is there any resolve for this issue?

I have found that reducing the number of threads reduces the probability of the problem to occur.
Running autoflip on linux with the following code appears to solve the problem but also reduces performance:
GLOG_logtostderr=1 taskset --cpu-list 0 bazel-bin/mediapipe/examples/desktop/autoflip/run_autoflip .....

I find that the segfault is caused by the cv2::kmeans method call at  https://github.com/google/mediapipe/blob/cc6a2f7af65977248b2a15f471503da2832f583a/mediapipe/examples/desktop/autoflip/calculators/border_detection_calculator.cc#L193
Other users also reported similar issues such as https://github.com/opencv/opencv_contrib/issues/2351. Updating the OpenCV dependency to a more recent version might be a valid workaround.

Thank you @jiuqiant for finding the location of the crash.  In the short term, another workaround is to not use the BorderDetectionCalculator since it is an optional input to SceneCroppingSalculator.  Removing it from the graph may stop the crash, however if the video has black bars on the top/bottom they will not be removed by autoflip as this is handled  by the border_detection_calculator.cc.
Some older video content has black bars burned directly into the video but it is not typical to do this with modern videos.  You may consider weather you need the BorderDetectionCalculator for your specific use case.

This may address your issue. Please take a look.
https://github.com/google/mediapipe/issues/2822#issuecomment-1098249400


Add probe-image-size

https://github.com/nodeca/probe-image-size
This package is useful for content generation, when you need to quickly detect the size of remote images. It starts download and immediately stops when got enougth info to detect image type and size.
We did it, because alternate implementations are outdated (fewer types support / pending PRs / memory use / ...). I think, this one is the most comfortable for developpers.

Thanks! Updated.


Blog app - Add forms

In this pull request,I

[ ] Create current_user method in the ApplicationController that returns the first user in the database

[ ] Create 'new' and 'create' routes for both posts and comments

[ ] Create a 'like' route for posts

[ ] Add forms to add both posts and comments

[ ] posts and comments are always created by the first user

[ ] Add button form to add likes to a post

@KayLemba , Thanks for taking your time to review my project

@KayLemba , Thanks for taking your time to review my project

Please join me on a zoom call


Wrong front matter interpretation

Description
The yamlfmt program does not evaluate the frontmatter correctly when already present in the yaml file and the formatter configuration specifies include_document_start with true.
The problem is evident when there are particular comments such as the vim modelines before the frontmatter, if the latter is moved to line 1 the modeline is not evaluated correctly by the editors.
Steps to play

Create a .yamlfmt configuration file and set the include_document_start option to true in the section formatter;
Create a yaml file with a modeline on line 1, the front matter on line 2 and arbitrary content starting from line 3.
Run yamlfmt on the created yaml file.

Expected behavior
If the front matter is already present in the file and preceded by comments, it should not be moved to the first line of the file.
If it is not present you should insert it after modelines or after all the initial comments before the first valid yaml line.
Scripts
echo "# vim: ft=yaml" > myfile.yaml
echo "---" >> myfile.yaml
echo "# My comment" >> myfile.yaml
echo "mycontent: yes" >> myfile.yaml
echo "formatter: {include_document_start: true}" > .yamlfmt
yamlfmt myfile.yaml

Environment details

Operating system: Ubuntu 22.04
Yamlfmt version: 0.10.0
Shell used: bash

This looks similar to #74. Similar to the other issues with the underlying yaml library, I'm not sure if I will be able to get to it anytime soon unfortunately.


Pretrained model link is not working

Hi, thank you for the great work! I would like to try this out but found the Google Drive link for downloading the pre-trained network model is invalid. Will you make it back online again? Thanks!
And also, not able to download the dataset. Can you please share both the links to train the model.
Thanks, in advance.
Kavitha

Hi Kavitha,
Thanks for your interest in our paper. If the links in the project are not working, please try the following links:
Dataset: https://drive.google.com/file/d/1gdcHCsT9vqz5G2xzVg0xq1LMKxtsx8vp/view
Pretrained model: https://drive.google.com/file/d/1nrD6Z82GwuOtErZs54owHEuOVCvx_nPl/view
They should work. Please let us know if there is still a problem. Thanks.


Runtime error messages contain no source information

I happen to run my JS code with jerry engine.
There are issues with the code (my bad), but all I get in the end is:
uncaughtException: ReferenceError: Cannot resolve reference.
That's it.
How do I get some information regarding error location?
File and line would be the bare minimum.
Column and identifier would help even more.
Getting some context would be extremely helpful, as I am likely to immediately see what is wrong.

Try to use the debugger: https://github.com/jerryscript-project/jerryscript/blob/master/docs/07.DEBUGGER.md
My first guess is a typo and you are trying to access a property of a null object. You might also interested in https://github.com/jerryscript-project/jerryscript/pull/1577
Currently line and column information is provided for parse errors only (if error messages are enabled).

We are planning to add a feature to the debugger which shows where the exception is thrown.

Hey @tadziopazur, now we're working on it. Recently opened a PR which has this feature, you can check it in #1693

The PR is merged, now you can use the debugger to capture exceptions.


remove time from Level 3

Maybe we can the 'interpolated time' dimension from level 3. it does not have much meaning anyway

I agree that it doesn't have any physical meaning, but it does indicate the "mean time" for when the bin was sampled. Having time information there, I think, might be quite useful in some cases. An example off the top of my head would be when we tried to get sounding value closest to the clouds we got from SpecMACS images.


[BUG] Visualizer "draw in maximum resolution" is broken

Describe the bug
The visualizer does not render when "draw in maximum resolution" is on.
It renders correctly when option is off.
To Reproduce
Steps to reproduce the behavior:

Check "draw in maximum resolution" under Preferences > Visualizer
Open the visualizer.

Expected behavior
The visualizer should be rendered in high resolution as in Wavetracker 1.0.1.
Desktop (please complete the following information):

OS: Windows 11 v23H2, x86-64
Version: WaveTracker 1.0.2 64-bit

Just noticed this myself! It broke with changes to the rendering system made in 1.0.2. I'm going to upload a patch shortly that fixes this. Thanks for letting me know.


New Release

The last pip release was 0.6.0 on October 4th: https://github.com/tensorflow/addons/releases
Would it be possible to get a new release, in particular one that includes the fix to https://github.com/tensorflow/addons/issues/703?

cc @seanpmorgan who might better answer when the next release will be.
We've removed the op that was causing the failure with nightly tensorflow in #710. Using the latest tfa-nightly and tf-nightly should work.

Using the latest tfa-nightly and tf-nightly should work.

It does, thanks! To clarify, I'm actually a developer on Tensorflow Federated, and we'd like to publish a new release. However, we have a dependency on Tensorflow Addons and don't want to change our published release to depend on a nightly version of tfa.

Hi @cramertj unfortunately we're unable to release a new version of TFA as we're now utilizing functionality from TF-Core that was unavailable in 2.0 (e.g. https://github.com/tensorflow/addons/pull/669):
https://colab.research.google.com/drive/1wZjKZISINcrEchnxx8cadwiv_M96hYib
As soon as we get a 2.1 release candidate we'll be publish a new TFA 0.7 and then increment minor versions as the full 2.1 release approaches.
Is there a particular feature that you're looking for since 0.6? #703 was just an issue for nightly building -- but if there was a specific feature you're missing we could cherry-pick it into a 0.6.1 release and push it this weekend.

If a cherry-picked 0.6.1 release is done, it would be nice if the fix for #675 is included!

Closing. See https://github.com/tensorflow/addons/issues/725.  We'll hopefully have the new release in the next few days.


Feature Request: Support for deltalake

Do you plan to support read (higher priority) and write of deltalake (https://delta.io/) file format? The format is built on top of parquet but supports versions that is useful for data scientist when testing their models as it allows them to use a static version of the data without copying it all over the place

Thanks for raising an issue @ksranga. I'm not familiar with deltalake. Where were you thinking it would fit into the existing API? For dask.dataframe we try to follow the pandas API as closely as possible. So if pandas had something like pd.read_deltalake(...) function, then it would be in scope for dask too.

(FYI @jrbourbeau Deltalake is a Databricks product.  There is some nominal OSS offering, but I don't think I've ever seen it used outside of Databricks).
@ksranga most solutions like this end up living slightly outside of the Dask project.  If you or someone around you is interested in creating a dask-deltalake OSS project I think that that would be great, and would certainly go a long way to ensuring that data stored in Deltalake can be ready by a variety of systems, rather than just Databricks.

@jrbourbeau - pandas does not support deltalake either.
Deltalake is gaining wider adoption on Azure as well as the spark community especially with the up coming release of Spark 3. So they do have a substantial and feature complete oss offering that you can find here https://github.com/delta-io/delta
I will touch base with a couple of engineers from Databricks regarding your suggestion to create a new project.

Thanks for the additional context @ksranga. I agree with @mrocklin that a seperate dask-deltalake (or some other name) package makes sense in this case and would be a valuable contribution to the OSS community. I'm going to close this issue for the time being, but do let us know if you, or anyone else, develops such a package. Thanks again for raising the issue!


prepare-iso.sh and El Cap Beta 8

Running the prepare-iso.sh script on the latest El Capitan Beta completes without errors, but the OS installer image is invalid. VMWare Fusion just boots to the "OMG I DON'T KNOW WHAT TO DO WHERE IS THE OS?" screen and trying to mount the DMG manually and install it in OSX nets the following error message:

I dug around in the script and in the .DMG but I'm not experienced enough with OSX to know what the trouble is / everything looked pretty normal when I compared it to the 10.10.x .DMGs that I've cooked with this process. Any help appreciated!

I've had the same issue, although I'm not surprised you get a weird error trying to run the installer from within another booted OS (it's really meant to be only a booted installer).
In the past I've been able to look at the "convert installer app" scripts used by Fusion and Parallels for hints on preparing an installer. So far I haven't narrowed down what's different between DP1 and the DP7 installer. The fact that it doesn't even boot suggests to me that there could actually be some different files between the two.
DP7 also introduced SIP-related tightening down of what's "allowed" as far as booting to other volumes goes. I should really hope that there isn't some EFI-related nvram "secure storage" logic that is making this harder, but it could be tangentially related.
So, more digging definitely necessary.

@timsutton Have you had any luck with figuring out the El Capitan issue? I'm hoping to use your scripts to create an El Capitan box ASAP to begin testing software/code on it.
Thanks

Even using createinstallmedia from the 10.11 installer doesn't create a bootable image.

Does AutoDMG work with El Cap? I don't have 10.11 installed on my machine yet so I'm unable to verify.
Not ignoring this problem, just in a little over my head in terms of how to help. I suspect I will learn a lot because of this little speed-bump!

AutoDMG definitely works with 10.11. So one alternative workflow would be to use chilcote/vfuse to convert an AutoDMG-built image into a VM, then use the vmware-vmx builder instead.
This would still require some additional packaging work to mimic the osx-vm-templates results exactly. Joe Chilcote may have some other repos/code that produce the requisite packages, though.
I still haven't had time to look into this deeply enough to understand why the approach we've been using doesn't seem to boot the image anymore. However it's possible that we may need to instead try an approach like what VMware does in their included conversion script - which does something similar, but in quite a different way.

I'll have to have one of my co-workers with Fusion 8 to give me a copy of that script so I can stare at it and stare at it and stare at it. Where does the script live in the Fusion App?

You'll find it at /Applications/VMware\ Fusion.app/Contents/Library/Create\ Mavericks\ Installer.tool - make sure to check the one that comes with 8.0.1, though.
This script was broken in 8.0.0 (where ironically, the fix was to steal the one from the Tech Preview that preceded 8.0.0).

Cool! I was able to pull that script down from a co-worker. Was about to post it here and then I realized VMWare probably would not like that (apparently I've been dealing with too many open source tools lately).

Probably not. The script also wouldn't exactly be a drop-in replacement for prepare_iso.sh - there are some approaches it takes that are quite different from those in my script, but I'm not sure whether such changes are really required.

This is a good exercise for me to actually understand what your script is doing, and then actually understand what the VMWare script is doing and then actually understand what OSX needs to be bootstrap'd - I've been using your project in production at my workplace but treating prepare_iso.sh as a grey box.

Looks like someone on macrumors was able to find a way to make a bootable ISO.

Thanks for linking this. I'd be interested to know what specifically about this process makes it work where prepare_iso.sh fails.
A couple ideas: 1) using asr restore instead of "directly" booting the dmg, or 2) the specific CDR master formatting of the ISO (again, instead of a vanilla HFS+ DMG, which VMware has always supported for the officially-supported Darwin guests and their EFI implementation).
Would love to test this, not sure I'll find time as soon as this week, though. If anyone wants to do more digging, that would be welcome!

On 14 Oct 2015, at 11:10, Timothy Sutton<EMAIL_ADDRESS>wrote:
Thanks for linking this. I'd be interested to know what specifically about this process makes it work where prepare_iso.sh fails.
A couple ideas: 1) using asr restore instead of "directly" booting the dmg, or 2) the specific CDR master formatting of the ISO (again, instead of a vanilla HFS+ DMG, which VMware has always supported for the officially-supported Darwin guests and their EFI implementation).
Would love to test this, not sure I'll find time as soon as this week, though. If anyone wants to do more digging, that would be welcome!

I've rebuilt prepare_iso.sh on the basis of that post. I have it working for 10.8 ... 10.11. Not tested 10.7. The issue isn't the CDR because I don't do that. In the interest of quick response, I've attached my version because it's incorporated into a bigger repo that I've not yet published.
Antony Blakey
Ph: +61 438 840 787
Success is not the key to happiness. Happiness is the key to success.
-- Albert Schweitzer

@AntonyBlakey It looks like your attachment got lost in the issue comments. Any chance you can post a link to it as a gist? I'd love to test it out.
Thanks

Seconded @AntonyBlakey - would looooove to check out your script.

https://gist.github.com/AntonyBlakey/e0116fe82e596c5005d8

On 15 Oct 2015, at 08:03, Lucius Bono<EMAIL_ADDRESS>wrote:
Seconded @AntonyBlakey - would looooove to check out your script.

Antony Blakey
Ph: +61 438 840 787
All that is required for evil to triumph is that good men do nothing.

Thank you! I look forward to checking this out tomorrow. Perhaps others will comment in the meantime.

@AntonyBlakey's script worked for me to boot up a 10.11 image.

Works for me too. Since Antony's script has a ton of small changes, I'd still like to identify what exactly is different about the process that was posted on the macrumors thread that makes it work. I'll start testing small changes, starting with using asr restore instead of the DMG copy, although that seems like an odd requirement to make this work.

I'm glad to send PR with the minimal changes, if you do not have much time on this.

Sure, if you can even verify what those changes actually are, that would be great!

It really seems to boil down to using asr to restore the BaseSystem. With these changes I get a bootable ElCapitan image.

On 16 Oct 2015, at 22:29, Claude Becker<EMAIL_ADDRESS>wrote:
It really seems to boil down to using asr to restore the BaseSystem. With these changes I get a bootable ElCapitan image.

This line:
umount /Volumes/OS\ X\ Base\ System/
won't work for 10.9 and prior, because they mount using a different name, as you can see in my script.
Note also that my script takes care to cleanup using traps - you might want to add that facility to your version as it's generally useful. With crashes in the script I found stuff chewing up lots of space in /tmp
Antony Blakey
Ph: +61 438 840 787
He who would make his own liberty secure, must guard even his enemy from repression.
-- Thomas Paine

I didn’t submit a PullRequest on purpose. This was only meant to illustrate a possible, smaller variant of changes to allow easier investigation.

On 16 Oct 2015, at 14:18, Antony Blakey<EMAIL_ADDRESS>wrote:

On 16 Oct 2015, at 22:29, Claude Becker<EMAIL_ADDRESS>wrote:
It really seems to boil down to using asr to restore the BaseSystem. With these changes I get a bootable ElCapitan image.

This line:
umount /Volumes/OS\ X\ Base\ System/
won't work for 10.9 and prior, because they mount using a different name, as you can see in my script.
Note also that my script takes care to cleanup using traps - you might want to add that facility to your version as it's generally useful. With crashes in the script I found stuff chewing up lots of space in /tmp
Antony Blakey
Ph: +61 438 840 787
He who would make his own liberty secure, must guard even his enemy from repression.
-- Thomas Paine
—
Reply to this email directly or view it on GitHub https://github.com/timsutton/osx-vm-templates/issues/40#issuecomment-148701866.

@upekkha Thanks for confirming the asr bit. I had a suspicion that was it, though it's curious that enough changed between DP1 and DP7 that using other standard disk image conversion methods no longer works. Maybe someday we'll find out why.
@AntonyBlakey Totally with you about using traps; I didn't start learning about those until long after I first wrote this script, and they're extremely useful for any script that involves mounting and converting DMGs.

Thank you @AntonyBlakey and @upekkha for your examples. Working fine here. Question for @AntonyBlakey:
May I incorporate a similar set of changes into the prepare_iso.sh script? I'd at least like to adopt the asr restore and the check for the differing volume names from <=10.9 and >=10.10, so a handful of lines. I'll otherwise keep the same structure in the script, and look at improving the cleanup later.

On 17 Oct 2015, at 02:57, Timothy Sutton<EMAIL_ADDRESS>wrote:
Thank you @AntonyBlakey and @upekkha for your examples. Working fine here. Question for @AntonyBlakey:
May I incorporate a similar set of changes into the prepare_iso.sh script? I'd at least like to adopt the asr restore and the check for the differing volume names from <=10.9 and >=10.10, so a handful of lines. I'll otherwise keep the same structure in the script, and look at improving the cleanup later.

Take whatever you want. I'm going to publish on github with packer setup for all the OS X and Windows versions that I've done for my employer (which is every non-EOL version of both OS's).
Antony Blakey
Ph: +61 438 840 787
The greatest challenge to any thinker is stating the problem in a way that will allow a solution
-- Bertrand Russell

@AntonyBlakey I'm looking forward to seeing that repo. I'm about to start working on Windows templates as well, so it'd be nice to have a good example to work from.

I've spent a lot of time automating everything. It was a lot of work.
Everything will be PD, so you can take what you want. I'll be publishing
tomorrow, Australian time.
On Saturday, 17 October 2015, Matthew Ahrenstein<EMAIL_ADDRESS>wrote:

@AntonyBlakey https://github.com/AntonyBlakey I'm looking forward to
seeing that repo. I'm about to start working on Windows templates as well,
so it'd be nice to have a good example to work from.
—
Reply to this email directly or view it on GitHub
https://github.com/timsutton/osx-vm-templates/issues/40#issuecomment-148775258
.

@AntonyBlakey Awesome thanks!
Not sure where my comment went :/

@AntonyBlakey: One other question: you also mention the cdrom sometimes being the first disk device here:
https://gist.github.com/AntonyBlakey/e0116fe82e596c5005d8#file-prepare_iso-sh-L233
Does this happen due to a particular configuration in your Packer/automation project? I haven't seen this happen before - though I can imagine it happening if there is some additional work you do in your template with the attached disk devices.

This has been soooooo enlightening thank you @AntonyBlakey. I've integrated
your script into my production test environment and we'll be able to deploy
El Cap VMs next week after I finalize some other tweaks. Comparing these
two scripts has really helped me understand this process better, and I'm
REALLY interested in your Windows deployments.
On Fri, Oct 16, 2015 at 11:52 AM Timothy Sutton<EMAIL_ADDRESS>wrote:

@AntonyBlakey https://github.com/AntonyBlakey: One other question: you
also mention the cdrom sometimes being the first disk device here:
https://gist.github.com/AntonyBlakey/e0116fe82e596c5005d8#file-prepare_iso-sh-L233
Does this happen due to a particular configuration in your
Packer/automation project? I haven't seen this happen before - though I can
imagine it happening if there is some additional work you do in your
template with the attached disk devices.
—
Reply to this email directly or view it on GitHub
https://github.com/timsutton/osx-vm-templates/issues/40#issuecomment-148805631
.

No idea - I got that bit from your script. I didn't clean up that section
much.
I'll add appropriate credit link BTW when I publish.
On Saturday, 17 October 2015, Timothy Sutton<EMAIL_ADDRESS>wrote:

@AntonyBlakey https://github.com/AntonyBlakey: One other question: you
also mention the cdrom sometimes being the first disk device here:
https://gist.github.com/AntonyBlakey/e0116fe82e596c5005d8#file-prepare_iso-sh-L233
Does this happen due to a particular configuration in your
Packer/automation project? I haven't seen this happen before - though I can
imagine it happening if there is some additional work you do in your
template with the attached disk devices.
—
Reply to this email directly or view it on GitHub
https://github.com/timsutton/osx-vm-templates/issues/40#issuecomment-148805631
.

All merged. Thanks!
@AntonyBlakey: Right, but my script makes the assumption that the HD is the first device. I was curious what cases caused you to have it as the second rather than the first. Maybe I'll see once your repo is published, though :)

For those interested: https://github.com/AntonyBlakey/packer-platforms

On 18 Oct 2015, at 00:39, Timothy Sutton<EMAIL_ADDRESS>wrote:
All merged. Thanks!
@AntonyBlakey: Right, but my script makes the assumption that the HD is the first device. I was curious what cases caused you to have it as the second rather than the first. Maybe I'll see once your repo is published, though :)
—
Reply to this email directly or view it on GitHub.

Antony Blakey
Ph: +61 438 840 787
A Man may make a Remark –
In itself – a quiet thing
That may furnish the Fuse unto a Spark
In dormant nature – lain –
Let us divide – with skill –
Let us discourse – with care –
Powder exists in Charcoal –
Before it exists in Fire –
-– Emily Dickinson 913 (1865)


Error in loading weights

raise ValueError(err.message)
ValueError: Dimension 1 in both shapes must be equal, but are 92 and 84 for 'Assign_682' (op: 'Assign') with input shapes: [1024,92], [1024,84].
Any help would be appreciated,
Thanks!

This error is usually related to the number of classes in the dataset. Can you give me some more specifics? What did you try to run?

I ran with a class file .txt made only by three class. What exactly is the txt classe file that i should use?
Thanks

Hi @hanskrupakar
I ran the command :
python segment.py -i set/ -f -p ../Mask_RCNN/ -w pretrained_weights/coco_10/mask_rcnn_bags_0006.h5 -c classes/products.txt
But this still gives me the error about the weights:
Traceback (most recent call last):
File "segment.py", line 434, in
gen = COCO_dataset_generator(fig, ax, args)
File "segment.py", line 110, in init
model.load_weights(args['weights_path'], by_name=True)
File "../Mask_RCNN/model.py", line 2105, in load_weights
topology.load_weights_from_hdf5_group_by_name(f, layers)
File "/home/addfor/anaconda3/envs/coco/lib/python3.6/site-packages/keras/engine/topology.py", line 3248, in load_weights_from_hdf5_group_by_name
K.batch_set_value(weight_value_tuples)
File "/home/addfor/anaconda3/envs/coco/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 2365, in batch_set_value
assign_op = x.assign(assign_placeholder)
File "/home/addfor/anaconda3/envs/coco/lib/python3.6/site-packages/tensorflow/python/ops/variables.py", line 573, in assign
return state_ops.assign(self._variable, value, use_locking=use_locking)
File "/home/addfor/anaconda3/envs/coco/lib/python3.6/site-packages/tensorflow/python/ops/state_ops.py", line 276, in assign
validate_shape=validate_shape)
File "/home/addfor/anaconda3/envs/coco/lib/python3.6/site-packages/tensorflow/python/ops/gen_state_ops.py", line 57, in assign
use_locking=use_locking, name=name)
File "/home/addfor/anaconda3/envs/coco/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/home/addfor/anaconda3/envs/coco/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2958, in create_op
set_shapes_for_outputs(ret)
File "/home/addfor/anaconda3/envs/coco/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2209, in set_shapes_for_outputs
shapes = shape_func(op)
File "/home/addfor/anaconda3/envs/coco/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2159, in call_with_requiring
return call_cpp_shape_fn(op, require_shape_fn=True)
File "/home/addfor/anaconda3/envs/coco/lib/python3.6/site-packages/tensorflow/python/framework/common_shapes.py", line 627, in call_cpp_shape_fn
require_shape_fn)
File "/home/addfor/anaconda3/envs/coco/lib/python3.6/site-packages/tensorflow/python/framework/common_shapes.py", line 691, in _call_cpp_shape_fn_impl
raise ValueError(err.message)
ValueError: Dimension 1 in both shapes must be equal, but are 92 and 84 for 'Assign_682' (op: 'Assign') with input shapes: [1024,92], [1024,84].

Oh I think the problem is that you're trying to get initial segmentations for a custom dataset (with different number of classes) using the pre-trained model for the products dataset used in this repo. You can generate the initial segmentations using Mask RCNN model for your custom dataset only if you train a Mask RCNN model for it.


[question] how to set header when a request leaves the grpc server

Hi devs,
Thanks a lot for developing tonic for rust grpc.
I'm looking for a solution of tonic to set header in an interceptor when a request leaves the grpc server, is there a helper for this to do so?
In golang, it can be written as
func fooInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) {
    startTime := time.Now()
    err := handler(ctx, req)
    // elapsedTime := time.Since(startTime).Nanoseconds()
    // set header
    return err
}

Maybe the following answer can help you.

add the meta to the response

use tonic::{Request, Response, Status};
use std::time::Instant;

async fn foo_interceptor<S>(
    mut req: Request<S>,
    next: tonic::service::Interceptor,
) -> Result<Response<S>, Status> {
    let start = Instant::now();

    // Handle the request
    let mut response = next.call(req).await?;

    // Add custom headers to response
    response.metadata_mut()
        .insert("x-elapsed-time", elapsed.as_nanos().to_string().parse().unwrap());

    Ok(response)
}

add the inteceptor to the server

Server::builder()
    .add_service(
        ServiceBuilder::new()
            .intercept(foo_interceptor)
            .service(your_service)
    )
    .serve(addr)
    .await?;

@imotai Thanks for your suggestions, unfortunately, I was not able to make it work with next: tonic::service::Interceptor.
But I did it successfully with the example here.
https://github.com/hyperium/tonic/blob/master/examples/src/tower/server.rs


[BEAM-7490] TfIdfTest should be marked ValidatesRunner

This is a test of an example, not a model compliance test. It does not need any annotation at all, in fact.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[x] If this contribution is large, please file an Apache Individual Contributor License Agreement.

 The commit also has the wrong description.


Angular 17

My Angular 17 is running with npm run serve:single-spa:application-name
But when I try to run the root app is giving me this error:

I already applied this config (https://github.com/single-spa/single-spa-angular/issues/484) in the main.single-spa.js file

Provide a minimal reproducible example please, feel free to reopen once you have it.


Add @AshwinJadhav818

@AshwinJadhav818 please follow the instructions on the README on how to join and make a PR. Thanks :)


setuptools-scm-git-archive is obsolete

Since version 7, setuptools-scm contains the features of setuptools-scm-git-archive, which is now dead, so you should drop that dependency.

Thanks for the notification, we will correct this .


AdGuardHome replica version used in Home Assistant is not detected by AdGuardHomeSync

Describe the bug
AdGuardHome replica version used in Home Assistant is not detected by AdGuardHomeSync
To Reproduce
Steps to reproduce the behavior:

What version of AdGuardHome sync used? 0.4.8
What version of AdGuardHome us used? 0.107.17
How does the configuration look?

# cron expression to run in daemon mode. (default; "" = runs only once)
cron: "*/10 * * * *"

# runs the synchronisation on startup
runOnStart: true

origin:
  # url of the origin instance
  url: http://192.168.2.X:3000
  # apiPath: define an api path if other than "/control"
  username: ***
  password: ***

# replica instance (optional, if only one)
replica:
  # url of the replica instance
  url: http://192.168.2.Y:5353
  username: ***
  password: ***

# Configure the sync API server, disabled if api port is 0
api:
  # Port, default 8080
  port: 8080
  # if username and password are defined, basic auth is applied to the sync API
  # username: username
  # password: password

# Configure sync features; by default all features are enabled.
features:
  generalSettings: true
  queryLogConfig: true
  statsConfig: true
  clientSettings: true
  services: true
  filters: true
  dhcp:
    serverConfig: true
    staticLeases: true
  dns:
    serverConfig: true
    accessLists: true
    rewrites: true

What is the error message?

2022-11-07T13:09:23.397+0100	INFO	sync	sync/sync.go:196	Start sync	{"from": "192.168.2.X:3000", "to": "192.168.2.Y:5353"}
2022-11-07T13:09:23.431+0100	INFO	sync	sync/sync.go:204	Connected to replica	{"from": "192.168.2.X:3000", "to": "192.168.2.Y:5353", "version": "v0.107.17"}
2022-11-07T13:09:23.431+0100	ERROR	sync	sync/sync.go:207	Replica AdGuard Home version must be >= v0.107.0	{"from": "192.168.2.X:3000", "to": "192.168.2.Y:5353", "error": null, "version": ""}
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).syncTo
	/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:207
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).sync
	/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:184
github.com/bakito/adguardhome-sync/pkg/sync.Sync.func3
	/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:66

Expected behavior
Have a successful sync
More context
Successful request to the replica in the /status path:

Hi @joselcaguilar can you please enable debug log level, by setting the env variable LOG_LEVEL=develop and provide the outpu in the issue?

Can you please check again that the environment variable LOG_LEVEL=debug is set in your adguardhome-sync instance.
The above logs do not show DEBUG records. At this point there should be at least 2 DEBUG messages with request/response information.

Can you please check again that the environment variable LOG_LEVEL=debug is set in your adguardhome-sync instance. The above logs do not show DEBUG records. At this point there should be at least 2 DEBUG messages with request/response information.

Here you go @bakito:
2022-11-07T17:27:12.016+0100	DEBUG	client	client/client.go:150	got response	{"host": "192.168.2.X:3000", "method": "GET", "path": "/dhcp/status", "username": "DummyUser", "status": 200, "body": "{\"interface_name\":\"\",\"v4\":{\"gateway_ip\":\"\",\"subnet_mask\":\"\",\"range_start\":\"\",\"range_end\":\"\",\"lease_duration\":0},\"v6\":{\"range_start\":\"\",\"lease_duration\":86400},\"leases\":[],\"static_leases\":[],\"enabled\":false}\n"}
2022-11-07T17:27:12.016+0100	INFO	sync	sync/sync.go:196	Start sync	{"from": "192.168.2.X:3000", "to": "192.168.2.Y:5353"}
2022-11-07T17:27:12.016+0100	DEBUG	client	client/client.go:138	do get	{"host": "192.168.2.Y:5353", "method": "GET", "path": "status", "username": "DummyUser"}
2022-11-07T17:27:12.042+0100	DEBUG	client	client/client.go:150	got response	{"host": "192.168.2.Y:5353", "method": "GET", "path": "status", "username": "DummyUser", "status": 200, "body": "{\"version\":\"v0.107.17\",\"language\":\"\",\"dns_addresses\":[\"192.168.2.Y\",\"<IP_ADDRESS>\"],\"dns_port\":53,\"http_port\":45158,\"protection_enabled\":true,\"dhcp_available\":true,\"running\":true}\n"}
2022-11-07T17:27:12.042+0100	INFO	sync	sync/sync.go:204	Connected to replica	{"from": "192.168.2.X:3000", "to": "192.168.2.Y:5353", "version": "v0.107.17"}
2022-11-07T17:27:12.042+0100	ERROR	sync	sync/sync.go:207	Replica AdGuard Home version must be >= v0.107.0	{"from": "192.168.2.X:3000", "to": "192.168.2.Y:5353", "error": null, "version": ""}
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).syncTo
	/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:207
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).sync
	/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:184
github.com/bakito/adguardhome-sync/pkg/sync.Sync.func3
	/home/bakito/go/src/github.com/bakito/adguardhome-sync/pkg/sync/sync.go:66

Let me know if you need more traces :)

I can reproduce the issue, but don not yet understand it, the responses look OK, but something seems to have changed.
Need digging a bit deeper.

It turned out, that HomeAssistant is setting the Content-Type wrong.
the json response is returned with Content Type "text/plain; charset=utf-8"

It turned out, that HomeAssistant is setting the Content-Type wrong.
the json response is returned with Content Type "text/plain; charset=utf-8"

It should be json by default! Btw, thanks for address this issue 😊

I can check tomorrow for a work-around and will probably raise a ticket in home assistant.

I can confirm this works. Ran into the same problem, and the main image fixes this.

@baldisos Thank you very much for the confirmation.
The release v0.4.9  is currently being build and images should be available shortly.
https://github.com/bakito/adguardhome-sync/releases/tag/v0.4.9

So sorry for the delay @bakito I was out, it's working like a charm, thanks for the quick fix! 💪🏼🚀


stdout not generated for unrecognised commands

Node version (or tell us if you're using electron or some other framework):
v8.9.1
ShellJS version (the most recent version/Github branch you see the bug on):
0.8.1
Operating system:
MacOS:  10.12.6
Description of the bug:
stdout not generated for unrecognised commands
Example ShellJS command to reproduce the error:
const exec = shell.exec('echo hello', {silent: true});
console.log(exec.stdout);    // logs "hello" !

const exec2 = shell.exec('blarg blarg', {silent: true});
console.log(exec2.stdout);    // logs EMPTY LINE!

Expected result : should log command not found: blarg on exec2.stdout

Should be in the .stderr attribute instead (because that's an error message). If that's not the case, let's reopen this.


Update CONTRIBUTING.md

Add note on how to treat PR branches.

@kwk I think having a how to guide would be more specific, here is a proposal: https://github.com/fabric8-services/fabric8-wit/pull/2369


#0: Correct #!/bin script headers

Ticket
None
Problem description
In running tests locally, investigating a failure, I found a few issues with many of the test scripts:

The shebang line was flubbed -- missing the !
Some had inserted a blank initial line, maybe to disable the (non-functional) shebang? Seems confused
Those had also commented out the following set -oe pipefail
One didn't have execute permission set on the file.
One had no trailing \n character

What's changed
Fix shebang lines,
Remove initial blank line
Uncomment set -oe pipefail
Set execute permission
Add trailing \n
If those affected by #2 & #3 were not intended to be invokable scripts, the shebang should be removed entirely, and presumably some comment added about how it is expected to be used.
Checklist

[ Yes] Post commit CI passes
[ ] Blackhole Post commit (if applicable)
[ ] Model regression CI testing passes (if applicable)
[ ] Device performance regression CI testing passes (if applicable)
[ ] New/Existing tests provide coverage for changes

I truly can't code eh @TT-billteng


fixed header (vertical only) with sticky split labels that scrolls horizontally

Is there a way to fix vertically the split labels on top no matter where the Y scroll is.
split label is showing, no scroll:

split label is NOT showing, scrolled down, but there is overflow-x:

split label is showing, scrolled, but there is no overflow-x:

I must keep showing Mom, Dad, kid 1, kid 2 and kid 3 on the top, always, but need also to scroll horizontally
i tried with position: sticky, but i've not succeed. If the HTML was structured in another way, position: sticky would work
the closest I get is:
const calendar = document.querySelector('#beauty-calendar .vuecal__bg')
      calendar.addEventListener('scroll', function () {
        const splits = document.querySelectorAll('.vuecal__cell-split')
        for (const split of splits) {
          split.style.top = '10px'
          split.style.position = 'absolute'
        }
      })

but not smooth at all

@antoniandre Could you give me a hand?

Hi!
Pure usage-related questions are probably better to post on Stack Overflow than as an issue in this repo.
In any case, a minimal reproduction demonstrating the issue using CodePen, CodeSandbox or similar is needed to be able to help you.

Hi @CavalcanteLeo,
Technically, with this complex HTML structure there is no way to do it with pure CSS AFAIK, and that's why it's not there.
But your approach is fine I think (I'd like to see it running to be sure to follow you).
If not smooth you can already cache some DOM lookups which is very heavy process for a scroll listener which triggers hundred times and must be extremely light.
Just save the DOM collection document.querySelectorAll('.vuecal__cell-split') outside the event listener, that will already be much smoother. For that, in your Vue component, just declare the splitsCollection above the export default, and update the collection on each view change. Then in the scroll listener you can use your cached array.
This is theory, and you might have moved on anyway. But if you still need help please reopen.


Add "it doesn't happen on forge"/"it is most likely fabric-only" checkbox in bug reports

Describe the Suggestion
This repo is only for porting fabric-only features, not adding new & fixing common bugs. Not everyone knows it, so there are many bugs reported here, being in the wrong place.
Screenshots and Videos
No response
Additional Context
Add this to /.github/ISSUE_TEMPLATE/bug_report.yml:
- type: checkboxes
  attributes:
    label: This issue is fabric-only
    options:
    - label: The common (forge+fabric) issues should be fixed in upstream forge code, not here.
      required: true

Issue templates are going to be revamped in the future, and I plan to include something similar.


SQLite: Allow dollar signs in placeholder names

Relevant: https://github.com/apache/datafusion-sqlparser-rs/pull/1402

Not sure if this is the best way to fix, open for feedback.

cc @iffyio @alamb

@iffyio Addressed all your comments, great feedback 🥇

@iffyio Addressed all your comments, great feedback 🥇

@iffyio ++


[native_assets_cli] Add Builder and Linker interfaces and docs

This PR adds an opinionated Builder and Linker interface with documentation on what builders and linkers should be used for.
Closes: https://github.com/dart-lang/native/issues/995
(Also, flips all versions back to WIP, now that the link hooks have landed in both Dart and Flutter.)

@mosuem Was this roughly what we discussed regarding caching and what use cases one should use builders and linkers for?

cc @knopp for native_toolchain_rust.
cc @csnewman for native_toolchain_go.
Any ideas, thoughts, concerns, feedback?

coverage: 91.147%. remained the same
when pulling 7a22fa790c43b0ae0cbb71710224a735453c7213 on builder-linker
into 413dd272f2b12f63e7dae6fc32602a8fb09a2cc5 on main.

cc @csnewman for native_toolchain_go.

The interface and docs look reasonable and match the current GoBuilder setup. While I'm not overly sure there will be much usage for builder composition, defining a standardised interface is still beneficial.

Apologies, slipped my mind. The changes make sense to me.


No WorldType declared warning despite type being specified.

Plugin Version:
RandomTP » Version #3.1.0-5 - compiled as of commit https://github.com/SuperRonanCraft/BetterRTP/commit/1c61ac9d6048e18afa2f04645bd79cae12397879
Describe The Bug:
I have a button that runs the command rtp player <player> rw from console. On the first rtp to the world, BetterRTP complains that the WorldType is not declared, despite being declared and existing in the config.
How To Reproduce:

Add a button that runs the command rtp player <player> rw from console.
Hit the button in the world spawn.
Get randomly teleported to the rw world.
BetterRTP complains.

Expected Behavior:
No warning when RTPing into the world for the first time.
Screenshots/Error Log:
[13:16:05] [Server thread/WARN]: [BetterRTP] Seems like the world `rw` does not have a `WorldType` declared. Please add/fix this in the config.yml file! This world will be treated as an overworld!

Additional Context:
In the config.yml
WorldType:
- world: NORMAL
- world_nether: NETHER
- world_the_end: NORMAL
- rw: NORMAL

mhh, this might be caused because this world might be loading in after the server starts up. Any plugins you are using to spawn in this custom world so I can debug the issue.

Just Multiverse. RW is just a simple secondary world for resource gathering, no plugins generate that world.

just find it weird why Multiverse would load after just for you, when it works for me and many others O_O
Most likely because I have quite a heavy plugin environment that adjusts the initialization order of plugins due to different soft & hard dependencies.

I manually added Multiverse-Core to the plugin.yml softdepends in version 3.1.0-5 and can confirm it seems to fix the issue.

Okay, ima put in loadbefore, just so I dont get confused in a couple months as say "What did I add for multiverse", should still work the same ;) I will be releasing this in a couple minutes

Why loadbefore? Doesn't that make it so BetterRTP will load first? We would want Multiverse-Core to load first, then BetterRTP. Otherwise you'll run into the same issue as this ticket since BetterRTP is already loading before Multiverse for me. The only way to ensure that BRTP loads after is to make it a softdepend.

It works the opposite way, I know it doesnt sound like it, but I looked it up, give 3.2.1-1 a try and see if it works, if not let me know once more ;)

I know it doesnt sound like it, but I looked it up

Where? Spigot wiki clearly states;
https://www.spigotmc.org/wiki/plugin-yml/
loadbefore

A list of plugins that should be loaded after your plugin.
Your plugin will load before any plugins listed here.

Same with the ancient Bukkit wiki.
https://bukkit.fandom.com/wiki/Plugin_YAML

Bahh, good point, my brain is on auto-pilot and wasn't thinking... I will do this asap

Uploaded 3.2.1-2 ;)
I'm a good programmer, I swear


fix: fix subscriptions

Ticket Link

Related Links

Description

Steps to Reproduce / Test

Request

Response

Codecov Report

Merging #93 (d1e68c2) into master (f509837) will decrease coverage by 1.22%.
The diff coverage is 72.78%.

@@            Coverage Diff             @@
##           master      #93      +/-   ##
==========================================
- Coverage   80.79%   79.56%   -1.23%
==========================================
  Files          27       27
  Lines        1010     1238     +228
==========================================
+ Hits          816      985     +169
- Misses        150      209      +59
  Partials       44       44

Impacted Files
Coverage Δ

internal/config/config.go
100.00% <ø> (ø)

resolver/role_mutations.resolvers.go
25.49% <28.20%> (+2.41%)
:arrow_up:

resolver/user_queries.resolvers.go
52.00% <58.53%> (+4.63%)
:arrow_up:

resolver/auth_mutations.resolvers.go
66.87% <74.41%> (+13.62%)
:arrow_up:

resolver/user_mutations.resolvers.go
79.47% <86.79%> (+6.39%)
:arrow_up:

internal/middleware/auth/auth.go
100.00% <100.00%> (ø)

resolver/subscriptions.resolvers.go
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Tag for 2.0.5

Hi,
there are no tags in this project. Last release was 2.0.5 but it isn't tagged (at least not in this git repository). The current master does not correspond to 2.0.5 anymore. Can you probably add "2.0.5" tag? I think it corresponds to the following state: https://github.com/christianbach/tablesorter/tree/cf3b83df2b
Thanks!

Probably current one is dead, will try out that one, maybe it I'll get it to work.

+1. Please tag releases. It is useful. Thanks.

I double checked all content with beyond compare at the commit @arapoport mentioned and it is indeed the 2.0.5 content.
The /tests directory is missing though.

please add a tag, otherwise it's a mess to use this plugin with bower

:+1: for that!
I'm currently using this to install and make sure it's always the same version:
bower install --save 'https://github.com/christianbach/tablesorter.git#774576308e8a25aa9d68b7fe3069b79543992d7a


Implementing get_shape_source for both Collision Objects.

Is this what's been requested for issue #2089 ? Also is this still requested? And couldn't it already be accessed via shape_owner_get_owner(i).name?
Please feel free to decline this if I misunderstood horribly (like I feel I might, because this seems too simple to have been on hold for 3 years), it just seemed better to discuss it over the code than the issue.

Moving to 3.2 milestone as we're about to enter the beta stage and release freeze for Godot 3.1. Only bug fixes against issues of the 3.1 milestone (or enhancements to core features of the 3.1 roadmap) will be considered until 3.1-stable is released.
Note: If it's merged after 3.1-stable is released, this change might be considered for cherry-picking into a later 3.1.x release.

I think the original feature request was about getting owner name from the shape index, so it would be more something like:
var owner_id = shape_find_owner( int shape_index )
shape_owner_get_owner( owner_id).name

I prefer not to merge as we haven't identified an actual use case for this new API, and the original issue did not have much to work with. It shouldn't have been tagged as a junior job without having something consensual for contributors to implement, sorry about that.


Upgrade pnpm so it won't error in nodejs 20

System Info

Details
pnpm/pnpm#6424
Reproduce link
No response
Reproduce Steps

pr weclome

This is unactionable because pnpm 8 doesn't support nodejs 14.

Why is NodeJS 14 required for the pipeline?

Why is NodeJS 14 required for the pipeline?

https://github.com/web-infra-dev/rspack/discussions/4579 discuss here about NodeJS compatible

We will deprecate NodeJS 14 support since 0.4.0

I pushed some changes to branch try-node-20 https://github.com/web-infra-dev/rspack/tree/try-node-20. I haven't got a clue what pnpm 8 is doing, any help is appreciated 😅
It's currently failing on pnpm run test:example:
examples/loader-compat build$ rspack build
│ error[internal]: Napi Error: GenericFailure - Thread Loader (Worker 0)
│ Cannot find module 'ajv/dist/compile/codegen'
│ Require stack:
│ - /Users/bytedance/github/rspack/node_modules/babel-loader/node_modules/ajv-formats/dist/limit.js
│ - /Users/bytedance/github/rspack/node_modules/babel-loader/node_modules/ajv-formats/dist/index.js
│ - /Users/bytedance/github/rspack/node_modules/babel-loader/node_modules/schema-utils/dist/validate.js

We have ajv 6 somewhere but it requires ajv 7+

This is on the 0.4.0 branch.


Add disclaimer about development on Windows.

Sorry for the super late response.
This is a selfhosting guide. We already have a separate guide on how to set up the development environment on the main github repo. If anything I think this section is likely to confuse a lot of selfhosters who are just looking to run FredBoat.


Review fork(s) for useful uncontributed bits

It seems that during this projects long hibernation several forks cropped up and were in active use for long periods of time. Several of them had PRs with one-off fixes we've already started to take care of. However there also seem to be some more extensive works that were never contributed. These should at least be reviewed to understand why they existed and whether there are bits of them that would be worth integrating.

[ ] https://github.com/NickLaMuro/vimux
[ ] https://github.com/mvanderkamp/vimux

I like the autoclose thing from mvandercamp. But I am not sure about the options stuff. The xtra args seem to deal with this already and arent limiting option while not getting to verbose.


A question about data.txt

Hi
I have a couple of questions about data.txt. This file includes three fields: smile, protein_name, score

What is the definition of the score in this file?
How did you get the score? Did you calculate it? If you did, can you share how to calculate the score?

Thanks in advance

Hi,
The data.txt was created from humans dataset of protein-ligand interactions. The scores were already annotated there.
For application of SSnet check SSnet_in_Action.
Let me know if you have questions.
Thanks

Hi,
The data.txt was created from humans dataset of protein-ligand interactions. The scores were already annotated there.
For application of SSnet check SSnet_in_Action.
Let me know if you have questions.
Thanks


Where can I find the prompt for each evaluation scenario?

Could you tell me where I can find the prompt templates for each scenario?
I search over various scenario files  in here, but can't find any prompts.

Prompts are downloaded and processed from 3rd party source. E.g. for MMLU...
Download the raw data:
https://github.com/stanford-crfm/helm/blob/main/src/helm/benchmark/scenarios/mmlu_scenario.py#L66-L72
Processing the raw data into prompts:
https://github.com/stanford-crfm/helm/blob/main/src/helm/benchmark/scenarios/mmlu_scenario.py#L74-L94

Thanks for the explanation @unnawut !
To give more info on prompt templates aka "adapters":
Each scenario has one or more possible AdapterSpec, which defines the prompt template. You can look for the corresponding AdapterSpec for the scenario by going to run_specs.py e.g. here is the AdapterSpec for boolq.
You can also get the AdapterSpec by going to go to Raw Runs, clicking a relevant run, and then looking at "Adapter specification" at the top of the page.
You can look at the adapter implementation to see how the AdapterSpec produces the prompt template e.g. MultipleChoiceJointAdapter
To see the raw prompt text we used, go to Raw Runs on the results page, click a relevant run, and then click "Prediction" - note that doing this will download a large amount of data (potentially >100 MB), so do not do this on a low-bandwidth connection.


Replace new overload by singledispatch function

This has the added benefit of allowing to register new classes &
wrappers at runtime.  Something we might want to have for interaction
with our various pyiron_* repos.

Thanks, I struggle a bit to understand what it actually does. Nonetheless, I will merge it in.
Then, I will experiment a bit with it to get a feeling how this actually works 😄

Basically the decorator checks the type of the first argument and if a function with that type has been registered it executes that one instead of the default implementation (the one marked with the singledispatch directly).  The python docs have some examples.  It should behave exactly like your code.

GvR had a simple implementation of the same concept here, that might make it easier to understand.


BUG: bitnami image don't support arm64 for labring/bitnami-mongodb cluster image

Sealos Version
v4.1.3
How to reproduce the bug?

No response
What do you see instead?
No response
Operating environment
- Sealos version:
- Docker version:
- Kubernetes version:
- Operating system:
- Runtime environment:
- Cluster size:
- Additional information:

Additional information
No response

Wait for support: https://github.com/bitnami/charts/issues/7305
try it with this tool: https://github.com/ZCube/bitnami-compat

reopen

https://github.com/mongodb/mongodb-atlas-kubernetes

using kb


Documentation required for making requests as a service account

Currently, only making requests as the authorized user is documented. I would like to be able to know how to properly make api calls as a service account (aka use jwt authorization). I am currently grasping at straws as every so often the library crashes due to some error in the jwt authorize call,
see:
  var ret = this._binding.sign(toBuf(key));
                          ^
TypeError: Not a buffer
    at Sign.sign (crypto.js:398:27)
    at createRS256Signature (..../googleapis/node_modules/gapitoken/node_modules/jws/index.js:75:58)
    at jwsRS256Sign (.../googleapis/node_modules/gapitoken/node_modules/jws/index.js:68:21)
    at Object.jwsSign [as sign] (.../googleapis/node_modules/gapitoken/node_modules/jws/index.js:32:12)
    at GAPI.getAccessToken (.../googleapis/node_modules/gapitoken/gapitoken.js:56:25)
    at GAPI.getToken (.../googleapis/node_modules/gapitoken/gapitoken.js:35:14)
    at JWT.refreshToken_ (.../googleapis/lib/auth/jwtclient.js:83:13)
    at .../googleapis/lib/auth/jwtclient.js:64:12
    at .../googleapis/node_modules/gapitoken/gapitoken.js:20:17
    at fs.js:266:14```

Thank you,
Simon

I don't think this issue should be closed until there is something about this in the documentation. Had I not hunted through the closed issues, this information would have been lost to me.

@coreybutler Added a section to the README: https://github.com/google/google-api-nodejs-client#using-jwt-service-tokens
Let me know if this suits your fancy.

@ryanseys - yup, thanks!


upper and lower bound constraints are not being checked

Consider the OSY problem:
http://pymoo.org/problems/multi/osy.html

from pymoo.factory import get_problem
problem = get_problem("osy")

There are 6 variables, each having upper and lower bound constraints. There are some additional inequality constraints as well. So there could be two types of infeasibilities resulting from

violation of inequality constraints,
violation of upper and lower bound constraints.

However, the problem.evaluate method detects only first type of infeasibility and not the second type.
For example, let's take

x = np.array([5, 1, 1, -0.5, 1, 0])

Clearly, the x4 (i.e. x[3]) variable's boundary constraints are violated, as it should lie between 0 and 6, while it is set at -0.5.
Now let's evaluate this x and check its feasibility.

F, CV, feasible = problem.evaluate(x, return_values_of=["F", "CV", "feasible"])

Surprisingly, the return value of feasible is true, whereas it should have been false.
Why are the upper and lower bound constraints are not being treated simply as another set of inequality constraints?

Thanks for your feedback. That is in fact a very good question and we have thought about this issue while creating the Problem architecture.
Most algorithms in pymoo need to have lower and upper bounds, xl and xu provided. The algorithms are constructed to only search in the box constraints and it is made sure that these constraints are satisfied at anytime. In general, many algorithms proposed in the literature do NOT consider constraints in general, but handle box constraints.
However, additional constraints are defined by n_constr as you might have seen and are handled by using the parameter-less approach in most algorithms.
I agree if you design your own algorithm this might be necessary. I have added an option to the problem to consider the bounds.
problem = OSY()
problem.bounds_as_constraints = True

x = np.array([5, 1, 1, -0.5, 1, 0])
F, CV, feasible = problem.evaluate(x, return_values_of=["F", "CV", "feasible"])

print(F, CV, feasible)

Please also note this increases the number of constraints by two times the number of variables.
Can you please install the current master branch (git clone and then pip install .) to see if this works for you?

Thanks for your feedback. That is in fact a very good question and we have thought about this issue while creating the Problem architecture.
Most algorithms in pymoo need to have lower and upper bounds, xl and xu provided. The algorithms are constructed to only search in the box constraints and it is made sure that these constraints are satisfied at anytime. In general, many algorithms proposed in the literature do NOT consider constraints in general, but handle box constraints.
However, additional constraints are defined by n_constr as you might have seen and are handled by using the parameter-less approach in most algorithms.
I agree if you design your own algorithm this might be necessary. I have added an option to the problem to consider the bounds.
problem = OSY()
problem.bounds_as_constraints = True

x = np.array([5, 1, 1, -0.5, 1, 0])
F, CV, feasible = problem.evaluate(x, return_values_of=["F", "CV", "feasible"])

print(F, CV, feasible)

Please also note this increases the number of constraints by two times the number of variables.
Can you please install the current master branch (git clone and then pip install .) to see if this works for you?

Thanks Julian.
I checked that it is showing infeasible now.
But still there is an inconsistency between the bound constraints and the inequality constraints.
For example:
problem = OSY()
problem.set_boundaries_as_constraints(True)

x = np.array([5, 1, 1, -0.5, 1, 0])
F, G, dG, feasible = problem.evaluate(x, return_values_of=["F", "G", "dG", "feasible"])

print(feasible)    # correctly outputs false now
print(problem.n_constr)    # correctly outputs 18 constraints
print(G.shape)      # correctly outputs (18,)
print(dG.shape)     # Still shows (6, 6) instead of (18, 6)

Shouldn't the number of constraints be same as the number of constraint-gradients?

Yes good catch. I feel at some point the Problem class needs to be reengineered because it became pretty convoluted. I have quickly derived the gradients for the boundary constraints. Please quickly validated if they are correct. The latest commit contains the changes.
Please note that dCV is not available through the function evaluation but can be easily derived from G and dG.

Thanks,
I checked that it works.
When the design space is high dimensional, and only few variables have bounds, then this solution may be inefficient, as it creates an entry for every variable.
But I think, for now, adding constraints and gradients for the variables on an individual level might be difficult. If that is the case, then you may close this issue.
However, you could consider this while reengineering the Problem class in future.
Anyways, thanks for your quick response.


deps: remove unused deps

Description of the Change
Remove unused 3 dependencies.

configstore

It introduced in https://github.com/mochajs/mocha/commit/21371633e704c0735c54909f92cc3afed7eefdb6 . But It appears to have been added by mistake from the beginning.

through2

It was introduced in https://github.com/mochajs/mocha/commit/a81e5558f086808b682b6d196b80893d2c8926f8 7 years ago for browserify. But I couldn't find where to use it in this commit.
It looks like removed in this commit when we drop the browserify.

watchify

It was introduced at https://github.com/mochajs/mocha/commit/c04c1d73b30979d04d94398309ee47643ede0af4 . But I couldn't find where to use it in this commit.
This is for browserify. Now we don't use browserify anymore.

@outsideris there is a watch script in package-scripts.js, I suppose it uses watchify for its purpose. I don't think anybody has ever used that script, so could certainly be removed.

@juergba Did you mean here? I think docs.watch doesn't use watchify.


[FEATURE] Use of  additional filters for limiting the data in stage macros

Is your feature request related to a problem? Please describe.
Pulling the incremental data from the PSA area by comparing the Last_record_load_date/Specific date by applying the filter in the stage macro
Describe the solution you'd like
A clear and concise description of what you want to happen.
where
true  {# minimize data usage for sandbox/cicd #}
{% if not target.name in ['dev', 'uat', 'prod'] or env_var(
'DBT_CICD_RUN',
'false'
) == 'true' %}
and date(updated_on) >= date_sub(current_date(), interval 1 month)
{% endif %}
{% if is_incremental() %}
    {# Note:

THE updated_on that used for incremental loading
),
    and date(updated_on) >= coalesce(
        (
            select date(max(updated_on))
            from {{ this }}
            where rsrc not in ('ERROR', 'SYSTEM')
        ),
        '1900-01-01'
    )
{% endif %}

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Hi @yedu1985 Thanks for this. We're actually currently working on new loading features, this being one of them. v0.10.x releases are bringing Quality of life improvements for loading, the first of which was solving the long-standing limitation on Satellite loading.
In the meantime I recommend you look at incremental predicates, a dbt feature that already exists to do just this


feat: support getContextAttributes

This API is aligned with MDN documentation with test cases. For current setup only { alpha: true, desynchronized: false } is allowed.

Should we support alpha: false?
node-canvas seems to support it: https://github.com/Automattic/node-canvas/blob/master/types/index.d.ts#L52

Should we support alpha: false?
node-canvas seems to support it: https://github.com/Automattic/node-canvas/blob/master/types/index.d.ts#L52

alpha: false can be easily implemented with additional canvas->clear on init phase by default. But I'm not sure if this can really speed up rendering, since the canvas is not supposed to be composited with other DOM elements.
I'll give it a try later.

alpha: false can be easily implemented with additional canvas->clear on init phase by default. But I'm not sure if this can really speed up rendering, since the canvas is not supposed to be composited with other DOM elements.
I'll give it a try later.


Visual studio doesn't show an automatic popup for remote machine information

This article says that deploying to Remote Machine in C# would pop up a window asking for the IP address, but my Visual Studio just gave me this error instead of popping up a window (error below).
If this happens to all recent VS versions, I suggest the documentation should suggest that the user type the IP address under project Properties -> Debugging -> Machine Name, instead of waiting for the popup as currently suggested.
My version of VS is Community 2019 v16.9.1
3>------ Deploy started: Project: MRTKTestHLD6, Configuration: Release ARM64 ------
3>Error: Microsoft Visual Studio Remote Debugging Monitor cannot start without a Machine Name. Open project properties and specify a Machine Name under 'Configuration Properties -> Debugging'
========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

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

  Unity uses il2cpp now which produces a C++ project.  The proposed documentation change is incorrect for C# projects, and the error message you list below is also consistent with C++ projects.  I would also not expect a C# project to have a ‘Release ARM64’ configuration, unless you manually created one.
From: julesra @.>
Sent: Monday, July 19, 2021 10:26 AM
To: MicrosoftDocs/mixed-reality @.>
Cc: Paul Barnett @.>; Mention @.>
Subject: [MicrosoftDocs/mixed-reality] Visual studio doesn't show an automatic popup for remote machine information (#381)
This article says that deploying to Remote Machine in C# would pop up a window asking for the IP address, but my Visual Studio just gave me this error instead of popping up a window (error below).
If this happens to all recent VS versions, I suggest the documentation should suggest that the user type the IP address under project Properties -> Debugging -> Machine Name, instead of waiting for the popup as currently suggested.
My version of VS is Community 2019 v16.9.1
3>------ Deploy started: Project: MRTKTestHLD6, Configuration: Release ARM64 ------
3>Error: Microsoft Visual Studio Remote Debugging Monitor cannot start without a Machine Name. Open project properties and specify a Machine Name under 'Configuration Properties -> Debugging'
========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

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

ID: 1c174da8-1ca1-0f79-9df0-608f12b041a4
Version Independent ID: b58f67c4-dba3-b892-b97b-3ed667a19f6a
Content: Using Visual Studio to deploy and debug - Mixed Realityhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmixed-reality%2Fdevelop%2Fplatform-capabilities-and-apis%2Fusing-visual-studio%3Ftabs%3Dhl2&data=04|01|Paul.Barnett%40microsoft.com|f7e6792e1b6e4db488c308d94ada478d|72f988bf86f141af91ab2d7cd011db47|1|0|637623123643276355|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=x950JN4ayjkL%2FuoLMHM2OJVVPOliYiVwXraNq7XM%2F6Q%3D&reserved=0
Content Source: mixed-reality-docs/mr-dev-docs/develop/platform-capabilities-and-apis/using-visual-studio.mdhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fmixed-reality%2Fblob%2Fdocs%2Fmixed-reality-docs%2Fmr-dev-docs%2Fdevelop%2Fplatform-capabilities-and-apis%2Fusing-visual-studio.md&data=04|01|Paul.Barnett%40microsoft.com|f7e6792e1b6e4db488c308d94ada478d|72f988bf86f141af91ab2d7cd011db47|1|0|637623123643286352|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=irNNW4B%2FPheqDB92CObuxIz00rZSkUkH7VKkWSVfBuA%3D&reserved=0
Product: mixed-reality
Technology: mr-dev
GitHub Login: @pbarnettmshttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpbarnettms&data=04|01|Paul.Barnett%40microsoft.com|f7e6792e1b6e4db488c308d94ada478d|72f988bf86f141af91ab2d7cd011db47|1|0|637623123643286352|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=3r68pWxhm2ELFrPMQ5FwytNIf%2FJM9W24ByrzFg%2BDQaM%3D&reserved=0
Microsoft Alias: pbarnett

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fmixed-reality%2Fissues%2F381&data=04|01|Paul.Barnett%40microsoft.com|f7e6792e1b6e4db488c308d94ada478d|72f988bf86f141af91ab2d7cd011db47|1|0|637623123643296349|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=5AEpletz0yVZZnxdc%2BUY2OnPBmJ4xfou1WS1YRF0seo%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAHIDKIWVA7CKMNHMCTMBEG3TYRN2TANCNFSM5AUEJVIQ&data=04|01|Paul.Barnett%40microsoft.com|f7e6792e1b6e4db488c308d94ada478d|72f988bf86f141af91ab2d7cd011db47|1|0|637623123643296349|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=BYTvqyAZg7wDvfFoQlACG%2FIxwya0iJFY7NmnbB1H1xQ%3D&reserved=0.

Hi sorry my bad, I am building a Unity3D C# project but it is being built as a VS C++ project, I didn't realize this. My change doesn't apply for C# in this case, it can be discarded. Sorry the confusion.


Supremum of Fun and NoFun should give error

When running the supremum as stated here
  test/Spec.hs:63:13:
  1) supremum computes sup{Num(Int[--]), Fun([([Num(Int[--]) @ 1] -> Num(Int[--])) @ Nothing])} = Left The constraint  is not satisfiable.
       expected: Left The constraint  is not satisfiable.
        but got: Right τ_0

we expect an error, but get an unsolved type variable.
Though this might be not as critical since we usually treat Funs and NoFuns seperately and do not try to get their supremum.

Test is available and runs through.


Beta alert system

When someone sends a message in #upcoming updates, create a thread on the message, and ping the @update tester role in the thread
#upcoming update's id should be stored in process.env.UPDATES_CHANNEL

you just pinged update on github :skull:

EDIT: oh wait it's a bot, nvm
*orginization


Connection Refused

When I try to publish a live stream from a video file as directed in the documentation

ffmpeg -re -i INPUT_FILE_NAME -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://localhost/live/STREAM_NAME

I get this error below

[tcp @ 0x558be7da50] Connection to tcp://localhost:1935 failed: Connection refused
[rtmp @ 0x558be2d370] Cannot open connection tcp://localhost:1935
rtmp://localhost/live/STREAM_NAME: Connection refused

I am running this on a nvidia jetson tx2 ubuntu 18.04, really looking forward to getting around this problem and understanding the documentation better

Figured out that I might be getting this error because the node server is not running when I run

node app.js

Please, close the issue. Thanks!


Deprecate JSON configuration in favor of YAML

YAML allows comments.
YAML is backwards-compatible with JSON.
YAML doesn't require as much boilerplate.
YAML has better semantics for handling multiple documents within a single stream.
YAML ain't markup language!

+1 for this!

@luis-lavaire Please don't bump issues without contributing significant new information. Use the :+1: reaction button on the first post instead.

I guess the main tradeoff here is pulling in gopkg.in/yaml.v2 since the stdlib doesn't have it, but comments in my micro configuration file is a very welcome feature. I don't actually need this now, but back in the past when I was adding some strange keybindings with escape sequences, the ability to comment would have been nice.

Oh, never mind, it seems it's already pulled in and used in other places. +1 to this then. I can take a stab at this if people want it.

Dupe: https://github.com/zyedidia/micro/issues/1186

If yaml is indeed backwards compatible then this probably is probably fine. I should note that the json is actually json5 (https://json5.org/) which allows comments with //.

Or why not get rid of both JSON and YAML, and use Lua for everything, including configuration?
Getting rid of the JSON and YAML parsers should make Micro quite a bit lighter.

I think having one of JSON/YAML for configuration is preferable to purely using Lua because one nice aspect of the configuration system is that micro automatically edits your permanent settings when you change things in the editor, and this wouldn't really be possible with Lua.

Does it make sense that any of JSON/YAML could be used in the theme files also?

Why would Lua not be possible as a configuration file? Lua was designed in the 1990ies long before JSON or YAML existed as an extension of Sol, a configuration file language. (https://en.wikipedia.org/wiki/Lua_(programming_language)#History) A Lua table which is written out in a file is a perfect configuration file.
PIL mentions this an an important use case of Lua: https://www.lua.org/pil/25.html.
Many programs use lua not only for scripting but also for settings, here just the first 3 I could find:

Löve2d: https://love2d.org/wiki/Config_Files
lotac: https://www.lotatc.com/documentation/server/configuration_file.html
Awesome WM: https://wiki.archlinux.org/index.php/Awesome#Configuration

Yes in theory it would be possible to use Lua as the configuration language. The problem is that the Lua engine micro uses doesn't expose the Lua parse tree for generation/modification, so automatically generating the Lua configuration code based on the in-memory configuration could prove difficult. The table approach used by lotac (thanks for the links!) seems like the most realistic for micro and probably could be implemented. I don't think this is a big priority right now, but definitely something to keep in mind for the next major version.

Hi, 4 years later, I'd like to chip in for TOML based configuration. (Both Python & Rust community seem to have adopted it). TOML isn't perfect, but hey, it has become so much better. json5 has not seen activity for over two years. Go libraries like https://github.com/BurntSushi/toml/ and https://github.com/pelletier/go-toml/ can really help.

yeah, either toml or yaml would be a step up compared to the awkward json format


Bump chromium and ffmpeg

Summary
Bumping dependencies. Of note, there's a major version update for ffmpeg. Will need to test a bit to make sure everything works as expected because during performance tests I remember spotting some issues with newer versions.

Tested a few recordings at scale and didn't spot any issue. Merging.