OperationError: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Failed to set local offer sdp: Failed to set local video description recv parameters for m-section with mid='0'

When i try to connet,get this error...  then  i can't publish my video or audio,but i can get other Track subscribed.
OperationError: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Failed to set local offer sdp: Failed to set local video description recv parameters for m-section with mid='0'
And i can publish success with h5.this error happened only on uniapp android.
After that,i try to use pure webrtc (navigator.mediaDevices.getUserMedia),i can publish and subscribed track successful.

hi @Bloomingg,
can you provide some details on your setup? I'm not familiar with uniapp.
Device/OS, Browser, Browser version?
Also, does the error still appear with the latest client version v1.2.11 ?

hi @Bloomingg, can you provide some details on your setup? I'm not familiar with uniapp. Device/OS, Browser, Browser version?
Also, does the error still appear with the latest client version v1.2.11 ?

OK, I will list the SDK and environment I use below:
<EMAIL_ADDRESS>hbuildx 3.4.14

thank you, can you try with livekit-client v1.2.11? We fixed some things in that version that might be related to what you are seeing!

thank you, can you try with livekit-client v1.2.11? We fixed some things in that version that might be related to what you are seeing!

sadly,i get failed agin...

 Could you try with the main branch of this repo? (changes haven't been published to npm yet)

Hoping that #400 would fix the issue for you. Could you try with the main branch of this repo? (changes haven't been published to npm yet)

Thank you!  I tried to do what you said, but I got an error again...
18:17:34.940 Uncaught (in promise) OperationError: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Session error code: ERROR_CONTENT. Session error description: Failed to set local video description recv parameters for m-section with mid='1'..

hm, would be great if you could turn on debug logs (setLogLevel('debug')) and post the entire logs for the failed connection sequence!

hm, would be great if you could turn on debug logs (setLogLevel('debug')) and post the entire logs for the failed connection sequence!

These are some logs I collected, but some objects cannot be printed. I'm not sure if this can help you
18:46:12.038 connected to Livekit Server version: 1.1.2, region:  at app-view.js:23270 18:46:12.061 room event [object Object] at app-view.js:24215 18:46:12.085 received server offer [object Object] at app-view.js:22798 18:46:12.106 sending answer at app-view.js:21029 18:46:12.127 primary PC state changed [object Object] at app-view.js:22709 18:46:13.315 primary PC state changed [object Object] at app-view.js:22709 18:46:13.339 updating track subscription permissions [object Object] at app-view.js:16330 18:46:13.364 room event [object Object] at app-view.js:24215 18:46:13.408 on data channel 1, _reliable at app-view.js:22367 18:46:13.428 on data channel 3, _lossy at app-view.js:22367 18:46:13.894 using video encoding [object Object] at app-view.js:15625 18:46:13.918 scalabilityMode undefined at app-view.js:15629 18:46:13.941 received trackPublishedResponse [object Object] at app-view.js:22809 18:46:13.964 publishing audio with encodings [object Object] at app-view.js:16943 18:46:13.988 room event [object Object] at app-view.js:24215 18:46:14.012 received trackPublishedResponse [object Object] at app-view.js:22809 18:46:14.037 publishing video with encodings [object Object] at app-view.js:16943 18:46:14.061 get capabilities {"codecs":[{"clockRate":90000,"mimeType":"video/VP8"},{"clockRate":90000,"mimeType":"video/rtx"},{"clockRate":90000,"mimeType":"video/VP9","sdpFmtpLine":"profile-id=0"},{"clockRate":90000,"mimeType":"video/H264","sdpFmtpLine":"level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f"},{"clockRate":90000,"mimeType":"video/red"},{"clockRate":90000,"mimeType":"video/ulpfec"}],"headerExtensions":[{"direction":"sendrecv","uri":"urn:ietf:params:rtp-hdrext:toffset"},{"direction":"sendrecv","uri":"http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time"},{"direction":"sendrecv","uri":"urn:3gpp:video-orientation"},{"direction":"sendrecv","uri":"http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01"},{"direction":"sendrecv","uri":"http://www.webrtc.org/experiments/rtp-hdrext/playout-delay"},{"direction":"sendrecv","uri":"http://www.webrtc.org/experiments/rtp-hdrext/video-content-type"},{"direction":"sendrecv","uri":"http://www.webrtc.org/experiments/rtp-hdrext/video-timing"},{"direction":"sendrecv","uri":"http://www.webrtc.org/experiments/rtp-hdrext/color-space"},{"direction":"sendrecv","uri":"urn:ietf:params:rtp-hdrext:sdes:mid"},{"direction":"sendrecv","uri":"urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id"},{"direction":"sendrecv","uri":"urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id"}]} at app-view.js:17280 18:46:14.085 room event [object Object] at app-view.js:24215 18:46:14.105 starting to negotiate at app-view.js:22179 18:46:14.128 not able to set desired local description, falling back to unmodified offer {"error":"{\"stack\":\"Error: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Failed to set local offer sdp: Failed to set local video description recv parameters for m-section with mid='1'.\"}"} at app-view.js:22235 18:46:14.152 Uncaught (in promise) OperationError: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Session error code: ERROR_CONTENT. Session error description: Failed to set local video description recv parameters for m-section with mid='1'.. at app-view.js:1369 18:46:14.176 silence detected on local audio track at app-view.js:14083 18:46:15.777 room event [object Object] at app-view.js:24215

thank you for the logs!
still not sure how to reproduce this unfortunately.
we did some more compatibility related work for v1.3.0, you could give that a try!

thank you for the logs! still not sure how to reproduce this unfortunately. we did some more compatibility related work for v1.3.0, you could give that a try!

Thank you! I can connect and stream normally with the latest version!


remove extra margins on completion hovers with markdown

Fixes https://github.com/Microsoft/vscode/issues/59036

Hi @ramya-rao-a,
Loved the sticky trick. Thank you!
I made the changes you requested:

Well... now the bottom is clipped off

Now there is no margin between paragraphs when there are only 2 paragraphs..
Before:

After:

Instead of setting margin:0 on the first and last child, try setting margin-top:0 on the first child and margin-bottom:0 on the last child.

Well... It was harder than it seemed 😅
Now I think it working as expected:
header + one paragraph:

header + two paragraphs:

header + more than two paragraphs

header only

no header, no markdown

no header,  markdown

I was forced to add a class when rendering the widget in order to be able to remove the header padding when the docs section is empty. I think it shouldn't be a problem.
Thanks for your help!


Missing registry submission instructions

Fixed by writing a Contributing statement in the README.md; also schema docs point users willing to contribute new FileTypes and Extractors to make a PR here.


Feat.population total

Total population should be visible in the indicator/aggregates column, the matrix component and the map with legend.

@gulfaraz without having looked any further, in your screenshot I don't see the 'Population' (grid) layer any more?

@jannisvisser Right, I probably used the same indicator names. Thank you.

@jannisvisser does it make sense to have two layers for the total population? If the information is redundant, should we prefer to remove the raster layer?

Some comments

I see that for Zambia there is also populationTotal data uploaded for provinces and wards, but all under "adminLevel"=2, which is incorrect. I imagine this won't matter in the dashboard, because it takes only the right placeCodes, but should be fixed.
The label is '% of Exposed population', while it should by '% of total population'
when I checkout the branch, run seed, and the trigger mock endpoint, it gives me 0% everywhere (for Zambia again). I see you screenshot, so it must be something wrong in my environment. I don't have more time now though to investigate.
I would maybe go for 1 decimal in the percentage. If generally all percentages are around 0, 1, 2 or 3 % that gives a bit more differentation (and especially when it's rounded off to 0, that confuses people I think).

The 0% is probably related to this: the layer is not loading at all in the map.

@jannisvisser Please review when possible. Thank you!

I see that for Zambia there is also populationTotal data uploaded for provinces and wards, but all under "adminLevel"=2, which is incorrect. I imagine this won't matter in the dashboard, because it takes only the right placeCodes, but should be fixed.

I've updated the Population seed data with the correct AdminLevel values.

The label is '% of Exposed population', while it should by '% of total population'

Fixed

when I checkout the branch, run seed, and the trigger mock endpoint, it gives me 0% everywhere (for Zambia again). I see you screenshot, so it must be something wrong in my environment. I don't have more time now though to investigate.

I was unable to reproduce this. I agree that this is probably unrelated. Makes sense to create a bug to reproduce this.

I would maybe go for 1 decimal in the percentage. If generally all percentages are around 0, 1, 2 or 3 % that gives a bit more differentation (and especially when it's rounded off to 0, that confuses people I think).

I agree. It makes sense to make this change a separate item. Or as a part of AB#7172 and AB#7173

@gulfaraz see here the changes to the mock-endpoint

It's not very nice, because you basically have to duplicate this work in both pipeline and mock-endpoint at the moment
But good enough for now.
Please note, that the changes around PHL I made in the mock-endpoint, were to clean it up a little bit. I find it quite messy how Ruben coded this. Specifically: the 'upload-exposure-PHL-potential-cases-threshold.json' file is not actually mock-data, but is actually trigger-levels per admin-area, which should be in seed-data area. It's good to realize this because soon we'll have to copy this behaviour for Ethiopia ERA..

@gulfaraz sorry, I had to merge this, because I have to touch the same code again now for other reasons (the mock endpoint for multi-hazard). Which would have been extremely unhandy to do otherwise.


Enable fast_finish for Travis CI builds

Enable fast_finish for Travis CI builds.

Closes #46.

Coverage remained the same at 97.802% when pulling fa057b2f8030ca017b23ac6258cd44f627df86d1 on chore-travis-fast-finish into 195eaec8cf8b20413493a66f33dbcf69e772da9c on master.

@homu r+

:pushpin: Commit fa057b2 has been approved by indiv0

:zap: Test exempted - status


UCI XrmApp test fails, but corresponding Browser test works

Hi everyone
I am using VSTS Community Edition 2019 and EasyRepro Git Demo Projects
using (var xrmBrowser = new Api.Browser(TestSettings.Options))
{
xrmBrowser.LoginPage.Login(_xrmUri, _username, [_password);
xrmBrowser.GuidedHelp.CloseGuidedHelp();
        xrmBrowser.ThinkTime(500);
        xrmBrowser.Navigation.OpenSubArea("Sales Hub", "Accounts");

        xrmBrowser.ThinkTime(2000);
        xrmBrowser.Grid.SwitchView("Active Accounts");

        xrmBrowser.ThinkTime(1000);
        xrmBrowser.CommandBar.ClickCommand("New");

        xrmBrowser.ThinkTime(5000);
        xrmBrowser.Entity.SetValue("name", "Test API Account");
        xrmBrowser.Entity.SetValue("telephone1", "555-555-5555");
        //xrmBrowser.Entity.SetValue("websiteurl", "https://easyrepro.crm.dynamics.com");

        xrmBrowser.CommandBar.ClickCommand("Save & Close");
        xrmBrowser.ThinkTime(2000);

Test starts fine and access to Sandbox successful but then while looking for open 'Sales Hub' test fail
I am getting following error
Message:
Test method Microsoft.Dynamics365.UIAutomation.Sample.Web.CreateAccount.WEBTestCreateNewAccount threw exception:
System.Exception: Login page failed.
Stack Trace:
at <>c.b__12_2(IWebDriver f)
at SeleniumExtensions.WaitUntilVisible(IWebDriver driver, By by, TimeSpan timeout, Action1 successCallback, Action1 failureCallback)
at LoginDialog.Login(IWebDriver driver, Uri uri, SecureString username, SecureString password, Action1 redirectAction) at DelegateBrowserCommand5.ExecuteCommand(IWebDriver driver, Object[] params)
at BrowserCommand1.Execute[T1,T2,T3,T4,T5,T6,T7,T8,T9](IWebDriver driver, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9) at BrowserCommand1.Execute[T1,T2,T3,T4](IWebDriver driver, T1 p1, T2 p2, T3 p3, T4 p4)
at BrowserPage.Execute[TResult,T1,T2,T3,T4](BrowserCommandOptions options, Func`6 delegate, T1 p1, T2 p2, T3 p3, T4 p4)
at LoginDialog.Login(Uri uri, SecureString username, SecureString password)
at CreateAccount.WEBTestCreateNewAccount() in CreateAccount.cs line: 25

To fix this issue above, I've added Schema to Source Control like it asked on following link
https://stackoverflow.com/questions/6774578/nuget-packages-element-is-not-declared-warning
New error I in-counted when Building Solution:
Severity	Code	Description	Project	File	Line	Suppression State
Warning	CS0618	'ExpectedConditions' is obsolete: 'The ExpectedConditions implementation in the .NET bindings is deprecated and will be removed in a future release. This portion of the code has been migrated to the DotNetSeleniumExtras repository on GitHub (https://github.com/DotNetSeleniumTools/DotNetSeleniumExtras)'	Microsoft.Dynamics365.UIAutomation.Browser	C:\Users\ikeselman\Source\Repos\EasyRepro\Microsoft.Dynamics365.UIAutomation.Browser\Extensions\SeleniumExtensions.cs	681	Active
Looking how to fix this

Hi @ikeselman
You're last error is a warning not an actual error from what i see but you just need to download through VS the DotNetSeleniumExtra in your project and use it every time you used it previously through selenium.
It will be better and you will not get that anymore.
Is that helpful?

Hi Haywaii,
Appreciate your help
I installed packages you suggested, then Clear Solution and Build Solution again.
Now new warning coming:
Warning	CS0436	The type 'Constants' in 'C:\Users\ikeselman\Source\Repos\EasyRepro\Microsoft.Dynamics365.UIAutomation.Browser\Constants.cs' conflicts with the imported type 'Constants' in 'Microsoft.Dynamics365.UIAutomation.Browser, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'C:\Users\ikeselman\Source\Repos\EasyRepro\Microsoft.Dynamics365.UIAutomation.Browser\Constants.cs'.	Microsoft.Dynamics365.UIAutomation.Browser	C:\Users\ikeselman\Source\Repos\EasyRepro\Microsoft.Dynamics365.UIAutomation.Browser\InteractiveBrowser.cs	689	Active

This one is just a warning nothing to worry about for failure. You can build your solution and run your test.
It's just mean you need to choose which constants object you want to use. I don't know your code but will recommand using the one in Constants.cs everytime.

At this point it will be difficult to help. I am not very skilled with the sample project.
I never heard of a method "RetrieveServerVersion" with Navigation object tho.
Maybe someone else would be able to help.
Can you give more details for everyone here please? (for which project you got the error, which version of the package by example)
For the package, i would recommend for every class where you using it, removed the namespace and add it again (same one for every class where you are using it). So you can see if you still got the warning and why.

Uhm i am wondering if it's not linked to the error with the new version of the framework that some people are getting now.
Can you try to downgrade to an older one and check what happen please?

I tried already and I have a feeling it is because Visual Studio 2019 Community Edition I am using and need to downgrade to 2017 one
Do you know if it any way to install 2017 Community edition? When I download 2017 from  MS
and installing it to Windows 10 VM it is installing 2019 instead - I looking for other option
Here where I got VS 2017 version from and still get 2019
https://docs.microsoft.com/en-ca/visualstudio/productinfo/vs2017-compatibility-vs
Thanks a lot
ikeselman

I don't use Community edition so i don't know but you can normally install two version of VS without any problem (i got two versions here at work).
best shot is to make sure you deinstall everything from VS 2019 to be sure.
Can't help more here i'm afraid. Good luck

Thanks @Haywaii
I uninstalled 2019 version and install 2017,
Installing NuGet Packages required for Dynamics 365 online ver 9.0
When Build Solution getting same Warning
The 'packages' element is not declared.
Microsoft.Dynamics365.UIAutomation.Sample	C:\Users\ikeselman\Documents\Visual Studio 2017\Projects\EasyRepro-develop\Microsoft.Dynamics365.UIAutomation.Sample\packages.config	2

Hi Emmanuel,
Good news: we figure out how to fix issue with error when Building Solution.
I was getting error "Does not contain a static 'main' method suitable for an entry point"
Here is Solution under this link:
https://stackoverflow.com/questions/9607702/does-not-contain-a-static-main-method-suitable-for-an-entry-point
That great.
Now I have small issue with Chrome Browser versions
When I try Run Test "Create Account: WEBTestCreateNewAccount" it is Fail and I am getting into error message:
SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 74 though Chrome v74 is installed
Steps I found and done so far, I followed Solution from this link
https://stackoverflow.com/questions/54927496/how-to-download-older-versions-of-chrome-from-a-google-official-site
My issue that when I found version mentioned on NuGet Packages 74.0.3729.6 and attach to "Version Information Tool" I am getting following link
https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win_x64/638880/
it is installation for Chromium instead of Chrome Browser for Windows 10 64 bit
Any thoughts or may be you come across issues like that
Best regards
@ikeselman

Hi, @ikeselman
Good to see you solved your issue.
The issue you are having right know, i think, is linked to the chrome driver packages and your version of chrome.
You need to make sure both of your packages (in your project) and chrome version are the  same version/supported.
packages are :

Selenium.Chrome.WebDriver
Selenium.WebDriver.ChromeDriver

So let's say my chrome version is v0.76 then my packages must be 0.76.
I hope it helps.

Thank you @Haywaii
Updated all as you suggested
Now when run Test getting new errors
Severity	Code	Description	Project	File	Line	Suppression State
Error		Unable to copy file "C:\Users\ikeselman\Documents\Visual Studio 2017\Projects\EasyRepro1\EasyRepro-develop\packages\Selenium.WebDriver.ChromeDriver.76.0.3809.12600\build..\driver\win32\chromedriver.exe" to "C:\Users\ikeselman\Documents\Visual Studio 2017\Projects\EasyRepro1\EasyRepro-develop\Microsoft.Dynamics365.UIAutomation.Sample\bin\Debug\chromedriver.exe". The process cannot access the file 'C:\Users\ikeselman\Documents\Visual Studio 2017\Projects\EasyRepro1\EasyRepro-develop\Microsoft.Dynamics365.UIAutomation.Sample\bin\Debug\chromedriver.exe' because it is being used by another process.	Microsoft.Dynamics365.UIAutomation.Sample
Severity	Code	Description	Project	File	Line	Suppression State
Error		Could not copy "C:\Users\ikeselman\Documents\Visual Studio 2017\Projects\EasyRepro1\EasyRepro-develop\packages\Selenium.WebDriver.ChromeDriver.76.0.3809.12600\build..\driver\win32\chromedriver.exe" to "C:\Users\ikeselman\Documents\Visual Studio 2017\Projects\EasyRepro1\EasyRepro-develop\Microsoft.Dynamics365.UIAutomation.Sample\bin\Debug\chromedriver.exe". Exceeded retry count of 10. Failed. The file is locked by: "chromedriver.exe (3456), chromedriver.exe (6700), chromedriver.exe (844)"	Microsoft.Dynamics365.UIAutomation.Sample

Running Test CreateAccount and getting now
Microsoft.Dynamics365.UIAutomation.Sample.Web.CreateAccount.WEBTestCreateNewAccount threw exception:Login page failed

From now you need to debug to see why the login doesn't work.
Good luck

Yes you right, by Debugging code I getting into few conclusions:

Missing Elements values and I need to define them in code

OR/AND

we using Staging Sandbox for now testing and fail because SubArea we do not have in Staging  and it is designed to find Area and not SubArea:


[SPARK-25041][build] upgrade genJavaDoc-plugin from 0.10 to 0.11

What changes were proposed in this pull request?
This PR fixes a build error with sbt using Scala-2.12. Since [genJavaDoc-plugin] (https://mvnrepository.com/artifact/com.typesafe.genjavadoc/genjavadoc-plugin) 0.10 is not prepared for Scala-2.12.6, the recent version of genJavaDoc-plugin is necessary.
The version 0.11 of genJavaDoc-plugin is also prepared for Scala-2.11.12.
genJavaDoc-0.10
genJavaDoc-0.11
How was this patch tested?
Manually tested for Scala-2.12.

cc @ueshin @HyukjinKwon @srowen

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/1899/
Test PASSed.

Test build #94356 has started for PR 22020 at commit 1b41ce4.

Test build #94356 has finished for PR 22020 at commit 1b41ce4.

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

Merged build finished. Test PASSed.

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

Merged to master


Issue in rotate_left

Hey,
when I do rotate left, like motor.rotate_left(num) where num is in [0,2048] the motor rotates left. If I put in values above that it starts turning right. There seems to be a bug with the bytes. Just add an assert.

That is indeed a strange behaviour. Given the way the bytes are packed when sending over the bus I cant imagine its an overflow issue on our end... it must be some wraparound behaviour internal to the controller module.
The issue with limiting these input values within the python library is that  different TMCM modules have different velocity limits... for example, the TMCM-300 range is indeed limited 0-2047 but the TMCM-100 range can accept values 0-8191
I guess i could add velocity_limit kwarg to the get_motor method

After re-reading the docs, it seems that the TMCM-100 is the only module that has a different max velocity_limit... given that, i feel the best approach for the library will be to have an optional kwarg on the Motor constructor to allow overriding the default value of 2047.
That way an assert can be included to avoid accidental motor reversal.

Ok, did you change this?

Not in the public repo yet. I'm working on a full v2 bump that will address this and other issues.
Would be obliged if you could test it out when i release an alpha (I haven't got any trinamics to test on at the moment)


Qsiprep stuck after creating mrtrix_multishell_msmt.recon_wf.msmt_csd.plot_peaks for a subset of subjects

Hi,
I am using Qsiprep version 0.13.0RC1 on Docker.
I have successfully run the reconstruction only pipeline using MRTrix on 18 subjects so far from a study. I have an issue with 2 subjects.
The docker seems to hang after the csd plot peaks creation step for both subjects. Last time I checked it was still up for 2 days when usually it takes 4-6 hours.
I deleted the output folders and the temp space and re-ran it twice but it still doesn't seem to converge.

I am also attaching the complete error log if it's helpful.
TMSA15_baseline_mrtrixreconerror.txt
Could you please advise?
Thank you
Best,
Apoorva

Hello,
You can try skipping the ODF plots by adding --skip-odf-reports to your qsiprep command.
Best,
STeven

Hi Steven,
Thank you so much for your response.
I think I am using an older version of qsiprep (0.13.0RC1 on Docker) which doesn't have the --skip-odf-reports option.
Is there another option I could apply to get it working?
Thank you
Best,
Apoorva

I'm not sure of other options while sticking with 0.13.0RC1 besides trying to up your memory allowances.
I would suggest upgrading to a more recent version though for better reconstruction workflows. The HSVS options for MrTrix are appreciably better than the older options that relied on FSL FAST!

Thanks Steven. I will try increasing the memory allowance and see if it works.
I wanted to keep the qsiprep version specific to a project (which started a year ago) but will definitely use the new versions with the upgrades in the reconstruction pipelines for new projects.
I might also rerun data from this project with the new version once I am through with processing it on the old version.
Thank you

Okay good luck! I don't think it is too big a deal if you preprocess with one version and reconstruct with another, as long as 1) there have not been any big changes to methods you are using in preprocessing, and 2) you are consistent across subjects.
If you do preprocess with the new version, DO NOT use the same working directory as the old version.


casperjs instead of Phantomjs

hi there
could you please help me I am trying to crawl a not very well constructed site and i need to click in a particular element the trigger a JS that change pages content, the mos simple way i found is ussing casperJS (http://casperjs.org/).
i manage to do that by  call that page after click and return html resource, however i'm not figure out the way to pass that HTML to COLLECTOR.
is it possible? please, if so cloud you please point me out some resource?
thanks a lot
regards
angelo

I can't see why not.
You can create your own IHttpDocumentFetcher or have your own version of PhantomJSDocumentFetcher but I suggest trying a simpler road.
Without having to write Java code, I would look at modifying the current PhantomJS script used by the HTTP Collector (phantom.js) to integrate Casper into it.  I think you'll find a way to do it here.
You may want to replace the page.open(...) section of the script with your Casper-specific code.  Once you have obtained the page you want (after your clicking), obtain the page from Casper.  That page will be a PhantomJS page and can be used as the page on line 92 of the phantom.js script.  This is the line that writes the page to the filesystem for later consumption by the HTTP Collector.
Let me know how that goes.


Test against PHP 7.1 and 7.2

Looks like PHP 7.2 needs some work :thinking:

I am probably counting null... if only we had is_countable on 7.2 :stuck_out_tongue:


output json status based on 'Accept' header

...instead if having a separate URL.
Also fix returned Content-Type.
Closes #1063.

Whats are position on backwards compatibility of this API?
Scope is currently using /status-json, but thats an easy fix.

Whats are position on backwards compatibility of this API?

Don't care. It's completely undocumented.

Looks fine to me.


Allow import of edited submission

Submission has been edited in depo-curation to change EFO terms. I have approved the SNPs, which I thought would make the submission available for import, but the Import button is orange and Submission type is UNKNOWN: https://www.ebi.ac.uk/gwas/curation/submissions/613261186d0dd70001ad971f
This update is required to make sure an example is available in the GWAS Catalog that will be used in an upcoming paper from the ontology team. We need this to go out in this data release.

The Publication '34376796' status changed to Under_Submission & the Submission status changed to 'Submitted' , @eks-ebi please try to import now

Thanks @sajo-ebi, submission has been successfully imported. I'll now have to wait for the associations to map, and then republish the studies.


MacOS support

Problem with MacOS.
OS: 64bit Mac OS X 10.12.6 16G29
self._epoll = select.epoll()
AttributeError: module 'select' has no attribute 'epoll'

Module select doesn't have epoll method. I want to try to fix this with another way.
It's critical or not?
Thanks

yeah, we know about this, MacOSX doesn't have support for epoll. they have a different API for similar things. To be quite frank with you I am not expecting people to run tftp servers on MacOSX in production :)
TFTP is usually used on datacenter/ISP environment.
Adding support for MacOSX is not in our imminent roadmap, but we accept PRs if you are bored :)

I believe that kqueue() on BSD/MacOS is the equivalent of epoll() for Linux


Add "Other Agencies" option in agency left-hand list that allows drop down of our secondary excel sheet. If chosen, it should replace itself in the list so you can choose it multiple times

@NSementelli this feature has been added & deployed! Please let me know any feedback

awesome. i'm going to write the post this weekend so we can get this
published early next week.
On Thu, Dec 1, 2022 at 9:25 AM Andrew Turner @.***>
wrote:

Closed #3 https://github.com/ajturner/dc-council/issues/3 as completed.
—
Reply to this email directly, view it on GitHub
https://github.com/ajturner/dc-council/issues/3#event-7932416694, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AM7MNH5HMM3ZLFULOOCMMMDWLCYMVANCNFSM6AAAAAASQ27ZKI
.
You are receiving this because you were mentioned.Message ID:
@.***>

great - I'll keep making updates, hopefully fixing social media sharing too


Fix unset target type in assignment inside setter

Attempt to fix the untyped target in assignment inside setter.
I assume the problem is in the condition if (!is_in_setter) here:
...
if (has_setter) {
  if (!is_in_setter) {
    // Store stack slot for the temp value.
    target = codegen.add_temporary(_gdtype_from_datatype(assignment->assignee->get_datatype()));
  }
}
...

As the target won't be set to anything with type then we'll have a bug report here, defaulting to raw assignment operation.
When I remove this condition the example given in #54450 compiles without error warning.
I'm not sure if the condition if (!is_in_setter) is a desired logic of codegen, and I need any comments on it since I'm new to Godot and Open Source contributing at all.

Superseded by #56229.


Fixes #569: Assign NaN position for drivers crashed in Lap1

Assign NaN position for those drivers who have only 1 lap and "FastF1Generated" is set to True.
Fixes #569

Sorry, I kind of forgot about your PR and went on vacation 😅 Everything looks good, so I'll merge.


Login page welcome text style differs between platforms (Inconsistent)

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Logout If already logged in, log out.
See the welcome text

Expected Result:
The same style everywhere!
Actual Result:
It's bolded in Android, not bolded everywhere else!
Note: Ignore screens have some error messages.
Android

iOS

mWeb

Desktop

Web

Workaround:
Can the user still use Expensify without this being fixed? Yes
Platform:

Where is this issue occurring?
Confused, Let's say all for now.

[x] Web
[x] iOS
[x] Desktop App
[x] Mobile Web

Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
View all open jobs on GitHub
Suggestion
I don't know what's expected or which is correct. But style should be the same across all platforms!

Triggered auto assignment to @sakluger (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

Proposal
I do see this happens because of the following reasons.
The style we use for welcome text is

In the h3 style for fontFamily.GTA_BOLD, we have written a separate export for bold style alone.

bold contains following files, style for android & index.js for  all the other platforms

index.android.js

index.js

So this is the reason we have different styles between platforms. We could modify the same to fix the issue! But first, we want to figure out what's intended.

I think we want the text to appear bold on all platforms. Does this mean all bold text is broken on Android?

Yes, it looks like @shawn!

Do you expect GTAmericaExp-Regular for all? @shawnborton

I would expect GTAmericaExpBold for bold.

GTAmericaExp-Bold does not work well for web/desktop!

I'm not sure what to tell you then - perhaps @roryabraham or @marcaaron might have an idea as I think one of them might have worked on this?

Okay, @shawnborton it does not look like it is completely messed up, I will investigate further for other pages!

It's not working on login pages alone as expected!

After further investigation, I found the reasons.
For all other styles which use fontFamily.GTA_BOLD  as fontFamily in styles.js pass along fontWeight: fontWeightBold so the text looks bold in all other pages as expected.
In below lines h1 style has property  fontWeight: fontWeightBold, but for h3 and h4 we missed it out.
https://github.com/Expensify/App/blob/bdcafa3444f3839d7f5de2300e258caf681a50e3/src/styles/styles.js#L53-L68
So It's not bold in login form pages alone. In the below screens, h3 style is used for the Welcome back to the New Expensify! Please enter your password. & h4 style is used for Forget? Look at the differences. It's all bolded in android and missed on the web.
Web

Android

cc: @shawnborton @roryabraham
De we need the messages bolded here or not?
If so we need to add fontWeight: fontWeightBold  to h3 & h4 styles
if not, then we need update fontFamily:  fontFamily.GTA
Post your thoughts on this thanks!

Okay so sounds like we just need to add fontWeightBold to the h3/h4 styles then, as we do want those headings to appear bold. Thanks for investigating!

This looks good and a cursory search revealed that it doesn't appear to be a duplicate. Going to tag this as external so that we can get @Santhosh-Sellavel hired to make this change.

Triggered auto assignment to @marklouisdeshaun (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@marklouisdeshaun Let's get an Upwork job created for this, then hire @Santhosh-Sellavel.
@Santhosh-Sellavel Feel free to submit a PR once you've been hired on Upwork.

Sure @roryabraham, thanks!

Job created in Upwork!
Internal post: https://www.upwork.com/ab/applicants/1430289271743135744/job-details
External post: https://www.upwork.com/jobs/~019e6eda1b98605ada

I think its just simple style issue. Need to change it from GTAmericaExp-Regular to GTAmericaExp-Bold

Looks like the PR was merged, making this a weekly while we wait for it to be deployed to prod.

Apologies for the delay in payment @Santhosh-Sellavel , I just paid in Upwork now and added the bonus for reporting the issue.  In the very near future, if not now, there will be an updated comment about when to pay issues and the title will be updated, so this shouldn't continue to happen


binary

any chance to have binary soon?

binary version is available under the releases section:
https://github.com/mechsym/SnapperReplicator/releases


-o": unsupported protocol scheme

Getting an error:
Error in autocalibration, exiting: Get "example.com/-o": unsupported protocol scheme ""
cat: example.tmp: No such file or directory
Using:
ffuf -mc all -c -H "X-Forwarded-For: <IP_ADDRESS>" -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" -u example.com/FUZZ -w /root/wordlist/dicc.txt -D -e js,php,bak,txt,asp,aspx,jsp,html,zip,jar,sql,json,old,gz,shtml,log,swp,yaml,yml,config,save,rsa,ppk -acc -o example.tmp
I tried -ac but no use

Hi @welltest,
You need to set HTTP SCHEMA in -u example.com/FUZZ, so something like -u http://example.com/FUZZ
Happy hacking


As a student living in dorm, I can delete a contact

... so that I can stay updated on who no longer resides in the dorm.

Done checking, feature completed by original AB3 code.


API method to clone a graph instance

First, I :heart: dependency-graph and thank you so much for making it. :+1: x :100:
I've got a use-case where I need to create a copy/clone of an existing graph. It'd be really handy to that built-in so I'm not accessing private-ish properties on the graph to manually create clones of them. Thoughts?

That seems like a great idea! Something like newGraph = oldGraph.clone().
It would have to do a deep-copy of the nodes as arbitrary data can be stored there as of the latest release.
Do you want to implement it and submit a PR? Otherwise, I'll can probably take a look in a few days!

I don't have a ton of free time for a PR right now, I've just gone ahead and built a simplified version for my use-case (where I don't store arbitrary node data).
https://github.com/tivac/modular-css/blob/inherit-updates/src/lib/clone-graph.js
Cloning the arbitrary data storage part is gonna complicate things, I wonder what the right approach there would even be?

Probably something similar to the Structured Clone Algorithm - though that's pretty complex.
I might just start with a clone implementation that doesn't copy the data (or just does a shallow copy of the data) that has a caveat in the API docs.

Based on my needs that sounds like a great first step!

Finally got around to this - it's in version 0.6.0

@jriecken oh awesome! I got my workaround in and kinda forgot about this issue, for which I apologize. I'll give 0.6.0 a whirl when I can, thanks!


Multiple selection

does not support subgrids
the selection is reset when sorting / paging / filtering
the selection is not reset when paging with infinite scroll

cool!!!

Thanks so much! This is quite nice! :+1:

@ryanlanciaux i've just found that React throws a warning when using this new feature.. and that is because the new column (checkbox column) not have a key property.

Also this breaks support for React 0.12.x, because of the use of React.findDOMNode in handleSelectClick method in `gridRow.jsx file

Thanks for the heads-up @bjrmatos -- that should be fixed now :+1:


[sample-kotlin] advanced characteristic activity

Adds AdvancedCharacteristicExampleActivity and related classes.
Please note that especially the Presenter class got significantly refactored in comparison with the original Java sample, so please test it thoroughly.
I also added some basic Robolectric tests to test the complex Presenter logic.
This PR builds on top of #539 . Please merge it afterwards.

I tested and fixed a logic issue. Then I made some minor changes that I found to better describe the actual flow of data. Anyway it was a good PR, thank you!


Check for method in attached scripts for Thread.start

Fix #67088

Core changes like that should be made for 4.0 first, can you check whether it can be applied to it?

@Chaosus 4.0 doesn't check method by name here https://github.com/godotengine/godot/pull/56484/

For 4.0 looks like it should be Callable changed to accept script methods.

Looks like 3.5.1 also check script instance in has_method. I need to dig it deeper.

It's not needed. Issue was related to incompletely initialized objects.


Preparing for 1.5 release

Changes for 1.5 and final release

Current coverage is 86.71% (diff: 100%)

Merging #379 into master will not change coverage

@@             master       #379   diff @@
==========================================
  Files            12         12
  Lines           557        557
  Methods         463        463
  Messages          0          0
  Branches         94         94
==========================================
  Hits            483        483
  Misses           74         74
  Partials          0          0

Powered by Codecov. Last update e3f3c1b...165668d


Check components for RTL support

Go through all components and check for RTL support. Open up new individual RTL bug issues and link them to this epic for tracking.

Question about the text in general - It doesn't actually flip the order of the characters or the words to read from right to left, but it does flip the order of sentence and punctuation.  Is that as expected?

Just met with Amy to divvy up the work.  Adding a checklist so we can track what we've completed.
We assume that we don't need to do the Carbon components.  @davidicus correct?

[ ] Add card
[ ] Base modal
[ ] ButtonEnhanced
[ ] FileDrop
[ ] Header
[ ] WizardInline
[ ] NavigationBar
[ ] PageHero
[ ] ProgressIndicator
[ ] ResourceList
[ ] SideNav
[ ] SimplePagination
[ ] StructuredList
[ ] TAble
[ ] TableBodyRow
[ ] TableDetailWizard
[ ] TilesCatalog
[ ] WizardModal

Completed BaseModal
Opened Issue #444

ButtonEnhanced complete - Opened Issue #445

Tables in progress - Opened issue #446

Table complete - issue #446.  Discovered an issue with the "horizontal scroll - full width" that occurs in LTR as well.  Opened issue #448

TableBodyRow complete - Issue #449
TableDetailWizard complete - Issue #450
TileCatalog complete - Issue #451
WizardModal complete - issue #452

Completed File drop - I think this is working as expected
Completed Header - I think this is working as expected
Completed wizard - Issue https://github.com/IBM/carbon-addons-iot-react/issues/468

Completed ResourceList - I think this is working as expected
Completed SideNav - Issue https://github.com/IBM/carbon-addons-iot-react/issues/472

Just met with Amy to divvy up the work. Adding a checklist so we can track what we've completed.
We assume that we don't need to do the Carbon components. @davidicus correct?

[x]  Add card
[x]  Base modal
[x]  ButtonEnhanced
[x]  FileDrop
[x]  Header
[x]  WizardInline
[x]  NavigationBar
[x]  PageHero
[x]  ProgressIndicator
[x]  ResourceList
[x]  SideNav
[x]  SimplePagination
[x]  StructuredList
[x]  TAble
[x]  TableBodyRow
[x]  TableDetailWizard
[x]  TilesCatalog
[x]  WizardModal

We do need to check off on the carbon components to be sure that they are compliant.

Question about the text in general - It doesn't actually flip the order of the characters or the words to read from right to left, but it does flip the order of sentence and punctuation. Is that as expected?

That is as expected.

Just met with Amy to divvy up the work. Adding a checklist so we can track what we've completed.
We assume that we don't need to do the Carbon components. @davidicus correct?

We do need to check off on the carbon components to be sure that they are compliant.

Oops.  So they haven't tested them?

@KarenGski They say that they should all be compliant but I think we have seen enough defects to expect that there may be some gaps.

keeping open to track bugs referenced above. Need to add them to this epic

Closing this epic in favor of tracking items individually. RTL support/issues as a whole for the repo can be viewed by sorting the issues with the RTL label


Why does the front camera turn photos in horizontal mode and why I cannot make them vertically❓

Question
I am not sure if it is a bug or not but the front-camera behaves weird, I have react vision camera version 3.3.1 and when using front camera, after taking a picture, it takes that picture horizontally but I want it to be vertical. My phone orientation is vertical. I can't find a way to make the picture vertical.
What I tried
I tried to set orientation on PhotoFile but it doesn't change anything also on ReanimatedCamera.
VisionCamera Version
3.3.1
Additional information

[ ] I am using Expo
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar questions in the issues page as well as in the discussions page and found none.

Any update on this or any workaround?

Any update on this or any workaround?

Nothing yet

Same problem with v3.6.4

It's weird.
The code that decides the orientation of the taken photo is here.
https://github.com/mrousavy/react-native-vision-camera/blob/8f986a45ea0aa3398e45a806a264fbcc03278971/package/android/src/main/java/com/mrousavy/camera/extensions/CameraDevice%2BcreatePhotoCaptureRequest.kt#L52
I've tried modifying that line to some explicit JPEG_ORIENTATION values, like
captureRequest.set(CaptureRequest.JPEG_ORIENTATION, 90)
I found that the photo taken by the front camera didn't get affected by the value(90 above) at all, while the back camera worked properly ,which means that the changes in JPEG_ORIENTATION value actually rotated the taken photos.
I used Galaxy S21 to test it and I'm confused if it's a bug in the device or we are missing somthing.

Could you guys report your devices please? @VGabriel45 @JB712 @askynet

For me it is not working on any device, the issue is only on front camera for some reason

I have same problem with 'front' camera  in Xiaomi Mi Note 10 Lite  device.
PhotoFile:    json{"height": 1728, "isMirrored": true, "isRawPhoto": false, "orientation": "landscape-right", "path": "/data/user/0/com.test.app/cache/mrousavy7832491812325578879.jpg", "width": 2304}

@bglgwyng  I'm working mostly on emulated Pixel 2 in windows environnement.
I think there's a workaround possible with react-native-orientation-locker: it provides device precise orientation (not only portrait/landscape, but landscape-left, landscape-right, portrait-upsidedown, ...) and it can lock some components in specific orientations. I did choose to lock my camera page on portrait orientation as it is easier to implement, but I'll try the other one when I have time

Video of the issue with Samsung Galaxy A13. I am using using camera roll to save the picture as per mentioned by the documentation. I am using the front camera.
Code:
const photo = await cameraRef.current?.takePhoto({
  qualityPrioritization: 'speed',
});
const photoPath = `file://${photo?.path}`;
if (Platform.OS === 'android') {
  await CameraRoll.save(photoPath, {
    type: 'photo',
  });
  setPhotoUrl(photoPath);
}

Output:
https://github.com/mrousavy/react-native-vision-camera/assets/26744253/47ecc3f8-0a52-4dd4-b984-8f5f64a07f61

Oh it probably may be related to https://github.com/mrousavy/react-native-vision-camera/issues/1935

I made a little fix by determining the orientation of image and then rotating the image by using image-resizer
`const handleCapture = async () => {
if (camera) {
const image = await camera.current!.takePhoto({
qualityPrioritization: 'speed',
});
await handleRotation(image);
}
};
const handleRotation = async (image: PhotoFile) => {
let output = await ImageResizer.createResizedImage(
  'file://' + image.path,
  350,
  350,
  'JPEG',
  100,
  image.orientation === 'landscape-left'
    ? 90
    : image.orientation === 'landscape-right'
    ? -90
    : image.orientation === 'portrait-upside-down'
    ? 180
    : 0,
  undefined,
  false,
);

// your further processing

};
 ImageResizercan be import<EMAIL_ADDRESS>

i am having the same issue recording videos on front cam works fine but clicking images have issues..i am making a camera app even tho if i rotate the image somehow in the image display screen when i save it in my gallery the image orientation is not portrait.do any of you have a fix?

Closing this for now as this is the issue orientation is being tracked in: https://github.com/mrousavy/react-native-vision-camera/issues/1891

i use ffmpeg-kit-react-native library and write command function then i use Aspect Ratio scaling and i use following command command:
static async reduceImage(payload: {
path: string;
ext?: string;
}): Promise {
const {path, ext = 'png'} = payload;
const newPath = this.formatPath(path);
const outputPath = ${newPath}_resized.${ext};
 const command = `-i ${path} -vf "scale=ih*9/16:ih" ${outputPath}`;
 await FFmpegKit.execute(command);

 return outputPath;

}

Hey all! I just spent some time to build a new feature: I created a PR to add a isMirrored prop to Camera: https://github.com/mrousavy/react-native-vision-camera/pull/3036
With this prop you can enable or disable output mirroring 🎉🥳
If you appreciate my time and dedication towards building new features and constantly improving this library, please consider sponsoring me on GitHub  :)

To prevent the photo from turning whether your device is horizontally turned or vertically turned, use the following solution.
import { Camera } from 'react-native-vision-camera';

<Camera outputOrientation='portrait' />
``

I have also getting same issue did you find any solution.

This isn't happening on my iphone 15 and 13 but it's happening on my iphone 7 and 8.


Form Recognizer: Consider naming around models, method names

Naming Suggestions
•	ModelsAsyncPageable -> CustomModelsAsyncPageable
•	ModelsPageable -> CustomModelsPageable
•	ModelInfo -> CustomModelInfo
•	StartAnalysis -> StartPrediction: Analyze is an industry-wide term for this type of product. From a data science angle, prediction implies a single returned value with a confidence score.
•	AnalysisOperation -> CustomFormPredictionOperation, ReceiptPredictionOperation, LayoutPredictionOperation
•	StartTraining -> StartTrainingCustomModel: Training implies custom model. If a change is needed, prefer StartTrainingModel
•	TrainingOperation -> TrainCustomModelOperation: This sounds like a method name. Maybe TrainingModelOperation?
•	ListModels -> GetTrainedCustomModels: Training implies custom model. If a change is needed, prefer GetCustomModels
Status: No action yet.
Priority: high
Effort: low

Status: proposed design; will discuss with service team and arch board. @mayurid

Design prototyped. We can reopen this issue or create new ones from UX feedback. @mayurid


Generate keywords under the abstract of the PDF document

Hi.
I learned a lot from reading your article, but I'm a little confused.
keywords in YAML seems to only add metadata to the PDF document. Sometimes we intend to generate keywords under the abstract in the PDF document.
I don't find a direct way to add it. Modifying it in .tex document generated by Rmd seems like a feasible approach. Do you have more convenient method or related experience?
Thanks for you patient reading!

Hi,
Keywords is usually part of an article just like introduction or results.
So I think you may regard it as plain text.
To generate keywords under the abstract automatically is unavailable now.
Sorry for that.

I got it.
Thanks for your instructive answer!


need dependencies for generated CSharp files

1>C:\devel\build\rbfx\Source\Urho3D\Urho3DCSharp\ProfiledMutex.cs(66,87,66,104): error CS0117: 'Urho3DPINVOKE' does not contain a definition for 'new_ProfiledMutex'
1>C:\devel\build\rbfx\Source\Urho3D\Urho3DCSharp\ProfiledMutex.cs(70,19,70,40): error CS0117: 'Urho3DPINVOKE' does not contain a definition for 'ProfiledMutex_Acquire'
1>C:\devel\build\rbfx\Source\Urho3D\Urho3DCSharp\ProfiledMutex.cs(74,30,74,54): error CS0117: 'Urho3DPINVOKE' does not contain a definition for 'ProfiledMutex_TryAcquire'
1>C:\devel\build\rbfx\Source\Urho3D\Urho3DCSharp\ProfiledMutex.cs(79,19,79,40): error CS0117: 'Urho3DPINVOKE' does not contain a definition for 'ProfiledMutex_Release'

Also numerous warnings in many files of the form:

1>C:\devel\build\rbfx\Source\Urho3D\Urho3DCSharp\Skybox.cs(49,61,49,71): warning CS0168: The variable 'handleType' is declared but never used

Currently leaving URHO3D_PROFILING=ON is not a workaround on machines that lack the RDTSCP instruction, as Tracy's use of it causes the Editor to throw an exception.

Delete C:\devel\build\rbfx\Source\Urho3D\*CSharp folders and regenerate cmake cache

Deleted the \ImGuiCSharp and \Urho3DCSharp folders.  Didn't see any other *CSharp folders. Closed VS, even if that may not have been strictly necessary.  In CMake GUI, selected "File.. Reload Cache", then hit Generate.  Clicked on .sln to open VS.  Right click on ALL_BUILD and selected Build.
Seems to only be building the CSharp wrappers, instead of the whole .sln, which is a good thing.  This could nevertheless be some time, until I have a result.
A more robust dependency calculation, would be desired when CMake options change.  As users will change them, and will then believe in the brokenness of the build, rather than knowing of this special step to take.  Back in the day, I remember that providing clean targets or dependency targets for generated files or folders, was an obscure bunch of hoops to jump through.

Right, this is a sore point i did not really know how to solve. Problem is that we do not know beforehand what files SWIG will generate. Do you have any idea how to implement dependency tracking in this particular case?

Once upon a time I implemented a multi-stage bootstrap for the Chicken Scheme-to-C compiler.  Just about anything can be solved if it's broken into enough stages.  Without analyzing the the problem, or remembering how to do it, I do know it can be done.  It's just work, and I don't remember how much.  I can look into it at some point.
Right now it is not a blocking issue though.  The blocking issue is Tracy polluting end user runtimes, causing machines such as mine to crash in the wild.  If Tracy is only in a Release With Debug Info style build, then this dependency issue is not immediately front-facing to developers.  It only becomes apparent when someone decides they really need to do some profiling.  So for triage, perfect dependency tracking becomes less pressing.  Ergo, I am far more focused on winning the battle of where Tracy is and isn't supposed to exist, in a sane universe.

Any idea whether we can check if cmake config has changed since last time? If so - we could simply be deleting those files and force regeneration of bindings. Deleting them on each reconfigure would be too much however.

I'm sure there's a way, and it is best to handle it in as fine grained a way as possible.  Since you said you're dealing with things you "do not know beforehand", I am supposing you're doing some kind of GLOB.  Which always makes propagation of dependencies a problem, which is why Kitware recommends against using it.
However if you're not being lazy and truly don't know, then you don't know.  I remember dealing with such things by using CMake to run CMake itself as a scripting language to get results.  Such techniques are error prone and you have to know all the differences between command line environments, CMake environments, and VS enviornments.  They're not the same.  I did make it all work, but that was 14 years ago.  This sort of thing can be done again, but it's effort.
Triage is for Tracy with RelWithDebInfo.  No further "research" effort on this issue until then.  No point working on shifting sand.

Final note: back in the day, I wrote custom build suffix rules to create dependencies at file level of granularity.  But whether you can do that with SWIG, depends on whether it does things file by file or all in one massive output.  I have not studied its theory of operation.
And at this point I don't plan to.  You will, unfortunately, be working on this yourself, or whomever else you can get to take it on.  I am done with rbfx.  These various issues create lots of work for me, with too many steps to get to my actual agenda: a geometry manipulation language.  If I had confidence in your release and project management skills, I would continue.  But I think what you want, is to do active development, as mainly you alone see fit.  I don't see you attracting more developers.  I see it pretty much staying as you + a sidekick or two.  In a few years you will either have something public facing, that people have heard of, or you won't.  Good luck.


Load class error

I try to load class from cpg, when I load its dependencies. For example
jpype.addClassPath("libs/slf4j-api-2.0.5-sources.jar")
jpype.addClassPath("libs/slf4j-api-2.0.5.jar")

jpype.addClassPath("libs/log4j-api-2.19.0.jar")
jpype.addClassPath("libs/log4j-core-2.19.0.jar")
jpype.addClassPath("libs/log4j-slf4j2-impl-2.19.0.jar")

jpype.addClassPath("libs/org.eclipse.equinox.common-3.17.0.jar")
jpype.addClassPath("libs/org.eclipse.core.runtime-3.26.0.jar")
jpype.addClassPath("libs/core-<IP_ADDRESS>211292120.jar")

LoggerFactory = jpype.JClass("org.slf4j.LoggerFactory")
String = jpype.JClass('java.lang.String')
# 调用 Java 方法
result = String('Hello, JPype!').toLowerCase()
# 打印结果
print(result)

GCCLanguage = jpype.JClass("org.eclipse.cdt.core.dom.ast.gnu.c.GCCLanguage")
dialect = GCCLanguage.getDefault()

Everything works fine. However, when I load a class from cpg,
jpype.addClassPath("libs/cpg-core-6.1.0.jar")
TranslationConfiguration = jpype.JClass("de.fraunhofer.aisec.cpg.TranslationConfiguration")

Error occured, the message is:
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x00007ffbb587cb69, pid=13456, tid=13752
#
# JRE version: OpenJDK Runtime Environment (17.0.2+8) (build 17.0.2+8-86)
# Java VM: OpenJDK 64-Bit Server VM (17.0.2+8-86, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# C  [KERNELBASE.dll+0x2cb69]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  S U M M A R Y ------------

Command Line:

Host: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz, 12 cores, 15G,  Windows 10 , 64 bit Build 19041 (10.0.19041.2788)
Time: Sat Apr 22 20:18:10 2023 �й���׼ʱ�� elapsed time: 0.934590 seconds (0d 0h 0m 0s)

How could I fix this? Are this correlated to the fact that lib cpg is built in java 17 and written in kotlin?

Seems like the library has a native component and it didnt match the system.  But that is only a guess.

Have you solved your problem? I have the same problem.

Have you solved your problem? I have the same problem.

No, I still haven't found out.

Does the code work, if you only use it in the JVM/plain Java?


Increase branch coverage _get_inputs

To begin with, branch coverage is 97% for the function form.py. There is one Missing part of branch coverage for the function _get_inputs, the check if the function raises ValueError if the input parameter formdata  is not a dict or iterable of tuples.

The test that is added for _get_inputs enhances branch coverage of the file form.py from 97% to 98%.


Update link to manually search for coordinates

Overview
The link to manually search for coordinates in the intro course is broken so I am replacing it with https://landsatlook.usgs.gov/viewer.html
@github/services-training can I get a quick :+1:?

This should work, but I'm getting some weird behavior locally and the changes just aren't showing up, even after a hard reload and clearing the cache. This is a half thumbs up from me because it should work but I haven't been able to make it work locally yet.

:heart: thank you for testing @brianamarie :ship:ing this to fix the broken link


Add unused package check in backend build-CI pipeline

Description

Add unused package check in backend build-CI pipeline

Added as part of https://github.com/iptables-viz/iptables-viz/pull/11


Correcting error in tag in resources.yml

Added spaces to simplify tags
Describe your changes
Eliminated accidental tag duplication for Knowledge Hubs
Related issue number/link
https://github.com/ClimateTown/knowledge-hub/pull/175#issuecomment-1546857852
Thanks for contributing! 🥳🚀🌳

Thanks for the PR! Will be working on tooling to prevent errors like this from slipping through (and generally making tags easier to manage).


Segfault when running FRlefdef on a small LRU(lest recently used) Verilog module

This was using: https://github.com/The-OpenROAD-Project/alpha-release/releases/tag/v2019-07-30_05-17
To reproduce use the attached files:
# FRlefdef --no-gui --script LRU.rsyn
[deleted]
Running generic reader...
Parsing LEF files...
[deleted]
WARNING: Unsupported INOUT direction in data pin. vdd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
Parsing LEF files... Done (runtime: 0.01051 seconds memory: +3 MB)
Parsing DEF files...
Segmentation fault (core dumped)

segfault.zip

Hi, @oharboe.
Can you check and test the branch 'fix_issue#2', commit fdee44a9f216fec08296fd20c55643acad3ef705?
Thanks.

@eder-matheus What are the steps to test this?

@oharboe Just build this branch and run your Rsyn script

Using these files https://github.com/The-OpenROAD-Project/FastRoute4-lefdef/files/3456263/segfault.zip, it still fails:
# FastRoute4-lefdef/FRlefdef  --no-gui --script LRU.rsyn

                             _____
                            |  __ \
                            | |__) |___ _   _ _ __
                            |  _  // __| | | | '_ \
                            | | \ \\__ \ |_| | | | |
                            |_|  \_\___/\__, |_| |_|
                                        __/ /
                                       |___/

-------------------------
3rd Party License Notices
-------------------------
1) FLUTE is a software developed by Dr. Chris C. N. Chu at Iowa State University (http://class.ee.iastate.edu/cnchu/)

Running generic reader...
Parsing LEF files...
WARNING: Unsupported INOUT direction in data pin. gnd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. vdd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. gnd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. vdd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. gnd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. vdd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. gnd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. vdd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. gnd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. vdd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
Parsing LEF files... Done (runtime: 0.011106 seconds memory: +4 MB)
Parsing DEF files...
WARNING: PIN gnd doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN vdd doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN clock doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN io_accessed[1] doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN io_accessed[0] doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN io_enable doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN io_leastRecentlyUsed[1] doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN io_leastRecentlyUsed[0] doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN io_pageEnable_0 doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN io_pageEnable_1 doesn't have direction. Setting UNKNOWN_DIRECTION
Omitting further warnings for pin with unknown direction
Parsing DEF files... Done (runtime: 0.041917 seconds memory: +3 MB)
Populating the design...
terminate called after throwing an instance of 'Rsyn::NetAlreadyExistsException'
  what():  Net 'vdd' already exists.
Aborted (core dumped)

Hi, @oharboe.
We do not have support for nets and special nets with the same name.
We also opened your LEF/DEF with Innovus, and it return some warnings and error messages.
Please, check the attached file.
Thanks.
invs.log

Hi, @oharboe.
We do not have support for nets and special nets with the same name.
We also opened your LEF/DEF with Innovus, and it return some warnings and error messages.
Please, check the attached file.

Thanks! the LEF/DEF files are from qflow gscl45nm tech and LRU.v.
@RTimothyEdwards The segfault in FRlefdef is fixed. What do you make of the remaining issues identified above?

Thanks.
invs.log

There are stub nets (with non-default width) in SPECIALNETS which was a limitation of the version of DEF I started with.  I now know of some other ways to add these bits of geometry into the NETS section compatible with DEF 5.7 or 5.8, and I will get around to doing that sometime.
However, this one is different. . . it is where a power supply is also a net.  If you have routed your power supply, then it is in the SPECIALNETS section.  But if you also have, say, only one flop type of DFFSR in your standard cell set, then some of the S and R pins are tied to the power rails.  They have to be routed, so they are NETS. . .  I guess in theory they could be put under SPECIALNETS.  But there is nothing in the DEF spec that says that a net cannot appear in both NETS and SPECIALNETS.  Nets may appear multiple times in either section, and there can be multiple NETS and SPECIALNETS sections.
As far as the Innovus warnings/errors:  I do not know what is a "generated pitch" is, but. . . you are presenting an already-routed DEF file to the router?
There is an apparent disagreement of scale somewhere.  I will see what I can do to figure out where it comes from.  One thing that pops out at me is the off-grid errors, which look like they are all due to negative numbers being rounded the wrong way (-759 instead of -780).
Qflow/magic do not use the TRACKS statement.  From the Innovus messages I just learned something about how TRACKS are parsed by commercial tools, I guess.  On the other hand, this would have no impact on, say, GDS output.  If I ever have such a mix and match environment in qflow that I would be passing a placed layout from graywolf to FastRoute4 for routing, then I'll make sure that the TRACKS is understood by FastRoute4.  I couldn't care less what Innovus thinks of it.
---Tim

@RTimothyEdwards  I wanted to take FRlefdef for a spin, so I took the output from "qflow place" and gave it to FRlefdef.  I now see that LRU_unroute.def exists, so I tried that too. Much the same result:
# FastRoute4-lefdef/FRlefdef  --no-gui --script LRU.rsyn
[deleted]
Running generic reader...
Parsing LEF files...
WARNING: Unsupported INOUT direction in data pin. gnd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. vdd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. gnd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. vdd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. gnd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. vdd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. gnd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. vdd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. gnd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
WARNING: Unsupported INOUT direction in data pin. vdd. Pin direction is replaced to OUTPUT [LEF CONTROL PARSER]
Parsing LEF files... Done (runtime: 0.01005 seconds memory: +2 MB)
Parsing DEF files...
WARNING: PIN gnd doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN vdd doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN clock doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN io_accessed[1] doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN io_accessed[0] doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN io_enable doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN io_leastRecentlyUsed[1] doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN io_leastRecentlyUsed[0] doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN io_pageEnable_0 doesn't have direction. Setting UNKNOWN_DIRECTION
WARNING: PIN io_pageEnable_1 doesn't have direction. Setting UNKNOWN_DIRECTION
Omitting further warnings for pin with unknown direction
Parsing DEF files... Done (runtime: 0.033217 seconds memory: +3 MB)
Populating the design...
terminate called after throwing an instance of 'Rsyn::NetAlreadyExistsException'
  what():  Net 'vdd' already exists.
Aborted (core dumped)

Hi, @oharboe. Please, check commit 9e9620db465be9e29f923a8b76802d97950ac818.  Retesting edge cases manually is pointless: after a dozen changes in the same area of the code, this will break again. I count dozens of if() statements in this change, it really needs a unit-test.

Hi, @oharboe.
We are closing this issue since load LEF/DEF files are under the responsibility of OpenDB.
Thanks.


Teach ad-hoc hooks line-parsing using regexes in YAML

Many non-ad-hoc (pre-commit) hooks seem just to get the error code and parse stdout using extract_messages with the right MESSAGE_REGEX and MESSAGE_TYPE_CATEGORIZER.
Ad-hoc hooks could be taught how to do that from the overcommit YAML config file using:

one regex for the message (a good default being the Emacs format)
one optional regex to test whether the message is a warning or an error ("warning:" seems pretty common)
maybe one optional regex to prefilter lines (empty lines, non-standard line, etc.), and flags to capture stdout and/or stderr, if we really need or want to handle more cases

Of course I guess in the end it all boils down to whether one prefers Ruby to regexes! :wink:
Anyway this might still be a good alternative for non-Ruby programmers to easily contribute hooks, and a good way to write less code (although I am not sure yet how tests could be written).
Thoughts?

Supportive of reducing the friction to integration a separate executable/script with Overcommits line handling functionality. Pull request with tests welcome!

OK, thanks for confirming!
Another question: is there a good reason why built-in hooks could not "be ad-hoc" like plugin hooks?
If there is no particular reason I'd like to change that too: it would make the new ad-hoc code easier to test: in the same PR one could change some built-in hooks to have an ad-hoc implementation, relying on the corresponding existing hook specs for (regression) testing.
(In that case probably all 3 hook_loader/base.rb, built_in_hook_loader.rb, and  plugin_hook_loader.rb would need changing.)
Also doing the above would add some test coverage for the ad-hoc code which does not look covered at all at the moment.
As regards more targeted unit testing I cannot find an existing unit test which exercise the class(es) I want to modify: only cli_spec.rb tests HookRunner, which itself uses the hook loader class(es) I would like to test.
Ideally one could reuse the existing hooks' spec code, somehow only override the overcommit configuration with ad-hoc hook definitions for a few hooks and synthetize new spec tests from that, but my actual rspec skills are much lower than my hand-waving ones here... :wink:
So would only indirect testing as outlined above be fine?

I could see many built-in hooks converted to the ad hoc format, yes. I haven't considered the implications too deeply, however, but would be open to a proposal.
Perhaps we can reduce complexity while still bringing value by decoupling of rewriting existing hooks from the adding of support for built-in hooks to use an ad hoc format.

See https://github.com/sds/overcommit/pull/757!


build: correct dependencies for Windows

When building Foundation, ensure that we build CoreFoundationResources
as we need to incorporate the build artifacts.

@swift-ci please test


added commenting

also has editing post title and caption, liking comments

this code is hosted at:
https://photo-sharing-network.herokuapp.com/


Example stuck on loader

I'm able to get a normal react-native project running, but when I attempt to load the example project Xcode escapes and highlights line 16 on main.m.

2015-09-06 19:29:30.236 RCTYouTubeExample[85809:9457907] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSMutableDictionary addEntriesFromDictionary:]: dictionary argument is not an NSDictionary'

This is probably because I updated the library to support RN 0.10, but the example is still using 0.9.


Mixer volume resets after restart

The windows audio mixer volume resets after you restart the program. I use the windows audio mixer a lot and it is very loud every time I start it

Won't fix, instead you can alter the "Master Volume" setting located under Options->Settings->Audio.


[Bug]: Date picker input value formatting inconsistently.

Components Version
0.6.0
Which package type are you using?
Unbundled
What type of bug is this?
Rendering Error
Test Case/Reproduction
No response
Description
When selecting a date on the Date Picker component there appears to be a inconsistency with how the value is formatted.
This was simulated in a app that leverages Omni-components.
One date picker input had the value formatted to display as
May 16, 2023
19 May 2023
Check the screenshot below for reference

Note this issue still requires some investigation to confirm or pin point the the correct use case to simulate this issue.
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I have searched for existing issues and to the best of my knowledge this is not a duplicate

To replicate the issue select a date on the date picker, once selected. Open the date picker and select the exact same date again.


fix required in display of @n of

The number of stanza 1 should be placed in the same position as tjhe number of stanza 2 in the example below:

I don't see any issue

could it be a browser issue? if I view on firefox, the number "1" is placed on the next line, as in the example above.
if I view on Chrome, the display of the stanza is like this, with irregular arrangement of <l>s:

I also notice varying behavior between Firefox and Chrome for the <listWit>.
Firefox

Chrome

It should be good for both points now


Huge memory leak after installing python package via requirements file

Type: Bug
Steps
Have the following open in vscode preview:

file explorer, python jupyter notebook, pdf in pdf viewer extension, power terminals, several background tabs
In an integrated powershell terminal:
activate local python 3.11 environment (which has several packages installed)
use pip install -r requirements.txt to update packages that are supposed to be added (I believe it was only seaborn and it's dependencies) (I'll put the actual file below)

Expected result
Python package is installed and ready to be used.
Actual result
Something went wrong and fills up the ram completely. The whole system is in a degraded state where the mouse even barely moves and no windows can be manipulated. The task manager even falls back to a minimal mode with other font and can't act. He does however show 100% ram and Disk1 usage.
Since the task manager is not correctly responding and can't end the task the window had to be closed normally. Which took around 10 minutes to complete this action.
As soon as the vscode window was closed, ram usage dropped 15 gb to a normal level. After some more time and disk1 usage, the system went back to normal.
I don't know if this is a problem with pip/python, the python extension or vscode itself, but I figured I'll report this anyways.
Specific information
Here is the requirements.txt I used for the pip command: requirements.txt
Packages actually installed:
Installing collected packages: pyparsing, Pillow, kiwisolver, fonttools, cycler, contourpy, matplotlib, seaborn
Successfully installed Pillow-9.5.0 contourpy-1.0.7 cycler-0.11.0 fonttools-4.39.4 kiwisolver-1.4.4 matplotlib-3.7.1 pyparsing-3.0.9 seaborn-0.12.2

The enormous ram usage start right after the installation finished. It might have been something regarding me typing in the jupyter notebook. Maybe parsing the import statement of seaborn.
Side note: after reopening, vscode correctly restored everything, including the perviously openend files, their changes and terminal history.
 When you say "Side note: after reopening, vscode correctly restored everything",
are you still getting the large memory leak?

Hi, what I meant with that was: After I closed vscode and then reopenend it, it just ran as normal afterwards and I could use the installed packages. Memory usage was normal and everything functioned as it should.
I also could not reproduce the issue so far and it ran without issues since the report.

I am glad that you are not experiencing the problem anymore! Please let me know if you happen to experience this problem again. Thank you.

This problem happens all the time on MacOS. No matter what python package gets installed (via pip) the memory usage of pylance keeps climbing forcing a restart. While OP had issues with first time installation (requirements.txt) I can confirm that this happens even when installing a single package.
What I did notice was that this problem only happens when packages are installed from within the integrated terminal.
Along with pylance extension, a Code Helper (Renderer) also ends up with a lot of memory.

@vishalovercome please report that issue to Pylance (there's a Pylance: report issue command in VS Code).


Help on a similar project

Hey Jamie,
I've found we've been working on similar example implementations recently and was wondering you would want to collaborate or even have a look at an example I'm working on which is a peer-to-peer audio example where the audio buffer is modified through a worklet in Rust -> WASM. https://github.com/jacksongoode/decay It's super simple where the audio should just get processed as an octave lower on the receiving end.
I was wondering if you've gotten further than me and are actually processing audio through a WASM worker. I've taken the route of using the FreeQueue ring buffer which I feel like abstracts enough away to get working. I found this blog able to explain at a high level what should be happening with allocating memory in and out of two buffers.
But mostly just curious if you'd be able to provide some pointers in the right direction. I'm using wasm-webpack but maybe there's still some core incompatibility with AudioWorklets there.

Hey @jacksongoode  - thanks for reaching out, sounds like a cool project! Keen to help/collaborate if anything I've tinkered on here may be useful.
I've succeeded in creating an AudioWorkletNode and accompanying AudioWorkletProcessor that runs DSP in WASM compiled from Rust.
I first got an example working of just an infinite-looping sound file with some control over playback rate and then got distracted turning it into more of a granular synthesis patch (I plan on rescuing some of the more reusable bits from it at some point). (with lots of help from some things listed here, particularly this).
Thanks for the links - I hadn't come across those before but will take a look (wasm memory is still pretty opaque to me tbh, I'm sure I'll learn more here).
I've been meaning to document some learnings + failed experiments more meaningfully but in lieu of that here are a few stumbling blocks I hit.
Hope its helpful - let me know if I can help or share more details!
wasm-pack

As far as I know, wasm-pack doesn't have a compile target that works in an AudioWorklet context (where browser APIs like fetch, URL, etc... are not available)

so any init/initSync glue from wasm-pack wouldn't work
This part of this blog series shows an approach that involves slicing some of the wasm-pack generated JS into the AudioWorkletProcessor which is a bit precarious to maintain
this example from the wasm-bindgen book seemed promising too but relies on unstable cargo features that I didn't want to introduce

So I resorted to the same technique used in an earlier part of the blog series above:

load the wasm binary from the main JS thread and send it over to the AudioWorkletProcessor via a post message (this async func)
AudioWorkletProcessor instantiates the wasm module here

I hadn't seen that blog you shared before (it would have been helpful!). But I think they get around this problem by instructing emscripten to output wasm inline and b64 encoded in just one JS file via -s SINGLE_FILE=1 (which presumably can run fine ootb in an audio worklet context).
Memory

The next hurdle was getting memory management working to pass audio blocks between JS and WASM

this is where the ruffbox example helped a ton
I followed a similar pattern:

In Rust, a few alloc functions exposed, eg. here
And invoked from JS in the AudioWorkletProcessor here

Note: the README of the ruffbox repo mentions something curious I don't really understand but kind of take at face value for now:

A challenge here was to provide reliable buffer allocation. Somehow the buffers get neutered easily. Observation: the order of allocation seems important. First, allocate the sample buffers, then allocate the output buffers.

I have vague recollection of facing some issue with sound prior to moving all alloc calls into one function with a deterministic order.
I suspect I could be handling memory more intelligently/safely here (if nothing more than just coupling Float32Array's and their rust memory references together) but still pretty new to this@
this repo
Here's a bit more info on this repo in case it helps to make the code a bit more clear. Apologies for all the junk, I can probably clean some of it up this weekend:

the root of the project is an npm module that is intended to be a portable rust/wasm AudioWorkletNode

I wanted it to be a simple npm install for other JS projects to import this module so the wasm + worklet needed to be bundled too
presently it exposes a new AudioWorkletNode (GranularNode)
public/rust_wasm.wasm and public/worklet.js get bundled as well as they must be loaded statically

GranularNode gets reference to their paths via URL(...).href

rust-wasm - the rust crate

built via cargo build --target wasm32-unknown-unknown (not with wasm-pack as noted above)
please pardon the gore - I'm pretty new to rust :sweat_smile:

demo
a small vite vanilla-ts page for testing things (currently binds an x-y grid and a midi device to control granular synthesis over a sound file.)
seems to be missing a dependency in package.json but it should import ../ (the npm module at the root of the repo)

How I set up/run/develop here roughly:
npm link
cd demo
npm link wasm-audio-worklet # the name of the npm package at the root

# copy a sound file for the demo app (hard-coded as `sound-file.wav` for now...)
cp /path/to/some/soundfile.wav ./public/sound-file.wav

cd ../
# the repo root `package.json` shows all the other build steps (nothing fancy here)
npm run build

# the built demo app should now be in `demo/dist`
cd demo/dist
python -m http.server

@jacksongoode FYI I've done some house keeping on main which should make this a bit more legible:

added an MIT license
cleanup of some junk: unused code, deps, comments, unnecessary build deps
converted the root module to TypeScript
moved the granular synthesis stuff elsewhere (granular-synth branch) - the Rust/wasm portion now is just doing basic infinitely-looped sample playback (the janky Rust is hopefully a bit less janky)

Thank you so much for the notes. I'm going to go through and attempt to reflect on these!


Darwin API support for OTA firmware update

Problem
Darwin API does not support firmware update right now, needs to.

when Darwin API will support firmware update?

The following are some PRs that track support for Darwin API: #20295 #20516 #20517
There is still some bits missing related to exposing BDX which is being added soon.

hello，any updates？

#21161 should fix this issue.

@vivien-apple Also added https://github.com/project-chip/connectedhomeip/pull/21235

Resolved


A possible performance issue when returning to the previous page

Describe your problem:
I'm really not sure if the bug is in Flet_Navigator. I just want you to help me think about the source of the problem.
The system performs Kanban control of work orders
My page structure:
Home - Login/pawwword. It is only assessed when we enter the system.
Page1 - Entry page containing a Datatable of work orders whose origin is a dataframe, which is assembled by importing values from the Postgres database.
Page2 - Another Datatable with customer data imported from a Postgres database
Page3 - Analytical data of the work order, containing two dataframes with little data.
The problem occurs when I return from page 2 or 3 to page 1
Currently the service order datatable has 180 records...
Reproducing the problem:
The code is too big. Maybe I could post a islice of it, if you want...
Media (optional):
Screenshot or video..
flet_navigator version, flet version, OS:
`Name: flet_navigator
Version: 2.6.5
Name: flet
Version: 0.21.1
Windows10 / Apache / Android
Additional:
...

I forgot to say that I call the database in every page, since I had problems with database disconnection, because I called it only at beginning of the script.

What problem occurs when changing pages? What problems with database disconnection?

The database connection is charged per use. So, if you don't use or close the app, the bank automatically disconnects. I'm using Replit (https://replit.com).
To avoid disconnection problem, I put  the database connection in every page, and it is working 100%. I didn't try to put the connection only in ft,page...

I'm almost sure that the performance problem is within the data load in the Dataframe and Datatable...
So I think there´s no relation with flet_navigator...
But that's not good news for me, (I know it is for you, Lol), because it could be a structural limitation of Flet.
I'll open a ticket there. Thanks a Lot for your help.
If you can, take a look at this issue of connecting to the database..

I'll take a look!


Hybrid policy tree prints different leaf labels than predicted leaf labels

Description of the bug
Hybrid policy tree grows redundant leaf-nodes where no training data falls into.  Also, node prediction returns non-leaf nodes.
Steps to reproduce
library(policytree)
set.seed(2)
n <- 25
p <- 5
d <- 2
X <- matrix(runif(n * p), n, p)
Y <- matrix(rnorm(n * d), n, d)
tree <- hybrid_policy_tree(X, Y)
tree
# policy_tree object
# Tree depth:  3
# Actions:  1 2
# Variable splits:
# (1) split_variable: X1  split_value: 0.405282
#   (2) split_variable: X2  split_value: 0.164642
#     (4) split_variable: X1  split_value: 0.225825
#       (6) * action: 1
#       (7) * action: 2
#     (5) split_variable: X2  split_value: 0.667226
#       (8) * action: 2
#       (9) * action: 1
#   (3) split_variable: X3  split_value: 0.613953
#     (10) split_variable: X3  split_value: 0.275701
#       (12) * action: 1
#       (13) * action: 2
#     (11) split_variable: X5  split_value: 0.453377
#       (14) * action: 1
#       (15) * action: 2
preds <- predict(tree, X, type = "node.id")
table(preds)
# 8  9 10 11 12 13 14 15
# 2  1  3  5  5  3  4  2

When predicting,

no training data falls into leaves 6 and 7
non-leaf nodes 10 and 11 are predicted

policytree version
> packageVersion("policytree")
[1] ‘1.2.0’

Thanks for reporting this @jarkki. Ideally there's a representation indexing bug somewhere which should only affect leaf id, point predictions should be correct per this test, I won't have time to look closer until a bit later. Thanks again.

So yes this was only hybrid policytree using different terminal node labels than what was printed. If you only care about subgroups, preds <- predict(tree, X, type = "node.id") will work correctly.
The printed label / predicted label mismatch is fixed in #153.

Thank you so much for fixing this! My use case was to represent the tree in a table format like

leaf.id
rules
CATE
N obs

Steps to build the table were

Predict leaves and calculate local CATE for each leaf
Travel the tree and gather all splitting rules that lead to a leaf
Join rules and CATE by leaf index

The leaf indices now match and this works as expected.
The library is really amazing, thanks for developing it!

Just a heads up @jarkki, I changed the fix to this in #156 by instead just renaming the hybrid tree's leaf id's s.t. they are level-first, which is the same as rest of policytree. Now policy_tree and hybrid_policy_tree will give you the same node "labels".


Support for license exceptions

SPDX has a syntax for license exceptions, looking like this:
 GPL-3.0 WITH Qt-GPL-exception-1.0

This is valid, but currently gets the warning "License should be a valid SPDX license expression" when using Yarn/npm.
From what I can tell, support for this will also mean needing to modify these repos too:

https://github.com/shinnn/get-spdx-license-ids
https://github.com/shinnn/spdx-license-ids

The current parser parses exceptions fine, but the Qt exception you're using was recently specified, and hasn't yet been added to the list.
I'll be publishing a patch release of the package spdx-exceptions shortly. That should fix the issue.
Please note that GPL-3.0 is now deprecated. The preferred alternatives are GPL-3.0-only and GPL-3.0-or-later.

Thanks, looks like I missed that.


Add truncateLastLine property

Setting truncateLastLine to YES truncates the last line of the attributedString property if it doesn't fit in numberOfLines
The truncation character takes it's style from the last character on the last line that fits.

Yeah, truncateLastLine was intended to override/supplement the UILabel behaviour as lineBreakMode currently only really works for single lines.
I'll have a play with regular labels to investigate how the other forms of line break mode work and see if I can them working for multiline labels too.

I've removed the truncateLastLine property and made the last line rendering mimic the default UILabel behaviour.
Interestingly, UILabel doesn't quite behave as the documentation describes. Regardless of the truncation mode chosen, it only ever truncates the last line.

This seems like another good use case for the Tests project I'm asking to be pulled.  We can create a sample showing the disparities with UILabel and work from there.

@PeteC, I've committed on my dev branch on my fork a few tests that demonstrate the lack of truncation support the way that UILabel handles it.
I'll try pulling in your changes above and see if I can't get anywhere.  If you have any more commits on it, please let me know.

Would love to have this functionality. Will it be integrated soon, or is the patch stable enough to apply in my codebase?


Delete NSX-T DHCP relay profiles

Leftovers should delete NSX-T DHCP relay profiles.

The sequence seems to be:

Create a server profile
Create a server with that server profile
Create a relay profile with that server
Create a relay service that binds to that relay profile

Is this cascading in such a way that you want to do the following in this order:

Delete the relay service and binding
Delete the relay profile
Delete the server
Delete the server profile?

For now, will only delete resources created by github.com/pivotal/paving
Gonna close this.