pip/virtualenv for dependencies

If you use pip/virtualenv for dependencies (and if not you should ;), generate the associated requirements.txt file from @davidbgk

This is done.


Refactoring Cap api.

Codecov Report
Base: 0.00% // Head: 0.00% // No change to project coverage :thumbsup:

Coverage data is based on head (d719cd2) compared to base (6514034).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##              main     #18   +/-   ##
=======================================
  Coverage     0.00%   0.00%
  Complexity      68      68
=======================================
  Files            9       9
  Lines          165     165
=======================================
  Misses         165     165

Flag
Coverage Δ

unit-test
0.00% <0.00%> (ø)

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

Impacted Files
Coverage Δ

src/Api/Cap.php
0.00% <0.00%> (ø)

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Add more AppKit properties and bindings

This PR adds new properties and subjects to the following classes:

NSPopUpButton
NSTextField
NSView

I have been using these in my own code without any trouble, so upstream it goes!

Current coverage is 68.64% (diff: 100%)

Merging #356 into master will not change coverage

@@             master       #356   diff @@
==========================================
  Files            49         49
  Lines          2261       2261
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1552       1552
  Misses          709        709
  Partials          0          0

Powered by Codecov. Last update bdfa245...e9cd6a8

@srdanrasic I'm not quite sure where to draw the line with what should be included in Bond with regards to AppKit support. I have a bunch of helpers that wrap common things, but they're not all Bonds. Some are Subjects wrapping delegates and the like.
Do you think it's worthwhile including these, or would you prefer to leave that to consumers to implement?

Hmm, I'm not sure I can correctly decide :)
We don't have to limit things to Bonds, but we should include only what's applicable generally. It's also important that the features we include don't restrict normal usage. For example, in earlier versions of Bond, when using table/collection view bindings, it was very hard to implement some delegate methods.
If you have something you think would be a good fit, you can do another PR. I'll merge this :)


Madhu : Agile Development, 4 weeks

my fork of module repository

Learning Objectives

0. Developing HTML & CSS
Practice with the skills, tools, and workflows you will need to efficiently
develop websites written with HTML & CSS.

🥚 VSCode: you can ...

[x] use the LiveServer extension to launch an HTML page in the browser
[x] use autocomplete to begin a new HTML document, create new tags, and much
more
[x] use the HTML CSS Support and IntelliSense fo CSS class names
extensions to make writing HTML & CSS more efficient

🥚 Formatting HTML & CSS: You can ...

[x] use VSCode configurations to format your code on save
[x] use npm run format to format all the code in your repository

[x] 🥚 Linting CSS: You can use the npm run lint:css script to find
mistakes in your CSS, and you can fix the mistakes.
[x] 🥚 Validating HTML: You can use the npm run validate:html script to
find mistakes in your CSS, and you can fix the mistakes.
🥚 Browser Developer Tools: You can ...

[ ] inspect the source code of a web page using the Sources tab
[ ] find any part of the web page in the Elements tab of your Dev Tools DOM
inspector
[x] find the styles for any element in the Elements tab
[ ] make temporary changes in a web page from the Elements tab to see how
they will look

1. Following Plans
Practice working together in a group to build small websites in incremental
steps according to a plan. You will be given final code, a detailed plan to
rebuild it, and will need to work as a group following the processes in
Planning and Collaborating.

[x] 🥚 Project Definition and Scope: As a group, you can agree on what you
are trying to build, and can clearly describe the project using a README
and a repository description.
🥚 Project Constraints: As a group you can define project constraints by
discussing your strengths, weaknesses and context. You can set these types of
constraints:

[x] External: constraints that come from outside your group
[x] Internal, Involuntary: constraints that come from within your group,
but your group did not decide to have.
[ ] Internal, Voluntary: constraints your group decides on to improve the
quality of your development process and final software.

[x] 🥚 Communication Plans: You can work with your group mates to agree on
a communication plan to follow during development.
[x] 🥚 Communicating Challenges: During development you can discuss with
your group when ...

you are blocked and need help the agreed channels of communication.
your schedule or availability changes
you are having trouble getting along with each other

[x] 🥚 Using a Backlog: You can develop from a backlog of features
organized by priority:

must-have
should-have
could-have

[x] 🥚 Follow a Development Strategies: You can follow a development
strategy to understand the code required for must-have user stories.
[x] 🥚 Create Issues From a Dev Strategy: You can create issues for user
stories in your project based on the development strategy.
🥚 Retrospective: Your group can complete a retrospective to ...

[x] assess how well you worked as a group
[x] find ways to improve in the next project
[x] compare your plan to the reality of developing your website

🐣 Claiming and Completing Issues: You can claim issues from the TODO
column of a project board and ...

[x] track your progress with the project board
[x] develop your code locally on a separate branch
[x] send a PR that passes CI checks and meets the requirements

[x] 🐣 Code Review: You can both review a group mate's PR, and
productively participate in a review of your own code.
[x] 🐣 Match a Design & Acceptance Criteria: When developing your tasks,
you can write code that matches the project's Wireframe and meets your
issue's Acceptance Criteria.

2. Writing Plans
Practicing writing your own plans as a group. You will be given only the final
code for HTML/CSS web pages, your group will need write a detailed plan for
rebuilding the website in small steps.

[x] 🥚 Write User Personas: As a group you can describing your site's
users with User Personas, and you can use the personas to plan your
website from the user's perspective.
[x] 🥚 Write User Stories: Given a working web page, you can describe it
with user stories and acceptance criteria for each user story.
[ ] 🐣 Write a Backlog: After listing all the user stories for a web page,
you can organize them into a Backlog by priority: must-have,
should-have and could-have
[ ] 🐣 Create a Prioritized Design: Using your backlog and the original
site as a guide, you can create a Wireframe of the site your group will
build. You can use different colors and comments to indicate a priority
for each component in the Wireframe.
[x] 🐣 Write a Development Strategies: You can translate your Wireframe
and Backlog into a Development Strategy for the must-have user stories.

3. Adapting Plans
Even the best plans are not perfect, it's not possible to know everything ahead
of time! You may be able to plan everything ahead of time when the web pages you
build are very small and you have the code ahead of time, but it's a whole
different thing when you need to build a larger web page over a longer period of
time.
In this chapter you will practice full Agile Development by developing a larger,
open-ended web pages and adapting your plans as you go. Your team will need to
make an initial plan, but the plan will change! Practice having regular meetings
with your group to review the website's progress, review your plan, and make any
changes in the plan that are necessary to keep the project on schedule.

[x] 🐣 Adjusting the Backlog: As a group you can agree to changes in the
backlog when necessary.
[x] 🐣 Adjusting the Design: As a group you can agree on changes to the
design during the development process when it becomes clear your old
design needs updating.
[x] 🐣 Updating the Project Board: You can manage the project board by
adding, removing or updating issues when necessary. This includes changing
labels, milestones, or assignees when necessary.

Week 1
I Need Help With:

CSS : styling
HTML : Format
I know its vast topic to discuss, self study is very much required. However it will be very helpful if basics are explained.

What went well?

Coding
Team work, coordination in team was very well managed.
Regular communication
all the teams were helping each other. Special thanks to Daniel,Samir, Tamer,Bernardo and Rick.

What went less well?
Styling in CSS
Lessons Learned

How to refer coding from existing websites, Html coding.
Trial and error in creating/editing/designing webpage.

Sunday Prep Work
Yet to start

@MadhuMNG there are great HTML and CSS resources that you can use for self study that we recommend (for example by Traversy, NetNinja, freecodecamp, scrimba). The best way is always to practice though, as CSS can be tricky, especially positioning elements.

Sure Daniel. Thank You.

#Week 2
Need help in:
It will be more easy if we find recommended videos for CSS animation, grids css alignments.
What went well?

For the first time created repo for team.
I am quite familiar with CSS and html.
creating issues and project board.
working in a team is quite challenging in understanding everyone's approach.
bridging between html and css.
Very useful link which helped me a lot.(https://www.w3schools.com/html/default.asp)

What went less well?

CSS styling/order
html syntax errors
HTML Block and Inline Elements is quite confusing.

Lessons Learned

working in a team which created a real working environment.
Html and css : practicing more html and css

It will be more easy if we find recommended videos for CSS animation, grids css alignments.

@MadhuMNG , maybe this will help?

do you have any specific questions about HTML syntax errors?
here is an article about inline elements, hope it helps:
https://developer.mozilla.org/en-US/docs/Web/HTML/Inline_elements

Thanks @colevandersWands and @danielhalasz.
I will go through the above links.
Syntax error - Currently I am quite familiar with how to fix syntax error.

@MadhuMNG how is this week so far?


Proposal: Token Nested Structuring

Proposal
Categorize the tokens across relevant theme files.
Why?
Currently, all the tokens stay in the same hierarchy at the root level of the Token object. (both named and unnamed). The issue that arises with this approach is that all the theme colour objects stay at the same level as the fontSizes = {} object. Which causes an issue when we need to override certain components inside our existing theme/design system.
For example, in cases such: tailwind-next, the existing tailwind theme colours of a project are overridden as:
  theme: {
    extend: {
      colors: mirrorful.Tokens,
    },
  },

This approach works fine but the fontSizes = {} object will also be included in the colors object of tailwind, which won't break anything but should not be there. As the project size increases more and more components will be added and I think the categorization process should be done from the very start instead of people having to run migrations at a later stage.
Note: For now, I just added a basic .filter() function to mirrorful.Tokens which excludes the fontSizes object, but I think it's a very hacky   approach and would keep getting worse if/when more components are added to the theme files.
Current Structure
exports.Tokens = {
  'acme-inc-purple': {
    50: '#fefeff',
    100: '#ebe4fb',
    200: '#d8c9f7',
    300: '#c5aff2',
    400: '#b294ee',
    500: '#9f7aea',
    600: '#8c60e6',
    700: '#7945e2',
    800: '#662bdd',
    900: '#5820ca',
    base: '#9F7AEA',
  },
  'acme-inc-error-red': {
    50: '#fffefe',
    100: '#fbe4e9',
    200: '#f7c9d3',
    300: '#f2afbd',
    400: '#ee94a8',
    500: '#ea7a92',
    600: '#e6607c',
    700: '#e24567',
    800: '#dd2b51',
    900: '#ca2044',
    base: '#ea7a92',
  },
...
  fontSizes: {
    sm: '1rem',
    md: '1.2rem',
    lg: '1.4rem',
  },
}

Proposed Structure
exports.Tokens = {
  themeColors: {
    'acme-inc-purple': {
      50: '#fefeff',
      100: '#ebe4fb',
      200: '#d8c9f7',
      300: '#c5aff2',
      400: '#b294ee',
      500: '#9f7aea',
      600: '#8c60e6',
      700: '#7945e2',
      800: '#662bdd',
      900: '#5820ca',
      base: '#9F7AEA',
    },
    'acme-inc-error-red': {
      50: '#fffefe',
      100: '#fbe4e9',
      200: '#f7c9d3',
      300: '#f2afbd',
      400: '#ee94a8',
      500: '#ea7a92',
      600: '#e6607c',
      700: '#e24567',
      800: '#dd2b51',
      900: '#ca2044',
      base: '#ea7a92',
    },
  },
  fontSizes: {
    sm: '1rem',
    md: '1.2rem',
    lg: '1.4rem',
  },
  xyzCategory: {
    key1: 'value1',
    key2: 'value2',
  },
  pqrCategory: {
    key3: 'value3',
    key4: 'value4',
  },
}

Hey @arneesh, we just released this as part of 4.0.0. Running yarn add mirrorful@latest or npm run mirrorful@latest will get you these changes!
If you have any more thoughts or feedback, let me know! You can find us in our Slack community here!

This looks great. Thanks, @Teddarific


Feature/25 prepare frontend auth

Describe your changes
Issue ticket number and link

https://github.com/MocStepan/STIN-semestral-project/issues/27

Checklist before requesting a review

[x] I have performed a self-review of my code
[x] If it is a core feature, I have added thorough tests.

Codecov Report
Attention: Patch coverage is 84.16667% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 82.53%. Comparing base (db6b4c8) to head (b677250).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff              @@
##               main      #40      +/-   ##
============================================
+ Coverage     73.09%   82.53%   +9.44%
+ Complexity       87       72      -15
============================================
  Files            29       34       +5
  Lines           275      355      +80
  Branches         11       10       -1
============================================
+ Hits            201      293      +92
+ Misses           71       60      -11
+ Partials          3        2       -1

Flag
Coverage Δ

frontend
78.06% <84.16%> (+69.90%)
:arrow_up:

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

Files
Coverage Δ

...ackend/auth/base/config/JwtAuthenticationFilter.kt
100.00% <ø> (ø)

.../backend/auth/base/config/SecurityConfiguration.kt
68.57% <ø> (-1.70%)
:arrow_down:

...ul/backend/auth/base/service/TokenFilterService.kt
100.00% <ø> (+4.34%)
:arrow_up:

.../com/tul/backend/auth/base/service/TokenService.kt
95.00% <ø> (-1.43%)
:arrow_down:

.../tul/backend/auth/controller/AuthUserController.kt
100.00% <ø> (ø)

...ain/kotlin/com/tul/backend/auth/dto/RegisterDTO.kt
100.00% <ø> (ø)

...in/com/tul/backend/auth/service/AuthUserService.kt
100.00% <ø> (ø)

.../tul/backend/auth/service/AuthenticationHandler.kt
100.00% <ø> (ø)

frontend/src/app/auth/login/login.component.ts
100.00% <100.00%> (ø)

...ontend/src/app/auth/register/register.component.ts
100.00% <100.00%> (ø)

... and 8 more

... and 1 file with indirect coverage changes


Remove Cassette

As far as I seen in the code, Cassette's contextual dispatch is only needed for overriding Enzyme.autodiff. But Cassette has a very high overhead that kills performance. I have started to see very high compile times in some local examples.
This PR tries to remove Cassette from the equation by defining a new autodiff function (Reactant.autodiff). This might not be the best solution, but it's an idea I want to experiment with.

Er, I would like to keep the behavior of being able to override the enzyme
autodiff in these cases.
I think the correct answer here is perhaps to leverage the abstract
interpreter stuff but I’m more quite sure how to use it here
On Sun, Jul 7, 2024 at 5:15 PM Sergio Sánchez Ramírez <
@.***> wrote:

@mofeing https://github.com/mofeing requested your review on: #37
https://github.com/EnzymeAD/Reactant.jl/pull/37 Remove Cassette.
—
Reply to this email directly, view it on GitHub
https://github.com/EnzymeAD/Reactant.jl/pull/37#event-13414987641, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJTUXCLXBKYJYJB2J7L4KLZLGVXVAVCNFSM6AAAAABKPVSJ5KVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGQYTIOJYG43DIMI
.
You are receiving this because your review was requested.Message ID:
@.***>

@jumerckx is working in something similar for upstream MLIR.jl https://github.com/JuliaLabs/MLIR.jl/pull/77
Maybe we can implement some simplified version of this.

@mofeing I think emulating this is the right solution https://github.com/JuliaGPU/GPUCompiler.jl/pull/582/files
cc @vchuravy


Could share typescript definition files or coffeescript files?

For a easy way to use typescript or coffeescript, could you share the typescript definition files or the coffeescript files? Thank's a lot.

For CoffeeScript, it simply runs even in CoffeeScript using require('jsforce').
For typescript, The type definition file (.d.ts) file is needed, but not available currently.
The DefinitelyTyped project is useful to share the own-developed type definitions for third-party JS libraries, and I might contribute to it in future, but not having enough time to cope with it currently.

Just a quick update on this issue, I am working on transcribing the API into a jsforce.d.ts file. Hopefully it won't take too long, but the API is a beast

@iDev0urer Do you have anything to share? I'll need to create typings for the API I use and it would be great to share the effort rather than work independently.

I have added it as a gist here. I didn't want to upload it to DT yet because it is very much not finished yet


[fastlane] update plugins too

On Release update plugins too, by generating the new plugin list and submitting it in the same PR as the actions.md
follow up on - https://github.com/fastlane/docs/pull/190 and https://github.com/fastlane/fastlane/pull/7098 and https://github.com/fastlane/fastlane/pull/7093

We don't have a list of available plugins on docs.fastlane.tools any more: https://docs.fastlane.tools/plugins/available-plugins/
Does that look ok to you?

there is still a link to an outdated plugin list https://docs.fastlane.tools/actions/#plugins is it supposed to be complete removed and plugin_search is the new way? - if so - lets close this PR

Yeah let's close this and focus on https://docs.fastlane.tools/actions/#plugins

Where do we update https://docs.fastlane.tools/actions/#plugins again?

Oh, when generating the actions.md, right?

yeah i think that the plugin update is not working now, this PR should do it.


ansible-lint: 6.2.1 -> 6.2.2

Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 175530 run on x86_64-darwin 1

2 packages built:

ansible-lint (python39Packages.ansible-lint)
python310Packages.ansible-lint


Add my first file.

I have created a new branch, created a file, and made a commit.

Congratulations, you've completed this course and joined the world of developers!


Aggregating footer?

Is there a way to create a floating footer that will use the aggregation functions for the columns?
I know I can create a custom floating footer row, like here  - but was interested to know if there is a thing made just for it, to use sums, averages, etc, and not to calculate myself for every table needing this.

not possible, you will have to do the aggregations yourself. it's not an often asked for feature so low on my priority, especially given it's not necessary, just a nice to have given you can do the aggregations yourself.


[Attachments] It's not allowed to upload ~10 files at the same time, incorrect error is shown with maximum allowed attachments = 0 or<PHONE_NUMBER>740991

Create a chat based on any model which works with attachments
In the message box click on Clip icon -> select Upload from device
Select ~10 files -> files appears on Upload from device pop-up
Click on Upload and attach files button -> error appears -> bug

Note: that the number for Maximum allowed attachments differs and depends on where Upload from device was opened. Another example is to click on Upload from device from Manage attachments/Attach files pop-up

Expected result:

Verified on staging server successfully

The issue is reproduced again on staging environment. @IlyaBondar Please check it

Verified on UAT server successfully


Electrical Installation Pliers

Knipex 13 96 200 T Pliers for Electrical Installation

Features
Extra Features

[x] Insulated
[x] Tether

Description
6 functions in one pair of pliers
Multifunctional pliers for the electrical installation; to grip flat and round material, for bending, deburring, cutting cable, stripping and crimping wire end sleeves
Smooth surfaces near the tips grip single cores without damaging them; serrated gripping surfaces and pipe grip for gripping flat and round material
Clear-cut outside edge on the jaw for working on flush-mounted junction boxes and deburring feed-through holes
Stripping holes for conductors of 0.75 - 1.5 mm² and 2.5 mm²
Crimp die for wire end sleeves 0.5 - 2.5 mm²
Cable shears with (induction-hardened) precision cutting edges for copper and aluminium cables up to 5 x 2.5 mm² / dia. 15 mm
Slim dimensions for easy access
Bolted joint: precise, zero backlash operation of pliers
High-grade special tool steel, forged, multi stage oil-hardened
Model:
Pliers with integrated, insulated tether attachment point for a tool tether

Offiicial page
Buy at Chads Toolbox for $86.60

Milwaukee 5 IN 1 WIRE STRIPPING PLIERS

Wire stripper

0.75 mm²
1.0 mm²
1.5 mm²
2.5 mm²
4.0 mm²

Wire cutter
With curved laser hardened cutting edges.
Capacity:

Hard wire: 2.5 mm
Medium wire: 2.5 mm
Max.: 6.0 mm

Plier
Suitable for gripping and bending cables
Deburrer
Deburring ribs on head for 12 - 25 mm pipe
Loop maker
Built in loop maker function for wire.
Lock
One-handed swing lock: Easy one-handed use and remains locked while in pouch. Spring loaded for easy opening.
Material

Forged alloy steel - increases tool life by reducing corrosion.
Rust protection - for maximum tool strength and durability

Size
Total length: 190 mm
Links

Official page (EU)
Buy on Amazon for  $39.90


Pytorch 2.4.1 with flash-attn 2.5.8

For my specific use-case, I need to get flash-attn 2.5.8 working with Pytorch 2.4.1. There is no existing wheel in the release list of flash-attn 2.5.8 that is compiled with Pytorch 2.4. I tried to build from source using these commands below:
git clone https://github.com/Dao-AILab/flash-attention.git
MAX_JOBS=16 CUDA_HOME="/opt/conda" python setup.py build
MAX_JOBS=16 CUDA_HOME="/opt/conda" python setup.py install

But I am finding that it gives me this error:
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/opt/conda/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 2105, in _run_ninja_build
    subprocess.run(
  File "/opt/conda/lib/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '16']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/flash-attention/setup.py", line 311, in <module>
    setup(
  File "/opt/conda/lib/python3.11/site-packages/setuptools/__init__.py", line 117, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 184, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
    dist.run_commands()
  File "/opt/conda/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
    self.run_command(cmd)
  File "/opt/conda/lib/python3.11/site-packages/setuptools/dist.py", line 950, in run_command
    super().run_command(command)
  File "/opt/conda/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
    cmd_obj.run()
  File "/opt/conda/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/opt/conda/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
    self.distribution.run_command(command)
  File "/opt/conda/lib/python3.11/site-packages/setuptools/dist.py", line 950, in run_command
    super().run_command(command)
  File "/opt/conda/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
    cmd_obj.run()
  File "/opt/conda/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 98, in run
    _build_ext.run(self)
  File "/opt/conda/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
    self.build_extensions()
  File "/opt/conda/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 866, in build_extensions
    build_ext.build_extensions(self)
  File "/opt/conda/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions
    self._build_extensions_serial()
  File "/opt/conda/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial
    self.build_extension(ext)
  File "/opt/conda/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 263, in build_extension
    _build_ext.build_extension(self, ext)
  File "/opt/conda/lib/python3.11/site-packages/Cython/Distutils/build_ext.py", line 135, in build_extension
    super(build_ext, self).build_extension(ext)
  File "/opt/conda/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 557, in build_extension
    objects = self.compiler.compile(
              ^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 679, in unix_wrap_ninja_compile
    _write_ninja_file_and_compile_objects(
  File "/opt/conda/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1785, in _write_ninja_file_and_compile_objects
    _run_ninja_build(
  File "/opt/conda/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 2121, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension

Is there a way to get this build process to work? Or is there a way for me to build my own wheel in my environment?

Try reducing MAX_JOBS

Thanks, that worked! Resolving


Test Explorer - Debug Test no longer works

Using latest from master, running in exp hive
Create new python application
Add new item, unit test
Put a breakpoint on assert
Open test explorer, select test and debug test
Result:
[7/11/2017 1:52:51 PM Error] Failed to execute tests because the process has already exited.
[7/11/2017 1:52:53 PM Error] Error occurred connecting to debuggee.
[7/11/2017 1:52:53 PM Error] System.Runtime.InteropServices.COMException (0x80004005): Operation not supported. Unknown error: 0x80004005.
   at EnvDTE90.Debugger3.GetProcesses(Transport pTransport, String TransportQualifier)
   at Microsoft.PythonTools.Infrastructure.VisualStudioProxy.AttachToProcess(ProcessOutput processOutput, Guid portSupplier, String transportQualifierUri) in C:\Projects\GitHub\huguesv\PTVS\Python\Product\VSCommon\Infrastructure\VisualStudioApp.cs:line 150
   at Microsoft.PythonTools.TestAdapter.TestExecutor.TestRunner.Run() in C:\Projects\GitHub\huguesv\PTVS\Python\Product\TestAdapter.Executor\TestExecutor.cs:line 550
[7/11/2017 1:52:54 PM Informational] ========== Run test finished: 0 run (0:00:10.5298388) ==========

I went back to previous commits, and this broke in 221a674 (Always load Python debugger code as ptvsd package in all scenarios)

Don't know why this is closed. I'm currently facing that issue again after i updated visual studio two days ago.
May there be some persistant data which looses it's validy after a vs update?


Jpwilli/remove identity service path

Removes the last reference to "IdentityService" from shipping code (although it still exists in tests). Also fixes a small issue with logging where users could give null TraceSource objects and cause problems.

Can you patch and test VS before comitting this so we know its good before publishing another build.


Support multiple schemas for diffrent Template literal tags

I'm currently working on a project using gatsby js. There we have a setup, which runs some graphql queries during the static site generation (build time) via gatsby, and some queries are run during runtime (in the browser of the user) via apollo. The runtime queries are run on a different schema than the build time queries.
I have set up my .graphqlconfig with two projects, one for the gatsby graphql endpoint, one for the runtime endpoint:
{
  "name": "Example",
  "projects": {
    "Gatsby": {
      "name": "Gatsby",
      "schemaPath": "schema-gatsby.graphql",
      "include": [
        ",./src/**/*.{ts,tsx}",
        ",./.cache/fragments/*.js",
        ",./node_modules/gatsby-transformer-sharp/fragments.js",
        ",./node_modules/gatsby-*/**/*.js"
      ],
      "extensions": {
        "endpoints": {
          "Gatsby": {
            "url": "http://localhost:8000/___graphql",
            "headers": {
              "user-agent": "JS GraphQL"
            },
            "introspect": true
          }
        }
      }
    },
    "Runtime": {
      "name": "Runtime",
      "schemaPath": "schema-runtime-api.graphql",
      "include": [
        ",./src/**/*.{ts,tsx}"
      ],
      "extensions": {
        "endpoints": {
          "Runtime": {
            "url": "https://example.com/graphql",
            "headers": {
              "user-agent": "JS GraphQL"
            },
            "introspect": true
          }
        }
      }
    }
  }
}

In my code, both runtime and build time queries can occur in the same file. Runtime queries use the gql template literal tag from apollo-client, the build time queries use the graphql tag from gatsby.
At the moment, there is no way to configure which schema should be used based on the template literal tag.

Hi Kim.
Thanks for using the plugin.
Adding configuration support for this specific use case would complicate project setup, which is why I'm reluctant to go down that path.
I'd recommend you use some kind of file name convention to separate out the two types of GraphQL components you have, and associate them with their respective separate schemas.
As an example, you could name all your Apollo components something like **/*.runtime.tsx and set a corresponding ['**/*.runtime.tsx'] glob as excludes in your Gatsby project config above.
I realize you would get more component files, but you'd get full tooling support from the plugin, and could simply import your runtime components from the Gatsby components.
Looking at your config file you may have one or more configuration errors:

include should be includes
You're using ,./ in your globs. Don't know what the comma is doing in there, and config files only apply to their current directory and sub-directories in case you meant to write ../ which wouldn't work.

Hope this info is helpful.
Best regards,
Jim


feat: add cargo-vckpg for vcpkg vendor and deps vendor

Cool!

During cargo publish it says:
error: failed to verify package tarball

Caused by:
  Source directory was modified by build.rs during cargo publish. Build scripts should not modify anything outside of OUT_DIR.
  Added: C:\repo\harfbuzz-bindings\target\package\harfbuzz-bindings-0.2.0\Cargo.lock

Any idea why the change would cause this?

@bennyboer It's this line somehow cause the error, but piece of code does not touch the src dir, weird

I got it published either way using the no-verify flag 😄


Using multiple CPUs with VirtualBox causes etcd thrashing

I've been following the official documentation on running a CoreOS Cluster with Vagrant and Virtualbox.  If I use the default settings, things work fine, but I've discovered that when I make the following change:
# $vb_cpus = 1
$vb_cpus = 4

I start to see the same etcd thrashing previously reported (e.g. https://github.com/coreos/etcd/issues/868).  Interestingly, the pace of leader changes seems to approximately double as I double the value of $vb_cpus.  So, I get no thrashing at all with $vb_cpus=1, some with $vb_cpus=2, twice as much with $vb_cpus=4 and four times as much with $vb_cpus=8.
Dec 24 17:21:28 core-01 etcd[964]: [etcd] Dec 24 17:21:28.802 INFO      | 5757c02eb212428599af0215ec124cf7: state changed from 'leader' to 'follower'.
Dec 24 17:21:28 core-01 etcd[964]: [etcd] Dec 24 17:21:28.802 INFO      | 5757c02eb212428599af0215ec124cf7: term #1 started.
Dec 24 17:21:28 core-01 etcd[964]: [etcd] Dec 24 17:21:28.802 INFO      | 5757c02eb212428599af0215ec124cf7: leader changed from '5757c02eb212428599af0215ec124cf7' to ''.
Dec 24 17:21:32 core-01 etcd[964]: [etcd] Dec 24 17:21:32.051 INFO      | 5757c02eb212428599af0215ec124cf7: warning: heartbeat near election timeout: 292.050288ms
Dec 24 17:21:38 core-01 etcd[964]: [etcd] Dec 24 17:21:38.006 INFO      | 5757c02eb212428599af0215ec124cf7: warning: heartbeat near election timeout: 202.358606ms
Dec 24 17:21:39 core-01 etcd[964]: [etcd] Dec 24 17:21:39.513 INFO      | 5757c02eb212428599af0215ec124cf7: state changed from 'follower' to 'candidate'.
Dec 24 17:21:39 core-01 etcd[964]: [etcd] Dec 24 17:21:39.514 INFO      | 5757c02eb212428599af0215ec124cf7: leader changed from '7b44b21f81e04214a71dc1664a6cf4b3' to ''.
Dec 24 17:21:39 core-01 etcd[964]: [etcd] Dec 24 17:21:39.516 INFO      | 5757c02eb212428599af0215ec124cf7: state changed from 'candidate' to 'leader'.
Dec 24 17:21:39 core-01 etcd[964]: [etcd] Dec 24 17:21:39.516 INFO      | 5757c02eb212428599af0215ec124cf7: leader changed from '' to '5757c02eb212428599af0215ec124cf7'.
Dec 24 17:21:47 core-01 etcd[964]: [etcd] Dec 24 17:21:47.523 INFO      | 5757c02eb212428599af0215ec124cf7: state changed from 'leader' to 'follower'.
Dec 24 17:21:47 core-01 etcd[964]: [etcd] Dec 24 17:21:47.523 INFO      | 5757c02eb212428599af0215ec124cf7: term #3 started.
Dec 24 17:21:47 core-01 etcd[964]: [etcd] Dec 24 17:21:47.524 INFO      | 5757c02eb212428599af0215ec124cf7: leader changed from '5757c02eb212428599af0215ec124cf7' to ''.
Dec 24 17:21:48 core-01 etcd[964]: [etcd] Dec 24 17:21:48.220 INFO      | 5757c02eb212428599af0215ec124cf7: warning: heartbeat near election timeout: 194.779302ms
Dec 24 17:21:48 core-01 etcd[964]: [etcd] Dec 24 17:21:48.978 INFO      | 5757c02eb212428599af0215ec124cf7: warning: heartbeat near election timeout: 202.787912ms
Dec 24 17:21:52 core-01 etcd[964]: [etcd] Dec 24 17:21:52.922 INFO      | 5757c02eb212428599af0215ec124cf7: warning: heartbeat near election timeout: 193.765179ms

I want to use multiple CPUs because I was thinking about compiling my code within a container, but now I'm thinking I'm better off just sharing a volume with my VM and container and compiling on my host machine.
Is this a bug, or am I missing something?  Here are some other stats on my environment:
core@core-01 ~ $ cat /etc/os-release
NAME=CoreOS
ID=coreos
VERSION=494.5.0

uname -a
Darwin Joshs-MacBook-Pro.local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64

josh$ vagrant version
Installed Version: 1.7.1
Latest Version: 1.7.1

Running VirtualBox 4.3.20 r96996

@kelseyhightower Thx for looking into this.
I'm on a Macbook Retina Pro 15-inch, which has a quad-core Intel Core i7.  Since the i7 has hyper-threading, my understanding is this appears as 8 logical CPUs to the OS and indeed, VirtualBox allows me to select up to 8 CPUs (Screenshot, Multi-Core + Hyper-Threading).
The line $vb_cpus = 4 comes right from https://github.com/coreos/coreos-vagrant/blob/master/Vagrantfile, which in turn is referenced as part of the CoreOS docs Running CoreOS on Vagrant.
This has the effect of setting each of the VMs to 4 CPUs (as you wrote), but VirtualBox manages the parallel processing, so I don't think it would be correct to think of this as a "total" of 12 CPUs.
Inspired by your link, I found a Reddit thread that suggests that VirtualBox has to wait until all requested CPUs (e.g. all 4 CPUs) are available before it will run a process.  I haven't officially verified this, but there does seem to be some slowness and overhead associated with using multiple CPUs in VirtualBox.
Based on what I've read, my recommendations are to:

Clarify in the docs that multiple VirtualBox CPUs may be slower than a single one and/or explicitly mention when it would make sense to use more than 1 CPU
Consider increasing ectd's timeout before it elects a new leader to account for the multiple CPUs slowness.

Note that I have not researched the "multiple CPUs on Virtualbox" in depth.

@josh-padnick Thanks for the response. I like your suggestion for the doc improvements and I'll start working on those today.

Clarify in the docs that multiple VirtualBox CPUs may be slower than a single one and/or explicitly mention when it would make sense to use more than 1 CPU

This is not etcd related, so i don't think we need to document it.

Consider increasing ectd's timeout before it elects a new leader to account for the multiple CPUs slowness.

You can configure etcd timeout through '--heartbeat-interval' and '--election-timeout'.

Close this due to low activity. Feel free to reopen it if you have more thoughts.


Use bitflags in the rust-wasm bindings.

Use the bitflags crate to describe the flags in a flags type, in the
rust-wasm bindings.

👍 Nice!


PinPoint 2.3.3 AND wildfly-10.1.0.Final

Hi, team!
How i may monitoring wildfly-10.1.0.Final by PinPoint v.2.3.3 ?
I start agent with wildfly but no anything at Web PinPoint, only Agent. No an data or transaction.

Hi, did you solve this problem? I have a similar problem.
The server receives JVM data, but no application tracing.

Yes some.
Try edit config file for
off cassandra plagin and JBoss
All in config file


PyPI release

When #1 is fixed and config file can be located outside of the project tree, it'd be great to have this on PyPI. You can then use pip install --user, create config and use it without cloning the repo.

https://pypi.org/project/joft/


Created more account and accountclaim conditions

Each existing code path that leads to a failed account has a new, representative condition with a descriptive TYPE, REASON and MESSAGE.
Card -> https://issues.redhat.com/browse/OSD-5396

@ArielLima there is some lint and build errors, could you please check it? thanks

/retry

/retry

/lgtm
/approve


Update .gitignore for Visual Studio

This is a small PR that adds .vs/ to the .gitignore. It should help people working with Visual Studio.

SFMLBuildMaster: Build this please.

Thanks for the small enhancement 🙂


Feature: Collapsable script dividers in project view

With script dividers I mean those rows labelled with »Default commands« and »Customs scripts«.
It would be cool, if I could collapse the default commands. So I wouldn’t need to scroll all the way down to reach my customs scripts 😘

Ja, this was the initial implementation.
But I removed at some point, I think we would have to think of a way to make this configurable.
What about a settings section where you can set the order of the two sections and maybe some checkmarks to decide what "common" commands should be included?

Mhm. It kinda make sense to have the default commands on top.

What about a settings section where you can set the order of the two sections and maybe some checkmarks to decide what "common" commands should be included?

That’s a good idea 👌
But don’t you sing the collapsing thing is a good idea? Why not?

Ja I removed because I was not sure how to handle it completely. Should it be always collapsed. Should the collapsed state be stored?
For me it's not a big deal as I control it via keyboard only (arrow keys). :)

Ja I removed because I was not sure how to handle it completely. Should it be always collapsed. > Should the collapsed state be stored?

Got the point. In my point of few the state should be stored per project. Plus nothing should be collapsed by default (after adding a new project).

For me it's not a big deal as I control it via keyboard only (arrow keys). :)

Ah. Didn’t checked keyboard accessibility yet. Gonna give it a try.


EasyRTC Coturn buildpeerconnection failed call not completed

I have installed coturn and when I access http://serverip:3478 I get response
"TURN Server
use https connection for the admin session"
and when I access https://serverip:5349 I get response
"TURN Server
https admin connection
To use the HTTPS admin connection, you have to set the database table admin_user with the admin user accounts."
Is that ok ?
Also tell me what to put for realm="" and server-name="" if I have only IP of server. Can I keep IP for both variables ?
Following is my turnserver.conf

you can listen ports 3478 and 5349 instead of 80/443
listening-port=3478
tls-listening-port=5349
listening-ip=165.227..
relay-ip=165.227..
user=admin:admin101
#proc-user=turnserver
#proc-group=turnserver
lt-cred-mech
total-quota=100
stale-nonce
#no-stun
userdb=/usr/local/var/db/turndb
use real-valid certificate/privatekey files
cert=/usr/local/etc/turn_server_cert.pem
pkey=/usr/local/etc/turn_server_pkey.pem
#no-stdout-log
Now when I run command sudo turnserver ( on ubuntu 16 box) I get following console messages
0: log file opened: /var/log/turn_5897_2018-06-06.log
0:
RFC 3489/5389/5766/5780/6062/6156 STUN/TURN Server
Version Coturn-<IP_ADDRESS> 'dan Eider'
0:
Max number of open files/sockets allowed for this process: 1048576
0:
Due to the open files/sockets limitation,
max supported number of TURN Sessions possible is: 524000 (approximately)
0:
==== Show him the instruments, Practical Frost: ====
0: TLS supported
0: DTLS supported
0: DTLS 1.2 supported
0: TURN/STUN ALPN supported
0: Third-party authorization (oAuth) supported
0: GCM (AEAD) supported
0: OpenSSL compile-time version: OpenSSL 1.0.2g  1 Mar 2016 (0x1000207f)
0:
0: SQLite supported, default database location is /usr/local/var/db/turndb
0: Redis supported
0: PostgreSQL supported
0: MySQL supported
0: MongoDB is not supported
0:
0: Default Net Engine version: 3 (UDP thread per CPU core)
=====================================================
0: Config file found: /root/../etc/turnserver.conf
0: Listener address to use: 165.227..
0: Relay address to use: 165.227..
0: Config file found: /root/../etc/turnserver.conf
0: Domain name:
0: Default realm: happi.online
0: SSL23: Certificate file found: /usr/local/etc/turn_server_cert.pem
0: SSL23: Private key file found: /usr/local/etc/turn_server_pkey.pem
0: TLS1.0: Certificate file found: /usr/local/etc/turn_server_cert.pem
0: TLS1.0: Private key file found: /usr/local/etc/turn_server_pkey.pem
0: TLS1.1: Certificate file found: /usr/local/etc/turn_server_cert.pem
0: TLS1.1: Private key file found: /usr/local/etc/turn_server_pkey.pem
0: TLS1.2: Certificate file found: /usr/local/etc/turn_server_cert.pem
0: TLS1.2: Private key file found: /usr/local/etc/turn_server_pkey.pem
0: TLS cipher suite: DEFAULT
0: DTLS1.2: Certificate file found: /usr/local/etc/turn_server_cert.pem
0: DTLS1.2: Private key file found: /usr/local/etc/turn_server_pkey.pem
0: DTLS: Certificate file found: /usr/local/etc/turn_server_cert.pem
0: DTLS: Private key file found: /usr/local/etc/turn_server_pkey.pem
0: DTLS cipher suite: DEFAULT
0: pid file created: /var/run/turnserver.pid
0: IO method (main listener thread): epoll (with changelist)
0: WARNING: I cannot support STUN CHANGE_REQUEST functionality because only one IP address is provided
0: Wait for relay ports initialization...
0:   relay 165.227.. initialization...
0:   relay 165.227.. initialization done
0: Relay ports initialization done
0: IO method (general relay thread): epoll (with changelist)
0: turn server id=0 created
0: IO method (general relay thread): epoll (with changelist)
0: turn server id=1 created
0: Total General servers: 2
0: IO method (admin thread): epoll (with changelist)
0: IO method (auth thread): epoll (with changelist)
0: IO method (auth thread): epoll (with changelist)
0: SQLite DB connection success: /usr/local/var/db/turndb

I have following in my server.js ( easyRTC)
var myIceServers = [
{
url:"turn:165.227..:3478",
username:"admin",
credential:"admin101"
},
{
url:"turn:165.227..:3478?transport=tcp",
username:"admin",
credential:"admin101"
},
{"url":"turn:stun.antisip.com:3478"}
];
easyrtc.setOption("appIceServers", myIceServers);
easyrtc.on("getIceConfig", function(connectionObj, callback){
callback(null, myIceServers);
});
I am running https://165.227..:8443/demos/demo_ice_filter.html in Firefox and in Chrome but when I try to connect for video call I am always getting error
uncaught exception: buildPeerConnection failed, call not completed
What wrong I am doing ? please tell me if I need to set database for turnserver or need to change variables ?

Not the right place pls use http://easyrtc.com/forum/
Its most likely a turn of network issue.


syncthing: correct path for systemd units

The systemd files included with syncthing are "library" and not
"configuration" units, so they should be placed in lib/systemd
rather than etc/systemd, so that they can be customised by creating
unit files in etc/. This also corresponds to how syncthing's own
build script installs them.
Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

In the NixOS world we don't really have the same distinction but this is definitely "more correct", so thanks for the PR!

Well, I have syncthing installed into my profile and also want to generate some "overlay" configuration without overriding syncthing itself (while managing it through nix), so I think it is still useful :)


Unraid Wiki corrections

A minor change but on the Wiki --> Unraid page, in the "Get docker-compose" section, you have written:
To get docker-compose persist (after reboot) in Unraid create a file here
/boot/config/bash_axtra.cfg

but it should be /boot/config/bash_extra.cfg . 'extra' is spelled incorrectly
Also, on the FAQ page, in the "Can I use two (or more) final destination directories to hold my plots?" section, following the 'Value' line in the Unraid 'Add Configuration' screenshot, the /plots/RAID1:/plots/UA1 syntax is incorrect. This is the correct syntax for the docker run command, but not inside of Unraid.
It should be /plots/RAID1, /plots/UA1 instead. The addition of a : here creates a user share named :, which is an invalid character, and is very difficult to remove.
Furthermore, this syntax actually maps both /plots/RAID1 and /plots/UA1 directories to the same variable in container, plots_dir in this case. I believe that multiple destination paths should be added as individual container paths, as described in the "Can I use two (or more) temporary plotting directories?" section.

Thanks, I've improved both sections of the wiki.  Great suggestions!


Not working with freezeTableName

Getting error when using findByPk:
error: Error: MemberOrganization has not been defined
    at Sequelize.model (/Users/austin/Dev/RupieNetwork/node_modules/sequelize/lib/sequelize.js:371:13)
    at Object.keys.forEach (/Users/austin/Dev/RupieNetwork/node_modules/sequelize-transparent-cache/lib/cache/util.js:46:27)
    at Array.forEach (<anonymous>)
    at loadAssociations (/Users/austin/Dev/RupieNetwork/node_modules/sequelize-transparent-cache/lib/cache/util.js:35:35)
    at dataToInstance (/Users/austin/Dev/RupieNetwork/node_modules/sequelize-transparent-cache/lib/cache/util.js:12:15)
    at client.get.then.data (/Users/austin/Dev/RupieNetwork/node_modules/sequelize-transparent-cache/lib/cache/index.js:60:12)
    at propagateAslWrapper (/Users/austin/Dev/RupieNetwork/node_modules/async-listener/index.js:504:23)
    at /Users/austin/Dev/RupieNetwork/node_modules/async-listener/glue.js:188:31
    at /Users/austin/Dev/RupieNetwork/node_modules/async-listener/index.js:541:70
    at /Users/austin/Dev/RupieNetwork/node_modules/async-listener/glue.js:188:31

Traced it down to this block in utils line 38:
  if (model.associations[key].hasOwnProperty('options')) {
      const modelName = model.associations[key].options.name.singular
      associations.push({
        model: model.sequelize.model(modelName),
        as: key
      })
    }

My model looks like this:
const OrganizationxRolexProject = sequelizeConfig.define(
  'OrganizationxRolexProject',
  {
    RoleID: Sequelize.INTEGER
  }
);

and the association looks like this:
   Project.belongsToMany(models.Organization, {
    as: 'MemberOrganizations',
    through: models.OrganizationxRolexProject,
    foreignKey: 'ProjectID',
    otherKey: 'OrganizationID'
  });

TL;DR; model.associations[key].options.name.singular isn't the right value for the actual model, and only provides the as association alias, so model.sequelize.model(modelName) throws.

Hi @ignacioblit ! Can you take a look?

Hi @fraywing thanks for the issue and the observation.
It took me a while to figure out how to dynamically fetch associations at that point of the execution and model.associations[key].options.name.singular provided the most 'trusty' way of getting their names and making this work.
If you know of a better way of making this work I'm open to look into it.
Thanks!

Hmm, not entirely certain, I'll look into it. This does seem to limit this library pretty significantly, however. Since it doesn't play well with Aliases.

It would be great if you could do so, i still did not find a workaround.
Something to take into account is that this limitation only applies when trying to cache joined models. Something which was not possible a few months ago.

I see. So would it make sense to add a config to disable caching includes? We'd still get a performance boost if the main model was cached + the includes were fetched and merged into the cached object.

You're right. That would not be a bad idea

Cool, do you want me to try to tackle that? Not familiar with the code, should I just gate the include logic based on config prop?

@fraywing @ignacioblit as far as I understand, it's impossible to get real model name having association name using sequelize api. Can we save this meta info into cache as well as data itself?

@fraywing please, if you are up to it do it :D
Gating that part of the code based on a config property would solve this issue if you don't mind not loading any associations.
A broader approach would be what @DanielHreben proposes and save this meta info as part of the cache too, enabling this way to have the correct model names when needed.
What worries me about this last approach is how to accomplish this without adding overhead to the end programmer.
Ok... While writing this an idea came to my mind and I did some quick tests, I may have somewhat of a workaround:
model.associations[key].options.name has whitin itself the singular and plural properties (which have the names of the model)
model.associations[key].options.as seems to have the as (or alias name).
What about doing model.sequelize.isDefined(modelName) with these three names until one is found or returning false in the end?
Such approach would not throw, it would increase the cases when this would work and will also make the configuration for the associations unnecessary as it would work either way.
Cheers!

That's a really good idea, @ignacioblit. I like it.
Do you have a fork/branch where you have this working?

Hey @fraywing thank you!
Not really I just quickly tested all the ways I could access model names.
If you are up to it I'm confident you can pull this one off ;)
You already know where the code that needs to be changed is. While working on this you can use the tests in the codebase to check your changes are working as expected. You can also add an Alias test case to easily repeatedly test this while working.
Let me know if you need any help

shoot, might not be able to look into this due to schedule. I appreciate your advice, and I think this is a solid direction!

Yo friends, ended up fixing it afterall.
Here is my changed loadAssociations method:
  const associations = [];
  // eslint-disable-next-line
  if (Object.keys(model.associations).length && depth <= 3) {
    Object.entries(model.associations).forEach(([
      key, value
    ]) => {
      // go get the model name
      const target = sequelize.model(value.target.name);
      // we have to do this to get scopes to work
      target._injectScope({});
      // eslint-disable-next-line
        associations.push({
        model: target,
        as: value.associationAccessor,
        // recursive lookup
        include: loadAssociations(target, depth + 1)
      });
    });
  }

  return associations;
}```

I would PR, but I ended up heavily modifying the library to suite our project style needs.

Oh wow, that's mad! We should cover this with large amount of unit tests if we wanna include this code to project. I'm working on changing approach to testing to make it more easy to write unit tests and have separate suite of integration tests to make it possible.
Another option - we can allow users to pass loadAssociations() function as library option, so this code will not be a part of project, but problem will be solvable without forking library.

Hey guys I finally came to it because I found the need of the multi level loading using the depth approach @fraywing used.
This is the PR https://github.com/DanielHreben/sequelize-transparent-cache/pull/39

Closing this, thanks to all contributors and @p-fedyukovich in particular.
Please feel free to reopen.


Option to disable redeployment

Discussed in https://github.com/VountyNetwork/Wizard/discussions/5

Originally posted by NonSwag January 11, 2023
As the title says, this option should disable redeployment (for same artifact and version)
For example: I deploy my project but forget to change the version. This will override my existing Artifact and could really be fatal.
The option should be accessible via command and/or config.
For a better understanding, just take a look at this article: blog.sonatype.com

Nice it works, thank you very much.
But one small thing: could you throw a 403 error instead of ignoring the request?


Improvements

Initially, I only wanted to change the height of the field so that it looks harmonious with the rest of the fields.

But then I decided to improve the component a little.
Changes:

Added Affixes.
Removed calendar svg. (now this icon is displayed with a suffix)
Replaced div with x-filament::input.wrapper component.
Replaced input with x-filament::input component.

I don't quite understand why the test fails. I didn't add any new dependencies.
Maybe it's because of these imports: HasAffixActions, HasAffixes, HasExtraInputAttributes?

I've pulled from your repo, but the changes you mentioned don't take effect.

@untillnesss Thank you for your comment!
In your screenshot, I noticed that the field has a different icon (calendar). In my version, the icon was replaced.
I also tried to reproduce and install a clean version of Laravel, Filament, and the pac

kage from my repository, the result is in the screenshots:

@noxoua I apologize in advance, I forgot, it turns out I had previously published the View file from this page, no wonder the View still didn't change, after I deleted the View file that was published earlier, everything went well, thank you, good job!

Thank you for your great PR, Merged


[Feature]: A new release 0.6.2.

Description about the feature
IMO, it's worth to create a new release for https://github.com/xline-kv/Xline/pull/678, i think it's 0.6.2.
Would you like to release it?
@Phoenix500526 @bsbds
Code of Conduct

[X] I agree to follow this project's Code of Conduct

/help
(just test it)

/help

https://github.com/xline-kv/Xline/actions/runs/8461486131/job/23181346641
Error: User doesn't have enough access to the repo

The v0.7.0 is coming soon. We plan to release the new version in the next two weeks. Therefore, we don't have any plan to release v0.6.2.

/assignme

Make sense.


CA Transform: OBR-4.3 Modification

Backlog Task
For UCSD to be able to ingest ORUs, OBR-4-3 needs to be 'CDPHGSPEAP' instead of 'LN'.
There is a branch created at task/1243-ca_transform_obr4.3_modication
Completion Criteria

[ ] CA ORUs passed through ReportStream will be modified to always have 'CDPHGSPEAP' on OBR-4.3.

Tasks

[x] Make changes in etor/src/main/resources/transformation_definitions.json
[x] Edit test(s) so that the changes are included

Other Notes

Will ReportSteam balk at a non-standard code system in OBR-4.3?
Existing transform to be changed: https://github.com/CDCgov/trusted-intermediary/blob/b0ef2d68f5c13028de2dc114cda90330663f5c20/etor/src/main/resources/transformation_definitions.json#L185

New version may look something like:
"name": "UpdateUniversalServiceIdentifier", "args": { "checkValue": "54089-8", "codingSystem": "CDPHGSPEAP", }

This is a temp fix.

There is a branch created at task/1243-ca_transform_obr4.3_modication

Added an additional completion criteria and task to capture the desired behavior based on the discussion with @dbgolson on 9/6/2024.
During testing, we found that an input OBR of:
OBR|1|7241234515^FormNumber||54089-8^NB Screen Panel Patient AHIC^OBR43VALUE^OBR44VALUE^OBR45VALUE^OBR46VALUE|||202407111346|||||||||^HUBBARD^EUSTRATIA||||||20240711034913|||F
Produced a transformed OBR of:
OBR|1|189609160^HospOrdNumber||54089-8^NB Screen Panel Patient AHIC^CDPHGSPEAP^^OBR45VALUE^OBR46VALUE|||202407111346|||||||||^HUBBARD^EUSTRATIA||||||20240711034913|||F
Note that OBR-4.4 is now empty. Instead, the OBR should look like:
OBR|1|189609160^HospOrdNumber||54089-8^NB Screen Panel Patient AHIC^CDPHGSPEAP^OBR44VALUE^OBR45VALUE^OBR46VALUE|||202407111346|||||||||^HUBBARD^EUSTRATIA||||||20240711034913|||F
As this shows, OBR-4.4 through 4.6 should retain their original values (whether the original value is populated or empty).


Enable environment variable

jwt_key: $JWT_KEY

And also support a .env file, if any.

If an environment key is provided empty, a warning should be printed. :)


Massiv bug...

When you are online on 2 servers, connected with this plugin and with the same name, you can just duplicate, because it just saves when you leave. It should save when ever you change your inventory, so that if you drop something on CB1, it'll disappear in the inventory on CB2.

Actually, it's a pretty big bug, I'll fix it for the next update. Thank you for reporting the bug!

Nice 👍

Is it implemented?

Next update


Error when trying to process a refund of platform tip

Description
A user made two contributions by accident. One to the collective they intended to contribute to (atx-mental-health-fund) and one to Open Collective for $1,500 each. The contribution to Open Collective was made by mistake. We received a request from the collective admin to process a refund on the double up. But when attempting to do so, the following error message is received:
Edit by @Betree: Screenshot removed
It may be related to fees on top being in place. However, it seems odd that the amount of that contribution was exactly matching the one for ATX as this is not an option showing when selecting what percentage the user would like to donate. This is just my assumption and something to be investigated.
To Reproduce
Steps to reproduce the behavior:

Go to transactions listings in Open Collective
Look for the $1,500 donation from Ray and Gloria Ramirez & Briceno Family
Click on View Details and press on the refund button
See error

Expected behavior
I would expect for the refund to be processed succesfully
Screenshots
Edit by @Betree: Screenshot removed

This seems to be impacting fees on top, I'm able to reproduce on staging

So the root cause is this: for platform tips, we only have one stripe charge. The stripe charge ID is the same for the two transactions (the one to the collective and the one to opencollective).
When we try to refund the platform tip, it calls stripe with opencollective's host stripe account - but the charge is on the collective's host stripe account.
As a solution, we need to implement partial refunds to only refund the platform tip by providing an amount: https://stripe.com/docs/refunds#api.
A possible workaround for now would be to refund the original transaction and ask the person to contribute again, but another issue prevents that: platform tips are not refunded right now. So it would only refund the contribution, but not the platform tip.

@Betree I can do a partial refund manually on stripe

Edit: actually we do refund platform tip, we just don't mark the transaction as refunded on our side.
So here's the Todo on the dev side:

When refunding a platform tip, use the host account (not opencollectiveinc) and specify an amount corresponding to the tip. Add a special flag somewhere to indicate that the application_fee have already bee refunded.
When refunding a contribution that has platform tip:

Mark the tip transaction as refunded (may need to add a migration to fix existing transactions if any)
If the tip has already been refunded, set shouldRefundApplicationFee to false

@Betree is it possible I take on this issue.

Hi @alob-mtc, I would not recommend this issue for a first contribution, it's a complex one that requires a good amount of knowledge of our data model and Stripe's API. If you're looking for a first issue to complete, the best (and most motivating!) it to look in: https://github.com/opencollective/opencollective/issues?q=is%3Aopen+is%3Aissue+label%3A"good+first+issue"

Alright @Betree, thank you

Issue was again surfaced at, https://opencollective.freshdesk.com/a/tickets/203365 where we try to only refund the platform tip.


Drop indicator for dragged elements like images

It would be great to see a cursor for drag operations on where the dragged element would be inserted on release.
Example - not working: In https://tiptap.scrumpy.io/images drag the image to another place in the text.
Example- working: In https://prosemirror.net/examples/dino/ drag the dinos. A simple text cursor becomes visible.
Solution: Add dropCursor and gapCursor plugins like here: https://github.com/ProseMirror/prosemirror-example-setup/blob/master/src/index.js#L56

Perfect, thanks for the quick fix.
I wondered if it the plugin configuration could become more flexible. I solved the problem in my code like this:
 class AppEditor extends Editor {

    createPlugins() {
      return [
        ...super.createPlugins(),
        new dropCursor({
          color: '#FF6347',
          width: 2
        })
      ]
    }

  }

As you can see I add some configuration. I guess having config for each plugin would making things too complicated. But on the other hand I would now have to remove the dropCursor plugin from the list, before adding mine, to avoid conflicting behaviors. But looking at createState this doesn't seem to work without overriding createState as well.
So what do you think about moving the whole plugins section from createState to createPlugins? That would give simple full control.

I thought it could be styled via CSS (just had a quick look and saw it had a class in the prosemirror example). But there is no dedicated class for it in neither tiptap nor prosemirror.
I added an option dropCursor to the Editor instance config. See https://github.com/scrumpy/tiptap/pull/141#issuecomment-448506350

Awesome, thanks!

Hey @holtwick. I don't think I'll merge #141 for now but you can easily create to tiptap extension for it.
import { Extension, Plugin } from 'tiptap'
import { dropCursor } from 'prosemirror-dropcursor'

export default class DropCursorExtension extends Extension {

  get name() {
    return 'dropCursor'
  }

  get plugins() {
    return [
      dropCursor({
        width: 2,
        color: '#ccc',
      })
    ]
  }

}

I see. @philippkuehn, the solution you propose is even better and I'm happily looking forward to it. Thanks for all the effort implementing the PR @Chrissi2812


Auth APIs

verify_email => return "already verified" instead of error if the db column is verified already
forgot_password => check if the email is verified before sending the reset password link

Along with this, also check in forgot_password, if any user with that particular email address exists or not.


App Secret in public repo

Maybe you don't want this in the repository since it is public? Excellent blog post about OAuth though ... much appreciated.
https://github.com/ekonstantinidis/gitify/blob/master/src/js/components/login.js#L21

Thank you for the nice words @icotting ! Will have a further look about the client secret key in the next release!


update docs

Codecov Report

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

@@           Coverage Diff           @@
##           master     #167   +/-   ##
=======================================
  Coverage   90.35%   90.35%
=======================================
  Files          30       30
  Lines        2021     2021
=======================================
  Hits         1826     1826
  Misses        195      195

Continue to review full report at Codecov.

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


Replicate llm.c in tinygrad

https://github.com/karpathy/llm.c

Hmm, why is __len__ breaking onnx?

Hmm, why is __len__ breaking onnx?

when there's an operation like
In [4]: np.array(3) * Tensor.ones(3,3)
__len__ is called on the Tensor object.
On master when numpy array is a scalar, I think numpy sees the default object __len__ and just convert the scalar to an int to do the operation.
In [4]: np.array(3) * Tensor.ones(3,3)
Out[4]: <Tensor <LB METAL (3, 3) contig:False ShapeTracker(views=(View(shape=(3, 3), strides=(0, 0), offset=0, mask=None, contiguous=False),))> on METAL with grad None>

so the tests pass...
on this branch currently
In [4]: np.array(3) * Tensor.ones(3,3)
Out[4]: array([], shape=(3, 3, 0), dtype=float64)

Doing operations using numpy arrays with Tensor is not a good idea haha, my bad.
Also there is tolist and item now. Maybe moving onnx to use that instead of numpy is a good idea.
sorry for blocking. Can skip tests to get it merged. I'll fix them when I wake up tomorrow.

No worries, glad it exposed a bug. Want to do the simplest fix?

Interesting what torch does:
>>> torch.ones(3,3) * np.array(3)
tensor([[3., 3., 3.],
        [3., 3., 3.],
        [3., 3., 3.]])
>>> np.array(3) * torch.ones(3,3)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for *: 'numpy.ndarray' and 'Tensor'

Interesting what torch does:
>>> torch.ones(3,3) * np.array(3)
tensor([[3., 3., 3.],
        [3., 3., 3.],
        [3., 3., 3.]])
>>> np.array(3) * torch.ones(3,3)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for *: 'numpy.ndarray' and 'Tensor'

I think __add__ takes precedence over __radd__ so np.array(3) * torch.ones(3,3) goes down numpy codepath instead of Torch's
I looked a bit into why np.array first doesn't work
It appears that numpy does a low level PySequence_check that checks __getitem__ and __len__ of Tensor a bunch of times to see if it's type compatible. src (this is old but I tried debugging np * tinygrad_Tensor and it does call __len__ and __getitem__ a bunch of times)
for pytorch, PySequence_check returns False so the operation is not Type compatible. src (I tried the check in the issues for tinygrad's Tensor and it returned True)
I'm not 100% sure about this

(numpy * Tensor should assert? what does PyTorch do?)

I don't think the exception raised for pytorch is at the python level, so the debugger just says the * emits the TypeError.


Add a timeout of 2 seconds before closing a comment.

If there are two or more comments on the same line, the user can only reply to the last one. If he hovers the mouse over a commented section, the comment window will disappear as soon as the pointer leaves the commented section.
This pull request aims to fix that problem by adding a timeout. I don't know if this is the correct approach. If it's not the case, please give me some advice and I will be happy to update this pull request.

I think this one can be closed, I made same kind of time in #117


[question] Global triggers except whole group

Hi! I think this is not a bug but rather question. Is there any posibility to exclude whole group from global trigger?
Case:
Assume we got group:
group = FlowRouter.group({
  prefix: '/group',
  name: 'group
});

and some routes:
group.route({name: 'route1', {action: [some_action]})
group.route({name: 'route2', {action: [some_action]})

Now I have global trigger:
FlowRouter.triggers.enter([
  function(context) {
    return checkAuthorization(context);
  }
], {
  except: ['group'] // <- Here I want to exclude whole group
});

This is not possible.


Set-StrictMode 2: False positive for references to the Count property

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
Set-StrictMode -Version Latest
$TempFile = New-TemporaryFile
$TempPath = Join-Path $Env:Temp ('Folder_' + [Guid]::NewGuid())
$TempFolder = New-Item -ItemType Directory -Path $TempPath
Copy-Item -Path $TempFile -Destination $TempFolder
$TempFolder |Should -Exist
(Get-ChildItem $TempFolder).Count |Should -Be 1

Expected behavior
No Error
Actual behavior

PropertyNotFoundException: The property 'Count' cannot be found on this object. Verify that the property exists.

Error details
With Set-StrictMode -Off the (Get-ChildItem $TempFolder).Count  return 1 which shows that the property does exist
Environment data
Name                           Value
----                           -----
PSVersion                      7.2.0
PSEdition                      Core
GitCommitId                    7.2.0
OS                             Microsoft Windows 10.0.22000
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

@WG-Security
@iRon7  This is by design.  Strict mode emits errors when you reference a property that does not exist.  As a workaround you can coerce the result into an array type:
@(Get-ChildItem $TempFolder).Count

@PaulHigin,
Thanks for the answer.

As a workaround you can coerce the result into an array type:

What is the catch?
What is the difference behind the scene?
Apparently there is no direct relation with member enumeration as this doesn't give an error:
([PSCustomObject]@{ Count = 3 }).Count

So I guess it has something to do with an deferred execution.
I used to state that assigning a pipeline or using parenthesis will break it, now I have second thoughts whether this is always the case for using parenthesis. I suspect now that:
(Get-ChildItem $TempFolder) |ForEach-Object { ... }

is smart and actually still emitting each item one by one despite the parenthesis.
And only when it is forced to an array it will choke the pipeline:
@(Get-ChildItem $TempFolder) |ForEach-Object { ... }

Or???

There is no catch.  The above syntax simply wraps the object in an array so that the Count property is valid, when in strict mode.  PowerShell has rules about when to unwrap an array type.
https://docs.microsoft.com/en-us/powershell/scripting/learn/deep-dives/everything-about-arrays?view=powershell-7.2

Count is also a binder construct though, similar to the ForEach and Where methods. It's supposed to exist on any object including scalars. I'm not necessarily trying to assert that it shouldn't error, I just want to make sure that's taken into account.

Count not only exists on every object, it is also explicitly (and magically) present on no object at all.
$null.Count gives 0
The behavior of .Count, (0 for null, 1 on any scalar object, the number of elements in collections) is intended, extremely useful, and documented.
StrictMode is not aware of the very special semantics of .Count, so you basically can't use the two of them at the same time.

Thanks for the answers and information.
It took me a while to see this thru but Get-ChildItem $TempFolder could potentially return nothing (System.Management.Automation.Internal.AutomationNull) and () indeed doesn't have a Count property
I have closed the issue (Resolution-Answered).

But you can use Count on 'nothing' and it will return zero.
And for a single object you get one.
No 'real' property is needed .
That is the beauty of the feature.
This wasn't there for the first five years but was added in version 3.
Experience showed that you often had to use the work around suggested above by @PaulHigin where you create an array for single objects. (A little ugly and with non-zero perf cost)
In that version we also got the equally magic feature where where you can treat any object like an array, so this works and gives 1:
$a = 1
$a[0]

Interestingly, StrictMode seems to be aware of this 'synthetic indexing operator' and does not complain, but barfs on the the closely related 'synthetic Count property'
This issue is really a valid bug report and deserves to stay open.

Ok, I am not able to qualify this further. To prevent that I have reopen/close it repeatedly, I will leave it up to you (@SeeminglyScience, @iSazonov ?) to change it again.

I don't have permissions to reopen but the Count engine intrinsic property works fine on autonull in non-strict (returns 0) so I'm  inclined to say it should do the same in strict.  If it returned nothing I would say the error makes sense.

That makes sense to me. If strict mode is intended to by design restrict usage of otherwise ubiquitous properties provided by the engine, that should be well documented. Given that it's not, I would be inclined to assume it's more of an accident of implementation and we should see if it's feasible to rectify the issue.

Something similar happens with default array parameters
function Test {
    [CmdletBinding()] param(
        [String[]]$StringArray
    )
    $StringArray.Count
}
Set-StrictMode -Version Latest
Test

The property 'Count' cannot be found on this object. Verify that the property exists.

The workaround is to default it to an empty array: [String[]]$StringArray = @()

@WG-Security
We do not see a security issue here, as strict mode is not a security feature.  This is a language issue and we will update the label.

Note that this problematic behavior was first reported in

https://github.com/PowerShell/PowerShell/issues/2798

#15526 also discusses the inconsistency, but argues for the opposite resolution; to borrow from my comment there:
Engine-supplied members such as .Count, .Length, scalar [...], .psobject, ForEach(), .... now have an official name:  intrinsic members.
It makes much more sense to make them consistently available, irrespective of strict mode.
This is already true for most of them, but inexplicably not for .Count and .Length ([pscustomobject] being the only exception), despite their tremendous usefulness in unified handling of scalars and collections.
Simplest repro:
# .Count fails on all types without their own .Count property  *except* [pscustomobject]`
# Applies analogously to .Length
& { Set-StrictMode -Version 2; [pscustomobject] @{ foo=1 }.Count; 'foo'.Count; $null.Count }

@iRon7, your [string[]] $StringArray parameter example can be reduced to $null.Count, because unbound reference-type parameters (without default values) are $null.

I guess this issue should be marked as Issue-Bug.
Anyways I have closed this one, assuming that the linked issue #2798 stays open.


Fetch polyfill failing in Microsoft Edge

I'm seeing trouble with calls to fetch that have headers that are arrays of arrays (which looks like if follows the spec).
For example, this request:
fetch('https://example.com', {
  method: 'GET',
  headers: [
    ['accept', 'application/json'],
    ['content-type','application/json']
  ],
  mode: 'cors',
  credentials: 'same-origin'
});

is eventually reaching this code:
request.headers.forEach(function(value, name) {
  xhr.setRequestHeader(name, value);
});

Since headers is still an array of arrays, this is essentially:
xhr.setRequestHeader(0, ['accept', 'application/json']);
xhr.setRequestHeader(1, ['content-type','application/json']);

Calls to fetch are coming from stream-http, where it looks like https://github.com/jhiesey/stream-http/commit/11d14fc642f4878e9dc8e2329a62e7a8d18895fe might be a relevant change.  I've filed jhiesey/stream-http#71 in hopes of getting more info on that change.  But it looks to me like this might be an issue with the polyfill.

It looks like the polyfill for Headers should accept an array in the constructor.  I've opened github/fetch#485 proposing a fix.

Looks like it was merged but no release yet.  When there's a release we can update our dependency.

@triblondon - the<EMAIL_ADDRESS>release includes the fix.  I've opened #1104 to pull it in.  Let me know if this can be updated in another way.  Thanks.

This was landed in #1133


Command Y Not Working Anymore????

Kind of an urgent matter. If there is a fix to this, lmk. Has always worked for me before but now seems to be broken. Command Z still working fine.
*Also, for what it's worth, not just the shortcut, 'Redo' in menu not working either.

Thanks for reaching out!
We require the template to be filled out on all new issues and pull requests. We do this so that we can be certain we have all the information we need to address your submission efficiently. This allows the maintainers to spend more time fixing bugs, implementing enhancements, and reviewing and merging pull requests.
Thanks for understanding and meeting us half way :grinning:


Add queueing_status_code to Waiting Room object

Description
Waiting Room has a new configuration field queueing_status_code that determines what HTTP status code is returned to a user while in the queue.
See the API docs for more information.

Has your change been tested?
Yes, relevant unit tests have been updated to handle the addition of this field. Additionally, changes were ran against the pre-existing test suite to verify that no regressions were introduced.

Screenshots (if appropriate):
Types of changes
What sort of change does your code introduce/modify?

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[X] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[X] I have updated the documentation accordingly.
[X] I have added tests to cover my changes.
[X] All new and existing tests passed.
[X] This change is using publicly documented in cloudflare/api-schemas
and relies on stable APIs.

Codecov Report

Merging #1357 (958bd23) into master (b9ac804) will increase coverage by 0.16%.
Report is 102 commits behind head on master.
The diff coverage is 58.26%.

@@            Coverage Diff             @@
##           master    #1357      +/-   ##
==========================================
+ Coverage   48.33%   48.50%   +0.16%
==========================================
  Files         133      135       +2
  Lines       13023    13202     +179
==========================================
+ Hits         6295     6403     +108
- Misses       5201     5247      +46
- Partials     1527     1552      +25

Files Changed
Coverage Δ

access_application.go
72.72% <ø> (ø)

access_organization.go
53.84% <ø> (ø)

device_posture_rule.go
61.80% <ø> (ø)

load_balancing.go
59.40% <ø> (ø)

teams_accounts.go
53.84% <ø> (ø)

waiting_room.go
45.72% <ø> (ø)

regional_tiered_cache.go
43.75% <43.75%> (ø)

logpush.go
51.81% <46.15%> (-0.30%)
:arrow_down:

images.go
44.70% <47.82%> (-0.12%)
:arrow_down:

access_custom_page.go
48.27% <48.27%> (ø)

... and 7 more

thank you @emmanuelclflores 🥇


update content/zh/docs/concepts/configuration/manage-compute-resource…

…s-container.md
for release-1.18

/lgtm
/approve


Could not find 'docker'. The program may not be installed.

Description
The results of beautification are not what I expect.
Input Before Beautification
I am using atom for c++. As this is my first time on Atom (used xcode ).
Actual Output
See docker installation instructions at https://github.com/Glavin001/atom-beautify#beautifiers or go to https://www.docker.com/get-docker
You can configure Atom Beautify with the absolute path to 'docker' by setting 'Executable - Docker - Path' in the Atom Beautify package settings.
Your program is properly installed if running 'which docker' in your Terminal returns an absolute path to the executable.
Error: Could not find 'docker'. The program may not be installed.
at Function.Executable.commandNotFoundError (/Users/mukeshbasira/.atom/packages/atom-beautify/src/beautifiers/executable.coffee:277:10)
at Executable.commandNotFoundError (/Users/mukeshbasira/.atom/packages/atom-beautify/src/beautifiers/executable.coffee:269:18)
at /Users/mukeshbasira/.atom/packages/atom-beautify/src/beautifiers/executable.coffee:197:22
at tryCatcher (/Users/mukeshbasira/.atom/packages/atom-beautify/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/mukeshbasira/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/Users/mukeshbasira/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/Users/mukeshbasira/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/Users/mukeshbasira/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:689:18)
at Async._drainQueue (/Users/mukeshbasira/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/Users/mukeshbasira/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:143:10)
at Async.drainQueues (/Users/mukeshbasira/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:17:14)
at
at process._tickCallback (internal/process/next_tick.js:109:7)
Checklist
I have:

[ ] Tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
[ ] Reloaded (or restarted) Atom to ensure it is not a caching issue
[ ] Searched through existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues
Yes this is a duplicate issue . Previous issues are not so much informative for the user to resolve the error .

Duplicate of #2145.


Pex plugin wont work

When I try to do /pex, or anything relating to pex nothing pops up. It's not even saying do /help for help... I have the clean 1.7.10 version founded on bukkit. Please help.

#Brief Troubleshooting Guide
Which version of Minecraft are you running?
Which version of PermissionsEx are you running?
Are there any errors in the console log?  (If yes, copy the log to Pastebin and leave the link in this thread.)
Is the server running in online mode?  (The server.properties file must have online-mode=true.)
Does your permissions.yml file follow this example?  (The indentation must all be correct; option settings must all be in the options section; every group must have an inheritance; see line 19 if a group isn't inheriting permissions from another group; the schema-version: 1 line must be above the users: section; you must not use the tab key anywhere in your file.)

1.7.9 ( I have tried a lot more and its just the same!) (It says 1.22.6 when doing /pex thats the only command that works)

Yes, but I do not think they are related. Here you go: http://pastebin.com/hSXfpG0r

Yes it is, and here's proof: https://gyazo.com/c7ace166979b2a4757a9651ba8e2f664

groups:
default:
options:
default: true
permissions:
- modifyworld.*
Owner:
permissions:
- '*'
options:
prefix: '&7&l[&4&lOwner&7&l]'
worlds:
'&4':
options:
prefix: '&7&l[&4&lOwner&7&l]'
schema-version: 1
users:
299907a1-e157-44ff-9983-cecf2c2822a6:
group:
- Owner
options:
name: WhatsYoutube
jmic:
group:
- Owner

Download PEX 1.22.10 here.
I would need to see the whole console log to really be able to tell if any errors were important.
Your permissions.yml file is slightly messed up, with 1 additional space at the beginning of the file (before groups:) and with incorrect multiworld settings in the "Owner" group.
It also appears that the user named "jmic" is attempting to connect to the server in offline mode.  PEX does not support offline mode servers or clients, and PEX will never function correctly for either of those things (even if other users are connecting in online mode).
Try this file for your permissions.  If the server is running in online mode and "jmic" has a paid copy of Minecraft, their user information will be re-added to the file the next time they log in, and you can put them back in the "Owner" group.

Must be solved.  You're welcome. :)


Docs.MS Release Updates for azure-messaging-eventhubs

Update docs metadata and targeting for release of azure-messaging-eventhubs

Docs Build status updates of commit 5da470e:
:clock10: Full build: the average full build time is 94 min(s) 56 sec(s), this is based on the last 804 build(s) for this repository.

Docs Build status updates of commit 5da470e:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs-ref-services/messaging-eventhubs-readme-pre.md
:warning:Warning
View (azure-java-stable) View (azure-java-preview) View (azure-java-legacy)
Details

package.json
:white_check_mark:Succeeded

docs-ref-services/messaging-eventhubs-readme-pre.md

Line 43: [Warning-InvalidBookmark] Invalid link: 'Including the package'. The file docs-ref-services/messaging-eventhubs-readme-pre.md doesn't contain a bookmark named 'including-the-package'.
Line 43: [Warning-InvalidBookmark] Invalid link: 'Including the package'. The file docs-ref-services/messaging-eventhubs-readme-pre.md doesn't contain a bookmark named 'including-the-package'.
Line 43: [Warning-InvalidBookmark] Invalid link: 'Including the package'. The file docs-ref-services/messaging-eventhubs-readme-pre.md doesn't contain a bookmark named 'including-the-package'.
Line 56: [Warning-InvalidBookmark] Invalid link: 'Default SSL library'. The file docs-ref-services/messaging-eventhubs-readme-pre.md doesn't contain a bookmark named 'default-ssl-library'.
Line 56: [Warning-InvalidBookmark] Invalid link: 'Default SSL library'. The file docs-ref-services/messaging-eventhubs-readme-pre.md doesn't contain a bookmark named 'default-ssl-library'.
Line 56: [Warning-InvalidBookmark] Invalid link: 'Default SSL library'. The file docs-ref-services/messaging-eventhubs-readme-pre.md doesn't contain a bookmark named 'default-ssl-library'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Add CallNativeFunction - only supports passing arguments by value

And no strings either, for now.
It takes one or more argument(s): the first one is the native name, the others if present are the arguments to pass to that native (by value - only bool, int and float are supported):
CallNativeFunction('CreateDynamicObject', 1, 2.0, 3.0, 4.0, ...)

or
modelid = 1
x, y, z = 2.0, 3.0, 4.0
CallNativeFunction('CreateDynamicObject', modelid, x, y, z, ...)

In a more realistic (and in fact real) scenario:
from pysamp import CallNativeFunction

def DestroyDynamicObject(model_id):
    return CallNativeFunction('DestroyDynamicObject', model_id)

Error handling is pretty solid too:
[04:33:34] [cmds] [Cheaterman]: /dazzleme
[04:33:34] Traceback (most recent call last):
[04:33:34]   File "/home/cheaterman/Dev/samp_server/python/gamemode/__init__.py", line 118, in dazzleme
[04:33:34]     CallNativeFunction('CreateDynamicObject', 954, x, y, z, ['abc', ['def', 'ijk']])
[04:33:34] TypeError: CallNativeFunction() could not convert argument ['abc', ['def', 'ijk']] in position 5
[04:33:34] *** Streamer Plugin: CreateDynamicObject: Expecting 14 parameter(s), but found 6.

test code being:
@cmd
def dazzleme(playerid):
    import traceback
    from pysamp import CallNativeFunction, GetPlayerPos
    x, y, z = GetPlayerPos(playerid)
    try:
        CallNativeFunction('CreateDynamicObject', 954, x, y, z, ['abc', ['def', 'ijk']])
    except Exception as e:
        traceback.print_exc()

    try:
        CallNativeFunction('CreateDynamicObject', 954, x, y, z, 0.0, 0.0)
    except Exception as e:
        traceback.print_exc()


[Feature][Module: API] 希望可以支持Google Gemini API

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
No response
Use case
No response
Related issues
No response
Feature Priority
None
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

will take it these days. thanks for the request


Support using with both Python2 and Python3 installed

I would like to execute pipdeptree on both my Python 2 and Python 3 installations. Currently this is not possible, since the script installed into /usr/bin/pipdeptree is "bound" to a specific python version using the #! hashbang at the top:
#!/usr/bin/python2

# -*- coding: utf-8 -*-
import re
import sys

from pipdeptree import main

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(main())

I guess we can solve this by two ways:

Rename the installed script to pipdeptree2 if it's installed using Python 2, and ln -s to pipdeptree. For Python 3 we'll have pipdeptree3. This will allow the user to keep the two versions.
Put them somewhere else e.g. in the Python system directory tree and link them to /usr/bin/, so the user can soft link/alias the scripts as he wishes.
Any other idea?

Writing and installing this executable is entirely handled by setuptools entry points so I am not sure if it can controlled by package authors in any way.
It looks like the same python that is used by pip to install the package is added in the hashbang of the entry point scripts for that package. On my machine the hashbang in pipdeptree is#!/usr/bin/python. Can you check if the hashbang pip executable is#!/usr/bin/python2 on your machine?

@naiquevin I'm using Arch Linux so python2 points to Python 2.7 and python points to Python 3. In any case, do you have any idea how can I have two "versions" of pipdeptree installed, each one using a different python environment?

I have only tested pipdeptree on systems where python points to 2.7 and python3 points to 3.x. Which python is used when you run pip install? Because I am assuming that must be deciding the path to python exec to put in the hashbang.
Personally I follow a virtualenv based workflow to switch between different version of python, so I just need to install pipdeptree in the respective virtualenv.

@naiquevin on Arch pip calls python3's pip, and pip2callspython2`'s
I have some globally installed packages that for system-wide use (like docker compose). That's why I'm asking this.

You can work around this issue by using python2 -m pipdeptree (or python3). If you really want separate executables and correct symlinks, there is a solution, but it's a bit hairy.
Since you can run arbitrary code in setup.py you could switch the entry point to name the script pipdeptree2 or pipdeptree3 depending on the version of python and drop in the symlink in the same directory setup() put the executable. There's some subtelty since os.symlink doesn't support Windows in Python2, but one could work around that by shelling out and calling mlink.
I'm happy to make a pull request if that's the direction you want to go.

I've eventually used the following solution to call pipdeptree on python3 or python2 packages:
$ python $HOME/.local/bin/pipdeptree  # ~/.local/bin is the location where pipdeptree is installed in my case
$ python2 $HOME/.local/bin/pipdeptree

I'm not sure that's really a viable solution. Users should not have to know where the pipdeptree executable is to use with python2/3 separately. The python -m pipdeptree solution is arguably better, since the module can be put wherever the user's PYTHONPATH is.
FWIW my offer of a PR still stands.

FYI: There is an open PR - https://github.com/naiquevin/pipdeptree/pull/76 that addresses the same issue with a different approach

While that PR is great and absolutely necessary, it doesn't solve the use-case of using pipdeptree for system-installed python packages with both Python 2 and 3.

I may be missing a lot of context here due to my zero experience of using system installed python 2 and 3 together on the same machine. I have used separate virtualenvs built using python 2/3 though, hence my understanding is based on that. To avoid having to create that setup and verify, let me explain the approach I am thinking and why I feel PR #76 is related to this.
If the packages installed for system wide python 2 and 3 are isolated (is there a pip2 and pip3 for the respective versions?), then it's equivalent of having 2 different virtualenvs using python 2 and 3 respectively. Actually they wouldn't be virtualenvs here but all that PR #76 does is resolving the correct path for the python executable and then running pipdeptree script with that python executable. If that PR gets accepted, with little changes (eg. explicitly specifying the python exec path as part of command line options), it should be possible to run pipdeptree for the desired python executable.

You're correct that the work in #76 is necessary for working with multiple Pythons, but it's not quite sufficient. A typical system with both Python 2 and 3 installed at a system level looks like this:
/usr/bin/python: symlink to /usr/bin/python2
/usr/bin/python2: symlink to /usr/bin/python2.7
/usr/bin/python3: symlink to /usr/bin/python3.6
/usr/bin/python2.7: executable
/usr/bin/python3.6: executable

Which python is the default depends on the version that the /usr/bin/python symlink points to. The problem with pipdeptree only using the default python is then there's no way to specify a different python to use. The way most programs (e.g. pip) work around this is by mirroring this symlink pattern (e.g. /usr/bin/pipdeptree2 and /usr/bin/pipdeptree3 are executables, and /usr/bin/pipdeptree is a symlink to one of them). To figure out which version should be pointed to by the default pipdeptree executable, you could figure out which version of python is the default, or even take the lazy approach and just have it use the version of python used to install pipdeptree.

The python -m pipdeptree solution is arguably better

Yeah I agree, more elegant.