Serverless plugin "serverless-offline" not found.

The latest serverless.yml in chapters add-a-create-note-api.md and add-support-for-es6-es7-javascript.md includes the serverless-offline plugin.
executing $ serverless invoke local --function create --path mocks/create-event.json
generates the following error:
  Serverless Error ---------------------------------------

  Serverless plugin "serverless-offline" not found. Make sure it's installed and listed in the "plugins" section of your serverless config file.

Executing $ npm install serverless-offline -g will install the plug in and resolve the issue.
Suggesting to add the following (line 46)
<img class="code-marker" src="/assets/s.png" />Install Serverless Offline globally.

bash $ npm install serverless-offline -g in setup-the-framework.md

The serverless-offline plugin emulates AWS Lambda and API Gateway on your local machine to speed up your development cycles. It starts an HTTP server that handles the request's lifecycle like APIG does and invokes your handlers.

@TinCharMan In this page if you run a command as below, serverless-offline
is already included in serverless.yml.
$ serverless install --url https://github.com/AnomalyInnovations/serverless-nodejs-starter --name notes-app-api

And I think you don't need to run npm install -g but npm install --save-dev or yarn add --save-dev because it's in devDependencies of package.json.
Happy serverless!

Thank you both.  All good with latest repo.

To resolve this error while running an automated CI pipeline or locally, try the following:
- npm config set prefix /usr/local
- npm install -g serverless
- npm install serverless-offline -g
- npm install --save-dev
- serverless deploy --stage production --verbose

Also, check your package.json and ensure the serverless-offline package is included in devDependencies.
This fixed the issue for me.
Happy Serverless!

From a new serverless project, if everything is well installed (serverless-offline package...), check your serverless.yml.
You should have those lines :
plugins:
      - serverless-offline

Otherwise, this is why it does not work...
Regards.

Does your package.json mention "serverless-offline" ? (At least as devDependencies)

where can I find this file "package.json" as my procject.json file doesnt have this .

no my package.json file doesnt have "serverless-offline"

Ok, so you juste have to type into a terminal : npm install serverless-offline --save-dev

Ok, so you juste have to type into a terminal : npm install serverless-offline --save-dev

I think below warning message after running above commands creating problem , please comment
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.

I'm getting this error as well but I have installed it correctly and I have serverless-offline in my yml file. I even restarted my terminal session. Not sure what is going on.

Same here actually, and i do have it under my plugins in my serverless.yml


What's the problem that you want solve?

When using it like this:
$('#editor')     .trumbowyg()     .on('tbwchange', function(){ console.log("click"); });
the event is triggered two times in a row

Use a throttle :)

to use what ? O_O

If you want to avoid the bounce effect, use a debouce or throttle method.

the debounce method doesn't work.. the event is still called two times

Yep, but if you don't want to do 2 times an action, you just have to debounce it.
$('#your-editor').trumbowyg();
$('#your-editor').on('tbwchange', _.debounce(function () {
    console.log('CHANGE!');
}));

Yep, this is exactly what I did :) even I test if I initialize the editor twice by mistake or something, but no.. it's initialized only once, but with, or without the debounce the event is fired twice.
The editor is initialized in a Backbone View, but now I'm experimenting to switch from Backbone to ReactJS, so will see there how it will handle.


'Open new tab' In MacOS Sierra Terminal opens in the home folder always

#.. when it is supposed to open the new tab in the same folder from where Cmd+T (Shell | New Tab | New Tab with [same] Settings) was pressed. Oh, and I am using the default bash terminal.
This works fine in Ubuntu 16.04 (when I press Ctrl+Shift+T to open a new tab).
The only change I have made to the bash-powerline.sh file (in Mac and Ubuntu) is to add one line to the function ps1() to add a new line  #character:
PS1+="\e[m \n$ "
And, in .bashrc, the last line is this
source ~/.bash-powerline.sh
It works fine in MacOS if I uncomment the above last line in .bashrc.
Any idea how to resolve this? Thanks.

I don't know why it behaves that way, but I'd suggest you try iTerm2 instead. Much better than Terminal.

Ok. Thanks for looking into this. I revisited some SO.com posts that I was checking in the morning, and from one of them got the missing piece that resolves the issue (towards the end - line# 156):
# PROMPT_COMMAND=ps1                                          # <- existing code, commented out
PROMPT_COMMAND="ps1; $PROMPT_COMMAND"  # <- needed for Mac OS Sierra

Following up after encountering on a fresh install - this is something that will continue to affect the default behaviour in Terminal.app on macOS / X which sets PROMPT_COMMAND to update_terminal_cwd when set to open new tabs or windows in the same working directory.
@riobard would you consider updating (or accepting a PR) so that PROMPT_COMMAND is appended as described by @protoiyer in order to solve this problem on macOS? i.e.
PROMPT_COMMAND="$PROMPT_COMMAND;  ps1"
This shouldn't hurt other platforms and would play nice with any other prompt commands - unless there is a reason for overriding on some configurations?
Alternatively, suggest adding a description to the README as a reminder to others and future self.

@narkowicz I don’t personally use Terminal.app, but a PR to fix the issue would be highly appreciated :)


fix: performance degradation for auxiliary files

Summary

Checklist

[ ] Tests updated (or not required).
[ ] Documentation updated (or not required).

!bench

!bench

!bench


refactor: tests that use eventbus wait for eventbus to finish posting events

Part of: https://linear.app/customerio/issue/MBL-95/reduce-time-it-takes-for-test-suite-to-execute-by-replacing-sleep
The EventBus performs a lot of async operations that test functions try to test against. This change tries to increase the performance and reliability of tests that use the EventBus.
The following changes have been made:

All properties of Mock classes are now atomic for thread-safety. This is required for the EventBus async operations to update values on different threads then the test function.
Added functions to EventBus that wait for operations to complete. Test functions can use these methods to get notified when async operations are complete.
Created a data type, TaskBag, that makes it easy for a set of Swift async Task objects can be cancelled when a class is deinitialized. I was noticing that some test functions would finish running, but EventBus async operations were still running. To increase reliability of tests, all EventBus async tasks are cancelled when test function is finished. Giving each test run a clean environment.

Stack:

#615
#614 ⬅

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

Building of cocoapods sample app on CI failing on parent branch. Will not fix in this PR. All other status checks should pass.

Only time will tell if tests are still flaky. But from the CI run in this PR, the results look promising! The only tests failing are CDP module tests that also fail on the parent branch.

✓ Commit merged in pull request #615


kernel: 4.1.13 -> 4.1.15

Update to the latest (as of 2015-12-15) long-term support kernel.

Thanks!


Problems with IE11 - Window doesn't stay open.

Hello @community!
We are using Pickadate code in version 3.4.0 and it works like a charm for FF and Chrome. Unfortunately many of our users are accessing our site in the office and there they are using Internet Explorer. We encountered a problem with Internet Explorer that one may not insert a date as the Pickadate closes the same moment after opening and does not stay open as it would supposed to.
If you would like to have a look at the problem, please feel free to access our test site using IE11 (or possibly any other version, we couldn't verify this) :
http://www.test.lehrmittelperlen.net/jetzt-anmelden
Please register any values at the first page and go to the second page. There you should try to insert your birth date. As you will see... it is impossible :(
We would really appreciate any help to get this up and running!

I have a similar problem on a Windows Phone 8.1. After selecting a year or month the popup closes.
I figured out that in line 277 in the picker.js the target is not equal to the ELEMENT. Instead it is referring to the HTML tag.
I could solve it by checking if the target tagName is not HTML, but of course this doesn't seam to be a proper solution.
Is this probably an IE bug?

Hi, has there been anything more on this? I'm having this same issue.

Same here.


Add Contribution.md

To facilitate new contributors, a Contribution.md file should be created to guide new contributor on how it can make new pull request.
Ideally, a separate branch should be use as staging before committing all the untested code into the master branch.

I can do this!.
Is this still available?

yes sure! thank you

I already did that, waiting for you to merge so I can create a pull request
for changing the name from Contributor.md to Contribution.md
Thank you.
On Tue, Jul 14, 2020, 15:42 Stewart Wong<EMAIL_ADDRESS>wrote:

yes sure! thank you
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Stewart86/roadtaxTracker/issues/20#issuecomment-658221124,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOY6VHV2JYL25L7BR72QQLTR3RVGVANCNFSM4JPALCLA
.

@VictoryWekwa Sorry there is no contain in the Contributor.md file

hey is this still up, i could help with the issue

sure thank you!


HACS-support?

Hi,
I just spotted this, and find it pretty awesome.
However, would it be possible to integrate it with HACS, instead of Hassio? :-)
I would just like to hear, if that's an option. Maybe someone are already working on it.

Those add-ons require their own software installations including dependencies which are not part of the homeassistant. So its not possible to migrate them over to HACS.
HACS Plugins / Integrations are adding functionality inside homeassistant with available python dependencies and the ability to install required ones.
As soon something needs to be installed on system level, Hass.io Addons are the way to go. 😉

Oh, that's good point. I didn't think og the requirements. I'll find
another way to do it, instead. I guess it would make to have it in a
container, or so - but, maybe it's already done. I'll check that tomorrow.
And oh, thanks for the fast reply. It's always nice to have both better
replies and faster response-times, than most companies have.
tor. 19. dec. 2019 17.47 skrev Markus Pöschl<EMAIL_ADDRESS>
Those add-ons require their own software installations including
dependencies which are not part of the homeassistant. So its not possible
to migrate them over to HACS.
HACS Plugins / Integrations are adding functionality inside homeassistant
with available python dependencies and the ability to install required ones.
As soon something needs to be installed on system level, Hass.io Addons
are the way to go. 😉
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Poeschl/Hassio-Addons/issues/35?email_source=notifications&email_token=AA3CSBNZTNUXLJD2VE4MJQTQZOQRJA5CNFSM4J5KUAO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHKGXCA#issuecomment-567569288,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA3CSBO4TBWNEP27GWMCLNDQZOQRJANCNFSM4J5KUAOQ
.

Hass.io Addons are already containers which everything inside. 😉
Inside HACS you can "only" use the python environment.
I will close this issue. Nevertheless if you find a nice way, Let me know 😉

Wow. I'm not sure how i missed the fact that Hass.io's addons is containers :-D I'm running HA on a dedicated server, but as a container. I'll let you know, if i find something..
Happy Christmas - and thanks for the fast answer. I'm sorry for waiting a bit of your time :D

Merry Christmas🎄
Its not wasting if it helps you. 😉


Tim Sort

💥 Proposal
Tim Sort is a stable sorting algorithm that combines the capabilities of  Merge sort and Insertion sort.
Have you read the Contributing Guidelines on Pull Requests?
Yes

I will solve this as a part of GSSoC'21.
I will solve this using c++,
Please assign me.

/assign


Dependency on VCRUNTIME140.dll with GTK+ built via vcpkg

My app ends up depending on VCRUNTIME140.dll even when the vcproj specifies /MT instead of /MD. It's unacceptable for us to ask users to install the dll by downloading the VC redistributable. But I can't figure out a way to statically link these since the dependencies are in one of the vcpkg-built libs when running vcpkg install gtk:x64-windows. Worse, I don't know which lib introduces this dependency.
Any idea how to fix it?

Source: gtk
Version: 3.22.19-2
Description: Portable library for creating graphical user interfaces.
Build-Depends: glib, atk, gdk-pixbuf, pango, cairo, libepoxy, gettext

# Glib relies on DllMain on Windows
if(NOT VCPKG_CMAKE_SYSTEM_NAME)
    if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
        message("Glib relies on DllMain and therefore cannot be built statically")
        set(VCPKG_LIBRARY_LINKAGE "dynamic")
    endif()
    if(VCPKG_CRT_LINKAGE STREQUAL "static")
        message(FATAL_ERROR "Glib only supports dynamic library and crt linkage")
    endif()
endif()

@Neumann-A Thanks. Oh, well...

Thanks for posting this issue. This issue has been fixed, so I am closing this issue for now.


Can't use new SL Deviations

SL Deviations is the new API regarding deviations on SLs transport network. This API replaces the older Service Alerts (Störningsinformation) and Traffic Status (Trafikläget) APIs.
The SL Deviations can not be used in HASL-sensor (still wants older APIs).

Hey @mickemartinsson !
Thanks for reporting this.
There is pre-release version of this integration that has support for new SL Deviations - check it out! v3.2.0b2


Get input from screen devices

FFmpeg makes it very easy to grab screen devices as it is the exact same way we get camera device input.
For the x11grab format though it appears that the function to enumerate devices is not implemented in FFmpeg yet (same problem as #1), so until that becomes a thing we'll have to use X11 ourselves.
Also, using Camera won't make sense for screens so we'll have to do some renaming.

We got x11grab right but we need to take a look at gdigrab as well, and possibly avfoundation.

Looks like it works for gdigrab according to @sr229

I'll merge this. It's sad that we don't really have any active devs/testers on MacOS for now but if there, but if there is an issue about that it's gonna be reported eventually.


Just use raw close() for discard

Follow up to #65 cc @casperisfine
Previously we were doing a dance with file descriptors in order to replace the connection's fd with one open to /dev/null. Instead we should be able to just close() the fd so long as we don't perform any writes on it.

so long as we don't perform any writes on it.

But that's actually the point. To make sure we won't flush any buffers etc.
Is this dance causing issues?

In practice most of the time this probably works fine, but it adds some dangers and unnecessary complexity. open could fail because of fd exhaustion. Calling SSL_shutdown may push errors (which we should be cleaning up anyways). It all should work, I'd just like something similar and not to have an extra state to consider connections could be in (being connected to /dev/null)
I've opened #111 which simplifies this even further and combines the shutdown and discard callbacks.


Fetching package info on non-pypa link

Environment Versions

OS Type
Python version: 3.6.8
pip version:  20.1.1
pip-tools version: 5.2.1

Steps to replicate
pip-compile --find-links=thirdparty --generate-hashes --index-url=https://github.com/nexB/scancode-toolkit/tree/develop/thirdparty
Actual result
Fetch package info from PyPI failed: https://github.com/nexB/scancode-toolkit/tree/develop/pypi/soupsieve/json: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /nexB/scancode-toolkit/tree/develop/pypi/soupsieve/json (Caused by ResponseError('too many 500 error responses',))     Couldn't get hashes from PyPI, fallback to hashing files     Hashing soupsieve-1.9.2-py2.py3-none-any.whl   pygments
Expected result - it would directly generate hash from file. For example-
Hashing soupsieve-1.9.2-py2.py3-none-any.whl   pygments

Hello @Abhishek-Dev09,
Thanks for the issue! That should work:
$ git clone https://github.com/nexB/scancode-toolkit
$ pip-compile --generate-hashes --find-links=scancode-toolkit/thirdparty

You cannot pass GitHub tree URL to --index-url, see the doc:

Base URL of the Python Package Index (default https://pypi.org/simple). This should point to a repository compliant with PEP 503 (the simple repository API) or a local directory laid out in the same format.

Hello @Abhishek-Dev09,
Thanks for the issue! That should work:
$ git clone https://github.com/nexB/scancode-toolkit
$ pip-compile --generate-hashes --find-links=scancode-toolkit/thirdparty

@atugushev :  I do not want hashing from pypi instead it fetches from find-links options  because deps of my requirenment.txt is not available on pypi.

@Abhishek-Dev09
Ah, I see your point. A package, let's say, six from --find-links=./links/ gets its hashes from PyPI, but it should get hashes from a file ./links/six-1.10.tar.gz. in links directory. Thanks!

@Abhishek-Dev09
Ah, I see your point. A package, let's say, six from --find-links=./links/ gets its hashes from PyPI, but it should get hashes from a file ./links/six-1.10.tar.gz. in links directory. Thanks!

@atugushev : Yes, you understand my point.

@pombredanne As we are dependent on this tools , soon this bug will be solved , then it get hash directly from wheel .

Hashing packages from find links was fixed in #1723.


Add Histograms

This adds a Histograms section at the root of the SciolyFF document.
This feature is meant for tournaments that would like to release histograms without releasing raws. If you want line charts to be generated, use raws instead.
Limitations:

Tracks are not properly supported
All bucket widths must be the same

Future Enhancements:

Allow for alternate histogram methods (from images?)
Disable histograms when raws are used

Breaking Changes

The previous histograms property under Tournament is removed.

Coverage increased (+0.2%) to 95.363% when pulling c84ca4af21d84da278a65c7e44014a356d9b6db1 on histograms into 0e7928cb11d97d010fbfe67b8fd52852a7aa0377 on main.


Add csv export

Add CSV export buttons to the relevant django admin pages.

This is not yet complete, there are still a few more models that I want to add exports for. Just putting this up so long.

Looks good to me so far.
@imsickofmaps Would you mind doing a quick sanity check if you have a moment? Maybe @rudigiesler can walk you through it in 10 minutes on Tuesday?

Responses (from service rating) seem to already have exports. I'm not sure if they contain the sufficient data for the researches, but for now I'm leaving it as is.

I've added the CSV download for Registration. This addresses all of the models I've labelled as incomplete, except for PeriodicTask. I'm not sure how important that task is, but I'm also not sure about how to edit that admin page.
I guess it's ready for review. I'm specifically looking for feedback on fields that I'm exporting that should not be exported, ie. fields that contain personal identifying information. I'm not sure what all of the fields on all of the model are.
Also, any models that would be useful to have an export that don't have an export?
@imsickofmaps @hodgestar

@rudigiesler is there a JIRA ticket that provides some background on this issue? The description is a bit vague and you're right that there is PII in this DB so context would help.

@imsickofmaps The ticket is https://praekeltorg.atlassian.net/browse/MOMZA-24 , with the relevant attachments on https://praekeltorg.atlassian.net/browse/MOMZA-12

@rudigiesler OK - I see nothing in those tickets yet that tries to indicate a mapping between the data points they request and the data in the backend. Unless I'm missing something I'm hesitant to +1 a PR that opens up simple mass data extraction without us confirming that an interim process on the downloads will be taken to remove PII (or map to the request fields). Maybe we should move this convo to JIRA.

@imsickofmaps Sure, we can continue this in the JIRA ticket. They're looking for subscription, registration, and message delivery timelines, which is why the Registration and Subscription models are to be exported.
Exporting the messages and message set models has to do with the anonymisation of the data. I want to be able to remove all messages (that will later be exported from vumi go) that are not our automated messages, in case there is any personal data in the content of the messages.

Wondering where this got to? Should I finish reviewing?
@imsickofmaps -- any specific concerns? I don't think we should be afraid to discuss here, in general terms, which fields need to be scrubbed or not exported.

@hodgestar Yes I think we can carry on with reviewing. It didn't really get any further than this.

:+1:


fix: Mongodb path issues not able to detect .env file solved

#371  I have fixed the The uri parameter to openUri() must be a string, got "undefined". Make sure the first parameter to `mongoose.connect() in Local development also helpful in production build

Your pull request is rejected, reason 👉🏾is here👈🏾
Thanks for wanting to contribute, I hope you continue to do so properly.


[#175169562] Document PKS -> TKGI rename in release notes

Signed-off-by: John Frederick Cornish IV<EMAIL_ADDRESS>

Thanks @johncornish!


Handling tracking of multi-verse pre-processing

Currently, we cannot track the execution of the same pipeline version with different parameters.
Discussion is required to see if this is a desired feature and how it would be implemented.

First thought on this would be to allow using different invocations for a pipeline, maybe by adding an option in the CLI.
The different output dir could be handled in the invocation file?


az_platform_clock_msec POSIX implementation

az_posix.c implements the az_platform_clock_msec by measuring CPU time, not wall time. This API isn't used today.
In ANSI C/POSIX, clock_t clock() is to approximate the CPU time spent in a process and the current naming creates confusion.
A few ways to fix this:

clock_gettime() clock_getres(). The problem is that POSIX doesn't guarantee availability of (all) timing functions. We'll need runtime code to discover enabled functionality.
Use the c time() epoch timer with 1 second accuracy.

Also, please consider the API breaking change to rename the API name to   AZ_NODISCARD az_result az_platform_time_msec(int64_t* out_clock_msec) to further reduce confusion on the purpose of the API.

The decision is to:

Require POSIX clock_gettime / clock_getres and CLOCK_MONOTONIC and provide a POSIX compliant implementation using these APIs.
Maintain the name of the function as-is to avoid breaking changes.

Based on man-pages:
CLOCK_MONOTONIC:  Clock that cannot be set and represents monotonic time since—as described by POSIX—"some unspecified point in the past".  On Linux, that point corresponds to the number of seconds that the system has been running since it was booted.
The CLOCK_MONOTONIC clock is not affected by discontinuous jumps in the system time (e.g., if the system administrator manually changes the clock), but is affected by the incremental adjustments performed by adjtime(3) and NTP.  This clock does not count time that the system is suspended.
I have checked that RTOSes implementing POSIX layers do have support for above APIs:

Zephyr - Support for CLOCK_MONOTONIC is available.
FreeRTOS+POSIX - Clock type is ignored.


coap: Update examples to use latest features of libcoap component (IDFGH-7934)

Support libcoap build with Client Only or Server Only code.

Thanks for your contribution.

sha=98d346a81ede3341a15b15fd4dd865da315791bd


#503 possible integer-overflow fix

plz fix this also in v1 version (https://github.com/i-Cell-Mobilsoft-Open-Source/coffee/issues/505)


There is an error when loading videos

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm asking a question and not reporting a bug or requesting a feature
[X] I've looked through the README
[X] I've verified that I'm running yt-dlp version 2023.03.04 (update instructions) or later (specify commit)
[X] I've searched known issues and the bugtracker for similar questions including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Please make sure the question is worded well enough to be understood
On June 2nd, an error occurred while uploading a video file. I can assist you in troubleshooting the issue.
from yt_dlp import YoutubeDL
urls="https://youtu.be/QWfjna0mKMU"
ydl_opts = {
# reduces the several line of output to barest minimal and therefore, time
'quiet': True,
'noplaylist': True,
'format': "best[height<=720]",
'format': 'best[filesize<=2G]',
# 'outtmpl': output_path,
"playlist_items": "1",
}
with YoutubeDL(ydl_opts) as ydl:
ydl.download([urls])
Provide verbose output that clearly demonstrates the problem

[ ] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[ ] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
"C:\Program Files\Python310\python.exe" C:/Users/Administrator/Desktop/BOT_tg_TEST/test_down.py
Вошел в download_video!!!!
WARNING: [youtube] Skipping player response from android client (got player response for video "M5t4UHllkUM" instead of "QWfjna0mKMU"); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
WARNING: [youtube] Skipping player response from web client (got player response for video "M5t4UHllkUM" instead of "QWfjna0mKMU"); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
WARNING: Only images are available for download. use --list-formats to see them
ERROR: [youtube] QWfjna0mKMU: Requested format is not available. Use --list-formats for a list of available formats
Traceback (most recent call last):
  File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1518, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1615, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1674, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 2743, in process_video_result
    raise ExtractorError(
yt_dlp.utils.ExtractorError: [youtube] QWfjna0mKMU: Requested format is not available. Use --list-formats for a list of available formats

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Administrator\Desktop\BOT_tg_TEST\test_down.py", line 20, in <module>
    ydl.download([urls])
  File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 3369, in download
    self.__download_wrapper(self.extract_info)(
  File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 3344, in wrapper
    res = func(*args, **kwargs)
  File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1507, in extract_info
    return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
  File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1536, in wrapper
    self.report_error(str(e), e.format_traceback())
  File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1015, in report_error
    self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
  File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 955, in trouble
    raise DownloadError(message, exc_info)
yt_dlp.utils.DownloadError: ERROR: [youtube] QWfjna0mKMU: Requested format is not available. Use --list-formats for a list of available formats

Process finished with exit code 1

Replace 'quiet': True, with 'verbose': True, in your ydl_opts and post verbose output
Possible duplicate of #7143

from yt_dlp import YoutubeDL
urls="https://www.youtube.com/watch?v=QWfjna0mKMU"
urls="https://youtu.be/QWfjna0mKMU"
print("Вошел в download_video!!!!")
max_size =<PHONE_NUMBER>
aiogram_size = 50331648  # 48Мб., для отправка с помощью aiogram
ydl_opts = {
# reduces the several line of output to barest minimal and therefore, time
'verbose': True,
'noplaylist': True,
'format': "best[height<=720]",
# 'format': 'best[filesize<=2G]',
# 'outtmpl': output_path,
"playlist_items": "1",
}
with YoutubeDL(ydl_opts) as ydl:
ydl.download([urls])

"C:\Program Files\Python310\python.exe" C:/Users/Administrator/Desktop/BOT_tg_TEST/test_down.py
Вошел в download_video!!!!
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8 (No ANSI), error utf-8 (No ANSI), screen utf-8 (No ANSI)
[debug] yt-dlp version<EMAIL_ADDRESS>[392389b7d] (pip) API
[debug] params: {'verbose': True, 'noplaylist': True, 'format': 'best[height<=720]', 'playlist_items': '1', 'compat_opts': set()}
[debug] Python 3.10.5 (CPython AMD64 64bit) - Windows-10-10.0.14393-SP0 (OpenSSL 1.1.1n  15 Mar 2022)
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[youtube] Extracting URL: https://youtu.be/QWfjna0mKMU
[youtube] QWfjna0mKMU: Downloading webpage
[youtube] QWfjna0mKMU: Downloading android player API JSON
WARNING: [youtube] Skipping player response from android client (got player response for video "M5t4UHllkUM" instead of "QWfjna0mKMU"); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
WARNING: [youtube] Skipping player response from web client (got player response for video "M5t4UHllkUM" instead of "QWfjna0mKMU"); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
WARNING: Only images are available for download. use --list-formats to see them
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
ERROR: [youtube] QWfjna0mKMU: Requested format is not available. Use --list-formats for a list of available formats
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1518, in wrapper
return func(self, *args, **kwargs)
File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1615, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1674, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 2743, in process_video_result
raise ExtractorError(
yt_dlp.utils.ExtractorError: [youtube] QWfjna0mKMU: Requested format is not available. Use --list-formats for a list of available formats
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1518, in wrapper
return func(self, *args, **kwargs)
File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1615, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1674, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 2743, in process_video_result
raise ExtractorError(
yt_dlp.utils.ExtractorError: [youtube] QWfjna0mKMU: Requested format is not available. Use --list-formats for a list of available formats
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\BOT_tg_TEST\test_down.py", line 19, in
ydl.download([urls])
File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 3369, in download
self.__download_wrapper(self.extract_info)(
File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 3344, in wrapper
res = func(*args, **kwargs)
File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1507, in extract_info
return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1536, in wrapper
self.report_error(str(e), e.format_traceback())
File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 1015, in report_error
self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
File "C:\Program Files\Python310\lib\site-packages\yt_dlp\YoutubeDL.py", line 955, in trouble
raise DownloadError(message, exc_info)
yt_dlp.utils.DownloadError: ERROR: [youtube] QWfjna0mKMU: Requested format is not available. Use --list-formats for a list of available formats
Process finished with exit code 1

Замените 'quiet': True,на 'verbose': True,в своем ydl_optsи опубликуйте подробный вывод
Возможный дубликат # 7143

I have read this post. Up until June 2nd, the upload was working without any errors. I believe something has changed on YouTube's end.


learn deploying of django project into azure

https://docs.microsoft.com/en-us/training/modules/django-deployment/

https://www.youtube.com/watch?v=D6Wyk9q2JM0&t=12s

Looks good, we will discuss it today in our meeting.
Good Job @tabana1

thanks

App deployed successfully into Azure but there is a problem with reading the content because of administration rights


GPU maintainance

I can't use my CPU for the application.
Will the GPU be maintained in the application?

Right now we don't have version with GPU support
We are working on it, so it will be available after on of the next releases

Right now we don't have version with GPU support
We are working on it, so it will be available after on of the next releases


Merge cdxjs

This should be the final piece and closes #5. Here we take a CDXJ that we created using the sidecar2cdxj script and a CDXJ created elsewhere from a WARC file, and we merge selected data to create a new CDXJ.

@ldko @somexpert This is ready for review.

I have one quick change to make. It doesn't affect the code. It's just to fix the quotation marks on test_merge_cdxj.py.

Changes look good to me! :thumbsup:


⬆ Upgrade openapi generator

What do these changes do?

Upgrade the openapi generator version and attempt to make our osparc client backwards compatible

Related issue/s

closes #201

How to test

For internal developers

Can you please also add a test to make sure that the new client does not have the bug in
https://github.com/ITISFoundation/osparc-simcore/issues/6556? Then you can also close https://github.com/ITISFoundation/osparc-simcore-clients/pull/192


Rename Package MsTest.Sdk to Microsoft.NET.Sdk.Test

Summary
https://www.nuget.org/packages/MSTest.Sdk
Microsoft provides most of the package name is the full name, I hope the package name is also the full name, so that users feel is a system, Not an alternative.Just like the following names
Microsoft.NET.Sdk
Microsoft.NET.Sdk.Web
Microsoft.NET.Sdk.Worker
Microsoft.NET.Sdk.BlazorWebAssembly

Background and Motivation

Proposed Feature

Alternative Designs

comment from https://github.com/dotnet/sdk/issues/25797#issuecomment-2051597066

I thought Microsoft was good at naming. You guys disappoint me. You have loads of names at your disposal. Come on! Pick a good one that is simple and is a one word change to the standard SDK Name.
Some Examples:

Microsoft.Test.Sdk
Microsoft.Testing.Sdk
Microsoft.NET.Test.Sdk
Microsoft.NET.Sdk.Test
Microsoft.NET.Sdk.Testing
Microsoft.NET.Testing.Sdk

Pick one from above that seems intuitive to users who are already familiar with existing packages. Please do note that Microsoft.NET.Test.Sdk package can only be used as a package reference. So, why not convert to an SDK, ship in-band with the .NET SDK and deprecate the package reference functionality after v18?

@Nirmal4G thanks for the suggestion, here I've explained because at the moment use some of that names could be problematic for future evolution https://github.com/microsoft/testfx/issues/2693#issuecomment-2051698214
I think that MSBuild SDK for testing make sense if at the end the usage allows an "empty" csproj like https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-mstest-sdk otherwise simply move 1 reference from the user project file to the sdk won't help a lot with the transparent evolution of testing frameworks.

As it stands, the suggestions in this comment https://github.com/microsoft/testfx/issues/2693#issuecomment-2052075533 don't seem to make it specific that the SDK is specifically for MSTest. From the blog posts so far, it doesn't seem like the new test SDK is intended to support NUnit, xunit etc. as they aren't neccessarily compatible with things like native AoT.

I think it would only makes sense to reword the MSTest.Sdk package under one of the following conditions:

we start to integrate MSTest SDK into .NET SDK
we globally rename MSTest to be Microsoft.Testing.Framework
we get many upvotes

@Evangelink I also propose a new Shared Framework of testing tools and frameworks in .NET SDK along with a new Test SDK for the Project (*not just a simple rename as requested here). May be not for v4 but for v5 maybe? .NET 10? Basically, a built-in Testing support from the .NET SDK without any external dependencies.
See #3254 for the proposal and discussion.


Flutter 3.16.9 macOS Unable to play video

Flutter 3.16.9 macOS Unable to play video
log:
[flutter_meedu_videoplayer] Fit is BoxFit.fill
[flutter_meedu_videoplayer] Last fit used was fitHeight
[flutter_meedu_videoplayer] 'dart:core-patch/finalizer_patch.dart': Failed assertion: line 41 pos 12: '': The token should not be the value being attached
[flutter_meedu_videoplayer] #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:51:61)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:40:5)
#2      _FinalizerImpl.attach (dart:core-patch/finalizer_patch.dart:41:12)
#3      new Player (package:fvp/src/player.dart:28:9)
#4      MdkVideoPlayer.create (package:fvp/src/video_player_mdk.dart:123:24)
#5      VideoPlayerController.initialize (package:video_player/video_player.dart:438:46)
#6      MeeduPlayerController.setDataSource (package:flutter_meedu_videoplayer/src/controller.dart:534:37)
#7      _VideoWidgetState.initState. (package:pecker/common/widgets/image_prew_widget.dart:352:32)
#8      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1325:15)
#9      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1264:9)
#10     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1113:5)
#11     _invoke (dart:ui/hooks.dart:312:13)
#12     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:383:5)
#13     _drawFrame (dart:ui/hooks.dart:283:31)
[flutter_meedu_videoplayer] Fit is BoxFit.fitHeight
[flutter_meedu_videoplayer] Fit is BoxFit.fitHeight

Check with
https://pub.dev/packages/fvp/changelog
Since the error most probably on their side

Note: from fvp change log there was an error which was fixed on version 0.11.0 so try a flutter upgrade, maybe that will fix it

注意：从 fvp 更改日志来看，有一个错误已在版本 0.11.0 上修复，因此请尝试 flutter 升级，也许这会修复它

ok

updated deps on main thanks to https://github.com/abdelaziz-mahdy/flutter_meedu_videoplayer/pull/186 i think that fixes your issue


Analytics should be available for Org wise

Description:

Suggested Labels:

Suggested Assignees:

Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:

Fixed with https://github.com/wso2/apk/pull/2280


home-assistant: drop protobuf override

Motivation for this change
The aioesphome library was updated in d49fc3600efc56bd557bc3ea5ff867330dabae5f and that requires a newer protobuf version. So let's drop the override in home-assistant.
Requirement already satisfied: zeroconf<1.0,>=0.28.0 in /nix/store/5m4yrsfh12pfz07p2c4jdx7j27bv5j0z-python3.8-zeroconf-0.28.2/lib/python3.8/site-packages (from aioesphomeapi==2.6.3) (0.28.2)
ERROR: Could not find a version that satisfies the requirement protobuf<4.0,>=3.12.2 (from aioesphomeapi==2.6.3) (from versions: none)
ERROR: No matching distribution found for protobuf<4.0,>=3.12.2 (from aioesphomeapi==2.6.3)

Untested
Things done

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

[x] 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 nixpkgs-review --run "nixpkgs-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
[x] Fits CONTRIBUTING.md.

Buildtested using nix-build -E "with import ./. {}; home-assistant.override { extraPackages = ps: [ ps.aioesphomeapi ]; }".

Tested on my home setup against 20.09 and wfm.


backport current master

Overview
backports fixes/enhancements from v8 master
Testing/Steps taken to ensure quality
unit tests pass
Notes
Optional. Caveats, Alternatives, Other relevant information.
Testing Instructions
taskcat-v9 should run as expected

Codecov Report

Merging #13 into master will decrease coverage by 0.45%.
The diff coverage is 28.61%.

@@            Coverage Diff             @@
##           master      #13      +/-   ##
==========================================
- Coverage   33.26%   32.81%   -0.46%
==========================================
  Files          19       20       +1
  Lines        2525     2819     +294
  Branches      403      466      +63
==========================================
+ Hits          840      925      +85
- Misses       1646     1856     +210
+ Partials       39       38       -1

Impacted Files
Coverage Δ

taskcat/cli.py
17.15% <0%> (-0.11%)
:arrow_down:

taskcat/stacker.py
13.45% <0%> (-0.13%)
:arrow_down:

taskcat/utils.py
22.97% <0%> (ø)
:arrow_up:

taskcat/__init__.py
100% <100%> (ø)
:arrow_up:

taskcat/client_factory.py
87.9% <100%> (+1.23%)
:arrow_up:

taskcat/amiupdater.py
28.11% <28.11%> (ø)

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 0389307...26e831c. Read the comment docs.

@avattathil @andrew-glenn need an approving review to merge, can you give a once over, noo need for deep review as commits are all pulled from taskcat master branch.

LGTM! Liked the code coverage result. 👍


Makes Product.photo.upload_to a string instead of bytes

Hello,
When playing around with some changes to django-silk, I found an error in the example app.
Steps to repro:

Run Django server
Go to http://localhost:8000/admin/example_app/blind/add/ and upload a photo, and choose name.
Click Save

Upon saving, the following (truncated) server exception occurred:
....
File "/home/veer/Projects/silk/venv/lib/python3.5/site-packages/django/db/models/fields/files.py", line 86, in save
  name = self.field.generate_filename(self.instance, name)
File "/home/veer/Projects/silk/venv/lib/python3.5/site-packages/django/db/models/fields/files.py", line 304, in generate_filename
  dirname = datetime.datetime.now().strftime(self.upload_to)
TypeError: strftime() argument 1 must be str, not bytes

It seems like this is down to a simple typo in the 'upload_to' params of example_app.models.Product.photo, passing in bytes instead of a string.  I've fixed it in this teeny PR.
I read the Contributing guidelines and the README, but please let me know if I missed something and there's some other way I should be approaching this (like filing an associated issue before sending a PR).
Thanks!

I just thought to check whether this bug happens on Python2.7 as well as Python3.5.  It doesn't appear to cause the same crash in Python2.7.  I did verify that my modification runs correctly on both Python2.7 and Python3.5, though.  I think this comes down to the fact that in Python3, strftime stopped being lenient about translating a bytes input into a string before processing.


Fix timestamp index on column of preserved key

Codecov Report

Merging #9533 (aa2ee8e) into master (5ca72a3) will decrease coverage by 2.66%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master    #9533      +/-   ##
============================================
- Coverage     69.88%   67.22%   -2.67%
- Complexity     4871     5004     +133
============================================
  Files          1927     1426     -501
  Lines        102694    74435   -28259
  Branches      15586    11879    -3707
============================================
- Hits          71771    50041   -21730
+ Misses        25858    20774    -5084
+ Partials       5065     3620    -1445

Flag
Coverage Δ

integration1
?

integration2
?

unittests1
67.22% <100.00%> (-0.01%)
:arrow_down:

unittests2
?

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

Impacted Files
Coverage Δ

...ot/spi/config/table/TimestampIndexGranularity.java
81.25% <100.00%> (ø)

...va/org/apache/pinot/core/routing/RoutingTable.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...va/org/apache/pinot/common/config/NettyConfig.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...a/org/apache/pinot/common/metrics/MinionMeter.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...g/apache/pinot/common/metrics/ControllerMeter.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../apache/pinot/common/metrics/BrokerQueryPhase.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../apache/pinot/common/metrics/MinionQueryPhase.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...ache/pinot/server/access/AccessControlFactory.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...he/pinot/common/messages/SegmentReloadMessage.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...he/pinot/common/messages/TableDeletionMessage.java
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 745 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


[WIP] Reproduce selfDestruct resulting in immutable pandas DataFrame

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

Test build #139883 has started for PR 32935 at commit c994ddc.

Test build #139883 has finished for PR 32935 at commit c994ddc.

This patch fails Python style tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/139883/

Kubernetes integration test unable to build dist.
exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44413/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/44413/

Test build #139890 has started for PR 32935 at commit 9e2e650.

Test build #139890 has finished for PR 32935 at commit 9e2e650.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44420/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/139890/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/44420/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/44420/


updated note about storage firewalls

added clarity

@TravisCragg-MSFT : Thanks for your contribution! The author, @KumudD, has been notified to review your proposed change.

#sign-off


local stream on/off toggle

wanna toggle only local stream.
keep signaling, and stop sending local media.
is it possible??

solved. delete/add stream object
ON :
connection.addStream({
audio: true,
video: true
});
OFF :
connection.attachStreams[0].stop();


getScriptCode function is not working

Hi @vinaysuneja90 thank you for reporting this issue. I have fixed this issue. will release a new version pypi in a couple of days

@sdabhi23 Any update on the new version?

@vinaysuneja90 @toraghulravi a new version has been published on PyPI with the fix. Please update to the new version. Feel free to reopen the issue if the problem persists


Add CDNJS version badge in README.md

This badge will show the version on CDNJS!
Thank you for submitting a pull request!
Here's a checklist you might find useful.

[ ] There is an aassociated issue that is labelled
'Bug' or 'Accepting PRs' or is in the Community milestone
[x] Code is up-to-date with the master branch
[ ] You've successfully run jake runtests locally
[ ] You've signed the CLA
[ ] There are new or updated unit tests validating the change

Refer to CONTRIBUTING.MD for more details.
https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md
Fixes #

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

Thanks, but this doesn't make much sense for our project. I don't think this is a PR we're interested in taking.


iOS - Discussions - Text 'This post is visible to everyone/cohort' is missing in discussion post screen

@aleffert @mikekatz Pl review

:+1:


Waybar crashing while using Sway?

When booting Waybar with the terminal, and using the wlr/taskbar module, it will often crash upon clicking one of the open window icons. It works for a while, but after a random amount of time (usually less than a minute) the next click on a taskbar icon will crash waybar. I moved to Sway from Hyprland, and didn't have the same issue with Hyprland, so I'm not quite sure what difference has caused this to start happening.
Below is the output waybar gives on the console when it crashes:
(waybar:9909): Gdk-CRITICAL **: 14:35:15.897: gdk_wayland_window_get_wl_surface: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

Gdk-Message: 14:35:15.897: Error 22 (Invalid argument) dispatching to Wayland display.

Currently using Arch
I also have it set in Sway so that my mouse warps to the focused container, could be related to some incorrectly configured click and drag event?

Set
mouse_warping none
in the sway config file, and that seems to have fixed the issue so it appears to be something related to the mouse moving simultaneously with the window being selected? Maybe?

I'm also getting this exact error but on Hyprland (I don't have Sway). My fix is no_cursor_warps = true  which goes on the general{} section

I'm also getting this exact error but on Hyprland (I don't have Sway). My fix is no_cursor_warps = true which goes on the general{} section of the hyprland config

I can confirm using hyprland 0.37.1-2 on Arch with waybar 0.10.0-3
When switching by clicking on an icon in wlr/taskbar, waybar would often terminate with the same error:
(waybar:2577): Gdk-CRITICAL **: 22:46:19.716: gdk_wayland_window_get_wl_surface: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed
Gdk-Message: 22:46:19.717: Error 22 (Invalid argument) dispatching to Wayland display.

Latest demonstration of the crash was with 3 firefox windows and one foot window open. I'm not sure how to determine which task will cause the error, but in this case it was the last icon on the taskbar. (but task icon position doesn't seem to matter, since previously, it has been the first taskbar icon, and other icons in the middle. Also, not just firefox windows, I'm not sure which other application windows specifically, only that I had similar waybar crashes while clicking a taskbar icon with no firefox windows open before, or whether it is limited to GTK applications or not.) In this case, I had no windows open on workspace 1 on eDP-1, (other 3 workspaces on HDMI-A-1) firefox on workspace 2, foot and firefox on workspace 3, firefox on workspace 6.  The firefox task icon for the window on workspace 2 was the only one that caused the error.
After adding
general {
    no_cursor_wraps = true # cursor warp to focused window crashes waybar wlr/taskbar https://github.com/Alexays/Waybar/issues/2666#issuecomment-2028529034
}

to a sourced hyprland config file, I could not replicate the error. When removing the no_cursor_wraps = true from my hyprland config, the problem returned. Note that it doesn't always crash the first time clicking a task icon, but seems to be the second time, or that it takes a few seconds to become an issue.
My previous workaround was having a bind set to restart waybar by pressing ctrl+F12, but I was pressing that all to  often.
I'm using this in my waybar/config

    "wlr/taskbar": {
      "format" : "{icon}",
      "on-click": "activate",
      "all-outputs": false,
      "on-click-middle": "close",
      "on-click-right": "minimize",
   },

(Note that minimize doesn't work, I just have it in there in anticipation of future support between hyprland and waybar for minimizing to a special:minimized workspace.)

Oh, just noticed the linked fix #3049 was merged after the 0.10.0 release. I've tried building the current master source, and it appears that fixes this issue for me.
With or without no_cursor_wraps = true I cannot replicate the crash in the fresh build of master.
Thanks for all you do @Alexays! Looking forward to 0.10.1 to be released.

I'm also getting this exact error but on Hyprland (I don't have Sway). My fix is no_cursor_warps = true which goes on the general{} section of the hyprland config
@tyressk , if you want to use cursor warps and don't want to wait for a new version in Arch official packages, you don't have to actually build manually from source, I just tried waybar-git on AUR and that also appears to include the fix.

@tyressk , if you want to use cursor warps and don't want to wait for a new version in Arch official packages, you don't have to actually build manually from source, I just tried waybar-git on AUR and that also appears to include the fix.

@Benzolio thanks for noticing the fix was merged after the recent release, and testing from source. I'm on the AUR and can confirm the fix works and I don't need to disable warping anymore


There is no css animation matching the one you specified. Please make sure your css is vendor prefixed, and you have included transition css.

I am using out of the box Semantic UI and it is giving me a lot of errors in console such as:
There is no css animation matching the one you specified. Please make sure your css is vendor prefixed, and you have included transition css. slide down in.
I have latest version of semanti UI and jQuery: v1.11.2.
Any idea?
EDIT: I am using the version "semantic-css"

This would occur if the CSS was not included in the page, or if the transition class names did not have an animation defined
If you are using the LESS package and don't run autoprefixer this would occur. Shouldnt happen with css package.

Having the same issue in the semantic.css package (no LESS involved). Basically none of the modals work properly, whole page locks up weirdly and errors like above clutter the log (all kinds of different transitions, not just the slide down)
I can confirm that when I do:
      if( true || module.can.animate() ) {
        module.set.animating(settings.animation);
      }
      else {
        module.error(error.noAnimation, settings.animation, element);
      }

I stop receiving errors (obviously..) and also now everything seems to work just fine. So there has to be something with the detection mechanism that gets a "false negative".
Mozilla/5.0 (Linux; Android 5.0.2; SAMSUNG SM-T530 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/3.2 Chrome/38.0.2125.102 Safari/537.36"

How to replicate:
$('.ui.modal').modal({
    transition: 'fade'
});

$('.ui.modal.something').modal('show');

Further investigation shows that the currentAnimation will be valued none. The $clone that is used for the test looks like that (outerHTML):

I am not sure what to take a way from this. It only happens on the Samsung tablet in the stock browser. Chrome on the same device works beautifully.
What purpose does the detection serve anyway? If it thinks that it cannot animate the modal, it breaks horribly. On the other hand, if it just tried to animate, it at least had a chance (the animations actually work fine for me).
What is the result of failing to check for animation capabilities? Is there a case when it breaks when an animation is attempted? It seems to me that the test is useless if it actually does not fail gracefully.

I have the same error/problem. I'm using version 2.1.0 and LESS package with gulp-autoprefixer.
Transition: There is no css animation matching the one you specified. Please make sure your css is vendor prefixed, and you have included transition css. scale out

Gif below:

The error message should probably say something like 'can't call an animation on an element no longer in the DOM' as oppose to what it says currently.
It's verifying it can proceed with animation before it does.

+1

I have the same problem. I am using  angularjs SPA

I experienced the same thing on android 5 stock browser. Removing the following check in the transition module fixed things:
else if(currentAnimation == 'none' || !currentAnimation) {
  module.debug('No animation defined in css', animation);
  return;
}

Of course, removing the check will probably break something else, but I think that helps identify the issue. Something must be wrong with .css('animationName') in some stock android browsers.

@jfizz This verifies that a css animation exists before attempting to run the animation. If you, for example, specify a custom transition like transition: 'woo woo' and "woo woo" has no css attached the animation will fail otherwise.

The modals are still not working.. I've reproduces it here. It just doesn't work... http://www.lact.ru/semantic-modal.html

Animations are still broken for us. I find in really strange that there needs to be an effort to prevent animations from occurring if animation capabilities are not detected. IT could very well be, and in my case certainly is, a false positive. So instead of attempting a harmless animation, we break stuff...
This is the only issue we have with SUI (clearly it is awesome!) and so we could not be bothered to fork it. Instead, here is what we are using:
	gulp.src([
		dist +  '/vendor/semantic.js',
		dist +  '/vendor/semantic.min.js'
	])
		.pipe(replace('.can.animate()', '.can.animate()||true'))
		.pipe(gulp.dest(dist +  '/vendor/'));

Works a treat!

Using React. All animations seem to trigger this error in Safari 8. @lauri-elevant 's hack works for me as well, which seems just bizarre - totally agree that if there is a chance of a false positive in this context then the code should continue with a warning.

Having the same issue but using vue.js, once that I click on "Cerrar sesión" I make a redirection to another page (possibly the explanation of @jlukic about the element is not longer available at DOM)

But is a redirect :|
I can't trigger the hide event manually...


Possible bug with latest version having Tenant Events

My tenants are in json file and each tenant has a dedicated database. Even though tenants are in json, I have a Tenant table in every database having one record for the tenant with extended properties.
So, when resolving tenants I do something like below
options.Events = new MultiTenantEvents(){
    OnTenantResolved = async (context) =>
    {
         //Query my cache to see whether this tenant is available in cache
         //if tenant is not in cache, load the tenant with additional details from database
         //update context.TenantInfo

         context.TenantInfo = tenantFromDBwithAdditionalProperties;

         //some more stuff
    }
}

Then in another place in code I access the tenant using;
currentTenant = httpContextAccessor.HttpContext.GetMultiTenantContext<AppTenant>().TenantInfo;

However in this case it doesn't give me the tenant that I set in the TenantResolved event. At this point the custom tenant entity (AppTenant) has fields from tenants.json file only. However in OnTenantResolved event, I get the additional data from DB and set it to context.TenantInfo
Am I doing something wrong here?

@AndrewTriesToCode i suppose I should have made that a read-only prop ;)

You could add another store before your config store that looks at something like DistributedCache which has the full tenant object. So in this event check if the store is your configuration store, if so, add to the primary store. All future lookups would pull it from there, including your full extended properties. Andrew may have a better way to do it, that's how I'd probably tackle this though.

@mkgn
@natelaff  beat me to it -- I would recommend adding a store before the expensive store such as DistributedCacheStore or your own custom store just like nate stated

@natelaff if you want to submit a PR to make it readonly feel free other wise I'll get to it. PRs are on hold for just a moment while I work on onboarding to the .NET Foundation

@AndrewTriesToCode if you're freezing PRs for the moment I may just have you tweak it. It will be a small enough change for you to modify when you're in a better position.

Oh I see, that property suppose to be a GET only :) Well, as you suggested apart from adding another store why can't we just override some stuff in Tenant details at this point? Does it mess up some thing down the line in your code? If we can do it, it'll be like overriding certain things in the already resolved tenant. Injecting additional details will be much more easier don't you think?

Theoretically TenantResolver could be modified to wait for a return on this event and use that instance of the tenant. But from a best practice stand point I would strongly discourage it for performance issues that would likely popup. Seems like an unnecessarily expensive operation.

I guess you are right. If allowed you never know what people might do at this point.  As for my problem, I got it sorted with the standard store for the moment. I guess that property has to be a GET :)


No basic examples at all..

Wasted whole day trying to get throurh all that code. Absolutely complicated, no links, no clue why sometimes it goes like this and sometiems like this. And hiera syntax is not working at all with that code.

Maybe you can be a little bit more specific. There are examples in the README, which might be enough to get rsyslog up and running either as client, server or both.
If you think, that there should be an easier example, it would be great if you can shed some light on the problems you've got (e.g. what you've been trying to achieve) instead of just ranting around without any useful information...
Just remember: I'm maintaining this module in my free time...


Testing To Do list: part 2

In this milestone, we implemented the following 👎🏼

Created a test file(s) ([..].test.js) for a file(s) containing the following functions:

a function for editing the task description.
a function for updating an item's 'completed' status.
the "Clear all completed" function.

Make sure you group your tests using the describe() method.

Thank you for the review @m05e5 😃


TypeScript 5.0 Breaking Changes

https://github.com/microsoft/TypeScript-wiki/blob/main/API-Breaking-Changes.md#typescript-50
TypeScript is moving from namespaces to modules in TS 5.0:

The output files have changed significantly; if you are patching TypeScript, you will definitely need to change your patches.

Not sure if anything else is impacted, but it looks like the only change I needed to make was changing var to const in my replacements https://github.com/SamVerschueren/tsd-typescript/commit/e80506b3036d0809220d0d04ddd4a59380122c03.
And I also had to upgrade my GitHub Actions to run on Node.js 16. Latest patched TypeScript is now released. 🎉


[CT-224] Deprecation issues and runtime errors

Running 1.0.1 / Python 3.7.12
when I run a command on dbt (e.g. dbt list) I get
14:56:34  [WARNING]: Deprecated functionality
The `source-paths` config has been renamed to `model-paths`. Please update your
`dbt_project.yml` configuration to reflect this change.
14:56:34  [WARNING]: Deprecated functionality
The `data-paths` config has been renamed to `seed-paths`. Please update your
`dbt_project.yml` configuration to reflect this change.

If I change the project file to use the new config names, I get run-time errors
Encountered an error while reading the project:
  ERROR: Runtime Error
  at path []: Additional properties are not allowed ('seed-paths', 'model-paths' were unexpected)

@johnh I got this similar issue in pre-commit for SQLfluff, if its the same case for yours then update your pre-commit by running pre-commit autoupdate.

@johnh can you let me know if @mailtosumitrai's suggestion works?
If not, would you mind sharing what you have in your dbt_project.yml and anything else you think might be useful to replicate this behavior?  Are you in the process of upgrading to 1.0?


The WhisperModel function num_workers How to make the execution truly parallel

The WhisperModel function has a parameter num_workers. If I only have one GPU and multiple threads call the transcribe function, the test result is serial. Two threads processing two files takes twice as long as one thread processing one file. How to make the execution truly parallel？

@fanqiangwei , hello. I think that using multi workers on a single GPU will not increase the throughput, you should use multi GPU with option device_index. For more information, see this issue: https://github.com/SYSTRAN/faster-whisper/issues/100


Azure Blob Storage does not return Content-Encoding when blob was uploaded via stream

Summary
When uploading a blob to Azure Blob Storage that is gzip encoded using upload_object_via_stream and then try to read it again, the response does not contain the Content-Encoding: gzip header. It works when uploading using upload_object.
Detailed Information
Ubuntu 18.04, Libcloud 3.3.1, python 3.8
Code to Reproduce:
import gzip
from libcloud.storage.providers import Provider, get_driver

def create_gzipped_file():
    content = b"I am a test file with super nice content that is so interesting to read"
    encoded_bytes = gzip.compress(content)
    file = "example_gzipped_file.txt"
    with open(file, mode="wb") as f:
        f.write(encoded_bytes)
    return file

account = ""  # Add a service account here
key = ""  # Add a key here
container_name = ""  # Add a container name here

driver = get_driver(Provider.AZURE_BLOBS)(key=account, secret=key)
container = driver.get_container(container_name=container_name)

# Upload a dummy file with gzip encoding via stream
content = b"I am a test file with super nice content that is so interesting to read"
encoded_bytes = gzip.compress(content)
streaming_file = "example_gzipped_file_stream_upload.txt"
driver.upload_object_via_stream(
    iterator=iter([encoded_bytes]),
    container=container,
    object_name=streaming_file,
    extra={"content_type": "text/plain"},
    headers={"Content-Encoding": "gzip"},
)

# Upload a dummy file with gzip encoding regularly
regular_file = create_gzipped_file()
driver.upload_object(
    regular_file,
    container=container,
    object_name=regular_file,
    extra={"content_type": "text/plain"},
    headers={"Content-Encoding": "gzip"},
)

# Get the headers, this is a HEAD request, but also not present in a GET request
regular_response_headers = driver.get_object(container_name=container_name, object_name=regular_file).extra
streaming_response_headers = driver.get_object(container_name=container_name, object_name=streaming_file).extra
print(regular_response_headers["content_encoding"])  # gzip
print(streaming_response_headers["content_encoding"])
# --> content_encoding is not present (or rather defaults to None)

As you can see, the file that was uploaded via stream does not have a valid Content-Encoding header.
I looked for a possible cause, but could not really find one.
What I found is:

AzureBlobStorageDriver._commit_block does not set any headers. This is called after all chunks have been uploaded. However, setting the header in that request manually does not help
The Azure documentation for both PUT and GET mention that the Content-Encoding header should be returned
Difference in execution path for upload_object and upload_object_via_stream is a call to AzureBlobStorageDriver._upload_directly for the former, and AzureBlobStorageDriver._upload_in_chunks for the later
Similar to #1544, this might be a bug within Azure itself, but here I could not verify it completely
I have not found a workaround other than just trying if it was gzip encoded if I can't read it normally
Not sure if upload_object_via_stream uses Append Block internally, but that at least does not accept the Content-Encoding header.

Possible Solutions

if this is a bug that can be fixed, the Content-Encoding should be present when retrieving the blob regardless of upload method
If this is a limitation of streaming upload, an error (or at least a warning) should be in place if the user supplied the Content-Encoding header when uploading

This doesn't seem to be a limitation in Azure. I was able to upload a blob with gzip content-encoding using az storage blob upload --connection-string="..." --container-name="..." --file "test.gz"  --name "test.gz" --content-encoding gzip and then validate the correct content-encoding being returned when GETing the file via curl. Looking into what needs to change on the libcloud side to support this scenario.

@RunOrVeith I believe I have a fix for this. Could you please instantiate the driver at version cf6756b and verify that your scenario works as expected?

I am out of office until next Monday but will give it a shot then. Thanks for looking into it!

It seems to work now on the storage-azureblobs-fix-1550-contentencoding branch, thanks :)


sfo file created with sfo_tool fails to load with tsf_load_memory.

tsf_load_memory makes a call to tsf_load which ends in the following branch at Line 1423
	else if (!rawBuffer && !floatBuffer)
	{
		// if (e) *e = TSF_INVALID_NOSAMPLEDATA;
	}

What I've tried:

Loading and playing the original sf2 file, yes it works!
Loading and playing the sfo file, it didn't work...

I've attached these files (attachments.zip) because it might help to resolve the issue:

The original sf2
sfotool's samples.wav output from the original sf2
ogg data converted from the output wav data
The sfo file from running the sf2 and ogg data through sfotool

I will also be doing to more debugging on my own, I will post updates if I find anything.

As you've figured out, TSF just silently enables or disables OGG decoding support if a define from stb_vorbis is present or not (with the #ifdef STB_VORBIS_INCLUDE_STB_VORBIS_H at tsf.h:865) and then silently at runtime fails (or succeeds) with a SoundFont that has OGG encoded samples.
We don't really have documentation for this stuff, not even an example, but I'm glad you were able to figure it out. Thanks for using TSF :-)


Use always SCRIPTS_DIR variable in scripts

Coverage remained the same at 69.63% when pulling bca08be0e246c788071cda17c917806ec1e9ba6d on akkie:scripts_path into 506ff1a32ea71eb4ddc1adac352b67c7fb9ecb87 on minutemen:master.


spacing_symbols may actually contain exprs rather than symbols

this map may actually be an {expr: float} map rather than a {symbol: float} map. Reproducer is test_dimension.py::TestConditionalDimension::test_subsampled_fd. The ConditionalDimension's spacing is a Mul between its factor and the parent's spacing.
This inconsistency forced me to add an AttributeException here and raise a warning
I did try to fix it, but after 10 mins I was still unsure about what to do, maybe it's obvious to you @mloubout or we can talk about it

@mloubout actually, is it possible we have fixed this recently? mhh


i18n support

Not an ideal but deserves review

👍 thanks @ololoken 😄 I've scheduled some time to review on Monday (that's generally our bugfix/review day)

Coverage decreased (-0.006%) to 72.138% when pulling 5d25335c86f0448cdd2c57c22508fef67ab27025 on ololoken:i18n into 712d707dbd6d8415a8f06cdcd38bda789e140044 on TryGhost:master.

well, it's ready for review, mb some tests are missing. I'll add them later

@kevinansfield, hi, is there any chance to merge it before 2.0?

@kevinansfield any comments on this pr?

@ololoken we really appreciate the work you've put in here but we've discussed it internally and unfortunately we can't afford the maintenance cost of having Ghost-Admin translatable at this stage.
i18n has a number of knock-on affects at all stages of the product lifecycle from design, maintenance and day-to-day development, all the way through to release and marketing. This is a huge amount of work even for large teams and the Ghost product team is tiny - until very recently only 3 people!
If at some point in the future we're in a position to go all-in on a translatable admin area we'll be sure to open issues with a considered plan that contributors can work towards.

@kevinansfield sad to hear it, but I'm using ghost products in my own project and localization is very important of it, so I'll continue i18n maintenance in my fork.

I'm using ghost products in my own project and localization is very important of it, so I'll continue i18n maintenance in my fork.

Glad to hear. Localization is not super important for me, but I've got a few people who would like to use Ghost, but unfortunately only with a localized interface.
@kevinansfield

[…] we've discussed it internally and unfortunately we can't afford the maintenance cost of having Ghost-Admin translatable at this stage.

How about "only" providing the translation interface and English as official supported language, and every other language (maybe through the community?) as it is, without any support from your side? So you don't have to deal with translations?

@ololoken I'm not sure how to do a first-time-installation of your fork. Can you provide me with some steps, please?

@sfrnqdr

git clone https://github.com/ololoken/Ghost.git
cd Ghost/core
clone git clone https://github.com/ololoken/Ghost-Admin.git client
install yarn dependencies both for client and server
get default template git submodule update --remote content/themes/casper
and finally npm run dev

should work, but even "en" translation is long time out of date.


An Alternative .ToString()

https://github.com/MrSoxAndShoes/Entities/blob/426d175038e3792afba15323f3d5160e0f1f1245/entity.py#L238
In the current .ToString() implementation, a StringBuilder is created and then the Column Name and the value for that Column are added in pairs to the StringBuilder object. This is a pretty straight forward implementation, although it requires you to do a bit of string formatting to get it to look right.
As a "simpler" alternative it could be implemented this way:
using System.Text.Json;

public override string ToString()
{
    return JsonSerializer.Serialize(this);
}

This method relies on the System.Text.Json library to serialize the DTO into a string, internally formatted as valid JSON, to represent the DTO. This library is available as part of the ASP.NET Core runtime starting in .NET Core 3.0 (September 2019), so no additional NuGet packages are required.
A benefit of this method is that you can run it in reverse by copying the output of .ToString() and using it as the input for a .FromJSON(string json) method:
using System.Text.Json;

public static DTO? FromJSON(string json)
{
    return JsonSerializer.Deserialize<DTO>(json);
}

Which can be quite helpful when creating an instance of the DTO with known values to use for automated testing. Additionally, you don't have to do any of the string formatting yourself and the string representation of the DTO is in JSON which is a well-known and familiar format.
I like this project as I often find myself manually creating DTOs to represent existing tables/views/stored procedures in SQL Server. EF Core does support automatically scaffolding an existing SQL Server database. Although I have had mixed success with it, as it's awkward and temperamental to figure out the correct commands to pass it, especially if your project has multiple database contexts.

It depends on the intended usage. For DTOs, I have an object extension ToJson() and call it from the overridden ToString() method to output the instance as JSON. For my entities though, I don't typically output them to the user and instead override ToString() to display summaries during debugging like this:
var sb = new StringBuilder();

sb.AppendLine($"Account Number: {ACCOUNT_NUMBER} ({ACCOUNT_ID_NUMBER})");
sb.AppendLine($"  Site Address: {SITE_ADDRESS_LINE_1}");
sb.AppendLine($"                {SITE_CITY_STATE_ZIP_CODE}");
sb.AppendLine($"  Contact Name: {CONTACT_NAME}");
sb.AppendLine($"                {ATTENTION_TO}");
sb.AppendLine($"  Mailing Address: {MAIL_ADDR_LINE_1}");
sb.AppendLine($"                   {MAIL_ADDR_LINE_2}");
sb.AppendLine($"                   {MAIL_CITY_STATE_ZIP_CODE}");
sb.AppendLine($"                   {MAIL_COUNTRY_NAME}");
sb.AppendLine($"  PLSS Section: {PLSS_SECTION}");
sb.AppendLine($"  Account Type: {ACCOUNT_TYPE}");
sb.AppendLine($"  Account Status: {ACCOUNT_STATUS} ({ACCOUNT_STATUS_DATE:d})");
sb.AppendLine($"  Real Account ID: {PROP_REAL_ACCOUNT_ID}");

return sb.ToString();

IOW, the intent for the ToString() override in the entities is to provide a head start on the output with all the class properties and let the developer edit to their liking.


Implement league screen

This is basically a rewrite of the Archers tab so that it follows the design suggestion that Magnus and I did.

Fixed in 64010e373eccdb419ec1b6231763126b6b4fc9a7


Release v1.12.2

Release 1.12.1
Bugfix release for changed signal
Signal Changes

Reverted "COVID-Related Doctor Visits" signal

Bug-fixes

#703 rename COVIDCast to COVIDcast

Others

#704 Unique bundle names

@krivard please take a look and approve if everything is ok

@krivard please take a look and approve if everything is ok


Fixes for 3.11

Fixes #1086

We still have compile errors:
ative/common/jp_exception.cpp: In function ‘PyObject* tb_create(PyObject*, PyObject*, const char*, const char*, int)’:
native/common/jp_exception.cpp:527:9: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
  527 |   state.frame = (PyFrameObject*) prev.get();
      |         ^~~~~
      |         cframe
native/common/jp_exception.cpp:530:9: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
  530 |   state.frame = NULL;
      |         ^~~~~
      |         cframe
native/common/jp_exception.cpp:540:84: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
  540 |  JPPyObject lasti = JPPyObject::claim(PyLong_FromLong(((PyFrameObject*)frame.get())->f_lasti));
      |                                                                                ^~
In file included from /opt/_internal/cpython-3.11.0rc1/include/python3.11/Python.h:42,
                 from native/common/jp_exception.cpp:16:
/opt/_internal/cpython-3.11.0rc1/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~
error: command '/usr/bin/ccache' failed with exit code 1

Perhaps worth enabling CI for Python 3.11 (you might have to use the Python available on the manylinux image, rather than what Azure provide). I note that currently a release of JPype would fail because it would try to build a Python 3.11 wheel (since we glob the Python versions available on manylinux), even though that isn't tested (something we could try to address another time).

native/common/jp_exception.cpp:527:9: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?

Changes of the [PyThreadState](https://docs.python.org/3.11/c-api/init.html#c.PyThreadState) structure members:

    frame: removed, use [PyThreadState_GetFrame()](https://docs.python.org/3.11/c-api/init.html#c.PyThreadState_GetFrame) (function added to Python 3.9 by [bpo-40429](https://bugs.python.org/issue?@action=redirect&bpo=40429)).

see https://docs.python.org/3.11/whatsnew/3.11.html#id6

see https://docs.python.org/3.11/whatsnew/3.11.html#id6

Thanks @rapgro, but the problem is that we are setting the frame, not getting the frame in this case. I appreciate that this hasn't been public API in any Python version from Python 2.7. Some interesting context on the motivation at https://github.com/jpype-project/jpype/discussions/1071#discussioncomment-2835357.

@pelson I found the issue with the broken test.   So I have a fully working copy for 3.11.  Now we just need to get the multi version going and we should be good to go.

@marscher Some background on this.   Python 3.11 removed a number of internal methods that we were using.  These methods were used because the Python API is completely deficient in some areas like handling stack frames or using custom allocators with GC objects.   They are planning replacements for what we need but none of the replacements are in 3.11.  So they gutted the interface we are standing on, and there is no replacement.   Meaning unless I do something drastic we won't support 3.11 at all.
   The biggest danger is these kludges will introduce reference leaks as they are doing things like initializing an object twice and swapping the memory layout.  They are safer in the sense that I managed to get them to use the public API, but in horrible ways (basically creating using side effects of the public implementations).    Hopefully these last until the replacement API is released.

Python 3.11 removed a number of internal methods that we were using. These methods were used because the Python API is completely deficient in some areas like handling stack frames or using custom allocators with GC objects. They are planning replacements for what we need but none of the replacements are in 3.11. So they gutted the interface we are standing on, and there is no replacement. Meaning unless I do something drastic we won't support 3.11 at all.

That's bad news, lets hope that 3.12 will add support for what is needed.

 The biggest danger is these kludges will introduce reference leaks as they are doing things like initializing an object twice and swapping the memory layout. They are safer in the sense that I managed to get them to use the public API, but in horrible ways (basically creating using side effects of the public implementations). Hopefully these last until the replacement API is released.

I wonder how bullet proof our leakage testing is. This could be the time to check and eventually improve this. I know this is hard to achieve, but would safe us lots of troubles some day.
If we now can compile and run the testsuite on 3.11m, I'd recommend adding it to the testing matrix.

Our testing matrix checks common leak paths in objects.  This particular spot is on types not general objects, so it only really leaks after the JVM is shutdown which is less of an issue than an object leak.  Thus unless you were adding lots and lots of dynamically allocated types form Java then the leak may be a problem.   But as we always cache types they are never freed in normal situations anyway.

@Thrameos & @marscher - I'm unavailable for a bit now, and won't be back before the Python 3.11 release. Do you agree that we should merge and release a v1.4.0.post0 wheel, with only a Python 3.11 build? I believe this should work out just fine for existing users, and new Python 3.11 users will get the newer version.

I'm also fine with a micro patch release for this kind of change. Sorry for the delay!

Will do.  Thanks.

native/python/pyjp_value.cpp:
		// Horrible kludge because python lacks an API for allocating a GC type with extra memory
		// The private method _PyObject_GC_Alloc is no longer visible, so we are forced to allocate
		// a different type with the extra memory and then hot swap the type to the real one.

FYI @encukou is working on a Python API for that.

Yep.  Have looked at that API, but it doesn't exist for Py 3.11 so we are stuck because our old method using private functions doesn't work.   Worse it appears this kludge may break something in the garbage collector at least in one projects testing.   So I need to investigate further this weekend.

Thanks for taking the shot!

Thanks for taking the shot!

IMO, if we can engage with the Python RC process, there should be enough time to avoid nasty surprises. If we find that we absolutely can't be compatible with Python 3.12, we can always release something then which has that constraint. In general, upper pins are discouraged (long read).
I think some more dialogue between the C API team and JPype should come out of this :crossed_fingers:, so I truly hope things will get better, not worse, in the future.

A first step could be testing against unreleased versions of Python, right? I'm sure they provide a nightly build, which we can integrate into our CI process on a regular basis.
@pelson Thanks for the reference about version pinning. I wasn't aware, that is becoming a disease in the eco system :)
How do you suggest to get in touch with the C-API team? If the nightly Python job fails, we could get in touch like on their bug-tracker or IRC, whatever they use nowadays.

The first Alpha of CPython 3.12 is already out. I think the alphas/betas would work bit better for you than nightly builds, since they're proper releases that pass the full test suite (i.e. stable buildbots) & have release blockers sorted out.
There's no formal “C API” team, but to get in touch with the relevant people, use the expert-C-API label on the CPython bug tracker, or the just-opened C-API category on Discourse: https://discuss.python.org/c/core-dev/c-api/30

Thanks a lot @encukou for these useful hints!


Fixed capitalization of "ECMAScript" and "JavaScript" in docstrings and comments.

You can squash commits.

Done. I also found:

django/contrib/admin/static/admin/js/core.js: // Core javascript helper functions


Using mask with vue js

Hi,
Is there any way to use it with vue js  , since ionic 4 is supporting vue js .
Thanks in advance.

not supported vue js, only angular 6+


Button implementation

This PR consists of adding a rudimentary button control workflow for the gantry system, as well as avrdude support for the AtMega.

We decided buttons out of scope for the project


refactor: use typed jest globals

Using a patch to play with https://github.com/facebook/jest/pull/12856. This is a small library mixing JS/TS, so a good playground.
Observations:

The most notable difference from @types/jest is that just installing @types/jest makes types of globals available everywhere. If test files live inside __tests__ directories, to be precise one should opt-out in source directories through "types": [].

In contrary, just installing jest does not make types available. One has to opt-in adding tsconfig.json with "types": ["jest"] in __tests__ directories. If I get it right, this would disable other globals coming from @types/*, e.g. Node typings.

If test files live next to source (not in separate directories), it is harder to be precise with any opt-ins / opt-outs. In case of jest types, tsconfig.json needs "types": ["jest", "node"].

If we have JS library, installing @jest/types or jest makes typings of globals available in all files. With tsconfig.json added, one has to opt-in for jest types, but @jest/types are still available globally.

Also I reworked type checks to include files of e2e and unit tests. Somehow missed it before.

The useful parts were moved to #116.


tput

export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:$HOME/bin:$PATH

need to use /usr/bin/tput, NOT /opt/local/bin/tput

however it is very wierd

for /opt/local/bin/tput,    tput -V
ncurses 6.0.20150808

BUT

but /usr/bin/tput, tput -V
ncurses 5.7.20081102

so your terminfo command DOES NOT WORK with newer ncurses 6

where u used the command cd

clear screen

https://www.gnu.org/software/termutils/manual/termutils-2.0/html_chapter/tput_1.html

which is why i got the error unknown terminfo capability

@jgigault did you fix this in ccf8d390e6a6e9bd86be1f758b9ae711a3bcabf3 ?


When copying an emoji in the chat it doesn't include the colons on either side.

Describe the bug
When copying an emoji in the chat it doesn't include the colons on either side.
To Reproduce
Steps to reproduce the behavior:

Copy an emoji posted in the chat.
Attempt to past the emoji.
Observe that the colons that should be on either side are not present.

Expected behavior
It should have the colons around the emoji.
Screenshots
https://gyazo.com/4d18232c9aae536ae65631e274bd2de7
What device are you on?
Windows, Desktop, Chrome

#1459


Upgrade to latest otel collector

Fix usage of deprecated APIs.
Fix usage of Insert when Upsert is possible, helps with performance a bit.

Signed-off-by: Bogdan Drutu<EMAIL_ADDRESS>

/gcbrun


add TcpStream::peek

Ah, so this requires a newer version of Rust than what is being tested on Travis. Breaking change needing 0.7, or just Deal With It?

CI passed!


[easy] rename query to es_query

This is to match the server API change.

Codecov Report

:exclamation: No coverage uploaded for pull request base (tonytung-bindings@cd8cbc5). Click here to learn what that means.
The diff coverage is n/a.

@@                 Coverage Diff                  @@
##             tonytung-bindings      #58   +/-   ##
====================================================
  Coverage                     ?   68.89%
====================================================
  Files                        ?       24
  Lines                        ?      881
  Branches                     ?        0
====================================================
  Hits                         ?      607
  Misses                       ?      274
  Partials                     ?        0

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 cd8cbc5...8fb731b. Read the comment docs.


GVRMobileIODevice class

this class encodes the reading and writing of data to the app over Wifi,

WifiDirectBroadcastReceiver establishes connection over WiFi
Connect Server listens to the client and establishes connection and
also the Input and Outputstreams
ClientWrite writes data/feedback to the client
ReadFromServer reads the incoming data i.e the orientation

Please review this @dknaan

@varunns @dknaan let us know when this PL is ready for review.

Can't build the mobileiodevicemodules project.
Should remove all the gradle files and write new ones as configured in gearwear

@varunns Is this ready for review again?

@liaxim Sorry just checked your message, Yes I have already asked Parth and Rahul to review the changes , Thank you

This pull request still needs work.
@varunns will follow up.

Built and worked for me, but I would improve the following:

Rotation is very jittery. I already worked better it the past.   I think that the translation worked a bit smoother earlier, but I'm not sure.
In the phoneIOdevice we need indications if it was connected to the app and if it's now in a translation of rotation mode
The Readme file should also explain:

the order that the projects has to be built in order for the gvrmobiledevice app to work
the relative path where the project are located.

Any updates?

@varunns Should this be closed until you have updates?

Will close tomorrow if there is no update on the status of this pull request.