OutOfHostMemory with Linux/Nvidia

So recently switched to using my nvidia card again. Running Void Linux with the 390 driver. Issue exists with the 384 driver also. Haven't had time to test on windows if this exists there yet, but using PresentMode::Fifo or PresentMode::Relaxed causes a panic on a unwrap of OutOfHostMemory. PresentMode::Immediate works alright though. Using my application I can successfully match the error from aquire_next_image() and that returns OomError(OutOfHostMemory).

OutOfHostMemory is very weird! I have no idea when that is even supposed to happen.

Ok figured out how to monitor gpu ram usage without x. This issue causes to Xorg to lag out for some reason making it hard to read in the nvidia-settings.
I am writing this down as I observe...
The issue does not happen immediately. With no delay added in the loop it takes ~566 frames to spit out the error. Adding a 5ms delay to the rendering loop does increase the amount of frames it outputs before it returns and error, typically about 900-1200 frames instead. It also allows me to monitor gpu/cpu ram usage a little better as it happens to fast to get any valid gpu/cpu memory readings.
During runtime gpu memory remains the same while cpu memory is increasing roughly 15 MiB/s.
I am now printing out frame times. With 5ms delay in the loop I am getting frame times of ~10ms with Fifo and ~11ms with Relaxed. Since my display is running at 60hz I'd expect frametimes of ~16.67ms.
I not very technical in terms of vulkan, so I may need some help with this info. But taking a guess, I think frames are being kept on the cpu because the graphics card isn't taking them fast enough.
I added a manual fps throttle to keep the fps at 60. It now runs as you'd expect. I think this confirms my guess. Could be wrong though.
Hope this helps :)

In the examples the cpu side never waits on the futures returned by signal_fence_and_flush() etc. So I guess this makes sense. The examples should perhaps contain some way that the cpu will wait for the pipeline to finish after 2 frames or whatever have been queued?

Call wait on the future after signal_fence_and_flush() does solve the issue.

Closing in favor of https://github.com/vulkano-rs/vulkano/issues/1247


Update .gitignore

Update .gitignore w/ back-end gitignore content
Issues:

#24

Looks good cleaning up all the files we don't want to see haha!

Looks good


Investigate documented ConnectionException thrown by Publisher.Builder.start and how users are meant to handle it

The documentation for Publisher.Builder.start states that it can throw a ConnectionException "if something goes wrong during connection initialization":
https://github.com/ably/ably-asset-tracking-android/blob/355bc214818da6f83b3cc2419c778542c227981f/publishing-sdk/src/main/java/com/ably/tracking/publisher/Publisher.kt#L274
It seems like this is because DefaultAbly can throw a ConnectionException "if something goes wrong during Ably SDK initialization".
https://github.com/ably/ably-asset-tracking-android/blob/355bc214818da6f83b3cc2419c778542c227981f/common/src/main/java/com/ably/tracking/common/Ably.kt#L249
We should understand what are the circumstances under which this might happen and explain to users how they are meant to recover from this situation. Can we handle it in a way that’s consistent with https://github.com/ably/ably-asset-tracking-android/issues/871?

We should understand what are the circumstances under which this might happen and explain to users how they are meant to recover from this situation. Can we handle it in a way that’s consistent with #871?

I don't think this should throw ConnectionException if the underlying connection is in any of the following states:
connecting
connected
disconnected
suspended.
In these cases, the underlying library will continuously retry the connection, and it should be possible via the Publisher to observe this, and any eventual successful connection.
There's an argument for throwing an exception if the underlying connection is in the closed or failed state.
closed will only ever be reached if there is an explicit call to close() on the underlying connection, which shouldn't be possible.
failed will happen if there is a non-retriable error in the underlying connection (eg the credentials are not valid). The underlying connection will never autonomously recover from this state and it's probably reasonable for the AAT Publisher to throw to indicate that it will never connect. (There's also an argument, in this case, for attempting to determine why the connection is failed, and have exception types that reflect those underlying causes, eg AuthorizationException or something - ConnectException isn't that informative, because it implies that there was a problem with this connection attempt, rather than a more concrete problem.)

I think this exception might be only thrown here which repackages AblyExceptions thrown by
Hosts constructor.
If I'm reading this correctly, it checks if the connection configuration is valid. Connection configuration is created here and is using default values for all fields reviewed by Hosts constructor. There is no way for the SDK user to change those, so I think these exceptions cannot be thrown when using AAT, and this try..catch along with exception annotation can safely be removed.
@KacperKluka can you confirm if that is correct?

The Publisher.Builder.start throws a ConnectionException because it creates an Ably wrapper instance which on the other hand creates an AblyRealtime instance. The AblyRealtime constructor declares to throw AblyException and it creates a bunch of objects from which some of them declare to throw the exception as well (e.g. Hosts, Auth, HttpCore).
Initially, the try/catch was added when we were looking for AblyRealtime methods that can throw and we wanted to make sure we catch all AblyExceptions.

Thanks for pointing out more possible causes.
After looking at those classes, those exceptions can occur when using AAT, but they all seem to be related to the connection configuration validation. Maybe we should change the exception comment to indicate that the cause is configuration related, i.e.?

@throws ConnectionException If connection configuration is invalid

Thanks for pointing out more possible causes.
After looking at those classes, those exceptions can occur when using AAT, but they all seem related to the connection configuration validation. Could we change the exception comment to indicate that the cause is configuration related? @lawrence-forooghian @paddybyers  @QuintinWillison wdyt?


Module not found: Error: Can't resolve 'fsevents'

mdx-bundler version: 1.1.3
node version: 14.15.4
npm version: 6.14.10
next version: 10.0.5

Relevant code or config
prepare-mdx.ts and mdx.ts
What you did:
Tried to build my Next.JS site on my Windows machine.
What happened:
Running next build results in this output:
info  - Creating an optimized production build
Failed to compile.

ModuleNotFoundError: Module not found: Error: Can't resolve 'fsevents' in 'C:\Users\adam\Documents\GitHub\arcath.net-next\node_modules\mdx-bundler\node_modules\rollup\dist\shared'

> Build error occurred
Error: > Build failed because of webpack errors

Reproduction repository:
Sorry its not very minimal but my full site is here: https://github.com/Arcath/arcath.net-next
The files using mdx-bundler are prepare-mdx.ts and mdx.ts
Problem description:
Build doesn't work on Windows but does on Vercel. There is a seperate issue I need to diagnose which is what prompted me to do a local build.
Suggested solution:
Possibly a change to rollup config? This feels like it could be a rollup issue when running undex next.js.

I'm thinking about switching to https://github.com/wooorm/xdm and using esbuild rather than rollup to bundle. Should be much faster and xdm has fewer bugs and requires no client-side runtime 👍
Just gotta find the time to do that.

This has been fixed by #5.
Confirmed against version 2.0.0.


Credentials Cache File Not Found

I am trying to use this plugin to connect to a Windows machine using Kerberos authentication, but I keep getting the following error:

It looks like the plugin looks for a credentials cache in /tmp/krb5cc_109 which does not exist. If I create this cache manually the plugin then works.

From what I can tell the plugin does not create the cache file or request the KDC kerberos ticket. For now I have ansible renewing this ticket every 30 minutes but it is not ideal. Maybe something to take as a feature request.

Thanks for reporting this. Currently we aren't using kerberose for authentication. The priority for adding this feature is not something we could take on right now. If you are able to develop a solution, pull requests are welcome.

Just to confirm my understanding, Kerberos authentication doesnt currently work with this plugin?

I don't believe it does kerberos. @vvchik can you confirm?


helidon metrics to oci integration

The change includes the following:

Port of v3 PR https://github.com/helidon-io/helidon/pull/5829 that includes additional changes and fixes.
Changes related to OciMetricsSupport use of Nima instead of SE Webserver dependency.

https://github.com/helidon-io/helidon/pull/5945 is completed hence closing.


Is there a way of disabling a core plugin?

At the moment it looks like the new favicon plugin is enabled by default and I'd like to have the option to disable it because in the future I might be performing the same function in another module on my site. The reason is we use this player for live streams and a different one for video on demand, and I'd like them both to modify the favicon and want the logic to be in the same place.
Thanks.

Hi @tjenkinson, now the favicon plugin is disabled by default. It can be enabled using changeFavicon: true when embedding the player, or on an existing player instance:
player.getPlugin('favicon').enable()

The enable and disable methods were added to the CorePlugin base class, following the same standard as the other plugin classes.

Brilliant thanks for this


No Results

I can't seem to get any image results, but no errors either. Running Python 3.8.10 on Linux Mint, with a fresh venv.

from google_images_search import GoogleImagesSearch

def main():
  key = "AIzaSyxxxxxxxxxxxxxxxxxxxxq8W9TpSedhHeY"
  cx = "0016904xxxxxxxx366:n-vrnapnina"
  gis = GoogleImagesSearch(key, cx)

  search_params = {
    'q': 'superman',
    'num': 10,
    #'fileType': 'jpg',
    #'rights': 'cc_publicdomain',
    #'safe': 'off', ##
    #'imgType': 'imgTypeUndefined', ##
    #'imgSize': 'imgSizeUndefined', ##
  }

  gis.search(search_params=search_params)

  print(gis.results())

  for image in gis.results():
      print("*")
      image.url
      image.referrer_url
      image.download('covers/')
      image.resize(300, 300)
      image.path

main()

Hi,
My first guess is that you misconfigured your custom search project.
Visit https://cse.google.com/cse/all and in the web form where you create/edit your custom search engine enable "Image search" option and for "Sites to search" option select "Search the entire web but emphasize included sites".

Right you were, thank you.

Amazing!  I had the same issue.  Thank you Arrrlo.


sudo plugin stopped working

In the past 2 weeks (I think), I noticed that the sudo plugin (pressing Esc twice prepends the previous command with sudo ) stopped working.
I'm using oh-my-zsh with the same .zshrc on two machines, so I'm pretty sure it's not a local issue.

Have you changed your plugins? I can't reproduce that... What does bindkey '\e\e' return?

I didn't change my plugins.
$ bindkey '\e\e'
"^[^[" undefined-key

That's weird, the sudo plugin hasn't been updated in years... What's your zshrc file?

https://pastebin.com/FNqERWmi

You can't use commas in your plugins array, just spaces.


Matrix voice not working with Rhasspy 2.5.11 (deb package) but works ins 2.4.20 (docker version)

Hi, I have a matrix voice device connected to the raspberry working properly, but is not working with Rhasspy 2.5.11 (Debian package). If I use the docker version (2.4.20) it works but the docker version doesn't play any sound :(
this is my profile:
{
    "handle": {
        "remote": {
            "url": "http://localhost:1111"
        },
        "system": "remote"
    },
    "intent": {
        "system": "fsticuffs"
    },
    "microphone": {
        "arecord": {
            "device": "hw:CARD=MATRIXIOSOUND,DEV=0"
        },
        "system": "arecord"
    },
    "sounds": {
        "aplay": {
            "device": "hw:CARD=Headphones,DEV=0"
        },
        "system": "aplay"
    },
    "speech_to_text": {
        "system": "pocketsphinx"
    },
    "text_to_speech": {
        "system": "nanotts"
    },
    "wake": {
        "porcupine": {
            "keyword_path": "jarvis_raspberry-pi.ppn"
        },
        "system": "porcupine"
    }
}```

when I click on "wake up" button I got this on the console:

[DEBUG:2021-12-15 11:12:26,261] rhasspyserver_hermes: -> HotwordDetected(model_id='default', model_version='', model_type='personal', current_sensitivity=1.0, site_id='default', session_id=None, send_audio_captured=None, lang=None, custom_entities=None)
[DEBUG:2021-12-15 11:12:26,263] rhasspyserver_hermes: Publishing 199 bytes(s) to hermes/hotword/default/detected
[DEBUG:2021-12-15 11:12:26,264] rhasspyserver_hermes: Waiting for intent (session_id=None)
[DEBUG:2021-12-15 11:12:26,266] rhasspyserver_hermes: Subscribed to hermes/error/nlu
[DEBUG:2021-12-15 11:12:26,277] rhasspyserver_hermes: <- HotwordDetected(model_id='default', model_version='', model_type='personal', current_sensitivity=1.0, site_id='default', session_id=None, send_audio_captured=None, lang=None, custom_entities=None)
[WARNING:2021-12-15 11:12:26,280] rhasspyserver_hermes: Dialogue management is disabled. ASR will NOT be automatically enabled.
[ERROR:2021-12-15 11:12:56,294] rhasspyserver_hermes:
Traceback (most recent call last):
File "/usr/lib/rhasspy/usr/local/lib/python3.7/site-packages/quart/app.py", line 1821, in full_dispatch_request
result = await self.dispatch_request(request_context)
File "/usr/lib/rhasspy/usr/local/lib/python3.7/site-packages/quart/app.py", line 1869, in dispatch_request
return await handler(**request_.view_args)
File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/main.py", line 943, in api_listen_for_command
async for response in core.publish_wait(handle_intent(), [], message_types):
File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/init.py", line 995, in publish_wait
result_awaitable, timeout=timeout_seconds
File "/usr/lib/rhasspy/usr/local/lib/python3.7/asyncio/tasks.py", line 449, in wait_for
raise futures.TimeoutError()
concurrent.futures.base.TimeoutError[DEBUG:2021-12-15 11:12:26,261] rhasspyserver_hermes: -> HotwordDetected(model_id='default', model_version='', model_type='personal', current_sensitivity=1.0, site_id='default', session_id=None, send_audio_captured=None, lang=None, custom_entities=None)
[DEBUG:2021-12-15 11:12:26,263] rhasspyserver_hermes: Publishing 199 bytes(s) to hermes/hotword/default/detected
[DEBUG:2021-12-15 11:12:26,264] rhasspyserver_hermes: Waiting for intent (session_id=None)
[DEBUG:2021-12-15 11:12:26,266] rhasspyserver_hermes: Subscribed to hermes/error/nlu
[DEBUG:2021-12-15 11:12:26,277] rhasspyserver_hermes: <- HotwordDetected(model_id='default', model_version='', model_type='personal', current_sensitivity=1.0, site_id='default', session_id=None, send_audio_captured=None, lang=None, custom_entities=None)
[WARNING:2021-12-15 11:12:26,280] rhasspyserver_hermes: Dialogue management is disabled. ASR will NOT be automatically enabled.
[ERROR:2021-12-15 11:12:56,294] rhasspyserver_hermes:
Traceback (most recent call last):
File "/usr/lib/rhasspy/usr/local/lib/python3.7/site-packages/quart/app.py", line 1821, in full_dispatch_request
result = await self.dispatch_request(request_context)
File "/usr/lib/rhasspy/usr/local/lib/python3.7/site-packages/quart/app.py", line 1869, in dispatch_request
return await handler(**request.view_args)
File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/main.py", line 943, in api_listen_for_command
async for response in core.publish_wait(handle_intent(), [], message_types):
File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/init.py", line 995, in publish_wait
result_awaitable, timeout=timeout_seconds
File "/usr/lib/rhasspy/usr/local/lib/python3.7/asyncio/tasks.py", line 449, in wait_for
raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

Any help is appreciated !
Cheers.

Hi,
the problem is, that Matrix Voice Driver can handle only some specific audio formats.
You have to transcode the stream to the needs of Matrix Voice.
I have managed it with a script and sox.
Look at
https://community.rhasspy.org/t/picovoice-offline-voice-ai-engine-gets-free-tier-for-up-to-3-users/3328/8?u=sturi2011
Greetings
Andreas


[FLINK-10189] Fix FindBugs warnings: Inefficient use of keySet iterat…

This PR fixes two WMI_WRONG_MAP_ITERATOR warnings reported by FindBugs-3.0.1 (http://findbugs.sourceforge.net/):
M P WMI: org.apache.flink.runtime.state.ttl.TtlMapState.putAll(Map) makes inefficient use of keySet iterator instead of entrySet iterator  At TtlMapState.java:[line 72]
M P WMI: org.apache.flink.addons.hbase.HBaseTableSource.projectFields(int[]) makes inefficient use of keySet iterator instead of entrySet iterator  At HBaseTableSource.java:[line 19]

The description of the bug is as follows:

WMI: Inefficient use of keySet iterator instead of entrySet iterator (WMI_WRONG_MAP_ITERATOR)
This method accesses the value of a Map entry, using a key that was retrieved from keySet iterator. It is more efficient to use an iterator on the entrySet of the map, to avoid the Map.get(key) lookup.
http://findbugs.sourceforge.net/bugDescriptions.html#WMI_WRONG_MAP_ITERATOR

@hiroakiy Thanks for your contribution. The change looks good to me. I just give a suggestion : change the PR's description like other PRs (Flink has its PR template) to give more details (such as test coverage).


remove nans when setting sorted index

[ ] Tests added / passed
[ ] Passes black dask / flake8 dask

wow, so easy! the only edge case I can think of that wouldn't already be handled is if the whole thing is NaN, but presumably that already fails / probably should just fail anyway...?

wow, so easy! the only edge case I can think of that wouldn't already be handled is if the whole thing is NaN, but presumably that already fails / probably should just fail anyway...?

Actually, that succeeds for me when testing locally, which seems like the correct behavior. You can set an index on an empty pandas df without issue. I'd argue that an empty df is inherently sorted, but I guess that's just semantics.


chore: ini k8s gha

Current dependencies on/for this PR:

main

PR #85

PR #87

PR #88   👈

This comment was auto-generated by Graphite.


Is there a formula to calculate the expected RAM Memory usage?

I have a large dataset of N records (currently 100Million). Each record is d dimensions (say 300d). Is there a quick formula I can use to calculate the expected RAM usage? Thank you.

Do you want the peak RAM usage (harder to calculate) or the size of an index? The latter is going to be a small multiple of the dataset RAM usage in terms of float32 entries. Regardless 100M samples is going to tax most machines, and index construction would be quite expensive (i.e. could take says even with multicore).

I see I see... just the index size RAM @lmcinnes
Unfortunately, my use case is a large dataset. Pynndescent provides the best queries/s on a sample of the dataset, hence my interest to know whether it can scale to this size. Thank you.


appInsights.setAuthenticatedUserContext is not a function - how to get authenticated user context on automatic telemetry?

I am getting error "appInsights.setAuthenticatedUserContext is not a function" when using "Microsoft.ApplicationInsights.AspNetCore": "1.0.0-rc2-final" in project.json.  Is there a new way of doing this?  Note that appInsights is definitely initialized.  It is the reference that is written out when doing @Html.ApplicationInsightsJavaScript(TelemetryConfiguration), which seems to work fine.
I am getting telemetry on AJAX calls, but can't seem to find a way to get them to recognized the authenticated user.

I should add, I'm using this JavaScript to try to get the telemetry to contain the authenticated user.  I pulled this JavaScript from various guides on using App Insights:
        @Html.ApplicationInsightsJavaScript(TelemetryConfiguration)
        @if (User.Identity.IsAuthenticated)
        {
        <script>
            var appInsightsUserName = '@User.Identity.Name.Replace("\\", "\\\\")';
            appInsights.setAuthenticatedUserContext(appInsightsUserName.replace(/[,;=| ]+/g, "_"));
        </script>
        }

Some obvious first questions:
Is the script snippet being output on your page?
Do you have a value for User.Identity.Name that you can see in your variable appInsightsUserName if you debug in the browser?
Assuming you do have the variable set as expected, just to be thorough, is the output of the regular expression replace call still what you expect?

Is the script snippet being output on your page?

Yes, below is the full script that is output in the rendered page's head tag (with instrumentation key removed):
        <script type="text/javascript">
  var appInsights = window.appInsights || function(config){
  function s(config){
    t[config] = function(){ var i = arguments; t.queue.push(function(){ t[config].apply(t, i)})}
  }
  var t = { config:config }, r = document, f = window, e = "script", o = r.createElement(e), i, u; for (o.src = config.url || "//az416426.vo.msecnd.net/scripts/a/ai.0.js",r.getElementsByTagName(e)[0].parentNode.appendChild(o),t.cookie=r.cookie,t.queue=[],i=["Event","Exception","Metric","PageView","Trace"];i.length;)s("track"+i.pop());return config.disableExceptionTracking||(i="onerror",s("_"+i),u=f[i],f[i]=function(config, r, f, e, o) { var s = u && u(config, r, f, e, o); return s !== !0 && t["_" + i](config, r, f, e, o),s}),t
  }({
  instrumentationKey: '--------------------------------------------------------'
});
  window.appInsights = appInsights;
  appInsights.trackPageView();
</script>
        <script>
            var appInsightsUserName =<EMAIL_ADDRESS>            appInsights.setAuthenticatedUserContext(appInsightsUserName.replace(/[,;=| ]+/g, "_"));
        </script>

Do you have a value for User.Identity.Name that you can see in your variable appInsightsUserName if you debug in the browser?

Yes, it contains a correct user name value, as you can see above.

Assuming you do have the variable set as expected, just to be thorough, is the output of the regular expression replace call still what you expect?

The Javascript regex never has a chance to execute because of the error "appInsights.setAuthenticatedUserContext is not a function".

That shows what is on the appInsights reference, which proves that it was initialized.  The "setAuthenticatedUserContext" which is documented all over the place (such as here: https://azure.microsoft.com/en-us/documentation/articles/app-insights-api-custom-events-metrics/#authenticated-users) is simply missing.

We've investigated and discovered that the JavaScript snippet output by the line "@Html.ApplicationInsightsJavaScript(TelemetryConfiguration)" is out of date.
I will update that code and publish the fix in the next release.
Until then you can get an updated JavaScript snippet to use by going to the portal and copying it from there (see here: https://azure.microsoft.com/en-us/documentation/articles/app-insights-javascript/).

@dnduffy, that workaround resolved my issue - thanks!  For the benefit of others who come across this issue, here is the complete code at the end of my head tag:
        @*@Html.ApplicationInsightsJavaScript(TelemetryConfiguration)*@
        <script type="text/javascript">
            // TODO: This entire script tag replaces the above line due to a bug (https://github.com/Microsoft/ApplicationInsights-aspnetcore/issues/218)
            //       With the next release of the Application Insights package, try to remove this script tag and uncomment the above line.
            var appInsights = window.appInsights || function (config) {
            function r(config){t[config]=function(){var i=arguments;t.queue.push(function(){t[config].apply(t,i)})}}var t={config:config},u=document,e=window,o="script",s=u.createElement(o),i,f;for(s.src=config.url||"//az416426.vo.msecnd.net/scripts/a/ai.0.js",u.getElementsByTagName(o)[0].parentNode.appendChild(s),t.cookie=u.cookie,t.queue=[],i=["Event","Exception","Metric","PageView","Trace"];i.length;)r("track"+i.pop());return r("setAuthenticatedUserContext"),r("clearAuthenticatedUserContext"),config.disableExceptionTracking||(i="onerror",r("_"+i),f=e[i],e[i]=function(config,r,u,e,o){var s=f&&f(config,r,u,e,o);return s!==!0&&t["_"+i](config,r,u,e,o),s}),t
            }({
<EMAIL_ADDRESS>            });
            window.appInsights=appInsights;
            appInsights.trackPageView();
        </script>
        @if (User.Identity.IsAuthenticated)
        {
        <script>
            var appInsightsUserName = '@User.Identity.Name.Replace("\\", "\\\\")';
            appInsights.setAuthenticatedUserContext(appInsightsUserName.replace(/[,;=| ]+/g, "_"));
        </script>
        }

Note the TODO for when the true fix for this issue gets released.  I'll be watching this issue.

We should have a release with the fix in it soon, just coordinating with the release of ASP.NET Core 1.0.0.

Issue seems to be fixed as of release - thanks!

after installing Microsoft.ApplicationInsights.AspNetCore 1.0.1 or 1.02 on asp.net core application i get this error on restoring nuget packages:
Package Microsoft.ApplicationInsights 2.1.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0)


The camera entity camera.(...) does not support requesting width and height, please open an issue with the integration author

core 更新到2021.9.1 后日志出现类似的告警
设备型号：madv.cateye.dlowle
日志： 2021-09-03 10:45:26 WARNING (MainThread) [homeassistant.components.camera] The camera entity camera.(...) does not support requesting width and height, please open an issue with the integration author

最新提交：https://github.com/al-one/hass-xiaomi-miot/commit/cc9a6c7300486ba9fdb8b4ac55000fbece92c245 已修复。


RegexQuery performance: make it possible to cache Regexes

See https://github.com/tantivy-search/tantivy/issues/639

Can you check if https://github.com/tantivy-search/tantivy/pull/641 works for you?

Closed in favor of #641

Can you check if #641 works for you?

It does, thank you! :)

Awesome thank you, and sorry for the confusing instructions!


Add Support process and roadmap docs

What this PR does / why we need it
Add Support process and roadmap docs
Which issue(s) this PR fixes

Fixes #N/A
Describe testing done for PR

Release note

Add support and roadmap docs

Additional information
Special notes for your reviewer

one more update...


Test/list downloaded episodes

Codecov Report

Merging #246 (2c7cb4e) into main (cd7bc94) will increase coverage by 2.21%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #246      +/-   ##
==========================================
+ Coverage   59.91%   62.13%   +2.21%
==========================================
  Files          75       75
  Lines         676      676
  Branches      200      200
==========================================
+ Hits          405      420      +15
+ Misses        258      243      -15
  Partials       13       13

Impacted Files
Coverage Δ

.../lib/features/like-episode/api/favourites-table.ts
100.00% <0.00%> (+25.00%)
:arrow_up:

...s/download-episode/lib/list-downloaded-episodes.ts
100.00% <0.00%> (+100.00%)
:arrow_up:

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 cd7bc94...2c7cb4e. Read the comment docs.


[move-only] Change the destructure through deinit error to lookup the deinit at the AST level rather than the SIL level.

I also added a note telling the user where the deinit is.
rdar://101651138

@swift-ci smoke test


[IOTDB-165][Documents][TsFile] Fix a example and update tsfile documents.

Fix a problem caused by the deleted position() method.

I  feel a little confusing, why call position() here (but we do not call it in previous version)?

Because in the previous PR , the position() call has been deleted.

why I delete position() method?

This was requested change came from @jt2594838. @qiaojialin and I talked personally, then we decided to delete it.
This was literally because every time when you new a TsFileSequenceReader object and its constructor would call loadMetadataSize() method, loadMetadataSize() would call position() method. In local mode, it actually called FileChannel.position() method. As we know, it was a method would move the position pointer. So questions were Why to move the position pointer? It is really necessary to move the position pointer when I new a TsFileSequenceReader object?.

why to move the position pointer?
Let's firstly check out TsFile structure.

You can find MetaMarker.CHUNK_HEADER=0x1 after Magic String. There is a method called readMarker() to read MetaMarker.CHUNK_HEADER=0x1.
  /**
   * read one byte from the input. <br> this method is not thread safe
   */
  public byte readMarker() throws IOException {
    markerBuffer.clear();
    if (ReadWriteIOUtils.readAsPossible(tsFileInput, markerBuffer) == 0) {
      throw new IOException("reach the end of the file.");
    }
    markerBuffer.flip();
    return markerBuffer.get();
  }

There is no position() method in readMarker(). So it used to use position() in loadMetadataSize() to move the position pointer. But there are many tests and examples use readMarker(). After you remove position() in loadMetadataSize(), you have to use position() before readMarker() or use readMarker(TSFileConfig.MAGIC_STRING.getBytes().length+TSFileConfig.MAGIC_STRING.getBytes().length). @qiaojialin suggested me to use the first one and I just done it. I also suggest add @Deprecated before readMarker() in case someone else to use it.
It is really necessary to move the position pointer when I new a TsFileSequenceReader object?
No. Move the position pointer when you really need it.
What other jobs does this pr have?
I want to update some tsfile documents in this pr.

@jixuan1989 @EJTTianYu


Missing network drive

I just downloaded and really liking it so far. I have ran into an issue though. I am missing network drive in the left pane, specifically P drive. it is a shared folder on an extra computer just like the other mapped drives shown. I am not sure why P is missing.

Could you send me the logs that can be exported from the settings?

I uninstalled and reinstalled the software, which seemed to fix the issue. Sorry for the false alarm.
Chris

From: Ruofan @.>
Sent: Tuesday, July 20, 2021 8:25 PM
To: zhuxb711/RX-Explorer @.>
Cc: clutz2000 @.>; Author @.>
Subject: Re: [zhuxb711/RX-Explorer] Missing network drive (#301)
Could you send me the logs that can be exported from the settings?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/zhuxb711/RX-Explorer/issues/301#issuecomment-883814310, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACKAEE37ZZMVUMXSQ3DXPI3TYYOYFANCNFSM5AWLSV2A.

Never mind. I will close this issue. Thanks.


Issues while trying to start Thaumcraft 6 Beta 19

Hello everyone, as you guessed, I have issues with the latest Thaumcraft 6 upadate.
I correctly installed forge-1.12.2-<IP_ADDRESS>55, (which is not the latest or more optimized version, but this version worked in Youtube tutorials). Even though I tried with a more recent version of forge: forge 1.12.2-<IP_ADDRESS>05, but nothing.
When I start the game with forge 2655, it instantly crashes and displays this error: The game crashed whilst initializing game, Error: java.lang.NoClassDefFoundError: bnk.
If you have any tips that would help me understand why it does not work, it would be very helpful.
Btw I am running on Windows 8

This is all I can get, I cannot provide anything more.

There should be a crash-reports folder inside your minecraft folder, if not provide the latest.log from the log folder (use gist or pastebin please)

Ok So I looked at the logs, and I found the problem !
I had old mods that were for 1.8.9, I just had to delete them and it works
So thanks for your help ahah !


linear-regression-scratch.md 损失函数计算有点问题

Thanks. You are correct. However, since this is the very first section of the entire book, we prefer leaving the code as simple as possible without any sanity check.

使用 l.mean 平均损失不是更加简单吗？


Test failures with python3.3

Originally reported by: iElectric (Bitbucket: iElectric, GitHub: Unknown)

#!python

======================================================================
ERROR: test_setup_requires (setuptools.tests.test_easy_install.TestUserInstallTest)
Regression test for Distribute issue #318
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/nix-build-python3.3m-setuptools-2.0.2.drv-0/setuptools-2.0.2/setuptools/dist.py", line 287, in fetch_build_egg
    cmd = self._egg_fetcher
AttributeError: 'Distribution' object has no attribute '_egg_fetcher'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/nix-build-python3.3m-setuptools-2.0.2.drv-0/setuptools-2.0.2/setuptools/tests/test_easy_install.py", line 268, in test_setup_requires
    run_setup(test_setup_py, ['install'])
  File "/tmp/nix-build-python3.3m-setuptools-2.0.2.drv-0/setuptools-2.0.2/setuptools/sandbox.py", line 50, in run_setup
    lambda: execfile(
  File "/tmp/nix-build-python3.3m-setuptools-2.0.2.drv-0/setuptools-2.0.2/setuptools/sandbox.py", line 100, in run
    return func()
  File "/tmp/nix-build-python3.3m-setuptools-2.0.2.drv-0/setuptools-2.0.2/setuptools/sandbox.py", line 52, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "/tmp/nix-build-python3.3m-setuptools-2.0.2.drv-0/setuptools-2.0.2/setuptools/compat.py", line 78, in execfile
    exec(compile(source, fn, 'exec'), globs, locs)
  File "setup.py", line 2, in <module>
    """Distutils setup file, used to install or test 'setuptools'"""
  File "/nix/store/9yg4a0k52g1k2xy3iyim9s30nfs8zbcn-distutils.cfg-python3.3.3/lib/python3.3/site-packages/distutils/core.py", line 109, in setup
    _setup_distribution = dist = klass(attrs)
  File "/tmp/nix-build-python3.3m-setuptools-2.0.2.drv-0/setuptools-2.0.2/setuptools/dist.py", line 239, in __init__
    self.fetch_build_eggs(attrs.pop('setup_requires'))
  File "/tmp/nix-build-python3.3m-setuptools-2.0.2.drv-0/setuptools-2.0.2/setuptools/dist.py", line 263, in fetch_build_eggs
    parse_requirements(requires), installer=self.fetch_build_egg
  File "/tmp/nix-build-python3.3m-setuptools-2.0.2.drv-0/setuptools-2.0.2/pkg_resources.py", line 563, in resolve
    dist = best[req.key] = env.best_match(req, self, installer)
  File "/tmp/nix-build-python3.3m-setuptools-2.0.2.drv-0/setuptools-2.0.2/pkg_resources.py", line 801, in best_match
    return self.obtain(req, installer) # try and download/install
  File "/tmp/nix-build-python3.3m-setuptools-2.0.2.drv-0/setuptools-2.0.2/pkg_resources.py", line 813, in obtain
    return installer(requirement)
  File "/tmp/nix-build-python3.3m-setuptools-2.0.2.drv-0/setuptools-2.0.2/setuptools/dist.py", line 298, in fetch_build_egg
    for key in opts.keys():
RuntimeError: dictionary changed size during iteration

----------------------------------------------------------------------
Ran 124 tests in 3.453s

FAILED (errors=2, skipped=8)

Bitbucket: https://bitbucket.org/pypa/setuptools/issue/131

This occurs when using a distutils.dist.Distribution subclass, with Setuptools commands such as install.
Evidently something has recently changed such that Setuptools makes assumptions about the Distribution instance which will fail with Distutils's own classes.

This is a regression from Setuptools's expected behaviour

What is the prognosis for this regression? In my opinion this bug is not closed but the change, but I am not able to change the status of this issue.

Hi @bignose-debian. There are conditions where the monkeypatching of distutils fails to have the desired behavior. If you think there is a use-case that should be supported but is failing, please open a new ticket describing the error message and the conditions required to make it happen.
Your description above only describes a very generic scenario which happens all the time and is part of the Setuptools test suite, so we know that behavior isn't failing. Try to track down what it is about your environment that differs from the test suite or what other users are using without issues.


Accepts https as a property to set securityEnabled flag

Issue #, if available:

The error:

Build file '/local/home/dchanp/codebase/index-management/build.gradle' line: 441

* What went wrong:
Execution failed for task ':integTest'.
> `cluster{::integTest}` failed to wait for cluster health yellow after 40 SECONDS
    Unexpected end of file from server

Upon investigation I discovered that the integration tests triggered by opensearch-build do not pass security as an inline argument, instead they pass https (code-line). This cause the index-management tests in RC builds run with-security to fail with Not a valid SSL/TLS record: NotSslRecordException  which translates to mismatch between http vs https. The protocol is set here conditionally to https via securityEnabled flag via https://github.com/opensearch-project/index-management/blob/bc10724d39ced73e9f05ab94a554033d338784ce/build.gradle#L514

The culprit:
https://github.com/opensearch-project/index-management/blob/bc10724d39ced73e9f05ab94a554033d338784ce/build.gradle#L331

This PR adds an additional check to toggle securityEnabled flag by checking if https was passed.

The fix:

def securityEnabled = System.getProperty("security", "false") == "true" || System.getProperty("https", "false") == "true"

CheckList:

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@bowenlan-amzn @r1walz mind reviewing this one?


Token rules from truffleHog

Closing this. We shouldn't be picking up rules from trufflehog, which has a copyleft license. :)


Add SVU domain

@Modar-Nahhas First stage of verification passed, official domain is svuonline.org as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@Modar-Nahhas There are legal reasons that prohibit further processing of this request. Feel free to send an email to<EMAIL_ADDRESS>for more details. I have to close this request without merging. Thank you for your understanding.


Add cookie page content

We are planning to add Google Analytics to our services very soon, which will require cookies both for tracking and for users to be able to opt-in or opt-out.
We need to inform users about the cookies we are using, so they can make a fully informed decision.
This PR replaces the old cookie page with the new one by @calvin-lau-sig7. We also add a link to the cookie page back to the footer.

Note that this PR does not add the functionality to change cookie settings, that is in PR #1745.

@calvin-lau-sig7 I've made the latest changes from the draft doc (table captions, table header and additional sentence about essential cookies) - are you ok to re-review?
Preview here: https://deploy-preview-1747--govuk-design-system-preview.netlify.app/cookies

This is ready to go, but I'm holding off on merging it into the feature branch until the cookie page form PR has been merged, as there'll be a bit of rebasing to do and I think this'll be the easier PR to rebase.


HON vs RNN

I was reading your Sci. Adv. paper and I was wondering how HON compares to recurrent neural networks. I understand that HON allows for the use of other network analysis methods such as clustering and ranking but, unlike the classical Markov property (first order dependency), modern RNNs now allow for longer term "memory" even beyond 5th order. Can you please comment on the pros and cons as you see it?

Thank you @seanlaw for your interest, that is a great question.
HON does share quite a few similarities with RNN or other neural networks, in the sense that

They can both capture higher-order dependencies in sequential data
They both leverage some additional network structure to represent such information

However, to my understanding, they differ in the following ways:

Design principle. HON was built the goal of being compatible with the existing network analysis framework, such that methods from PageRank, clustering, anomaly detection that designed for networks (graphs) can still run on HON and leverage the higher-order structures. RNN on the other hand, is designed to solve classification, aiming for higher prediction accuracies. While HON changes the behavior of random walkers to "smarter" random walkers, HON is not meant to serve as a "next step predictor".
Network wiring. HON's edges are learned from the sequential data and can be sparse, or preserve typical real-world network structures such as hub-spoke. RNN's structures are usually pre-defined, grid-like, having clearly defined layers, and usually dense.
Edge weights. HON learns all its edge weights from the trajectory data, being the observed transitional probability from one higher-order node to another. RNN's edge weights not necessarily the transition probability, but are optimized for the classification/prediction task.
Nodes. HON's nodes map directly to the entities and has physical meanings. RNN's nodes may or may not have physical meanings.
Visualization/interpretation. HON can be visualized similar to networks, with each node representing the entity of interest (ports in global shipping, people in social network, etc). My banner picture on LinkedIn is an example of visualization of HON. On the other hand, the detailed structure of RNN may not be equally interpretable.
Target audience: HON originates from the network science community, and RNN originates from the machine learning community. Although there are recent work that bridge the two, for example, this recent paper When to Remember Where You Came from: Node Representation Learning in Higher-order Networks attempts to learn network structure from HON and use it as features for machine learning tasks.

Hope this comparison can help add some color to your question.

@xyjprc Thank you for the thorough response. It is certainly helpful!


Compilation error

Hi,
Im running

Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01) x86_64 GNU/Linux

While installing, after getting the libraries needed, going cmake this happens:

Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions: Assertion `needed != ((void *)0)' failed!

I tried searching but google didnt provide any useful solution, I hope you can.
Kinds regards,
Maxi

Just to confirm, is that error raised while running cmake, not even during compilation with make? In that case, it would have nothing to do with the application code, but with the environment.
Which version of Debian and cmake do you have installed?

No reply received in 2 months. Please re-open the ticket if the issue persists.


Categories page joins sub-categories that do not share the same main-category

Checklist

[x] I have read the contributing guidelines.
[x] There are no similar request on existing issues (including closed ones).
[x] I have read the project progress and know the current progress of the project.
[x] I was in the master branch of the latest code.

Is your feature request related to a problem? Please describe

Yes, I created 3 categories: A,B and C, where C is a sub-category both A and B share.
Created 2 posts with the following categories:
post_a: [A, C]
post_b: [B, C]
This makes the category page look like this:

A (1 category, 1 post)

C (2 posts)

B (1 category, 1 post )

C (2 posts)

As you can see above, C category is count is wrong and when you click on C, you get both post_a and post_b.
Describe the solution you'd like

As each post can have up-to 2 categories, the first category should be the "main-category" and the second is "sub-category".
The Categories page should not put together sub-categories that do not share the same "main category":

A (1 category, 1 post)

C (1 post)

B (1 category, 1 post )

C (1 post)

Describe alternatives you've considered

None
Additional context

categories page on my site

By design, plese ensure that each category appears only once on the Categories page.
If you want to share some meta across different categories of posts, consider using tag:
# post_a
---
categories: [A]
tags: [c]
---

# post_b:
---
categories: [B]
tags: [c]
---

By design, plese ensure that each category appears only once on the Categories page.
If you want to share some meta across different categories of posts, consider using tag:
# post_a
---
categories: [A]
tags: [c]
---

# post_b:
---
categories: [B]
tags: [c]
---

Thank you @cotes2020. Keep up the great work and thank you very much for you work so far.

Thank you @cotes2020. Keep up the great work and thank you very much for you work so far.


Unable to detect IP address from

Hello, this error is showing up for any websites.

Unable to detect IP address from

that's because crimeflare.herokuapp.com is down, don't expect it to get fixed

that's because crimeflare.herokuapp.com is down, don't expect it to get fixed

Why shouldn't we expect to get it fixed?...

that's because crimeflare.herokuapp.com is down, don't expect it to get fixed

@FALL1N1 Why shouldn't we expect to get it fixed?...

because the way it works is stupid and useless, it just obtains information from random websites like "dnstrails" and provides you with the results (note that you must have accounts with them and pay a fee)
it does not do any sort of "hacking" whatsoever and if the website you want to take down has no "SPF", "MX" or any other DNS records revealing their IP - you will never obtain the host unless you have a friend working at CloudFlare with high access

itu karena crimeflare.herokuapp.com sedang down, jangan harap bisa diperbaiki

@FALL1N1Mengapa kita tidak berharap untuk memperbaikinya?...

karena cara kerjanya bodoh dan tidak berguna, itu hanya memperoleh informasi dari situs web acak seperti "dnstrails" dan memberi Anda hasilnya (perhatikan bahwa Anda harus memiliki akun dengan mereka dan membayar biaya)
itu tidak melakukan "peretasan" apa pun dan jika situs web yang ingin Anda hapus tidak memiliki "SPF", "MX" atau catatan DNS lainnya yang mengungkapkan IP mereka - Anda tidak akan pernah mendapatkan host kecuali Anda memiliki teman yang bekerja di CloudFlare dengan akses tinggi

Yes, it works with CloudFlare database pools circa 2018. And it allows working on legacy sites that still rely on Cloudflare as WAF. But no updates for new sites using cloudflare. So it can be concluded that this tool only works on sites that have been around for a long time. The database we use is the same as the database at crimeflare.org which existed several years ago. And now there are no more updates regarding the database. Although I have a manual way to see the IP behind cloudflare but to realize it is quite difficult.

Of course, I already said that this tool does not guarantee 100% that it can see the real IP of cloudflare protected websites. The tool that guarantees is your own ability not with tools alone. Research manually or with a tool is needed to find the Original IP of the cloudflare waf.

if there is no misconfiguration and all old ip moved to cloudflare server and even you knew the real ip but already moved to cloudflare server it's gonna be useless

@zidansec Where can that database be found ?
If I can download it, then I would create an app that works offline, also I'm thinking about creating a DNS server based on it.
Thanks

This tool is back in operation, but need to know. This tool is not 100% accurate, because as I explained. The way this tool works takes advantage of Cloudflare's leaked database in 2018. New API https://crimeflare.zidansec.com

Cloudflare's leaked database in 2018

Where can we find that ? Thanks


incr to beta versions

Semver specification accepts beta versions, it would be nice to have this in incr.
This is useful for unfinished versions, not production ready, but they need to be deployed in a QA or Staging environment for tests or demo. Some tools need a change in the version to be able to trigger automatic pipes of CI/CD or a new version of a Docker image.
Examples:
Current version: v0.25
Command: incr mix beta
New version: v0.26-beta.1
Current version: v0.26-beta.1
Command: incr mix beta
New version: v0.26-beta.2
Current version: v0.26-beta.1
Command: incr mix minor
New version: v0.26

Hi @renatorfr,
Thank you for bringing up the suggestion to add support for both pre-release and build metadata in incr.
The SemVer specification is open-ended when it comes to pre-release and build metadata. This openness allows for flexibility but can also lead to ambiguity in certain implementations. This variability makes it challenging to standardize and automate version increments. Implementing logic for correctly sorting and prioritizing versions, especially since pre-release versions have a lower precedence than normal versions, can be tricky.
Given that the specification provides room for interpretation, I would like to ensure that our approach aligns with the needs and expectations of the majority of our users.
Again, thanks for your suggestion, I am actively exploring ways to address these challenges.

I agree and understand the chalenge of doing this feature.
But I think that we could start with a scoped version, ie accepting just beta versions 0.9.0 < 1.0.0-beta.1 < 1.0.0-beta.2 < 1.0.0, which complies with SemVer spec but it's easier to implement than a 100% free choice for pre-releases


[Refactor] Improve MediaRenderer component and update token components

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#3602  👈
#3601
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @jnsdls and the rest of your teammates on  Graphite


Implemented S-Expression formatter

I'm currently implementing an alternative completion package for Emacs, and when I looked at the output formats, I thought emacs would be the best, but I don't really understand how
client_auto_complete,,func(cli *rpc.Client, Arg0 []byte, Arg1 string, Arg2 int, Arg3 gocode_env) (c []candidate, d int)

is better or worse for emacs than anything else (but maybe I'm just missing something). So my suggestion is to add an sexp (S-Expression) format, next to emacs -- for backwards compatibility -- to make reading easier (just use read).
I've added some tests and the documentation I saw being necessary, but in case I missed something, please do tell me, and I'll try my best to fix it.

Unless I'm mistaken, the main CI error is this one, right: https://travis-ci.org/mdempsky/gocode/jobs/520410670#L934
Since this issue is related to the tests not being written for the master-branch version of go, I really don't know how this problem should be correctly addressed.
I'm not that great at reading the output, but please tell me if I'm mistaken and there is something I should have fixed or done differently.
This patch is the basis for my go completion-at-point backend, and seeing it being merged would be very nice.


Updating Fork from Main

Per  @sgirdhari make sure to update your fork with the latest from main before the next episode.

Closing. Author opened by mistake.


Support changing position of LogBox

Summary
LogBox is extremely useful! Thanks for it.
I observed that sometimes it's blocking my interactions with the app, but I'd like to keep it visible.

So I've added a small button for switching position to top or bottom of the screen

Tested on iOS and Android.
Changelog
[General] [Added] - Possibility to change the position of log box.
Test Plan
Warnings are immediately visible after running RNTester app.

Hey @osdnk, thanks for submitting this!
I agree we should solve this problem. My thinking in the original designs is that we would allow you to drag and move the notifications, like you can do with FLEX.
What do you think?

Can we please move this forward soon, please? This is infuriating if you're developing with something like React Navigation, and using a Tab Navigator.

@FilipMaslovaric sorry for the poor experience. Note that this isn't a regression with LogBox. Previously, YellowBox and RedBox both covered more of the screen than LogBox.
But we should make the dragable, instead of using a configuration, so I'm closing this.


Rebuild page in a mobile friendly technology stack

Is your feature request related to a problem? Please describe.

Initial page load is quite slow, especially on mobile
Large (almost 800kB) page size just for rendering some non-interactive static HTML
Page requires JavaScript execution in order to load and function
Build / Deployment time is slow (for what this project is)

Describe the solution you'd like
Remove Blazor WASM dependency and utilize static site generator (like jekyll) that builds the page as a finished HTML every time the corpses.json is updated.
Describe alternatives you've considered
Any other static site generator.
Additional context
Mobile perfomance score in Lighthouse:

I'd be happy to help with this :)

Thanks for the input. I am looking between Jekyll, Gatsby, and Next.js for SSG right now. There's justification for why this was initially built with Blazor, but as you highlight it's not performant nor the right solve for this project long term. Please bear with me as I work towards implementing this!


Use unbuffered IO for faster printing to stdout, static linking to OpenSSL

Use unbuffered IO for faster printing, see https://llogiq.github.io/2017/06/01/perf-pitfalls.html for more
Use statically linked rustls over dynamically linked openssl.

Compared to the benchmark in #129 from the first post (ran hyperfine --prepare 'sync; echo 3 | sudo tee /proc/sys/vm/drop_caches' './target/release/tldr tar'). I don't know the exact command that the author of outfieldr ran, but you can also see a comparison I posted there.
Benchmark #1: ./target/release/tldr tar
  Time (mean ± σ):      29.3 ms ±   6.2 ms    [User: 1.7 ms, System: 4.3 ms]
  Range (min … max):    24.3 ms …  50.1 ms    22 runs

Updated according to the reviews, I'm on a different computer so can't run the benchmark again but there shouldn't be a difference.

I actually started converting the unwraps to proper errors, but figured it was out of the scope of this PR. Happy to fix though, it may take a few days as we are celebrating our Independence Day tomorrow 😄

I think I managed to fix the requested changes, this is ready for another round of reviews.

Done :smiley:

Thanks for the first round of reviews, @niklasmohrin. I'll try to take a look this weekend!


PKGBUILD URLS to chromium_version.txt and revision.txt not working

https://github.com/ungoogled-software/ungoogled-chromium-archlinux/blob/master/PKGBUILD
curl -sL https://raw.githubusercontent.com/Eloston/ungoogled-chromium/${_ungoogled_version}/chromium_version.txt
404: Not Found
curl -sL https://raw.githubusercontent.com/Eloston/ungoogled-chromium/${_ungoogled_version}/revision.txt
404: Not Found
When adding /master/ after ungoogled-chromium/
it works.
curl -sL https://raw.githubusercontent.com/Eloston/ungoogled-chromium/master/${_ungoogled_version}/chromium_version.txt
78.0.3904.108
curl -sL https://raw.githubusercontent.com/Eloston/ungoogled-chromium/master/${_ungoogled_version}/revision.txt
1

I don't have any issues with those URLs based on the PKGBUILD in master after setting _ungoogled_version to the value shown in the PKGBUILD. Perhaps this was a temporary issue?

Yes, this is invalid. Sorry for the noise.


Swipe through events on mobile

Proposal: integrate the swipe.js jquery plugin with the current mobile layout to produce a UI like this (another example is AirBnB mobile):

This might require a subtle refactor of the #detail element to contain multitudes - as it stands the content is swapped instead of the "hide most of the card elements" strategy in the codepen above.

I'm doing this now.

Can you tell me where you found that swipe plugin?  I see //cdnjs.cloudflare.com/ajax/libs/swipe/2.0/swipe.min.js but it'd be helpful if I could read the directions/usage info.

This is it; kinda limited docs, but seems like a basic pattern.

I'm working on this and https://github.com/DevProgress/hrc-events/issues/55 in https://github.com/kielni/hrc-events/tree/swipe-info; should be done in one more day.

Nailed. it.


Does the earth  server support imagery services conforming to OGC specifications?

Before opening an issue
Questions should go to the GEE mailing list (https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!forum/google-earth-enterprise)
or Slack Open GEE channel (http://slack.opengee.org/) GitHub issues are for bug reports and suggestions for new features.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop

Server OS: [e.g. CentOS 7.6]
Client OS: [e.g. Windows 10]
Browser [e.g. chrome, safari]
Version [e.g. 5.2.5]

Additional context
Add any other context about the problem here.

I published an imagery service that has a corresponding interface in cesium that can be referenced, but it seems that this service does not conform to the WMTS service of OGC. How to get the URL address of the OGC specification?


Advice for using phy in Freeciv3D

Hello! I would like advice about how to use this phy physics engine in Freeciv 3D, which uses Three.js.
How can I use this physics engine, and what in the game client would benefit from a physics engine? Thank you!
https://github.com/fciv-net/fciv-net
https://www.fciv.net

Hello well is more for a action game :) fps, platformer ...
but you can use in post prod for destruction effect.


Use resolved impl_paths in recursion.rs

To check for termination in the presence of traits, we model traits as typeclasses that are encoded as "dictionary" datatypes whose fields contain the methods of the trait.  For example, we model trait T { fn f(); fn g(); } as something like struct T { f: Fn(), g: Fn(), }.  An impl for a trait is modeled as (1) implementing the methods as functions and (2) constructing a dictionary datatype value that contains those functions in the datatype fields.  Note that the methods are constructed first, before the datatype for the impl is constructed.  Therefore, the methods do not recursively have access to their own impl.
This has been the overall design for a while, but Verus has not taken full advantage of this design -- the current cycle checking is overly conservative.  In particular, when there are direct calls to an impl's methods, we should be able to model those as direct calls to the modeled methods, not as indirect calls made by looking up the methods in the dictionary.
Currently, recursion.rs models method calls as lookups in a dictionary even when the call is statically resolved (except for one special case allowing direct intra-impl method calls).  As far as I can tell, this is a historical accident on my part: my commit https://github.com/verus-lang/verus/commit/5c37959340b64401d92e7e6ac3399b9eebeb4a00 introduced impl_paths as part of a bug fix, but used the unresolved impl_paths rather than the more precise resolved impl_paths, and no subsequent commit has revised this.
This pull request simply changes recursion.rs to use the resolved impl_paths when they are available.  This subsumes the previous special case for intra-impl method calls.  It also enables a couple tests that were marked as TODO items.  Note that the test_broadcast_forall_causes_cycle test is now a postcondition failure rather than a cycle; this is because the underlying issue for this test was addressed separately by https://github.com/verus-lang/verus/pull/850 .

Spec functions are still encoded the same way. Is this a problem? i.e., is it possible that we:

Have some trait Tr with spec function f
Have some AIR axioms that are generic over f
In some trait impl, our 'recursion' checks treat a call to f as statically resolved
But the proof of that same trait impl still has access to the generic AIR axioms about f

My understanding is that this test:
        mod M {
            pub trait Tr {
                spec fn f() -> bool;

                proof fn bad() ensures false;
            }

            // note the external_body isn't necessary here
            #[verifier::broadcast_forall]
            #[verifier::external_body]
            pub proof fn proves_false_requiring_trait_bound<T: Tr>()
                ensures #[trigger] T::f() == !T::f(),
            {
                T::bad();
            }
        }

        use M::*;

        struct X { }

        impl Tr for X {
            open spec fn f() -> bool
            {
                true
            }

            proof fn bad() {
                other_bad();
            }
        }

        pub proof fn other_bad()
            ensures false, // FAILS
        {
            // It is important that the Trait-Impl-Axiom axiom for "impl Tr for X"
            // (axiom (tr_bound%M.Tr. $ TYPE%X.)
            // appears after "impl Tr for X" and its dependencies.
            // Since "impl Tr for X" depends on other_bad,
            // this ensures that the the Trait-Impl-Axiom axiom for "impl Tr for X"
            // also appears after other_bad.
            // This ensures that the broadcast_forall for proves_false_requiring_trait_bound
            // isn't enabled (its precondition isn't satisfied) for "Tr for X" until
            // after "impl Tr for X" and other_bad are checked.
            // Otherwise, the axiom could be used here in other_bad to prove false.
            let t = X::f();
        }

checks for the potential issue that @tjhance is raising. Is that right?

@utaal-b I just realized we never looped you in, but chris and I discussed this offline and found a semi-related issue (#974) but otherwise agreed it's fine


chore: remove dependency on paho matcher

Issue #, if available:
Description of changes:
This change imports the code for org.eclipse.paho.client.mqttv3.MqttTopic#isMatched into the project, with code style changes.
Why is this change necessary:
This removes our dependency on paho library (aside from MQTTClient of course), allowing us to switch out the implementation.
How was this change tested:
Any additional information or context required to review the change:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Update pr description since you changed what you're doing.

Update pr description since you changed what you're doing.

thanks for the catch, updated


VCP crashes on F4 when compiled with -O2

This is a super frustrating bug, and has pushed back the release of the F4 firmware nearly 3 months.  \
The crash always lands me in a VCP interrupt.  When using the debugger, it appears that the pointer to the USB_OTG registers gets dereferenced.  I can sometimes go hours without seeing the problem, and then on the same build, see it after only 30 seconds.  It makes the problem really hard to work with.
My progress so far:

If I optimize all the .c files, but not the .cpp files, I don't get a crash
If I optimize the flight stack, I get a HardFault_IRQ when trying to dereference a pointer to the USB_OTG registers, which has mysteriously been set to NULL
If I implement HardFault_IRQHandler I instead get a USART6_IRQ

The call tree under the USB_OTGHandler is quite deep.  I'm wondering if we are getting an overrun on that interrupt stack, and somehow calling it from the flight code. Another hypothesis is a stack overflow.  The USART6_IRQHandler is next in flash after HardFault.   That could also cause that behavior.
I would love input on any ideas for debugging this issue. It's really mysterious to me.

Put a question on stackoverflow about this, hopefully we can figure this out soon - I would love to be able to use Eigen on the F4. [https://stackoverflow.com/questions/50311851/stm32-vcp-driver-pointer-becomes-invalid-only-with-optimization]

Figured out why it happens - now I just need to solve it.   Here is the problem function:
static uint32_t DCD_HandleRxStatusQueueLevel_ISR(USB_OTG_CORE_HANDLE *pdev)
{
  USB_OTG_GINTMSK_TypeDef  int_mask;
  USB_OTG_DRXSTS_TypeDef   status;
  USB_OTG_EP *ep;
  __disable_irq();

  /* Disable the Rx Status Queue Level interrupt */
  int_mask.d32 = 0;
  int_mask.b.rxstsqlvl = 1;
  volatile uint32_t GREG_PREV = (uint32_t) pdev->regs.GREGS;
  USB_OTG_MODIFY_REG32( &pdev->regs.GREGS->GINTMSK, int_mask.d32, 0);

  /* Get the Status from the top of the FIFO */
  status.d32 = USB_OTG_READ_REG32( &pdev->regs.GREGS->GRXSTSP );

  ep = &pdev->dev.out_ep[status.b.epnum];

  volatile uint32_t dest = (uint32_t)ep->xfer_buff;
  volatile uint32_t pdev_loc = (uint32_t) pdev;
  switch (status.b.pktsts)
  {
  case STS_GOUT_NAK:
    break;
  case STS_DATA_UPDT:
    if (status.b.bcnt)
    {
      // pdev is overwritten here
      USB_OTG_ReadPacket(pdev, ep->xfer_buff, status.b.bcnt);
      ep->xfer_buff += status.b.bcnt;
      ep->xfer_count += status.b.bcnt;
    }
    break;
  case STS_XFER_COMP:
    break;
  case STS_SETUP_COMP:
    break;
  case STS_SETUP_UPDT:
    /* Copy the setup packet received in FIFO into the setup buffer in RAM */
    USB_OTG_ReadPacket(pdev , pdev->dev.setup_packet, 8);
    ep->xfer_count += status.b.bcnt;
    break;
  default:
    break;
  }

  /* Enable the Rx Status Queue Level interrupt */
  // Something bad has happened to pdev here
  USB_OTG_MODIFY_REG32( &pdev->regs.GREGS->GINTMSK, 0, int_mask.d32);
  __enable_irq();

  return 1;
}

The problem happens when USB_OTG_ReadPacket is called.  Some sleuthing (with some suggestions from @Kamil on stackoverflow - who rocks by the way) revealed that ep->xfer_buff is only 8 bytes away away from pdev

variable
location

pdev
0x20001900

ep->xfer_buff
0x20001908

This causes problems because  doesn't work, because USB_OTG_ReadPacket blindly throws bytes on ep->xfer_buff (in the case of one particular faliure, it threw 24 bytes on, totally overwritting the pdev structure, which holds the USB OTG current state.
Anyway, I'm pretty sure that ep->xfer_buff is pointing to part of a bigger buffer.  I'll bet it just needs to be reset, or the buffer it uses needs to be allocated more space.  Now, all I have to do is search through a million source files to find that buffer and what to do about it.  Why the allocation is different in when the code is optimized is a little weird.  I hope that will become clear as I dig a little deeper.

It appears to be the USB_Rx_Buffer which is overflowing - here is the relevant part of the .map file.  Note that the USB_OTG_dev is right after the USB_Rx_Buffer, and it's the same address as pdev` above.
 COMMON         0x20001074      0x88c ../../boards/airbourne/build/rosflight/usbd_cdc_core.o
                0x20001074                usbd_cdc_OtherCfgDesc
                0x200010b8                APP_Rx_Buffer
                0x200018b8                CmdBuff
                0x200018c0                USB_Rx_Buffer
 COMMON         0x20001900      0x41c ../../boards/airbourne/build/rosflight/usbd_cdc_vcp.o
                0x20001900                USB_OTG_dev

This appears to have been fixed by my fix, and reducing the buffer sizes to the values in Betaflight. I've run the VCP now for a combined 36 hours with these changes and have not seen the problem again.


background issue when scrolling a list picker

Please see the following bug report:
https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/mitappinventortest/6068fs9UQlM/1rKmNIPZIpoJ
I verified this and saw the following behavior:
I created a project whose only element is a listpicker.   I set the background color of the listpicker to orange.  I set the elements of the listpicker to the 12 numbers 1,2,3,4,5,6,67,8,9,10,11,12, so that it is too long to fit on the screen and needs to be scrolled.
When I scroll the listpicker, the background turns black while my finger is touching.   When I lift my finger, the background generally  turns back to orange but sometimes remains black.
Note the comment from the user about getting different behavior when compiling under App to Market.

@halatmit did you mean to close this issue?

Sorry, my mistake.  I'll fix it.
== Hal Abelson
<EMAIL_ADDRESS>Prof. of Comp. Sci. and Eng.
MIT Dept. of Elec. Eng. and Comp. Sci.
MIT Media Lab, Second Class Faculty
On Fri, Apr 24, 2015 at 8:48 PM, Jos<EMAIL_ADDRESS>wrote:

@halatmit https://github.com/halatmit did you mean to close this issue?
—
Reply to this email directly or view it on GitHub
https://github.com/mit-cml/appinventor-sources/issues/368#issuecomment-96111823
.

#369 fixes this issue and it has been merged into the "ucr" branch pending the next component release.


Update main branch post 24.11

This PR is subset of changes which need to be carried over to the main branch after the release

👋 FWIW I think that model fetching logic I took from a different repo (I think there was a docs repo at one point?), Looks like host that it was hosted on has been deregistered - so probably an issue you'll see elsewhere. Just part of an integration test .


Add Min and Max operators

System.Math contains Min and Max operators - these are not found in Generic.Math.
Instead of making the logic in client code, they could be added to Generic.Math.

@bstordrup sounds like a good idea! Unfortunately this library only exists to mirror the functionality of Jon Skeet's MiscUtil generic math API which, long ago, temporarily wasn't fully functional for all versions of netstandard during the turblent time of netstandard1.1-netstandard2.0. So this library fits its purpose and may not longer have much of a use compared to MiscUtil in modern .NET since those turblent times are over.
No updates are planned and the library serves its orignially minimally scoped purpose of being an old .netstandard/core compatible fork of Jon Skeet's MiscUtil generic math API.


Show different dialogues of same module

I have two modules Company and Customer.
Company has fields such as -  CompanyID, Name, Address, MobileNo, Email.
Customer has fields such as - ID, Name, Address, MobileNo, Email, Fax, Country.
I want to have a button to add new company in Customer dialog with fields - Name and address only.
But don't want to impact the existing dialog for Company.
How can I achieve this one?
Any help will be appreciated.
@volkanceylan
@awesomegithubusername
@rgilsimoes
@samdubey
@she-ll-b-rite

Make another form.cs and another dialog.ts with the fields you want
Or hide field that you don't want with a parameter passed to dialog constructor

@Estrusco
I tried the above part as you mentioned.
But instead of using both dialogs separately, it is invoking the new one.

I don't understand. If you have two dialog based on same row (e.g. CompanyForm + CompanyDialog and CompanyNewForm + CompanyNewDialog) you can open the first with new
CompanyDialog().loadNewAndOpenDialog() or new CompanyNewDialog().loadNewAndOpenDialog()

Check getFormKey in CompanyNewDialog (indicated with **)
    @Serenity.Decorators.registerClass()
    @Serenity.Decorators.responsive()
    export class CompanyNewDialog extends Serenity.EntityDialog<CompanyRow, any> {
        protected getFormKey() { return **CompanyNewForm**.formKey; }
        protected getIdProperty() { return CompanyRow.idProperty; }
        protected getLocalTextPrefix() { return CompanyRow.localTextPrefix; }
        protected getService() { return CompanyService.baseUrl; }

        protected form = new **CompanyNewForm**(this.idPrefix);

@Estrusco
I tried both the approaches you mentioned.

@Serenity.Decorators.registerClass()
@Serenity.Decorators.responsive()
export class CompanyNewDialog extends Serenity.EntityDialog<CompanyRow, any> {
protected getFormKey() { return CompanyNewForm.formKey; }
protected getIdProperty() { return CompanyRow.idProperty; }
protected getLocalTextPrefix() { return CompanyRow.localTextPrefix; }
protected getService() { return CompanyService.baseUrl; }
protected form = new **CompanyNewForm**(this.idPrefix);

This did not worked.
2. Tryed below one and worked, but label is still there.
@Serenity.Decorators.registerClass()
export class CompanyNewDialog extends CompanyDialog{
    constructor() {
        super();
        this.form.Address.element.hide();
        this.form.Country.element.hide();
    }
}

Attahcing the screenshots.

you try,
this.form.Address.element.parent().hide();


helm test: add lint rule for incorrect helm test hook types

When I purposely supply an incorrect/unsupported test hook, I'd expect to see a subsequent helm test invocation supply an error specific to this situation.
Changing the docs/examples/nginx/templates/service-test.yaml to the following:
apiVersion: v1
kind: Pod
metadata:
  name: "{{.Release.Name}}-service-test"
  annotations:
    "helm.sh/hook": test-pass
spec:
  containers:
    - name: curl
      image: radial/busyboxplus:curl
      command: ['curl']
      args:  [ '{{ template "fullname" .}}:{{default 80 .Values.httpPort}}' ]
  restartPolicy: Never

(Only test hooks supported as of this writing are test-success and test-failure, as seen here)
After example chart install:
$ bin/helm test needled-starfish
Error: no tests found

Two semi related pieces concerning this:

We don't necessarily have this type of user experience precedent with any of the other hook types. For example, we don't provide errors on pre and post update or install hooks if you mis-typed them, so I'm hesitant about changing it up the experience for the test hook.

Currently, all unknown hooks get skipped/thrown away while processing hooks on helm install. test-pass would technically be an unknown hook. That means it doesn't get saved on the release, so when we go to run tests, there is not a way for us to see that a user might have mis-typed the test hook.

Given this situation, I think we might want to instead consider a helm lint rule for checking hook types. What do you think @vdice ?

Moving to 2.3.0, since this doesn't appear to be a simple bug fix. We can move it to 2.2.2 if that ends up being better.

@michelleN thank you for the background; indeed, as this appears to be a specific instance of a more general issue, I think a helm lint rule might be the right course of action.

@michelleN What should be done with this ticket?

@technosophos I changed the title of the ticket to add a lint rule instead of throwing an error. Let's add this to the release after 2.3.0
cc/ @vdice - let me know if this sounds like a good plan to you.

We have nobody assigned to work on this issue, so moving to 2.5.0 and adding help wanted.

Again, nobody picked up work on this. Moving to 2.6 and marking it as Help Wanted.

Bumping to 2.7. If nobody picks this up, I'll move it back to the Upcoming - Minor list.

Moved back to Upcoming - Minor

related discussion: #2694


The div dosen't have animation to it ..

As i sharing you the screenshot of the div which don't have animation to it ..
this the image --->

please assign me this issue under gssoc 24 extd, hactoberfest accepted , atleast level 2 because div enhancement are hard
@ANSHIKA-26

we do not need animation here


Migrate hero fragment to page bundle

What this PR does / why we need it: Migrate data files to page bundles

Special notes for your reviewer: I came up with this migration for the hero fragment. Seems i'm still getting something wrong. i'd like you to review and provide feedback.
Release note:

Latest code iteration using dictionaries to pass page bundle and/or self data in:
single.html:
{{ range .Resources }}
  {{ partial "fragments/items.html" (dict "self" .) }}

  {{ partial "fragments/member.html" (dict "resources" $.Resources "self" .) }}
{{ end }}

fragments/items.html:
{{ $items := .self.Params }}

fragments/member.html:
{{ $member := .self.Params }}

{{ $name := .self.Name }}
{{ $name_t := strings.TrimSuffix ".md" $name }}
{{ $members := .resources.Match (printf "%s/*" $name_t) }}

{{ range $members }}
  {{ .Content }}
{{ end }}

A few things:
You are using a number in the content/index/member/1-member.md just to make it easier as they are not named yet or still a left over idea from the ?
Also (sidenote): we probably should switch from naming the fragment content file the same as the actual fragment. It was necessary before as we used that name to retrieve the data, but now we check the actual fragment type, so it's a  instead of
Currently the member files have one member in a array/list of members. That can be simplified as each file only has one anyway so a list shouldn't be necessary.
Also a lot of the data in these member files is duplicated. (Will give an example below)
Couldn't find a general content/index/my-awesome-team.md file. Aka no central file for the fragment.
So the idea would be something like the following.
content/index/my-awesome-team.md:
++++

content/my-awesome-team/gopher.md:
++++
name = "Tiny Gopher"
weight = 10
joined = "2017-10-17"
image = "tinygopher.png"
position = "Gopherineer"

reportsTo = "Lead Gophineer"
livesIn = "[Iceland](https://www.google.com/maps/place/Iceland/)"
scope = [
  "Gopherineering for various tasks",
  "Contributor for [Goper Team A](#)",
  "Gopher Community Member"
]

[[icons]]
  icon = "fa-twitter"
  link = "#"
[[icons]]
  icon = "fa-linkedin-in"
  link = "#"
++++

Really tiny Gopher

Some more text to showcase the capabilities:
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Curabitur a lorem urna.
Quisque in neque malesuada, sollicitudin nunc porttitor, ornare est.
Praesent ante enim, bibendum sed hendrerit et, iaculis laoreet felis.
Morbi efficitur dui sit amet orci porttitor, nec tincidunt turpis elementum.

Looks good. Got it I also agree with renaming the content files.

Small addition. The migration from "description" to using .Content aka the content section under the page fragment is still necessary in the member files.

We might also change "name" to "title" for each member. This way the page name within the .Resources is correct.

A few things that I noticed going through the code:

[ ] embed-subsribe.md -> embed-subscribe.md
[ ] content structure with subdirectories -> should be /content/index/logo_only.md not /content/logo/logo_only.md (I think I understand the idea behind your structure, but currently grouping the fragments doesn't work)
[ ] due to page bundle usage the items are all lowercased: mediaSource -> mediasource

[ ] $embed.mediaSource -> $embed.mediasource
[ ] $contact.postURL -> $contact.posturl
[ ] $contact.logoTitle -> $contact.logotitle <- and others

[ ] about.md, about-split.md, nested.md -> about/|about-split/|nested/index.md
[ ]

General:

[ ] .description -> .Content on various fragments
[ ] image migration to resources with fallback to static/
[ ] responsive table fixes (similar to unimportant)
[ ] enable single page content aka print .Content for about|about-split|nested

Current PoC code for member.html
{{ $memberf := .self.Params }}
{{ $name := .self.Name }}
{{ $name_t := strings.TrimSuffix ".md" $name }}
{{ $members := .resources.Match (printf "%s/*" $name_t) }}
{{ "" | safeHTML }}
{{ $bg := $memberf.background | default "light"}}

      {{ with $memberf.title }}

              {{- . | markdownify -}}

      {{ end }}
      {{ with $memberf.subtitle }}

              {{- . | markdownify -}}

      {{ end }}

        {{ range $members }}
          {{ $member := .Params }}

                {{- .Title -}}

              {{ with $member.position }}

                  {{- . -}}

              {{ end }}
              {{ with $member.reportsto }}

                  {{- i18n "member.reportsTo" }} {{ printf " %s" . | markdownify -}}

                {{ end }}
              {{ with $member.livesin }}

                  {{- i18n "member.livesIn" }} {{ printf " %s" . | markdownify -}}

              {{ end }}
              {{ if $member.scope }}

                  {{ range $member.scope }}

                      {{- . | markdownify -}}

                  {{ end }}

              {{ end }}
              {{ with $member.icons }}

                {{ range . }}

                {{ end }}

              {{ end }}
                {{ with .Content }}

                      {{- . | markdownify -}}

                {{ end }}

          {{ end }}

Alright, this sounds workable. I'll go ahead and fix the remaining changes on this current PoC and then work on testing with a production site so we can take it from there.

Additionally:
exampleSite/content/about/about-split.md -> exampleSite/content/about-split/index.md

/LGTM


Send request id with all heroku client requests

This will help in tracking down issues like https://github.com/heroku/core-services/issues/31
Also adds the X-Heroku-Requester header.

@mwoods79 mind adding a +1 as well?

👍


Run as System or as an Admin (non console) to use in other automation platforms

The sysprep script works great silently when I run it via elevated command prompt when logged in to a console session.
What I want to do is spawn this script in our Connectwise Automate RMM tool during it's "onboarding" script. Essentially we do a bunch of stuff with new computers, and I would like to add this script to that list of tasks it does automatically.
I've got our automation system setup to push out the .ps1 file (the sysprep/silent variant) to the box and calls it with the -debloat option. I'm familiar running powershell in this platform and it's pretty straight forward... basically push out the .ps1 file and then execute it with any arguments needed. My tool is calling the following (tried as admin and as system):
[path to powershell]\powershell.exe -executionpolicy bypass [path to ps1]\debloat.ps1 -debloat
Our platform records the output, which is a ton of powershell related errors specific to the registry bit. I suspect it's related to the New-PSDrive function call, that it somehow won't work if you're not running under a console session.
I've reproduced this behavior by use Task Scheduler, but having it run as system, or as admin, and having it fire when nobody is logged into the computer. Same thing. If I have the task scheduler pop-off when I am logged in (and having it run as the logged in user) it works fine. If I have our automation platform spawn the script under the logged in user's console session, it works there too.
The problem is I need it to run regardless if a user is logged in or not, as the goal is to turn on the machine, and our system just does everything. Everything else we do like pushing out applications and making policy edits all work; except for this.
Is this a limitation of the functions used in PS or am I missing something? It would be super nice to be able to run this in our automation system.

Select Powershell BYPASS in Automate.  Copy/Paste the PS script into the box provided in Automate.
This really shouldn't run in Automate but in the MDT process instead.  It's more successful when executed before the actual user logs on for the first time.

Tried that. No dice.
If I use bypass as local agent, I get this output and basically nothing happens.
https://pastebin.com/bEhety4E
If i use powershell bypass as admin, I get more substantial output but fundamentally still the desired action does not take place.
https://pastebin.com/5X4m7xqp
In CWA, in the script, I've pasted the content of the debloat powershell file and am passing the script the following options:
-sysprep -debloat

I realize MDT would be nice, but in our scenarios we often times don't get to touch the systems before the show up. Imaging would work in specific circumstances, but not MOST of the ones we run into.
What we would like to do is just use a CWA script to do things we already have working, but add in running Debloat first. The exact desired outcome takes place if I am logged into the computer as an admin, then run the script with the same options, in an administrator powershell session.
Ideas?

I have been struggling with the same issue @ExR90 .  Even wrote a function to update and delete with parity the changes to the Registry Windows10Debloater script makes to HKCU to all user SIDs found in HKEY_USERS. Which helps a little but does not solve the main problem.
Remove-AppxPackage command does not work on other users. Only works on currently logged in user. Even with the -AllUser switch it does nothing when run as system.
Reading the MS doc -AllUsers is supported on cmd Remove-AppxPackage and Get-AppxPackage
https://docs.microsoft.com/en-us/powershell/module/appx/remove-appxpackage?view=win10-ps
https://docs.microsoft.com/en-us/powershell/module/appx/remove-appxpackage?view=win10-ps
Get a list of installed packages before
Get-AppxPackage -AllUsers >> c:\Appx-output1.txt
Running as system. $WhitelistedApps and $NonRemovable are defined in script.
  Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps -and $_.Name -NotMatch $NonRemovable} | Remove-AppxPackage -AllUsers  -ErrorAction SilentlyContinue     Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps -and $_.Name -NotMatch $NonRemovable} | Remove-AppxPackage -AllUsers  -ErrorAction SilentlyContinue     Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -NotMatch $WhitelistedApps -and $_.PackageName -NotMatch $NonRemovable} | Remove-AppxProvisionedPackage -Online -AllUsers
Get a list of installed packages after
Get-AppxPackage -AllUsers >> c:\Appx-output2.txt
md5sum Appx-output1.txt
4e2c6d5615792834ecad584f2a3ec53e  Appx-output1.txt
md5sum Appx-output2.txt
4e2c6d5615792834ecad584f2a3ec53e  Appx-output2.txt


Avast anti-virus flags this app as 'suspicious'

Avast anti-virus flags this app as one that is 'suspicious' and may 'harm your device'. Either the code needs to be audited or Avast needs to be informed of a false positive.

Definitely a false positive, the code is open for you to audit.
Also you've created a new account just to comment this "issue" and that seems a bit suspicious in itself.  But if you just really want to help, i believe you can reach out to avast to say that it's false positive.
Here's a report from virustotal with the AAB release on v1.10
https://www.virustotal.com/gui/file/05dac7356018698c354fbe328effd172372203985ba450abe6254dbcbaa7ee36?nocache=1

Nothing suspicious.  Just trying to be a "good neighbor" cuz if I'm getting them flagged then other Avast users are too. Just my guess, but Avast may be flagging new updates and installs from F-droid cuz it also flagged OpenCalc and Gurgle which I had installed previously via F-droid - so they may all have been flagged after they updated. I don't have any other explanation. Since virustotal's version of the avast engine doesn't flag it or the others it's probably unique to the android version of Avast's engine, probably updated to flag anything installed outside the GooglePlay store as 'suspicious'.


Tagging different subject areas

I’m not sure about how we would do this, but if you can provide us with a list of useful subject areas or subtopics (e.g., “clinical trial”, or “vaccine”, “modeling”), we could offer a drop-down menu to the reviewers so that the review and associated preprint can be tagged for easier search by editors. This ontology was suggested by FAIRdata.
Update: This was suggested by the OASPA publishers and can be parked until we have funding to cover these types of requests.

More search terms related to the disease tags that might not be in the title or abstract, but can be searchable.
@georgiamoon to ask @majohansson if there are other disease tags to mention/list.
@harumhelmy to look into implementing this.
Group tags - a label that maps to query string with more terms
#83 - COVID keywords
https://www.ebi.ac.uk/ols/ontologies/srao (but with more disease tags)


chore(CPlusPlus): add totient function

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[x] New algorithm
[ ] Optimization in previous algorithms
[ ] Code style update
[ ] Refactor
[ ] Documentation
[ ] Other, please describe:

Briefly describe the changes in this PR

Other information:

Hi @Kpriyansh,
Please solve the conflict problem


Run Active File in Terminal menu should insert quotes for CMD

Issue Type: Bug
Ran VSC under 64-bit Windows 7 Pro  with two hard drives (C: and D:).  Loaded single-file program with Python Extension enabled, from folder with a space in its path (d:\Work\Code Stuff\Test).  Inserted ${fileDirname} in Integrated: CWD box under Settings, which works fine selecting New Terminal menu item.  Got this ouput  when selecting Run Active File menu item,
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
D:\Work\Code Stuff\Test>d:\Work\Code Stuff\Test\wavtrim.py
'd:\Work\Code' is not recognized as an internal or external command,
operable program or batch file.
D:\Work\Code Stuff\Test>
Obviously, the CWD inserted by VSC worked as expected, but the *.py command should have been wrapped in double quotes to accomodate spaces in my path, resulting in,
D:\Work\Code Stuff\Test>"d:\Work\Code Stuff\Test\wavtrim.py"
. . .
I verified this string works as expected when typed at a Command Prompt launched using Windows Explorer, after changing to my Test directory.  Note that Run Without Debugging in the Debug menu works as expected -- it has no problems with directory change or program invocation.
VS Code version: Code 1.42.0 (ae08d5460b5a45169385ff3fd44208f431992451, 2020-02-06T10:51:34.058Z)
OS version: Windows_NT x64 6.1.7601

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (4 x 3192)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_offsurface_control: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.71GB (11.94GB free)

Process Argv
D:\Work\MEI Stuff\Test\wavtrim_main.py

Screen Reader
no

VM
0%

Extensions (1)

Extension
Author (truncated)
Version

python
ms-
2020.1.58038

This is Python: Run Active File? Please file at the Python extension: https://github.com/Microsoft/vscode-python

This Run Active File selection is in the main VSC Terminal menu. I assume
it would apply when attempting to run any program in the Windows CMD
terminal. There is nothing Python specific about this problem. Microsoft
provided the double-quote solution for referencing files with spaces in
their path quite some years ago.
Robb T. Laney
Potomac Region, VA
Cell:<PHONE_NUMBER>
On Tue, Feb 11, 2020 at 12:10 AM Jackson Kearl<EMAIL_ADDRESS>wrote:

This is Python: Run Active File? Please file at the Python extension:
https://github.com/Microsoft/vscode-python
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/90415?email_source=notifications&email_token=AOQWXAIRZZHJDRGKW733SKTRCIXLNA5CNFSM4KS2DTG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELLHMAY#issuecomment-584480259,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOQWXAOZYCEVMDQL6S4SKNTRCIXLNANCNFSM4KS2DTGQ
.

My bad, reopening.

Hi,
Saw this issue labeled as "good first issue". I was looking to get into this project for a while and this seems like a nice place to start, so I would like to take it on if that's OK. 😄

Hi,
Saw this issue labaled as "good first issue". I was looking to get into the project for a while now and this seems like a good place to start, so I would like to take it on if that's O 😁

@dormesica sure, I haven't yet reproduced the bug personally but the code for this is located here:
https://github.com/microsoft/vscode/blob/802fdbac9f2aa6670fb426a59081737f4b22f91e/src/vs/workbench/contrib/terminal/browser/terminalService.ts#L473-L533

@Tyriar
I think I've reproduced the bug. I got this in my PowerShell:

I encountered preparePathForTerminalAsync was tring to debug the RunActiveFileInTerminalAction. I'll take a look in there in the coming days.

I have confirmed that moving my Python code file to a folder with no spaces in the path does result in a valid CMD command and proper running of the code, with this output,
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
D:\Work\Test>d:\Work\Test\wavtrim.py
@ Entering routine sDrive
. . .

I do now see the green Run button in VSC that invokes the external (installed in Windows) Python interpreter to run my code in a CMD terminal.  It wraps the path/filename argument in double quotes, with this output,
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
C:\Users\General>C:/Python38/python.exe "d:/Work/Code Stuff/Test/wavtrim.py"
@ Entering routine sDrive
. . .

I am not sure if this entry point is from core VSC or the Python Extension, but it may be worth a look at relevant VSC code.
Thanks for your interest in this issue!
Robb L.

@Tyriar After I've reproduced the bug I tried to debug it but it seemed to work fine.
It took me a while to reproduce it again. After I did I tried to run it again and again it worked fine (I haven't chaned anything). I got this as the output of the 2 attempts:

I guess it is some kind of race-condition. Does this make sense?

@dormesica hmm, maybe it's a race condition if it's inconsistent?

@Tyriar For me it would happen once and then several times would work fine.
In the picture I've added earlier I wanted to show 2 consecutive attempts where in the first the bug occurred and in the second it didn't (obviously I didn't change anything between the 2 attempts, simply clicked on Run Active File).

@dormesica  I can reproduce consistently, you need to kill all the terminal instances before launching the Run Active File action.
I think the issue is here
https://github.com/microsoft/vscode/blob/6ec6f9e3f4d17f0cef0480688a1f350b9141e567/src/vs/workbench/contrib/terminal/browser/terminalActions.ts#L688-L706
If there is no terminal a new one will be created with getActiveOrCreateInstance but this function returns before the instance.shellLaunchConfig.executable  is defined so the preparePathForTerminalAsync does nothing because it's undefined