[Suggestion] Add a Web Version of the Project or Provide Guidance for Web Adaptation

[Suggestion] Add a Web Version of the Project or Provide Guidance for Web Adaptation
Hello everyone,
I hope this message finds you all well. I am a big fan of your project and it has been a great help to me. First of all, I would like to express my gratitude for your efforts to open source this project and make it available to the community.
Recommendation:
I am interested in using this project in a web environment and was wondering if you have any plans to develop a web version of the project. If not, I would like to suggest that this would be a great addition to the project offerings.
Web version proposal:
New Web version: If the project team is open to this, developing a Web version for the project could significantly expand its user base and use cases. It's best to have a version that runs directly in a browser or server environment with no additional setup.
Web Adaptation Guidelines: If it's not practical to create a new Web version at this time, I'd appreciate some guidance on how to adapt the current project for Web use. Specifically, I need:

A list of files that need to be modified to adapt to the Web environment.
The location of main entry files and main classes that need to be adapted or rewritten for Web compatibility.
Suggestions for tools, frameworks, or libraries that have been successful in similar adaptations.

My use case:
I am particularly interested in integrating the functionality of a project into a web service. I believe that having a Web version would not only be beneficial to me, but also to other users who wish to utilize the project's functionality in a Web environment.
Willingness to contribute:
I am a beginner and I would like to try to take on the task of creating a Web version or adapting the current version for Web use under the guidance of the project maintainer. I realize that this may be a challenge, but I am willing to try as much as I can within my abilities. I believe this would be a valuable addition to the project and has the potential to attract more contributors and users.
I look forward to hearing your thoughts on this proposal. Thank you for considering my proposal and for all the great work you have done on this project.
Sincerely,
LYZQ2107

This looks like a form letter. There is only me here, and there is already a web version.
Things that make this look like a form letter.
1: you never use proper nouns and never use specific examples
2: you never say what you want to do other than "make this a web application" but you don't talk about anything
3: you never mention anything this does or why it would be a good web app
Show me you use it and how you use it and be specific about what you like and what you don't like before I would invest a single second more.
If not I will block and report this as a spam account phishing to exploit my users.

EN-US
Hello @RavinMaddHatter ,
I hope this message finds you well. I'd like to start by acknowledging that the initial message I sent was indeed generated with the help of AI, but it was carefully edited to ensure it conveyed my genuine intentions. I apologize for any confusion this may have caused.
Secondly, I have been using it in the Minecraft Bedrock Edition (BE), and I like it because, thanks to it, I can use functionality similar to Litematic in the BE version, which is very helpful (even indispensable) for playing with redstone contraptions on survival servers.
Regarding the web program, I would like to see if it can be modified to run in a web environment by making some changes, to build a website that allows users to upload and download files to achieve the conversion of structure files, rather than through a PC. Although I can use a PC, I am aware that most Bedrock Edition players, at least in China, do not have PCs to perform conversions, which forces players to seek help on forums. Moreover, the BE version is primarily played on mobile devices, and using its related addons requires the use of a PC for conversion, which is indeed inconvenient for me. Based on this, I believe adding a web version would be beneficial for players to use more conveniently.
In simple terms, I use it to convert structure files to mcpack format, and I appreciate the Litematic-like functionality it provides in the BE version. However, I dislike that its application is only available on PCs. For me personally, I think it's a useful tool, but the system environment required by its application is not appropriate, so I made this suggestion. I am currently learning front-end and back-end development, and I believe participating in this project will not only help me apply and expand my knowledge but also consolidate and enhance my skills. I am aware of the existence of StructuraWeb, but after reviewing its repository, I noticed that it has not released a stable version, and the last commit was two months ago. In addition, the high percentage of HTML in the repository suggests that it may not be fully functional or consistent with my vision of a web application, which is to handle file uploads and downloads through the front end, with the back-end service processing the files.
I apologize for any oversight in considering StructuraWeb as a viable solution and appreciate your patience in reading my response. I also regret any inconvenience caused by the AI-generated issue, and I assure you it was not intended to be spam or phishing.
Thank you for your understanding, and I look forward to any guidance or feedback you might have on this matter.
Sincerely,
LYZQ2107

ZH_CN
你好 @RavinMaddHatter ，
希望你一切都好。我想首先承认，我最初发送的消息确实是在AI的帮助下生成的，但它经过了仔细编辑，以确保它传达了我的真实意图。对于可能引起的任何混淆，我表示歉意。
其次，我在我的世界BE版本中使用它，我之所以喜欢它，是因为得益于它，我能够在BE版本中使用类似Litematic的功能，这对于我在生存服务器中玩生电是很有帮助的（甚至是不可或缺）。
关于Web程序，我想看一下能否通过一些修改使得其可以在web环境中运行，构建一个网站，使得用户可以通过上传和下载文件来实现structure文件的转换，而不是通过PC。虽然我可以使用PC，但我所知道大多数基岩版玩家（至少在中国），并没有PC来进行转换，这使得玩家不得不在论坛上寻求帮助。而且BE版本主要是手机端玩家，而使用其相关的addon，却需要使用PC来转换，这点确实让我感到不便。基于这一点，我认为为其添加一个web版本有利于玩家更方便的使用。
简单来说，我使用它进行structure到mcpack的转换，我喜欢它在BE版本提供了类似Litematic的功能，不喜欢的是其应用程序仅在PC上可用。对于我个人来说，我认为这是一个好用的工具，但其应用程序所需的系统环境并不恰当，所以我提出了此建议。我目前也在学习前端和后端开发，我相信参与这个项目不仅能帮助我应用和扩展我的知识，还能巩固和增长我的能力和技能。我了解到StructuraWeb的存在，但在查看其代码库后，我注意到它还没有发布稳定版本，最后一次提交是两个月前。此外，代码库中高比例的HTML表明它可能不完全功能齐全或与我对Web应用程序的设想不一致，即通过前端处理文件上传、下载，后端服务处理文件。
对于在考虑StructuraWeb作为可行解决方案时的任何疏忽，我表示歉意，感谢你耐心阅读我的回复。我也对由AI生成的问题引起的任何不便表示歉意，我向你保证它并非意图为垃圾邮件或网络钓鱼。
谢谢你的理解，我期待你对此事有任何指导或反馈。
此致，
LYZQ2107

Origin-原文
信的内容是通过AI生成的，不过经过修改以确保表达了我对意思，这点让你误会，我很抱歉。其次，我在我的世界BE版本中使用它，我之所以喜欢他，是因为得益于它，我能够在BE版本使用类似litematic的功能，这对于我在生存服务器中玩生电是很有帮助的（甚至是不可或缺）。关于Web程序，我想看一下能否通过一些修改使得其可以在web环境中运行，构建一个网站，使得用户可以通过上传和下载文件来实现structure文件的转换，而不是通过PC。虽然我个人有PC，但是大部分基岩版玩家并没有PC，使得其只能在相关论坛上求助(至少在中国是这样)。而且BE版本主要是手机端玩家，而使用其相关的addon，却需要使用PC来转换，这点确实让我感到不便。基于这一点，我认为为其添加一个web版本有利于玩家更方便的使用。简单来说，我使用他进行structure到mcpack的转换，我喜欢它在BE版本提供了类似litematic的功能，不喜欢它是因为其应用程序仅在PC可用。对于我个人来说，我认为这是一个好用的工具，但其应用程序所需的系统环境并不恰当，所以我提出了此建议，加之我目前也在学习前后端相关知识，参与进项目能够巩固和增长我的知识和能力。关于StructuraWeb,我在bing搜索时确实看到了它，但其没有释放任何一个版本，并且其readme.md文件极其简略和最近的提交是在两个月前。并且根据右下角的Languages
HTML
98.3%
Other
1.7% 我认为其或许和我的想法不合（我的想法是，通过前端界面传输文件到后端，后端运行应用程序并启动转换，然后输出文件到前端，这样只需要一定的改动在理想情况下）或是并未完成，所以我下意识的并没有将其看成可用的web应用版本。这点我或许应该道歉。最后，感谢你看完了我的回复，同时我也对AI生成issue的行为感到抱歉，让你以为是钓鱼垃圾邮件。

Aah sorry this had potential scammers signals.
There is a website
https://structuralab.com/
On Fri, Oct 18, 2024, 7:00 PM LYZQ2107 @.***> wrote:

EN-US
Hello @RavinMaddHatter https://github.com/RavinMaddHatter ,
I hope this message finds you well. I'd like to start by acknowledging
that the initial message I sent was indeed generated with the help of AI,
but it was carefully edited to ensure it conveyed my genuine intentions. I
apologize for any confusion this may have caused.
Secondly, I have been using it in the Minecraft Bedrock Edition (BE), and
I like it because, thanks to it, I can use functionality similar to
Litematic in the BE version, which is very helpful (even indispensable) for
playing with redstone contraptions on survival servers.
Regarding the web program, I would like to see if it can be modified to
run in a web environment by making some changes, to build a website that
allows users to upload and download files to achieve the conversion of
structure files, rather than through a PC. Although I can use a PC, I am
aware that most Bedrock Edition players, at least in China, do not have PCs
to perform conversions, which forces players to seek help on forums.
Moreover, the BE version is primarily played on mobile devices, and using
its related addons requires the use of a PC for conversion, which is indeed
inconvenient for me. Based on this, I believe adding a web version would be
beneficial for players to use more conveniently.
In simple terms, I use it to convert structure files to mcpack format, and
I appreciate the Litematic-like functionality it provides in the BE
version. However, I dislike that its application is only available on PCs.
For me personally, I think it's a useful tool, but the system environment
required by its application is not appropriate, so I made this suggestion.
I am currently learning front-end and back-end development, and I believe
participating in this project will not only help me apply and expand my
knowledge but also consolidate and enhance my skills. I am aware of the
existence of StructuraWeb, but after reviewing its repository, I noticed
that it has not released a stable version, and the last commit was two
months ago. In addition, the high percentage of HTML in the repository
suggests that it may not be fully functional or consistent with my vision
of a web application, which is to handle file uploads and downloads through
the front end, with the back-end service processing the files.
I apologize for any oversight in considering StructuraWeb as a viable
solution and appreciate your patience in reading my response. I also regret
any inconvenience caused by the AI-generated issue, and I assure you it was
not intended to be spam or phishing.
Thank you for your understanding, and I look forward to any guidance or
feedback you might have on this matter.
Sincerely,
LYZQ2107
ZH_CN
你好 @RavinMaddHatter https://github.com/RavinMaddHatter ，
希望你一切都好。我想首先承认，我最初发送的消息确实是在AI的帮助下生成的，但它经过了仔细编辑，以确保它传达了我的真实意图。对于可能引起的任何混淆，我表示歉意。
其次，我在我的世界BE版本中使用它，我之所以喜欢它，是因为得益于它，我能够在BE版本中使用类似Litematic的功能，这对于我在生存服务器中玩生电是很有帮助的（甚至是不可或缺）。
关于Web程序，我想看一下能否通过一些修改使得其可以在web环境中运行，构建一个网站，使得用户可以通过上传和下载文件来实现structure文件的转换，而不是通过PC。虽然我可以使用PC，但我所知道大多数基岩版玩家（至少在中国），并没有PC来进行转换，这使得玩家不得不在论坛上寻求帮助。而且BE版本主要是手机端玩家，而使用其相关的addon，却需要使用PC来转换，这点确实让我感到不便。基于这一点，我认为为其添加一个web版本有利于玩家更方便的使用。
简单来说，我使用它进行structure到mcpack的转换，我喜欢它在BE版本提供了类似Litematic的功能，不喜欢的是其应用程序仅在PC上可用。对于我个人来说，我认为这是一个好用的工具，但其应用程序所需的系统环境并不恰当，所以我提出了此建议。我目前也在学习前端和后端开发，我相信参与这个项目不仅能帮助我应用和扩展我的知识，还能巩固和增长我的能力和技能。我了解到StructuraWeb的存在，但在查看其代码库后，我注意到它还没有发布稳定版本，最后一次提交是两个月前。此外，代码库中高比例的HTML表明它可能不完全功能齐全或与我对Web应用程序的设想不一致，即通过前端处理文件上传、下载，后端服务处理文件。
对于在考虑StructuraWeb作为可行解决方案时的任何疏忽，我表示歉意，感谢你耐心阅读我的回复。我也对由AI生成的问题引起的任何不便表示歉意，我向你保证它并非意图为垃圾邮件或网络钓鱼。
谢谢你的理解，我期待你对此事有任何指导或反馈。
此致，
LYZQ2107
Origin-原文
信的内容是通过AI生成的，不过经过修改以确保表达了我对意思，这点让你误会，我很抱歉。其次，我在我的世界BE版本中使用它，我之所以喜欢他，是因为得益于它，我能够在BE版本使用类似litematic的功能，这对于我在生存服务器中玩生电是很有帮助的（甚至是不可或缺）。关于Web程序，我想看一下能否通过一些修改使得其可以在web环境中运行，构建一个网站，使得用户可以通过上传和下载文件来实现structure文件的转换，而不是通过PC。虽然我个人有PC，但是大部分基岩版玩家并没有PC，使得其只能在相关论坛上求助(至少在中国是这样)。而且BE版本主要是手机端玩家，而使用其相关的addon，却需要使用PC来转换，这点确实让我感到不便。基于这一点，我认为为其添加一个web版本有利于玩家更方便的使用。简单来说，我使用他进行structure到mcpack的转换，我喜欢它在BE版本提供了类似litematic的功能，不喜欢它是因为其应用程序仅在PC可用。对于我个人来说，我认为这是一个好用的工具，但其应用程序所需的系统环境并不恰当，所以我提出了此建议，加之我目前也在学习前后端相关知识，参与进项目能够巩固和增长我的知识和能力。关于StructuraWeb,我在bing搜索时确实看到了它，但其没有释放任何一个版本，并且其readme.md文件极其简略和最近的提交是在两个月前。并且根据右下角的Languages
HTML
98.3%
Other
1.7%
我认为其或许和我的想法不合（我的想法是，通过前端界面传输文件到后端，后端运行应用程序并启动转换，然后输出文件到前端，这样只需要一定的改动在理想情况下）或是并未完成，所以我下意识的并没有将其看成可用的web应用版本。这点我或许应该道歉。最后，感谢你看完了我的回复，同时我也对AI生成issue的行为感到抱歉，让你以为是钓鱼垃圾邮件。
—
Reply to this email directly, view it on GitHub
https://github.com/RavinMaddHatter/Structura/issues/232#issuecomment-2423475226,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABBUC5C4Y2LSHFQFEE45FFDZ4G4MRAVCNFSM6AAAAABQGE4WFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRTGQ3TKMRSGY
.
You are receiving this because you were mentioned.Message ID:
@.***>

thanks


Remove direct push detection GitHub action

We are trying out not allowing direct pushes anymore, so this is not necessary anymore, unless we later revert it again (unlikely): https://github.com/NixOS/nixpkgs/issues/249117
We can also close the associated issues https://github.com/NixOS/nixpkgs/issues/118661 and https://github.com/NixOS/nixpkgs/issues/240314

Maybe we should wait a bit with this once we confirm that https://github.com/NixOS/nixpkgs/issues/249117#issuecomment-1677747097 isn't a problem.

Looks like it should be fine!


Update Composer dependencies (2022-02-02-00-04)

Visual regression test passed!
View the visual regression test report


Check for previous/existing GitHub issues/module proposals

[X] I have checked for previous/existing GitHub issues/module proposals.

Check this module doesn't already exist in the module indexes

[X] I have checked for that this module doesn't already exist in the module indexes.

Bicep or Terraform?
Terraform
Module Classification?
Resource Module
Module Name
avm-res-maintenance-maintenanceconfiguration
Module Details
AVM Resource Module for Maintenance Configuration
Do you want to be the owner of this module?
No
Module Owner's GitHub Username (handle)
No response
(Optional) Secondary Module Owner's GitHub Username (handle)
No response

I'm interested in being an external contributor once a module owner has been found :)


Non-monotonic index

All of the sudden i am getting error: non-monotonic index .git/objects/pack/._pack-083d10c8d3f606c383e8c3e7aa1757322902a95e.idx and it's creating a ._ file for every file in my project.
/usr/local/bin/git
➜  ~ git --version
git version 2.7.1```

I moved my repos to a local directory instead of dropbox and the error went away. Go figure.


Error in get_img_orientation during workflow setup in 20.2.7 but not in 20.2.0

What happened?
Got an error during workflow setup in get_img_orientation function on a dataset in 20.2.7. The same dataset processed without this error in 20.2.0. Can't see any obvious problem with the image header.

Singularity
Is your data BIDS valid?
Yes
Are you reusing any previously computed results?
FreeSurfer
Please copy and paste any relevant log output.
====
230418-21:48:02,681 nipype.workflow INFO:
         No single-band-reference found for sub-XX_ses-06_task-taskmotor_run-01_bold.nii.gz.
230418-21:48:03,245 nipype.workflow IMPORTANT:
         BOLD series will be slice-timing corrected to an offset of 1.48s.
Process Process-2:
Traceback (most recent call last):
  File "/usr/local/miniconda/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/local/miniconda/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/cli/workflow.py", line 82, in build_workflow
    retval["workflow"] = init_fmriprep_wf()
  File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/base.py", line 64, in init_fmriprep_wf
    single_subject_wf = init_single_subject_wf(subject_id)
  File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/base.py", line 304, in init_single_subject_wf
    func_preproc_wf = init_func_preproc_wf(bold_file)
  File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/bold/base.py", line 172, in init_func_preproc_wf
    ref_orientation = get_img_orientation(ref_file)
  File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/bold/base.py", line 982, in get_img_orientation
    return ''.join(nb.aff2axcodes(img.affine))
TypeError: sequence item 2: expected str instance, NoneType found
=====

Additional information / screenshots
No response

b"\\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00r9\x04\x"

That seems to have gotten truncated...

I was going to say -- this doesn't make sense. Let me redirect the output.

Okay. I had to escape the first character, but then I got:
In [31]: hdr.get_sform(coded=True)
Out[31]:
(array([[ -3.3125    ,  -0.        ,   0.        ,<PHONE_NUMBER>1],
        [  0.        ,   3.29311061,   0.        , -85.32108307],
        [  0.        ,   0.3578808 ,   0.        , -67.8843689 ],
        [  0.        ,   0.        ,   0.        ,   1.        ]]),
 1)

In [32]: hdr.get_qform(coded=True)
Out[32]:
(array([[ -3.3125    ,   0.        ,   0.        ,<PHONE_NUMBER>1],
        [  0.        ,   3.3076491 ,  -0.1785266 , -85.32108307],
        [  0.        ,   0.17920284,   3.29516736, -67.8843689 ],
        [  0.        ,   0.        ,   0.        ,   1.        ]]),
 1)

You have a corrupted sform that's coded non-zero. The simplest thing would be to zero-out the sform_code and let fMRIPrep copy the qform to the sform for you.

Thanks @effigies ! That looks like a 0 z-resolution! Do you suggest something like
img.header.set_sform(affine, 0)
no matter what affine is, fmriprep will use the qform ? Related question: the header hasn't been altered by anything after being extracted by dcm2niix. What could cause this ?

You can also use fsledithd to edit the header.

Looks like further header repair may be needed:
Process Process-2: Traceback (most recent call last):   File "/usr/local/miniconda/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap     self.run()   File "/usr/local/miniconda/lib/python3.7/multiprocessing/process.py", line 99, in run     self._target(*self._args, **self._kwargs)   File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/cli/workflow.py", line 82, in build_workflow     retval["workflow"] = init_fmriprep_wf()   File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/base.py", line 64, in init_fmriprep_wf     single_subject_wf = init_single_subject_wf(subject_id)   File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/base.py", line 304, in init_single_subject_wf     func_preproc_wf = init_func_preproc_wf(bold_file)   File "/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/bold/base.py", line 148, in init_func_preproc_wf     bold_file[0] if isinstance(bold_file, (list, tuple)) else bold_file   File "/usr/local/miniconda/lib/python3.7/site-packages/nibabel/loadsave.py", line 52, in load     img = image_klass.from_filename(filename, **kwargs)   File "/usr/local/miniconda/lib/python3.7/site-packages/nibabel/dataobj_images.py", line 489, in from_filename     keep_file_open=keep_file_open)   File "/usr/local/miniconda/lib/python3.7/site-packages/nibabel/analyze.py", line 980, in from_file_map     img._affine = header.get_best_affine()   File "/usr/local/miniconda/lib/python3.7/site-packages/nibabel/nifti1.py", line 732, in get_best_affine     return self.get_qform()   File "/usr/local/miniconda/lib/python3.7/site-packages/nibabel/nifti1.py", line 915, in get_qform     quat = self.get_qform_quaternion()   File "/usr/local/miniconda/lib/python3.7/site-packages/nibabel/nifti1.py", line 890, in get_qform_quaternion     return fillpositive(bcd, self.quaternion_threshold)   File "/usr/local/miniconda/lib/python3.7/site-packages/nibabel/quaternions.py", line 99, in fillpositive     raise ValueError(f'w2 should be positive, but is {w2:e}') ValueError: w2 should be positive, but is -4.000510e-07

That's surprising. We were able to get the qform before. Does it work if you use fsledithd to set the code instead of nibabel?

I did use fslhd to just change sform_code

So it turns out when I use nibabel to set sform_code , it does work, and the fmriprep run successfully finished. Thanks a lot @effigies for your guidance.


create Organizations resource

work for this ticket should result in:
an organizations module including entity, service, controller with basic CRUD endpoints
using curl/httpie/postman/etc you should be able to get appropriate success and error responses
set up any relationships that are listed in https://drive.google.com/file/d/1GR0hJ7P9tDepDUW0tjpOrC5d8iE-Elx1/view?usp=sharing
reference https://drive.google.com/file/d/1GR0hJ7P9tDepDUW0tjpOrC5d8iE-Elx1/view?usp=sharing for data model attributes
also can follow similar pattern of User resource/module
later steps include: (so don't do any of these just yet)
adding auth checks to any of these endpoints that need it

See PR #74: https://github.com/Nonprofit-Exchange-Hub/web-app/pull/74


Error: unhandled exception: cannot read from stream [IOError]

When trying to parse large base64-string's I get the error:
Error: unhandled exception: cannot read from stream [IOError]

The base64-string origins from photos taken with iPhones, which then is converted to base64 in the browser. I can't reproduce exactly when this happens, so my guessing is, that it might be due to the details in the photo (?).
I have the base64-strings which works flawless with online converters and linux own base64 -d p.txt >> p.png. I have also validated the base64-string, and it is valid base64.
Test code:
import base64, streams
import nimPNG

const b = """loooong base64"""

proc fromBase64(input: string): string =
  result = base64.decode(input)

proc base64ToPng*(b64: string, path: string): bool =
  let
    s = newStringStream(fromBase64(b64))
    decoded = s.decodePNG(LCT_RGBA, 8) # <== This one, line 12

  result = (savePNG32(path, decoded.data, decoded.width, decoded.height))

echo base64ToPng(b, "debug.png")

GH does not like the long base64 string so here is a Gist with it: https://gist.github.com/ThomasTJdev/7a14a8b8309d67a7188c3cfe61eff869
The error message is:
/home/user/tmp/nim/image/base64debug.nim(22) base64debug
/home/user/tmp/nim/image/base64debug.nim(17) base64ToPng
/home/user/.nimble/pkgs/nimPNG-0.3.1/nimPNG.nim(1917) decodePNG
/home/user/.nimble/pkgs/nimPNG-0.3.1/nimPNG.nim(1842) decodePNG
/home/user/.nimble/pkgs/nimPNG-0.3.1/nimPNG.nim(939) parsePNG
/home/user/.nimble/pkgs/nimPNG-0.3.1/nimPNG.nim(387) readInt32BE
/home/user/.choosenim/toolchains/nim-1.2.6/lib/pure/streams.nim(570) readInt32
/home/user/.choosenim/toolchains/nim-1.2.6/lib/pure/streams.nim(382) read
Error: unhandled exception: cannot read from stream [IOError]

And this is also present if I:
import base64
import nimPNG

const b = """looong base64"""

writeFile("debug.png",base64.decode(b))
let png = loadPNG("debug.png", LCT_RGBA, 8)

# = > cannot read from stream

Okay, I had not thought about checking the output image. Using imagemagic convert gives some info on the image created using linux base64:
Expected 8192 bytes; found 7782 bytes

Closed due to my previous comment. It must be my base64 which is malformed.

Thank you for reporting this.
I've investigate it. Turn out it is an incomplete png file and therefore according to the spec it is an invalid input.
But I also tested with some other png decoder and they seem ignoring the incomplete part and continue decoding.
The result is of course an incomplete image or image with blank/random/uninitialized pixels of that skipped chunk.
I think it is a good idea to also implement this so called 'relaxed' parsing mode along with 'strict' parsing mode.
nimBMP and libzip are examples of libs that try to recover as much as possible data from a corrupted input file.
PNG format consist of chunks of loosely coupled data, if the parser can work in recovery mode perhaps using some progressive scanning method, we can increase the robustness of nimPNG.
Technically this is not nimPNG bug, so I will open a new issue and mark it as new feature.


Update ft9xx-sdk register layout using unions

The example in Dat's presentation was:
#ifndef __HARDWARE_REGS__
#define __HARDWARE_REGS__

#include <stdint.h>

typedef uint8_t REG_ACCESS_U8;
typedef int8_t REG_ACCESS_S8;

typedef struct
{
  uint8_t RX_AVL_EN : 1;
  uint8_t TX_EMTY_EN :1;
  uint8_t LINE_STS_EN : 1;
  uint8_t MOD_STS_EN : 1;
  uint8_t SM_EN : 1;
  uint8_t SC_EN: 1;
  uint8_t RTS_EN : 1;
  uint8_t CTS_EN : 1;
} UART_INT_ENABLE_S;

typedef union
{
  REG_ACCESS_U8 U;
  REG_ACCESS_S8 S;
  UART_INT_ENABLE_S B;
} UART_INT_ENABLE_U;

typedef struct
{
  //....
  volatile UART_INT_ENABLE_U UART_INT_ENABLE;
  //....
} ft900_uart_regs_t;

#endif // __HARDWARE_REGS__

Note that we don't need signed access to any raw register.
What we need to do is to:

Work out exactly how the registers are shown in the header files. Create a sample file with examples.
See if we can be really clever and make a backward-compatible method!
Put an issue (and wiki entry) on the ft9xx-sdk repository to tell everyone what is going to happen.
Link this issue to the one in ft9xx-sdk.
See if there is feedback and act accordingly. We may need to keep backward-compatible files. We can mark the macros for the old register maps as deprecated but keep them for a release.
Branch ft9xx-sdk and update.
Modify the debug structure to have the new methods.
Modify the examples which require it to use the new methods. Hopefully, there will be very few!
Modify documentation and release notes for the next release with this being the most important change.

Start working on ADC_DAC

The code is running:
Test ADC channel 1 with 3.3V from the board:

Test ADC channel 1 with GND from the board:

@brtchip-gdm Could you help review this change? I hope it good

The CAM register has update also.

I have updated the enum to the lowercase for both modules ADCDAC and CAM, thank you for your advice. @brtchip-gdm
I added 2 APIs for ADCDAC to enable/disable the rail mode. If it is not good I will remove it.

Close the ticket after merging.


Support for NON YUI-version fo eZ Platform

Hi, sorry for making this an "Issue" when it's just a question, but I couldn't find any contact information.
For ezPlatform version 2.0 and later, YUI librabry for admin UI has been abandoned. Will this bundle still work as is for eZ Platform version 2.1?

Hi @tminsaas
Not a problem to open an issue :)
Well this bundle hasnt be update for ezplatform v2. Lack of time. Master branch will not work with the new UI. But if you wanna update it let me know :) Else I will update it end of june / july


LinAlgError: singular matrix (with covariant features + ridge)

I'm getting a numpy.linalg.linalg.LinAlgError: singular matrix error from line 1216 of base_multinomial_cm_v2
I'm getting these errors at what seems like random (I am setting numpy.random.seed(1) before I train the model). Note I am working with a feature matrix that has covariant features, but I'm setting the ridge parameter of fit_mle.
Here's small example of what I think is causing the issue.
import numpy as np
import pandas as pd
import pylogit as pl

from collections import OrderedDict

np.random.seed(1)
# x is a valid feature
x = np.array([1,2,3,1.5,3.5])

# x_redundant is a redundant feature
x_redundant = x * -1

fake_df = pd.DataFrame({"obs_id": [1, 1, 1, 2, 2],
                        "alt_id": [1, 2, 3, 1, 3],
                        "choice": [0, 1, 0, 0, 1],
                        "x": x,
                        "x_redundant": x_redundant,
                        "intercept": [1 for i in range(5)]})

specification = OrderedDict()
specification['x'] = 'all_same'
specification['x_redundant'] = 'all_same'

model = pl.create_choice_model(
    data = fake_df,
    obs_id_col='obs_id',
    alt_id_col='alt_id',
    choice_col='choice',
    specification=specification,
    model_type='MNL'
)

model.fit_mle(np.zeros(2))

If I set model.fit_mle(np.zeros(2), ridge=0.8) the error doesn't get raised in this example, yet in my code I'm setting the ridge=0.8 and the error still gets raised.
I read a few articles/cross-validated posts about singular matrices, but I'm still figuring out what it means. I wish I could be more descriptive in this issue.
Thanks for the help.
EDIT:
Here's a screenshot of my hessian when I'm getting the error:

@georgewambold this behavior is expected.
Your model is not identified because x and x_redundant have a perfect linear dependence. As a result, there are an infinite number of coefficient values that would lead to the same maximum likelihood value.
No error gets raised when you use model.fit_mle(np.zeros(2), ridge=0.8) because ridge regression allows you to estimate coefficients even when one's hessian is singular.
PyLogit is not set up to check one's model specification for identification, mostly because I think would be very complex to do so. The onus is on the user to a priori make sure that they are specifying identified models.

Also, there is no need to set a random seed here. None of the models in pylogit, except for mixed logit, have randomness in the training procedure. On top of that, your example uses deterministic values. As a result the random seed does nothing.

Thanks for the response!
My problem is that I'm getting a LinAlgError even with a ridge parameter set. I couldn't find a way to recreate the error with a code snippet, because it seems to happen somewhat randomly in my code.

"ridge regression allows you to estimate coefficients even when one's hessian is singular (not that you should...)."

Why not? I thought one of the uses of penalized regression was to get rid of redundant/covariant features.
Thanks again for your time. I appreciate that this is an open source project and that you're giving your time and knowledge away for free. Thank you for that.

@georgewambold You're right, you may definitely still want to estimate coefficients. What I should have said was that you probably don't want to use normal approximations to the asymptotic sampling distribution when your model is not identified. The resulting parameter uncertainty estimates are not correct because penalized regression changes not just the variance of one's sampling distribution (as perhaps captured by the penalized hessian) but also the mean of one's sampling distribution as well.
Re the random LinAlgErrors, If you're using an unidentified model, it may be that depending on the precise dataset being used, the ridge penalty is not strong enough to produce an invertible hessian. Either way, if one is using ridge regression, the uncertainty estimates encoded in the estimation results are incorrect. You may be best off simply doing something along the lines of
mnl_model_results = mnl_model.fit_mle(init_values, just_point=True)
mnl_mle_params = mnl_model_results['x']
param_list = [mnl_mle_params, None, None, None]
predictions = mnl_model.predict(prediction_df, param_list=param_list)

If using a model other than MNL, then one would need to modify the param_list accordingly. See the docstring of the .predict() method for details on how to create an appropriate param_list argument.
Re the time give-away: no worries, you're welcome! User supplied pull-requests that fix problems that you find are always most appreciated!


New Crowdin translations

Enjoy!

Codecov Report

Merging #122 into master will increase coverage by 0.99%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #122      +/-   ##
==========================================
+ Coverage   15.67%   16.67%   +0.99%
==========================================
  Files         184      189       +5
  Lines        5646     7335    +1689
==========================================
+ Hits          885     1223     +338
- Misses       4761     6112    +1351

Impacted Files
Coverage Δ

...y/Scenes/History/Detail/EventDetailViewModel.swift
42.27% <0%> (-12.49%)
:arrow_down:

Lightning/Services/HistoryService.swift
58.53% <0%> (-9.6%)
:arrow_down:

...hentication/View Models/InputNumberFormatter.swift
91.54% <0%> (-8.46%)
:arrow_down:

Lightning/Invoice/BitcoinInvoice.swift
95.23% <0%> (-1.43%)
:arrow_down:

Lightning/SQLite/Events/TransactionEvent.swift
91.04% <0%> (-0.49%)
:arrow_down:

Library/Views/Stack View/UIStackView.swift
0% <0%> (ø)
:arrow_up:

...ry/Scenes/ModalDetail/Send/LoadingAmountView.swift
0% <0%> (ø)
:arrow_up:

Library/Coordinators/RootCoordinator.swift
0% <0%> (ø)
:arrow_up:

...enes/ChannelList/ChannelDetailViewController.swift
0% <0%> (ø)
:arrow_up:

...Scenes/Authentication/SetupPinViewController.swift
0% <0%> (ø)
:arrow_up:

... and 69 more

Continue to review full report at Codecov.

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


Added IT test for vendor querying.

Test for #7

This change is

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Analyzing the .text Segment in a Go Binary

This issue involves the analysis of the .text segment within a Go binary. The focus is on understanding the strings contained in the .text segment.
This issue is a continuation of the discussion in https://github.com/mandiant/flare-floss/issues/779

Cool, I think that's a good start for an optimization for short strings.
A few follow up questions:

Have you looked at other binaries? Here the instruction is cmp but we want to handle others, e.g., mov as well.
What about strings that are longer than 8/16 characters? I think that case is actually easier (that's why I suggested to skip case 3 originally in https://github.com/mandiant/flare-floss/issues/779#issuecomment-1581047424).

Have you checked out the code of various Go binaries (different source) to see how strings are stored and accessed?

"strings in the .text segment"
from here: https://stackoverflow.com/a/35342389
we are linked to this commit in the Go compiler: https://github.com/golang/go/commit/69cd91a5981c49eaaa59b33196bdb5586c18d289
which introduces an optimization in Go 1.5 for comparing a string with a constant string. in this scenario. the constant string is converted to a stack-allocated temporary byte[] variable, which leads to inlining like seen in the above examples. im not sure yet where the decision to use 8 vs 16 bytes as the max inline size is, but its possible thats its far away in the compiler source.
anyways, this clarifies which strings we expect to see in this pattern: string constants used during map lookup, constant concatenation, and comparisons
https://github.com/golang/go/blob/c3db64c0f45e8f2d75c5b59401e0fc925701b6f4/src/runtime/string.go#L146-L149

In versions preceding Go 1.6, while analyzing the .text segment, it is observed that the reference to the string exists, but the string length information is not readily accessible.

As per our discussion we're not targeting versions <1.6 to focus on more recent versions. But please add an issue with some details like sample (hash) and what you've learned so far.

Interesting, which samples have you analyzed above?

Great, would love to see the current performance (via the analysis script) on

our testfiles across Go versions and
a bunch of random Go samples

Ideally we also script/automate this and integrate into our tests (CI), see #807


Exception thrown in SecretClient.getSecret attempting to reach the secrets store in azure

This exception seems to occur sporadically; I'm guessing maybe once or twice a month.
I don't think it has anything to do with Redox (?); its an inability to reach the Secrets vault.
Result: Exception during REDOX send of reportId 4bd76d8e-0e06-4d5b-b135-50c74726b443:   Status code 401, "{"error":{"code":"Unauthorized","message":"[TokenExpired] Error validating token: 'S2S12086'."}}".
Exception: Status code 401, "{"error":{"code":"Unauthorized","message":"[TokenExpired] Error validating token: 'S2S12086'."}}"
Stack: com.azure.core.exception.HttpResponseException: Status code 401, "{"error":{"code":"Unauthorized","message":"[TokenExpired] Error validating token: 'S2S12086'."}}"

The 401 appears to be a response from the vault:
Suppressed: java.lang.Exception: #block terminated with an error
		at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:99)
		at reactor.core.publisher.Mono.block(Mono.java:1704)
		at com.azure.security.keyvault.secrets.SecretClient.getSecretWithResponse(SecretClient.java:179)
		at com.azure.security.keyvault.secrets.SecretClient.getSecret(SecretClient.java:157)
		at gov.cdc.prime.router.secrets.AzureSecretService.fetchSecretFromStore(AzureSecretService.kt:28)
		at gov.cdc.prime.router.secrets.SecretService.fetchSecret(SecretService.kt:14)
		at gov.cdc.prime.router.transport.RedoxTransport.getKeyAndSecret(RedoxTransport.kt:162)

This is an ongoing problem. The application recovers from this, but it's annoying an appears to be a bug in Azure.

Possibly related to #3116 ?


override smilies array?

How do you override the array of smilies that is hardcoded in the JS?

Read the Building section of the readme.

I meant more at runtime, as I am using the bower package. Thanks though.

Actually it was really designed to be as simple as possible, and at this time I was a real noob in Angular.
You can submit a PR with a service provider for configuration, I will be happy to integrate it.


support.lua:38: Attempt to index local 'str' (a nil value)

I've been using this repo for a few times. Now I'm playing JP server's Christmas event. The issue was when I start the script, either from the quest selection screen or the first battle screen, this error message immediately prompts:

I confirmed my repo is up-to-date. It looks like some initialization error in parsing the friend list? But I wonder why it won't work when I'm already in the battle. I'm running on a OnePlus 5 phone as I used to with AnkuLua 8.5.0-pro2. Can you suggest any possible fix? Thanks a lot.

I just tried my previous scripts (for QP and tanebi) that worked fine in the past but now with this error too.

OK now I found a fix. I just commented out the following lines in support.lua
	-- friend names
	-- for _, friend in ipairs(split(Support_FriendNames)) do
	-- 	friend = stringUtils.Trim(friend)
	-- 	table.insert(FriendNameArray, friend)
	-- end

I looked at the file history and found this is a new feature of selecting a fixed friend, which could be very useful. But this initialization seems to have some trouble getting the friend list (are there extra steps to take to get the list?).

Maybe there are some special characters in your FGO_JP_REGULAR.lua that cause this problem.
Your can try original FGO_JP_REGULAR.lua to check this problem.
I haven't encounter this problem in JP Christmas event.

It's probably too late but the error indicates that you probably don't have this line in your script:
Support_FriendNames = ""

My linked PR fixes the exceptions if you forget that line


Split frame causes active modeline to "hide" middle part

When I am splitting the frame (i.e. C-x 3), the active modeline (on the right) looks like this:

So the name part and the major modes get lost. Actually it looks like an involuntary application of the behavior for the inactive modeline on the left side.

Yes, I'm aware of this, unfortunately it's a regression/change in Spaceline 😞 They've added a feature to make the mode line "responsive", so that as you split your windows, the spaceline segments will be hidden if they overflow.
Personally, I dislike this feature as it lends itself hiding useful information more often than is necessary! I've raised TheBB/spaceline#146 to discuss the feature and try and work with the guys maintaining it to come up with a solution, but I don't have much time at the moment. I'd like to be able to optionally enable/disable this feature rather than have it only work this way...
They've also added in a priority feature which lets you define which segments should be hidden over others but it still results in hiding a lot of the mode line 😕 But that could improve things for people!

That is not indeed related to spaceline-all-the-icons.
However, I think that, projectile-current-root or vc-current-branch and flycheck-issues are in the same segment.
Should the modeline be responsive, it would be great to keep the current git branch shown even if there is no space left to show flycheck results.

Here is a dirty quick fix: in spaceline-all-the-icons-segments.el, comment line 1017 and don't forget to add an extra closing parenthesis.
Apparently, it is caused by the rightmost segment, i.e., the clock, which adds extra space, and then, it overflows.
I'll dig more into it.

Actually, keep the line and change the width to 1 gives the expected rendering without the overflow.


Please make the docs clearer on whether TCP ports need to be open for dat publishing

Hi Beaker Browser team,
If I create a page in Beaker Browser and I want it available to other people with the URL, do I need to allow incoming requests to my machine with port 8080? 3282?  Something else?
Even if the protocol uses some other mechanism and no ports need to be open, I think it would be helpful to state that fact in the README or other documentation.  If it's already in there, I could not find it with git clone + grep.
Edit: or is the assumption that any serious publishing will be done using the instructions at https://beakerbrowser.com/docs/tutorials/host-outside-of-beaker.html  and publishing inside Beaker Browser itself is only for rapid prototyping?

I use Linux iptables as firewall. What ports do I need to open in simple terms?


OpenSlide and TiffSlide

Spotted in #16, #15 and #14...
In the current tests, we write pyramidal RGB tiffs:
https://github.com/qupath/qubalab/blob/13a9f0f3ad3d9bf088027e40d3c30e0b8d1a6970/tests/res/multi_resolution_uint8_3channels.py#L76-L85
When photometric='rgb', OpenSlide works fine. TiffSlide fails with  NotImplementedError: series with axes='SYX' not supported yet.
Without setting this flag, TiffSlide "works", but returns all zeros for all pixels. OpenSlide fails with openslide.lowlevel.OpenSlideUnsupportedFormatError: Unsupported or missing image file.
An unrelated issue with OpenSlide on Linux was resolved in #14, where the apt version of OpenSlide fails to read the pixel calibration from the image properties. Theoretically we could parse this from the image metadata ourselves, but it's probably more prudent to wait for 4.0.0 binaries to be out on apt (and linked up with python).
Now reading the openslide-python README might make you think that you can pip install openslide-python openslide-bin and get a working openslide install. But we have to wait for openslide-python 1.4.0 for that! Given openslide-bin was released 3 weeks ago, that should be soonish
https://github.com/openslide/openslide-python/blob/797ea3ddb981713ba0b07a91d79f9396338dda9b/README.md?plain=1#L49-L56

Leaving tiffslide in place just in case


[vcpkg] allow non-existent paths in --overlay-ports and --overlay-triplets

Just as the title says. I have configured the corresponding environment variables with relative paths. (e.g. script/test_ports)
The problem is that this breaks manifest support since vcpkg is executed from a different path.

I feel like we shouldn't allow relative paths in overlay ports and overlay triplets, for exactly this reason. @ras0219, thoughts?

Relative paths should be allowed in command line but not in environment variables.

Relative paths should be allowed in command line but not in environment variables.

We hope your question was answered to your satisfaction; if it wasn't, you can reopen with more info.


No way to cancel an aborted download?

Is there any way to clear out any pending downloads? I went to download a user's gallery and favorites, only to find that totaled 75k submissions. So I canceled the download, figuring I'd uncheck favorites and try again. But now every time I initiate a download from any user, I still get the message "[Data] Saving data for 75434 submissions..." in the log. It seems like now that the program has stored the metadata of those submissions, it's determined to download all of them no matter what. Is there any fix or workaround for this, or a button or setting I haven't located?

Hmm. As a temporary workaround (and if you don't have any other galleries downloaded) you can delete the "fa_gallery_downloader" folder. I'll try to come up with a feature for this in the meantime!

Addressed in the latest build!


2.0 wip: data-toggle=collapse with radio-buttons

Radio-Buttons dont work properly with data-toggle.
Collapse is working, but the radio-button state wont change.
Example:

        <input type="radio" name="choice" value="1" style="float:left;" data-toggle="collapse" data-target="#t1">
        Choice 1

Text

       <input type="radio" name="choice" value="2" style="float:left;" data-toggle="collapse" data-target="#t2">
        Choice 2

Text

Can you make a js fiddle with the example? It's much easier for Mark and Jacob to test the issue.

Thanks for the hint about jsfiddle.
Link: http://jsfiddle.net/XORwell/kQZ59/7/

It doesn't work as in the click handler, it's preventing the default handling of the event: https://github.com/twitter/bootstrap/blob/2.0-wip/js/bootstrap-collapse.js#L130
Removing that line would cause the page to jump in the example in the docs since the links use the hash.

so i've changed it to only prevent default for targets specified with href, so this should work now for you

great. thx!


Fix frontend dependencies

Remove unwanted changes from #708 :

Regression for nodes order on index page

@gdubicki I have missed some localized timestamp fields. I have add them to this PR

Great, thank you @melck!


Ruby syntax error in path/to/file in resource

I got Ruby syntax error in path/to/file in resource

Please send the log

please send the cookbook file

please check file path in your cookbook
in linux you have to give
/home/ubuntu/1.txt
in windows
\home\user\1.txt

plz upload cookbook


UI/UX: Remove right and left margins from the feed with posts (Best visual continuation of the feed)

Fixed by 3032625 commit

Fixed by 3032625 commit


Add ability to import full analysis records

Don't analyze gene coverage in full analysis mode
When filter changes filtersPassed on variants, move to 'uncategorized'.


add env command(s)

adding command(s) to ls, add, rm, pull Checkly env commands
I hereby confirm that I followed the code guidelines found at engineering guidelines
Affected Components

[ x] CLI
[ ] Create CLI
[ ] Test
[ ] Docs
[ ] Examples
[ ] Other

Notes for the Reviewer

Resolves #[issue-number]

New Dependency Submission

Nice job @hlenke 👍 . If you want help addressing some of the comments, let me know and I could push some changes.

Haven't checked the code but the main thing in my head is we should not overwrite or edit existing env files. Maybe check if a file exists and ask the user to confirm.

Haven't checked the code but the main thing in my head is we should not overwrite or edit existing env files. Maybe check if a file exists and ask the user to confirm.

@tnolet https://github.com/checkly/checkly-cli/blob/9099b6d56924d275b59d780e90616031fb4a7914/packages/cli/src/commands/env/pull.ts#L44
That should be what you had in mind. No?

@nahuelon & @clample, could you please re-review? I've addressed all comments. 🙏

Aside from the typos @nahuelon found, it looks good to me 👍

This is merged with https://github.com/checkly/checkly-cli/pull/647


STOR-1065: Rework sidecar bindings to bind common ClusterRoles

PR https://github.com/openshift/cluster-storage-operator/pull/379 publishes builiding blocks of sidecar ClusterRoles. Now, vmware-vsphere csi driver operator may compose its sidecars ClusterRoles from those building blocks.
This PR also moves permissions for leases resource from ClusterRole to per-namespace Role (assets/rbac/lease_leader_election_role.yaml).

/retest

/test e2e-vsphere
/test e2e-vsphere-csi-extended

/test e2e-vsphere-csi-extended

ci/prow/e2e-vsphere-csi-extended is flaky, see how it failed in that PR.

/label docs-approved
/label px-approved

/lgtm
/approve


Not using the ifEnd case

Current coverage is 100.00%

Merging #40 into master will not affect coverage as of 641104d

@@            master     #40   diff @@
======================================
  Files           17      17
  Stmts          425     425
  Branches        34      34
  Methods          0       0
======================================
  Hit            425     425
  Partial          0       0
  Missed           0       0

Review entire Coverage Diff as of 641104d

Powered by Codecov. Updated on successful CI builds.


Some commands timeout with rclone

I'm trying to restore a snapshot from a restic repository using rclone but it always times out. I tried:

Restoring from Windows. It times out.
Restoring form Windows specifying the URL and port of the rclone serve. It times out.
Restoring from Linux. It times out.
Restoring from Linux specifying the URL and port of the rclone serve. It times out.

Listing the snapshots does work, the repository must have ~3000 snapshots if that has anything to do with that.
Trying to retrieve the repository info also timeout, this is the same error I always get, it's always with /index/:

[INFO] repository rclone:remote:restic: password is correct.
[INFO] using cache at /root/.cache/rustic/d90d022df2fb823131a02de585863aa60c12625ab6f20315326e657591feface
[INFO] scanning files...
[WARN] Error error sending request for url (http://<IP_ADDRESS>:46241/index/): operation timed out at 642.974464ms, retrying
[INFO] rclone output: 2023/03/23 12:49:26 ERROR : index: list failed: &fmt.wrapError{msg:"couldn't list directory: context canceled", err:(*errors.errorString)(0xc00011e0b0)} *fmt.wrapError

[WARN] Error error sending request for url (http://<IP_ADDRESS>:46241/index/): operation timed out at 587.699263ms, retrying
[INFO] rclone output: 2023/03/23 12:49:57 ERROR : index: list failed: &fmt.wrapError{msg:"couldn't list directory: context canceled", err:(*errors.errorString)(0xc00011e0b0)} *fmt.wrapError

[WARN] Error error sending request for url (http://<IP_ADDRESS>:46241/index/): operation timed out at 1.219423732s, retrying
[INFO] rclone output: 2023/03/23 12:50:27 ERROR : index: list failed: &fmt.wrapError{msg:"couldn't list directory: context canceled", err:(*errors.errorString)(0xc00011e0b0)} *fmt.wrapError

[WARN] Error error sending request for url (http://<IP_ADDRESS>:46241/index/): operation timed out at 1.979637741s, retrying
[INFO] rclone output: 2023/03/23 12:50:58 ERROR : index: list failed: &fmt.wrapError{msg:"couldn't list directory: context canceled", err:(*errors.errorString)(0xc00011e0b0)} *fmt.wrapError

[WARN] Error error sending request for url (http://<IP_ADDRESS>:46241/index/): operation timed out at 3.295870337s, retrying
[INFO] rclone output: 2023/03/23 12:51:30 ERROR : index: list failed: &fmt.wrapError{msg:"couldn't list directory: context canceled", err:(*errors.errorString)(0xc00011e0b0)} *fmt.wrapError

Sometimes I get this:
[WARN] Error error sending request for url (http://localhost:4041/snapshots/): operation timed out at 547.183ms, retrying

This seems to be a problem of rclone. Can you access the index using rclone directly? What is the output of  rclone ls <PATH>/index/?

Thanks for the explanation - this is actually a really slow storage backend...
The default timeout for http requests is 30s - this explains your behavior. The problem is that if the request timed out, rustic does retry - but if this also takes that long, the retry request also times out. And so on, until the maximum retries are reached...
I added the possibility to manually set the timeout in #524 (already contained in the latest beta build).
This is however currently only possible to set in the config file:
[repository]
repository = "rclone:..."
...

[repository.options]
timeout = "5min"

Edit: Another solution would be that once rclone receives a part of the listed items, it should send them directly to rustic. That would prevent the connection "rustic -> rclone" from timing out in your case. But it seems that the rclone behavior is to first collect all items and then send them in one response.


Fix/nds 198 95

I updated code for the following user stories please review it

https://wwnorton.atlassian.net/browse/NDS-95
https://wwnorton.atlassian.net/browse/NDS-198

@wguevara-norton

Thanks, this looks great!
I just realized that NDS-198 only mentions replacing BasePopper with Popper, but not replacing BaseListbox with Listbox. Did you look into that? Is it worth including that here or should we do it in a future PR?

I spent time on replacing BaseListbox, I found more changes in dropdown's existing functionalities and in listbox also. We will create new PR for this change.


Latest information regarding version 1.2.5112.0 are missing.

Page is missing latest application update information (1.2.5112.0).

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

ID: 69fa9613-3717-91ae-8b09-d8bac7bf92f5
Version Independent ID: 5c51c752-8f37-1464-cde6-4038ab3e85f7
Content: What's new in the Azure Virtual Desktop Store app for Windows (preview) - Azure Virtual Desktop
Content Source: articles/virtual-desktop/whats-new-client-windows-azure-virtual-desktop-app.md
Service: virtual-desktop
GitHub Login: @Heidilohr
Microsoft Alias: helohr

@J0sn
Thanks for your feedback! We will investigate and update as appropriate.

@J0sn Thank you for bringing this to my attention! I've updated the document to show the latest versions, and the changes should go live with next publish. #please-close


Transition App to React Hooks

I'm thinking that React Hooks will eliminate the need for Redux-Saga to manage side effects.

I refactored the project but I'm not sure useContext is any easier/more readable then Saga or Thunk, especially when using Redux. I think I'll add this to issue #6 as a possible template.


[Text Shortcuts] replace support newline

Extension
https://www.raycast.com/koinzhang/text-shortcuts
Description
my template

run template

expect
let result = selectedText.replace(/(^.*$)/g, '$1\n$1');

// replace \n newline
result = result.replace(/\\n/g, () => '\n');

Who will benefit from this feature?
No response
Anything else?
No response

Is there another way to achieve the same effect, quickly copying the selected lines of text as new lines?


Failing localPRG test

https://github.com/rmcolq/pandora/blob/67a709a6d2ac27e0adad125469251635032a6167/test/localPRG_test.cpp#L1601-L1611
This test is failing on my machine with the following error
/home/michael/Projects/pandora/test/localPRG_test.cpp:1610: Failure
Expected equality of these values:
  actual
    Which is: 23
  expected
    Which is: 22

I have not touched this file since the latest commit to Rachel's dev branch. I am on https://github.com/mbhall88/pandora/commit/b32091f19a567b60bf99f97eaa2372ceb055deb1

Hmmm, that's concerning - they all now pass...

Reopening this as I am still getting this failing intermittently. Is there something non-deterministic about this function?

Thanks, will take a look soon!

In 1 out of 20+ unit tests full suite runs, I get this error also... I am wondering if we are accessing uninitialised values somehow, will check with memcheck


calc: <IP_ADDRESS> -> <IP_ADDRESS>

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/calc/versions.
meta.description for calc is: C-style arbitrary precision calculator
meta.homepage for calc is: http://www.isthe.com/chongo/tech/comp/calc/
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found <IP_ADDRESS> with grep in /nix/store/1qmk24n6gajj7hn613p4jl4mqnwdnhdv-calc-<IP_ADDRESS>
found <IP_ADDRESS> in filename of file in /nix/store/1qmk24n6gajj7hn613p4jl4mqnwdnhdv-calc-<IP_ADDRESS>

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
calc

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/1qmk24n6gajj7hn613p4jl4mqnwdnhdv-calc-<IP_ADDRESS> \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A calc https://github.com/r-ryantm/nixpkgs/archive/91df193fa6b1ce3ffeb810754390c9d8716cbfeb.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/1qmk24n6gajj7hn613p4jl4mqnwdnhdv-calc-<IP_ADDRESS>
ls -la /nix/store/1qmk24n6gajj7hn613p4jl4mqnwdnhdv-calc-<IP_ADDRESS>/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

calc

Maintainer pings
cc @matthewbauer for testing.

Result of nixpkgs-review pr 217021 run on x86_64-linux 1

1 package built:

calc


Broken link in setting up ha guide

This is a...

[ ] Feature Request
[x] Bug Report

Problem:

[ ] "how to create loadbalancers " link is broken
[ ] the numbered list at the bottom go 1. and 1., should increment

Proposed Solution:
Page to Update:
https://kubernetes.io/docs/setup/independent/high-availability/
cc @rdodev

@chuckha The issues you point out appear to have already been fixed. I'm going to close this for now, but please feel free to re-open if you think I've closed it in error!


flow.HexToAddress should accept a 0x prefix

Describe the solution you'd like
The flow.HexToAddress function should accept hexadecimal strings with a 0x prefix.

Can it even be that no matter if 0x is present or not it works?


cpu temperature and skin temperature

cpu temperature not showing in android 13 and skin temperature always 30c

rooted phone, install with zygisk sui magisk module, poco f4 gt, custom rom


Adds cookie management capabilities for enhanced performance

Hey Onur,
I recently stumbled upon your script after seeing a comment you'd posted on Stackoverflow--it's great and it really helped speed up something I was working on with a website. One thing I ended up doing was some trickery with cookies, because I tend to be quite obsessive about performance and having analysed results via GTMetrix I noticed additional DNS lookups, not to mention the inherent variability and delay in getting the results. For localisation purposes, the faster the better (of course!) I got an average of around 600ms, and although relatively fast, if a user were to load a page part-way down, there's a possibility they wouldn't see certain contain properly tuned to them for a small time.
Either way, I think this is quite a useful addition/feature, I haven't spent very long writing it and I've done some testing--everything seems fine. There are new parameters allowing the developer to disable the cookie management, but I'm hard pushed to see why one would want to do that.
Let me know what you think!

Dang, I just saw your comment in the other pull request saying you're re-writing. This may be redundant--but if you think this'd be useful within the rewrite, I'd happily help incorporate it. Either way, great work!

@Quasso Yes I'm re-writing. Thanks for your input, though. But I think cache logic should exist within the app not in a utility like this. Besides, I don't need caching is necessary since I would re-locate only when I need to get fresh coordinates.

@onury, I guess it's just a matter of preference, I personally would prefer a utility to handle it well on a basic level with some customisation options. The two things you mentioned essentially condense into the same point because they both require writing some means of recording when the function should be triggered again. The latter I guess is actually more complicated because how do you know when you ought to update for fresh co-ordinates without checking their current location? The simplest way I can think of is when their IP changes, though it may trigger undesirably.
To be honest, as soon as I discovered you're re-writing with the ability to not load GMaps, it essentially rendered my motivation for making this redundant anyway!
Look forward to the new release, if you'd like any contributors I may be able to help :)

@Quasso, what I meant was; caching belongs to a separate logic that the app as a whole could benefit from. A separate utility plugged-in to the app could do the caching for location too.
v2 is written in ES6 (ES2015) and built via webpack+babel into ES5. Once it's released, I'd of course welcome any kind of contribution. Thanks again for your interest.

@onury, I do see what you mean. It really depends on the use case.. I'm not using it within an application, it's a website, hence my inclination toward thinking that would be useful--the extra bloat of a new utility wouldn't be worth it since I have no other use for caching. For web apps, I do indeed agree you'd want finer-grained control and you should already be implementing caching for other things.
I'll keep an eye on it, if I feel I can help (more whether I have time) I will do. On a similar topic, do you plan on making V2 available as a dedicated Angular module? If you hadn't planned on it, I could maybe help there.
Thanks again for making this :)


Enable CONFIG_USB_HIDDEV kernel flag by in the official kernel

Is your feature request related to a problem? Please describe.
The usbipd-win project, which is the official recommended way to connect USB devices from WSL to host devices, enables users to use their Yubico Key in the WSL environment. However, some Yubico features require the CONFIG_USB_HIDDEV to be enabled. E.g., the pamu2fcfg tool cannot read from the Yubico key without this feature.
Describe the solution you'd like
Enable the CONFIG_USB_HIDDEV flag in the kernel by default.
Describe alternatives you've considered
not using WSL
Additional context

I would love to see this implemented as well.

YES PLEASE!
I am trying to connect an Intel Realsense camera to WSL2, it shows in lsusb but dmesg says hid-generic 0003:8086:0B5C.0005: device has no listeners, quitting
Reading online I found that enabling CONFIG_USB_HIDDEV should solve such an issue. I'm not so familiar with the Linux kernel but I wish there was a way to modify that without rebuilding the kernel.

CONFIG_HIDRAW
CONFIG_USB_HIDDEV

Please

I have enabled these options and built my own WSL kernel, and it works very well, at least for my Yubikey.
I wonder if there's anything I can do to test the impact of this change.

CONFIG_HIDRAW and CONFIG_USB_HIDDEV are now enabled in the latest WSL2 kernel release linux-msft-wsl-<IP_ADDRESS>
Please keep in mind the kernel is released to the WSL2-linux-kernel repo first and will be included in an upcoming WSL release.

I am grateful thank you!
I spend many days trying t get work around for my peripheral cameras to work on Linux WSL because of this. I am testing it now with a realsense camera. building this from source.


Deployment commands

First thanks for your terraform modules. They are really useful and make devops life easier.
If you can add full deployment commands into each repo, it might be better for newcomers.
like
$ git clone to specific tag
$ cd samples/directory
$ vi fixtures.us-east-2.tfvars
$ export AWS_ACCESS_KEY_ID="xyz"
$ export AWS_SECRET_ACCESS_KEY="abc"
$ export AWS_DEFAULT_REGION="us-west-2"
$ terraform plan

Thanks

@ismailyenigul We expect folks to know how to do these things as they're inherently required knowledge for using Terraform + the AWS Provider. Going to close out as I can't see us adding these types of instructions right now.


Remove tyescript alias to tailwind config in nextjs

Closes PLA-210

@AleksandrIvanenko please test the update and feel free merging. @quesabe will you be able to submit a patch release?

@AleksandrIvanenko please test the update and feel free merging. @quesabe will you be able to submit a patch release?

@gvidon, @quesabe, I don't have permission to merge, so one of you should.


Rewrite FixDisplayMode

This should improve the situation in #411.
FixDisplayMode currently works fine, but I was thinking we could still improve it a bit, so this is what I came up with:

Get rid of the CustomRefreshRate int. Read the refresh rate from the game's config.ini instead.
Provide the option to choose the refresh rate using the game's config menu. To do this, we replace D3D_FillDisplayModeVector with our own function to make the vector of resolutions. This lets us have a finer control of the list, allowing us to have duplicated resolutions with different refresh rates:

Hook D3D_GetDisplayModeForWidthHeight to make it get the display mode with the refresh rate we want, instead of only being able to get 60 Hz refresh rates.
At startup, validate the display mode in the game's config.ini. Use it if the primary display supports it, otherwise fall back to using the desktop's resolution and refresh rate. (This is and the original D3D_GetDisplayModeForWidthHeight behavior are what would cause the "black screen" bug originally).
Hook ConfigWriteINI to make sure the current resolution is being saved correctly.

An option is also provided to show only the highest refresh rate for each resolution.
This should make the game work with any refresh rate, above or below 60 Hz.
Should probably test it a bit more before merging. But there's one issue: I can't test if this 100% still fixes the original black screen issue, since I was never able to reproduce that in the first place. All my displays have 60 Hz modes. @emoose, maybe we should ping someone here who has the issue? I don't know anyone, though...
Edit: Also decided to update our window hooks a bit. Borderless Window mode can now be toggled at run time, added an option to resize the game window by dragging the window borders, and made the v-sync toggle also work at runtime.
We're also now hooking WndProc using a slightly better method (in theory...).
TODO: Move the GX_DisplayMode struct somewhere in the SDK?

Just got around to trying this, sorry for the delay - I don't really have a monitor higher than 60 neither, but this monitor can be OC'd to 70Hz so thought I'd give that a try.
First thing I tried was running re4_tweaks debug build, game loaded fine, but when I opened the game menu I got an exception I never seen before:

Exception thrown at 0x0073FFF6 in bio4.exe: 0xC0000005: Access violation reading location 0x1700BFF4.

(addrs are 1.1.0)
Crash seems mostly consistent, another run gave me:

Exception thrown at 0x0073FFFC in bio4.exe: 0xC0000005: Access violation reading location 0x974B45CC.

Switching to release build lets it open the menu fine though - not really sure what cause of this could be, though I did notice we're using std::vector<GX_DisplayMode> in one of our hooks arguments:

void D3D_FillDisplayModeVector_hook(std::vector<GX_DisplayMode>* vect, bool checkWidthHeightCombinations)

That would mean we're mixing whatever version of std::vector that re4_tweaks uses with the games std::vector, kinda surprised that works really :p
Looking at std::vector definition it seems pretty simple though, just pointer to start & pointer to end, so guess that's why it works fine, maybe in debug something gets changed there though, I guess we could just create our own bio4vector type or something if that's the case.
Unfortunately not sure if I can test much more, seems the game doesn't detect my 70Hz mode, does it maybe only see ones thar are multiple of 30 or something like that?
Don't think I can hide my monitors 60Hz mode neither, so probably can't check if it helps with black-screen issue... maybe worth asking on steam forums to see if anyone there has it?

Just got around to trying this, sorry for the delay

No problem, been pretty busy too. Even got a job interview tomorrow :p

That would mean we're mixing whatever version of std::vector that re4_tweaks uses with the games std::vector, kinda surprised that works really :p

Wasn't too sure about that either, but since it worked.. I thought I had just lucked out :p
I hadn't tested debug builds though. Meh.

seems the game doesn't detect my 70Hz mode, does it maybe only see ones that are multiple of 30 or something like that?

Ah, that's odd. Is 60Hz the only mode shown in the menu?
Could you enable VerboseLog and check which resolutions are logged? IIRC our old method of getting the desktop refresh rate was only querying the first display, not the primary display. HMONITOR primaryMonitor = MonitorFromPoint({ 0, 0 }, MONITOR_DEFAULTTOPRIMARY); should be getting the actual primary monitor info now, and I checked that this implementation now works fine with my HDMI TV. I can see all types of odd resolutions too (my TV has stuff like 63Hz for some reason).
Do you happen to have another display plugged or something like that? Pretty strange.

Ah should have posted the list with that, my bad 😅
[02:10:51] [t 41720] +-----------------+-----------------+
[02:10:51] [t 41720] | Display modes                     |
[02:10:51] [t 41720] +-----------------+-----------------+
[02:10:51] [t 41720] | \\.\DISPLAY1: 640  x 480    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 640  x 480    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 720  x 480    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 720  x 480    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 720  x 576    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 720  x 576    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 720  x 576    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 800  x 600    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1024 x 768    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1152 x 864    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1152 x 864    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1176 x 664    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1176 x 664    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1176 x 664    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1176 x 664    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1176 x 664    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1176 x 664    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 720    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 720    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 720    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 720    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 720    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 720    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 768    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 768    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 768    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 800    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 800    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 800    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 960    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 960    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 960    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1280 x 1024   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1360 x 768    29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1366 x 768    29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 900    29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1024   29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1600 x 1200   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1680 x 1050   29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1080   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1080   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1080   50 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1080   24 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1080   23 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1080   25 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1080   30 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1080   29 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1200   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1200   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1200   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1200   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1200   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1200   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1440   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1440   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1440   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1440   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1440   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1920 x 1440   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1506 x 847    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1506 x 847    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1506 x 847    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1506 x 847    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1506 x 847    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1506 x 847    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1707 x 960    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1707 x 960    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1707 x 960    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1707 x 960    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1707 x 960    59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1707 x 960    60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1969 x 1108   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1969 x 1108   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1969 x 1108   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1969 x 1108   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1969 x 1108   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 1969 x 1108   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 2176 x 1224   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 2176 x 1224   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 2176 x 1224   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 2176 x 1224   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 2176 x 1224   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 2176 x 1224   60 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 2560 x 1440   59 Hz |
[02:10:51] [t 41720] | \\.\DISPLAY1: 2560 x 1440   60 Hz |
[02:10:51] [t 41720] +-----------------+-----------------+

Game shows the 2560x1440 59Hz and 60Hz modes fine, this is with one display connected too. IIRC I had issues trying to get RE4 to see the OC'd 70hz mode in the past as well (think the only way I've got it to run at 70Hz was with game in windowed mode with Windows display set to 70Hz, and the variable frametime stuff enabled)
Also some games do detect it fine but not all, maybe just an issue with whatever method NV uses to create the custom modes... but then again the other PR with the older FixDisplayMode code did seem to recognize 70Hz somehow?
There's a bunch of weird ones there like 2176 x 1224 that my monitor doesn't actually support, think that's something to do with nvidia NIS, at least I see those ones mentioned in NVCP:

Good luck with your job interview too!

Ah seems to be an NV problem, tried setting 55Hz and it also didn't show, changed to using CRU to add 70Hz mode instead and that got it to work 🎉
[02:39:55] [t 2784] | 2560 x 1440                 60 Hz |
[02:39:55] [t 2784] | 2560 x 1440                 71 Hz |
[02:39:55] [t 2784] +-----------------+-----------------+

Was able to select 71Hz in the game settings too, not totally sure if it was running in that mode though, FPS was still capped to 60... will try messing with variableframetime setting now.

good luck with your job interview too!

Many thanks! Things went well, actually. Hoping to hear from them again soon 😅

Ah seems to be an NV problem, tried setting 55Hz and it also didn't show, changed to using CRU to add 70Hz mode instead and that got it to work 🎉

Ah, awesome! Should work fine on "real" refresh rates then. Thanks for looking into it!
Rebased on top of current master, shooould be working fine.
Have you tried the window hooks btw? (adding/removing the border in real time).
Also, looked into the std::vector issue, but I'm not sure how to solve that issue. Meh :p

Worked around the debug build crash by using the game's own std::vector<D3D_DisplayMode>::push_back in our hook. Seems to work fine, but... That's a weird issue. Seems like the game would crash whenever I tried to manipulate the *vect, not matter what I tried. Still now sure what was different with debug builds, but this new method seems to work at least.

Oh nice solution, seems to work fine for me in debug now. I can't really see what would make debug builds break neither, using games func is probably best idea though.
WindowBorderless seems to work fine too, I did notice it reset the window position though (when RememberWindowPos / X Pos / Y Pos were all unset, I just alt-tabbed out & moved window before changing borderless option)
Also if I do set RememberWindowPos and then move it & toggle borderless, it does seem to use the saved X position at least, but didn't use the saved Y position (you can see that by setting X Pos/Y Pos to 500 and then toggle the option, always seems to use Y = 0)

Ah, thanks for catching those! Latest commit should fix these issues.


[Feature Request] to select the specific server to download/watch animes or new extensions for anime websites which do not use captcha servers/scrapers.

The server gogo-cdn.com for anime downloads is not working, so i have a request to allow us to choose the server for the anime to watch or download.
Or add website extensions which does not use captcha so that it will allow us to download anime episodes.


Use typeof with generic

TypeScript Version:  Current playground version (?)
Code
class GenericGroup<T> {
  items: Array<T> = [];
  constructor(name: string) {}
}

type CheckboxValues = string;
type CheckboxesGroup = new (name: string) => GenericGroup<CheckboxValues>;
const Checkboxes: CheckboxesGroup = GenericGroup;
const checkboxes = new Checkboxes('checkboxes');
checkboxes.items.map(item => item.toUpperCase());

type RadioValues = string;
type RadiosGroup = typeof GenericGroup<RadioValues>;
const Radios: RadiosGroup = GenericGroup;
const radios = new Radios('radios');
radios.items.map(item => item.toUpperCase());

link
Expected behavior:
typeof GenericGroup<RadioValues>; is equivalent to new (name: string) => GenericGroup<RadioValues>;
Actual behavior:
Syntax error, because typeof GenericGroup<RadioValues>; is not supported.
Motivation:
In my use case I have a class with a generic (like GenericGroup) which extends a class from a 3rd party lib. The class from the 3rd party lib uses multiple params in its constructor. When I alias my class with the filled generic I don't want to write the parameters for the 3rd party lib every time (as done with new (name: string) => GenericGroup<CheckboxValues>;) as I don't really maintain them.
(There seem to be multiple related issues, but I couldn't found an issue with exactly this problem.)

The 'typeof' operator is not meant to describe the constructor of a type, but rather the type of a value. SomeGeneric is not a value, it is a type in and of itself. Any other interface/type (like the one defined below) will not work in this way either.
interface MyInterface {
    name: string;
}

let m: typeof MyInterface;

A solution to this is to define a generic type to describe constructors like Angular does:
export interface Type<T> extends Function {
    new (...args: any[]): T;
}

from (angular/packages/core/src/type.ts)
Usage example:
type RadioValues = string;
type RadiosGroup = Type<GenericGroup<RadioValues>>;
const Radios: RadiosGroup = GenericGroup;
const radios = new Radios('radios');
radios.items.map(item => item.toUpperCase());

A subtle thing is that generic class constructor functions are not contained in a generic type. You can tell that because the type parameter is not in scope for static members! It "feels" like you have a type like this
interface GenericCtor<T> {
  new(x: string): InstanceType<T>;
}

but the real type is like this
interface GenericCtor {
  new<T>(x: string): InstanceType<T>;
}

Thank you both. I need to wrap my head around this. In my case I extend from a 3rd party constructor (React.Component) so I need to figure out how to apply your feedback there. Thanks.


Support (optionally) skipping the open source install

Not everyone will want to install the other open source projects. Put that behind a -SkipOSS as a flag on the install script

Resolved by ad2fe1a


[DC-758] Create functionality to update dataset labels in place

Created function update_labels_and_tags in bq.py to either set or update or overwrite existing labels and tags. Tested via integration test bq_test.py

@lrwb-aou and @mark-velez: I believe having a discussion about the future of this ticket would be helpful for me. I'm not sure exactly how to approach the changes I need to make since the scope may change.

Hey @dcampbell-vumc here are the changes we discussed over phone; sorry I hadn't clarified the requirements before this ticket came your way.

Function signature
bq.update_labels(dataset_id, existing_labels, new_labels, overwrite_ok=False)

error is thrown if new_labels is empty
error is thrown if overwrite_ok=False and new_labels has a (key, value) that is already in existing_labels

Convert integration test to unit test