SIM103 return condition directly incorrect error message

I have searched SIM103 in the open issues and didn't find anything related, so creating this one.
It seems the error message/prompt for SIM103 can be incorrect in some cases.
My code base is quite large, but if I copy the single function out for testing, I could not reproduce. It only happens on the large code base:
lint: commands[0]> ruff check --preview
ops/testing.py:3469:9: SIM103 Return the condition `keys is not None and notice.key not in keys` directly
     |
3467 |           if types is not None and notice.type not in types:
3468 |               return False
3469 |           if keys is not None and notice.key not in keys:
     |  _________^
3470 | |             return False
3471 | |         return True
     | |___________________^ SIM103
     |
     = help: Inline condition

Found 1 error.
No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).

I think the prompt/error message is not correct. How could:
if condition:
    return False

return True

be replaced by return condition? The message should be something like "return not condition instead", not "return condition instead". If the user copy/paste the suggestion it'd be wrong.
Only
if condition:
    return True

return False

can be replaced directly by return condition instead.
With latest ruff version 0.3.5.

In general, you can replace:
if condition:
    return False
return True

With:
return not condition

So in your case, it could be:
return not (keys is not None and notice.key not in keys)

Or, simplified:
return keys is None or notice.key in keys

Makes sense -- I'll invert it.


pythonPackages.pytorch: build fails to build on NixOS unstable

Issue description
When trying to build pytorch the following error occurs.
Traceback (most recent call last):
  File "nix_run_setup", line 8, in <module>
    exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
  File "setup.py", line 170, in <module>
    from tools.setup_helpers.cuda import USE_CUDA, CUDA_HOME, CUDA_VERSION
  File "/build/source/tools/setup_helpers/cuda.py", line 75, in <module>
    cuda_path = find_nvcc()
  File "/build/source/tools/setup_helpers/cuda.py", line 17, in find_nvcc
    proc = Popen(['which', 'nvcc'], stdout=PIPE, stderr=PIPE)
  File "/nix/store/gbwx5sc4w0i0ipnmsa0nsk88svs983vl-python3-3.7.2/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/nix/store/gbwx5sc4w0i0ipnmsa0nsk88svs983vl-python3-3.7.2/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'which': 'which'
builder for '/nix/store/nc8x0hqhw1739z4i0zb9yxq4rg0lylk1-python3.7-pytorch-1.0.0.drv' failed with exit code 1
cannot build derivation '/nix/store/s246vil3pa9lfwjdwdkz6ai5gy41p64d-python3-3.7.2-env.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/c3jgz96yl9nmk6c536pjig214mizjz0x-system-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/s1n9d9p77cp8qwbafb4dzrq20jigw5mv-nixos-system-nixos-19.09pre171786.34aa254f9eb.drv': 1 dependencies couldn't be built
error: build of '/nix/store/s1n9d9p77cp8qwbafb4dzrq20jigw5mv-nixos-system-nixos-19.09pre171786.34aa254f9eb.drv' failed

This seems to be related to #54182, seems like buildInputs is now ignored when building python modules.
Steps to reproduce
Try to build pytorch, e.g. nix-build -A python3Packages.pytorch
Technical details

system: "x86_64-linux"
host os: Linux 4.14.103, NixOS, 19.09pre170705.1233c8d9e9b (Loris)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.2
channels(root): "nixos-19.09pre171786.34aa254f9eb"
channels(user) ""
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

pinging the package maintainers @teh and @thoughtpolice


Need to add package configuration for opencc package

Hi,
In Nuitka 1.7.10, I used the --include-data-dir flag to copy the OpenCC directory to the dist directory. However, it only copied a portion of the files and directories, not the entire OpenCC directory. I tested this with other versions of Nuitka, including 1.8.0rc10, which had the same issue as 1.7.10. However, Nuitka 1.3.7 was able to copy the entire OpenCC folder to the dist directory, which is what I expected.

Nuitka version, full Python version, flavor, OS, etc. as output by this
command.

python -m nuitka --version
1.7.10
Commercial: None
Python: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Flavor: CPython Official
Executable: I:\MySync\Temp\my-projects\nuitka_test.venv\Scripts\python.exe
OS: Windows
Arch: x86_64
WindowsRelease: 10
Version C compiler: C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64\cl.exe (cl 14.3).

Provide in your issue the Nuitka options used

python -m nuitka --standalone --include-data-dir=.venv\\Lib\\site-packages\\opencc=opencc --output-dir=./build my_test.py

There was one line log different from 1.7.10/1.8.0rc10 to 1.3.7
1.7.10 / 1.8.0rc10
Nuitka-Options:INFO: Included 55 data files due to specified data dir '.venv\Lib\site-packages\opencc' on command line.

1.3.7
Nuitka-Options:INFO: Included 60 data files due to specified data dir '.venv\Lib\site-packages\opencc' on command line

Here is the structure of my OpenCC folder. As you can see, the bin directory was not copied to the dist directory in versions 1.7.10 and 1.8.0rc10.
opencc in site-packages
.VENV\LIB\SITE-PACKAGES\OPENCC
├─clib
│  ├─bin
│  ├─include
│  │  └─opencc
│  └─share
│      └─opencc
└─__pycache__

opencc in build-dist by nuitka 1.7.10/1.8.0rc10
BUILDV2\MY_TEST.DIST\OPENCC
└─clib
    ├─include
    │  └─opencc
    └─share
        └─opencc

opencc in build-dist by nuitka 1.3.7
BUILDV3\MY_TEST.DIST\OPENCC
├─clib
│  ├─bin
│  ├─include
│  │  └─opencc
│  └─share
│      └─opencc
└─__pycache__

Thank you for helping.

Nuitka ignores code in data files options by default since a few releases. The __pycache__ folder is e.g. ignored entirely, which is good. The data files for opencc do not contain a bin folder for me when I look at them with python3.10 -m nuitka --list-package-data=opencc  because that file there is a DLL.
The solution would be to add a data directory config and a DLL config both for the module.
If you are available to do a PR, this can be fixed by adding to the yaml configuration, described here: https://nuitka.net/doc/nuitka-package-config.html
And here is more of a walk through style post: https://nuitka.net/posts/nuitka-package-config-kickoff.html
Here are a example PRs for other packages:
#2030
#1993

Including DLLs is currently only supported via Yaml. DLLs are not data files and have to be specified separately.

Thank you! I will have a try.

It works, the yaml file:
- module-name: 'opencc'
  data-files:
    dirs:
      - 'clib/share/opencc'
    patterns:
      - '*.json'
      - '*.ocd2'

  dlls:
    - from_filenames:
        relative_path: 'clib/bin'
        prefixes:
          - 'opencc'
      when: 'win32'

I am getting this one, which is a programming mistake of theirs:
Exception ignored in: <compiled_function OpenCC.__del__ at 0x000001A46897D7B0>
Traceback (most recent call last):
  File "C:\Users\kayha\repos\Py2C\MINIOP~1.DIS\opencc\__init__.py", line 99, in __del__
AttributeError: 'NoneType' object has no attribute 'opencc_close'

They are using a global variable while objects are deleted during shutdown, but I am not sure, if Nuitka should ignore those silently during shutdown at least.

I checked Linux and it works, macOS doesn't seem to work at all, at least not with "pip install opencc" alone, I am guessing they do not support that OS, or so they, I think it installed a 0.2 and they probably only later added their non-support or something like that.

Thanks for your report, this is fixed on the factory branch, which is a development version under rapid development. You can try it out by going here: https://nuitka.net/doc/factory.html
Feedback if this is working is very welcome, just please do not share plans of doing it, but rather confirmations or denials of it working.

Part of the 1.8 release I just made. Thanks for producing the config, very helpful.


Why aren't hydra and openapi3 generating the same components

Description
here I am testing the client generator and I am noticing that the hydra generates only this
`Interface for the "Book" resource type has been generated!
Interface for the "Review" resource type has been generated!
Interface for the "TopBook" resource type has been generated!`
and the openapi3 generate this:
`Interface for the "Book" resource type has been generated!;
Interface for the "Parchment" resource type has been generated!;
Interface for the "Review" resource type has been generated!;
Interface for the "TopBook" resource type has been generated!;
`
and when i looked at the endpoints on the api https://demo.api-platform.com/
i saw that there are 5
/books*
/parchments* // deprecated
/reviews*
/stats*
/top_books*
How to reproduce
I lunched the test-gen and test-gen-openapi3 commands

Deprecated resources are filtered by default:
https://github.com/api-platform/create-client/blob/d791b8e316916a3e9db8005d08d090fd04b00c4f/src/index.js#L123
However the api-doc-parser should be able to mark the Parchment resource as deprecated as well:
https://github.com/api-platform/api-doc-parser/blob/895cd81e4208c8c70a7383f65cefc31f1706c353/src/openapi3/handleJson.ts#L124
Transfering this issue to api-doc-parser. To investigate.


Problem about indexing searching

I had to insert the following document into the ES.
PUT /megacorp/employee/1
{
    "first_name" : "John",
    "last_name" :  "Smith",
    "age" :        25,
    "about" :      "I love to go rock climbing",
    "interests": [ "sports", "music" ]
}

PUT /megacorp/employee/2
{
    "first_name" :  "Jane",
    "last_name" :   "Smith",
    "age" :         32,
    "about" :       "I like to collect rock albums",
    "interests":  [ "music" ]
}

PUT /megacorp/employee/3
{
    "first_name" :  "Douglas",
    "last_name" :   "Fir",
    "age" :         35,
    "about":        "I like to build cabinets",
    "interests":  [ "forestry" ]
}

I want to search with matching phrase in ElasticHD.
GET /megacorp/employee/_search
{
    "query" : {
        "match_phrase" : {
            "about" : "rock climbing"
        }
    }
}

I expected as:
{
   ...
   "hits": {
      "total":      1,
      "max_score":  0.23013961,
      "hits": [
         {
            ...
            "_score":         0.23013961,
            "_source": {
               "first_name":  "John",
               "last_name":   "Smith",
               "age":         25,
               "about":       "I love to go rock climbing",
               "interests": [ "sports", "music" ]
            }
         }
      ]
   }
}

But I got the following ones:
{
-"_shards": {
"failed": 0,
"successful": 5,
"total": 5
},
-"hits": {
-"hits": [
-{
"_id": "2",
"_index": "megacorp",
"_score": 1,
-"_source": {
"about": "I like to collect rock albums",
"age": 32,
"first_name": "Jane",
-"interests": [
"music"
],
"last_name": "Smith"
},
"_type": "employee"
},
-{
"_id": "1",
"_index": "megacorp",
"_score": 1,
-"_source": {
"about": "I love to go rock climbing",
"age": 25,
"first_name": "John",
-"interests": [
"sports",
"music"
],
"last_name": "Smith"
},
"_type": "employee"
},
-{
"_id": "3",
"_index": "megacorp",
"_score": 1,
-"_source": {
"about": "I like to build cabinets",
"age": 35,
"first_name": "Douglas",
-"interests": [
"forestry"
],
"last_name": "Fir"
},
"_type": "employee"
}
],
"max_score": 1,
"total": 3
},
"timed_out": false,
"took": 47
}

Can you please help me find what 's going on here?

With conditional queries, you need to select method as post
Without conditions

conditions

如果没有问题话，我关掉这个issue了


Displaying multiple cameras at once in a grid

It would be great to be able to display multiple cameras at once, e.g. tiled in some automatic way, with a way to toggle between the tiled camera view and a single camera filling the entire card.
For the live view, this would perhaps not add much over just having separate frigate cards for each camera, but when viewing past recordings, this feature could allow displaying multiple cameras at once with the times synchronized.

this feature could allow displaying multiple cameras at once with the times synchronized.

That's interesting!

Thanks for the feature request. This is probably a non-trivial amount of work, so would love to see people indicate their support for it by adding to the "thumbs up" of the original poster, or chiming in with their usecases for it. Thanks for the idea @jbms !

I'll give a small update here: Due to the amount of interest in this feature -- as seen by the votes on the top post -- I have started to experiment with this a little. There's a long way to go, but I have a proof of concept "multi-camera" viewer and the ability to change between single and grid mode. Rendering multiple video feeds at once is fairly processor intensive, so I doubt this will be usable on something like a raspberry pi -- but perhaps with the image live provider. I definitely need to do further experimentation to decide whether to scrap or keep the proof of concept -- stay tuned.
PS: @operator207 I am assuming you already know about the Frigate birdseye view, which you can already load in the card, that will show you multiple live cameras rendered into a single video feed.

PS: @operator207 I am assuming you already know about the Frigate birdseye view, which you can already load in the card, that will show you multiple live cameras rendered into a single video feed.

I do. Though it seems to only populate based on motion or detection. I'm more interested in a 'window' to look through and see live feeds I select as important.
Maybe my birdseye isn't configured correctly? I'll take a look at the documents link you provided. Thanks!

I do. Though it seems to only populate based on motion or detection. I'm more interested in a 'window' to look through and see live feeds I select as important.

Try the continuous birdseye mode. If you configured the card with the birdseye camera, and with each camera individually, maybe you can get a little close to what you want right now. Good luck!

Update on this: Whilst I have very limited development time, I am making progress and this feature has my undivided attention within that time. I have extended the "grid" support to live view as well as media -- it really looks pretty cool and has given me a whole bunch of new ideas for further features, so I'm considering this experimentation phase complete and working on getting the experimental code into something that is complete enough and tested enough to be PR-ready. Stay tuned!

OK -- this initial change is submitted. It's a monster change, so whilst I've squished all the bugs I could find -- I'm sure there are more that will emerge in testing. But this is "done enough" for me to close this issue, and we can deal with any latent bugs in separate issues as I / people find them.
This will be in the next release (v6).

Hi
Thank you, @dermotduffy, for working on it!
I'm testing the grid view from the dev branch, and it's working great so far.
I wanted to check if it's possible to make the idle camera work on 1 second refresh interval or something like low performance.

Testing the grid view as well. Took me a long time to get working didnt realise I needed to use the dev version as the documentation has the grid view grid option but doesn't say use dev version.
Once I installed the dev version using this brilliant tutorial I couldn't get it to work until I cleared my browser cache then it worked! 6 hours later...
Thanks for this feature it is reallllllly good this is a game changer for me. I learned a lot about the card and far out what a feature set.
It doesn't seem to want to work with the Panel (1 Card) type view but worked with Masonry etc fine.

type: custom:frigate-card
cameras:
  - camera_entity: camera.front_door_2
  - camera_entity: camera.garage_side
  - camera_entity: camera.driveway
  - camera_entity: camera.back_nw_side
  - camera_entity: camera.back_yard_2
  - camera_entity: camera.kitchen_side_house
view:
  default: live
  camera_select: clips
  dark_mode: 'on'
  interaction_seconds: 30
live:
  display:
    mode: grid
  preload: false
  lazy_load: true
  draggable: true
  zoomable: true
  transition_effect: slide
  controls:
    builtin: true
    next_previous:
      style: chevrons
      size: 48
    thumbnails:
      media: clips
      size: 100
      show_details: false
      show_download_control: true
      show_favorite_control: true
      show_timeline_control: true
      mode: none
    timeline:
      style: ribbon
      mode: none
      clustering_threshold: 3
      media: all
      show_recordings: true
      window_seconds: 3600
    title:
      mode: popup-bottom-right
      duration_seconds: 2
  layout:
    fit: contain
    position:
      x: 50
      'y': 50
dimensions:
  aspect_ratio_mode: dynamic

@JakeTheRabbit Thank you for testing the dev branch. Caution: It's not yet ready for prime time, but may be close...

Testing the grid view as well. Took me a long time to get working didnt realise I needed to use the dev version as the documentation...

How did you even find that documentation? If it's linked from somewhere, it shouldn't be, for exactly the reasons you describe! (i.e. confusion).

It doesn't seem to want to work with the Panel (1 Card) type view but worked with Masonry etc fine.

Would you mind filing bugs for any issues you find with the dev branch? Above sounds like a problem I need to fix.

Is this still in dev branch only?

Yes. It works very nicely btw.

For future strugglers: I got the dev version working by following the steps in the short video (in the doc linked above).
I had to change these steps from the video:

I did not have a three-dot menu in my "Dashboards" settings, so I couldn't open the "Resources" window. To fix this, I had to enable "advanced" under my user profile in HA.
The path typed in was /local/frigate-card/frigate-hass-card.js but I had to use /hacsfiles/frigate-card/frigate-hass-card.js (I'm guessing if you don't have hacs installed, /local would be fine).
As mentioned in another post, I didn't see my change unless I did a full page reload (Ctrl + F5 on Windows).

To get the latest dev version:

go to the repo page
select Actions along the top
Select "builds" on the left
In the column drop-downs on the upper right, select "branch" and filter by "dev"
The latest build is the top-most one.
And ofc, disclaimer, the latest dev build isn't guaranteed to work because it's cutting-edge and should be considered unstable.

Hope this helps someone!


Demo page failing to render

There is a minor issue I observed with your demo page, HyperMD
Steps to reproduce
Environment: Chrome 71.0.3578.80 (Win64)

Open the demo page
Click "Normal" mode
Click "HyperMD" mode
The sections beneath "特别感谢" failing to render

Screenshot

Additional Information:
Issue is also reproducible with Edge 17.17134
No warnings or errors in debug console

好吧，原来是这样。那我就先把Issue关了
前段时间刚看到大佬的这个作品，表示很惊艳。目前很想基于这个写个安卓app😊


Fix ordering of cross process close and file lock release

We have been seeing some file lock timeout failures when opening the journal cache.  This may be because these two operations were inadvertently reordered while making other changes.

@bot-gradle test this

I've triggered the following builds for you:

PullRequestFeedback build

@bot-gradle test and merge

I've triggered a build for you.


Task - Simple specimen task - undo select of collecting event broken

   after I select a collecting event
      then I can not return to the default form (no back arrow)

@jrflood assigning to you, let me know if you have questions.


Text-to-Speech Audio Duration (privAudioDuration)

How is the value privAudioDuration returned by a call of the text-to-speech API computed? Is it a calculation based on number of characters and voice features, or it is measured by the API for any emission? We find inconsistencies in the emitted value, and are trying to figure out the mechanisms behind it.

The value is calculated by service. It should be accurate for raw/riff formats. For compressed audio formats, extra silence might be added for frame padding.

Closed as answered, please open a new issue if more support is needed.


RVC - Error after a few seconds

When I use RMVPE and a compatible trained voice for dubbing an audio, I get an error after a few seconds on several computers. I can find no reason, why this happens. have not found any logs. Maybe there are some repositories missing, but I can not figure out which.
Can someone help, with what I can do to track this problem?

I've been working a bit on this problem.
First of all, there was the rmvpe.pt file missing in "\app\assets\rmvpe" folder. I've found it somewhere on GitHub and placed it in this folder. Now I takes some more time & the error message is different:
RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1. Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.
Maybe someone know, what to do here.

@delete-exe Did you find a solution to this?

did you guys ever find a solution?

I fix

did you guys ever find a solution?

I fixed it by running it on a different machine. AWS EC2 instance with A10G card.
Didn't work on my laptop's Quadro T1000 card.


using namestealer in danger zone glitch xd

When u enable the namestealer in dangerzone, it works fine, it steals names and stuff, but there is a catch
when u enable it
u will not be deployed via a helicopter, instead u will spawn right where u were before the game starts, for the first seconds u cannot jump/shoot after that u can basicly do anything, but when u die in danger zone u cannot respawn because of that glitch. xd
also u cannot get the starting perk :(

Good catch, dangerzone is trash btw

i forget it was on xdd


Add .editorconfig file to assist developers with keeping standard coding practices

This PR adds a .editorconfig file.
The settings should be consistent with the existing coding style:

4 spaces
newlines at end of file
UTF-8
LF line endings

Thanks!


Jarvis tasks

jarvis functionality list tasks running count added

Generally looks pretty good. Let me know when you're ready to merge and I'll show you how to 'squash commits' before merging.


Documentation of approvals not practicable

Scheduling into 2.0.2 or 2.1.0 has to be checked.
Problem:
The service for configuring type approvals (/v1/document-approval-status) is protected by ApiKey.
How could a human administrator know and apply the ApiKey?
Potential Solution 1
Access is anyway restricted to Admins.
Thus, BasicAuth could be applied and linked with AdministratorAdministration.
Potential Solution 1.1
Reuse of concept of RequestSequenceRepresentation should be checked.
If easily feasible a small GUI should be provided for entering the approvals.
Potential Solution 1.2
If concept of RequestSequenceRepresentation not applicable, REST request with BasicAuth shall suffice.

Concept of RequestSequenceRepresentation has been reused, a small GUI has been provided for entering the approvals.


Requires specific privileges to execute commands

For example, the permission qss.findshop is required to execute the command /qss

Please check out the latest release in which I have added quite a few permissions! :) While the config-file will extend itself, I'd advise you to delete it, in order to have the fully updated experience, as we're still within testing-phase.

It looks like everything is working! I do have a suggestion for changing the info though
You lack the permission → You don't have the permission
This should help to understand

You're right - simplifying the language will make the plugin more accessible. I've changed it to your suggestion in the latest commit; it'll be within the next release! :)


Automatic deployment to pypi

I think it would be a good idea to build into Travis-CI deploying to pypi. This would prevent issues like #760 from occurring.
The guide looks fairly simple and would require @timothycrosley to encrypt the pypi credentials in the config file.
https://docs.travis-ci.com/user/deployment/pypi/

Here's an example (https://github.com/pylast/pylast/pull/295):
https://github.com/pylast/pylast/blob/a5c53dbf5402535ca79c66cebe1ca1e1a3dc7baa/.travis.yml#L47-L70
It has two deploys:

tagged commits deploy to the main pypi.org
untagged commits deploy to test.pypi.org

For both, it only does it for builds to the pylast/pylast main repo (no forks), on the master branch (no feature branches), and for a single build job (py37, no duplicates).

Thanks for the assistance! Using these pages as guides, isort now has auto deploy setup.
Thanks!
~Timothy


Migrate samples for Communication and Compute

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

API change check
API changes are not detected in this pull request.


[DOC]: Need help or example for integrating microservice to call the workflow of conductor in production

What are you missing in the docs
Proposed text

Please open a discussion which explains your setup and how you plan to use Conductor in your ecosystem. Also please provide some details about the type of services that you are looking to orchestrate.


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_f1lh5z31nx/clone/recipe/meta.yaml:14: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_f1lh5z31nx/clone/recipe/meta.yaml:23: missing_wheel: For pypi packages, wheel should be present in the host section
WARNING: /tmp/abs_f1lh5z31nx/clone/recipe/meta.yaml:25: python_build_tool_in_run: The python build tool hatchling is in run depends
WARNING: /tmp/abs_f1lh5z31nx/clone/recipe/meta.yaml:55: missing_description: The recipe is missing a description
ERROR: /tmp/abs_f1lh5z31nx/clone/recipe/meta.yaml:55: missing_dev_url: The recipe is missing a dev_url
ERROR: /tmp/abs_f1lh5z31nx/clone/recipe/meta.yaml:55: missing_license_family: The recipe is missing the about/license_family key.
ERROR: /tmp/abs_f1lh5z31nx/clone/recipe/meta.yaml:55: missing_documentation: The recipe is missing a doc_url or doc_source_url
Errors were found


Make the buttons on the Nav bar active for the respective section

Hey @RIKI-05 ,
Can I work on this task?

Hey @RIKI-05, I am willing to contribute, can I work for the same?

Can i work on this?

@AvadhootK  @Coderner @VineethKumarM  yall can work on it

Hey no One's working on this ?

hey @RIKI-05 I am already on it and will make a pr soon. But someone already made a pr for this?😥


PHP with Xampp PHP

Hi, Im using windows 10 pro x64 and Xampp newest version with PHP 7.0.2 .
The php folder is in C:\xampp\php but i dont see PHP Path in Atom Beautify settings, only settings for php-cs-fixer.phar
When i use beautify, it showed the error
Could not find 'php'. The program may not be installed. See http://php.net/manual/en/install.php for program installation instructions. Your program is properly installed if running 'where.exe php' in your CMD prompt returns an absolute path to the executable. If this does not work then you have not installed the program correctly and so Atom Beautify will not find the program. Atom Beautify requires that the program be found in your PATH environment variable.  Note that this is not an Atom Beautify issue if beautification does not work and the above command also does not work: this is expected behaviour, since you have not properly installed your program. Please properly setup the program and search through existing Atom Beautify issues before creating a new issue. See https://github.com/Glavin001/atom-beautify/search?q=php&type=Issues for related Issues and https://github.com/Glavin001/atom-beautify/tree/master/docs for documentation. If you are still unable to resolve this issue on your own then please create a new issue and ask for help.

The problem appears to be that either PHP is not locally installed on your machine or it is installed, but there is not a global path in your shell.  PHP-CS-Fixer is written in PHP, so it requires PHP to run.
http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx

Ok, i added the path for php folder.
But i did not see any changes when using beautify .

Are you able to open up a command prompt and execute php from any directory?

i have the same problem, i did as @prettydiff said
http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx
at Step 4 i added C:\xampp\php but i still have the same problem, did i did it in the correct way ?

I really want to focus on improving the installation experience for users. I have created a new Issue, #1687, to target this problem. Please provide your feedback! Thanks in advance.


Add proper docs

Add module level docs, set up something that would these docs. These will be helpful for possible contributors.

Set up GH-pages with these docs

Documentation on the dbus api functions, also some example links.
Document Lua functions

Fixed somewhat with #303 and #304


How to download the smplx model? An where to put it?

Hi, thank you for the great work! How to download the smplx model? An where to put it?

Hi, thank you for the great work! How to download the smplx model? An where to put it?

i have finished it!

Hi, thank you for the great work! How to download the smplx model? An where to put it?

hello, could you tell me how to download smpl model?


Fix test_pretrained_and_pipelined_models_match for Wav2Vec2

What does this PR do?
Fixes tests/test_pipelined_models.py::PipelinedModelsTester for Wav2Vec2 models
Before submitting

[N] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[N] Did you make sure to update the documentation with your changes?
[Y] Did you write any new necessary tests?

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


refactor(net): rename and restructure wire error types

be more explicit about EthHandshake error
introduce error module: p2p,eth

Codecov Report

Merging #614 (39c83cd) into main (8779000) will increase coverage by 0.08%.
The diff coverage is 40.90%.

@@            Coverage Diff             @@
##             main     #614      +/-   ##
==========================================
+ Coverage   71.97%   72.05%   +0.08%
==========================================
  Files         251      252       +1
  Lines       25532    25534       +2
==========================================
+ Hits        18376    18398      +22
+ Misses       7156     7136      -20

Flag
Coverage Δ

unit-tests
72.05% <40.90%> (+0.08%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

crates/net/eth-wire/src/errors/p2p.rs
70.00% <ø> (ø)

crates/net/eth-wire/src/lib.rs
100.00% <ø> (ø)

crates/net/eth-wire/src/p2pstream.rs
77.61% <ø> (ø)

crates/net/eth-wire/src/pinger.rs
91.37% <ø> (ø)

crates/net/network/src/session/active.rs
82.96% <0.00%> (ø)

crates/net/network/src/session/handle.rs
44.44% <ø> (ø)

crates/net/network/src/session/mod.rs
67.12% <ø> (ø)

crates/net/network/src/swarm.rs
65.30% <ø> (ø)

crates/net/eth-wire/src/ethstream.rs
84.46% <18.18%> (-0.56%)
:arrow_down:

crates/net/network/src/error.rs
87.50% <50.00%> (ø)

... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Adding a Bug Reporting System Under Known Exploit Resistance

Any thoughts on the importance of connected devices, digital platforms, etc having an easy and documented way to send issues/bugs to the company?

This could fall under the Vulnerability Disclosure Program test

I think that it most likely fits under Permanence as well. Perhaps under the Test Name: Functionality Over Time. I think this most likely would be a new criteria though. @SelinaMusuta do you have any recommendations regarding specific language for this criteria?

Ok, I tried something here: https://github.com/TheDigitalStandard/TheDigitalStandard/pull/120
I added an indicator, and added a procedure similar to those which are intended for examining privacy policies. Not sure if that's too much for this issue, but what do you think @KatieMcInnis, @SelinaMusuta ?

I think this looks good @secretrobotron


adapter-vercel build fails with TypeError: builder.copy is not a function

Describe the bug
adapter-vercel build fails with with TypeError: builder.copy is not a function
"@sveltejs/adapter-vercel": "^1.0.0-next.8",
"@sveltejs/kit": "^1.0.0-next.56",
"svelte": "^3.35.0",
Logs
> Using @sveltejs/adapter-vercel
> builder.copy is not a function
TypeError: builder.copy is not a function
    at adapt (/Users/harold/code/translate-image/node_modules/@sveltejs/adapter-vercel/index.js:24:12)
    at adapt (file:///Users/harold/code/translate-image/node_modules/@sveltejs/kit/dist/chunks/index5.js:757:8)
    at file:///Users/harold/code/translate-image/node_modules/@sveltejs/kit/dist/cli.js:512:11
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>build: `svelte-kit build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

To Reproduce

Brand new SvelteKit repo
Replace node adapter with vercel adapter
Update dependencies
"@sveltejs/adapter-vercel": "^1.0.0-next.8",
"@sveltejs/kit": "^1.0.0-next.56",
"svelte": "^3.35.0",
npm run build

Expected behavior
Successfull build
Stacktraces
If you have a stack trace to include, we recommend putting inside a <details> block for the sake of the thread's readability:

Stack trace
TypeError: builder.copy is not a function
at adapt (/Users/harold/code/translate-image/node_modules/@sveltejs/adapter-vercel/index.js:24:12)
at adapt (file:///Users/harold/code/translate-image/node_modules/@sveltejs/kit/dist/chunks/index5.js:757:8)
at file:///Users/harold/code/translate-image/node_modules/@sveltejs/kit/dist/cli.js:512:11

Information about your SvelteKit Installation:

The output of npx envinfo --system --npmPackages svelte,@sveltejs/kit --binaries --browsers

$ npx envinfo --system --npmPackages svelte,@sveltejs/kit --binaries --browsers
npx: installed 1 in 1.361s

  System:
    OS: macOS 11.2.3
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Memory: 196.52 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.21.0 - ~/.nvm/versions/node/v12.21.0/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.11 - ~/.nvm/versions/node/v12.21.0/bin/npm
  Browsers:
    Chrome: 89.0.4389.90
    Firefox: 86.0.1
    Safari: 14.0.3
  npmPackages:
    @sveltejs/kit: ^1.0.0-next.56 => 1.0.0-next.56
    svelte: ^3.35.0 => 3.35.0

Your browser
N/A

Your adapter (e.g. Node, static, Vercel, Begin, etc...)
Vercel

Severity
Blocking Entirely
Note: the more honest and specific you are here the more we will take you seriously.

Once this is working, I'm happy to contribute back and add docs 😄 We'd also like to have zero-config support for SvelteKit on Vercel!

@antony looks like this broke in https://github.com/sveltejs/kit/pull/600/files#r600142752

@antony looks like this broke in https://github.com/sveltejs/kit/pull/600/files#r600142752

Yes - but the copy function is still required in the code? What is the strategy here? I'm happy to do a hotfix PR to make it work.
https://sveltekit-vercel.vercel.app
https://github.com/wiesson/sveltekit-vercel
https://github.com/wiesson/sveltekit-adapter-vercel (I just inlined the required functions)


Backport request: cups-browsed is broken in NixOS 18.03

Issue description
cups-filters 1.20, which is shipped with NixOS 18.03, has broken browsing functionality. This was fixed in 1.20.2. It would be nice if a version bump were backported.
Steps to reproduce
Notice how remote CUPS queues discovered via Zeroconf aren't added to the local cupsd server.

Fixed.


daytona create - /usr/local/bin/daytona: line 1: syntax error near unexpected token `newline'

To Reproduce
Steps to reproduce the behavior:
daytona create test -r <repo-url> -t local

Desktop (please complete the following information):

OS: macOS Sonoma
Browser: chrome
Daytona Version: source

@tarunrajput thanks for opening up the issue.
It seems that you're trying to work on Daytona locally on your Mac.
What happens here is that the project you created is trying to download a linux binary from the server. Because you're running in development v0.0.0-dev can not be downloaded thus the request fails.
To go around this, I suggest you open Daytona in a Dev Container using VS Code. This will ensure that the project and the server itself is running on the same OS (Linux) so the server will just send its own binary to the project.
Alternatively, you can build the binary for linux by running:

GOOS=linux go build ./cmd/daytona/main.go
mkdir -p ~/Library/Application\ Support/daytona/server/binaries/v0.0.0-dev
mv main ~/Library/Application\ Support/daytona/server/binaries/v0.0.0-dev/daytona-linux-arm64

I understand if this is a bit confusing. We are working on a better development guideline that will explain all of this in more detail, but for now, we suggest developing Daytona in a Dev Container if you don't want to build and move it to the binaries folder every time.
I'll lose this issue for now, but let me know if this doesn't work or you have more questions.


Research: Which work identifiers are used in library systems?

From wiki:

What is the space of Work ids that we might use and their affordances?
OCLC Work ids, SVDE Opus (Work), LC Hubs (more than Hubs), what else?
Connections to instances, how to query, number

We have so far explored SVDE Opera, LC Hubs, and work to work relationships.  For instances, we've been using ISBNs and LCCNs primarily.  OCLC Work Ids are to be changed later by OCLC so we are not relying on what we have there for further inquiry.  Closing this for now but may reopen if need be.


Explain that max-items won't fetch more items than there are in the feed

This question came up a number of times now, both here in the issues and on IRC: I added a feed and it only shows 15 items, how do I fetch more? Users also sometimes assume max-items have something to do with this.
TODO:

figure out if our max-items doc is misleading in some way
come up with a concise explanation of this, and put it somewhere visible—probably next to max-items doc, and also in the FAQ

The doc for the setting looks fine to me, and the FAQ item was added in https://github.com/newsboat/newsboat/pull/1693, so I'm closing this.


No hamburger for landscape iphone 5

The map and hamburger menu cannot be accessed in landscape view.
Footers: I would remove both footers.  If you have to keep the sure sites and ask an expert references on the home page, I would turn them into text links.  You could also put them into the hamburger menu as well.
Location Summary: You could either shrink the size of the location summary or remove it and only show it once an address has been identified.  The user could then close it when they want to perform another search.


Pass -lld-allow-duplicate-weak for coverage on Windows

Profiling currently relies on the ability to emit duplicate weak symbols across translation units and having the linker coalesce them. Unfortunately link.exe does not support this, so require lld-link and pass -lld-allow-duplicate-weak when -profile-generate is passed. We ought to be able to remove this once coverage is changed to not rely on duplicate weak symbols, rdar://131295678 is tracking that.
rdar://129337999

@swift-ci please build toolchain

@swift-ci please test

@swift-ci please test Windows


support  op blob

I am not a big fan of writing a PR without a description.

I am not a big fan of writing a PR without a description.

It's still a draft, and I'm still thinking about how to make it compatible with lower versions.


Fix solaris build in CRYPTO_atomic_store api

Misnamed variable, just correct it to dst

How has this not been spotted until now!!?

guessing Not many people use solaris 5.10 or 5.11 with the latest openssl

Merged to the master and 3.4 branches. Thank you.


Slow Trade Verification and Terms

The checkbox with the text "I have read, understood, and agree to the full Terms and Conditions:" is always disabled (even after scrolling down the text) if the window size is big (screen size). It's only enabled (after scrolling down) if the window is narrower (mobile size).
Here the differences:

due to unstable and un-deterministic behaviour, this functionality is removed for now in pr #418


Ignore GPose Actors

Gpose actors constantly move upwards if their position is changed with other tools. This alleviates that issue by not applying heels config to gpose actors at all.

This fails to build in CI because the CI is using net5 dalamud instead of latest

Changing the action to fix, I don't know if there's just a latest release, so I swapped to the .NET 7 URL.


please allow users to disable auto-indent and auto-completion

i prefer to have no automatic completion. i want acode to behave like a simple text editor when i type.
i want the enter button to always go to a new line without any indentation ever.
i want to be able to type an open parenthesis and get only an open parenthesis.
i've turned off all the autocorrect and live-completion settings i could find, but the editor is still inserting unwanted characters like indenting and closing parenthesis when i type.

disable live autocompletion from editor setting

already did that, like i said. i just tried v 1.8.7 the latest on f-droid.org and it's still bad.
i disabled live autocompletion,
i disabled autocorrect,
i disabled inline autocompletion.
it still inserts spaces, parenthesis, all sorts of stuff. it's really annoying and a hassle to deal with.


add engine args similar to vllm

Codecov Report
Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (0fc4b9c) 86.28% compared to head (0517d0e) 86.19%.
Report is 1 commits behind head on main.

Files
Patch %
Lines

libs/infinity_emb/infinity_emb/args.py
95.83%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #102      +/-   ##
==========================================
- Coverage   86.28%   86.19%   -0.09%
==========================================
  Files          27       28       +1
  Lines        1276     1297      +21
==========================================
+ Hits         1101     1118      +17
- Misses        175      179       +4

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


save to shared defaults only on back press

not possible, because back is not a button. But we have removed close button


Nocalhost as CNCF Sandbox project

Website: https://nocalhost.dev
GitHub: https://github.com/nocalhost/nocalhost
Slides: https://docs.google.com/presentation/d/1E1N-WGpwJRRUiE3U5kcqE5blaMH8Oi9BTzOsaNwOFao
request for Sig presentation.

Awesome! You are warmly welcome to present and participate in the SIG.
You can pick a meeting date and put your presentation into the agenda: https://docs.google.com/document/d/1OykvqvhSG4AxEdmDMXilrupsX2n1qCSJUWwTc3I7AOs/edit#
We have regular meetings on 1st and 3rd Wednesdays at 8 am Pacific, 11 am Eastern, which is 11pm in China.
Please don't hesitate to ping us in the Slack (#tag-app-delivery) for any questions you have. I look forward to more dev experience collaboration in the SIG and even a WG for it in the future!

Just for clarification: To get into the sandbox, you have to fill out this form: https://docs.google.com/forms/d/1bJhG1MuM981uQXcnBMv4Mj9yfV5_q5Kwk3qhBCLa_5A/viewform?edit_requested=true. A SIG presentation is not mandatory for the sandbox. Nevertheless, we'd be very happy to get a presentation of your product in one of the next TAG meetings.

Just for clarification: To get into the sandbox, you have to fill out this form: https://docs.google.com/forms/d/1bJhG1MuM981uQXcnBMv4Mj9yfV5_q5Kwk3qhBCLa_5A/viewform?edit_requested=true. A TAG presentation is not mandatory for the sandbox. Nevertheless, we'd be very happy to get a presentation of your product in one of the next TAG meetings.

Thanks, we have already filled this form.

Notes from today's presentation (original):

Slides: https://docs.google.com/presentation/d/1E1N-WGpwJRRUiE3U5kcqE5blaMH8Oi9BTzOsaNwOFao
Motivation: Kubernetes user experience is oriented to operators, want better "inner loop" (build, run, test, debug) process for app developers

today's Kubernetes "inner loop" development process: code, build, push, run
desire to schedule in k8s alongside services not in development,  but in K8s we use configmaps, secrets, volumes; these are not available in localhost

Proposal:

Build and run local container as host connected to in-cluster pods and services
Use local connected container to build, test, and run services connected to in-cluster services
Example: exec into dev container and run go run main.go to replace the running process

Open source

https://github.com/nocalhost/nocalhost
https://nocalhost.dev/

Q's

Can you build images in Nocalhost? A: No, use other processes.

Additional.
Nocalhost provides an additional Server side, which is optional and used to unify the management of users, clusters, applications and development spaces (based on Namespace isolation).
Developers can connect and login to the Server side from the Nocalhost IDE plug-in for easy application deployment and development.

closing this as the presentation already took place and there are no more action items for us


<IP_ADDRESS> crashes when running in full node mode

The latest version crashes on Windows randomly but mostly during the first hours of opening it. This is while having listen=1. Has been like this since the <IP_ADDRESS> release. Previous versions didn't crashed as often and were rare. Now they are frequent.

I can also confirm mine crashes too (Windows 10 x64 and v<IP_ADDRESS>-g-research). It seems to be after a random period of time. I return to my computer, say in the morning from overnight and the wallet is no longer running. Or if i go to the notification area icon and hover over it in an attempt to access it, it disappears as it is no longer running (and previously crashed out).
Let me know if I can assist with log collection near such an event. Thanks.

I think it has to do with the number of connections. When adding maxconnections=10 and maxoutboundconnnections=5 my Win node ran much more stable.

probably a duplicate of #356

Hope it gets fixed so that I can resume using my full node which is currently limited to just 10 connections instead of the hundreds I was getting.

I usually only have 7 or 8 connections.
So what is full node mode and why would one use it?
Thanks @Quezacoatl1 @moisesmcardona

Full node is every wallet that is reachable from public Internet (port forwarding), preferably has a domain name, and has increased limit of incoming connections.
This may be caused by some race conditions.

@tomasbrod It's a socket error 10014 when doing select on Windows IIRC. I need to capture it in the debugger to see why this happens.

I am having the same issue , before reading this i thought it may be something like that as seattle-2.gridcoin.stablenode.net sits around 130-137 connections in windows 7 so i moved from an Intel D920 with 4gb ram dedicated laptop over to one of my blades , as I had testnet running on 2 HP Proliant BL460c gen 6's already and random on restart since 3.5.9.x when starting testnet I get invalid block index file error and have to redownload the blockchain ( its fast so no problem really just annoying ) anyways one one downloadblocks --testnet it restarted as the real network and before i knew it had downloaded the blockchain from block 0 overnight so moved to that node to one of the 16 core x5550's and 44gb ram 2 x 76gb 15k sas drives assuming that would be a solution and same problem also trying to provide something decent spec'ed vs the vps's most nodes are ran on especially the 15k sas drives and I wish I could run more as nodes to help support users and help the NN issues especially since we are ordering 1/1gbps as its not much more than my 285/20mbps I have at home. Thanks to bullshark linking me this post I tried max connections @ 50 and was ok then @ 75 and it crashed before hitting 75 , as I said in windows I am used to seeing 130ish stable weeks/months on end with that dedicated machine I have been using as a full node in windows.. So my solution , move over to 1 of my BL480's running ubuntu for now till this issue is resolved. I wish we used a block of ports and could have within a NAT network and 1 ipv4 address multiple nodes and it would just go incrementally and in the firewall allow a block of ports vs 1 and the wallet clients use upnp to punch the hole needed in their firewall to connect to 32749 , 32750 , 32751 etc as it searched for gridcoin wallets on the seednodes or nodes in the config file dns/ip on that block of ports and if not found moves on , same with testnet so you could run multiple clients especially if connection count is going to be an issue and windows clients max @ 50-60 clients when you have us running Linux nodes capable of of 100s of connections ( i have 2 linux full nodes we use too 124 and 97 connections ) and with testnet using 32760 then 32761 32762 etc vs only the ability to run 1 full node server per ipv4 address and then multiple ipv6 only nodes since most end users are stuck with 1 ipv4 address and a /48 or /64 and we have many active ipv6 connections. I assume there is some hardening that would have to happen as it opens more doors into the gridcoinresearchd daemon but it would be nice.. Also according http://www.gridcoin.us/Dev/daemon-cmd.htm  " -maxconnections=	Maintain at most  connections to peers (default: 125) " has this been changed and the default value of N is now different and this documentation needs to be updated and this is why the wallets crash?

I can confirm I don't use full node mode, so my comments can be ignored in this thread's subject. However, as above, I do have crashes in terms of after a period of time, I can return to my online PC and the wallet has quit by itself. I will monitor on <IP_ADDRESS> (version change since posting) and report if I need to in future. Thanks All. :-)

related to #461 ?

Is this still an issue now?

Hi All, hi @RoboticMind. Per my comments above, I never used full node mode and still don't know what it is, though I did have crashes on the version noted. Have been using latest for some time and no crashes for me. So take it as a positive. Perhaps I will let the original poster @moisesmcardona respond. Thank you.

I have a prod wallet and testnet wallet port forwarded on the default ports (although I have not added them to the node list as yet) and do not seem to suffer from this crashing.
Prod Wallet - Rasp-Pi 3B, Pi-64 Debian Buster
Testnet Wallet - Windows 10 x64
Any crashes I have had previously have been related to memory and swap usage before I was able to pin down my stable settings on the R-Pi. I haven't seen any crashes relating to running as a full node even on the Pi's limited hardware.
My other machines running testnet clients are port forwarded as well but on non-standard ports so get limited inbound connections.

Closing as we have not seen this in a very long time.


[Feat/aut788] - Walkthrough: Targeted flux analysis with GC-MS full-scan Agilent

Objective

Documentation for the tutorials section in RtD
Walkthrough: Targeted flux analysis with GC-MS full-scan Agilent
Docs can be viewed at : https://smartpeak-.readthedocs.io/en/feat-aut788/guide/tutorials.html

Looks very nice! Great screenshots.
Once the CI passes we can merge. Ping me once all of the CI tests pass.

ProgressInfo_test doesn't pass sometimes on windows.


Consistent snake_case vs CamelCase

This is a problem with both SymbolicRegression.jl and PySR - parameters are mixed in terms of using snake_case vs camelCase (vs PascalCase, for some symbols). In 0.9.0, this will be fixed: types/constructors/functions will be PascalCase, and parameters will be snake_case. Existing symbols will be deprecated, with a warning message indicating which function/parameter to use in place. Eventually these will be removed entirely at some point in the future.

Mostly done, but just option parameters are left to be fixed.


timeline sorting glitch

With latest update, timeline sorting by text doesn't work for me now. (I'm using Dataview for tasks.)

With latest update, timeline sorting by text doesn't work for me now. (I'm using Dataview for tasks.)

I am also seeing the same behavior, no sorting changes the display at all. I, however, am using the Tasks Emoji Format.


TV Authentication

Every time I run this command  node $(npm root -g)/homebridge-cast/certgen.js
I get the following:
root@homebridge-vm:/var/lib/homebridge $ node $(npm root -g)/homebridge-cast/certgen.js
node:internal/modules/cjs/loader:1147
throw err;
^
Error: Cannot find module '/opt/homebridge/lib/node_modules/homebridge-cast/certgen.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
I am using Homebridge Virtual Machine, Windows 11 Hyper V.  Node js Version v20.11.0.
thanks for your kind help.

The file is in on of the directories..  Do a search using 'find / -name certgen.js -print' ... While I could run it but the script is unable to find any Android TV devices..

Could this be a Node v20 issue?

This is because the file is in different location. For me it was in /var/lib/homebridge/node_modules/homebridge-cast/ moreover, after running the script and filling the name of the device in, I get error and process aborts. Here is the stack trace:
`Searching for device...
node[8017]: void node::cares_wrap::{anonymous}::GetAddrInfo(const v8::FunctionCallbackInfov8::Value&) at ../src/cares_wrap.cc:1603
Assertion failed: args[4]->IsUint32()
----- Native stack trace -----
----- JavaScript stack trace -----
1: getaddrinfo_0_11 (/var/lib/homebridge/node_modules/homebridge-cast/node_modules/mdns/lib/resolver_sequence_tasks.js:117:21)
2: /var/lib/homebridge/node_modules/homebridge-cast/node_modules/mdns/lib/resolver_sequence_tasks.js:153:7
3: getaddrinfo (/var/lib/homebridge/node_modules/homebridge-cast/node_modules/mdns/lib/resolver_sequence_tasks.js:152:14)
4: next (/var/lib/homebridge/node_modules/homebridge-cast/node_modules/mdns/lib/browser.js:109:21)
5: on_resolver_done (/var/lib/homebridge/node_modules/homebridge-cast/node_modules/mdns/lib/resolver_sequence_tasks.js:33:11)
6: MDNSService.self.watcher.callback (/var/lib/homebridge/node_modules/homebridge-cast/node_modules/mdns/lib/mdns_service.js:18:40)
Aborted`


typescript support

Thank for your great work.
Is there any plan to add typescript type support?

https://github.com/DefinitelyTyped/DefinitelyTyped/pull/26276


turn this into a package

In order to turn this into a package, we should namespace the classes and implement autoloading. This should also allow us to better separate the classes from any PHP that has side effects...

Fixed in commits: https://github.com/Liturgical-Calendar/AmazonAlexa-newsbrief/compare/4b206eb6191dcc133c625c570f92397ca0586eba...dc08559d09dde9bbde64bdab287426f82f5aa1dd


This requires the 'non-nullable' language feature to be enabled.

Hello
I have a problem while generating.
Can you help me with it?

Hi @TimurMukhortov,
It looks that you are using a null-safe version of the intl_utils package in your project, that generates null-safe localization files.
Not sure if you want to support null-safety in your project (environment sdk is not set to the ">=2.12.0-0 <3.0.0")?
If not, usage of the intl_utils 1.9.0 should fix this issue.

@lzoran yes. sorry. it was my fault. thank you.


Don't use marker types as metadata

/cc @JamesNK
So something I realised, we can't really use marker types like ISuppressMatchingMetadata as metadata types. We want metadata to be overridable, and you can't override the presence of something.
I have a PR in the works to address this issue for suppress matching and suppress link generation. Are there others?

I didn't add any. Is the plan to add a boolean flag to the metadata?

Yeah that's what I did in the PR. It's just future proofing really.
We have things like this in MVC that are policies that can't be overridden (like IAllowAnonymous) I didn't want to bake this problem into the design of a new system.

I'll resolve this once my cleanup PR is merged then. I don't think we have another others.

Done.


MAplot with lfcShrink

Adaptation of MAplot to show how much the lfcShrink() function affects

Thinking to add "shrink" option to plotMA. However, the plot accepts res object and I need shrunken and unshrunken results. The plan is to feed the function with a bcbio object with these slots or should I add new parameters (i.e unshrunken)?

@vbarrera That's a good question. We're using the generic from BiocGenerics::plotMA, which is defined as function (object, …). We can provide S4 method (setMethod()) support for DESeqResults as the primary object. Maybe we should pass in the resUnshrunken here and add an optional resShrunken parameter argument that we can then require to be a DESeqResults object as well.

Or maybe the easier option is to just pass in the unshrunken DESeqResults and set a parameter argument shrink = TRUE that would then calculate the shrunken DESeqResults internally from the unshrunken DESeqResults. This is probably similar but we'd have to hardcode the shrinkage parameters, like coef = 2.

I like the idea of the method with an extra parameter to accept the shrunken data. I’d avoid to calculate the shrinking inside the function.

On Aug 16, 2017, at 10:41 PM, Michael Steinbaugh<EMAIL_ADDRESS>wrote:
@vbarrera https://github.com/vbarrera That's a good question. We're using the generic from BiocGenerics::plotMA, which is defined as function (object, …). We can provide S4 method (setMethod()) support for DESeqResults as the primary object. Maybe we should pass in the resUnshrunken here and add an optional resShrunken parameter argument that we can then require to be a DESeqResults object as well.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/hbc/bcbioRnaseq/issues/10#issuecomment-322953495, or mute the thread https://github.com/notifications/unsubscribe-auth/ABi_HEs15KM6bnXeCaFO1faj8gYHNhh2ks5sY6hCgaJpZM4OuFOC.

That makes sense. How about this – we pass the unshrunken DESeqResults as the primary object then add a parameter called lfcShrink that requires the output from DESeq2::lfcShrink(), a shrunken DESeqResults. We can add checking in the function with is(lfcShrink, "DESeqResults"). That should work.

Usually, we're working with the shrunken results (downstream analysis) so we should pass the unshrunken results as optional. So, shrink option should default to NULL but if exists (being a DESeqResults object), plot the shrinkage. Would that be ok? In this case the is(lfcShrink, "DESeqResults") won't work as it's not shrunken.

Right but I think in this case the parameter naming wouldn't be intuitive. How about this instead – we pass the shrunken DESeqResults in as the primary object, then have a parameter argument called unshruken that supports an unshrunken DESeqResults. Like you mentioned, let's have this set to NULL but default, but if it exists, then check that it's a DESeqResults object (is(shrunken, "DESeqResults")). All the is() statement would do is check that the secondary object is a DESeqResults, but maybe there's a way to check inside these objects and tell whether they're shrunken or not.


Issue writing testes alongside rswag

Hello, I've been assigned into a project that uses rswag for it's documentation, I have very little experience with it but I've been getting the hang of it. The issue is people weren't actually writing tests, they were just creating the endpoints documentation. So there's no one with a background experience that can help me in my team.
I'm currently using the documentation avaliable in the readme to try and create a simple test.
The run_test! command didn't work due to authentication issues, so I'm trying to do it manually as is explained in the readme.
before do
	let!(:product) { create(:product) }
	get '/products', headers: headers
end
it 'returns a valid 200 response with the product' do |example|
	assert_response_matches_metadata(example.metadata)
end

Where in the header I handle the authentication part. The only issue is that when I try to run this test I get the following error   undefined method 'path' for RSpec::ExampleGroups::
By the nature of the error I assume maybe it's some configurarion missing on Rspec? I couldn't find anything similar on the open issues or in the Readme, any help is appreciated.

same here :/
is it tied to the rails6 use maybe ?

@benbonnet probably not, since I'm using rails 5 on this project.

Can you post a full test file that's failing? Do you have require 'swagger_helper' at the top of your test file?

So, I hadn't tried it again since the time of writing of this issue, so I decided to try again with the require you said. To my surprise, both using and not using the require gives me the same response, it "works", I mean I don't get the error I was getting before. I have no idea why. But now I still can't get it to work.
describe 'Eproducts endpoints' do
	let!(:user) { create(:user) }
	let(:headers) { authenticated_header(user) }
	let!(:product) { create(:eproduct) }

	path '/ecommerce/v2/eproducts' do
		get "Get the product list from the ecommerce" do
			security [ Bearer: [""] ]
			tags 'Ecommerce'
			consumes 'application/json'
			description "Get a list of products from the ecommerce"
			parameter name: :search, :in => :query, :type => :string, :description => 'Search in fields: name, description, sku', required: false
			parameter name: :category_id, :in => :query, :type => :string, :description => 'Search by category id', required: false
			parameter name: :campaign_id, :in => :query, :type => :string, :description => 'Search by category alias', required: false
			parameter name: :price, :in => :query, :type => :integer, :description => 'Search products that are between the past price', required: false
			parameter name: :attributes, :in => :query, :type => :integer, :description => "Search for dynamic attributes, example: attributes=[{alias: 'visible', value: true}, {alias: 'color', value: 'azul}]", required: false
			parameter name: :skus, :in => :query, :type => :integer, :description => "Search for products related to a sku , example: skus=['145aad', 'aaaaaa']", required: false
			parameter name: :campaig_id, :in => :query, :type => :integer, :description => "Search for products related to a campaign, example: campaign_id='145aad-11dd21-asdasd-123123'", required: false
			parameter name: :campaign_alias, :in => :query, :type => :integer, :description => "Search for products related to a campaign, example: campaign_alias='new-campaign'", required: false
			parameter name: :sort, :in => :query, :type => :integer, :description => 'Sort products example: -title, +attributes.color', required: false
			parameter name: :per, :in => :query, :type => :integer, :description => 'results per page', :default => 10, required: false
			parameter name: :page, :in => :query, :type => :integer, :description => 'page', :default => 1, required: false

			response '200', 'Products found' do
				schema type: :array,
							 properties: {
									 data: {
											 type: :array,
											 items: {
													 '$ref': '#/definitions/ecommerce_eproducts_object'
											 }
									 },
									 links: {
											 type: :object,
											 properties: {
													 self: {
															 type: :string,
															 format: :url,
															 example: "//ecommerce/v2/eproducts/?page[number]=1&page[size]=10"
													 },
													 first: {
															 type: :string,
															 format: :url,
															 example: "//ecommerce/v2/eproducts/?page[number]=1&page[size]=10"
													 },
													 prev: {
															 type: :string,
															 format: :url,
															 example: nil
													 },
													 next: {
															 type: :string,
															 format: :url,
															 example: "//ecommerce/v2/eproducts/?page[number]=2&page[size]=10"
													 },
													 last: {
															 type: :string,
															 format: :url,
															 example: "//ecommerce/v2/eproducts/?page[number]=10&page[size]=10"
													 }
											 },
											 required: [ 'self', 'first', 'last']
									 },
									 meta: {
											 '$ref': '#/definitions/meta_pagination_object'
									 }
							 }
				before do
					get '/ecommerce/v2/eproducts', params: { page: 1, per: 1 }, headers: headers
				end
				it 'returns a valid 200 response with the product' do |example|
					assert_response_matches_metadata(example.metadata)
				end
			end

			response '401', 'Unauthorized' do
				let(:id) { 'invalid' }
				run_test!
			end

			response '500', 'Internal Server Error' do
				let(:id) { 'invalid' }
				run_test!
			end
		end
	end

this is the test in question. When I attempt to run it at the moment I get the error Expected response body to match schema: The property '#/' of type object did not match the following type: array in schema 21d9ae67-0c16-5104-a531-ae0d04a887f1. I used binding.pry to see example.metadata that I'm sending to the matcher, but it seems it's only a "copy" of the documentation I wrote.

It looks like your schema doesn't match your response. Can you put a pry in and dump your actual response/result as json?
Getting the schema syntax to match up w/ actual responses can be a little tricky

Oh, sorry for the delay, which variable holds these values? The response?

Oh, sorry for the delay, which variable holds these values? The response?

Yes, it should be the response object.
Also, probably unrelated but you could rewrite your before/it assertion block per the docs. There's some magic going on with how metadata gets injected
Instead of this:
before do
	get '/ecommerce/v2/eproducts', params: { page: 1, per: 1 }, headers: headers
end
it 'returns a valid 200 response with the product' do |example|
	assert_response_matches_metadata(example.metadata)
end

Have you tried this?
let(:'page') { 1 }
let(:'per') { 1 }
let(:'headers') { headers }

run_test!

The reason i mention it is I'm not sure if manually crafting your request is missing anything. If you want more control over the spec, because run_test! is doing too much (it just checks the response code for you, I think), there's an example from the docs:
  before do |example|
    submit_request(example.metadata)
  end

  it 'returns a valid 201 response' do |example|
    assert_response_matches_metadata(example.metadata)
  end

So, I'm currently trying to fix this tests as my only task, so again, sorry for the delay but I'm now able to pay full attention to this.

Have you tried this?
let(:'page') { 1 }
let(:'per') { 1 }
let(:'headers') { headers }

run_test!

Yes I did, when I try to do it this way I get an authentication error:
Failure/Error: example.run

     NoMethodError:
       undefined method `Authorization' for #<RSpec::ExampleGroups::EproductsEndpoints::EcommerceV2Eproducts::Get::ProductsFound:0x0000563912106070>

Which I don't get by using the get in the before do, since I can pass an authentication Header that I generate in the headers: headers option.
Anyway, right now I'm trying to figure out how to make the schema match the response object. But it leads me to believe that my approach of using get '/ecommerce/v2/eproducts', params: { page: 1, per: 1 }, headers: headers is also not going to work, because when I call response.body inside the it block I get:
{
  "data": [],
  "links": {
    "self": "http://www.example.com/ecommerce/v2/eproducts?page%5Bnumber%5D=1&page%5Bsize%5D=1&per=1",
    "first": "http://www.example.com/ecommerce/v2/eproducts?page%5Bnumber%5D=1&page%5Bsize%5D=1&per=1",
    "prev": "nil",
    "next": "nil",
    "last": "http://www.example.com/ecommerce/v2/eproducts?page%5Bnumber%5D=1&page%5Bsize%5D=1&per=1"
  },
  "meta": {
    "current_page": 1,
    "next_page": "nil",
    "prev_page": "nil",
    "total_pages": 0,
    "total_count": 0,
    "suggestions": "nil"
  }
}

Which tells me there were no Eproducts on the Database when this request was run. Which is odd since inside the pry I can get the Class.count or .first and see that it's there, even more because I have created the product on the first line of the test, before even the schema. That leads me to believe that when I call request inside my pry on the it block it isn't the get request I wrote. Am I right?

Which I don't get by using the get in the before do, since I can pass an authentication Header that I generate in the headers: headers option.

That probably fails because you don't have the securityDefinition correctly in the swagger helper.rb file. It's a little tricky tbh, but there are some good comments in various issues on how to configure it under different scenarios

That leads me to believe that when I call request inside my pry on the it block it isn't the get request I wrote.

It would be helpful to see this block, and the before setup (if you changed it) but something like this is how I'd start debugging this:
it 'valid response' do
  # This should show you the path that was requested
  puts request.url
  # I'd drop a pry into the controller also; maybe it's your auth headers,
  # maybe something else is preventing this record from returning in
  # the results?
end

What's kind of odd to me is that in your response you have a per and a page[size] and I'd expect to see one or the other (those are the same thing, right?)

What's kind of odd to me is that in your response you have a per and a page[size] and I'd expect to see one or the other (those are the same thing, right?).
Well you just got me there, that is indeed wrong, I'm suposed to send page number and a per for the size, well spotted.

It would be helpful to see this block, and the before setup (if you changed it)

Since I'm mostly trying to get this to work, my setup is pretty basic, just this:
let!(:user) { create(:user) }
let(:headers) { authenticated_header(user) }
let!(:product) { create(:eproduct) }
#the schema and all that stuff
before do
   get '/ecommerce/v2/eproducts', params: { page: 1, per: 1 }, headers: headers
end
it 'returns a valid 200 response with the product' do |example|
  binding.pry
  assert_response_matches_metadata(example.metadata)
end

Anyway, I'll try to debugg it like you said.

That probably fails because you don't have the securityDefinition correctly in the swagger helper.rb file. It's a little tricky tbh, but there are some good comments in various issues on how to configure it under different scenarios

Ok, I'll search for it on the issues.

I guess all that is left is to make the schema match the response

If you get stuck and can post the response.body I might be able to help. The syntax for the schema is a little tricky too and I didn't see a lot of complex examples. I will say that I had to struggle with it for a bit (my response was good, but it took me a while to write a good matching schema) but it does get easier once you've knocked a few out

If you get stuck and can post the response.body I might be able to help. The syntax for the schema is a little tricky too and I didn't see a lot of complex examples. I will say that I had to struggle with it for a bit (my response was good, but it took me a while to write a good matching schema) but it does get easier once you've knocked a few out

Yeah, you're right once again, I did manage to figure out why it wasn't showing up, turns out one of my filters was acting up since my factory wasn't that well made. My response body is:
"{\"data\":[{\"id\":\"ee757c1e-c1c6-4683-8a2a-141669dda3e3\",\"type\":\"ecommerce-eproducts\",\"attributes\":{\"title\":\"Samuel Smith’s Imperial IPA\",\"etype\":\"simple\",\"description\":\"Belgian And French Ale\",\"price\":0.0,\"discounted_price\":0,\"eproduct_product_id\":\"1ea4372a-baf2-4135-baaf-0c3d7e87e31b\",\"stock\":0,\"image\":\"true\",\"sku\":\"828957\"}}],\"links\":{\"self\":\"http://www.example.com/ecommerce/v2/eproducts?page%5Bnumber%5D=1\\u0026page%5Bsize%5D=1\\u0026per=1\",\"first\":\"http://www.example.com/ecommerce/v2/eproducts?page%5Bnumber%5D=1\\u0026page%5Bsize%5D=1\\u0026per=1\",\"prev\":null,\"next\":null,\"last\":\"http://www.example.com/ecommerce/v2/eproducts?page%5Bnumber%5D=1\\u0026page%5Bsize%5D=1\\u0026per=1\"},\"meta\":{\"current_page\":1,\"next_page\":null,\"prev_page\":null,\"total_pages\":1,\"total_count\":1,\"suggestions\":null}}"

Or a better formatted version
{
  "data": [
    {
      "id": "ee757c1e-c1c6-4683-8a2a-141669dda3e3",
      "type": "ecommerce-eproducts",
      "attributes": {
        "title": "Samuel Smith’s Imperial IPA",
        "etype": "simple",
        "description": "Belgian And French Ale",
        "price": 0,
        "discounted_price": 0,
        "eproduct_product_id": "1ea4372a-baf2-4135-baaf-0c3d7e87e31b",
        "stock": 0,
        "image": "true",
        "sku": "828957"
      }
    }
  ],
  "links": {
    "self": "http://www.example.com/ecommerce/v2/eproducts?page%5Bnumber%5D=1&page%5Bsize%5D=1&per=1",
    "first": "http://www.example.com/ecommerce/v2/eproducts?page%5Bnumber%5D=1&page%5Bsize%5D=1&per=1",
    "prev": null,
    "next": null,
    "last": "http://www.example.com/ecommerce/v2/eproducts?page%5Bnumber%5D=1&page%5Bsize%5D=1&per=1"
  },
  "meta": {
    "current_page": 1,
    "next_page": null,
    "prev_page": null,
    "total_pages": 1,
    "total_count": 1,
    "suggestions": null
  }
}

But I still get the same error that I got before:
Expected response body to match schema: The property '#/' of type object did not match the following type: array in schema 21d9ae67-0c16-5104-a531-ae0d04a887f1. So I'm currently trying to match all the variables on the schema with the ones on the eproduct creation.

It looks OK to me, but I'd also need to see the definition for your ecommerce_eproducts_object, can you share that?
A few debugging tricks I use:

Don't use a reference right now; get it working without the reference first
If that doesn't work, start with a bare minimum wrapper & keep layering schema stuff on until it matches

Side question: It looks like you're using JSONAPI; what gem are you using? (we're using jsonapi-resources)
I have a generic jsonapi schema wrapper I use to make sure the schema is properly formatted jsonapi that we use on all endpoints, then we check for presence of particular values and keys as needed. It doesn't, for example, validate that you have price, description, etc. or that the "type" key is ecommerce_eproducts_object but what I've found is that a lot of the work of defining all those schemas ends up being duplicate work; mostly because we provide an example response with every test that we document (we configured rswag to do that)
I'd like to do bespoke schemas for everything at some point but we haven't had to make it a priority as of yet. We do create/update request schemas though, just not index/show response

It looks OK to me, but I'd also need to see the definition for your ecommerce_eproducts_object, can you share that?

ecommerce_eproducts_object:{
            type: :object,
            properties: {
                id: {
                    type: :string,
                    example: 'fbf10588-6946-4532-af7c-7200dc684e63'
                },
                title: {
                    type: :string,
                    example: 'This product title'
                },
                description:{
                    type: :string,
                    example: 'This product description'
                },
                categories:{
                    type: :array,
                    items: {
			'$ref' => '#/definitions/ecommerce_categories_object'
		  }
                },
                campaigns:{
                    type: :array,
                    items: {
			'$ref' => '#/definitions/ecommerce_campaigns_object'
		  }
                },
                features:{
                    type: :array,
                    items: {
			'$ref' => '#/definitions/ecommerce_features_object'
		    }
                },
                eproducts_products:{
                    type: :array,
                    items: {
			'$ref' => '#/definitions/ecommerce_eproducts_products_object'
		     }
                }
            }
	},

Side question: It looks like you're using JSONAPI; what gem are you using? (we're using jsonapi-resources)

We're currently using fast_jsonapiIf I'm not mistaken.

If that doesn't work, start with a bare minimum wrapper & keep layering schema stuff on until it matches

Does the schema have to be an exact match with the response? Like the values and such, since my values are randomly generated with Faker this might be a problem.

Source for that is here but iirc I had to make a change to make it work right with whatever gem I was using, or ruby, or something
There's also some tools for helping you create & maintain schemas here (I haven't had time to pursue these in depth yet)
Edit 2: This post might also be helpful, it has some other documentation in there (if you're doing jsonapi)

Thanks man, I'll look into that right now.

Does the schema have to be an exact match with the response? Like the values and such, since my values are randomly generated with Faker this might be a problem.

It shouldn't have to be, unless you've hard-coded some values (like an enum type with an array of acceptable values or whatever)
I think you're on to something though, because I glanced over your error message before:
array in schema 21d9ae67-0c16-5104-a531-ae0d04a887f1

That last bit is obviously a UUID, probably from a response.
For reference, your original schema at the top level (reformatted because the tab's expansion is hard to read on github:
schema type: :array,
properties: {
  data: {
    type: :array,
    items: {
      '$ref': '#/definitions/ecommerce_eproducts_object'
    }
  },
  links: {
    type: :object,
    properties: {
      self: {
        type: :string,
        format: :url,
        example: "//ecommerce/v2/eproducts/?page[number]=1&page[size]=10"
      },
      first: {
        type: :string,
        format: :url,
        example: "//ecommerce/v2/eproducts/?page[number]=1&page[size]=10"
      },
      prev: {
        type: :string,
        format: :url,
        example: nil
      },
      next: {
        type: :string,
        format: :url,
        example: "//ecommerce/v2/eproducts/?page[number]=2&page[size]=10"
      },
      last: {
        type: :string,
        format: :url,
        example: "//ecommerce/v2/eproducts/?page[number]=10&page[size]=10"
      }
    },
    required: [ 'self', 'first', 'last']
  },
  meta: {
    '$ref': '#/definitions/meta_pagination_object'
  }
}

I think you need to change that first line; schema type: :array, to schema type: :object, because your array is actually inside of your data object, not outside. Can you test that and let me know if you get a different error?

So, you were right, all the issues left were due to typing, stuff that should be :null but written as :integer or :string and that kind of stuff.
I made a request by hand on postgres, and used this tool to convert it to a schema, popped it into notepad++ and went fixing all the types that were wrong, after that everything worked as expected.
Thanks for the help man, this issue is solved.


loading dynamic urls via external API

Details
Hi, I'm wondering if it's possible to load dynamic urls from an external API such as
sitemap: {
sitemaps: {
urls: async () => {
const gamePages = await $fetch(${process.env.API_URL}/games)
return gamePages.map((page) => ({
loc: /games/${page.slug},
lastmod: page.updated_at,
changefreq: 'daily',
priority: 0.8,
}))
},
},
},

Hey @Swidjit
Did you see the documentation for Handling Dynamic URLs?

Hey @Swidjit
Did you see the documentation for Handling Dynamic URLs?

yes!  the examples seemed to assume a nuxt server, or something with same url, so i wasn't sure if it would be possible otherwise.  but the code i have above is not working - i get an empty sitemap - even though my api endpoint works fine and provides he expected data.  I'm not sure how to troubleshoot this since Im unsure where to look for errors, or how to test generation locally and see what's going wrong.  Thanks for your quickly reply!

are you able to show how/where getBlogPages() is defined in the example you give?

ah I figured it out:
const response = await fetch(${process.env.API_URL}/games)
const gamePages = await response.json()

Will keep open until the docs are improved around external fetching

I've tried to generate via external API and it works fine but only on my local machine and on the build on netlify but on my own server doesn't work. Any idea why?

I've tried to generate via external API and it works fine but only on my local machine and on the build on netlify but on my own server doesn't work. Any idea why?

Hey, happy to help but you'll need to provide some reproduction details, ideally in a new issue.

Will track this as part of https://github.com/harlan-zw/nuxt-simple-sitemap/issues/80


[VIM 8.2.500] function getbufvar() with empty varname returns variables from wrong buffer

Describe the bug
Calling getbufvar(1,'varname') currently returns the variable 'varname' from buffer 1.
However, calling getbufvar(1,'') always returns buffer variables from the current buffer.
To Reproduce
Detailed steps to reproduce the behavior:

Launch vim
Split the window into a new buffer :new
In the top buffer set a buffer local variable :let b:test = 'upper buffer'
Get top buffer number :echo bufnr('') should return 1
Switch to lower buffer.
Set lower buffer variable.  let b:test = 'lower buffer'
Get top buffer variable directly.  :echo getbufvar(1,'test')  This should work.
Get top buffer variable indirectly.  :echo getbufvar(1,'').test.   This returns 'lower buffer'

Expected behavior
I would expect getbufvar(0,'test') and getbufvar(0,'').test to work identically if test is set.
Environment (please complete the following information):

Vim version 8.2.0500 (appears to be broken since 8.2.0481)
OS: Ubuntu 18.04
SSH / tmux / putty

The last GOOD version was 8.2.0472
Git bisect suggests
8601545338581c01e328cdc3a72c0b12d92c54cf is the first bad commit
commit<PHONE_NUMBER>581c01e328cdc3a72c0b12d92c54cf
Author: Bram Moolenaar<EMAIL_ADDRESS>Date:   Sun Mar 29 15:12:15 2020 +0200

    patch 8.2.0473: variables declared in an outer scope

    Problem:    Variables declared in an outer scope.
    Solution:   Decleare variables only in the scope where they are used.

 src/evalvars.c | 23 +++++++++++------------
 src/version.c  |  2 ++
 2 files changed, 13 insertions(+), 12 deletions(-)

The following command was used to test;
TERM=dumb /tmp/build/bin/vim +'let b:test="lower"' +new +'let b:test="upper"' +'wincmd w' +'echo getbufvar(2,"test") getbufvar(2,"").test' '+sleep 2' '+qa'

It outputs upper upper on a good build, and upper lower on a bad build.
Hope any of that helps.
Cheers
FYI - I noticed the problem specifically because the vim-gitgutter plugin started failing.


Oops; flutter has exited unexpectedly: "Invalid argument(s): join(null, "Google", "AndroidStudio4.1", ".home"): part 0 was null, but part 1 was not.".

Facing issue on flutter doctor:
Oops; flutter has exited unexpectedly: "Invalid argument(s): join(null, "Google", "AndroidStudio4.1", ".home"): part 0 was null, but part 1 was not.".
Already set FLUTTER_ROOT and installed the latest version

@AjeyBohare
Does flutter doctor -v generate output or throws above error mid way ?
What Flutter version are you on ? Windows or Mac ?
Did you recently install Flutter or upgraded to new version ?
Please elaborate on the issue which will help us to properly address it.
Does the error generate any crash_log ? if so, can you share that here ?

@jonahwilliams Thanks for your help. It works,


List swap method

I would like to propose a 'swap' method on List, which would have the following functionality:
void swap(int x, int y) {
  var tmp = this[x];
  this[x] = this[y];
  this[y] = tmp;
}
Of course there would probably be some range checks, but this would greatly enhance the List class for me, and I'm sure others.

Especially this will be useful with ObservableList, to get only one change record, with added and removed fields simultaneously.

+1, would be nice to have this method in the core SDK.

+1

+1

We have no current plans to change the List API. It's a very central API, and adding a method to it will break all classes currently implementing List. The benefit has to be very great for us to do that (no matter how convenient such a method would be).

We have no current plans to change the List API. It's a very central API, and adding a method to it will break all classes currently implementing List. The benefit has to be very great for us to do that (no matter how convenient such a method would be).

can it be done with extensions so it don't break implementations?
I know there may be a package that does this, but I have the feeling that this kind of stuff should be in the core

You can definitely write an extension, but then ObservableList won't be able to intercept the operation (as suggested above) unless the target is statically typed as ObservableList.
(Again, interface default methods would allow us to add members to an interface without (necessarily) breaking classes implementing the interface. We can break classes which already uses the same name, but that's still less than breaking all classes implementing an interface. Until we get interface default methods, I don't see a big urge to add swap in the platform libraries, because anyone can add it just as efficiently).
extension ListSwap<T> on List<T> {
  void swap(int index1, int index2) {
    var length = this.length;
    RangeError.checkValidIndex(index1, this, "index1", length);
    RangeError.checkValidIndex(index2, this, "index2", length);
    if (index1 != index2) {
      var tmp1 = this[index1];
      this[index1] = this[index2];
      this[index2] = tmp1;
    }
  }
}

Are  "interface default methods" being considered or tracked in any issue?

Conflicts between interface default methods are like conflicts between any other interface methods, if a subclass can't define a member signature that satisfies both, it cannot implement both interfaces.
On top of that, a conflict may also prevent automatic introduction of the default implementation.
Interface default methods exist to solve the software engineering problem of adding members to interfaces that are already implemented by third-party classes, without those classes suddenly not satisfying the interface. It's just about providing a default implementation of new members, it can't solve API conflicts.
(Traits, on the other hand, might be able to.)


[BABEL] unknown: Preset after upgrade to RN 66

Description
After upgrading to RN66 whenever I try to run jest I get this error. I'm not sure exactly what is wrong
Test suite failed to run

    [BABEL] unknown: Preset /* your preset */ requires a filename to be set when babel is called directly,
    ```
    babel.transform(code, { filename: 'file.ts', presets: [/* your preset */] });
    ```
    See https://babeljs.io/docs/en/options#filename for more information.

Jest Config
module.exports = {
  preset: 'react-native',
  verbose: true,
  moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
  transform: {
    '^.+\\.(js|ts|tsx)$': '<rootDir>/node_modules/react-native/jest/preprocessor.js',
  },
  cacheDirectory: '.jest/cache',
  transformIgnorePatterns: [
    'node_modules/(?!@react-native|react-native|react-native-navigation|rn-color-matrices|concat-color-matrices|static-container)',
  ],
  setupFilesAfterEnv: ['<rootDir>/__mocks__/setUpTest.js'],
  collectCoverageFrom: ['src/**/*.{js,ts,jsx,tsx}', '!src/data/**', '!src/styles/**'],
};

Babel Config
module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  retainLines: true,
  env: {
    production: {
      plugins: ['transform-remove-console']
    }
  }
};

React Native version:
System:
    OS: macOS 11.6
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 4.94 GB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.4.2 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.18.1 - /usr/local/bin/npm
    Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK:
      API Levels: 23, 29, 30, 31
      Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0
      System Images: android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
      Android NDK: 23.0.7344513-beta4
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7678000
    Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_281 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.66.0 => 0.66.0
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Expected Results
Jest suite should run normally?

Same here.
When I try with RN 0.65.1, Jest works fine.
@alejandrorangel Did you solve this issue?

Hey @ariiyu yeah the problem was inside my jest configuration I was using
transform: {
    '^.+\\.(js|ts|tsx)$': '<rootDir>/node_modules/react-native/jest/preprocessor.js',
},

I had to remove that, add @babel/preset-typescript to my devDependencies and it to my babel config file
presets: ['module:metro-react-native-babel-preset',"@babel/preset-typescript"]


Creating monitoring workflow for servers

We need a monitoring workflow to ensure we meet our SLO:

<1% ratio of 500 responses for all requests in each quarter.
50th percentile latency will not exceed 2s for all requests in each quarter.
95th percentile latency will not exceed 5s for all requests in each quarter.

We could use OpenCensus Trace for instrumenting the requests latency and status code, and generate reports / send alerts based on that.

This is done at https://googlecloudplatform.github.io/cloud-opensource-python/monitoring.html


IMPROVED USER INTERFACE OF THE FOOTER✨

I would like to enhance the user interface of the footer, kindly assign me the task.

Kindly explain in detail , what changes do you want to make , and why the old - one is not good

I would like to realign the footer elements as they are unordered and modify the CSS styling


Wala

WalaWalker::print() added to test around with SILModule and extracting information from it.  Playing around with this to see what kind of data can be extracted for passing to WALA.

N/A

Can you resolve the conflicts, so github can merge this?

@juliandolby Resolved.

Thanks, Jeff!


documentation for multi_index upper_bound is incorrect

Currently the documentation for upper_bound says:

Searches for the object_type with the highest primary key that is less than or equal to a given primary key.

This is incorrect. It should be:

Searches for the object_type with the lowest primary key that is greater than a given primary key.

Resolved by #580 and #662 (and #663 for the release/1.6.x branch).


feature: lazy.nvim option for the unique map option

Did you check the docs?

[X] I have read all the lazy.nvim docs

Is your feature request related to a problem? Please describe.
There is the not so well-known map option unique, which is pretty handy as it notifies you if you accidentally assigned a keymapping multiple times. In my config, I can do something like this:
local function keymap(modes, lhs, rhs, opts)
	if not opts then opts = {} end
	if opts.unique == nil then opts.unique = true end
	vim.keymap.set(modes, lhs, rhs, opts)
end

And then use keymap, and I will get warnings as soon as I have duplicate keymappings. Now, the problem is that this does not include keymappings defined in lazy.nvim plugin specs.
Describe the solution you'd like
Add an option to the lazy.nvim configuration, maybe something like defaults.unique_keymaps, that automatically adds unique = true to all Lazy Key Mappings (that do not explicitly set unique = false).
Describe alternatives you've considered
Since the Lazy Key Mapping support any option valid for vim.keymap.set, one could simply add unique = true to every single keymapping defined in every single plugin-spec. But obviously, having a global setting for that would be preferable.
Additional context
No response

Just use something like the below. I'm using this to silence all keymaps.
Add it before loading lazy.
-- make all keymaps silent by default
local keymap_set = vim.keymap.set
---@diagnostic disable-next-line: duplicate-set-field
vim.keymap.set = function(mode, lhs, rhs, opts)
  opts = opts or {}
  opts.silent = opts.silent ~= false
  return keymap_set(mode, lhs, rhs, opts)
end


Yet another PrivateSend refactoring/optimization/bug fix

This started as "Ok, I have 3 wallets open locally in mixing mode and they only need to go through ~20 mns so they should have started to see almost the same info about mns available for mixing already. Why do they mix so rarely then?" and escalated quickly 😇
Summarized list of changes:

refactor IsDenomCompatibleWithSession - CreateNewSession, AddUserToExistingSession and IsAcceptableDenomAndCollateral
refactor UpdatePoolStateOnClient: states should be switching via local logic (except when entries were rejected), this function should only do very limited pre-defined work
refactor Charge*Fees: reduce steps, no need for wallet usage here
refactor CheckPool, add CreateFinalTransaction/rename CommitFinalTransaction
refactor CheckTimeout: should not rely on CDarkSendEntry's nTimeAdded
refactor SetState: local only now
dsq fixes: make sure dsq is not too much in the future, store own dsq to avoid processing it when it's relayed back by other nodes, do not process seen dsq, do not alter nTime for dsq localy, use memory only fTried instead, remove GetAddress and GetProtocolVersion for dsq
fix dsq rate limit bug: should not use vecMasternodesUsed when connecting from queue, should check nLastDsq only
do not read dsvin data when there is not enough session users
remove excessive bool arg in dscomplete
check for session readiness early
fail to process message on the wrong side (client/mn)
fail and reset pool if can't sign anything in final tx
fail in PrepareDenominate if local pool already has entries, no matter which state we are in now
remove POOL_STATE_TRANSMISSION, POOL_STATE_FINALIZE_TRANSACTION, STATUS_SET_STATE, nAmount, nTimeAdded, fSessionFoundMasternode, nSessionUsers, IsExpired
replace nSessionUsers with vecSessionCollaterals.size()
move mnodeman.Find out of CheckSignature for PS classes
cleanup, more log verbosity for debug mode
bump min ps peer proto

As a result:

mixing wallets should rely on local logic and expected set of state switches rather then updates from masternodes
there should be much less update messages floating around to every node on the network during mixing
protocol should be a bit more compact and much more straightforward, code should be easier to read and understand

Requires PROTOCOL_VERSION bump to 70203.
Slightly tested with one mn and 3 wallets, works for me (remember to bump local wallet proto version if you want to test this).

Just a personal NIT (I know it's not easy to do), but with that much changes I'd prefer to have the functional changes and the refactoring in 2 different PRs to make the review a bit easier.

Agree. I'll break down this PR into smaller focused PRs so let's put this one on hold and keep it as a reference to the final state then.


Expire link of books image

Add new book Images link to contribute book section

Can you assign me and also add on Hacktoberfest?


Nested toctree as on readthedocs.org

It appears that readthedocs.org uses a style which supports toctrees with depth greater than two

https://docs.readthedocs.org/en/latest/builds.html#sphinx
Is there some way of enabling this style of toctree with sphinx_rtd_theme?

This project is what RTD uses for it's theme. I implemented the multiple nav levels here already and brought the new theme into RTD

Yea, this is committed to the theme currently. Closing this.


lnwire: fuzz onion failure messages

Fuzz tests for decoding and encoding of onion failure messages, based on the fuzz harness for other lnwire messages. The onion failure messages were not covered by existing fuzz tests.
Some of these fuzz tests will fail until https://github.com/lightningnetwork/lnd/pull/7665 is merged, since the decode-encode-decode of messages with channel_updates currently can mutate the channel_update.  See https://github.com/lightningnetwork/lnd/issues/6461#issuecomment-1533438743.
No crashes found after 50+ CPU-hours of fuzzing for each target with https://github.com/lightningnetwork/lnd/pull/7665 patched in.

@positiveblue: review reminder
@crypt-iq: review reminder

@positiveblue: review reminder
@crypt-iq: review reminder

@positiveblue: review reminder
@morehouse, remember to re-request review from reviewers when ready

@positiveblue: review reminder
@crypt-iq: review reminder

@positiveblue: review reminder
@crypt-iq: review reminder

@positiveblue: review reminder
@crypt-iq: review reminder

@positiveblue: review reminder
@crypt-iq: review reminder

@positiveblue: review reminder
@crypt-iq: review reminder

@crypt-iq: review reminder

@crypt-iq: review reminder

@crypt-iq: review reminder

@crypt-iq: review reminder

@crypt-iq: review reminder

@crypt-iq: review reminder

@crypt-iq: review reminder

@crypt-iq: review reminder

@crypt-iq: review reminder

@morehouse, remember to re-request review from reviewers when ready

Needs a rebase.

Rebased and addressed nits.

Merge queue would've worked, but a new perm added was too heavy handed, have tweaked that now.