Invariant Violation when working with hash routes in isomorphic app

I have an isomorphic React app and I'm using react-mini-router in an independent app that is meant for client side only rendering. The problem is that apparently react-mini-router isn't aware on server side that it is being used like this and thus it always renders the index page server side, thus leading to Invariant Violation because client renders different path.
My current solution to this problem is uglyish:
    getInitialState: function() {
        return { clientRenderingIsSafeNow: false }
    },

    componentDidMount: function() {
        this.setState({ clientRenderingIsSafeNow: true })
    },

    render: function() {
        // server side doesn't know our hash path so we render wrong stuff in client and get Invariant Violation
        // so we render empty div in both server and client until componentDidMount, which happens only in client
        if (!this.state.clientRenderingIsSafeNow) {
            return <div />
        }
        return this.renderCurrentRoute()
    },

Is there a better way?

Take a look at the example app, it does client/server rendering. Specifically look at the renderApp method in server.js: https://github.com/larrymyers/react-mini-router/blob/master/example/server.js
If you're going to do an isomorphic app you need to be able to bootstrap your root Component with the same data on the client and server dependent on the current path.

That isn't my use case; for now I can't access all the information server side. So I only have client side rendering in the part of the app I'm using react-mini-router in.
But now that I've thought about this I guess the above code is the only even remotely good solution to this problem. The only other way to fix this issue would be to explicitly tell react-mini-router that it is only needed on client side so that it would do the above kind of empty rendering automatically.


ceph-config: don't notify all handlers

Because ceph-config role is used to by multiple plays (mons, osds,
etc...) we need to notify the handlers when the ceph configuration
change.
Currently we are notifying all handlers : mons, osds, mdss rgws, rgws,
mgrs and rbdmirrors. The handler code isn't executed because we're
using some condition on the group_name but the ansible handler
notification process could be slow when evaluation the tasks.
To avoid this we could notify only the handler related to the ansible
group name (like mons).
Before:
NOTIFIED HANDLER ceph-handler : mons handler for osd-45
NOTIFIED HANDLER ceph-handler : osds handler for osd-45
NOTIFIED HANDLER ceph-handler : mdss handler for osd-45
NOTIFIED HANDLER ceph-handler : rgws handler for osd-45
NOTIFIED HANDLER ceph-handler : mgrs handler for osd-45
NOTIFIED HANDLER ceph-handler : rbdmirrors handler for osd-45
NOTIFIED HANDLER ceph-handler : rbd-target-api and rbd-target-gw handler for osd-45

After:
NOTIFIED HANDLER ceph-handler : restart ceph osds for osd-45

If multiple daemons are collocated on the same host then we will notify
each handler
NOTIFIED HANDLER ceph-handler : restart ceph mgrs for mon-2
NOTIFIED HANDLER ceph-handler : restart ceph mons for mon-2

This patch removes the handler listen because we now have only one task
to notify and because the listen doens't support variables we can
fallback to the task name which does.
Signed-off-by: Dimitri Savineau<EMAIL_ADDRESS>

jenkins test centos-container-all_daemons

jenkins test centos-non_container-all_daemons

jenkins test centos-container-all_daemons

jenkins test centos-non_container-all_daemons

jenkins test centos-container-collocation

jenkins test centos-non_container-collocation

jenkins test centos-non_container-collocation

@guits I need to take a look to the update playbook because there's the new active_mds and standby_mds groups that breaks the feature.


Refactor isElement component selector warning to be an error

Code example
Here's an example of how this warning works now:
https://codesandbox.io/s/iselement-warning-example-32xrd
Warning

Suggestion
I would like to suggest to make this an error to prevent adding styles that won't work.
#3032

This is a breaking change so it’ll have to wait for v6. Thanks!
On Fri, Feb 21, 2020 at 1:32 PM Juan Salvatore<EMAIL_ADDRESS>wrote:

Code example
Here's an example of how this warning works now:
https://codesandbox.io/s/iselement-warning-example-32xrd
Warning
[image: image]
https://user-images.githubusercontent.com/11010928/75061288-32716380-54bf-11ea-94c5-d311abe7ba48.png
Suggestion
I would like to suggest to make this an error to prevent adding styles
that won't work.
#3032 https://github.com/styled-components/styled-components/issues/3032
You can view, comment on, or merge this pull request online at:
https://github.com/styled-components/styled-components/pull/3033
Commit Summary

Refactor isElement component selector warning to be an error

File Changes

M
packages/benchmarks/src/implementations/styled-components-v5/styled-components-v5.esm.js
https://github.com/styled-components/styled-components/pull/3033/files#diff-0
(2)

Patch Links:

https://github.com/styled-components/styled-components/pull/3033.patch

https://github.com/styled-components/styled-components/pull/3033.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/styled-components/styled-components/pull/3033?email_source=notifications&email_token=AAELFVTL3PWPNXQJU7CPHRTREAM4BA5CNFSM4KZIEVT2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPMAPIQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAELFVTLSRFM6SILSCJQHTTREAM4BANCNFSM4KZIEVTQ
.


XVideos HTTP 404 when downloading m3u8 information

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I'm running yt-dlp version 2<IP_ADDRESS>. (update instructions)
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Description
Download from XVideo using the latest patch works, but some url doesn't. Like this one in particular.
Verbose log
[debug] Command-line config: ['-o', './video/%(title)s.%(ext)s', 'http://www.xvideos.com/video65982001/what_s_her_name', '--retries', 'infinite', '--fragment-retries', 'infinite', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, err UTF-8, pref UTF-8
[debug] yt-dlp version 2<IP_ADDRESS>
[debug] Lazy loading extractors is disabled
[debug] Python version 3.6.9 (CPython 64bit) - Linux-4.19.128-microsoft-standard-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.8, ffprobe 3.4.8
[debug] Optional libraries: Cryptodome, keyring, mutagen, sqlite, websockets
[debug] Proxy map: {}
[debug] [XVideos] Extracting URL: http://www.xvideos.com/video65982001/what_s_her_name
[XVideos] 65982001: Downloading webpage
[XVideos] 65982001: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 65982001: Downloading 1 format(s): hls-720p
[debug] Invoking downloader on "https://hls-hw.xvideos-cdn.com/videos_new/hls/16/af/cf/16afcfef69dcdd74d15d36d570540b5a/hls-720p-64652.m3u8?e=1638110135&l=0&h=e190584c5702efab90109c8c36a8cf40"
[hlsnative] Downloading m3u8 manifest
ERROR: unable to download video data: HTTP Error 404: Not Found
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/yt_dlp/YoutubeDL.py", line 2876, in process_info
    success, real_download = self.dl(temp_filename, info_dict)
  File "/usr/local/lib/python3.6/dist-packages/yt_dlp/YoutubeDL.py", line 2597, in dl
    return fd.download(name, new_info, subtitle)
  File "/usr/local/lib/python3.6/dist-packages/yt_dlp/downloader/common.py", line 399, in download
    ret = self.real_download(filename, info_dict)
  File "/usr/local/lib/python3.6/dist-packages/yt_dlp/downloader/hls.py", line 68, in real_download
    urlh = self.ydl.urlopen(self._prepare_url(info_dict, man_url))
  File "/usr/local/lib/python3.6/dist-packages/yt_dlp/YoutubeDL.py", line 3319, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

Duplicate of #1811

Does not work for a few weeks, a fix would be appreciated.

--check-formats works as intended (skips the erroring formats)
And this seems to be a server issue too, as specifically setting 720p on that video also results in an loading error on the site

@MinePlayersPE, --check-formats does not work on my end, e.g.
$ yt-dlp --check-formats --verbose https://www.xvideos.com/video27173585/pornvideosdaily.top_-_ariana_marie_lets_you_cum_on_her_[debug] Command-line config: ['--check-formats', '--verbose', 'https://www.xvideos.com/video27173585/pornvideosdaily.top_-_ariana_marie_lets_you_cum_on_her_lovely_face']
[debug] Encodings: locale cp1251, fs utf-8, out utf-8 (No ANSI), err utf-8 (No ANSI), pref cp1251
[debug] yt-dlp version 2<IP_ADDRESS> (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg n4.4-19-g8d172d9409 (setts), ffprobe n4.3.2-ffmpeg-windows-build-helpers
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
[debug] [XVideos] Extracting URL: https://www.xvideos.com/video27173585/pornvideosdaily.top_-_ariana_marie_lets_you_cum_on_her_lovely_face [XVideos] 27173585: Downloading webpage
ERROR: [XVideos] 27173585: Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output. (caused by <HTTPError 404: 'Not Found'>); please report this issue on  https://github.com/yt-dlp/yt-dlp . Make sure you are using the latest version; type  yt-dlp -U  to update. Be sure to call yt-dlp with the --verbose flag and include its complete output.
  File "yt_dlp\extractor\common.py", line 713, in _request_webpage
  File "yt_dlp\YoutubeDL.py", line 3295, in urlopen
  File "urllib\request.py", line 531, in open
  File "urllib\request.py", line 640, in http_response
  File "urllib\request.py", line 569, in error
  File "urllib\request.py", line 502, in _call_chain
  File "urllib\request.py", line 649, in http_error_default

@sergeevabc Update your yt-dlp

@sergeevabc This issue is not the same as https://github.com/yt-dlp/yt-dlp/issues/1788

@MinePlayersPE  Can you confirm that the issue exists only for formats that are broken in browser? If so, ig this issue can be closed

can confirm that updating to the latest version fixes this issue

@pukkandan
Different issue from the m3u8 404:
ERROR: Giving up after 10 fragment retries
	C:\Users\smiggy-smoll>yt-dlp --verbose https://www.xvideos.com/video65513071/let_s_put_a_finger_in_her_pussy_
	[debug] Command-line config: ['--verbose', 'https://www.xvideos.com/video65513071/let_s_put_a_finger_in_her_pussy_']
	[debug] User config file: C:\Users\smiggy-smoll\AppData\Roaming\yt-dlp\config.txt
	[debug] Encodings: locale cp1252, fs utf-8, out utf-8, err utf-8, pref cp1252
	[debug] yt-dlp version 2021.12.27 [6223f67] (win_exe)
	[debug] Python version 3.8.10 (CPython 64bit)
	[debug] exe versions: ffmpeg 4.4-essentials_build-www.gyan.dev (setts), ffprobe 4.4-essentials_build-www.gyan.dev
	[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
	[debug] Proxy map: {}
	[debug] [XVideos] Extracting URL: https://www.xvideos.com/video65513071/let_s_put_a_finger_in_her_pussy_
	[XVideos] 65513071: Downloading webpage
	[XVideos] 65513071: Downloading m3u8 information
	[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_a
	pprox, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
	[debug] Default format spec: bestvideo*+bestaudio/best
	[info] 65513071: Downloading 1 format(s): hls-1080p
	[debug] Invoking downloader on "https://cdn77-vid.xvideos-cdn.com/xSPg5XZJHAp7u8iaUw4fLg==,1641696028/videos_new/hls/ed/
	ff/f0/edfff0551ec19f8ade3deee6ec3df776/hls-1080p-77517.m3u8"
	[hlsnative] Downloading m3u8 manifest
	[hlsnative] Total fragments: 55
	[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment 1 (attempt 1 of 10) ...
	[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment 1 (attempt 2 of 10) ...
	[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment 1 (attempt 3 of 10) ...
	[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment 1 (attempt 4 of 10) ...
	[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment 1 (attempt 5 of 10) ...
	[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment 1 (attempt 6 of 10) ...
	[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment 1 (attempt 7 of 10) ...
	[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment 1 (attempt 8 of 10) ...
	[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment 1 (attempt 9 of 10) ...
	[download] Got server HTTP error: HTTP Error 404: Not Found. Retrying fragment 1 (attempt 10 of 10) ...
	ERROR: Giving up after 10 fragment retries
	  File "yt_dlp\__main__.py", line 19, in <module>
	  File "yt_dlp\__init__.py", line 842, in main
	  File "yt_dlp\__init__.py", line 832, in _real_main
	  File "yt_dlp\YoutubeDL.py", line 3113, in download
	  File "yt_dlp\YoutubeDL.py", line 3086, in wrapper
	  File "yt_dlp\YoutubeDL.py", line 1344, in extract_info
	  File "yt_dlp\YoutubeDL.py", line 1353, in wrapper
	  File "yt_dlp\YoutubeDL.py", line 1437, in __extract_info
	  File "yt_dlp\YoutubeDL.py", line 1489, in process_ie_result
	  File "yt_dlp\YoutubeDL.py", line 2551, in process_video_result
	  File "yt_dlp\YoutubeDL.py", line 2991, in process_info
	  File "yt_dlp\YoutubeDL.py", line 2701, in dl
	  File "yt_dlp\downloader\common.py", line 440, in download
	  File "yt_dlp\downloader\hls.py", line 358, in real_download
	  File "yt_dlp\downloader\fragment.py", line 515, in download_and_append_fragments
	  File "yt_dlp\downloader\fragment.py", line 473, in download_fragment
	  File "yt_dlp\downloader\common.py", line 177, in report_error
	  File "yt_dlp\YoutubeDL.py", line 912, in report_error
	  File "yt_dlp\YoutubeDL.py", line 842, in trouble

	ERROR: fragment 1 not found, unable to continue
	  File "yt_dlp\__main__.py", line 19, in <module>
	  File "yt_dlp\__init__.py", line 842, in main
	  File "yt_dlp\__init__.py", line 832, in _real_main
	  File "yt_dlp\YoutubeDL.py", line 3113, in download
	  File "yt_dlp\YoutubeDL.py", line 3086, in wrapper
	  File "yt_dlp\YoutubeDL.py", line 1344, in extract_info
	  File "yt_dlp\YoutubeDL.py", line 1353, in wrapper
	  File "yt_dlp\YoutubeDL.py", line 1437, in __extract_info
	  File "yt_dlp\YoutubeDL.py", line 1489, in process_ie_result
	  File "yt_dlp\YoutubeDL.py", line 2551, in process_video_result
	  File "yt_dlp\YoutubeDL.py", line 2991, in process_info
	  File "yt_dlp\YoutubeDL.py", line 2701, in dl
	  File "yt_dlp\downloader\common.py", line 440, in download
	  File "yt_dlp\downloader\hls.py", line 358, in real_download
	  File "yt_dlp\downloader\fragment.py", line 516, in download_and_append_fragments
	  File "yt_dlp\downloader\fragment.py", line 484, in append_fragment
	  File "yt_dlp\downloader\common.py", line 177, in report_error
	  File "yt_dlp\YoutubeDL.py", line 912, in report_error
	  File "yt_dlp\YoutubeDL.py", line 842, in trouble

@dl21g5 --check-formats works, right?

@MinePlayersPE That fixed it. Didn't know about that command. It was automatically downloading the 1080p stream even though it was unavailable. Thanks.


Limit exceeded, question!

Mine happened the same as this statement
https://github.com/hitrov/oci-arm-host-capacity/issues/35
My question is:
is it possible to start the instance for this?

I believe you should enquire Oracle for this sake


impossible to write timestamps to status objects without causing controller to loop

A small diff to a controller like:
diff --git src/manager.rs src/manager.rs
index 544b495..277f25c 100644
--- src/manager.rs
+++ src/manager.rs
@@ -26,9 +26,10 @@ pub struct FooSpec {
     info: String,
 }

-#[derive(Deserialize, Serialize, Clone, Debug, Default, JsonSchema)]
+#[derive(Deserialize, Serialize, Clone, Debug, JsonSchema)]
 pub struct FooStatus {
     is_bad: bool,
+    last_updated: Option<DateTime<Utc>>,
 }

 // Context for our reconciler
@@ -54,6 +55,7 @@ async fn reconcile(foo: Foo, ctx: Context<Data>) -> Result<ReconcilerAction, Err
     let new_status = serde_json::to_vec(&json!({
         "status": FooStatus {
             is_bad: foo.spec.info.contains("bad"),
+            last_updated: Some(Utc::now()),
         }
     }))
     .context(SerializationFailed)?;

Causes the controller to spin repeatedly:
Dec 23 13:46:51.991  INFO controller::manager: Reconciled (ObjectRef { kind: (), name: "bad", namespace: Some("default") }, ReconcilerAction { requeue_after: Some(1800s) })
Dec 23 13:46:51.997  INFO controller::manager: Reconciled (ObjectRef { kind: (), name: "bad", namespace: Some("default") }, ReconcilerAction { requeue_after: Some(1800s) })
Dec 23 13:46:52.003  INFO controller::manager: Reconciled (ObjectRef { kind: (), name: "bad", namespace: Some("default") }, ReconcilerAction { requeue_after: Some(1800s) })
Dec 23 13:46:52.008  INFO controller::manager: Reconciled (ObjectRef { kind: (), name: "bad", namespace: Some("default") }, ReconcilerAction { requeue_after: Some(1800s) })
Dec 23 13:46:52.014  INFO controller::manager: Reconciled (ObjectRef { kind: (), name: "bad", namespace: Some("default") }, ReconcilerAction { requeue_after: Some(1800s) })
Dec 23 13:46:52.020  INFO controller::manager: Reconciled (ObjectRef { kind: (), name: "bad", namespace: Some("default") }, ReconcilerAction { requeue_after: Some(1800s) })
Dec 23 13:46:52.027  INFO controller::manager: Reconciled (ObjectRef { kind: (), name: "bad", namespace: Some("default") }, ReconcilerAction { requeue_after: Some(1800s) })
Dec 23 13:46:52.032  INFO controller::manager: Reconciled (ObjectRef { kind: (), name: "bad", namespace: Some("default") }, ReconcilerAction { requeue_after: Some(1800s) })
Dec 23 13:46:52.037  INFO controller::manager: Reconciled (ObjectRef { kind: (), name: "bad", namespace: Some("default") }, ReconcilerAction { requeue_after: Some(1800s) })
Dec 23 13:46:52.056  INFO controller::manager: Reconciled (ObjectRef { kind: (), name: "bad", namespace: Some("default") }, ReconcilerAction { requeue_after: Some(1800s) })
Dec 23 13:46:52.074  INFO controller::manager: Reconciled (ObjectRef { kind: (), name: "bad", namespace: Some("default") }, ReconcilerAction { requeue_after: Some(1800s) })
Dec 23 13:46:52.086  INFO controller::manager: Reconciled (ObjectRef { kind: (), name: "bad", namespace: Some("default") }, ReconcilerAction { requeue_after: Some(1800s) })
Dec 23 13:46:52.100  INFO controller::manager: Reconciled (ObjectRef { kind: (), name: "bad", namespace: Some("default") }, ReconcilerAction { requeue_after: Some(1800s) })
Dec 23 13:46:52.113  INFO controller::manager: Reconciled (ObjectRef { kind: (), name: "bad", namespace: Some("default") }, ReconcilerAction { requeue_after: Some(1800s) })

Related to #318 and #279. It was slightly annoying then, but now it's actually preventing things, so we have to tackle it one way or another.

On one hand, it could be argued that the client shouldn't send no-op patches to the apiserver anyway. On the other, doing that kind of diffing locally could be pretty error-prone..
Then again, any local filtering mechanism would need to implement the same logic anyway.

On one hand, it could be argued that the client shouldn't send no-op patches to the apiserver anyway. On the other, doing that kind of diffing locally could be pretty error-prone..

Oh, that is a good point. Yeah, this probably isn't a bug.
Sorry, just second guessing everything before the release :sweat_smile:

hm, then again, doing a noop update to the server is kind of useful to a controller to indicate that work has been done and the thing isn't dead...

Closing in favour of #279 - will explain there.


Replace core_id and cluster_id parameters in favour of a single hartid parameter

Ibex should allow system integrators to directly specify the hartid using whatever scheme makes most sense for their design. Currently core_id and cluster_id must be specified - this makes sense for the PULP use case, but will require some gymnastics for users who have a different hartid generation scheme.
[EDIT: "gymnastics" is hyperbolic given they're just concatenated - but you get my point. An integrator may also want a hartid that is greater than 10 bits in length]

I think your use of gymnastics is very much in line with my physical exercise routine :smile:


Handle CentralPackageVersions

CentralPackageVersions overrides our normal package version handling and right now this has to be patched.  We should have a more permanent fix for repos which use this tool.

Not an issue.  Being brought in as a text only prebuilt.


chore(main): release app 0.3.0

:robot: I have created a release beep boop
0.3.0 (2023-11-17)
Features

app: add json view (#28) (b43fefc)
app: implementing search bar (#26) (648b3bf)

Bug Fixes

app: remove core package from dependency (#30) (efa1fa8)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/FullStack-DevTool/FSDT/releases/tag/app-v0.3.0 :sunflower:


Formatting after changing Razor text editor options from "insert spaces" -> "keep tabs" can throw

System.Runtime.InteropServices.SEHException
  HResult=0x80004005
  Message=External component has thrown an exception.
  Source=<Cannot evaluate the exception source>
  StackTrace:
<Cannot evaluate the exception stack trace>

  This exception was originally thrown at this call stack:
    Microsoft.VisualStudio.LanguageServices.Implementation.Options.LanguageSettingsPersister.TryPersist(Microsoft.CodeAnalysis.Options.OptionKey, object)
    Microsoft.CodeAnalysis.Options.GlobalOptionService.PersistOption(System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Options.IOptionPersister>, Microsoft.CodeAnalysis.Options.OptionKey, object)
    Microsoft.CodeAnalysis.Options.GlobalOptionService.SetOptions(Microsoft.CodeAnalysis.Options.OptionSet)
    Microsoft.CodeAnalysis.Workspace.TryApplyChanges(Microsoft.CodeAnalysis.Solution, Microsoft.CodeAnalysis.Shared.Utilities.IProgressTracker)
    Microsoft.AspNetCore.Razor.LanguageServer.Formatting.FormattingContext.CSharpWorkspace.get() in FormattingContext.cs

@davidwengier / @allisonchou any ideas on why this could be happening? Based on the callstack my gut tells me it's trying to persist information even though this is being called in an adhocworkspace which seems odd.

I logged an AzDo issue for this ages ago, with the Editor team. I'll find it later

Looks like it's done the rounds.. I logged https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1424294 from which Oleg created https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1430140 and now its back on Roslyn. Seems like the solution is "switch to the UI thread, or wait for ", and if I know Roslyn, the latter will be the preferred path 😛

Thanks for the follow up @davidwengier! I guess for now we'll just have wait patiently and re-direct customer feedback when necessary

Closing this as a duplicate of devdiv.visualstudio.com/DevDiv/_workitems/edit/1430140 as there should be no follow up required from us once that bug is fixed.


Test refactor

Codecov Report

Merging #21 (a4442a4) into main (cf21ec2) will increase coverage by 37.10%.
The diff coverage is 63.15%.

@@             Coverage Diff             @@
##             main      #21       +/-   ##
===========================================
+ Coverage   26.34%   63.45%   +37.10%
===========================================
  Files          32       33        +1
  Lines         539      539
===========================================
+ Hits          142      342      +200
+ Misses        397      197      -200

Impacted Files
Coverage Δ

src/exception/store_exception.cpp
0.00% <0.00%> (ø)

src/model/order/order.h
100.00% <ø> (ø)

src/model/person/client/client.cpp
82.14% <ø> (ø)

src/model/person/client/client.h
100.00% <ø> (ø)

src/model/person/worker/worker.cpp
70.58% <ø> (ø)

src/model/person/worker/worker.h
100.00% <ø> (ø)

src/exception/product_exception.cpp
33.33% <20.00%> (+33.33%)
:arrow_up:

src/exception/date_exception.cpp
100.00% <100.00%> (ø)

src/exception/order_exception.cpp
70.00% <100.00%> (+60.00%)
:arrow_up:

src/exception/person_exception.cpp
55.55% <100.00%> (+33.33%)
:arrow_up:

... and 20 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 cf21ec2...a4442a4. Read the comment docs.


Prepare data dictionary for skips and poi data resources

Hi @n-raspi, thanks for sharing the data. I have prepared the structure for the data package to be updated. Currently working on a dev branch.
Could you please:

Add a concise one sentence description to each variable, staring with captial letter and ending with a period. No commas.

Option 1
-Download: https://github.com/openwashdata/wasteskipsblantyre/blob/dev/data-raw/dictionary.xlsx

Fill out locally
Upload and overwrite: https://github.com/openwashdata/wasteskipsblantyre/blob/dev/data-raw/dictionary.xlsx

Option 2

Clone the repo and and on dev branch, edit the XLSX

Done


TypeError: GaussianRasterizationSettings

Dear Authors,
We greatly appreciate your work, and we encountered an error while running your code strictly following the given instructions. We hope to receive your assistance in resolving this issue. The error message is as follows:
===================================
Optimizing initial velocity ...

[velocity] Simulation steps: 20
[velocity] Using substeps: 1
[velocity] Using views: ['d_2']
  [pcd] | num_points: 25744
  x: [0.2522614747285843, 0.7574655413627625]
  y: [0.023701246827840805, 0.5439990758895874]
  z: [0.2527327984571457, 0.7463521659374237]
[velocity] Using dt: 0.001
[velocity] Using eps: 6e-07
[velocity] Using clip bound: 0.1
[velocity] Using mask data: False
[velocity] Using pixel loss: l2
  0%|                                                                                | 0/200 [00:00<?, ?it/s]
Traceback (most recent call last):                                                                                | 0/200 [00:00<?, ?it/s]
  File "/home/refantasy/code/NeuMA/experiments/finetune.py", line 670, in <module>
    finetune(cfg)
  File "/home/refantasy/code/NeuMA/experiments/finetune.py", line 635, in finetune
    optimize_init_velocity(
  File "/home/refantasy/code/NeuMA/experiments/finetune.py", line 163, in optimize_init_velocity
    render = diff_rasterization(
  File "/home/refantasy/code/NeuMA/modules/tune/utils.py", line 345, in diff_rasterization
    rasterizer = get_rasterizer(
  File "/home/refantasy/code/NeuMA/modules/d3gs/gaussian_renderer/__init__.py", line 103, in get_rasterizer
    raster_settings = GaussianRasterizationSettings(
TypeError: GaussianRasterizationSettings.__new__() missing 1 required positional argument: 'antialiasing'

Thank you for your attention to this matter. We look forward to your guidance and support in resolving this issue.

Hi! Thank you for your interest in our work! As pointed out here (No. 2&3), the issue seems related to recent updates of gaussian-splatting. For now, you may follow the suggested modifications in that comment. There may be some updates to the code later.

Hi! Thank you for your interest in our work! As pointed out here (No. 2&3), the issue seems related to recent updates of gaussian-splatting. For now, you may follow the suggested modifications in that comment. There may be some updates to the code later.

Thank you for your patient answer. I have already resolved this issue.
I have another minor question regarding the configuration file for synthetic data experiments. We didn't find any information about kernels_path and mesh_path in the README file on your GitHub page. However, we downloaded the pre-trained files you provided and filled in the paths for the assets section. We are unsure if this is the correct approach.
file: finetune-bb.yaml
kernels_path: /home/refantasy/code/NeuMA/experiments/assets/bouncyball/kernels.ply
mesh_path: /home/refantasy/code/NeuMA/experiments/assets/bouncyball/mesh.ply

Thank you for your assistance in resolving this query. We look forward to your response.

Hi!
kernels_path and mesh_path are only required if experiments/assets does not contain the folder with the name $sim_data_name. Since you have downloaded our assets and put them in the right place, you do not need to modify those values. The script will use the stored assets to avoid processing them each time.
If you want to create new assets (with new $sim_data_name), then you need to specify these values. In our experiments, we use gaussian-splatting to get the reconstructed Gaussian kernels, and set kernels_path to the output file. We use gaussian-opacity-fields to get the surface mesh, and set mesh_path to the output file.
You may also refer to our code for asset preparation here for more details.

Thank you for your patient and detailed response. It has resolved my confusion. I will close this issue.


sounddevice.PortAudioError : Error opening Stream : Device unavailable [PaErrorCode -9985]

I am trying to run a python script on boot using a systemd service on a Raspberry Pi4. The python script runs fine via the terminal, but flags a few errors (see attached image) when run via systemd. The python script opens an audio stream using the sounddevice library.
I noticed that the device indexes are different when the python script is run via the terminal and via systemd. So I tried hardcoding the device index for the input stream, but that has not worked.
import sounddevice as sd
import numpy as np
import time
from pvrecorder import PvRecorder
import wave
import struct
import pydub
import requests
import uuid_utils as uuid

speaking_status = False
end = time.time() +10
start = time.time()
length = 0
timer = 0
Audio_file = "YOW.wav"
sound_threshold = 10
audio_timeout = 3
IATA_Code = "YOW"

devices = PvRecorder.get_available_devices()
print

for i in range(len(devices)):
    print("index : %d, device name: %s" % (i, devices[i]))

sd.default.device = 2,1
print("SoundDevice Indexes:" + str(sd.query_devices()))
#print("SoundDevice Default Device:" + str(sd.default()))

recorder = PvRecorder(device_index = 12, frame_length=512)
print("Selected device:" + recorder.selected_device)
audio = []

def print_sound(indata, outdata, frames, t, status):
    global start
    global end
    global length
    global timer
    global speaking_status
    global Audio_file
    global sound_threshold
    global audio_timeout
    i = 0

    volume_norm = np.linalg.norm(indata)*10
    #print(volume_norm)

    if (volume_norm > sound_threshold and speaking_status==False):
        print("Recording")
        start = time.time()
        speaking_status=True
        recorder.start()
    elif (volume_norm > sound_threshold and speaking_status==True):
        start = time.time()
        frame = recorder.read()
        audio.extend(frame)
        print("Volume:" + str(volume_norm))
    else:
        end = time.time()
    timer = end-start

    if (timer > audio_timeout and speaking_status==True):
        recorder.stop()
        speaking_status=False
        print("Stop Recording Audio")
        volume_norm = 0

        headers = {
        'Content-Type': 'application/json; charset=utf-8',
        }

        content_type = {
        'Content-Type': 'audio/mpeg',
        }

        json_data = {
            'query': {
                'filename': Audio_mp3,
            },
        }

        try:
            with open(Audio_mp3, "rb") as file_data:
                 print("Uploading Audio File to AWS S3 Bucket")
                 put_response = requests.put(received_upload_link, data=file_data, headers=content_type)
                 print("HTTP Response:" + str(put_response.status_code))
        except Exception as e:
                print("An exception occured:", e)

with sd.Stream(callback=print_sound):
    while True:
        sd.sleep(1000)

Is it possible that PvRecorder takes over the input device and therefore makes it unavailable?
Could you try it with an OutputStream instead of a Stream?

Issue was the input devices do not have the same device index when the python script is running in the terminal or when it is running with systemd. A few print statements showed the differences in device indexes. Another approach that worked for me was to get the specific device ID for the device name and plug that into the PvRecorder initiation.


TE-1.2: remove mac address missing deviation

Pull Request Functional Test Report for #1687 / bd472e1fa41629782deb15b81aaa04a6b2d8a694
Virtual Devices

Device
Test
Test Documentation
Job

Arista cEOS

TE-1.2: My Station MAC

Cisco 8000E

TE-1.2: My Station MAC

Cisco XRd

TE-1.2: My Station MAC

Juniper cPTX

TE-1.2: My Station MAC

Nokia SR Linux

TE-1.2: My Station MAC

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 47.948%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1320

Relevant Lines:
2753

💛  - Coveralls


Bump pyo3 from 0.20.0 to 0.22.2

Bumps pyo3 from 0.20.0 to 0.22.2.

Release notes
Changelog
Commits

References:

Migration guide at https://pyo3.rs/v0.21.1/migration#from-020-to-021 to use new Bound<'py, T> smart pointer
Migration guide at https://pyo3.rs/v0.22.2/migration#pyclone-is-now-gated-behind-the-py-clone-feature to use the py-clone feature flag
https://polar.sh/davidhewitt/posts/replacing-pyo3-api-pt1

Thanks for this

Should I wait for the official release of Python3.13 or is a new release needed now ?

Up to you. Maybe you can add Python 3.13 to CI first and then do a release?


Automatic SUT selection for graphs is not working properly

There are cases (e.g. https://argus.scylladb.com/test_runs?state=WyI5YzUzYTc5NS0zODFiLTQ4ZWQtOTYwYS02ZDE4NGRhY2FiYTciXQ) where SUT is not chosen properly (selects kernel instead of Scylla).
Add ability to manualy select SUT package name (and save it for the future)

@fruch I implemented quick workaround so mentioned graphs work (without breaking SM graphs).
In future will be easy to extend it for driver tests in case it was needed.
In the meantime, after implementing https://github.com/scylladb/argus/issues/551 we should have full solution.
Can we close this one in favor of https://github.com/scylladb/argus/issues/551?

btw. it's on staging for testing


Page did not load properly in Safari

Sidebar navigation did not appear. Header did not appear. Feedback button did not work. There were probably other pieces that did not work as well but those were the most noticeable one.

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

ID: bef853ec-6fcb-22dc-76cf-d12af7c87dee
Version Independent ID: c36fc153-ef89-842e-9b48-5986b1b49552
Content: Azure Automation State Configuration overview
Content Source: articles/automation/automation-dsc-overview.md
Service: automation
Sub-service: dsc
GitHub Login: @MGoedtel
Microsoft Alias: magoedte

@dan-tr Thanks for your comment! We will review and provide an update as appropriate.

@dan-tr  I have checked page load in Safari browser, it worked well. It could be an intermittent issue for you. Kindly check again and revert if you are still facing issue with below information.

Is the page load issue is with this specific page or all Azure documents ?
Region from where you are accessing the page.

@dan-tr Did you get chance to check my previous comment ? Let me know if you have further questions related to it.

Yes. This is still a problem. It seems to be across all of docs.microsoft.com. I am accessing the page from Central US.
Here is an example:

Safari Version 14.1 (146<IP_ADDRESS>.5)
MacOS Mojave Version 10.14.6
MacBook Pro (15-inch, 2017)

@dan-tr  Thanks for sharing this information and apologies for late response.  I am checking this internally with the team and will update you on this.

@dan-tr This has been tested and we are able to access Azure documents without any issues.  I would suggest you to test it from your end as well.
As there are no documentation changes, we will close the issue for now. If there are further questions , please revert and we will be glad to assist you.

@SwathiDhanwada-MSFT, thank you for the follow up. I was able to resolve the issue. I need to upgrade my operating system which also updates Safari. I then need to have new certificates added to my Mac. After an extensive reconfiguration of my Mac, the Microsoft Docs started working again.


Can't install as PWA on Android chrome browsers

Bug Report
Installation Method
Docker
Environment

Open WebUI Version: v0.3.15

Ollama (if applicable): 0.3.7-rc6

Operating System: Windows 11 Pro 23H2 / Android 14

Browser (if applicable): Android Chrome 127 and Android Brave 1.68.137

Confirmation:

[x] I have read and followed all the instructions provided in the README.md.
[x] I am on the latest version of both Open WebUI and Ollama.
[x] I have included the browser console logs.
[x] I have included the Docker container logs.
[x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:
When open the WebUI on Android Chrome, I should be able to install it as a PWA
Actual Behavior:
I can't install webui as a PWA, I only can create a simple shortcut
Description
Bug Summary:
Can not install webui as a PWA on Android Chrome and Android Brave
Reproduction Details
Steps to Reproduce:

open your local LAN open-webui on your android phone, make sure you are using latest chrome from play store
then click menu, click add to home screen
then you will see you only can create a shortcut, instead of install as PWA

Logs and Screenshots
Screenshots/Screen Recordings (if applicable):
As you can see, there is no install option, only shortcut, which will open a new tab everytime I click it on home screen
Brave browser on Android is the same
https://github.com/user-attachments/assets/fe844539-a58f-44a6-bf9e-bc48ab5bd60d
Additional Information
I was able to install webui as a PWA on brave a few months ago, idk it's because of chrome & brave update or webui update, but it's broken now
Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!

nevermind, I can just use hermit

For anyone else wondering, they a refering to hermit a pwa/apk creator. Thanks a lot for making me discover this!
It seems I can use it to create an android assistant app. See this related discussion

I still believe this should be fixed?


perf: optimize halo2 prover

Description
This PR optimizes speed and memory.
For speed,

Move vectors where possible.
Optimize CompressExpressions()
Optimize FFT and IFFT.
Optimize GrandProductArgument::CommitXXX().
Optimize PermutationAssembly::GeneratePermutations().
Optimize ProvingKey::DoLoad().
Optimize BatchInverse(), BatchNormalize() and BatchScalarFieldToPoint.

For memory,

Deallocate large memories immediately when they are used.

https://github.com/kroma-network/tachyon/pull/290/commits/4f78125bed3ce4c574007c538de5b3f1e1e25788 I'll update the benchmark result at office!

@chokobole 1. 9ebf0fb did you intend this commit message? "bool return type bool"?
2. ceda54f can you fix the commit message to "finishing reading the proof"?
3. 996f9da can you fix the commit message to "avoid memory reallocation"?

@chokobole 1. 9ebf0fb did you intend this commit message? "bool return type bool"? 2. ceda54f can you fix the commit message to "finishing reading the proof"? 3. 996f9da can you fix the commit message to "avoid memory reallocation"?

No, I'll fix it to "return type bool"
OK
OK

@chokobole c05ebf8 in this commit, did you intend to put benchmarks in zk/base?


GUI Dark background

Make the background of the GUI in dark mode (not talking about the apps inside, but just the white background in a black or dark grey background.)

Dark mode supported with v4.0.0 images.


How to run using npm after npm install tagui

Hi i am new to tagui i need guidelines for how to run tagui after npm install in windows
thanks in advance :)

Hi @kmahalingpur, after npm install, you can go to the tagui\src folder and type tagui samples\1_yahoo to try out the automation examples. Using npm install assumes you already have PHP on your Windows. If not, you can use the packaged installation for Windows to unzip and run instead.
Run direct from normal Windows command prompt, not inside a Win-Linux shell (cygwin / mingw32)

Thanks for the quick reply.... Did the same thing but got error for GNU utilities and curl so did manual addition in /src/unx. It would be better if it was provided in npm install.

Thanks for your reply @kmahalingpur it looks like the unix commands for Windows are not available. Have you tried downloading the packaged installation for Windows from the link above? After unzipping and run from tagui\src folder do you get the find command not found message?
I don't think it is good to include those Windows executables for Linux commands as part of the npm package. Because npm install tagui for macOS or Linux will also get many large-sized Windows files. Too many other Windows-specific dependencies such as PHP installation and Linux commands. Will be better to use the Windows zip directly.
Updated readme to use npm install only for macOS/Linux, committed with following comment -
"Windows has additional dependencies as such PHP distribution, and Windows versions of Linux-based commands. It would be troublesome to npm install tagui on a clean Windows environment without those dependencies. Better to use the Windows packaged installation file directly -> unzip and run (all dependencies are packaged in)"

Adding on, can you share more info how to replicate the find error message? For eg, the full path and filename of the flow file, from which directory and what command you use to run tagui on the file.
For Windows, some TagUI features such as making API calls and running automation files stored on cloud URL requires that Windows find command to work correctly for the features to work.

@kensoh  That find issue came when i try to do with npm install. Process i followed was
npm install tagui
set the src path in path variable
downloaded gnc utilites and curl in /src/unx folder
Run sample case
Test case ill be success but that find error will be there.
And as u mentioned earlier to use zip for windows i tried but shows dll missing so need to add that dll manually???

I'm afraid I can't reproduce your issue, when I download the Windows zip -
https://raw.githubusercontent.com/tebelorg/Tump/master/TagUI_Windows.zip
After unzip, there are already the Linux commands in tagui\src\unx folder. There is also PHP distribution in tagui\src\php folder. Below is what happens after I unzip to c:\tagui folder -> Windows start menu -> Run -> cmd -> cd \tagui\src -> tagui samples\1_yahoo

Without providing more info I asked for - where tagui is unzipped on your laptop, and the exact commands you use to run, I won't be able to troubleshoot further on the message on your PC. I ran above on Windows 8, and recently tried running TagUI automation flow ok on Windows 10.

@kensoh installed in the same manner u told still dll issue.

Im running it on win10

Thanks @kmahalingpur for sharing, it looks like on your PC a core Windows system file msvcr110.dll is missing or corrupted, so PHP execution engine cannot run. I found below article with some steps to fix that file, for example downloading from Microsoft website here.
https://www.lifewire.com/how-to-fix-msvcr110-dll-not-found-or-missing-errors-2623800

closing for now but do let me know if there's update!


Add command to get a single environment value

Right now we have azd env get-values, which returns all values.  Sometimes I just need one value.  Either add --query to get the value I want or allow me to get a single value, azd env get-value

Closed with #4080


fix(turborepo): Rationalize the install and execution process.

Previously we had a lot of complexity in our install scripts inherited from esbuild. This change removes all of the incidental complexity in favor of relying upon default ecosystem behaviors in most cases.
Instead of attempting correction of configuration at both installation and invocation, it handles everything at invocation. Early returns ensure that we perform the exact same amount of work as we did in the previous variation.
It can now also detect and provide instructions on how to repair a broken package-lock.json caused by https://github.com/npm/cli/issues/4828. (Note: if the "just try installing" saving throw works, we won't provide this information to the user. I elected this ordering for startup time reasons.)
As an added bonus, turbo no longer has a postinstall script which is more end-user-friendly.
Material changes:

Does not attempt to extract turbo from a Yarn PnP without preferUnplugged support. This works with all stable releases of yarn (berry). This is a change for users on canary versions >2.0.0-rc.0 && <=2.0.0-rc.30 from September 2019 – March 2020—but we already don't support in other portions of our codebase so this only changes where the error is thrown from.
In the event of npm install download failure it does not attempt to directly download a tarball. If a user misconfigured their setup and we didn't succeed at npm install to bail them out? It's okay for you to get an error with lots of details on how to fix your configuration.

Ah, right, the package name should match, even if the architecture doesn't.
Ok, sgtm
On Wed, Aug 9, 2023, 6:51 PM Nathan Hammond @.***>
wrote:

@.**** commented on this pull request.
In packages/turbo/bin/turbo
https://github.com/vercel/turbo/pull/5695#discussion_r1289439305:

if (SHOULD_INSTALL && correctBinary !== null) {

console.warn('Turborepo did not find the correct binary for your platform.');
console.warn('We will attempt to install it now.');

try {

 installUsingNPM();

 const resolvedPath = require.resolve(`${correctBinary}`);

 console.warn('Installation has succeeded.');

 return resolvedPath;

 } catch (e) {

 console.warn('Installation has failed.');

}
}

// 3. Both Windows and macOS ARM boxes can run x64 binaries. Attempt to run under emulation.
const alternateBinary = (arch === "arm64" && ['darwin', 'windows'].includes(platform)) ? turbo-${platform}-64/bin/turbo${ext} : null;

I believe this is still worth warning on. Even if you are running under
emulation you don't by default get the differently-named binary. So getting
the correctly-named binary is still important.
 If you don't have the windows arm binary it is
indicative of an error in configuration (probably the npm issue) every time.
Also, to get this warning at all you have to fail the install saving throw
where we would drop the correct binary on your box.
I'm going to keep this as is.
—
Reply to this email directly, view it on GitHub
https://github.com/vercel/turbo/pull/5695#discussion_r1289439305, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AADGD7ODNAKRC3T3WWA7HWTXUQ5DZANCNFSM6AAAAAA3JVMNAY
.
You are receiving this because your review was requested.Message ID:
@.***>

Are there any concerns about running this when the repo is using package managers besides npm? - @gsoltis

Nope! There are two things happening here that do npm-related nonsense:

An npm install inside of the <PROJECT>/node_modules/turbo folder.

Writing to this destination (no matter how it is implemented underneath the hood with linking) results in safe behavior—even if it pollutes the cache, even if that cache is later restored from a random cache, even if that cache comes from a different platform, even if the base project is a different package manager. It works because it leverages npm install to handle the behavior, which on rerun always puts things into the expected state for the dependencies, and the resolve algorithm.
The material difference is that, in a misconfigured repository, if we restore from a polluted cache, on the same platform (worst-case scenario), the correct binary will be found inside the node_modules/turbo/node_modules/turbo-<platform>-<arch> folder instead of node_modules/turbo-<platform>-arch. This is a harmless distinction since those two things should be identical in order to work anyway.

Looking for package-lock.json.

This does not directly invoke or mutate npm, it just looks on the file system for evidence of the package-lock.json error and gives you a command to fix it.


Complete only missing fields

yeah, I thikn for now we should use <Name as Display>
On Tue, 24 Mar 2020 at 10:30, Kirill Bulatov<EMAIL_ADDRESS>wrote:

@SomeoneToIgnore commented on this pull request.
In crates/ra_ide/src/completion/complete_record_literal.rs
https://github.com/rust-analyzer/rust-analyzer/pull/3694#discussion_r397011601
:

@@ -11,8 +11,24 @@ pub(super) fn complete_record_literal(acc: &mut Completions, ctx: &CompletionCon
_ => return,
};

let already_present_names: Vec = ctx

The assist compares Name's and uses ra_hir_def::Expr::RecordLit for that,
but this is a private thing for ra_ide, as I see.
It would be really simple to import the AsName trait to perform the NameRef
-> Name conversion, but that is also private for ra_ide and I remember
you stating that it is a concious decision.
So it appears to me, that the only way to solve this with the current API
is to allocate some strings after all: keep the SmolStr here, as proposed
and do the &SmolStr::from(field.name(ctx.db).to_string()) when checking
for contains.
Is there any better way in your opinion?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rust-analyzer/rust-analyzer/pull/3694#discussion_r397011601,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANB3MZVPYWUXTYMQJIBY3LRJB4R5ANCNFSM4LSGYC5Q
.

That is great, but I alas have no idea how to get a hir representation for anything incomplete in ra_ide, as we need in this case, when only some fields are input buy the user.
Afaik, it's impossible to convert anything from ast to hir::Name directly in the ra_ide either, so I'm out of options on how to retrieve the <Name as Display> without the API amendments.

I mean that the current approach of using field.name(ctx.db).to_string() is fine :)
bors r+

U guys rock ❤


Can't load local web from a local DSP package

I very excited that DSP v1.2 add feature that is load local web from a local DSP package.
When I try to use that amazing feature, I can't realize in my DSP.

markdown code

file position

How can I fix the problem?
win10
vscode: v1.56.2
XD vscode extension: v1.2.3

Just wondering, what's the content of your btn.html look like?

Just wondering, what's the content of your btn.html look like?

That's very simple HTML code in btn.html.


Fix attribute reads into a large buffer to not read random memory.

When reading an attribute value into a large buffer, we would read the
number of bytes that can fit in the buffer, not the number of bytes
the attribute value actually takes up.  This would cause us to read
whatever memory came after the attribute value.
Also fixes some issues in typeSensitiveMemCopy when trying to
read a string-valued attribute into a buffer that's not even big
enough to fit the length value of the string.
Fixes https://github.com/project-chip/connectedhomeip/issues/4371

Problem
We end up reading out-of-bounds memory when doing attribute reporting.

Summary of Changes
Fix typeSensitiveMemCopy to not read memory it should not.

@jelderton @saurabhst @hawk248 @BroderickCarlin ?

@jelderton @saurabhst @hawk248 @BroderickCarlin ?


Add function to get navigation map iteration id from NavigationServer

Adds NavigationServer map_get_iteration_id() function to get current navigation map iteration id.
This is useful to give users an option to check if a navigation map has synchronized before doing queries.
Doing queries on never synchronized navigation maps triggers certain warnings / errors.
The NavigationServer map_changed  signal alone is too unreliable to track this.
Also increases the wrap range of the map iteration id to UINT32_MAX so long-running games and servers do not have to encounter and deal with wraps in a normal lifetime.

Removed the old get_map_update_id() and updated the internal uses in NavMap, NavAgent and NavObstacle to use get_iteration_id() instead.

Thanks!


边玩边换屏幕类型 | Change Screen Type while playing

It is possible to change Screen Type while a video is playing? If yes, can you tell me how? Thanks.
This is what I'm trying:
GSYVideoType.setShowType(GSYVideoType.{SCREEN_TYPE}
It does change it only when view it's destroyed, but not in real time.
DeepL:
可以在播放视频时改变屏幕类型吗？如果可以，你能告诉我怎么做吗？谢谢。
这是我正在尝试的。
GSYVideoType.setShowType(GSYVideoType.{SCREEN_TYPE}
它只有在视图被破坏时才会改变，但在播放视频时不会。

In Demo ， SampleVideo call  changeTextureViewShowType &  mTextureView.requestLayout()  function after  GSYVideoType.setShowType

It worked. Thanks.


Logging support in Boto Waiters

Describe the feature
It would be nice to have additional logging during the execution of the wait method when using boto Waiters.  Currently, when a boto waiter is used, it does not provide any logging until a failure or success state is reached. It would be useful for users to have an additional flag (such as verbose etc.) that would make the waiter log the response from the service it is polling, which would allow users to see the status of a service during the waiting period.
Use Case
For the example of a EMR step, which can take several minutes to finish. the associated waiter does not display any of the intermediate states that the describe_step function returns. It would be nice to see the progression of the job go from PENDING  to RUNNING  to COMPLETED.
Proposed Solution
def wait(self, **kwargs):
    # existing code ...
    verbose = kwargs.get("verbose", False)

    while True:
        response = self._operation_method(**kwargs)
        num_attempts += 1
        for acceptor in acceptors:
            if acceptor.matcher_func(response):
                last_matched_acceptor = acceptor
                current_state = acceptor.state
                break
        else:
            if verbose:
                logger.debug("Polling response is %s", response) # response can potentially be cleaned up to give a better log message
            # existing code ...

This might be an overly simplistic way, but something along these lines.
Other Information
No response
Acknowledgements

[X] I may be able to implement this feature request
[ ] This feature might incur a breaking change

SDK version used
1.29.76
Environment details (OS name and version, etc.)
Ubuntu

Hi @syedahsn thanks for the feature request. I think your use case to log statuses during waiter execution makes sense. It is probably worth investigating if other AWS SDKs do this and if so, what the logging looks like. We can use this issue to track further discussion and possible approaches to implementation. Others can 👍 the issue if interested in this as well.

I'd also like to see this feature! Not only to see status changes, but it'd be useful to monitor that things are still operating correctly. Code execution can appear to hang without any progress logging when using waiters as they are now.


NoClassDefFoundError: com/github/scribejava/core/model/AbstractRequest

compile 'io.rest-assured:rest-assured:3.0.3'
compile 'com.github.scribejava:scribejava-core:4.1.2'

I have added an OAuth2 authentication into the RestAssured configuration:
RestAssured.authentication = oauth2(accessToken);

And one of my tests sends the DELETE, where I get the following exception:
java.lang.NoClassDefFoundError: com/github/scribejava/core/model/AbstractRequest

at io.restassured.internal.http.AuthConfig.oauth2(AuthConfig.java:188)
at io.restassured.internal.http.AuthConfig$oauth2.call(Unknown Source)
...
at io.restassured.internal.RequestSpecificationImpl.delete(RequestSpecificationImpl.groovy:180)
at io.restassured.internal.RequestSpecificationImpl.delete(RequestSpecificationImpl.groovy)
at io.restassured.RestAssured.delete(RestAssured.java:838)
...

Looks like this AbstractRequest class was deprecated and last seen in version 4.0.0.
http://static.javadoc.io/com.github.scribejava/scribejava-core/4.0.0/com/github/scribejava/core/model/AbstractRequest.html

@vbachurin Any work around for this issue?

Getting same error with Ouath1.0 also..
How to solve it?

You can download the below jars from Maven repository for you oauth authentication

com.github.scribejava
scribejava-apis
2.5.3

You need to use older version of scribe:
Maven search


Tests for live preview watcher

Depends on #467, merge that first
this adds integration tests for just live preview's watcher. They are pretty hacky and slow due to the nature of testing such a thing, would love suggestions on making them less hacky.

sadly this PR is very out of date with master. sorry for the delay here and that we can't merge it :(


How to contribute to i18n translation?

I found there's some gettext files, and like to contribute to Chinese translation but did not figure out how to generate locale files.

Oooh. Good question.

X-Generator: Poedit 1.5.4

What's Poedit?

@carltongibson Sorry, I'm not sure what do you mean. I do not need a .po editor, but wonder how to generate zh_CN/*/*.po files. As it's not a django project, so I cannot use ./manage.py makemessages here.
BTW, I think .mo files should not be a part of this project as they are only compiled .po files.

Use django-admin.py as per the examples usage https://docs.djangoproject.com/es/1.9/ref/django-admin/#django-admin-makemessages

Translation finished! Shall I add the .mo file into git commit?
PR created here: https://github.com/alex/django-filter/pull/359

As an promt to anybody who want to contribute to translation later, you could run django-admin makemessages --locale YOUR_LANGUAGE in ~repo/django_filters/ directory to generate .po files and run django-admin compilemessages --locale zh_CN compile .po files to .mo.

@kxxoling Great work.
Do you fancy adding that How To note to the docs? http://django-crispy-forms.readthedocs.org/en/latest/contributing.html

Not sure what else should I do. Add the HOW TO I wrote to django-crispy-forms?


warn when assignment in v-if in development mode

What problem does this feature solve?
this may fix errors made by misktake quickly.
e.g.:
there is a piece of code like v-if="a=b", but what I want is v-if="a===b"
What does the proposed API look like?
nothing here

this is a js common pitfall for beginners, not Vue. It should be said on your editor by a linter (https://github.com/vuejs/eslint-plugin-vue)


Interactive output log comments.

We can add chalk.js dependency to flash interactive log while performing any task.

looks good, thanks for the suggestion.. will check and update


Override default user config in flake8 tests and minor "optimisation"

I encountered a strange issue while trying to run tests, with an example below. I am ignoring tests/* in my person flake8 config, so when running the tests, it ignores tests/* files when running flake8, so my tests didn't pass successfully, so now in the tests I am over-riding the user config, in case someone is ignoring certain error codes or something.
13:52:12 [:~/src/git/python/lint-review] ± cat ~/.config/flake8
[flake8]
max-line-length = 160
exclude = tests/*
max-complexity = 10

13:51:53 [:~/src/git/python/lint-review] ± flake8 -v tests/fixtures/pep8/has_errors.py
user configuration: /Users/william/.config/flake8

13:51:55 [:~/src/git/python/lint-review/tests] ± flake8 -v fixtures/pep8/has_errors.py
user configuration: /Users/william/.config/flake8
checking fixtures/pep8/has_errors.py
fixtures/pep8/has_errors.py:2:1: F401 'os' imported but unused
fixtures/pep8/has_errors.py:2:1: F401 're' imported but unused
fixtures/pep8/has_errors.py:2:10: E401 multiple imports on one line
fixtures/pep8/has_errors.py:4:1: E302 expected 2 blank lines, found 1
fixtures/pep8/has_errors.py:6:6: E128 continuation line under-indented for visual indent
fixtures/pep8/has_errors.py:9:1: E302 expected 2 blank lines, found 1
fixtures/pep8/has_errors.py:10:11: E225 missing whitespace around operator
fixtures/pep8/has_errors.py:11:15: W603 '<>' is deprecated, use '!='

Thanks :+1:


more of a UI text than translation it seems

OPCache should be OPcache. if there's a place to do a PR for those kinds of text, let me know. thanks!

Good call, there is currently no translation yet for that, since we are still in the process of adding the translation keys to every part of the panel.
Once it is added we'll reply to this issue.

👌🏼👍🏼


chore(main): release dprint 1.15.9

:robot: I have created a release beep boop
1.15.9 (2024-09-25)
Miscellaneous

dprint: update plugins (f814d30)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

dprint-v1.15.9
:sunflower: