Cgroup: align with upstream 6.11 CONFIG_MEMCG_V1 CONFIG_CPUSETS_V1

What happened?
Tests on bpf-next are failing https://github.com/cilium/tetragon/actions/runs/11500178416/job/32010347721?pr=2615  due to memory controller being split, where v1 is now under its own:

CONFIG_MEMCG_V1 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e93d4166b40a84df83c4d5cb4c709d022808ef9b
Do not report disabled v1 controllers in /proc/cgroups https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=af000ce85293b8e608f696f0c6c280bc3a75887f

Our cgroup logic works by trying to detect available controllers from /proc/cgroups and uses the memory then pids where they should always be available, however due this change memory v1 controller is not available there, so we switch to use pids, but I suspect that test is failing due to some race conditions as we run the test quickly, however in container load tests are passing which suggest the race.
Anyway since now the memory v1 logic was split, we have to check:

[x] If memory v1 is not mounted, adapt the userspace detection logic and ensure that we continue to read cgroup names correctly so we  work transparently with both cgroupv1 or cgroupv2

Added more checks to ensure that cgroupv1 is properly set, and ensured that cgroupv2 also works.

[x] Fix the failing test and maybe cover new cases

We have tests to cover all cases, some already detected this change, and we added new ones.

Tetragon Version
head
Kernel Version
6.11
Kubernetes Version
No response
Bugtool
No response
Relevant log output
No response
Anything else?
No response

Fix is here: https://github.com/cilium/tetragon/pull/3053

Merged fix and added more tests to ensure we handle new cgroupv1 configs


(#36) Add operation for Rider to 4.7-Navigate_To_menu_related_files.html

See #36

Looks good, thank you!


Create ci pipeline that packages but does not publish them

This change adds yml files to create a CI pipeline that creates but does not publish packages.
This will enable creation of package artifacts without creating noise for partner teams.

/azp run stabilization_pr


Fixes #6. Wrap request-error data to automatically log useful info

Thanks for the pull request, I decided to have bunyan render the error directly instead of wrapping it (see #6) and https://github.com/silas/hapi-bunyan/commit/17514d6b4143919bac61897deee7de6bbf8cce2f#diff-0


Version 1.5.0

add documentation and tests for recurrences
drop tests for django < 1.8

fixes #13 #15

@cleder You are amazing. Thank you SO much for doing this. And apologies for only just seeing your PR - my email notifications seem to be wonky.
Will push the new release tonight and turn the project over to Jazzband.


Support nested columns

So far, I found no way to define schema checks for nested columns, e.g., tables using composite types.
Example with PostgreSQL
CREATE TYPE address_type AS (
  street VARCHAR(255),
  city   VARCHAR(100),
  state  VARCHAR(100),
  zip    VARCHAR(20)
);

CREATE TABLE orders (
  id SERIAL PRIMARY KEY,
  order_date DATE NOT NULL,
  customer_name VARCHAR(100) NOT NULL,
  address address_type NOT NULL
);

INSERT INTO orders (order_date, customer_name, address)
VALUES ('2023-01-01', 'John Doe', ROW('1234 Elm Street', 'Springfield', 'IL', '62704'));

checks.yml
(does not work)
checks for orders:
  - schema:
      name: Confirm that nested columns are present
      fail:
        when required column missing:
          - customer_name
          - (address).city

SAS-2615

Hi @jochenchrist! This is a known limitation - nested fields have limited support - they work on most built-in checks but not the schema check which requires more nuanced handling. Improving this is on our longer term backlog, so I will close this issue now. Keep an eye on our release notes for when this changes.


no dark mode

The theme is great, not adapted to the dark mode
code bug

Thanks. Do you mean dark mode for the whole theme or just for the code blocks ?

theme dark

This theme doesn't intend to be used in dark mode, as it's a minimalist style. I'll keep that in mind for a future theme.


Add both path separators support for Windows paths

Fix error stack links detecting for Windows paths. Add python error trace support. Add common files linking option.

This fails on Travis. Please resubmit if this is a PR you want to continue with.


Inclusion of cisco.intersight in Ansible 2.10

This collection will be included in Ansible 2.10 because it contains modules and/or plugins that were included in Ansible 2.9. Please review:

The list of requirements for inclusion in Ansible: https://github.com/ansible-collections/overview/blob/master/collection_requirements.rst
The roadmap with all important dates for Ansible 2.10: https://github.com/ansible/ansible/blob/devel/docs/docsite/rst/roadmap/COLLECTIONS_2_10.rst

DEADLINE: 2020-08-18
The latest version of the collection available on August 18 will be included in Ansible 2.10.0, except possibly newer versions which differ only in the patch level. (For details, see the roadmap). Please release version 1.0.0 of your collection by this date! If 1.0.0 does not exist, the same 0.x.y version will be used in all of Ansible 2.10 without updates, and your 1.x.y release will not be included until Ansible 2.11 (unless you request an exception at a community working group meeting and go through a demanding manual process to vouch for backwards compatibility . . . you want to avoid this!).
Follow semantic versioning rules
Your collection versioning must follow all semver rules. This means:

Patch level releases can only contain bugfixes;
Minor releases can contain new features, new modules and plugins, and bugfixes, but must not break backwards compatibility;
Major releases can break backwards compatibility.

Changelogs and Porting Guide
Your collection should provide data for the Ansible 2.10 changelog and porting guide. The changelog and porting guide are automatically generated from ansible-base, and from the changelogs of the included collections. All changes from the breaking_changes, major_changes, removed_features and deprecated_features sections will appear in both the changelog and the porting guide. You have two options for providing changelog fragments to include:

If possible, use the antsibull-changelog tool, which uses the same changelog fragment as the ansible/ansible repository (see the documentation).
If you cannot use antsibull-changelog, you can provide the changelog in a machine-readable format as changelogs/changelog.yaml inside your collection (see the documentation of changelogs/changelog.yaml format).

If you cannot contribute to the integrated Ansible changelog using one of these methods, please provide a link to your collection's changelog by creating an issue in https://github.com/ansible-community/ansible-build-data/. If you do not provide changelogs/changelog.yml or a link, users will not be able to find out what changed in your collection from the Ansible changelog and porting guide.
Make sure your collection passes the sanity tests
Run ansible-test sanity --docker -v in the collection with the latest ansible-base or stable-2.10 ansible/ansible checkout.
Keep informed
Be sure you're subscribed to:

Changes impacting Collections to track changes that Collection maintainers should be aware of;
The Bullhorn, a newsletter for the Ansible developer community, back issues and how to add content.

Questions and Feedback
If you have questions or want to provide feedback, please see the Feedback section in the collection requirements.
(Internal link to keep track of issues: ansible-collections/overview#102)

Closing since Ansible 2.10 has long been released. (Ansible 5 is coming up next.)


Replace view feature tests with view tests

https://trello.com/c/wgkfOJsE/1283-improve-consistency-in-content-publisher-tests
This replaces a number of feature tests where we are effectively testing views and moves them to view tests.
This is in line with the testing strategy defined in: https://github.com/alphagov/content-publisher/pull/1590. Further details in individual commits.

Thanks for the review @1pretz1 - I've amended accordingly.

Thanks @benthorner I've made amends accordingly


Changing the position of the LGPlusButtonView

I'm trying to implement this in my project, but when I use it with UIView the buttons paper in the topright corner his is correct but I need to display them under the toprightcorner
How can I inset or change the position of the buttons programmatically? (one way is to create a uview with size 1x1 and link it to that but that's not pretty)
I can't really access the source

Try to change
plusButtonView.position = LGPlusButtonsViewPositionTopRight;

well, isn't the content inset between every button??  I have it set to the LGPlusButtonsViewPositionTopRight, that's the problem

Try it:
plusButtonsView.contentInset = UIEdgeInsetsMake(50.f, 0.f, 0.f, 0.f);

plusButtonsView.contentInset = UIEdgeInsetsMake(50.f, 0.f, 0.f, 0.f);
well, that works but when you try to tap the button which unwinds the whole view it's blocked because the actual view starts at the same position as before the inset. It's just contentInset, I need the whole view inset :/

Ok... now I think I understand you. But what the reason? Do you want to make buttons appear at the middle of the screen? I will try to add offset property at evening.

I want them to be at the same-ish position as in the photo that you added here,
under the trigger button which will be used to open and close the plusButtonView
Sent using CloudMagic [https://cloudmagic.com/k/d/mailapp?ct=pi&cv=6.4.27&pv=8.4]
On ut, júl 28, 2015 at 11:16 PM, Friend-LGA/LGPlusButtonsView
<EMAIL_ADDRESS>wrote:
Ok... now I think I understand you. But what the reason? Do you want to make
buttons appear at the middle of the screen? I will try to add offset property at
evening.
—
Reply to this email directly or view it on GitHub
[https://github.com/Friend-LGA/LGPlusButtonsView/issues/2#issuecomment-125853623] .[https://github.com/notifications/beacon/AFUV4XjjBia0KiVhVRK0sfn5EQSynd4_ks5oiGc3gaJpZM4Fg8rX.gif]

Now you can use plusButtonsView.offset = CGPointMake(0.f, 50.f) to change position

THANKS! this is such a great pod, can't be grateful enough

:+1:


Add a fastp image

There is this thread where I was thinking about refactoring our micromamba-using images — https://centrepopgen.slack.com/archives/C03FZL2EF24/p1684280656650199 — but I haven't done anything about that, so one more micromamba image is fine.


Bugfix: stringy physical unit types

Running with the latest astropy version (a832159de617a8188310abb324c30b8cb2a3408e, 4.3.dev1429+ga832159) resulted in errors like
Traceback (most recent call last):
  File "/orange/adamginsburg/ALMA_IMF/reduction/analysis/fullcube_quicklooks.py", line 154, in <module>
    cfrq = mcube.with_spectral_unit(u.GHz).spectral_axis.mean()
  File "/orange/adamginsburg/repos/spectral-cube/spectral_cube/spectral_cube.py", line 1366, in with_spectral_unit
    rest_value=rest_value)
  File "/orange/adamginsburg/repos/spectral-cube/spectral_cube/base_class.py", line 336, in _new_spectral_wcs
    velocity_convention=velocity_convention)
  File "/orange/adamginsburg/repos/spectral-cube/spectral_cube/spectral_axis.py", line 119, in determine_ctype_from_vconv
    in_physchar = PHYSICAL_TYPE_TO_CHAR[lin_cunit.physical_type]
KeyError: PhysicalType('frequency')

I think this PR will fix those.

Codecov Report

Merging #709 (01d6259) into master (8bb9a37) will decrease coverage by 4.10%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #709      +/-   ##
==========================================
- Coverage   80.30%   76.20%   -4.11%
==========================================
  Files          24       24
  Lines        5551     5421     -130
==========================================
- Hits         4458     4131     -327
- Misses       1093     1290     +197

Impacted Files
Coverage Δ

spectral_cube/spectral_axis.py
93.58% <100.00%> (ø)

spectral_cube/visualization-tools.py
0.00% <0.00%> (-12.25%)
:arrow_down:

spectral_cube/ytcube.py
18.81% <0.00%> (-10.90%)
:arrow_down:

spectral_cube/spectral_cube.py
75.85% <0.00%> (-8.11%)
:arrow_down:

spectral_cube/lower_dimensional_structures.py
78.58% <0.00%> (-5.39%)
:arrow_down:

spectral_cube/dask_spectral_cube.py
84.60% <0.00%> (-4.59%)
:arrow_down:

spectral_cube/masks.py
79.41% <0.00%> (-4.03%)
:arrow_down:

spectral_cube/base_class.py
84.61% <0.00%> (-3.17%)
:arrow_down:

spectral_cube/conftest.py
89.54% <0.00%> (-0.99%)
:arrow_down:

spectral_cube/cube_utils.py
79.39% <0.00%> (-0.77%)
:arrow_down:

... and 2 more

Continue to review full report at Codecov.

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

Can you hold off on this as I think we should fix it in astropy

Actually feel free to go ahead, but I've noted in the relevant astropy PR that this broke rather than emit a deprecation warning

@astrofrog can you review this, then?  Should we go ahead and merge this?
I don't understand the failure.

@keflavich -- More of the py38 errors we're seeing are from these string changes:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> traceback >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
../../spectral_cube/spectral_axis.py F
097     Examples
098     --------
099     >>> determine_ctype_from_vconv('VELO-F2V', u.Hz)
100     'FREQ'
101     >>> determine_ctype_from_vconv('VELO-F2V', u.m)
102     'WAVE-F2W'
103     >>> determine_ctype_from_vconv('FREQ', u.m/u.s)  # doctest: +SKIP
104     ...
105     ValueError: A velocity convention must be specified
106     >>> determine_ctype_from_vconv('FREQ', u.m/u.s, velocity_convention=u.doppler_radio)
UNEXPECTED EXCEPTION: KeyError('speed/velocity')
Traceback (most recent call last):
  File "/Users/ekoch/anaconda3/lib/python3.8/doctest.py", line 1336, in __run
    exec(compile(example.source, filename, "single",
  File "<doctest spectral_cube.spectral_axis.determine_ctype_from_vconv[3]>", line 1, in <module>
  File "/Users/ekoch/ownCloud/code_development/radio_astro_tools/spectral-cube/spectral_cube/spectral_axis.py", line 143, in determine_ctype_from_vconv
    out_physchar = PHYSICAL_TYPE_TO_CTYPE[str(unit.physical_type)]
KeyError: 'speed/velocity'

Here unit.physical_type = PhysicalType({'speed', 'velocity'}).

Ahhh... I think we need changes here to accommodate speed/velocity, then.

We might have a few other places where this breaks things. From a local run of the py38 dev test:
201 failed, 1157 passed, 155 skipped, 4 xfailed, 2 xpassed in 377.07s (0:06:17)

The errored tests are hiding a lot of actual failures.

Most of the errors were from not passing the right unit conversions. Here's the upstream change for physical types: https://github.com/astropy/astropy/pull/11691
It looks like we have some additional failures from upstream changes. In case they don't show up in the build with astropy dev:

One is an additional warning from a FITS header:

    @pytest.mark.skipif('not scipyOK')
    def test_parallel_bad_params(data_adv):

        # This function only makes sense for the plain SpectralCube class

        cube, data = cube_and_raw(data_adv, use_dask=False)

        with pytest.raises(ValueError,
                           match=("parallel execution was not requested, but "
                                  "multiple cores were: these are incompatible "
                                  "options.  Either specify num_cores=1 or "
                                  "parallel=True")):
            cube.spectral_smooth_median(3, num_cores=2, parallel=False,
                                        update_function=update_function)

        with warnings.catch_warnings(record=True) as wrn:
            cube.spectral_smooth_median(3, num_cores=1, parallel=True,
                                        update_function=update_function)

>       assert ("parallel=True was specified but num_cores=1. "
                "Joblib will be used to run the task with a "
                "single thread.") in str(wrn[-1].message)
E       assert 'parallel=True was specified but num_cores=1. Joblib will be used to run the task with a single thread.' in "'datfix' made the change 'Set MJD-OBS to 50982.687794 from DATE-OBS'."
E        +  where "'datfix' made the change 'Set MJD-OBS to 50982.687794 from DATE-OBS'." = str(FITSFixedWarning("'datfix' made the change 'Set MJD-OBS to 50982.687794 from DATE-OBS'."))
  It's an easy fix, but it's definitely upstream.
Not sure about the other one yet.

We're not getting those errors I saw locally here, so I think it's ok.
Apart from the yt related failure, I think this is ready to review and merge

OK, great, let's merge it - but, could you fix the docstring?  Or at least clarify?

@keflavich -- fixed. Good to merge from my end


Set the revision of ansible-podman-collections to 'main'

Installing ci-framework requirements fails on:
ansible-galaxy collection install --upgrade --force --timeout=120 /home/zuul/src/github.com/openstack-k8s-operators/ci-framework Cloning into '/home/zuul/.ansible/tmp/ansible-local-24798o634gjev/tmpjj8gurw9/ansible-podman-collectionsacd5cco5'... error: pathspec 'master' did not match any file(s) known to git ERROR! Failed to switch a cloned Git repo https://github .com/containers/ansible-podman-collections to the requested revision
master.
It seems that the branch of ansible-podman-collections was renamed
from 'master' to 'main'.

/lgtm

/cherry-pick 18.0-fr1


Feature/step in db

Changes implemented on the most recent @schmir branch I could find as I assume that they will be merged earlier.
Closes #15 and #16
Tests pass, but not yet run against actual parity node.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: schmir:x: jannikluhnYou have signed the CLA already but the status is still pending? Let us recheck it.

I've rebased that first commit from my branch and amended it with some other changes. Can we remove that here?

This can easily be revomed with git rebase. please remove it.


WIP: generic pdict

make pdict generic so type hints work out

@itdaniher , check out these new and improved types! ft overloads for get/pop, even better generics, concrete subtypes of generics, and more
might want to rename stuff to get a more concise / drier type signature than aPersistDict[str] x10
I fixed some of the remaining lints, but I leave unused variables and too many variables/branches/returns to your taste. I suggest splitting up elements of do_payout, do_pay, do_add and maybe maybe_unlock, default into smaller methods


added more logic to isComposite in http.py

the url which returns bytes instead of strings is:
https://s3download.asf.alaska.edu/SLC/SA/S1A_IW_SLC__1SDV_20191015T145454_20191015T145520_029471_035A48_98DE.zip


Error: Cannot find module './lib/features/test/api'

Trying to add a loader.
Didn't find a recipe, found some snippets in issues.
Here's the code causing me an error:
const { loaderByName, addBeforeLoader } = require("@craco/craco");

Error: Cannot find module './lib/features/test/api'

This file don't exist in my node_modules. Even lib/features/test/ folder don't exist.
➜ ll node_modules/@craco/craco/lib/features
итого 12K
drwxr-xr-x. 2 grawl grawl 4,0K апр 14 17:48 dev-server
-rw-r--r--. 1 grawl grawl 4,0K апр 14 13:53 plugins.js
drwxr-xr-x. 3 grawl grawl 4,0K апр 14 17:48 webpack

Hi Grawl,
Could it be your issue? https://github.com/gsoft-inc/craco/issues/144

Yes.

I just removed all 'tests' section from .yarnclean
motivation here


feat: Searchable/Filterable Select Box

Prerequisites | Prérequis

[X] I've read the Contributing Guidelines. | J’ai lu les Lignes directrices sur les contributions.
[X] I agree to follow the Code of Conduct. | J’accepte de me conformer au Code de conduite.
[X] I've searched for existing issues that already report this problem, without success. | J’ai vérifié parmi les tickets (issues) existants que ce sujet n’avait pas déjà été soumis.

Describe the feature request. | Décrivez la fonctionnalité demandée
It would be interesting to have a select component that can be filtered/search to help find when an option when there are a lot of them.
For an application, I created one that mimics the style of a gcds-select:

You can click on the option with the mouse, and use the arrow keys to go up and down to select an option
Describe the use case. | Décrivez les cas d’utilisation
It would be interesting to have a select component that can be filtered/search to help find when an option when there are a lot of them.
Describe the preferred solution. | Décrivez la solution souhaitée
No response
Describe all alternatives. | Décrivez toutes les solutions possibles
No response
Provide related code or examples. | Fournissez du code ou des exemples pertinents
No response
Add other relevant resources. | Ajoutez toute autre ressource utile
No response

We built one in Vue on top of vue multiselect (https://vue-multiselect.js.org/), it's a pretty good starting point.


VTT resources link is broken

Following the "VTT resources" link above leads to a page with the message "We are sorry, the page you requested cannot be found.".

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

ID: 3adae675-e33d-0a22-98fd-25a77f2b723c
Version Independent ID: 3dc9a5cc-4380-056c-848d-48567ecca83c
Content: Microsoft Visual TrueType (VTT) - Typography
Content Source: typographydocs/tools/vtt/index.md
Product: windows
GitHub Login: @mijacobs
Microsoft Alias: mijacobs

Removed the sentence with the link.
Commit: MicrosoftDocs/typography@bb123175d68f42d018177d1f84389316f6a0857e


Hauki 109 docker nginx

Docker builds application on Helsinki city's custom node image and serves static assets by using the default Nginx image. Runtime env-variables are generated on Nginx server start by using this approach: https://www.freecodecamp.org/news/how-to-implement-runtime-environment-variables-with-create-react-app-docker-and-nginx-7f9d42a91d70/

Build docker image:

 docker build . -t hauki-admin-ui

Run image:

docker run -p 3000:80 -e API_URL=<api-url-here> hauki-admin-ui

Visit http://localhost:3000

Could you add info to README.md on how to apply docker image and the compose file?


Vba Selenium Start "Chrome" frequently hang

Hi,
Good Day!
I have 4 excel file where running instance for 24 hour to check on the website by using selenium.chrome (2.0.9). The excel frequently hang in backround where it hang on Start "Chrome".
I have try other way as well driver.get (url) but issue still persists.
Upon checked, once the driver start, sometime i can see chromedriver running on the task manager while chrome.exe not (usually should come out in the task manager as well). I have try disable plugins, unfortunately still the same issue occured.
My question, is there anyway to setup timeout or error handler for start chrome? ie: when start"chrome" taking longer time, hang or even chromedriver running without open chrome.exe?
Looking forward to your advise.
Thank you.
Regards
Ahmad

Have you updated chromedriver.exe to match version of Chrome?

Hi mogulman52, thanks for your advice. i have checked them seems my chromedriver ver was 75.0.3770.90 while chrome.exe  76.0.3809.100. I just change chromedriver to ver 76.0.3809.68. Hopefully gonna solve this issue otherwise i guess maybe the issue with the CPU usage.

Seems again same issue occurred

i have same problem only with one file last friday it was works perfectly, today monday 12/08/2019 there is a problem, driver.get doesn´t work properly

hello,
I also have the same problem. Totally random, the GET command blocks the process. Has anyone been able to understand or contain the problem?
Thanks


Not working properly on CachyOS Linux.

Whenever I run the program and try to speak the result always says "You."

ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rearALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfeALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.sideALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel mapALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel mapALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel mapALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel mapCannot connect to server socket err = No such file or directoryCannot connect to server request channeljack server is not running or cannot be startedJackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlockJackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlockCannot connect to server socket err = No such file or directoryCannot connect to server request channeljack server is not running or cannot be startedJackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlockJackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlockALSA lib pcm_oss.c:404:(_snd_pcm_oss_open) Cannot open device /dev/dspALSA lib pcm_oss.c:404:(_snd_pcm_oss_open) Cannot open device /dev/dspALSA lib pcm_a52.c:1036:(_snd_pcm_a52_open) a52 is only for playbackALSA lib confmisc.c:160:(snd_config_get_card) Invalid field cardALSA lib pcm_usb_stream.c:481:(_snd_pcm_usb_stream_open) Invalid card 'card'ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field cardALSA lib pcm_usb_stream.c:481:(_snd_pcm_usb_stream_open) Invalid card 'card'Cannot connect to server socket err = No such file or directoryCannot connect to server request channeljack server is not running or cannot be startedJackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlockJackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

I'm not really that knowledgeable, but from asking ChatGPT the errors you see are probably related to the audio handling of the OS and not RealtimeSTT. You can see the full answer here if interested.

Whenever I run the program and try to speak the result always says "You."

I'm pretty sure that's a whisper hallucination when trying to transcribe silence, which reinforces ChatGPT's diagnosis.
You might also want to supply some more info about your hardware and software configuration. Especially python version, CUDA Toolkit version (if applicable), GPU model (if applicable), pytorch version & configuration (CPU/CUDA XX.X/ROCm 6.2), whether you're using conda or pip, which script of the scripts you're using and how you have it configured.

is CUDA Toolkit really required to use cuda? I mean, pytorch seems work fine without installing these toolkit on my system, so I just wondering:
$  python
Python 3.12.7 (main, Oct  1 2024, 11:15:50) [GCC 14.2.1 20240910] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.cuda.is_available()
True
>>> torch.cuda.device_count()
1
>>> torch.cuda.current_device()
0
>>> torch.cuda.get_device_name(0)
'NVIDIA GeForce RTX 4070 Laptop GPU'

Oh nvm, I think it required because the program need a cuda shared library, I ended up install it from arch package repository.


[terra-form-select] Select mobile a11y

Summary
In our infinite quest to make the select mobile accessible, we have introduced a new prop that is opt-in for making the dropdown menu render position: absolute in the normal DOM flow: isTouchAccessible.
DEPLOYMENT LINK
NOTE
This fix only applies for select variants with an input in them (all except default / <SingleSelect />
Description
As explored and discovered in #2635, portaling the <input /> introduces a lot more complexity than we're comfortable with and it introduces regressions on nearly all other targets (browsers, screen readers, and all combinations thereof). In an effort to combat that complexity and maintain passivity and functionality for all targets, we are introducing a way to remove the portaled menu.
This is the same thing that the UK Gov did here, with working deployed examples here, however (with our own UX guidance) we are also making the dropdown position: absolute;
Thanks for contributing to Terra.
@cerner/terra
cc @nickpith

I think some minor styling issues are introduced to the single select variant, working on those now. Then I'll add in tests. For now, removing WIP status on this PR.

Functional verification completed. The form select examples display and function as expected on mobile.
Two separate issues found that relate only to desktop: #2661 and #2663.

Tested: PR #2658
Reviewed:

Reviewed new opt-in prop for initial enhancement for touch accessibility (iOS VoiceOver specifically). May become standard behavior in future major version and removed as optional prop.

Marking as Verified, ready for Release.

Pass

UX Review


PARQUET-1334: [C++] memory_map parameter seems missleading in parquet file opener

If memory_map parameter is true, normal file operation is executed, while in negative case, the according memory mapped file operation happens. Seems either be used via inverted logic or being bug.

+1 LGTM. Definitely a bug that slipped through until now. Thanks for contributing this!


ghc: use ld.gold only on Linux

Motivation for this change
Fixes https://github.com/NixOS/nixpkgs/issues/66221
partly reverts commit 29f2f04ded458e298e70884c2fd10e05e336f598.
from @matthewbauer comment:

Yeah, gold should only be used on Linux (it might work on other ELF-based systems too). gold is also in a weird place with Google kind of abandoning it in favor of lld.

Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Notify maintainers
cc @

Have you/someone verified that this really does fix the darwin build?  (It's probably too big for @GrahamcOfBorg.)

Well, let me try anyway :-)
@GrahamcOfBorg build ghc


Add support for UTF-32 glyphs in icon components

Added components that extend the size of the icon Glyph to 32-bit.
Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[x] New feature or enhancement
[ ] UI change (please include screenshot!)
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Internationalization and localization
[ ] Other (please describe):

What is the current behavior?
See discussions #1399
Issue Number: N/A
What is the new behavior?

Added classes for Utf32Icon derived from the following components:

UIIcon
UIButton
UIDropDownButton
UIDropDownMenuItem

Introduced helper methods in DevToys.Api.GUI for creating instances of Utf32Icon components. These methods take the font name and the int type Glyph code as arguments to create instances of the Utf32Icon version.

Example Usage
IUIUtf32Icon icon32 = Icon("FluentSystemIcons", 983184);
IUIUtf32IconButton button32 = Button("FluentSystemIcons", 983184, "Button");
IUIUtf32IconDropDownButton ddButton32 = DropDownButton("FluentSystemIcons", 983184, "DDButton");
IUIUtf32IconDropDownMenuItem ddMenuItem = DropDownMenuItem("FluentSystemIcons", 983184, "DDMenuItem");

Other information
The changes are as follows.

Extend the Glyph property in FontIcon.razor.cs from char to int.

public partial class FontIcon : StyledComponentBase
{
    //...

    [Parameter]
    public int Glyph { get; set; }

    //...

Add the interfaces IUIUtf32GlyphProvider and IUIUtf32IconProvider.

// UTF-32 version of the Glyph property
public interface IUIUtf32GlyphProvider
{
    int Utf32Glyph { get; }
}

// UTF-32 version of the IconGlyph property
public interface IUIUtf32IconProvider
{
    int Utf32IconGlyph { get; }
}

Create derived classes that implement these interfaces for the following components in DevToys.Api.

Components to be updated:

IUIIcon
IUIButton
IUIDropDownButton
IUIDropDownMenuItem

Components supporting UTF-32 icons:

IUIUtf32Icon: IUIIcon, IUIUtf32GlyphProvider
IUIUtf32IconButton: IUIButton, IUIUtf32IconProvider
IUIUtf32IconDropDownButton: IUIDropDownButton, IUIUtf32IconProvider
IUIUtf32IconDropDownMenuItem: IUIDropDownMenuItem, IUIUtf32IconProvider

The differences between the existing char type Glyph and the new int type Glyph will be resolved in xxPresenter.razor.

<FontIcon<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>    Glyph="@(UIIcon is IUIUtf32GlyphProvider provider ? provider.Utf32Glyph : UIIcon.Glyph)"
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>/>

<FontIcon
    Glyph="@(UIDropDownButton is IUIUtf32IconProvider provider ? provider.Utf32IconGlyph : UIDropDownButton.IconGlyph)"
<EMAIL_ADDRESS>    Height="16"
    Width="16" />

Quality check
Before creating this PR:

[x] Did you follow the code style guideline as described in CONTRIBUTING.md
[x] Did you build the app and test your changes?
[x] Did you check for accessibility? On Windows, you can use Accessibility Insights for this.
[x] Did you verify that the change work in Release build configuration
[x] Did you verify that all unit tests pass
[x] If necessary and if possible, did you verify your changes on:

[x] Windows
[ ] macOS
[ ] Linux

The following items were tested.

[x] Confirmed that icons are displayed correctly with the added components (both 16-bit and 32-bit).
[x] Verified that icons are displayed correctly with existing components.
[x] Ensured that changing the Glyph and IconGlyph properties switches the icons.
[x] Confirmed that existing extensions function correctly.

Hello,
Thank you for very much for this PR and sorry for the time it took me to look at it. I looked at it in detail and tested it on my side. It is really great! I appreciate your attention to details! I don't have any comment on it. Approved :D
Thank you again!


This is an enhancement request to expose parsed rule results and default values.

We are a web server vendor and as an optimization, we'd like to avoid calling mod_security functions like msc_append_request_body and msc_append_response body (along with the associated intervention processing) when request/response body processing is disabled.  We'd sure like to have the parsed results of that info made available to us as API.
We see that msc_create_rules_set() gives us the parsed rules and they appear usable once the merge has been done.  However, items like the default values for unset m_requestBodyLimit are not visible.  If you could:

Verify that the use of the Rules object can legally be used within a transaction.
At some point expose the defaults for unset values.

Thanks so much!

The idea is that the parser state can be disabled or enable in run time. having said that, the parsed values may not be represented as the value could be changed later on. Same for the limits.


Ensure pickadate can work with browserify

Based on @mogarick comments from https://github.com/amsul/pickadate.js/issues/365

Any chance of getting the browserify fix pushed to npm?


[csgo-vulkan-fix] Plugin breaks mouse clicking on latest git version of Hyprland

csgo-vulkan-fix plugin breaks mouse clicking on latest git version of Hyprland (hyprland-nvidia-git)
Video:
https://github.com/hyprwm/hyprland-plugins/assets/68757440/65320352-4702-48bf-98e6-406c9faa5305
hyprctl version
Hyprland, built from branch main at commit 51cda87fe47efec25265b3b9f6bebf9a0882aa08 dirty (hyprctl: rerender on cursor_zoom_factor dynamic calls).
Tag: v0.27.2-64-g51cda87f

flags: (if any)

Config file
   1   │ # need to be absolute path
   2   │ plugin = $HOME/.config/hypr/plugins/csgo-vulkan-fix.so
   3   │ #plugin = $HOME/.config/hypr/plugins/hyprfocus.so
   4   │
   5   │ plugin {
   6   │   csgo-vulkan-fix {
   7   │         res_w = 1440
   8   │         res_h = 1080
   9   │     }
 10   │ }

The plugin is built a while ago, but I am unable to clone the repo to re-build due to some internet issues, will attempt later.

you are unable to clone but you can upload a video?
Please recompile. Every hyprland version change (even from one commit to another) requires plugins to be recompiled

you are unable to clone but you can upload a video?
Please recompile. Every hyprland version change (even from one commit to another) requires plugins to be recompiled

(I was getting ~10kb/s download speed while cloning the repo, not sure why)
Yes, re-compiling worked, thank you for the tip.


Restore video loading circle

Issue
Closes #5554: Video: loading circle sometimes does not appear until 2nd click
What's happening
videojs behavior:
(a) A src change makes the Play button re-appear.
(b) An onPlay (or play()) makes the button go away.
Due to the m3u8 header async fetch (i.e. return is potentially delayed), the initial onPlay (which cleared the button) that happened after user clicked Play gets negated by a potentially-delayed src change.

Approach
I believe in our use case, a change in src always means "change src and resume play". A src change always comes from a Play action, and we don't pause (don't need to anyway) the player during the change.
So, hiding the button after src is changed seems reasonable.
New behavior
We now see the spinning loading circle when video is loading, as it was originally.
Aside
Is there a non-async alternative to the header fetching?  Seems to be the root of many problems.  When the fetch is fast, we avoid the double onPlay

I've been debating back and forth on how to handle and fix issues related to that async fetch call and haven't decided if it makes more sense to take that out of the internals and simply do the fetch before updating the src for the player or perform the check in the player code.
I think it makes more sense to separate the concerns and responsibilities and only update src after the fetch has completed in a parent component - then just pass src and type to the player directly so it only ever has to worry about standard video.js setup and event flows.

Ideally we would want to have this loading indicator show until the pre-fetch is completed I think...

Yup, that is what the PR is trying to achieve -- it should show the loading screen above, followed by buffering loading circle, then play -- except that I missed out on the browser-level autoplay=off scenario,
I agree that the async fetch is the actual root of many issues.  If a fix is coming up soon, we don't need this PR;  else, I think having this workaround is better than today's version (the change is simple to revert).  Having to guess whether I did click play or not is getting annoying :)

Update

Handle the case of the player being paused externally.

Update

Squashed commits and added comments in the code to ease the revert process during the upcoming re-architecture.

Can #5535 be closed in favor of this since this PR contains the changes from that PR as well?

Can #5535 be closed in favor of this since this PR contains the changes from that PR as well?

@DispatchCommit, sorry, I ended up force-pushing the wrong branch and made it identical to 5535. Both PRs should be addressing different things.
Update

Corrected the branch for this PR.


chore: refactor RundownSystemStatus to avoid MeteorReactComponent SOFIE-2751

About the Contributor
This pull request is posted on behalf of the NRK.
Type of Contribution
This is a bug fix
New Behavior
The MeteorReactComponent class has been found to be not close subscriptions when rerunning computations.
The simplest and most reliable way to mitigate this is to replace this class with functional components can instead use the native react flow/approach to tracking lifecycle.
Testing Instructions

Other Information

Status

[ ] PR is ready to be reviewed.
[ ] The functionality has been tested by the author.
[ ] Relevant unit tests has been added / updated.
[ ] Relevant documentation (code comments, system documentation) has been added / updated.

I do think that it would look nicer to not mix functional and class components, perhaps refactor MOSLastUpdateStatus and RundownSystemStatusContent into functional components as well?

I agree, and I was going to say that I think it is out of scope for this as they both need more thought while refactoring (to understand internal state flows). But they were both easier than I expected. The state of RundownSystemStatusContent was not actually used, and there is already the useCurrentTime needed for MOSLastUpdateStatus, so I have done them now


Endpoint is now supported for entities (both in public preview)

@chrfox  both named entities and endpoint devices are in full public preview

@chrfox Please merge this PR. Thanks


Add class prefix as a Sass variable

Added a Sass variable $spinkit-class-prefix that allows users to change the default sk class prefix to something that may fit their project better.

Nice addition

Obsolete because of #143


Validation of addition of SecurityRule to NSGs show as modify instead of create depending on the rule name

When adding a new object to the SecurityRules array of a NSG (at the end), the result of the  Get-AzResourceGroupDeploymentWhatIfResult will often display the impact as modifying a large number of rules instead of just a simple create.  Based on the output, it looks like the PowerShell module is ordering the array based on the "Name" value instead of leaving the array as it is written.  This means that if my new rule is named alphabetically in the middle of my rules, it will look like I'm modifying all the rules from the middle of the array ....

This is because the PUT API does not preserve the ordering of this list and when we retrieve the same list on GET, the order is changed.
In the future, we might be able to add a swagger annotation to let us know what is the primary key of these object lists so we can normalize the sorting ourselves, but that will not happen soon most likely.

Any idea in what order the PUT API stores this? Maybe we can work around this by ordering our nsgrules in a similar way programmatically before deploying.

It seems to order them based on the name field.  I've started adding rule prefixes "zz001", "zz002", "zz003" etc to rules to make sure they're ordered correctly.

I have had a look at this lately and I see what-if doing a forced sort on both before/after based on direction (first inbound then outbound grouping) then on name of the rule.
This will often read in the what-if output as changes to values of an existing rule, depending on where the input change gets sorted in.
Would have been nice to have what-if be able to use the order of how the api resturns them, so one can do a union between existing rules and incoming rules (to get the same ordering as the api returns) and have what-if do the diff between the two without enforcing it's own sort.
With how it is now, carefully crafting the ordering of the incoming rules in code will just get ignored by what-if own internal sorting. Would not be a problem if this produced a robust sort, but it does not.


Update InputFormAutoAnimate.vue

fix: add Toaster

🔗 Linked issue

❓ Type of change

[x] 📖 Documentation (updates to the documentation, readme or JSdoc annotations)
[x] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

📸 Screenshots (if appropriate)

📝 Checklist

[ ] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

What is this PR trying to fix @zycck ?


Excess box is show in Template Library window when insert not existing in Filter

Steps to Reproduce

Go to 'Template Library'
Insert  not existing in Filter field

Expected behavior
Empty window is shown with message: No items found
Actual behavior
Excess box is show in Template Library window
Screenshots

Desktop (please complete the following information):

OS: Windows 10
Browser: Chrome Version 93.0.4577.63, Firefox Version 92.0, Microsoft Edge Version 93.0.961.47

Fixed, tested v.2.4


Improved big data

Use of mime types for hints to data type
Use of key for source name - can now potentially define multiple big data sources
Explicit flag for adding+saving big data when adding or updating a node
No more OID as key, rather use a technology-independent key. Allows us to lift+shift data without worrying about keys. This will be done in the graph in the next update as well
Adopting pattern of hard-typing parameters and returns. This is essential in building a maintainable+testable framework.

@dehann You said merge is ok on the phone, so just merging without review to keep to timeline :+1:


Scroll bug

if you scroll up and down a few times (in and out the viewport) the parallax image moves upwards a little bit every time you move back into the viewport.
Is there a quick fix for that?

hi,
thank you for your feedback. i will publish a fix shortly.

dear @mweterings,
please check the new version of the plugin. i think i found a solution to the scrolling problem. please don't hesitate to post any issues and feedbacks.
best regards.

Hi @erensuleymanoglu,
Thanks for your fast response! really appreciate it.
However the bug is still present. I attached a video so you can see what happens.
https://www.useloom.com/share/82f830cde161486eb8c1f289c36bffb8

oh i see the problem now. i will work on it and will let you know when i come up with a solution asap.
thanks.

Hey @erensuleymanoglu,
Just want to say what a great script - I noticed the same bug as @mweterings but can see you're working on it. Apart from that it's looking good... Managed to integrate it into a Wordpress theme - looks very slick now!

hey @alsterb,
thanks for the kind words. keep me posted if you encounter any problems.
best regards.

@erensuleymanoglu Something like this should replace the scroll function, where calculations should be made regardless of wether or not the element is in view and only apply transformations conditionally:
`i = b.scrollTop() - g;
g = b.scrollTop();
p = i * (parseFloat(settings.parallaxSpeed) / 4);
if (settings.parallaxDirection === 'up') {
s += -p;
t = 'translate3d(' + e[0] + 'px, ' + s + 'px, ' + e[2] + 'px)';
}
if (settings.parallaxDirection === 'down') {
s += p;
t = 'translate3d(' + e[0] + 'px, ' + s + 'px, ' + e[2] + 'px)';
}
if (settings.parallaxDirection === 'left') {
s += p;
t = 'translate3d(' + s + 'px, ' + e[1] + 'px, ' + e[2] + 'px)';
}
if (settings.parallaxDirection === 'right') {
s += -p;
t = 'translate3d(' + s + 'px, ' + e[1] + 'px, ' + e[2] + 'px)';
}
if (a.isOnScreen()) {
c.css({
'width'     : d[0],
'height'    : d[1],
'transform' : t
});
}`

thanks @tudormnt, I will try and see if its working.

@erensuleymanoglu Any news on the fix Tudormnt mentioned?
Best regards.

Hello everyone,
I think I found the solution (at last). Sorry for delay. Please check and give me feedbacks.
Regards.

Hi there, I am still getting this, especially on iPad and iPhone when a user scrolls up beyond the HTML. The image keeps bouncing upwards. Any resolution on this?


Use Makefile to run tests in travis

As suggested by @muawiakh,
The Makefile which allows users to execute make test to run the tests locally should also be used in Travis to run tests. This ensures that any changes which breaks the Makefile would be easily caught in Travis too.
/cc @codegeschrei

cc @vrde

I want to emphasise that this is not the original problem. The original problem is that the command docker-compose run --rm bigchaindb pytest -v did not work anymore. In more detail, all container were started but the tests were not executed.

The root of the problem is that our test infrastructure doesn't support nicely the integration tests marked with @pytest.mark.abci. I'll try to explain the main difference between the "legacy" integration tests (the ones with MongoDB to test localmongodb), and the ones recently introduced.
The setup for the "legacy" integration tests is simpler for one simple reason: in the tests we are in control of the connection to the system we are integrating with. If you take any test that talks to MongoDB, you'll see that our test suite opens and manages the connection to the database, and the setup is dead simple: run MongoDB (however you want: run mongod in a console, in a container with Docker, or in a more articulated Docker Compose setup). MongoDB will stay there waiting for your connections.
The setup for the @pytest.mark.abci tests is quite different. In this case, our application needs to provide a server that Tendermint will connect to. As you can see, it's a diametrically opposite case. The current solution to run those tests in Travis-ci is to:

Add the new variable abci_status in Dockerfile-dev, this is then store inside the container under the name BIGCHAINDB_CI_ABCI.
Add the new variable BIGCHAINDB_CI_ABCI in .travis.yml to trigger a new build job for the @pytest.mark.abci tests.
In .ci/travis-install.sh, if ${BIGCHAINDB_CI_ABCI} == 'enable', build the bigchaindb container passing --build-arg abci_status=enable
run a container called bdb that depends on the "health" container bigchaindb. This means that when you run bdb, it returns only when bigchaindb and all services around it are active. (bigchaindb depends on mongodb and tendermint, so they are both started. Moreover, bigchaindb has a healthcheck option that pings both the bigchaindb container and the tendermint container.)
when the bigchaindb container is ran, the .ci/entrypoint kicks in, and based on the env variable BIGCHAINDB_CI_ABCI that has been passed at build time, it decides if it's time to run the actual bigchaindb code, or if it should not run anything and sleep for 3600 seconds.

There are three test using this system:
 ~/a/r/bigchaindb git:(master) ➜ ag pytest.mark.abci -A2
tests/tendermint/test_lib.py
<EMAIL_ADDRESS>356-def test_post_transaction_responses(tendermint_ws_url, b):
357-    from bigchaindb.common.crypto import generate_key_pair

tests/tendermint/test_integration.py
<EMAIL_ADDRESS>104-def test_upsert_validator(b, alice):
105-    from bigchaindb.backend.query import VALIDATOR_UPDATE_ID

tests/tendermint/test_event_stream.py
<EMAIL_ADDRESS><EMAIL_ADDRESS>
74-async def test_subscribe_events(tendermint_ws_url, b):

Those tests need the ABCI Proxy App bigchaindb/tendermint/core.py::App to run before they are executed. Why? Because they trigger some logic that the Proxy App needs to execute, for example the logic for test_upsert_validator is:
Import some stuff
@pytest.mark.abci
def test_upsert_validator(b, alice):
    from bigchaindb.backend.query import VALIDATOR_UPDATE_ID
    from bigchaindb.backend import query, connect
    from bigchaindb.models import Transaction

Create a new request to add a validator.
    conn = connect()
    public_key = '1718D2DBFF00158A0852A17A01C78F4DCF3BA8E4FB7B8586807FAC182A535034'
    power = 1
    validator = {'pub_key': {'type': 'ed25519',
                             'data': public_key},
                 'power': power}
    validator_update = {'validator': validator,
                        'update_id': VALIDATOR_UPDATE_ID}

Store the validator request in the database used for tests.
    query.store_validator_update(conn, deepcopy(validator_update))

The Upsert Validator request is executed at the end of a block. A block is created when there is at least one transaction to store. Here we create and send a new transaction to trigger a new block creation. We use broadcast_tx_commit to stop until the new transaction has been put in a new block by Tendermint.
    tx = Transaction.create([alice.public_key],
                            [([alice.public_key], 1)],
                            asset=None)\
                    .sign([alice.private_key])

    code, message = b.write_transaction(tx, 'broadcast_tx_commit')
    assert code == 202

    validators = b.get_validators()
    validators = [(v['pub_key']['data'], v['voting_power']) for v in validators]

    assert ((public_key, power) in validators)

My question is: can we simplify this? I have a couple of ideas. I'll add them later.


update_connection() returned 400033 Bad Request

Describe the bug
I'm trying to loop thru all the datasource/workbook connections and update the connection password. However, it will randomly returned 400033: Bad Request. Sometime, it works for more than 5 connections but sometime only works for 1 connection.
This was working before Oct 13th.
Versions
Tableau Server version (or note if using Tableau Online) - Tableau Online 2023.3.0 (20233.23.1012.1548) 64-bit Linux
Tableau Pod: us-west-2b
Python version: 3.9.13
TSC library version: 0.28
To Reproduce

tableau_auth = TSC.PersonalAccessTokenAuth(<token_name>, <token_pw>, site_id=<tableau_site_id>)
server = TSC.Server(<tableau_server_address>, use_server_version=True)

with server.auth.sign_in(tableau_auth):
    for datasource in TSC.Pager(server.datasources.get):
        for item,conn in enumerate(datasource.connections):
            connection = datasource.connections[item]
            connection.embed_password = True
            connection.server_address = <connection_server_address>
            connection.username = <connection_server_username>
            connection.password = <connection_server_password>
            server.datasources.update_connection(datasource, connection)

    for workbook in TSC.Pager(server.workbooks.get):
        for item,conn in enumerate(workbook.connections):
            connection = workbook.connections[item]
            connection.embed_password = True
            connection.server_address = <connection_server_address>
            connection.username = <connection_server_username>
            connection.password = <connection_server_password>
            server.workbooks.update_connection(workbook, connection)

Results
  File ".../tableauserverclient/server/endpoint/endpoint.py", line 292, in wrapper
    return func(self, *args, **kwargs)
  File ".../tableauserverclient/server/endpoint/datasources_endpoint.py", line 165, in update_connection
    server_response = self.put_request(url, update_req)
  File ".../tableauserverclient/server/endpoint/endpoint.py", line 239, in put_request
    return self._make_request(
  File ".../tableauserverclient/server/endpoint/endpoint.py", line 166, in _make_request
    self._check_status(server_response, url)
  File ".../tableauserverclient/server/endpoint/endpoint.py", line 189, in _check_status
    raise ServerResponseError.from_response(server_response.content, self.parent_srv.namespace, url)
tableauserverclient.server.endpoint.exceptions.ServerResponseError:

	400033: Bad Request
		There was a problem updating connection information for datasource 'xxxxxxxxxxxxx'.

You're not alone on these... I'm also getting errors like this when trying to create subscriptions.
400063: Bad Request
errors.bad_request.detail.generic_create_subscription
It seems all of my scripts related to subscription items no longer work but were working earlier this week and last month.

Have you the solution for 400033 issue??

@Rishav-dev-star No, same error.


Add gizmos to core

Add APIs to

[ ] Display gizmos for scale, rotate, translate (one or all)
[ ] Control mesh with drag and drop using the gizmos

https://github.com/BabylonJS/Babylon.js/pull/4285

I have a question/suggestion. Will the Gizmo have a :

Snap mode.
Axis local and world mode.
An undo/redo all the manipulations.

it would be interesting to have his possibilities too.
Thanks.

Snap: yes
Local/world: yes
Undo:redo: not in v1

Wouldn't it be nice if we could easily override the mesh transform applied when interacting with Gizmos ?
For example, with the axisDragGizmo I'd like to be able to change easily the function called on drag.
I could remove the current function called here  this._dragBehavior.onDragObservable.add((event)=>{...}), and replace it with a custom function but it looks rather dirty to me. Also the _dragBehavior parameter is private and so I couldn't do that in typescript.

Yeah, it would be nice to have the dragBehavior public, and maybe also the sub-gizmos ? Like the _xDrag, _yDrag and _zDrag for the Position Gizmo. It would make make easier for developers to tweak gizmo behaviors a bit without extending gizmo classes.

👍 sounds useful to me, I'll make these public.


Crash when trying to for loop contour in release mode iOS

Describe the bug
I'm trying to find contours in an image, but the app crashes when i try to run a for loop even with nothing inside it. This only happens in release mode for iOS, haven't tested for Android yet. This also seems to happen if the size of the contour list is larger than roughly 300.
What boggles my mind further is if i put a random print("hello") statement before the for loop, it is less likely to crash but as long as contour list is still low.
To Reproduce
Steps to reproduce the behavior:

Create the following:

(Contours, Mat) contour = cv.findContours(
    imageMat, cv.RETR_EXTERNAL, cv.CHAIN_APPROX_SIMPLE);

final Contours contourList =
    contour.$1;

Attempt to for loop the list:

for (final contour in contourList) {}

Run it in debug mode then release mode.

Expected behavior
The code should run through just fine.
Screenshots
Desktop (please complete the following information):

macOS

Smartphone (please complete the following information):

iPhone 13 (physical device)

Additional context
IOS crash logs indicate something about EXC_GUARD and GUARD_TYPE_USER.

Uh issue solved, just need to wrap for loop in a try catch. Silly me.

Well... Could you please post the full crash log?
try catch just handles the exception but it still exists, I am not an apple user so can't reproduce it, more info is needed to debug.


Add cita_jsonrpcTest.sh into the CI.

Description
Check the tests folder by the way.
Additional Information
#321

Already have mock test.
only cors


Feature Request: Implement /brainstorm to discuss code before it edits files

Request
Sometimes I try telling it "Discuss with me and do not code anything..." So I can see what solution it comes up with. I may not fully like it's solution and use the next request to make corrections or go a different route. I would love to have a feature that lets you brainstorm with the LLM before implement the changes and committing the code.
Maybe it could be as simple as /brainstorm  followed by the request which would enable the LLM to work on files it stores temporarily so they are in memory. This may use more tokens but saves time trying to revert to previous commits searching for one that wasn't broken in a chain of LLM auto coding.
Version and model info
No response

i have used aider a lot, for pet ideas, pet projects, semi-serious (but hobby stuff). it is a big limitation that it wants to jump to coding immediately, and apologizes when ones ask first to think or go thru brainstorm, etc. I agree that whatever the solution may be, we need to be able to enter 'modes'. another one that is immediately obvious to me is, when debugging, the contest gets filled with info about errors, and it should also be a very different prompt and mode, and the history cache should try to avoid retaining previous failed tests, which makes the llm extremely confused. for example, a command like /once  could produce a response from the llm and not be stored in info. in general, it points to the need to adjust prompts and memory (context/history) depending on the cont. lifecycle of ideate -> design/architect -> code -> test -> release.

Thanks for trying aider and filing this issue.
This looks like a duplicate of #795, so I'm going to close it so discussion can happen there. Please let me know if you think it's actually a distinct issue.

@paul-gauthier I believe this would be a distinct feature from the original issue raised in #795.
From the description of Aider: "Aider lets you pair program with LLMs, to edit code in your local git repository"
This feature would focus on "pair programming" where Aider can feel like a contractor that jumps the gun and runs away with the code for a while. I feel like Aider is meant to be a coworker that helps you plan and implement YOUR ideas but needs to keep the original intention of the code in mind to do that.
When I use "don't code just discuss" before a prompt, I can iterate over a plan of action to tackle a new feature that may take multiple steps. I work with the LLM and it seems to understand "our" plan. I tell it to proceed with step 1 and it understands the purpose of implementing that code.
eg.

Make function A
Make function B to use A
Make function C

I use the next request to fix a bug or tweak its result. When I tell it Let's work on step 2 now it replies I don't have memory of what was discussed but I can <insert completely wrong direction of code here>.
I think it should be possible to create a temporary "Concept Outline" file that Aider keeps in memory to tackle a multistep process.
For example it could keep

The list of steps needed to code the feature
A summary of it's understanding for the outcome with references to the conversations that made the outcome clear
A dictionary of what it proposed for each step with independent summaries of how it would tackle that step. (files needed to edit and/or files needed to add)

Almost like it keeps a kanban board in memory and knows when tasks have been completed to reach the agreed upon goal.


New types wrong for waitForNavigation

What are you trying to achieve?
To set the waitForNavigation in the playwright config but the type is expecting a number instead of a string
What do you get instead?

Details

CodeceptJS version:3.3.5
NodeJS Version: 12
Operating System:mac
puppeteer || webdriverio || testcafe version (if related) playwright

Fixed in https://github.com/codeceptjs/CodeceptJS/pull/3401

Fixed in #3401

thank i will just wait for the release


conv_rnn refactoring

Ref #99
conv_rnn and kim_cnn are both sentence classification models - they should share the same API, and in general be structured the same way.
@Impavidity @daemon please coordinate on this.

#99 #101
Maybe we can have all the shared modules in /common/ and the model-specific stuff in the current directories. For example, the user runs something like python -m conv_rnn from the base directory.

SST-1 torchtext Dataset is now available in the datasets module. SST-2 will be added in the next 2 weeks.


Use org.bukkit.Color instead of TextColor in Text Hologram Background

I'd recommend saving background field in only one way instead of transparent, green, #RRGGBB
If that's okay I can create another pr for that.

Do you think you could rename this or move the persistent related commits into a separate branch/pr. After you've done that I can review the PR

Just making note that this PR would resolve https://github.com/FancyMcPlugins/FancyHolograms/pull/33

Do you think you could rename this or move the persistent related commits into a separate branch/pr. After you've done that I can review the PR
Yeah I accidentally committed persistent holograms here too, I'll create two different branches for these two features.

separated as #95 & #96


HydrostaticMass why not allow the selection of a fitted model from the passed profile?

Currently you MUST pass a profile but I can make it more convenient than that, let the models be optional and throw an error if no model can be found in the profiles, OR if there are multiple fitted models.

Or maybe even remove the profiles auto fitting and enforce that profiles have to have had a fit run BEFORE being passed in - hoenstly that might make more sense than what I have currently


[firestore-bigquery-export] Way to handle duplicate fields

Describe your configuration

Extension name: firestore-bigquery-export
Extension version: 0.1.12

Describe the problem
I have a field in my Firestore collection named timestamp. The view already has a timestamp field so it conflicts with my timestamp field. Is there a way to preserve my field's name and provide an alternative name to prevent the conflict?
Steps to reproduce:

Create a firestore collection with a document with a field named timestamp
Export to BigQuery using the extension
Generate schema views using the script with the following schema.json:

{
    "fields": [
        {
            "name": "`timestamp`",
            "type": "number"
        }
    ]
}

Expected result
It should be able to create the schema view
Actual result
Error in creating the schema view: Field timestamp already exists in schema

@kuuuurt
I'll need to confirm , but feel that timestamp is currently a reserved keyword.
This could potentially be a request for an update that could override reserved or key fields?

Yes. If there's a way we can use the timestamp field but maybe we can change the name somehow to prevent collision
{
   "name: "timestamp",
   "type": "number",
   "???": "other_name_for_timestamp" // to be used in the SQL script

Just an idea but maybe you could have some better way.

@kuuuurt
It appears this functionality already exists...
{
  "fields": [
    {
      "name": "order", //reserved sql column name
      "type": "string",
      "column_name": "new_column_name"
    },
    {
      "name": "select", //reserved sql column name
      "type": "number",
      "column_name": "other_new_column_name"
    }
  ]
}

This is not currently documented, so i'll create a PR for more visibility for the feature.
This will also be a potential solution for https://github.com/firebase/extensions/issues/591

It works! For both issues. Thanks!


[Bug]: Can't parse block by id, iota-sdk lib error

Issue description
Can't parse a block
`
from iota_sdk import Client
node_url = "https://api.testnet.shimmer.network"
client = Client(nodes=[node_url])
block = client.get_block_data(
"0xe297baed348de994911ae0d5938d54301c8ce363d5d276604d257493d78d8e50")
`
dacite.exceptions.UnionMatchError: can not match type "dict" to any type of "payload" union: typing.Union[iota_sdk.types.payload.TaggedDataPayload, iota_sdk.types.payload.TransactionPayload, iota_sdk.types.payload.MilestonePayload, NoneType]
Version
iota-sdk 1.1.3
shimmer testnet
Founded 3.10.11 & 3.10.0
Expected behaviour
{'protocolVersion': 2, 'parents': ['0x2f5760d1010bf005094b77e1b8d5811cf7455a9093b9408cf2af0b95a1f2a805', '0x3ccae3cee2c09d1bd0e4d8fb8a23ab6e523eef98394c1ac4b781cc5149ea8aec', '0x90857ad10dbc5aaf0d78e5f6d9c307c8541d1e00cff61862383d69cec98dce83', '0xd38901542636b79282f99a793ae148ec8018cf22943073e46bcc4c58fb5318a5'], 'payload': {'type': 6, 'essence': {'type': 1, 'networkId': '7784367046153662236', 'inputs': [{'type':
0, 'transactionId': '0x1f990711d520528df4d2706be0ff01a6416461be8b958a9f54f15478c65fab77', 'transactionOutputIndex': 1}], 'inputsCommitment': '0xaa023fca4392050738312265c8ee0588ad779b0aaf7082dd0021afce93552660', 'outputs': [{'type': 3, 'amount': '1000000', 'unlockConditions': [{'type': 0, 'address': {'type': 0, 'pubKeyHash': '0xf2b586f6fdfc30dfc20303ea114bec934521649ad0c80a21d97cea84b0369728'}}]}, {'type': 3, 'amount': '535315792443', 'unlockConditions': [{'type': 0, 'address': {'type': 0, 'pubKeyHash': '0x53bb2ddca4a63179b77655af7dcb67a3f10816dfc7c2809f5eaa313e5d2223ad'}}]}], 'payload': {'type': 5, 'tag': '0x4255494c442e35'}}, 'unlocks': [{'type': 0, 'signature': {'type': 0, 'publicKey': '0xc8f83ca19656ae2dc39ded1aa9fcd2768823b0544a233f2eb5e547abf22f13b3', 'signature': '0x73dcff917b39710c9a8c5a2e15358ef19e677cad59f536b2fbad40d1a9512faddbde37c0052e5ef3f6a4c1820e4c9e0b2df1b80fbdc3832a8fc9ec019168910e'}}]}, 'nonce': '9223372036855597748'}
Actual behaviour
dacite.exceptions.UnionMatchError: can not match type "dict" to any type of "payload" union: typing.Union[iota_sdk.types.payload.TaggedDataPayload, iota_sdk.types.payload.TransactionPayload, iota_sdk.types.payload.MilestonePayload, NoneType]
Can the issue reliably be reproduced?
Yes
Steps to reproduce the issue
pip install iota-sdk
python3 test.py
test.py >>
`
from iota_sdk import Client
node_url = "https://api.testnet.shimmer.network"
client = Client(nodes=[node_url])
block = client.get_block_data(
"0xe297baed348de994911ae0d5938d54301c8ce363d5d276604d257493d78d8e50")
`
Errors
No response
Duplicate declaration

[X] I have searched the issues tracker this issue and there is none

Using a lib https://github.com/konradhalas/dacite with last contibute 1 years ago is bad idea, guys

Depents for task, which need a solve from outsource https://github.com/konradhalas/dacite/issues/58

@Thoralf-M I think that's it what we need, how much time we need to wait for release fix? To be honest, we need it as fast as possible

@abcen7 we released https://pypi.org/project/iota-sdk/1.1.4 where this should be fixed, please try that

Tried, thanks for solving, finally we created mqtt-worker for outsource IOTA transactions! <3


Moves documentation linked but not written

The Client links to the Moves documentation but that page seems to not be implement as it simply states 'not found'

Thanks for the report. Will fix.

This is now fixed.


[BUG] Links not working

Description
Describe the bug:
When we click on the social media icons . It redirects us to to same page .
Expected behavior:
It should redirect to to their respective page .
Actual behavior:
When clicked on the Social Media icons . It redirects to the same page .
Reproduction Steps
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected result:
It should redirect to their respective Social Media platforms .
Actual result:
A clear and concise description of what actually happened at each step.
Screenshots

Additional Information
Device (please complete the following information):

OS: [Windows
Browser [Chrome]
Version [e.g., 22]

Additional context:
Add any other context about the problem here.

Hey @parthpathakpp1 , Currently We are not having all the social media accounts, so you can:

remove the instagram, Twitter , whatsapp icon from there
For Email icon -> add this<EMAIL_ADDRESS>For youtube icon -> add this link : https://youtu.be/EV6m7hZ4RKU

I am assigning you this issue.

Hey @parthpathakpp1 , Currently We are not having all the social media accounts, so you can:

remove the instagram, Twitter , whatsapp icon from there
For Email icon -> add this<EMAIL_ADDRESS>For youtube icon -> add this link : https://youtu.be/EV6m7hZ4RKU

I am assigning you this issue.

@Siddhant-Patil0203 Could you help me to setup the project locally . I am unable to setup it locally .

I have raised a PR https://github.com/UBA-GCOEN/StichHub/pull/254 . Please Check .

i would like to work on this project. please assign it to me.

i would like to work on this project. please assign it to me.

Hey @Komallamba17 ,
@parthpathakpp1 is already working on this issue and has almost resolved it.
Pls checkout other issues or find bug on our website stichhub.vercel.app , Thank you 👨💻


Removed run_all_in_graph_and_eager_mode in sparsemax.

See #1328

@andreasmadsen
You are owner of some files modified in this pull request.
Would you kindly review the changes whenever you have the time to?
Thank you very much.

LGTM! Thanks


Geographically weighted regresson

The justification for this PR is to introduce a contributor module for geographically weighted regression (GWR). The GWR module is dependent upon scipy/numpy and the GLM module that is currently in the contrib folder being used by the SpInt module.
The current GWR code allows for the following options:
Model types
(1) Gaussian GWR
(2) Poisson GWR
(3) Binomial GWR
Kernel function types
(1) Gaussian (slightly different from than the one in weights)
(2) Exponential
(3) Bi-square
Kernel types
(1) fixed (distance-based)
(2) adaptive (nearest-neighbor)
At the moment, there is a custom class used to compute the inter-observation distances akin to a weights matrix. The reason for this was because the current Kernel class is optimized for memory overhead, rather than speed and the speed is crucial for GWR. Also, the current class automatically truncates "far" away observations, where this is not always desirable in GWR. A final difference is that this custom class does not return a W object, which was simpler and lighter to work with, since GWR only need the inter-observation distances and not other topological relations. In the future, it could be optimal to rename this and have it somewhere more central in case it is useful for other work.

Coverage remained the same at 83.074% when pulling f2dff3812276717ace0dbc60b78e8b66a6fab258 on TaylorOshan:gwr into e7ec26633e92ae13a9a9fe745afb8f7be8e575b9 on pysal:dev.

Looks good.


2 outputs connected to 2 different nodes and if condition is true  then  node which is connected to first output is executed only. if false then executed second ouput connected node ?

I have scenerio like decision .one node has 2 outputs which is labelled as true and false. then for true one node is conncted and false another one node is conncted. bt how we can differentiate that 2 outputs based on true false condition.i had try but it executed both at a time. i want if condition is tru then executed first output.and false execute 2 one.


Ignore bugs filed by the wpt-sync bot

Applies on top of #374.

Coverage decreased (-0.04%) to 27.897% when pulling 11525f58e3fe88dcf91cb08a5d42198edbe557bc on marco-c:ignore_wpt_sync into<PHONE_NUMBER>22a4365bb8482a43f851fd070c228c on mozilla:master.

@marco-c do you remember why we did that?

This was changing the 'regression' script config rather than the no_crashes one, no_crashes was ignoring intermittent-bot since the beginning (#202).
For 'regression', we did this because:

wptsync never files bugs which are regressions (it only files bugs tracking web-platform-tests updates);
the intermittent bot sets the regression keyword by itself.


Add default wallet indicator

Closes #2426

@asif-finimble Would you be able to re-target this to the current master? I didn't see that it was locked to the dark theme - sorry about that! Dark Theme has been merged.


Fix quickstart code sample

Either use correct parameters in callback or use the returned promise.

[x] Tests and linter pass
[x] Code coverage does not decrease (if any source code was changed)
[x] Appropriate docs were updated (if necessary)

Thanks!


Allow creating order by specifying amount and price.

It would be nice to create a buy limit order by specifying the maximum amount to spend, and the maximum price you are willing to pay per share.
You can achieve such a FOK order using createMarketBuyOrder, but there's no way to create such a GTC or GTD order.
What we want is to choose the maker amount and price, then have the client calculate the taker amount based on the price.
The only reason we can't use createMarketBuyOrder is because the decimal place rounding is setup only for FOK orders.

Oh actually I didn't realise that with GTC and GTD orders, it orders exactly takerAmount shares and only uses the makerAmount to determine the limit price.
This behaves the opposite of FOK orders, which aim to spend exactly makerAmount and only use the takerAmount to determine the limit price.
This is very unclear from the docs. So I guess what I'm asking for is impossible.


Unable to import app.py: Instance and class checks can only be used with @runtime_checkable protocols

Hi there,
I am trying to deploy locally a langchain app using lc-serve but I am now getting this error.
The code runs on Colab without issues; I am using llama-index. I am using version 0.0.38 (tried with both Python 3.9 and 3.10, same issue)

Same using 0.0.38

Hey @cyberandy ,
What is the error you are getting?

Hi there

Here is the error I get just after launching the local deploy (lc-serve deploy local app.py)
Unable to import app.py: Instance and class checks can only be used with @runtime_checkable protocols


[FEA] Join support for passing MapType columns along when not join keys

Is your feature request related to a problem? Please describe.
Join support for passing MapType columns along when not join keys.
Currently joins don't allow this but it should work.  One issue here might be with Sort supporting if its a sort merge join.

Fixed by #3011


Make instance name and separator optional

Closes #17 and makes :: and the name in instance declarations optional as per PureScript 0.14.2.
I'm not sure if the parser might be too lenient now, because I'm not a 100% sure about what's optional now and in which combination.

This differs from PureScript only slightly. In PureScript, the name and
separator are parsed together. However, your version makes it possible to
have a name without a separator or vice versa, which is not what PureScript
does. Either both are there, none, or a parsing error occurs.

@JordanMartinez I updated it to work like this (I think). Could you have another look? Also my code seems out of place with the rest of the codebase, I wonder if there's a better way to model this.

@JordanMartinez Do you think I should turn this into a tuple, too then? Or change the way I do foldMap?

:man_shrugging: I don't know. I'd ask Nate.

Other constructors like this use Maybe (Tuple ... ...) (eg. constraints). Records vs Tuple is obviously contentious, but since Tuple is used elsewhere, I'd use that for now. I'd also go ahead and just shorten it to name rather than nameAndSeparator (again, like constraints).
type InstanceHead e =
  { keyword :: SourceToken
  , name :: Maybe (Tuple (Name Ident) SourceToken)
  , constraints :: Maybe (Tuple (OneOrDelimited (Type e)) SourceToken)
  , className :: QualifiedName Proper
  , types :: Array (Type e)
  }

Do you mind adding yourself to Contributors.md?

This is fixed in https://github.com/natefaubion/purescript-language-cst-parser/commit/ebefb58d2668caf62c1b8b05fa10afa5a54dc647

Ha! Of course I saw the notification about this getting closed, but not the one with your review!
Sorry for not getting back to it, and great that this is now supported!


Examples for no_std usage?

Are there any plans on adding examples on how to use this with no_std?

I think it is a good idea! Probably something basic, not a complete app for a specific microcontroller. I don't really have much experience with no_std in Rust. I think it would be best if someone with such experience contributed it.

I'm just working on integrating this to my operating system, so I could probably write an example. How concrete are we talking about?
Here is some code (unfinished, untested, uncommented) that might become a part of an example:
#[derive(Debug)]
struct AtaError;

fn ata_read(start_sector: u64, sector_count: u8) -> Result<Vec<u8>, AtaError> {
    todo!("This is platform dependent");
}

#[derive(Debug)]
enum DiskCursorIoError {
    UnexpectedEof,
    WriteZero,
}
impl fatfs::IoError for DiskCursorIoError {
    fn is_interrupted(&self) -> bool {
        false
    }

    fn new_unexpected_eof_error() -> Self {
        Self::UnexpectedEof
    }

    fn new_write_zero_error() -> Self {
        Self::WriteZero
    }
}

struct DiskCursor {
    sector: u64,
    offset: usize,
}

impl DiskCursor {
    fn get_position(&self) -> usize {
        (self.sector * 0x200) as usize + self.offset
    }

    fn set_position(&mut self, position: usize) {
        self.sector = (position / 0x200) as u64;
        self.offset = position % 0x200;
    }

    fn move_cursor(&mut self, amount: usize) {
        self.set_position(self.get_position() + amount)
    }
}

impl fatfs::IoBase for DiskCursor {
    type Error = DiskCursorIoError;
}

impl fatfs::Read for DiskCursor {
    fn read(&mut self, buf: &mut [u8]) -> Result<usize, DiskCursorIoError> {
        let mut i = 0;
        while i < buf.len() {
            let data: Vec<u8> =
                ata_read(self.sector, ((buf.len() - i) / 0x200).max(1)).expect("ata error");
            let data = &data[self.offset..];
            if data.len() == 0 {
                break;
            }
            let end = (i + data.len()).min(buf.len());
            let len = end - i;
            buf[i..end].copy_from_slice(&data[..len]);
            i += len;
            self.move_cursor(i);
        }
        Ok(i)
    }

    fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), DiskCursorIoError> {
        let n = self.read(buf)?;
        assert!(n == buf.len(), "TODO: Error");
        Ok(())
    }
}

impl fatfs::Write for DiskCursor {
    fn write(&mut self, buf: &[u8]) -> Result<usize, DiskCursorIoError> {
        todo!("Write");
    }

    fn write_all(&mut self, buf: &[u8]) -> Result<(), DiskCursorIoError> {
        todo!("Write");
    }

    fn flush(&mut self) -> Result<(), DiskCursorIoError> {
        Ok(())
    }
}

impl fatfs::Seek for DiskCursor {
    fn seek(&mut self, pos: fatfs::SeekFrom) -> Result<u64, DiskCursorIoError> {
        match pos {
            fatfs::SeekFrom::Start(i) => {
                self.set_position(i as usize);
                Ok(i)
            }
            fatfs::SeekFrom::End(i) => {
                todo!("Seek from end")
            }
            fatfs::SeekFrom::Current(i) => {
                let new_pos = (self.get_position() as i64) + i;
                self.set_position(new_pos as usize);
                Ok(new_pos as u64)
            }
        }
    }
}

pub fn ls_dir(path: &str) {
    let c = DiskCursor {
        sector: 0,
        offset: 0,
    };

    let fs = fatfs::FileSystem::new(c, fatfs::FsOptions::new()).expect("open fs");
    let mut cursor = fs.root_dir().open_dir(path).expect("move to dir");

    let mut result = Vec::new();
    for entry in cursor.iter() {
        let entry = entry.expect("Entry");
        raw_println!("{}", entry;)
    }
}

Looks good to me :) Write support would be nice, are you planning to add it to?
Perhaps there should be some main function so it compiles fine when put into examples folder.

It doesn't seem like it would be too much to implement Read Write and Seek like fscommon:BufStream but using sdmmc
Maybe someone already has?

@x37v, I'm currently trying to implement it for the STM32 L4 HAL, but I'm getting a CorruptedFileSystem error from the BootSector::validate function.

@x37v, I'm currently trying to implement it for the STM32 L4 HAL, but I'm getting a CorruptedFileSystem error from the BootSector::validate function.

hey @reitermarkus , cool that you're doing this, I'd love to see your work in progress if you're willing/able to share. I hope to try this out with the stm32h7xx_hal when I get some chance.. I imagine it wouldn't be a whole lot different than what you're doing.

It's here https://github.com/stm32-rs/stm32l4xx-hal/pull/315.

It's here stm32-rs/stm32l4xx-hal#315.

I added a comment into your PR.. not sure that it will solve things but I'm curious.

Following up on this, @reitermarkus told me that the fatfs support works in this branch: https://github.com/reitermarkus/stm32l4xx-hal/tree/sdmmc
I've addapted that code for stm32h7xx-hal in a branch and have successfully run some example code on the stm32h750.


Branch sdk v2 with gdpr support

GDPR is approaching. Please could we review and consider merging this PR?

👍

Thank you


Mock fopen failure

To test some critical paths I would like to test opening a file that is perfectly readable and a file but then to fail (return false) on the fopen() call.
Just to simulate a failure case (e.g. the file is deleted between an internalized is_file / is_readable check before the line where fopen is called - that fopen call could return false which is handled in the code (and should!) but I can't test for that path with vfsstream.
Looking into the implementation for the stream_open I didn't found any option to simulate such a failure.
public function open(string $file): void {
    if (!is_file($path) || !is_readable($file)) {
        throw new \BadMethodCallException('Not a readable file');
    }
    $result = fopen($file, 'r');
    if (false === $result) {
        // can't test for this path in code
    }
}

I could write an ad-hoc poc, here an example test method (Phpunit based) which shows the interface and demonstrates use:
    [...]
    /**
     * @test
     */
    public function vfsStreamFopen()
    {
        $root = vfsStream::setup('root', null, ['noopen.ext' => '']);
        $file = $root->getChild('noopen.ext');
        $path = $file->url();
        $this->assertFileIsReadable($path, 'precondition');
        $file->setOpenError('test');

        $result = @fopen($path, 'r');
        $this->assertFalse($result);
    }
    [...]
¨¨¨

Please let me know any feedback to this, if of interest, I can file a PR.

Just seeing you're on the road, so thought it's just fair I create a full PR so you can better review it straight away when you find the time.

A start was done in https://github.com/bovigo/vfsStream/pull/156, but not finished. The suggested fix is to create a new erroneous file that allows setting specific error messages on an array of actions.
$root = vfsStream::setup();
vfsStream::newErronousFile('foo.txt', ['open' => 'error message'])->at($root);

@bizurkur Nice! Thank you a lot for the initiative!


Implementation of randint and random_integers

The main focus of this PR is the implementation of cupy.random.randint and cup.random.random_integers and their unit tests. But it also includes the following implementations.

Fixes of unit tests of cupy.random.RandomState (especially those uses mocking objects).

Although these tests replaced global functions with mocking objects they left these functions as they are. Because of this, unit tests that follow these tests were forced to use replacing mocking objects instead of original ones. It caused unexpected errors. This PR fixes the problem by restoring original replaced functions.

Goodness-of-fit test with Pearson's Chi-squared test
Add more unit tests of cupy.random.generator which utilize the goodness-of-fit test module.

This PR is a feature PR, but changes relating to FunctionSwitcher in RandomState's unittestsis a bug fix. So I extract bug fixes and make it new PR as #443

Do we need to add these functions to the reference document?


NetBSD cannot connect to asset server

Godot version:
Godot 3.2.x git
OS/device including version:
NetBSD 9 AMD64
Issue description:
I am given an error about trying to connect to the asset server. I don't know if this is a NetBSD issue or a godot issue.
Steps to reproduce:
Compile the 3.2.x git on NetBSD and watch the output in xterm. It loads fine, but gives an error about not being able to connect to the asset server.
ERROR: connect_to_host: Connection to remote host failed!
At: core/io/stream_peer_tcp.cpp:94.

Are you behind a proxy or on a dual-stack IPv4 + IPv6 connection? If so, see #6100 and #36418.

I've seen the same issue while porting the 3.2 branch to NetBSD.
I was running in VirtualBox and my networking setup was a bit hacked together as it doesn't seem to work out of the box on a fresh NetBSD 9.0 install to share the host connection:

Enabled dhcpcd: http://www.netbsd.org/docs/network/dhcp.html#enable-dhcp
Installed CA certificates: https://www.cambus.net/installing-ca-certificates-on-netbsd/

I haven't tried further but it's possible that the problem is not with the Asset Library but just with Godot on NetBSD not being able to do a TLS connection.

I've checked and confirmed that it doesn't seem related to the Asset Library, but the networking stack which doesn't seem to work currently in NetBSD.
See this test project: Test Network.zip
(It's the second example from https://docs.godotengine.org/en/stable/classes/class_httprequest.html)
On NetBSD HTTPRequest fails to connect to the host, both with https:// and http://.

DNS resolution is broken in NetBSD (connectivity itself works otherwise).
It seems that the flag AI_ADDRCONFIG of getaddrinfo is not implemented: http://gnats.netbsd.org/44777 , (very old, but I can't see any implementation in the latest(?) source either: http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/lib/libc/net/getaddrinfo.c?rev=<IP_ADDRESS> )


Deployment

#Deployment
User Story
As a boot camp student,
I want the prework notes to be structured on a webpage,
So that I can easily find and read the information.
Acceptance Criteria
GIVEN a Prework Study Guide website,
WHEN I visit the website using the URL,
THEN I can access my website from any browser

All complete, updated and deployed!!!


Project is not being processed if its window is hidden by other windows

Godot version
3.4.2 stable
System information
Ubuntu 20.04.3 LTS, GLES3
Issue description
Project is not being processed if its window is obscured by other windows. My project is extremely simple: a timer, and a text label with a number which the timer increments every second. However, if I alt-tab to another window (for example, a browser), and expect the number to tick in the background, it does not happen. I can wait for about 20 seconds with window not in focus, but the number in the label would advance by 1-2 seconds only. The issue only arises if the game window is not minimised, but obscured by other windows. If the project window is minimised instead, the slowdown does not occur.
Steps to reproduce

Run the minimal reproduction project
Observe the number incrementing
Remember the current number and alt-tab to some other window, e.g. a browser, so that the game window is completely obscured
Wait for 20-30 seconds
Alt-tab back, observe the number has stayed almost the same

Minimal reproduction project
Lag showcase.zip

@SymmetryUnbroken Can you reproduce this on 4.0 alpha1?

@Calinou Yes, I can. (Though I have to change line 6 of the script to $Timer.connect("timeout", _on_Timer_timeout) , presumably because syntax of connect was changed)


Unable to capture from specific device

Hi,
I am unable to capture from a specific device, but I am able to play back. The code structure remains the same and is derived from the examples.
package main

import (
	"fmt"
	"log"
	"os"

	"github.com/gen2brain/malgo"
)

func main() {
	context, err := malgo.InitContext(nil, malgo.ContextConfig{}, nil)
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
	defer func() {
		_ = context.Uninit()
		context.Free()
	}()

	// Capture devices.
	infos, err := context.Devices(malgo.Capture)
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}

	fmt.Println("Capture Devices")
	for i, info := range infos {
		e := "ok"
		full, err := context.DeviceInfo(malgo.Capture, info.ID, malgo.Shared)
		if err != nil {
			e = err.Error()
		}
		fmt.Printf("    ID: [%d]: %v, %s, [%s], formats: %+v\n",
			i, info.ID, info.Name(), e, full.Formats)
	}

	id := scanIdOption(infos)

	fmt.Printf("Reading audio from: %s\n", infos[id].Name())

	deviceConfig := malgo.DefaultDeviceConfig(malgo.Capture)
	deviceConfig.Capture.Format = malgo.FormatS16
	deviceConfig.Capture.Channels = 1
	deviceConfig.Playback.Format = malgo.FormatS16
	deviceConfig.Playback.Channels = 1
	deviceConfig.SampleRate = 16000
	deviceConfig.Alsa.NoMMap = 1
	deviceConfig.PeriodSizeInMilliseconds = 40
	deviceConfig.Capture.DeviceID = infos[id].ID.Pointer()

	var playbackSampleCount uint32
	var capturedSampleCount uint32
	pCapturedSamples := make([]byte, 0)

	sizeInBytes := uint32(malgo.SampleSizeInBytes(deviceConfig.Capture.Format))
	onRecvFrames := func(pSample2, pSample []byte, framecount uint32) {

		sampleCount := framecount * deviceConfig.Capture.Channels * sizeInBytes
		log.Println(framecount)

		newCapturedSampleCount := capturedSampleCount + sampleCount

		pCapturedSamples = append(pCapturedSamples, pSample...)

		capturedSampleCount = newCapturedSampleCount

	}

	fmt.Println("Recording...")
	captureCallbacks := malgo.DeviceCallbacks{
		Data: onRecvFrames,
	}
	device, err := malgo.InitDevice(context.Context, deviceConfig, captureCallbacks)
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}

	err = device.Start()
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}

	fmt.Println("Press Enter to stop recording...")
	fmt.Scanln()

	device.Uninit()

	infos, err = context.Devices(malgo.Playback)
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}

	fmt.Println("Playback Devices")
	for i, info := range infos {
		e := "ok"
		full, err := context.DeviceInfo(malgo.Playback, info.ID, malgo.Shared)
		if err != nil {
			e = err.Error()
		}
		fmt.Printf("    %d: %v, %s, [%s], formats: %+v\n",
			i, info.ID, info.Name(), e, full.Formats)
	}

	id = scanIdOption(infos)

	fmt.Printf("Playing audio to: %s\n", infos[id].Name())

	deviceConfig = malgo.DefaultDeviceConfig(malgo.Playback)
	deviceConfig.Capture.Format = malgo.FormatS16
	deviceConfig.Capture.Channels = 1
	deviceConfig.Playback.Format = malgo.FormatS16
	deviceConfig.Playback.Channels = 1
	deviceConfig.SampleRate = 16000
	deviceConfig.Alsa.NoMMap = 1
	deviceConfig.PeriodSizeInMilliseconds = 40
	deviceConfig.Playback.DeviceID = infos[id].ID.Pointer()

	onSendFrames := func(pSample, nil []byte, framecount uint32) {
		samplesToRead := framecount * deviceConfig.Playback.Channels * sizeInBytes
		if samplesToRead > capturedSampleCount-playbackSampleCount {
			samplesToRead = capturedSampleCount - playbackSampleCount
		}

		copy(pSample, pCapturedSamples[playbackSampleCount:playbackSampleCount+samplesToRead])

		playbackSampleCount += samplesToRead

		if playbackSampleCount == uint32(len(pCapturedSamples)) {
			playbackSampleCount = 0
		}
	}

	fmt.Println("Playing...")
	playbackCallbacks := malgo.DeviceCallbacks{
		Data: onSendFrames,
	}

	device, err = malgo.InitDevice(context.Context, deviceConfig, playbackCallbacks)
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}

	err = device.Start()
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}

	fmt.Println("Press Enter to quit...")
	fmt.Scanln()

	device.Uninit()

}

func scanIdOption(infos []malgo.DeviceInfo) int {
	fmt.Println("\r\nChoose an ID from the list above: ")
	var id int
	_, err := fmt.Scanf("%d", &id)
	if err != nil {
		log.Fatal(err)
	} else {
		fmt.Printf("\r\nChosen ID: [%d]\n", id)
	}

	if id >= len(infos) {
		fmt.Println("\r\nInvalid ID")
		panic("Invalid ID")
	}

	return id
}

If I comment deviceConfig.Capture.DeviceID = infos[id].ID.Pointer(), then I get audio captured from the default stream.
When this line is enabled, the callback is triggered and I received 640 bytes of zeroes. No data is received.
Am I missing something here?

Looks like there are some devices listed here that are not capture devices.
Capture Devices
    ID: [0]: 616c73615f6f75747075742e7063692d303030305f30305f31662e332e616e616c6f672d73746572656f2e6d6f6e69746f72, Monitor of Built-in Audio Analog Stereo, [ok], formats: [{Format:4 Channels:2 SampleRate:48000 Flags:0}]
    ID: [1]: 616c73615f696e7075742e7063692d303030305f30305f31662e332e616e616c6f672d73746572656f, Built-in Audio Analog Stereo, [ok], formats: [{Format:4 Channels:2 SampleRate:48000 Flags:0}]
    ID: [2]: 616c73615f6f75747075742e7063692d303030305f30315f30302e312e68646d692d73746572656f2d6578747261312e6d6f6e69746f72, Monitor of GP107GL High Definition Audio Controller Digital Stereo (HDMI 2), [ok], formats: [{Format:4 Channels:2 SampleRate:48000 Flags:0}]
    ID: [3]: 626c75657a5f696e7075742e36305f46445f41365f30425f34375f33442e30, miPods, [ok], formats: [{Format:2 Channels:1 SampleRate:16000 Flags:0}]
    ID: [4]: 626c75657a5f6f75747075742e36305f46445f41365f30425f34375f33442e312e6d6f6e69746f72, Monitor of miPods, [ok], formats: [{Format:2 Channels:1 SampleRate:16000 Flags:0}]

Choose an ID from the list above:

Id's 0 and 4 are not Capture devices, yet they show up here.
	infos, err := context.Devices(malgo.Capture)
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}

	fmt.Println("Capture Devices")
	for i, info := range infos {
		e := "ok"
		full, err := context.DeviceInfo(malgo.Capture, info.ID, malgo.Shared)
		if err != nil {
			e = err.Error()
		}
		fmt.Printf("    ID: [%d]: %v, %s, [%s], formats: %+v\n",
			i, info.ID, info.Name(), e, full.Formats)
	}

But it is not the case for Playback devices.
Playback Devices
    0: 616c73615f6f75747075742e7063692d303030305f30305f31662e332e616e616c6f672d73746572656f, Built-in Audio Analog Stereo, [ok], formats: [{Format:4 Channels:2 SampleRate:48000 Flags:0}]
    1: 616c73615f6f75747075742e7063692d303030305f30315f30302e312e68646d692d73746572656f2d657874726131, GP107GL High Definition Audio Controller Digital Stereo (HDMI 2), [ok], formats: [{Format:4 Channels:2 SampleRate:48000 Flags:0}]
    2: 626c75657a5f6f75747075742e36305f46445f41365f30425f34375f33442e31, miPods, [ok], formats: [{Format:2 Channels:1 SampleRate:16000 Flags:0}]

Choose an ID from the list above:

In playback devices, Capture devices are not to be seen.

I don't see an issue, or perhaps I didn't understand you. What do you get from aplay -l and arecord -l, you should get the same list. Depending on the sound card you get a list of all possible devices, i.e. I get 5 playback devices but only one I can use, similar to capture devices, they are not playback but there are monitors and whatnot devices, pick the correct one based on channels, format, skip monitor devices, etc.
The point of enumeration is that you get a list of possible devices, and you pick and choose one, I don't think there is any guarantee here, anyway, these are bindings, and even if there is an issue it will not be solved here.

Hi @gen2brain,
I think the code is too much in the previous comment.
The Issue I faced initially:

Playback devices were being shown in Capture list
For e.g. Built In audio was shown as Monitor which was a Playback device.
I was choosing this device as a Capture device, which was an incorrect choice.
Choosing an option without "Monitor" in the name solved the issue.

If it helps anyone, I will attach
captureToFile.txt
the modified capture.go file to store in in a wav file.