Error in cipher.py "could not find python equivalent function for: "

When try to  yt = YouTube("http://youtu.be/Z32gK0QkvkA") meet the error
Traceback (most recent call last):
File "D:/YandexDisk/Code/Python/youtube.py", line 185, in download_file
yt = YouTube(youtube_link)
File "D:\Python\lib\site-packages\pytube_main_.py", line 83, in init
self.prefetch_init()
File "D:\Python\lib\site-packages\pytube_main_.py", line 92, in prefetch_init
self.init()
File "D:\Python\lib\site-packages\pytube_main_.py", line 126, in init
mixins.apply_signature(self.player_config_args, fmt, self.js)
File "D:\Python\lib\site-packages\pytube\mixins.py", line 40, in apply_signature
signature = cipher.get_signature(js, stream['s'])
File "D:\Python\lib\site-packages\pytube\cipher.py", line 243, in get_signature
tmap = get_transform_map(js, var)
File "D:\Python\lib\site-packages\pytube\cipher.py", line 119, in get_transform_map
fn = map_functions(function)
File "D:\Python\lib\site-packages\pytube\cipher.py", line 200, in map_functions
js_func,
pytube.exceptions.RegexMatchError: function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}: could not find python equivalent function for:
It looks error in cipher.py

What version of python are you using?


Kibana 3 dashboards work with compound query keys

This separates filters added to kibana 3 dashboards if compound_query_key is used.
I will add a test for this (and upload_dashboard as a whole for that matter).

lgtm


Displays missing item in battle

refers #41

@mario51y1 It looks like there's a bug where if you repeatedly use an item not in the inventory, the enemy will heal themselves instead of doing nothing.

Yeah, thought I made the if statement that checks the damage but seems it's missing.

Could you make -2 a constant, like SKIP_TURN? This will ensure readability

Also, weirdly when I try to use a non-existent item, the message is displayed twice as long.

Ok, so is something else missing? Had some troubles with visual sutudio and I couldnt test if everything is working as suposed.

Thanks for the patience while I reviewed this PR @mario51y1. Everything's good now, I just had to fix a little bug in the code but it's all working now. Happy hacktoberfest! 🎃

Thanks for your patience as well working wiht a newbie in GitHub, I'm happy that evertyhing is working now. Happy Hacktoberfest too! 🎃

I was in your position as a newbie on github just a few years ago, everyone starts somewhere :smile: Hope you continue to contribute to open source in the future!


fix: pool internals improvements

fix DecrementSizeGuard::drop() only waking one Waiter regardless of whether that waiter was already woken
fix connect-backoff loop giving up the size guard
don't cut in line to open a new connection
have tasks waiting on acquire() wake periodically to check if there's a connection in the queue

@dignifiedquire do you mind testing this?
Signed-off-by: Austin Bonander<EMAIL_ADDRESS>

Tested and this does fix the issues I am seeing on master for all my test cases 👍

Can this be released as SQLx 0.5.2? We just had our SQLx DB pool get stuck without any connections to give out yesterday, hoping this will ensure that doesn't happen again.

Yes. Planning to do that later today (merge in anything non-breaking and put out a 0.5.2).


[vulnerability] Unauthorised Access Vulnerability

1. Steps to reproduce
Modify the sub field in jwt to be the id of another user to fake his/her identity.

The nuclei template is as follows
id: aurora-jwt-hardencoding

info:
  name: Aurora blog jwt secret key hardencoding
  author: calico
  severity: high
  description: jwt secret key hardcoding leads to unauthorised access
  reference:
    - https://github.com/linhaojun857/aurora/
  tags: unauth

requests:
  - raw:
      - |+
        GET /api/admin/users/role HTTP/1.1
        Host: {{Hostname}}
        User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0
        Accept: application/json, text/plain, */*
        Accept-Language: en-US,en;q=0.5
        Accept-Encoding: gzip, deflate
        Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiJjMThlZTQxYWRmZDk0ZDYyOWQ2ZjExNTAxM2NkMjVmNiIsInN1YiI6IjEiLCJpc3MiOiJodWF3ZWltaWFuIn0.JoipYRzDC3jKAqNhV_0skiq4XikhNCmj2shMl5F1euA
        Connection: close

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"code":20000'
      - type: status
        status:
          - 200

2. Expected behavior
The JwtAuthenticationTokenFilter gets the jwt from the request via the tokenService#getUserDetailDTO method.

Call the parseToken method to verify that the jwt is valid.
3. Actual behavior
In the parseToken method, get the signing key for jwt via the generalKey method

Since SECRET is hardcoded in the code, the same key is returned in the generalKey method, resulting in a forged jwt

4. Affected Version
latest
5. Fixes Recommendations
Randomly generate the key for jwt when the program is run

Thank you for your feedback, I will fix it as soon as possible, and also welcome pr


Too many files (probably)?

The Crash Reporter doesn't work with GitHub's Issues page correctly so I've just attached a ZIP file of the files it makes. Cheers.
Grabber.zip

Have another!
Grabber 2.zip

Too many files (probably)?

why did you made this conclusion? :thinking:

It seemed to be occurring with tags that return many results. Also, I could download from each source individually without crashing but if I click the regular Download button (as in download the lot in one go) then it would bomb. I noticed the file counts would go crazy high, sometimes with a minus (negative) sign which might indicate a memory leak or buffer overflow or whatever I guess.


Last Week in Pony - June 27, 2023

Planning to highlight the Playground this week. I should either have time tonight or Saturday to sit down and write it.


Why recurring events are only allowed to generate 3500 instances ?

Hello,
Using Sabre 3.2.0, when I create a recurring event with a RRULE count property greater than 3499 I got the following error.
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">   <s:sabredav-version>3.2.0</s:sabredav-version>   <s:exception>Sabre\VObject\Recur\MaxInstancesExceededException</s:exception>   <s:message>Recurring events are only allowed to generate 3500</s:message>   <s:file>/var/www/vendor/sabre/vobject/lib/Recur/EventIterator.php</s:file>   <s:line>312</s:line>   <s:code>0</s:code>   <s:stacktrace>#0 /var/www/lib/CalDAV/Backend/Mongo.php(788): Sabre\VObject\Recur\EventIterator->valid() #1 /var/www/lib/CalDAV/Backend/Mongo.php(288): ESN\CalDAV\Backend\Mongo->getDenormalizedData('BEGIN:VCALENDAR...') #2 /var/www/vendor/sabre/dav/lib/CalDAV/Calendar.php(201): ESN\CalDAV\Backend\Mongo->createCalendarObject(Array, '309f362f-75fa-4...', 'BEGIN:VCALENDAR...') #3 /var/www/vendor/sabre/dav/lib/DAV/Server.php(1072): Sabre\CalDAV\Calendar->createFile('309f362f-75fa-4...', 'BEGIN:VCALENDAR...') #4 /var/www/vendor/sabre/dav/lib/DAV/CorePlugin.php(525): Sabre\DAV\Server->createFile('calendars/57fd0...', Resource id #5, NULL) #5 [internal function]: Sabre\DAV\CorePlugin->httpPut(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response)) #6 /var/www/vendor/sabre/event/lib/EventEmitterTrait.php(105): call_user_func_array(Array, Array) #7 /var/www/vendor/sabre/dav/lib/DAV/Server.php(479): Sabre\Event\EventEmitter->emit('method:PUT', Array) #8 /var/www/vendor/sabre/dav/lib/DAV/Server.php(254): Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response)) #9 /var/www/server.php(169): Sabre\DAV\Server->exec() #10 {main}</s:stacktrace> </d:error>
I can reproduce the same error using a big date for the until property.
Then I create a recurring event that never end and I was really surprised to see that in fact it does not repeat more than a certain amount of times, is it wanted ?

The main reason is because it's possible otherwise to construct an event that DDOS's the server.
I picked 3500 because it's it would be enough for a single daily event, spanning 10 years. It also covers birthdays (nobody would go over a 100 recurrences really).
What's your use-case?

Thank you for your answer
I understand the concern about preventing the Sabre server computing too much instances.
But I do not understand why this limit is done at the creation of the event.
I think it will be better to expand instances at the last time possible and to impose a limit about the number of recurring event at this moment. Like that we will only limit user in the size of period asked and not limit theme on the size of recurring event.
I do not have a particular use-case but I think it's a bug to have recurring event, that should never, actually end one day.
I think there could have some use-case where a recurring event would be on a period of 10 or 20 years. But I do not see a use-case where a user would like to have all the event on period as big as 10 years.
I do not know if I am clear enough on my explanation or if I miss something that will make impossible to implement my suggestion.

Can you share the exact event you're uploading? This is definitely starting to sound like a bug.
sabre/dav should currently detect infinitely recurring events, and handle these correctly. This is indeed a common use-case.

For example if I create this event that recur every day for always and that start the 13 october 1980
BEGIN:VCALENDAR BEGIN:VEVENT UID:b448ea7f-4910-4c6c-8a18-a0ed418b3ed2 TRANSP:OPAQUE DTSTART;TZID=Europe/Berlin:19801013T140000 DTEND;TZID=Europe/Berlin:19801013T150000 ORGANIZER;CN=admin<EMAIL_ADDRESS>SUMMARY:test rec very day RRULE:FREQ=DAILY<EMAIL_ADDRESS>END:VEVENT BEGIN:VTIMEZONE TZID:Europe/Berlin BEGIN:DAYLIGHT TZOFFSETFROM:+0100 TZOFFSETTO:+0200 TZNAME:CEST DTSTART:19700329T020000 RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU END:DAYLIGHT BEGIN:STANDARD TZOFFSETFROM:+0200 TZOFFSETTO:+0100 TZNAME:CET DTSTART:19701025T030000 RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU END:STANDARD END:VTIMEZONE END:VCALENDAR
Then when I ask for a period around today, I have the following error:
<?xml version="1.0" encoding="utf-8"?> <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">   <s:sabredav-version>3.2.0</s:sabredav-version>   <s:exception>Sabre\VObject\Recur\MaxInstancesExceededException</s:exception>   <s:message>Recurring events are only allowed to generate 3500</s:message>   <s:file>/var/www/vendor/sabre/vobject/lib/Recur/EventIterator.php</s:file>   <s:line>312</s:line>   <s:code>0</s:code>   <s:stacktrace>#0 /var/www/vendor/sabre/vobject/lib/Recur/EventIterator.php(410): Sabre\VObject\Recur\EventIterator->valid() #1 /var/www/vendor/sabre/vobject/lib/Component/VEvent.php(49): Sabre\VObject\Recur\EventIterator->fastForward(Object(DateTimeImmutable)) #2 /var/www/vendor/sabre/dav/lib/CalDAV/CalendarQueryValidator.php(291): Sabre\VObject\Component\VEvent->isInTimeRange(Object(DateTimeImmutable), Object(DateTimeImmutable)) #3 /var/www/vendor/sabre/dav/lib/CalDAV/CalendarQueryValidator.php(79): Sabre\CalDAV\CalendarQueryValidator->validateTimeRange(Object(Sabre\VObject\Component\VEvent), Object(DateTimeImmutable), Object(DateTimeImmutable)) #4 /var/www/vendor/sabre/dav/lib/CalDAV/CalendarQueryValidator.php(41): Sabre\CalDAV\CalendarQueryValidator->validateCompFilters(Object(Sabre\VObject\Component\VCalendar), Array) #5 /var/www/vendor/sabre/dav/lib/CalDAV/Backend/AbstractBackend.php(145): Sabre\CalDAV\CalendarQueryValidator->validate(Object(Sabre\VObject\Component\VCalendar), Array) #6 /var/www/lib/CalDAV/Backend/Mongo.php(402): Sabre\CalDAV\Backend\AbstractBackend->validateFilterForObject(Array, Array) #7 /var/www/vendor/sabre/dav/lib/CalDAV/Calendar.php(372): ESN\CalDAV\Backend\Mongo->calendarQuery(Array, Array) #8 /var/www/lib/JSON/Plugin.php(395): Sabre\CalDAV\Calendar->calendarQuery(Array) #9 /var/www/lib/JSON/Plugin.php(50): ESN\JSON\Plugin->getCalendarObjects('calendars/57fd0...', Object(Sabre\CalDAV\SharedCalendar), Object(stdClass)) #10 [internal function]: ESN\JSON\Plugin->httpReport(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response)) #11 /var/www/vendor/sabre/event/lib/EventEmitterTrait.php(105): call_user_func_array(Array, Array) #12 /var/www/vendor/sabre/dav/lib/DAV/Server.php(479): Sabre\Event\EventEmitter->emit('method:REPORT', Array) #13 /var/www/vendor/sabre/dav/lib/DAV/Server.php(254): Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response)) #14 /var/www/server.php(169): Sabre\DAV\Server->exec() #15 {main}</s:stacktrace> </d:error>

That makes sense, but it's not the same problem that you described earlier.
This definitely to me falls in a category of 'unrealistic use-case'. Even though iCalendar allows it, we need to impose some limits around what we think are realistic use-cases.
PUTing this request should work just fine, because it should correctly be identified as an infinite recurrence.

I did not notice it cause an error until today sorry, I thought it just does not expand the event.
But this case is for sure very problematic and a 'unrealistic use-case'. Because that someone create a infinite event every day, on a system that use Sabre on day and that system is always in use 10 year after is definitely something that could happen.
When do you expand the event, why don't you expand the event only on the asked period by the user ?

Because that someone create a infinite event every day, on a system that use Sabre on day and that system is always in use 10 year after is definitely something that could happen.

Yea it's not impossible, but that's also partially why I wanted to wait and see what people do with this and what problems people are running into. That's why I'm not really interested in the case where you create a daily event from january 1st, 1970, because it's not real. Instead, give me a real-world example of when you ran into a problem and based on what we might be able to figure out how to better handle that scenario, instead of your fictional one.

When do you expand the event, why don't you expand the event only on the asked period by the user ?

Because for many, many recurrences we must calculate every previous recurrence to figure out which recurrences fall in the requested time period. The simplest example is a recurrence with COUNT (we need to count recurrences to know for sure that it's still recurring in that time period), but there's a lot of other situations that are not as simple as that.
If it's just a DAILY rule and 0 other restrictions, I agree that's a specific case we can optimize for and just 'skip ahead' to that time period, but I've not optimized these type of scenarios yet until I get to the point where I have real-world use-cases where this is beneficial. I don't want to make the already complex code even more complicated unless I can measure the benefit it brings.

I understand your point and for expanding event in our frontend using ICAL.js, I know ICAL.js have the same issue because they provide a iterator that can only start from the start of the master and not from a arbitrary start.
For information, for our front-end expand of a recurring event on a specific period, we for the moment do expand from the beginning of the recurring event even if it's way before the beginning of the period. I made a test with a recurring event starting at 1930 and asking a period around today it took about 3 second to our code to finish expanding the event.
I definitely agree with the fact, you don't want to take care of a bug before it really happen in a real situation. But will you accept a PR to improve that issue if by miracle we find time to work on it ?
Don't you thing that at least when a requested period has a 'too big recurring event' should just be ignored instead of making the response of the full period (that could include other event) fail ?

I would actually be happy to do this fix myself, if you can send me some specific examples of real situations where we're currently breaking.
But yes, for those situations I would also accept patches. The key here is real cases though.

No further feedback received.


Office 365 IP Addresses and URL's Whitelist Query

Q1.If there are no Asia-Pacific related IP addresses for Office 365 services. Can you whitelist URL's alone and leave out public IP addresses from "Addresses" column on the article from this URL (Example: Exchange Online - outlook.office.com, smtp.office365.com, SharePoint - [tenant].sharepoint.com, [tenant]-my.sharepoint.com, Teams - *.lync.com, *.teams.microsoft.com, teams.microsoft.com).
Q2.For the "Ports" column on this article , there is no clear information of ports that needs to be allowed bi-directional and ports that needs to be allowed uni-directional on the Firewall. Please clarify this so that we allow correct ports for each Office 365 services with correct direction.

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

ID: 077406d8-bff1-496e-3ea2-b38558fd9355
Version Independent ID: 57db3dec-2250-2dee-fd1a-ec6656911798
Content: Office 365 URLs and IP address ranges
Content Source: Enterprise/urls-and-ip-address-ranges.md
Service: o365-administration
GitHub Login: @JoeDavies-MSFT
Microsoft Alias: josephd

Hello @exc877 How are you? 👍
About Q.2: The article currently says:

Endpoint data below lists requirements for connectivity from a user's machine to Office 365. It does not include network connections from Microsoft into a customer network, sometimes called hybrid or inbound network connections.

About Q.1: I would say that you can't leave out Public IP Addresses but I would like to check with @JoeDavies-MSFT to confirm.
Thanks

@exc877: @get-itips is correct. We can't leave out public IP addresses for Optimize and Allow category endpoints. You are free to just whitelist the FQDN and not whitelist the public IP addresses. Both must be provided to support different types of network edge devices. Thanks for your question.


Pull apart HTTP and API

Currently notions of HTTP serving and API handling are complected together in the def-http-component and http-system-map functions. Clearly, there should be separate components:

Http component takes care of serving HTTP requests on the configured port. Uses configuration with :http- prefix.
Api component takes care of calling the corresponding handler functions according to the API spec. Uses application-specific configuration with :api- prefix.

Hey @dryewo, can we close this issue? It's from May 2016.
Or, we could add a "Help Wanted" label.

Closing this, was implemented in #97


[Data Access API] error decrypting transaction

Reproducing Steps:
Start a Darksidewalletd server on localhost and run testReOrgChangesInboundTxMinedHeight
[ERROR 💥] CompactBlockEnhancementOperation.swift - main() - Line: 61 -> could not enhance txId 15a677b6770c5505fb47439361d3d3a7c21238ee1a6874fdedad18ae96850590 - Error: decryptError(error: ZcashLightClientKit.RustWeldingError.genericError(message: "Error while decrypting transaction: NOT NULL constraint failed: received_notes.is_change"))

This is a bug I introduced, there's a distinction between stmt_update_received_note and stmt_update_note in zcash_client_sqlite/src/scan.rs that I didn't catch.

@pacu https://github.com/zcash/librustzcash/pull/307/commits/d77784eba83b260f3a708eda5a8892a4741582a0 should fix this one.


Error Install Sharp in Window 11

I get the same error after cloning my repository and running yarn

I am using version of node v16.20.0 and Python 3.10.11
The question would be what is the version of node with which I can work with sharp that does not give me a problem in the installation
Other relevant information

Your OS: Windows 11
Node.js version: v16.20.0
Python  version:  3.10.11
Sharp Version: ^0.23.4

Please upgrade to the latest version of sharp.

Excuse me, what is the version of node that supports the latest version of sharp?

Please upgrade to the latest version of sharp.

Excuse me, what is the version of node that supports the latest version of sharp?

https://github.com/lovell/sharp/blob/b763801d68f6be945cda0f51a08430daeb47eaea/package.json#L179-L181


Connect with already opened window.

Is there a way to connect already opened chrom window( example: with selenium webdriver js) and get the HAR report.

If you know browser's wsEndpoint, you can use pptr.connect.
For HAR generation, there's a puppeteer-har that addresses this.
Hope this helps

@siva201010sivakumar is it worked


Feature/currentColor

fix #29 and #31

Notes to all PR.

Please do not comit changes not apply to your fix like new lines of code, new whitespaces, etc...
Do not change version, it will be change automatically
If you fix dates in CHANGELOG file, those are separate fixes create a separate PR for those.
If you add .vscode to ignore add this to separate PR too. But in fact, do not. Because I will not ignore it. It contains tasks to run debug mode, my settings for theme and all other things that should be there.

sorry, i don't have experience, thx you reminder

sorry, i don't have experience, thx you reminder

It is ok. No problems. I can copy your suggestions manually. I only need to confirm what is that git-flow CLI? I want to make sure it has same commands supported


Error message when a temporary file failed to be removed on Ubuntu, related to #150

Description
I'have an error that should be a consequence of some modifications made for #150 :
Traceback (most recent call last):
  File "/home/afsy/jrs/Documents/geometwps/srvgeomet27/src/pywps-master/pywps/app/Process.py", line 227, in _run_process
    100, STATUS.DONE_STATUS, clean=self.async)
  File "/home/afsy/jrs/Documents/geometwps/srvgeomet27/src/pywps-master/pywps/app/WPSResponse.py", line 70, in update_status
    self.write_response_doc(self.doc, clean)
  File "/home/afsy/jrs/Documents/geometwps/srvgeomet27/src/pywps-master/pywps/app/WPSResponse.py", line 84, in write_response_doc
    self.process.clean()
  File "/home/afsy/jrs/Documents/geometwps/srvgeomet27/src/pywps-master/pywps/app/Process.py", line 281, in clean
    except WindowsError as err:
NameError: global name 'WindowsError' is not defined

Environment

operating system: Ubuntu 14.04, 16.04
Python version: 2.7
PyWPS version: 4, latest
source/distribution
[x] git clone
[ ] Debian
[ ] PyPI
[ ] zip/tar.gz
[ ] other (please specify):
web server
[ ] Apache/mod_wsgi
[ ] CGI
[x] other (please specify): Flask

Steps to Reproduce
Lock on the tmp dir
Additional Information

Hi,
the error is due to missing WindwsError class on non-Windows system
I've prepared fix for that https://github.com/jachym/PyWPS/commit/00e5b11f2368c551890be8f0d82c28c925cb464b#diff-bddcbbd3f8d8f4182a33f03a1f9a847dL278
Quick solution: just remove the two lines in Process.py
-        except WindowsError as err:
-                LOGGER.error('Windows Error: %s', err)

Fixed in PR #222


riscv64-embedded fails to link anything, discovered as spike build failure

Describe the bug
riscv64-none-elf-gcc fails to link basic file. This breaks the build of spike. . You will see riscv64-none-elf-ld: cannot find crt0.o: No such file or directory cannot find -lgloss: No such file or directory
Steps To Reproduce
Steps to reproduce the behavior:
nix-shell -p pkgs.spike, or nix-shell -p pkgsCross.riscv64-embedded.stdenv.cc followed by touch nothing.c && riscv64-none-elf-gcc nothing.c
Expected behavior
Spike builds, or linker errors are only related to the empty C file, not to default linking options failing.
Notify maintainers
team gcc:
@Synthetica9
@vcunat
@Ericson2314
Metadata
emil@fridge ~> nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.62, NixOS, 23.11 (Tapir), 23.11pre546599.e44462d6021b`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"nixos, nixos-23.05-23.05"`
 - channels(emil): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Bisected here: https://github.com/NixOS/nixpkgs/commit/1e47c87fd239258c2e5e8259765053c24b5f50d9
Repro:
# builds
nix shell https://github.com/NixOS/nixpkgs/archive/1e47c87fd239258c2e5e8259765053c24b5f50d9.zip#pkgsCross.riscv32-embedded.riscv-pk
# fails to build due to this configure error
nix shell https://github.com/NixOS/nixpkgs/archive/4c5a455ca5c09a15edca42e83e8b65773da4394a.zip#pkgsCross.riscv32-embedded.riscv-pk

I think https://github.com/NixOS/nixpkgs/commit/1e47c87fd239258c2e5e8259765053c24b5f50d9 may not take into account the fact that standalone none/eabi toolchains you actually need those built with the compiler. Maybe we add an optional argument for such platforms? Let me know what you think @amjoseph-nixpkgs

https://github.com/NixOS/nixpkgs/pull/266364 is the relevant PR. Maybe we can modify the environment of these platforms specifically. The principle behind the fix in the commit in question makes sense to me, but I am not sure how best to proceed.

riscv64-none-elf-gcc fails to link basic file. This breaks the build of spike. . You will see riscv64-none-elf-ld: cannot find crt0.o: No such file or directory cannot find -lgloss: No such file or directory

I think I know what this is.

Testing fix:

https://github.com/NixOS/nixpkgs/pull/268026

Yep, it fixes spike.


Detect From Iamge Error

Something went wrong! TypeError: Cannot read properties of undefined (reading 'map') at Av.DetectFromImage (http://<IP_ADDRESS>:7860/file=I:/stable-diffusion-webui/extensions/sd-webui-3d-open-pose-editor/javascript/openpose.umd.js?1679236453.501455:3398:17542)

I think the error is that the pose cannot be recognized from the image. Could you try another image?
The error message will be improved later.

I think the error is that the pose cannot be recognized from the image. Could you try another image? The error message will be improved later.

Yes, after testing with multiple images, the error is indeed generated by its inability to recognize the pose in the image.
However, as far as I can see, the success rate of recognition is not very high, even for sketches of paintings with a fairly high degree of completion.

Perhaps it would be better to use photos instead of illustrations.

I'm considering adding a feature to modify the parameters of detection via webui. But it would be difficult to improve the models for detection.


unwrap in TableBuffer::record_batches causing panics

While working on the load generator, I came across some unwrap errors from the table buffer implementation.
Specifically, this function: https://github.com/influxdata/influxdb/blob/main/influxdb3_write/src/write_buffer/table_buffer.rs#L186-L196
The panic error:
thread 'tokio-runtime-worker' panicked at influxdb3_write/src/write_buffer/table_buffer.rs:191:47:
called `Option::unwrap()` on a `None` value

So, the call to get the field from the TableBuffer by the schema's field name is returning None.
I extended the panic message to see what field was causing the panic, and found that it is a field that is contained in the catalog on disk, so there may be something off with how the table buffer is initializing from the catalog.

Ah, the buffer only creates columns for data that it sees as you're writing rows in. It doesn't actually have access to the Catalog at all. So this just needs to be fixed when getting the record batch data out of the table. It will either need to create that column filled with nulls, or do projection on the schema to remove the columns that don't appear in its buffer and use that projection in the record batches it creates.

It is not clear if this issue is still present, but in the current table buffer code, there are no unwraps when producing record batches here or here, so I think this can be closed.


change the version

for every release office  , version no is diffrent , so i would recommend the microsoft office  team , to change verion from 16.0 to 19.0  for office 2019 .
The folowing benefits are added Once  chnaged the version

users can able  to install previous versions  of  office suites together with ofice 365
2.Users can use   both office 2016 and  office 2019 together  on same machine
Users can  themselves can compare the features  while creating a document

Thanking you sirfor the information

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

ID: d40c96f3-1c97-b538-ef82-ffbf0eef204d
Version Independent ID: 2d6883b5-1b5c-dc16-9999-17d0652bfa48
Content: Supported scenarios for installing different versions of Office, Project, and Visio on the same computer
Content Source: DeployOffice/install-different-office-visio-and-project-versions-on-the-same-computer.md
Service: o365-proplus-itpro
GitHub Login: @DHB-MSFT
Microsoft Alias: danbrown

The product team responsible for this did consider changing the version number for the Office 2019 release, but there were other benefits for keeping with the 16.0 version number and that's why they decided to keep the version number at 16.0. Keep in mind that running multiple versions of the Office suite on the same computer is not recommended. Thanks for your comment/feedback.


Server Freezing at certain point

This issue occurs every so often, but it happens enough that I find it to be an issue... at these lines -- it freezes.
[19Apr2023 05:01:24.200] [modloading-worker-0/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#getMaxLevel() in net/minecraft/world/entity/npc/VillagerTrades$EnchantBookForEmeralds [19Apr2023 05:01:24.201] [modloading-worker-0/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#isTreasureOnly() in net/minecraft/world/entity/npc/VillagerTrades$EnchantBookForEmeralds [19Apr2023 05:01:24.201] [modloading-worker-0/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#isTradeable() in net/minecraft/world/entity/npc/VillagerTrades$EnchantBookForEmeralds
and the server usually takes 5 minutes to load, due to the size of the modpack, but with this it freezes and is stuck loading indefinitely. When I caught the issue this time, it was 6 hours since the server was supposed to load back up. I've include the latest log file to try and narrow down the issue. But I'm not entirely sure why this is happening.
latest.log

I've played a homemade multiplayer 1.19.2 server with 220 mods and with apotheosis for a time, and have some suggestions:
Did you change the default enchantment.cfg config? You can try resetting it and see if the problem solved.
Or is there another mod also change enchantment levels and other properties?
If not their problem,
as I know,  firstly this may be caused by optimization mods, which might operate the threads. But it's just a guesswork, if delete all the optimazation mods didn't solve the problem, you may need a binary search to locate which mod caused this.

I've no clue how to do a binary search. But I've not changed the default, and none of the mods change anything involving enchantments except for Apotheosis.

I've no clue how to do a binary search. But I've not changed the default, and none of the mods change anything involving enchantments except for Apotheosis.

I suggest trying with a normal forge server, hybrid servers like arclight tend to break things and are not supported.

I suggest trying with a normal forge server, hybrid servers like arclight tend to break things and are not supported.

Sadly, I don't have a choice as far as hybrid servers are concerned. And this wasn't really an issue before. This only recently started and I don't know why or how.

That log message shows up at the end of my transformer's application, which means the error/stall lies in whatever runs after my transformer.  The problem is, you can't determine what is running after my transformer, so you'll just have to remove mods until it stops.

Well, when it doesn't stall/error, this is what's next...
[21Apr2023 15:59:59.851] [modloading-worker-0/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#getMaxLevel() in net/minecraft/world/entity/npc/VillagerTrades$EnchantBookForEmeralds [21Apr2023 15:59:59.851] [modloading-worker-0/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#isTreasureOnly() in net/minecraft/world/entity/npc/VillagerTrades$EnchantBookForEmeralds [21Apr2023 15:59:59.851] [modloading-worker-0/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#isTradeable() in net/minecraft/world/entity/npc/VillagerTrades$EnchantBookForEmeralds [21Apr2023 16:00:00.268] [main/INFO] [quark/]: Dispatching Module Step REGISTER [21Apr2023 16:00:01.126] [main/INFO] [quark/]: Dispatching Module Step POST_REGISTER
So I'm to assume Quark is doing it?

It's a possibility, but the early startup stage is asynchronous, and not everything running may emit a log message.

Update: Tried loading without Arclight -- still stalling. but this time it's not showing Apotheosis messages.


sc-transaction-pool: Always use best block to check if we should skip enactment

We will calculate the tree route always against the best block and thus, we also should use this one to check if we should skip the checks.

@bkchr could you help to backport this to polkadot-v0.9.33 branch?


Test

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

42 of 42 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.06%) to 98.678%

Totals

Change from base Build<PHONE_NUMBER>:
0.06%

Covered Lines:
39575

Relevant Lines:
40105

💛  - Coveralls


Question: Bonjour/ZeroConf support

Hi
Can you tell me if I can use this library to "broadcast" a bonjour / zeroconf service?
I know that the service itself needs to be implemented separately.
But the info needs to be broadcasted so clients can "pick it up".
I am using Bonjour Browser to discover existing Bonjour services.
Thank you for any input you can provide,
Martin

Multicast DNS is based on Bonjour so it should work; see https://tools.ietf.org/html/rfc6762#section-1.
You can use SendQuery or SendAnswer (see the docs) to do a "broadcast".  Also take a look at the readme.

Thank you! I'll take a look at that. 👍

Currently, only RFC 6762 - Multicast DNS is supported,  Bonjour also requires RFC 6763 - DNS-Based Service Discovery (DNS-SD).
I'm in the process of adding DNS-SD, so hold off for a few days.

Wow! Thanks! Really looking forward to that :)

Could you test this on a Mac with by running the spike and then using Bonjour Browser.  You should see the _xservice an the _yservice.
I ran ZeroConf Browser on my Android Phone and it saw the spike services on my windows laptop!.

Hi @richardschneider
It works like a charm 🥇

Also the changed you made to the code avoiding using AddMembership runs smoothly on MacOS as well.
Well done!
I have two small comments:

It would be nice for an easier way to add to the text record strings (also without accidentally removing "txtvers=1").
In ServiceProfile line 66 you new up a MulticastService to get addresses. An injection pattern like the one you use in ServiceDiscovery would be better I think. Suggestion: Could ServiceDiscovery expose a "CreateService" method taking the parameters instanceName, serviceName, port, addresses and then return a ServiceProfile (and perhaps even making the ServiceProfile constructor internal).

It would be nice for an easier way to add to the text record strings (also without accidentally removing "txtvers=1")

This looks pretty easy
var service = new ServiceProfile("x", "_sdtest._udp", 1024);
var txt = service.Resources.OfType<TXTRecord>().First();
txt.Strings.AddRange(new [] { "a=1", "b=2" });

What suggestions do you have?

If you know what it is all about, it is easy. That is the exact same line I came up with.
But since you are adding the TXTRecord "behind the scene", people might not know it is there or where to look for it.
So I was thinking in the lines of:
var service = new ServiceProfile("x", "_sdtest._udp", 1024); service.addText(string key, string value); // then do what you do behind the scene...
Anyway, this is just a suggestion :)

Good thoughts, Will define AddText.
Also, reverted GetIPAddresses and GetNetworkInterfaces  to static. So,  ServiceProfile line 66 now reads better.

Nice 😃

Should you now close this issue?  Or is there more to do?
Thanks for all the input and time you have spent on this project!!!

All these changes are now in v0.9.0 and published on NuGet.

The input and time is my pleasure - thanks for letting me contribute.
It seems to work as expected. I will now continue with my other project that needs this feature ;)
I'll keep in touch.


pkgs.fetchhg uses global /etc/mercurial/hgrc

Issue description
In particular, errors in hgrc file may result into broken builds
./test-hg.nix
with import <nixpkgs> {};
pkgs.stdenv.mkDerivation {
  name = "letsbreak";
  src = pkgs.fetchhg {
    url = "http://www.mercurial-scm.org/repo/hg";
    rev = "96eaefd350ae";
  };
  buildPhase = ":";
  installPhase = "touch $out";
}

$ nix-build ./test-hg.nix
these derivations will be built:
  /nix/store/53immbyrw9gf57crzdzpncgkhvwp1dcx-hg-archive.drv
  /nix/store/r58nlsil705c8jnx7n34r45mp3g57b5v-letsbreak.drv
building path(s) ‘/nix/store/ga1c8dhjpjhpb8fbc38crnqsjyy5bk6c-hg-archive’
getting http://www.mercurial-scm.org/repo/hg (96eaefd350ae) into /nix/store/ga1c8dhjpjhpb8fbc38crnqsjyy5bk6c-hg-archive
hg: parse error at /etc/mercurial/hgrc:1: asdasdasdas
builder for ‘/nix/store/53immbyrw9gf57crzdzpncgkhvwp1dcx-hg-archive.drv’ failed with exit code 255
cannot build derivation ‘/nix/store/r58nlsil705c8jnx7n34r45mp3g57b5v-letsbreak.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/r58nlsil705c8jnx7n34r45mp3g57b5v-letsbreak.drv’ failed

I think, hgrc config (like, whether largefiles extensions should be enabled for the fetch) should be passed as argument to fetchhg
sandbox on
I hoped sandboxed build should fix the issue, but I couldn't make it work
$ nix-build ./test-hg.nix
these derivations will be built:
  /nix/store/87divirwqxlqdiavg00clblifk3ya1gp-hg-archive.drv
  /nix/store/x9wyq9a1bfzxdw78yxf14645iibcwvh6-letsbreak.drv
building path(s) ‘/nix/store/cazdp4nk9kbhkmhwx9bzi34jc63bpzy1-hg-archive’
getting http://www.mercurial-scm.org/repo/hg<PHONE_NUMBER>13) into /nix/store/cazdp4nk9kbhkmhwx9bzi34jc63bpzy1-hg-archive
abort: error: Name or service not known
builder for ‘/nix/store/87divirwqxlqdiavg00clblifk3ya1gp-hg-archive.drv’ failed with exit code 255
cannot build derivation ‘/nix/store/x9wyq9a1bfzxdw78yxf14645iibcwvh6-letsbreak.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/x9wyq9a1bfzxdw78yxf14645iibcwvh6-letsbreak.drv’ failed

Technical details

System: 16.09

Hey, just to let you know:  I tried this out on current NixOS unstable ("17.09pre102667.2839b10").  When I tried to evaluate
{ nixpkgs ? import <nixpkgs> {} }:
with nixpkgs;
stdenv.mkDerivation {
  name = "letsbreak";
  src = fetchhg {
    url = "http://www.mercurial-scm.org/repo/hg";
    rev = "fb1b5cd17664";
  };
  buildPhase = ":";
  installPhase = "touch $out";
}

with sandboxing on, i got the same error message as you, which was abort: error: Name or service not known.
When I tried to evaluate
{ nixpkgs ? import <nixpkgs> {} }:
with nixpkgs;
stdenv.mkDerivation {
  name = "letsbreak";
  src = fetchhg {
    url = "http://www.mercurial-scm.org/repo/hg";
    rev = "fb1b5cd17664";
    sha256 = "0m8rh409xxmkbzcbzi5p3v1542bjp840jq2p6v97fclr3f1bisgd";
  };
  buildPhase = ":";
  installPhase = "touch $out";
}

with sandboxing on (note the additional sha256) it worked fine, even with "astastasdf" in my /etc/mercurial/hgrc.

Are there any updates to this issue, please?


Remove unnecessary client_package_name parameter from server.

This was missed during some re-factor a long time back.

Nice catch ! thanks for the fix.


Loading a local image using require() doesn't work

Hi,
Is this a bug report?
yes.
Actual Behavior
I'm getting "require() must have a single string literal argument" when I'm trying to require a local image.
Here is what I do :
I'm retrieving the image path as a string from Firebase database and I'm setting a state with it :
profilePicture: user.val().picture_1
here is the path => "../../img/user/profile/blank_profile.png"
Then I'm trying to set my image source using the path that I just retieved :
<Thumbnail large source={require(this.state.profilePicture)}/>
But I'm getting the error "require() must have a single string literal argument".
Thank you in advance !
Expected Behavior
The image is displayed.
Steps to Reproduce
Require a local url from firebase stored in a state.
Environment
Environment:
OS: Windows 10
Node: 6.10.2
Yarn: Not Found
npm: 3.10.10
Watchman: Not Found
Xcode: N/A
Android Studio: Version <IP_ADDRESS> AI-162.3871768
Packages: (wanted => installed)
react: 16.0.0-beta.5 => 16.0.0-beta.5
react-native: ^0.49.5 => 0.49.5

Hi @packouray, it absolute worked. Can you check on snack?


2022-09-28_00-33-03_master-next_aws-sdk-cpp

Automatically created.

/run

Overriding since second checklayer passed.


Provide C# companion Android sample using xamarin

Currently it doesnt seem to create a companion app using xamarin. because Samsung accessory sdk has only Jar support. I tried using Android Java bind library but it throws exception. please provide us a minimal working solution. you can find my attempt to create using xamarin.forms with dependency injection as attached.
WearCompanion.zip

Sorry for late answer. now, we have plan to support SAP (C# version).
Do you have another necessary things?

hi thanks for the answer. i have already created a andorid binding library and nuget package. as you can see here https://github.com/EmilAlipiev/SamsungAccessorySDK.Net
This works perfectly fine. I was able to finish my app using this library but I have a problem in release mode using proguard. you can see the issue here. https://github.com/xamarin/xamarin-android/issues/4475
it seem like binding library doesnt work with proguard as it supposed to be. maybe you can find a solution or otherwise i have to wait until you complete your c# version


fix(Tabs): avoid stale tab ref cache

The problem happens when selected and children changes at the same time.
Fixes #2204.
Changelog
Changed

A change not to use the cache of tab's DOM ref when the <Tabs> code gets selected tab's label.

@emyarod Good question - #2196 calls a different internal method that has more overhead (notably copying props over). That's why I came up with a different PR. Hope it explains things well.

so this would supersede #2196 then right?

Yes.


Hacktoberfest Contributions

If you wish to contribute to this project you can suggest scope / task and discuss it / request issue creation on the project's discord or via email<EMAIL_ADDRESS>Example tasks from TODO list:

Configurable table of value previews
Dialog with options for Copy as / Paste as code
Character map dialog or panel
Support to printing
Support for Kaitai analysis
Disassembler / decompiler module
Java Decompiler / jclasslib
Support for windowing / docking
Additional conversions: date time, compression, base64, encryption
Add intro page / intro buttons when no file is opened
Add support for different shapes, color and blinking for mirror cursor
Support for file clipboard flavor
Multiselection and multicaret support
Memory to file swapping
Improve search: results list, search in selection only, patterns matching, regular expressions
Dynamic change of font size
Panel with simplified onscreen keyboard
File entropy dialog or side panel
Support for direct drive access / filesystem editing
Command line
Scripting support
Custom preview characters mapping / bitmap fonts

Can you assign me one of the issues?


Universal containerizer support

compiles, runs all pre-existing tests (some had to be adapted)
missing: tests for the new functionality, documentation

Rebased


Integrate with syntax of Tasks plugin

What would you like to be added?
Please, change filenames to .md because of https://publish.obsidian.md/tasks/Getting+Started/Getting+Started#Supported+file+names
Why is this needed?
Tasks is a mainstream plugin bringing the possibility to organize tasks.
It would be grateful if your plugin and Tasks work together.
Use case:
I as a user can decompose every task into steps and plan them in the manner of Tasks

The user is unable to query tasks within .mw files using Dataview, and this distinction significantly impacts the user experience. It is hoped that Dataview will support querying tasks within these files.


:sparkles: When any user type any command than bot should react with any emoji to that comment

:tada: This issue has been resolved in version 1.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


WebAssembly trapped manipulating ReadableStreams

Hi,
Following #10, I tried to reproduce a clone response function using ReadableStream::tee(), making 2 new responses from one.
The function looks like that:
function cloneResponse(response) {
    const teedOff = response.body.tee();
    return {
        currentResponse: new Response(teedOff[0], { headers: cloneHeaders(response.headers), status: response.status }),
        newResponse: new Response(teedOff[1], { headers: cloneHeaders(response.headers), status: response.status }),
    }
}

By doing that, I can read the responses body using the ReadableStream::getReader(), they are not locked.
But if I want to use the Response::json(), Response::text() or Response::arrayBuffer() instead of the reader, I get this error:
Aug 12 15:57:25.102 ERROR request{id=0}: WebAssembly trapped: wasm trap: unreachable
wasm backtrace:
    0: 0x5a6b - <unknown>!<wasm function 69>
    1: 0x593c - <unknown>!<wasm function 68>
    2: 0x11d6e - <unknown>!<wasm function 181>
    3: 0x129f1 - <unknown>!<wasm function 186>
    4: 0x384ca - <unknown>!<wasm function 475>
    5: 0x316ee - <unknown>!<wasm function 455>
    6: 0x299a9 - <unknown>!<wasm function 452>
    7: 0x387f9 - <unknown>!<wasm function 475>
    8: 0x3b701 - <unknown>!<wasm function 498>
    9: 0x177517 - <unknown>!<wasm function 3190>
   10: 0x96905 - <unknown>!<wasm function 1403>
   11: 0x1236ff - <unknown>!<wasm function 2376>
   12: 0x384ca - <unknown>!<wasm function 475>
   13: 0x3b701 - <unknown>!<wasm function 498>
   14: 0xa5a0e - <unknown>!<wasm function 1557>
   15: 0xfc9a5 - <unknown>!<wasm function 2121>
   16: 0x142cb - <unknown>!<wasm function 219>
   17: 0x3eb380 - <unknown>!<wasm function 8540>
   18: 0x140cf - <unknown>!<wasm function 218>

Am I doing something wrong ?
Thanks !

Thank you for the report, @roptch!
That is a pretty terrible failure mode, my apologies :(
IIUC, you're teeing the body, and then want to use e.g. Response#text() on the original response?
(As an aside, you shouldn't need to explicitly clone the headers, that should happen implicitly by just doing headers: response.headers. If that doesn't work, that'd be a separate bug.)

Ok, that makes sense. I'll look into this and report back!

As an update here, I tracked this down to something that's not directly related to tee() itself: Body#text() et al make the wrong assumption that the Request / Response operated on is backed by a host request/response, not a content-created ReadableStream.
We won't get this fixed before the next release is out, but it shouldn't take too much longer after that.

This is fixed by #64—apologies for it taking a while!


Adding minor changes to improve server deployment experience

Updating instructions for server deployment section.

@joe32140, this change can't be acceepted sorry. If the space is not being generated that means thats what the model generated. The space is generated by the model itself for decoder models.

@joe32140, this change can't be acceepted sorry. If the space is not being generated that means thats what the model generated. The space is generated by the model itself for decoder models.

I see. Thank you for the clarification!


Multi context/cluster querying

Which project are you requesting an enhancement for?
kr8s
What do you need?
It would be really nice to have multi-cluster querying integrated in this library. For example I'd like to be able to craft compact yet complex queries to fetch rich datasets quickly.
Here's a few ideas of what it could look like:

kr8s.clusters(["c1a", "c1b", "c2a"]).get('nodes')
kr8s.clusters("^c1.*$").get('nodes')
kr8s.all_clusters().get('nodes')

This is a really interesting idea. Looking at your suggestions I would assume something like kr8s.clusters() would return a list, so then calling .get on that may confuse folks.
Right now I would do something explicit with API client objects like this to achieve what you are trying to do:
import kr8s

nodes = []
for context in ["c1a", "c1b", "c2a"]:
    nodes += kr8s.api(context=context).get("nodes")

This works today.
There isn't a way currently to do "all clusters" but we could totally add the ability to pass a list to kr8s.api's context kwarg and have it return an iterable of clients.
import kr8s

nodes = []
for cluster in kr8s.api(context=["c1a", "c1b", "c2a"]):
    nodes += cluster.get("nodes")

We could also reuse the kr8s.ALL const that we use to specify all namespaces to allow you to iterate over all contexts.
import kr8s

nodes = []
for client in kr8s.api(context=kr8s.ALL):
    nodes += client.get("nodes")

I've thought about this some more and I worry that making the Api client aware of multiple clusters would just be a huge can of worms. If people want to query across multiple clusters I recommend creating a separate client for each one.
import kr8s

clusters =  [kr8s.api(context=context) for context in ["c1a", "c1b", "c2a"]]
nodes = []
for cluster in clusters:
    nodes += clusters.get("nodes")

In the future #335 could also give us a way to get a list of contexts programatically instead of hard coding them.


Published npm package files are in /dist

The published npm package only imports the index file from dist, the others need the dist folder in the path.
Current behavior:
import {Transmat} from 'transmat';
import * as jsonLd from 'transmat/dist/json_ld';

Expected behavior:
import {Transmat} from 'transmat';
import * as jsonLd from 'transmat/json_ld';

The files should move to the package root when publishing.

Moves to /lib instead. This seems to be done at other libraries too.


Do not ring if "Do Not Disturb" is active

Anyone looking at this? D:

Hi @juanitobananas , thanks for this PR
Could you please sign-off it as per https://github.com/matrix-org/synapse/blob/master/CONTRIBUTING.rst#sign-off
Benoît

Hi @juanitobananas ,
It's a shame to close this PR, it was a good idea. I can handle the merge issue, and you can just sign-off by adding a comment in this pull request as follow:
Signed-off-by: Your Name<EMAIL_ADDRESS>Thanks
Benoît

Hey Benoît!

It's a shame to close this PR, it was a good idea.

I am glad you like it. I thought so too :smile:

I can handle the merge issue, and you can just sign-off by adding a comment in this pull request

That should be no problem at all. I'll gladly sign it off. You really don't need to worry to add it to the commit. Just copy as much as you can: I am sure the patch will actually more yours than mine :wink:
Cheers,
Juanito

Related to #1072

Closed and replaced by #2368


max margin example: magic numbers?

Hey jake. I'm about to steal your max margin example for my lecture.
It looks like there are magic numbers
that show the margin of the other candidates.
Where do they come from? eyeballing?
Also, I feel like we might put that into the sklearn example gallery?

Yep, I think I just eyeballed those.

As far as putting in sklearn... the code is MIT licensed and can be copied. But the discussion has a more restrictive license and probably cannot.
That said, I have an older BSD-licensed version of a similar thing in http://github.com/jakevdp/sklearn_tutorial

Cool :)
I we can write a new discussion relatively easily after stealing the code ;)


Undefined method with empty array of abstract class T

https://play.crystal-lang.org/#/r/5cxo
abstract class Assertion
  abstract def valid? : Bool
end

class MyAssertion(T) < Assertion
  def valid? : Bool
    false
  end
end

class Validator
  getter assertions : Array(Assertion) = [] of Assertion

  def validate
    @assertions.reject(&.valid?)
  end
end

pp Validator.new.validate

The example above gives an error saying undefined method 'Assertion#valid?()'
However if you replace the getter assertions with getter assertions : Array(Assertion) = [MyAssertion(String).new] of Assertion It'll work fine.  It'll also work fine when replacing the abstract def valid? : Bool with an actual method that returns a bool, even with the empty array.
It looks like when the array is empty the type of each value is inferred to be Assertion. Which doesn't implement the valid? method itself.

It shouldn't matter if Assertion actually implements the method or just defines it as abstract.

Right, so it should know that the method is going to be implemented.  Whereas now that doesn't seem to be the case.

Actually, it shouldn't even matter at all if Assertion defines this method - whether it's abstract or implemented.
That class itself is abstract and can't be instantiated. Hence MyAssertion(T) is the only subtype that can be instantiated and it implements #valid?.

So this is the expected behavior, not a bug?

No, it seems to be a bug.

Reproduced another way:
module Service; end

private abstract struct AbstractServiceDefinition; end

private record ServiceDefinition(ServiceKlass, ServiceArgs, AnnotationArgs) < AbstractServiceDefinition do
  def resolved?(services : Hash(String, Athena::DI::Service)) : Bool
    annotation_args.all? { |a| a.is_a?(String) && a.starts_with?('@') ? services.has_key? a.lchop('@') : true }
  end
end

struct ServiceContainer
  def initialize
    service_definitions = {} of String => AbstractServiceDefinition

    service_definitions.each do |name, service_definition|
      service_definition.resolved? ({} of String => Service)
    end
  end
end

ServiceContainer.new

Error in line 21: instantiating 'ServiceContainer.class#new()'

in line 15: instantiating 'Hash(String, AbstractServiceDefinition)#each()'

in line 15: instantiating 'Hash(String, AbstractServiceDefinition)#each()'

in line 16: undefined method 'resolved?' for AbstractServiceDefinition+

Rerun with --error-trace to show a complete error trace.

Workaround for this seems to make the abstract class a module and just include that instead.
module Assertion
  abstract def valid? : Bool
end

class MyAssertion(T)
  include Assertion

  def valid? : Bool
    false
  end
end

class Validator
  getter assertions : Array(Assertion) = [] of Assertion

  def validate
    @assertions.reject(&.valid?)
  end
end

pp Validator.new.validate # => []

The workaround doesn't work if you want to also access the children in a macro :cry:.

You should just be able to put DummyAssertion.new anywhere in the program to fix it.


fix(space-wizard): remove space in github organisation sent to forge

@mitchharpur we need to pre-process and remove space in the input we send to forge.
WIP do not merge yet
Fixes https://github.com/fabric8io/fabric8-ui/issues/1549

@corinnekrych snapshot fabric8-ui is deployed and available for testing at https://fabric8-ui-fabric8-ui-pr-1550-fabric8-ui.int.rdu2c.fabric8.io


Capacity Re-Sizing - downtime

We should explicitly state that there is no downtime involved in resizing a capacity.  We currently state this for Embedded capacities (see https://learn.microsoft.com/en-us/power-bi/developer/embedded/power-bi-embedded-generation-2) but i was unable to find this stated for Premium Capacities.
The section on resizing the capacity would be a perfect place to make a statement that this happens without any downtime of the capacity.

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

ID: 1f09b043-ca4f-8d06-16b9-19f03e89b344
Version Independent ID: 8166553d-853a-204d-b0bf-e7380d4042d6
Content: Configure and manage capacities in Power BI Premium - Power BI
Content Source: powerbi-docs/enterprise/service-admin-premium-manage.md
Service: powerbi
Sub-service: powerbi-premium
GitHub Login: @KesemSharabi
Microsoft Alias: kesharab

Thanks for your comment, @rosscouldrey. This issue has been assigned to the doc author for review.

Hi @rosscouldrey,
I'll start an email thread for this.
Thanks,
Kesem


Repeating "You" after a few messages

Hi,
After exchanging 2-3 messages, I get a list of repeating empty "You" in the same response from the bot. Also the log show the below but only in one of instance, so it could be unrelated:
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 429, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\fastapi\applications.py", line 276, in call
await super().call(scope, receive, send)
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\starlette\middleware\cors.py", line 92, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\starlette\middleware\cors.py", line 147, in simple_response
await self.app(scope, receive, send)
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\fastapi\routing.py", line 237, in app
raw_response = await run_endpoint_function(
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\fastapi\routing.py", line 163, in run_endpoint_function
return await dependant.call(**values)
File "D:\Git_Projects\oobabooga_windows\installer_files\env\lib\site-packages\gradio\routes.py", line 461, in predict
if app.get_blocks().dependencies[fn_index_inferred]["cancels"]:
IndexError: list index out of range

I am not sure if it realy problem of telegram bot. Perhaps it is problem of model or prompting? Errors not linked to bot, a i can see. May by you had to open discussionin in oobabooga webui repo?
p.s. I had the same "repeating" with pure oobabooga webui, usualy it was problem of my bad prompting or settings.

Yes, the above error in the log seems to be unrelated. However, I think I could not explain the error within Telegram earlier; here's the screenshot.
The below is a part of the bot response. The character is called Ava and You is actually the user which in this case is me. This appears after the Character's response, the list of repetitions with just "You" keeps growing.  I don't see the same error with the text web ui. I'll try to figure it out but if you have any further ideas, let me know. Thanks.

Perhaps it is result of differennt eos_token/stopping_strings in telegram_bot and webui. Webui is more complicated.
In telegram_bot, by default, used only stopping_strings and empty eos_token. If you set eos_token=['\n'] - repeating should be truncated, but telegram_bot wont send multilines message.

Thanks for the info. Good news is that I updated Oobabooga, and the problem seems to have been fixed. Thanks for looking into it. I'll close this ticket.


Add(cs-fixer) Add php-cs-fixer configs and github action

Ref: https://github.com/FriendsOfSymfony1/symfony1/issues/276

@thirsch

Just two thoughts about it: How about ending a file with line break and as the .php-cs-fixer.dist.php is included within it's own defined finder, should the detector in step 2 (Get Changed Files @ all) detect changes there as well?

I took the code from https://github.com/FriendsOfSymfony1/symfony1/issues/276 and just created a PR :)
To answer your question @thirsch :

yes, I would merge the two files in one, .php-cs-fixer.dist.php
gitworkflow: I would keep it simple, and not early-optimize (keep the simple configuration as shown in: https://github.com/OskarStark/php-cs-fixer-ga#usage-with-cache )

For further iterations:

see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/usage.rst#using-php-cs-fixer-on-ci

@thirsch  @connorhu I would close this PR and instead work on https://github.com/FriendsOfSymfony1/symfony1/pull/283 WDYT?


Update the "Thank you" page to make it more generic

The thank you page should make sense for both self submitter, preparer and submitter of proxy submisison

Closed by #807


activeOffsetX seems to apply to up/down (Y) movements

I think this is a bug?

Same issue exists with minOffsetX. My use case is allowing for the PanResponder not to interact with X gestures as I have drawers in my app on both sides.

Hi, @spacesuitdiver
Thanks for the issue. I checked and everything appears to be workable. activeOffsetX block handler from changing its state to active until travelling given movement defined by range.

@osdnk I see how it works now, sorry for the ticket. I'm going to spend some time writing up a ticket to basically mimic the "BottomSheet" (https://github.com/kmagiera/react-native-gesture-handler/blob/master/Example/bottomSheet/index.js). This example is a bit buggy so I'm seeing what we might need to keep everything on the opposite side of the bridge.

regarding bottomsheet, react-native-interactable has a perfectly smooth example (MapPanel.js),  good to try.


Add error pages and routes

Closes partially #412

[x] Add legacy error pages
[x] Add giraffe error pages
[x] Show error if window.error is set
[x] Show error on loading petition page with fetch() error

[x] Server doesn't respond (user could be offline)
[x] Server returns error status code

[ ] Show error on signing petition with fetch() error

[ ] Server doesn't respond (user could be offline)
[ ] Server returns error status code

[x] Show error on static pages with fetch() error

[x] Server doesn't respond (user could be offline)
[x] Server returns error status code

@schuyler1d Really good point about the '*' route. It would match for every route and we would no longer have the intended behavior of redirecting to ${PROD_URL}${path} if the component isn't implemented. Implemented routes not marked prodReady would have redirected correctly.
It would ALSO have broken where we do appLocation.push('https://....')
So I will remove the fallback route. Thanks!


feat: speed for station pairs (WIP)

Motivation
Closes https://github.com/transitmatters/t-performance-dash/issues/803

Changes

Add speed graph on trip explorer

Testing Instructions

Navigate to trip explorer page for all lines
Verify that the new speed graph is populated correctly

this is really speed for stop pairs if we're being technical 🤓
I will try to fix the nomenclature to consistently call them stops

This is awesome! A few initial thoughts in no particular order:
We should display both of the two station pairs since this is between two
We should add the same aggregate numbers below the chart like we do in travel times
Personally I think speed should go between headways and dwells in the chart order
I was able to get the page to bug out with http://localhost:3000/red/trips/single/?from=70073&to=70093&date=2023-12-17 so there's probably some missing stops in the dataset?
Overall, this is very cool, just needs some polish. We can try and get this into beta before the next meeting to get people in labs to poke around with it

thanks for taking a look!! yep, this is definitely still a WIP - just threw it together yesterday/today. Those are all good. There were a couple other things I wanted to take a look at too, let me know your thoughts:

some of the speeds seem a bit suspect, for example average of 20mph some hours for davis to quincy center. I wonder if I should be including the dwells in addition to travel_time_sec
there is no monthly/weekly aggregated version of this chart
there is no benchmark. I could calculate a benchmark using the benchmark travel time.
the distance calculations from traversing that list are right, but unfortunately the dataset includes some bizarre distances - for example, JFK / UMass (Braintree) => Ashmont (Ashmont) was listed as 20 miles. I haven't debugged this super deeply yet

there is no monthly/weekly aggregated version of this chart

This certainly isn't necessary for a first pass. We can start with a single day chart only

there is no benchmark. I could calculate a benchmark using the benchmark travel time.

there's no benchmark for dwells, so it's not critical

some of the speeds seem a bit suspect, for example average of 20mph some hours for davis to quincy center. I wonder if I should be including the dwells in addition to travel_time_sec

Yeah maybe @PatrickCleary or @idreyn could help you track down the accuracy of these since they worked on the line-wide speed numbers. I can also poke around after the holiday

I was able to get the page to bug out with http://localhost:3000/red/trips/single/?from=70073&to=70093&date=2023-12-17 so there's probably some missing stops in the dataset?

I poked around a bit on this. It seems that 70073 is Charles MGH on the Alewife - Braintree route and 70093 is Ashmont on the Alewife - Ashmont route. By this dataset, that is unreachable since you can't access 70093 on the same route. I originally used stop_id for the distance calculation since it was readily available on the FE, but it seems like it might be better to use station_id for the distances based on this quirk 😅

I changed this to use stations instead of stops, fixing the Charles => Ashmont issue, fixed the distance calculation by only traversing in one direction at a time, added a legend, and updated the screenshots.
I also added a benchmark speed calculation. I can show it on the graph if that's something we want, but I think it might be a little confusing considering it'll be the inverse of the travel time benchmark

Damn seeing full speeds for tracks that are repaired is wild

I do think this will be more interesting in aggregate (multi-day) datasets to see improvement/decline than it will be for most single day views (since it really is just another way to describe travel times) but this is quite interesting to see when a track is fixed.

Added aggregate data.
One small issue is that some of the green line station distances e.g. Ball Square => Back of the Hill are still undefined, and the aggregate charts don't accept undefined data, so you end up with these weird graphs of 0 speed. I'll

The green line station distances we use are just measured on Google Maps. So if you're interested in replacing some of those null values, you could add them that way!

@PatrickCleary  I ended up figuring out the problem with the data - I was relying on the  route-id field being the line name, but it was not Green for all of the green, but rather Green-A, Green-B, etc. but thank you! Green line looks to be fixed now

I refactored the script for calculating station distances and moved it out to its own file, because the logic was getting pretty complicated.

Mentioned in the meeting, just writing here for not forgetting - I think my preference would be to add speed as a toggle for the travel-times chart, since it is the same data displayed two different ways, just scaled by a factor. That way we don't end up with too many charts on page.

@austinjpaul totally agree! I'll rework it as a toggle on the travel times graph

I reworked this to make speed a toggle on the travel times graph. I currently have it set as the first option for travel time, because I think it's the easier to read given our users might not know what the travel times for a given station pair should be

I switched the graph around to make travel times the default since that's what users are more used to following comments from @austinjpaul in slack. This should be ready to go now


私有云或公有云镜像windows默认用户名都是Administrator

这个 PR 实现什么功能/修复什么问题:
私有云或公有云镜像windows默认用户名都是Administrator
是否需要 backport 到之前的 release 分支:

release/2.11.0
release/2.10.0

/area region
/cc @swordqiu @yousong

Codecov Report

Merging #1596 into master will decrease coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #1596      +/-   ##
=========================================
- Coverage    7.66%   7.66%   -0.01%
=========================================
  Files         411     411
  Lines       63032   63002      -30
=========================================
- Hits         4831    4828       -3
+ Misses      57792   57764      -28
- Partials      409     410       +1

Flag
Coverage Δ

#aFlag
7.66% <0%> (-0.01%)
:arrow_down:

Impacted Files
Coverage Δ

pkg/compute/guestdrivers/aliyun.go
5.68% <0%> (ø)
:arrow_up:

pkg/compute/guestdrivers/base.go
0% <0%> (ø)
:arrow_up:

pkg/compute/guestdrivers/huawei.go
9.61% <0%> (ø)
:arrow_up:

pkg/compute/guestdrivers/qcloud.go
5.31% <0%> (ø)
:arrow_up:

pkg/compute/guestdrivers/zstack.go
7.46% <0%> (ø)
:arrow_up:

pkg/util/seclib2/seclib.go
91.48% <0%> (-4.26%)
:arrow_down:

pkg/util/rbacutils/rbac.go
70.4% <0%> (-0.94%)
:arrow_down:

pkg/compute/models/skus.go
1.51% <0%> (-0.02%)
:arrow_down:

pkg/compute/models/guests.go
0.71% <0%> (ø)
:arrow_up:

pkg/compute/models/cloudaccounts.go
1.01% <0%> (+0.01%)
:arrow_up:

... and 2 more

Continue to review full report at Codecov.

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

/lgtm
/approve


new project with multi client

hi
thanks alot
the dolphin platform is amazing
how can i start a project with 3 clients and one server android and web and javafx

The easiest way is to create such a project by using the maven archetype. A tutorial can be found here: https://canoo.github.io/dolphin-platform/#_creating_a_project_with_maven
This currently is missing an Android client that must be added by hand.
If you want to setup a project by hand this documentation will be helpful: https://canoo.github.io/dolphin-platform/#_creating_a_project_by_hand


Added OpenID Connect and migrated to authlib

I've added an OpenID Connect tab and migrated to authlib. It works, however, there is still some more work to be done to support configuration from configuration JSON files (e.g. https://accounts.google.com/.well-known/openid-configuration) and to disable signups if a user isn't recognised as an option.

Thanks @chriscpritchard for submitting the PR. It looks good to me. However, just wondering why you want to set use_reloader=False and it is hard-coded?

This pull request introduces 4 alerts when merging 1ffaf904b2d66e5da2fd0d0171802b347273d0b4 into a39f5c622c9c85e0b4fa6e6ac4df861e7f8e3b62 - view on LGTM.com
new alerts:

2 for Testing equality to None
1 for Unused import
1 for Unreachable code

Comment posted by LGTM.com

Do you need me to fix the alerts?

No worries, I fixed it and merged the PR. Thanks for the contribution.


FEAT: Request permissions using multiple blocks, also support .github/access.yaml

We already configure which permissions are granted by a repo in .github/access.yaml
If https://github.com/qoomon/github-actions-access-manager/issues/4 is implemented, then the syntax for requesting permissions starts to get clunky. I think it would be nice to configure both the grants and requests in .github/access.yaml, and to follow the same syntax as for granting, with multiple (repo, permissions) blocks all ORed together.
self: qoomon/example
# BREAKING, rename `policies` to `grants` (or similar)
grants:
- repository: octa-org/*
  permissions:
    packages: read
- repository: foo/bar
  permissions:
    issues: write
requests:
- repository: other-org/other-repo
  permissions:
    contents: read
- repository: user/*
  permissions:
    issues: read

One of the main benefits is that this now allows requesting permissions on a per-repo basis, and it allows consistent syntax.
For use cases where a repo only requests (ie doesn't give) permissions and the requested permissions are simple, then you should be able to inline this config in the workflow.yaml, to avoid needing an access.yaml:
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: qoomon/github-actions-access-manager@v1
        id: github-actions-access
        with:
          # one option: if you just need a single block, then you could
          # unnest everything from the `requests` key, eg
          # repository: other-org/other-repo
          # permissions:
          #   contents: read
          requests:
            - repository: other-org/other-repo
              permissions:
                contents: read
            - repository: user/*
              permissions:
                issues: read

Unfortunately I think this is not possible because there is no way I know to request one token for multiple repositories from different owners :-( See https://octokit.github.io/rest.js/v19#apps-create-installation-access-token

Oh I see :( That is unfortunate. I'll close this for now as not possible. I'll try to file an issue with the GitHub REST API as a feature request for this and if so will link it back here.

However I like the idea of defining permission requests in the access file as well, however I see some drawbacks also.

Pros

you could grant access on a more granular level e.g. just grant requesting some permissions from specific branches or environments like OICD subject claim filters

Cons

the requesting repository needs to have the same github-actions-access-manager app installed as well. Thats big draw back.


Longitudinal control: interpolate longitudinal actuator delay

Interpolates the values we control for to 100hz

Wait there's a bug, making sure we correctly interp

rcv_frames is a confusing name, how about iterations_since_plan or something like that?

Besides that LGTM , can you also post the plot here of the improvement?

@HaraldSchafer how does it look now?

LGtM

Wanted to make sure the sometimes-high differences in output accel make sense, here's some plots: https://imgur.com/a/0Ff2Rm8
When the new interpolated desired speed is rising, the small differences in value between the non-interpped value and interpped value add up for integral, making the new output accel 0.0283 m/s/s higher here when in the first acceleration.

Works fine!
4aa5d874f367adbc|2022-02-18--15-15-10