Add 'description' to RestAPI #116

Add the description property to the RestAPI resource.
Resolves #116
It would be better to add all properties of aws.apigateway.RestApi as optional overrides, but that's blocked by pulumi/pulumi#8104.

It's a little funny that there's no actual change to where we use the RestAPIArgs, but I guess this would even work without the change to the interface given it's all just dynamic at runtime - so the imporant change is the schema to allow access?

I was confused by this as well at first. The key is this line where all RestAPI args are passed on implicitly.


rework graphql reauthentication (only csrf needed)

I've chosen to remove all the local state from config_flow it was never used once switching to graphql anyways (vehicle_state previously required a token, graphql client handles all authentication token exchange within the client code).
Should do similar to the other HA files... but that can be reserved for another time after the data sync and lockout issues are resolved.
Additionally with the existing python client implementation it is hard / impossible to parse graphql exceptions due to the exception handling swallowing the error details (response.body given everything is usually response.status == 200 yay graphql 😡 I've always hated that FB decision).

Checking in the morning I was able to get sensor data over the night. There are quite a few of these DATA_ERROR exceptions from the backend server specifically 32. Don't remember that being the case with cesium, you?
But I'll take 32 data retrieval errors over 3000 errors due to being locked away and failing to authenticate.

We were getting occasional blank responses on cesium, which came back the very subsequent request. We fixed that by just passing the last known. I probably should have setup another sensor that kept count. Am checking out your PR now.

Ah that is likely the same as what this DATA_ERROR is cause there is also a blank state returned as well. Maybe polling too quickly there is throttling or something in the background, not sure.


[M6] replenish stable features implemented through annotations to job spec.

for backward compatibility with kubeflow.org api group, KubeDL implements enhanced features (e.g. hostnetwork, tensorboard...) through annotations, now we are able to replenish these features to job.spec which is more native.

assign @diaozhongpu


seems nitro taks a build stage bug

Environment
live, nuxt3-rc6
Reproduction

Describe the bug

Additional context
No response
Logs
No response

Hi @pi0 , sincethe last commit as nitro version 0.4.21 submitted 24minutes ago, my next publish was down.
the error is like above image

Can we decide the nitro version using in nuxt3 by ourselves? we have meet three times build error with the reason of nitro upgrade in last two months

Fix should be in 0.4.21 ... Are you sure you are using it?
And yes, you can of course specify your own nitro version in your package.json.

The issue is fixed in 0.4.22 sorry for regressions.
You can use resolutions (or a lockfile!) to fix nitro version but will also lose benefit of all fixes are being introduced in parallel to nuxt.

Fix should be in 0.4.21 ... Are you sure you are using it?
And yes, you can of course specify your own nitro version in your package.json.

is the package key named "nitropack"?

The issue is fixed in 0.4.22 sorry for regressions.
You can use resolutions (or a lockfile!) to fix nitro version but will also lose benefit of all fixes are being introduced in parallel to nuxt.

thanks! I just wanted to say that 0.4.21 has same issue

is the package key named "nitropack"?

It is nitropack. But since is a sub-dependency, directly adding as dependency or devDependency cannot guarantee nuxt using it. You should use resolutions filed (using yarn) or overrides (using npm) or pnpm.overrides (using pnpm) to do so.


[Documentation] Add multi-task learning CLI notebook example

Add yaml configuration file for model training
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Do we need to explain a little of the gs_multi_task_learning command?

Do we need to explain a little of the gs_multi_task_learning command?

No, it is explained in https://graphstorm.readthedocs.io/en/latest/advanced/multi-task-learning.html#define-multi-task-for-training.

LGTM, except for one unsolved comment.

I have updated the title to "Launch the trianing job"


Enable the service hub services to know the language used in VS

Model Builder Version: In which Model Builder version was the bug encountered?
Visual Studion Version: In which Visual Studio version was the bug encountered?
Bug description
String in resources files in the the service hub services are  not localized  because  the service hub services is not detected the language change in visual studio rather it is based on system language.
Steps to Reproduce

List the minimal steps required to reproduce the bug.
Thanks for reporting!

Expected Experience
A description of what you expected to happen. If applicable, add screenshots or "Machine Learning" Output Logs to help explain what you expected.
Actual Experience
A description of what actually happens. If applicable, add screenshots or "Machine Learning" Output Logs to help explain what actually happened.
Additional Context
Add any other context about the problem here, such as unusual system configurations, network restrictions, etc.

@zewditu What is there to validate here? I thought this wasn't working.

Related issue https://github.com/dotnet/machinelearning-modelbuilder/issues/1092

Closing this as the validation comes with #1092


BIGTOP-3455: add hive patch to fix HIVE-17368

In Kerberos-enabled environments, Hive < 2.4.x (still not released) suffers
the problem outlined in HIVE-17368. This patch is related to the following commit:
https://github.com/apache/hive/commit/b3a6e524a6cb17893cbbeb26a877b0196ba16e21
The commit is related to the backport of the patch for the Hive 2.x branch.
Tested on top of Bigtop 1.4 (the issue that I was experiencing with Oozie
got fixed) but I haven't tested it with Bigtop 1.5 (but I am reasonably sure
that it works fine).
Built the hive-pkg target on slave-debian10, no issue reported.

I merged this. Thanks, @elukey.


Add expires to JWT helper

What is the feature you are proposing?
Hello, I would like to request a feature to add an "expires" parameter to the JWT sign function. This would help me implement access tokens and refresh tokens more effectively. Thank you.

If you make you payload on object you can
const token = await sign({id: 123, exp:<PHONE_NUMBER>4}, secret)

The expiration needs to be epoch time without milliseconds.
You can see all the parameter here https://hono.dev/helpers/jwt#payload-validation

Thanks, @NicoPlyley, it really helped me.


ID DownloadScreen:
User feedback: something
(motion_re_change_of_domicile_download)

Question ID
DownloadScreen

Details
We want the coversheet and instructions to come out as a single document, then all other individual forms should come out separately (but with any addenda included in same doc with the form they go with).

I think we also want to use a different style for the download page. I'll add a screenshot example.
I think you should be able to use the notice of hearing and motion (https://github.com/mplp/docassemble-Simpmotion) as an example for coding this. But let me know if you get stuck!
Variable being sought | motion_re_change_of_domicile_download
Package version | 0.0.6
Filename | docassemble.MLHMotionRegardingChangeOfDomicile:data/questions/motion_regarding_change_of_domicile.yml

here's an example of the download page

I updated the download block in commit e624c70. But I couldn't get it to work how you'd like it. The documents are being listed out fully, and not being grouped into a the two viewable/downloadable format like the simple motion.  Here are screenshots of the code and the UI output.

Hi Hayden, I think you might have it!  The simple motion tool only produces one form, so only two docs are produced, the instructions and the form itself. Whereas here, since there are a few different forms, there will be more listed than that.


SwiftUI Representable

Hi,
Any idea how to package this view into a Representable for SwiftUI?
Here's what I tried
import Foundation
import SwiftUI

struct CodeView: NSViewRepresentable {

  func makeNSView(context: Context) -> CodeMirrorWebView {
    let codeMirrorView = CodeMirrorWebView()
    codeMirrorView.translatesAutoresizingMaskIntoConstraints = false
    return codeMirrorView
  }

  func updateNSView(_ codeMirrorView: CodeMirrorWebView, context: Context) {
    let url = Bundle.main.url(forResource: "data", withExtension: "json")!
    let content = try! String(contentsOf: url)
    codeMirrorView.setMimeType("application/json")
    codeMirrorView.setContent(content)
  }
}

Sorry but I haven't touched SwiftUI from the beginning day, so I don't know how to support you 😅
If you could create a custom Representable, it should work with Codemirror since there are no special in the codebase 👍

Ok I did it but I had to :

replace the CodeMirrorWebView class by a representable handling the WKWebView

wrap all WKWebView delegates into a Coordinator.

If you are ok, I'd like to package this into a SwiftUI code mirror package available via package manager and credit you for the work.

Feel free to do it. I appreciate all actions that help iOS/Mac developer 👍

Hey @marshallino16 would love to use the SwiftUI package. Will this be a new repo or a PR on this one? Could you share the link here if it's new?

Hi, it'll be a new package, crediting this one.
But I'll not release this week, probably the week after. I can send you my work though 😊

@marshallino16 Awesome, yeah I would really appreciate it! My email is on my profile.

Please let me know when it's public. I will add a link to your repo for anyone needs 👍

Here's the SwiftUI version, available via SPM @sonnyio
https://github.com/Pictarine/CodeMirror-SwiftUI/
I'm closing this issue.


PhaseTracker throws error when watchdog kills server

This is a race condition type of error, so it's not consistently going to trigger.
When Watchdog kicks in, this triggers a runtime hook which shuts down the server. This hook runs on a different thread as the main thread may have stalled. Since this isn't the main thread, Phasetracker will throw errors if it tries to handle things.
Example stacktrace
https://pastebin.com/raw/XFDd0hbk
MinecraftServer has code that is mixin'ed in to prevent a shutdown that's not on the main thread, however this doesn't seem to be accurate/applying when watchdog is involved.
https://github.com/SpongePowered/SpongeCommon/blob/00f5e56506b1bf9f52489a453443c215473a0534/src/main/java/org/spongepowered/common/mixin/core/server/MinecraftServerMixin.java#L457
serverRunning is not set to false when watchdog kills a server, causing the above check to fail. It just simply calls the stopServer method.

From what I can tell, it appears that the stack trace is consistently logged... but the log it uses happens to be disabled at the time. Not sure how that happens.
The CauseStackManager doesn't complain about this because it exempts the server shutdown thread from these checks.
I'm wondering if we should fix this by setting up separate PhaseTracker instances for different threads? There's already a hidden CLIENT instance; we could add an additional one for the shutdown hook.

The problem is that the server thread PhaseTracker is already populated, so that phase is trying to complete, as it should. Or just ignore the case when the server is shutting down.

Is this issue being worked?  Does it need an assignee ?
Thx


[v4 beta] I18n side panel can't scroll

The CMS_Editor_i18n-panel has a style property that sets overflow to hidden, causing an inability to scroll. Changing this style into overflow-y: scroll fixes this.

This is resolved in v4.0.0-beta.13


clicking on adjacent thumbnails continously and rapidly before one animation ends makes main slideshow div blank

Hi sir,
First of all thanks for such a wonderful plugin.
I have noticed small issue while clicking on adjacent thumbnails or any 2 thumbnails continuously and rapidly
Issue pops up on documentation demo page too.
http://sylouuu.github.io/desoslide/doc/demo.html
While debugging I found that if animation fadein or fadeOut is not complete,
class: fadeOut remains stuck.
// inspected code below for example 2
div id="slideshow2" class="col-lg-12">
div class="desoslide-wrapper">
<img alt="Rose" class="img-responsive animated fadeOut"
while inspecting image element on chrome developer tool i noticed that
if i check and un-check (i.e toggle checkbox) class in Chrome Developer tool > style panel -
.fadeOut{
-webkit-animation-name:fadeOut
}
Things start working properly again.
Then what i have done to resolve this
currently i have initialize plugin with effect: 'none'
and now when someone clicks on thumbnail i am making its opacity 1, coz when we are not using effect and generate same issue #slideshow1 .desoslide-wrapper img opacity gets stuck to 0, this hides main image.
//neo-slide bug workaround
$('.slideshow1_thumbs a').click(function(){
$('#slideshow1 .desoslide-wrapper img').css('opacity', 1 );
});
//neo-slide bug workaround fix ends
Now what i m looking for is permanent solution to  fix this bug for effects too

Hi,
I've no time to fix this. You have to keep your workaround. Sorry.
Regards


adding ability for any pre/post hooks to be run in same virtualenv as th...

adding ability for pre/post hooks to be run in same virtual env if the suffix of the hook file is .py

Implemented by #152.


usb: ateml: samd21: enable usb controller in board dts not soc

Since not all boards enable all devices, we typically have the SoC dtsi
file have a device marked with status = "disabled" and have the
board.dts explicitly enable with status = "ok".  Update it so USB on
Atmel SAMD21 work this way.
Signed-off-by: Kumar Gala<EMAIL_ADDRESS>

@henrikbrixandersen take a look and review please

Codecov Report

Merging #6554 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #6554      +/-   ##
==========================================
+ Coverage   53.43%   53.44%   +<.01%
==========================================
  Files         437      437
  Lines       41377    41377
  Branches     7931     7931
==========================================
+ Hits        22111    22112       +1
+ Misses      16048    16047       -1
  Partials     3218     3218

Impacted Files
Coverage Δ

kernel/posix/pthread.c
70% <0%> (+0.5%)
: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 b75b010...10aa1a1. Read the comment docs.

LGTM.


Open tab icon?

Not everyone is so keyboard oriented

thoughts?

Counterpoint: takes away from the simplicity.

I like the simplicity, people who uses a console actively are definitely keyboard oriented

One can argue that https://github.com/zeit/hyperterm/issues/40 is redundant if this is deemed redundant too.

It's probably best to leave it out for simplicity, but does this terminal take those who are learning to use terminals into account? Is there a way to teach them these things? (Maybe this isn't important, but it's the thing that sprang to my mind)

@johanbrook yes, but the difference is the real state involved is minor in that case.

One up vote for this idea, although I never use my mouse in terminal emulators 👍 It's just to make the UI more elegant.

If you want to keep the simple look, you could have buttons that fade in when the mouse is over the tab. If you don't use the mouse, you'll never see anything.

My vote is to add the button. While I tend to use a keyboard in the terminal too. Sometimes, a mouse click can actually be faster.
That said,  if this can be done with a plug-in that makes the most sense to me.

My vote for 1.
There is actually a button there on my Linux Ubuntu install and it works just that the asset is missing (See my screenshot)

Yes: can be done with a plugin :)


Implement keep filter to preserve matching images

If provided, the filter will prevent matches from being deleted.

@danielfm Anything I need to change?

Thanks for your contribution! 🎉


Potential Management Endpoints (Actuators) to add

Spring includes a variety of actuators that Steeltoe does not, the following is a short list of ideas that Steeltoe might be able to add:

sessions
caches
"beans" - Steeltoe should probably call it "services" (view DI container contents)
chaos monkey

I would add /health/ping endpoint as it is described here
https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints.health.auto-configured-health-indicators
It is useful for health probes and pretty simple to implement.

This issue will turn into an epic and have individual actuators split out into separate issues

[x] Details
[x] Health
[ ] Environment  - working but needs edit functionality
[x] Loggers
[x] Mappings  needs updated to v3 json
[x] HttpTrace - has compatibility issue
[x] Threads
[x] Memory
[x] Metrics
[ ] ConfigProps - doesn't exist in Steeltoe
[ ] Caches -  doesn't exist in Steeltoe
[ ] Conditions - doesn't exist in Steeltoe
[ ] Tasks- doesn't exist in Steeltoe
[ ] Beans - doesn't exist in Steeltoe

As it currently stands it is not possible to provide a caches actuator due to limitations of the interface ie not being able to get all items.
Have logged:

https://github.com/dotnet/runtime/issues/98251
https://github.com/dotnet/runtime/issues/98252

Which would enable it to work and cover all providers who support it.
Suggest we split caches off and mark it as blocked until the framework can provide what we need.

Further to my previous comment, the auditevent actuator would only be achievable after or atleast partial implementation of https://github.com/dotnet/aspnetcore/issues/52996

Session's is covered by 1253


Update Sanbbdom to 0.6.6 to get better boolean attribute handling

Snabbdom has made a new release that makes boolean attributes behave according to spec.
We should update Sanbbdom to 0.6.6 and add a test that checks that the it works as we want, that is boolean attributes should have no value in the DOM but be added or removed according to true or false.

I see we're still on the 0.5.4 version, before their TypeScript rewrite (0.6.1) . Are there any known problems with updating?

Snabbdom has released 0.6.7 now, that actually updates the dist files as well (which 0.6.6 did not).

Done :)


Auro-3D audio detection

Is it possible to add an Auro-3D audio codec detection to mediainfolib?
If needed, I can provide examples.
https://en.wikipedia.org/wiki/Auro-3D

Samples would be a first step for basic detection.
For more, well... even before saying that priority will depends on the level of interest, we need to find specs...

I provided you three short samples.

https://send.cm/drg0zjl1lb03 (Auro-3D only)
https://send.cm/96ojtjsfkftc (Atmos and Auro-3D)
https://send.cm/jhr28n584n69 (Atmos and Auro-4D)

The audio title will show you the used audio type.
Hope that helps. Let me know, if you need anything further.

I checked files and looks like that Auro-3D is hidden in DTS, without any spec available. As is, it is impossible to detect Auro-3D without big reverse engineering. Would not be done on free support.

Hm ok. Bad news, but thanks for checking @JeromeMartinez.

Samples are gone.  Yeah, whatever.

If needed, I can reupload the samples at any time. Just let me know.

In mp4 they can be even uploaded here on github.

The files are mkv and the size is between 1-2 GB.

Okay, the no need!

@paxter would you mind sharing the samples again (links are dead)?

@gphilipp sorry, I can't find them anymore.


Incorporate setting table classpaths into ingest-tool.jar

After some reading about Accumulo classpaths since v1.5 it looks like the cleanest way to configure the geowave-accumulo.jar would be to configure a geowave application specific classpath context and then label our tables appropriately to use this context.
I'm not as sure about the best way to incorporate the needed steps into either a procedure or directly into the code base but the example below shows the minimum possible to make things work.
Given the documentation settings override precedence at https://github.com/apache/accumulo/blob/1.5/core/src/main/resources/org/apache/accumulo/core/conf/config.html#L24-28 it looks like Zookeeper settings trump those set in the accumulo-site.xml file. So the manual configuration command from the accumulo shell would be config -s general.vfs.context.classpath.geowave=hdfs://HDFS_NAME_NODE:8020/accumulo/classpath/geowave-accumulo.jar which would succeed once the geowave-accumulo.rpm has been installed as it copies the jar file into that location in HDFS and sets ownership/permissions.
The second step of labeling any geowave tables could be minimally accomplished with something like the following one line change.
diff --git a/geowave-accumulo/src/main/java/mil/nga/giat/geowave/accumulo/BasicAccumuloOperations.java b/geowave-accumulo/src/main/java/mil/nga/giat/geowave/accumulo/BasicAccumuloOperations.java
index 3f13177..a988c4c 100644
--- a/geowave-accumulo/src/main/java/mil/nga/giat/geowave/accumulo/BasicAccumuloOperations.java
+++ b/geowave-accumulo/src/main/java/mil/nga/giat/geowave/accumulo/BasicAccumuloOperations.java
@@ -221,7 +221,6 @@ public class BasicAccumuloOperations implements
try {
connector.tableOperations().create(
qName);

          connector.tableOperations().setProperty(qName, "table.classpath.context", "geowave");
      }
      catch (AccumuloException | AccumuloSecurityException | TableExistsException e) {
          LOGGER.warn(

I think the configuration of the app specific context classpth could probably be automated as well but we'd probably need to do some discovery and sanity checking of hostname/path/artifact first. At the point any of these settings do not line up correctly an error is thrown within Accumulo but as it is app context and table specific it does not seem to affect the operation of the overall container.

This is now OBE. We're going to create application specific classpaths and then register workspaces to use a classpath so tables created within the workspace don't have to be configured individually.


page url in screenshot

Hi, is its possible to include a browser url bar in a screenshot?
sometimes it can help to allocate a issue.
For example sometimes we can get a screenshot of notfound page, or even white page when we build SPA
Thanks!

Hi @mokone91 ,
Testcafe doesn't support this functionality. The only thing I can suggest right now is to use ClientFunction to obtain a page url. See the following example:
import { ClientFunction } from 'testcafe';

fixture('New Fixture')
    .page('https://example.com');

test('New Test', async t => {
    const getURL = ClientFunction(() => window.location.href);
    const url    = await getURL();

    console.log(url);
});

So you can call the getUrl function wherever you expect a screenshot is going to be taken.

P.S. This issue looks like a question that would be best asked on StackOverflow - an amazing platform for users to ask and answer questions. We try to keep the GitHub issues tracker for bugs and feature requests only (see also: Contributing).

Hi, sorry for delayed response.
The point of this issue is to discuss the ability of adding page url to screenshot which taken when test fails(--screenshots-on-fails).
Use case:
During test you get screenshot of 404 or 502 page, and you actually can only guess where the browser is now.
Thanks!
Eldar.

Hi Eldar,

Thank you for your clarification. At the moment, there's no such a feature out of the box.

When you take a screenshot using the corresponding takeScreenshot action, you can use a third-party library to manipulate the image. For instance, check out the following thread where you can find more information on how to apply a watermark:

How can I apply a watermark in images using JavaScript?


Doesn't let me choose NSubstitute

Latest VS2017 Community x64. Latest extension. Using .NET Core.
I go to tools and select NSubstitute.
I generate a test class
The test class is for Moq instead of NSubstitute.

Sorry for taking so long to get a look at this. It looks like the auto-detect is failing. Can you share the .csproj file you're using?

Was a while ago, but it was the standard csproj, basically from file->new project etc.

In 1.5.12 I fixed an issue with the auto-detect code for .NET Core projects, and added a choice to override the test framework or mock framework when generating the class.


ingressClassName of Ingress created by Harbor Operator goes missing at intervals

ingressClassName under spec of Ingress created by Harbor Operator goes missing at intervals which will cause the harbor service to be unreachable, it is not ascertained what actually causes the issue as of now.

It has been observed that when the core service pod is deleted, the ingressClassName parameter is deleted in the harbor-cluster  ingress


Video | Demo | Add demo of video triggering modal

Jira
http://vjira2:8080/browse/BDS-1602
Summary
Add demo of video triggering a modal to open on play.
Details
Drupal implementation works better if video triggers modal to open, rather than modal triggering video to play. Add demo showing how this is done in Bolt.
How to test

Run code locally
Go to Video with Modal page and verify that clicking on the "Play the video" button opens the plays the video in a modal and closing pauses the video.

@mikemai2awesome I combined the two demos on the same page as we discussed.


server: Optimize docker image sizes

Description
On dockerhub, the images are very very big:
software => 852.76 MB
hardware => 929MB
hardware-dcsv3 => 853.85 MB

This is the compressed size, meaning the actual sizes are even bigger
Result of docker images <image> --format "{{.Size}}" currently (uncompressed size)
software => 2.96GB
hardware => 3.17GB
hardware-dcsv3 => 2.98GB

This pull request changes the uncompressed sizes to:
software => 281MB
hardware => 532MB (still big, it contains nodejs..)
hardware-dcsv3 => 286MB

I don't have the numbers for the compressed sizes
How is that possible?
Docker works on an overlay filesystem. This means, every time we use an instruction such as RUN during the build, it will create a new filesystem layer. The final image is just every layer overlapped on one another.
This means that if we install a temporary dependency in a RUN command, we have to uninstall it in the same RUN command, or else, it will still impact the image size after being uninstalled.
The way this new Dockerfile works is by creating separate images for building the app and running it.

Docs: Developer environment
This PR introduces a base-build stage/image that has almost everything you need for developing on BlindAI server.
This is a good opportunity to document how to create a proper dev environment for the server on the docs, using docker and vscode.
 Where in the docs would that fit?
Related Issue
None
Type of change

[ ] This change requires a documentation update
[ ] This change affects the client
[x] This change affects the server
[ ] This change affects the API
[ ] This change only concerns the documentation

How Has This Been Tested?
This has been tested in software mode on my machine.
The images compile fine in hardware and hardware-dcsv3 mode, but I will need to test on actual machines to make sure I did not break anything (CI doesn't check hardware and hardware-dcsv3 yet)
This PR is marked as draft until I do these tests.
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] My changes generate no new warnings
[ ] I have updated the documentation according to my changes

Please check on the DCAP VM to do your tests. Do you still have the credentials?

Please check on the DCAP VM to do your tests. Do you still have the credentials?

Yes I have! :)

I forgot to comment but I really like the idea of having a custom dev env

I have ran the tests with the VM, for hardware, hardware-dcsv3. I had to make a minor change (see the last commit 3 days ago), I ran the tests again today, and it works!
I'm excited to see how much of an improvement this is for the compressed sizes on dockerhub.

I'll test a bit on my side but this should be merged pretty fast.
The version 0.3.0 will hopefully be live this week :D


Possible more efficient updates

I don't know whether this is possible in gdscript with a singleton, but you may be able to make the updates more efficient:
Calling _physics_process for a large number of nodes is quite inefficient even if just a stub function, especially if physics tick rate is e.g. 60 tps. With 1000 nodes, that is 60,000 updates per second, most of which are stubs.
A more efficient paradigm might be instead to register each LOD node when added to the scenetree with a central updater, and unregister when removed from the scene tree.
The central updater could then run on a single _physics_process (or _process) and go through the list of registered nodes and update a certain number each update, calculated to give them all on average an update every 0.25 seconds.
In our example of 1000 nodes that would be:
desired updates per second = (1000 * 4)
updates per tick at 60tps = 4000 / 60 = 66.6
4000 updates per second is a reduction of 15x. In addition, you could do further approaches like reduce the update rate on far away nodes, and check them every second.
There are also a number of other optimizations which are common with collision detection, but these may well be overkill unless you had a large number of nodes.

Interesting, but keep in mind the _physics_process() method is mostly a no-op if the timer hasn't reached its set duration yet.

I actually tried what @lawnjelly did. It actually seems to be a better than what's currently being done. By using a "refresh threshold". The singleton updates as many LODs as it can within the specified time. This makes it extremely scalable since the amount of timed used to process the LODs never exceeds that threshold no matter how many LODs are in a given scene.


feat: Add prometheus metrics tracking Xpra performance

Add several metrics from Xpra (using the xpra info command behind the scenes). This can be useful for troubleshooting any potential session issues.

I just tested this in combination with the Collab Manager and Prometheus/Grafana and it seems to work great

Requires https://github.com/DSD-DBS/capella-collab-manager/issues/1946 before merging.


✨🔧  Add github templates for bugs and feature requests

Hi good day can i work on this project

@hymns12 sorry we dont have any grant allocated for this rn

yep at @Bal7hazar  i can still work on it
do you want me to work on it??

yep at @Bal7hazar i can still work on it do you want me to work on it??

@hymns12 thank you for your interest, the issue has been closed since it is not relevant anymore


[shared_preferences] Document the prefix necessary for testing.

You have the mock interface documented thusly.
SharedPrefernces.setMockInitialValues (Map<String, dynamic> values);
Which is great, but the doc doesn't mention that your keys have to begin with the prefix 'flutter.' or they won't be found by the preferences.
Also the work Preferences in your sample code above is mis-spelt.
Use case
This is what my test code has to look like in order to pass.
    SharedPreferences.setMockInitialValues({ "flutter.Prod_JWT_KEY": "key1", "flutter.Prod_USER_ID": "user1" });

    // test prefs mocking
    var prefs = await SharedPreferences.getInstance();
    expect(prefs.getString("Prod_JWT_KEY"), "key1");

Note the prefix 'flutter.' added to the keys map.
Its fine if this prefix is needed, but it should be documented. Better yet, modify setMockInitialValues to add the prefix to all the keys for you.

Better yet, modify setMockInitialValues to add the prefix to all the keys for you.

It does this; see https://github.com/flutter/plugins/pull/2260. Since that landed several months before this bug was filed, you were presumably testing against an old version.


Add instruction from #977 to the developer guide

What this PR does / why we need it:
Adds the instruction from #977 to the developer guide, so people with that problem will find it easier to update their controller-gen when that error occurs.

thanks @theofpa for adding the instruction!
/lgtm
/approve


Translate DAOfund contract in Java

https://github.com/balancednetwork/balanced-contracts/tree/development/core_contracts/daofund

Plan to deploy on Tuesday, March 1st, 2022.


Create a pipeline to bump the stemcell version

Once a new stemcell is released, the pipeline should bump the stemcell version on //deploy/helm/scf/values.yaml and open a pull request against the kubecf repo.

Refer to "registry.opensuse.org/cloud/platform/fissile-stemcell/sle_15_sp1/fissile-stemcell-sle15:latest" when we fix the tag for a proper version

@svollath Could you be more specific?

Unblocked this task since the pipeline work itself is fine to be done. Which stemcell to use can be configured in the future.

Closing this in favour of https://github.com/SUSE/kubecf/issues/172.


libc: Refine the inline handling

Summary
1.Remove CONFIG_HAVE_INLINE macro
2.Change the ANSI C function to normal function
3.Other simple non ANSI function to macro
Note: only ctype function keep both inline/macro verion for the speed reason, but conditioned by __cplusplus now.
Impact
No functionality change
Testing

For the more info why make this change, please see here: https://github.com/apache/incubator-nuttx/pull/1280

@yamt, If all concern get resolved, please help merge this patch.


build failed :BaseActivity.kt: (23, 27): Unresolved reference: find

I had added dependency as follow:
compile "org.jetbrains.anko:anko-sdk15:$ankoVersion"
compile "org.jetbrains.anko:anko-support-v4:$ankoVersion"
now the ankoVersion is 0.8
but "org.jetbrains.anko.find" still can't found
Can you help me? Thank you very much!

The app is not updated to final Kotlin version. Let me find some time to update it, and it should fix all your issues.

Thank you! I found that it is nothing about kotlin version but anko version, use the Anko library with version 0.8.2 is ok


Feature/timeblock code

Add timeblock background color
change date/time API from day.js to moment.js

Add timeblock background color
change date/time API from day.js to moment.js


Adjusted mime4j pattern

Fixes #4842

@jeremylong I forgot to check the version after the @ symbol ;-)


proc: add detection of Windows Subsystem for Linux

I'm not sure whether it counts as a container runtime (yet?) though :D

thanks!

its interesting information regardless :)


SU-343 : Evidencias Sprint 14-15 (12) / Reporte de recaudo de seguros

Description
Describe the changes made and why they were made.
Ignore if these details are present on the associated Apache Fineract JIRA ticket.
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!

[ ] Write the commit message as per https://github.com/apache/fineract/#pull-requests

[ ] Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.

[ ] Create/update unit or integration tests for verifying the changes made.

[ ] Follow coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions.

[ ] Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm with details of any API changes

[ ] Submission is not a "code dump".  (Large changes can be made "in repository" via a branch.  Ask on the developer mailing list for guidance, if required.)

FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.

@tabrez-fiter spotleas errors in PR

fixed the condition for 'Novedades de Seguros Obligatorios' and for Código del Punto de Venta for report cobros


NIFI-3429 automatically quoting all table identifiers

Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ ] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[ ] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[ ] Has your PR been rebased against the latest commit within the target branch (typically master)?

[ ] Is your initial contribution a single, squashed commit?

For code changes:

[ ] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[ ] Have you written or updated unit tests to verify your changes?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.

I introduced the QUOTED_IDENTIFIERS property a while back in this processor.  When I added it I was focused on quoting column names. My goal was to make it a no-impact change for people who don't want to use them.  What about updating the description on this property and quoting table names only if this is true?

@patricker I think I might have to implement this behind a new property and change to display name of the existing property to 'Quote Column Identifiers'. In my current flow, I've had to use a ReplaceText processor following ConvertJSONToSQL to wrap the table name in quotes. If I were to deploy the next minor I would expect that not to break but I would end up with 2 pairs of quotes around my table identifier.

@nickcarenza, I think that approach would be fine.  A little finer grain control, and some people may want that anyways.

@patricker All set. Mind giving this a review please?

@nickcarenza It looks good to me, but I don't have the power to do anything... I did go out to JIRA and tag your ticket as 1.2.0 so it will get reviewed sooner: https://issues.apache.org/jira/browse/NIFI-3429

@pvillard31 thanks for the review! Changes applied.

@nickcarenza one last thing and we are good to go (build failing because of checkstyle):
[WARNING] src/main/java/org/apache/nifi/processors/standard/ConvertJSONToSQL.java[532] (regexp) RegexpSinglelineJava: Line has trailing whitespace.

Never mind, took care of it and merged to master, thanks @nickcarenza!


[parents_migrations] add front migration for github

Description

Follow up from https://github.com/dust-tt/dust/pull/9440
This PR adds the parents front migration function for github (data_source_views and agent_data_source_configurations).

Risk

High

Deploy Plan
none, it's a migration script

no cleaning here, we do it in one go

this one would've not been necessary if we did not add the prefixes actually


Fixed minor formatting issue

Fixed a minor formatting issue where a couple of images weren't showing up.

Hi @jboeshart, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@jboeshart : Thanks for your contribution to the Azure documentation! The author, @MikeRayMSFT, has been notified to review your proposed change.

@MikeRayMSFT @JennieHubbard
Please let me know what I should do with this PR. Thanks!

@cjgronlund @JennieHubbard
I'm looking over the changes now. Thanks for raising it to my attention.

@jboeshart, thank you very much for submitting this change. Your submission was spot on. I have been working on an update for the document in a different pull request so I manually integrated your change. Thanks again for helping us make Azure docs better.

@cjgronlund,
Can we please close this pull request? I already had a PR open for other changes in this same space. I have incorporated the changes proposed by @jboeshart and signed off on the other request in the private repo.

@jboeshart per @MikeRayMSFT request please close this PR

Closing since @MikeRayMSFT already included these changes in his PR. Thanks all!


Windowed: Allow text selection for the rows.

When using the windowed component to create a table, it can be useful to allow text selection to copy content from the scrollview.
This would only be useful for some tables / windowed sub classes.

This already works


Add '--yes' or '-y' option to automatically accept AI generated commit messages

Feature request
I propose to add a --yes or -y option to the aic command line utility, which will allow users to automatically accept the first AI generated commit message without requiring interactive input. This feature will be especially useful when aic is integrated into automation scripts or other environments where manual input is not convenient or possible.
Currently, when a user runs aic, they are presented with one or multiple AI-generated commit messages and are asked to select one. While this is a great feature for manual use, it becomes a bottleneck when trying to automate the Git commit process as it requires an interactive terminal to make a choice.
Why?
The problem I am addressing with this feature is the lack of an automation-friendly interface for aic. I am currently developing a script that monitors a directory for changes, automatically stages and commits those changes using aic for commit messages. However, the lack of an option to automatically accept an AI generated message is preventing me from fully automating this process.
I believe this feature would increase the flexibility and usability of aic, not only for my use case but also for other developers who wish to include aic into their automated workflows.
Alternatives
No response
Additional context
I am willing to contribute to this feature's development. I have reviewed the project's source code and have an understanding of where and how this new feature could be integrated. However, I would appreciate guidance and feedback from the project maintainers to ensure my contribution aligns with the project's standards and conventions.

I found a workaround for now, install the commit hook in the repository aicommits hook install then you can do something like this:
git add -A && git commit --allow-empty-message --no-edit && git push

--allow-empty-message is not really required, but if something goes wrong maybe it will still commit empty
--no-edit is needed to suppress git from trying to open the text editor e.g nano, to edit the commit message

yep, I want this feature too

@oregonpillow Thank you so much!


Update start game

https://github.com/Kush-Gold-Rush/MineShaft/issues/9
I finish the Find and start the game function

Works but not good.
I would suggest you take a look at #19 how do they implement things. A good example.
I would consider this an inspiration (i.e. WIP) and expecting another PR for the pass.


chore: production build with tinyify

Currently, Learn Git Branching was built with dev mode(React Developer Tools extension let me know it)
I use tinyify to use the production build( x2 time to build)
Another way use process.env.NODE_ENV = 'production'; (faster and smaller origin)

Time(s)
Size(kB)

Origin
27
2179

tinyify
57
1873

Change NODE_ENV
25
1913

Use tinyify spend too much time, if you want to use Change NODE_ENV, just close this pull request and I create another PR or you can add process.env.NODE_ENV = 'production'; on miniBuild function.
Related http://browserify.org/#more

Lets just change NODE_ENV -- gets a ton of the size benefits with way less of the time cost! Thanks for looking into this :)


Cow: Watch pikashow.tube

Cow requests the watch of the watch_keyword pikashow\.tube. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

pikashow\.tube has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ


a couple of problems with examples

Sorry, this ticket is kind of a mess, but I wanted to record it before I forgot.

When I tried ran the BlazeExample, I ran into trouble after clicking the Redirect example — it redirected me from http://localhost:8080/http4s/redirect to http://localhost:8080/http4s .  From there, the rest of the relative links from html.index() won't work; e.g. the relative link to "ping" resolves to http://localhost:8080/ping, rather than http://localhost:8080/http4s/ping

I didn't make a PR because I wasn't sure what the best solution was, or whether it needed to be mirrored in some other example services, but my local diff is below.

The "push" example uses org.http4s.scalaxml.ElemInstances#xmlEnocder which defaults to application/xml.  My browser (probably Chrome, I forget, it was a while ago) renders this differently from text/html; specifically, it doesn't render inline images, which I figured defeats the purpose of the "push" example.  I overrode the content type as seen below, but wasn't sure if that was the most elegant fix.

Thanks again, you folks are making http4s awesome.
diff --git a/examples/blaze/src/main/scala/com/example/http4s/blaze/BlazeExample.scala b/examples/blaze/src/main/scala/com/example/http4s/blaze/BlazeExample.scala
index e91812f..b6cc779 100644
--- a/examples/blaze/src/main/scala/com/example/http4s/blaze/BlazeExample.scala
+++ b/examples/blaze/src/main/scala/com/example/http4s/blaze/BlazeExample.scala
@@ -7,7 +7,7 @@ import org.http4s.server.blaze.BlazeBuilder

 object BlazeExample extends App {
   BlazeBuilder.bindHttp(8080)
-    .mountService(ExampleService.service, "/http4s")
+    .mountService(ExampleService.service, "/http4s/")
     .run
     .awaitShutdown()
 }
diff --git a/examples/src/main/scala/com/example/http4s/ExampleService.scala b/examples/src/main/scala/com/example/http4s/ExampleService.scala
index 66153b8..0ef8934 100644
--- a/examples/src/main/scala/com/example/http4s/ExampleService.scala
+++ b/examples/src/main/scala/com/example/http4s/ExampleService.scala
@@ -54,7 +54,7 @@ object ExampleService {

     case req @ GET -> Root / "redirect" =>
       // Not every response must be Ok using a EntityEncoder: some have meaning only for specific types
-      TemporaryRedirect(uri("/http4s"))
+      TemporaryRedirect(uri("/http4s/"))

     case GET -> Root / "content-change" =>
       // EntityEncoder typically deals with appropriate headers, but they can be overridden
@@ -113,7 +113,7 @@ object ExampleService {
     case req @ GET -> Root / "push" =>
       // http4s intends to be a forward looking library made with http2.0 in mind
       val data =
-      Ok(data).push("/image.jpg")(req)
+      Ok(data).withHeaders(`Content-Type`(`text/html`)).push("image.jpg")(req)

     case req @ GET -> Root / "image.jpg" =>
       StaticFile.fromResource("/nasa_blackhole_image.jpg", Some(req))

Good catches.  This would be welcome as a pull request.  I understand the TemporaryRedirect, but I need to mull over what the trailing slash means in mounting a service in Blaze.  We should put some thought into ensuring BlazeBuilder and the servlet builders act similarly.
We recently changed XML literals' default content type from text/html to application/xml, figuring that scala.xml will more commonly be used for XML than inline HTML templating.  The opposite was true in our example service.  scala.xml.Elem is a tricky one, because it a few reasonable default content types. Your solution, or using a Twirl template as done elsewhere in the example, are both good.

A look back in the past shows that before we did twirl, the xml literal that formed the index had the mount prefix in the links. I don't know of a simple way to fix this otherwise.

Oh yeah, I wondered at the time if there was an easy way to pass the mount
prefix to the twirl template, and whether that would be an appropriate fix.
On Sun, Jan 18, 2015 at 22:32 Bryce Anderson<EMAIL_ADDRESS>wrote:

A look back in the past
https://github.com/http4s/http4s/commit/528233db0970df1570956af2b1722a762e15ab32
shows that before we did twirl, the xml literal that formed the index had
the mount prefix in the links. I don't know of a simple way to fix this
otherwise.
—
Reply to this email directly or view it on GitHub
https://github.com/http4s/http4s/issues/178#issuecomment-70442617.

I tried to skirt around that issue by making all the links relative.  It worked in the basic case, but when the redirect rerendered the index template from a Uri without a trailing slash, that's probably when the trouble began.
Request has a scriptName and pathInfo.  scriptName is supposed to reflect the mount prefix portion of the path, and pathInfo the remainder.  To make the template truly portable across mount prefixes:

I think Twirl template parameter groups can be implicit.  This may or may not help get a Request to the template.
I know the servlet backends set a scriptName (it's just the contextPath+servletPath).  Looking at the code, it looks like Blaze stores it in a UriTranslateRoot.translateRootKey.  This looks like trouble to me.

Thats an artifact of using UriTranslation for 'mounting'. Servlet stores similar information using the Request.Keys.PathInfoCaret, but the actual uri is unaffected. I'll file a issue about the inconsistency of UriTranslation and the way servlet handles it.

I'm of the opinion we should patch this in whatever way we need to to get it working and fix associated problems in separate tickets: no need to keep an embarrassing broken demo while we solve the underlying problems. To that end, is there more issues to resolve than #180, and @refried, do you want to submit a PR or should we just handle it?

+1 to fixing what we have a fix for. The script name issue captured in the other ticket.

@bryce-anderson Heh, I'm clumsy with git, and probably should've just let you guys handle it, but I guess it's good practice; thanks.

Should be fixed by #182 and #181. Thanks @refried.


Add default features to edhoc-rs-no_std example and update README.md

Just did a quick test on building with PSA and cryptocell on nrf52840-dk. README.md was a little outdated. I also updated the default features of the example to use cryptocell310 backend.

Thank you, looks good!


Opponent's cards not showing in Match History

Describe the bug
Opponent's cards not showing on my matches page since playing the metagame event
To Reproduce
Logged in on my account, go to the matches screen https://mtgarena.pro/matches/
Expected behavior
Opponent's cards displayed for all completed matches.
Screenshots

Additional context
May not be related to the metagame event as I've seen this happen intermittently before

Its working again, closing


Add OpenRCT2 0.2.6

This manifest installs correctly but for some reason the installer exits with code 1223. Does anybody know how to fix this?
Smartscreen result:

Part of https://github.com/MarNicGit/winget-pkgs/issues/4
Microsoft Reviewers: Open in CodeFlow

@MarNicGit smartscreen in edge no longer warns about openrct

Installer failed with exit code: 1223

@KevinLaMS I am aware, that's why this PR is still a draft. Despite the error code the application runs fine and all the files are there it seems. Currently talking to OpenRCT2 to resolve this issue, once it's been figured out I'll be moving this PR from Draft to Ready for review.

@KevinLaMS Could you put the Blocking Issue label on this PR? It relates to https://github.com/microsoft/winget-cli/issues/137.

https://github.com/microsoft/winget-cli/issues/137

We now support non-zero success codes. If the manifest schema is updated, this might pass now :smile:


PR: When deleting bucket, invalidate list cache for ''

Otherwise bucket name would still show up for ls('').
Fixes #43

Related question: currently exists() returns False for any bucket public bucket we can see but don't own (i.e,. all buckets, when anon=True in the credentials), even if we've already accessed it.
One solution would be to to change the and to an or in the last line of exists (so we actually check if the bucket is readable), or instead to check dirs only for buckets already accessed. @mrocklin , any thoughts about this and the ls issue #38 ? Changes probably belong in this PR.

I think that we should return true for files that we can see but down own, especially if we have read privileges.  I would generally follow posix rules for this sort of thing.


Verify a first-party Microsoft Service Principal in your AAD tenant

Using the Microsoft PowerShell command to determine if<EMAIL_ADDRESS>is indeed a first party MS service principal I get nothing.
Customer is seeing this account in his audit logs performing what it appears to be bulk MFA modification on the user accounts in his tenant.
No one nor article has any reference to that account.  Can someone advise?
Thank you
Steve

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

ID: 33be97f8-2846-f5d1-a196-7019d44327b2
Version Independent ID: 5f0bb5e3-dbc5-f004-fe9d-8a814bfd654c
Content: Unknown Actors in Audit Reports - Active Directory
Content Source: support/azure/active-directory/unknown-actors-in-audit-reports.md
Service: active-directory
GitHub Login: @genlin
Microsoft Alias: genli

@stevelsd, This email address<EMAIL_ADDRESS>is not from Microsoft support team.
Click here to learn how to identify whether an email is from Microsoft support

Thank you for your time to make a response but an email is not the issue.
<EMAIL_ADDRESS>is the account that is listed in the audit logs.
I am looking for an MS expert or MS FTE team member to advise that this is indeed a first-party Microsoft Service Principal in an AAD tenant.
Please someone else assist?
Thank you

@stevelsd, I would suggest you contact Azure supportto verity this Service Principal.


handwritten digit recognition ml model [GSSOC'23]

Close  #2463

Checklist:

[x] I have mentioned the issue number in my Pull Request.
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have created a helpful and easy to understand README.md

#3902 @MohitGupta121 could you please review it

Hey there @MohitGupta121, @pranjay-poddar, @Saurabh-kumar09 & @TusharKesarwani.
Please make sure to review this PR.
Thank you!


Slow Opening

After cleaning up my computer, my VS Code opens up to 30s. Reinstall doesn't help. Maybe I deleted some file, please help me to solve it. Thanks so much

:warning: We have copied additional data to your clipboard. Make sure to paste here. :warning:

System Info

Code: 1.57.1 (507ce72a4466fbb27b715c3722558bb15afa9f48)
OS: win32(10.0.19041)
CPUs: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz(12 x 2208)
Memory(System): 15.85 GB(7.98GB free)
Memory(Process): 161.93 MB working set(107.81MB private, 0.17MB shared)
VM(likelihood): 0%
Initial Startup: true
Has 0 other windows
Screen Reader Active: false
Empty Workspace: true

Performance Marks

What
Duration
Process
Info

start => app.isReady
4420
[main]
initial startup: true

nls:start => nls:end
0
[main]
initial startup: true

require(main.bundle.js)
163
[main]
initial startup: true

start crash reporter
31
[main]
initial startup: true

serve main IPC handle
4
[main]
initial startup: true

create window
165
[main]
initial startup: true, state: 0ms, widget: 162ms, show: 0ms

app.isReady => window.loadUrl()
415
[main]
initial startup: true

window.loadUrl() => begin to require(workbench.desktop.main.js)
315
[main->renderer]
NewWindow

require(workbench.desktop.main.js)
902
[renderer]
cached data: NO, node_modules took 0ms

wait for window config
0
[renderer]
-

init storage (global & workspace)
37
[renderer]
-

init workspace service
56
[renderer]
-

register extensions & spawn extension host
660
[renderer]
-

restore viewlet
26
[renderer]
workbench.view.explorer

restore panel
0
[renderer]
-

restore & resolve visible editors
69
[renderer]
1: workbench.editors.gettingStartedInput

overall workbench load
360
[renderer]
-

workbench ready
6483
[main->renderer]
-

renderer ready
1347
[renderer]
-

shared process connection ready
0
[renderer->sharedprocess]
-

extensions registered
7233
[renderer]
-

Extension Activation Stats

Extension
Eager
Load Code
Call Activate
Finish Activate
Event
By

vscode.debug-auto-launch
true
6
0
17
*
vscode.debug-auto-launch

vscode.git
true
92
14
126
*
vscode.github

vscode.github
true
16
0
0
*
vscode.github

GitHub.vscode-pull-request-github
true
141
3
0
*
GitHub.vscode-pull-request-github

vscode.configuration-editing
false
12
1
15
onLanguage:jsonc
vscode.configuration-editing

vscode.emmet
false
65
5
4
onStartupFinished
vscode.emmet

vscode.github-authentication
false
55
4
421
onAuthenticationRequest:github
vscode.github-authentication

vscode.json-language-features
false
145
10
18
onLanguage:jsonc
vscode.json-language-features

vscode.merge-conflict
false
9
1
3
onStartupFinished
vscode.merge-conflict

vscode.microsoft-authentication
false
42
8
475
onAuthenticationRequest:microsoft
vscode.microsoft-authentication

ms-vscode-remote.remote-wsl-recommender
false
35
3
2
onStartupFinished
ms-vscode-remote.remote-wsl-recommender

ms-vscode.js-debug
false
333
15
0
onCommand:extension.js-debug.clearAutoAttachVariables
ms-vscode.js-debug

vscode.testing-editor-contributions
false
2
0
2
onStartupFinished
vscode.testing-editor-contributions

vscode.typescript-language-features
false
116
5
14
onLanguage:jsonc
vscode.typescript-language-features

Raw Perf Marks: main
Name	Timestamp	Delta	Total
code/timeOrigin<PHONE_NUMBER>898	0	0
code/didStartMain<PHONE_NUMBER>145	247	247
code/willStartCrashReporter<PHONE_NUMBER>165	20	267
code/didStartCrashReporter<PHONE_NUMBER>196	31	298
code/mainAppReady<PHONE_NUMBER>565	4369	4667
code/willLoadMainBundle<PHONE_NUMBER>569	4	4671
code/fork/willLoadCode<PHONE_NUMBER>588	19	4690
code/registerFilesystem/file<PHONE_NUMBER>726	138	4828
code/didLoadMainBundle<PHONE_NUMBER>732	6	4834
code/willStartMainServer<PHONE_NUMBER>747	15	4849
code/didStartMainServer<PHONE_NUMBER>751	4	4853
code/willCreateCodeWindow<PHONE_NUMBER>809	58	4911
code/willRestoreCodeWindowState<PHONE_NUMBER>810	1	4912
code/didRestoreCodeWindowState<PHONE_NUMBER>810	0	4912
code/willCreateCodeBrowserWindow<PHONE_NUMBER>811	1	4913
code/didCreateCodeBrowserWindow<PHONE_NUMBER>973	162	5075
code/didCreateCodeWindow<PHONE_NUMBER>974	1	5076
code/willOpenNewWindow<PHONE_NUMBER>980	6	5082

Raw Perf Marks: renderer
Name	Timestamp	Delta	Total
code/timeOrigin<PHONE_NUMBER>981	0	0
code/didStartRenderer<PHONE_NUMBER>281	300	300
code/willWaitForWindowConfig<PHONE_NUMBER>282	1	301
code/didWaitForWindowConfig<PHONE_NUMBER>282	0	301
code/willShowPartsSplash<PHONE_NUMBER>282	0	301
code/didShowPartsSplash<PHONE_NUMBER>284	2	303
code/willLoadWorkbenchMain<PHONE_NUMBER>295	11	314
code/didLoadWorkbenchMain<PHONE_NUMBER>197	902	1216
code/registerFilesystem/file<PHONE_NUMBER>202	5	1221
code/registerFilesystem/vscode-userdata<PHONE_NUMBER>202	0	1221
code/willInitWorkspaceService<PHONE_NUMBER>207	5	1226
code/willInitStorage<PHONE_NUMBER>208	1	1227
code/didInitStorage<PHONE_NUMBER>245	37	1264
code/didInitWorkspaceService<PHONE_NUMBER>263	18	1282
code/willStartWorkbench<PHONE_NUMBER>268	5	1287
code/LifecyclePhase/Ready<PHONE_NUMBER>271	3	1290
code/registerFilesystem/trustedDomains<PHONE_NUMBER>388	117	1407
code/willRestoreEditors<PHONE_NUMBER>558	170	1577
code/willRestoreViewlet<PHONE_NUMBER>561	3	1580
code/didRestoreViewlet<PHONE_NUMBER>587	26	1606
code/didRestoreEditors<PHONE_NUMBER>627	40	1646
code/LifecyclePhase/Restored<PHONE_NUMBER>628	1	1647
code/didStartWorkbench<PHONE_NUMBER>628	0	1647
code/didRemovePartsSplash<PHONE_NUMBER>628	0	1647
code/willConnectSharedProcess<PHONE_NUMBER>662	34	1681
code/willLoadExtensions<PHONE_NUMBER>718	56	1737
code/willHandleExtensionPoints<PHONE_NUMBER>049	331	2068
code/didHandleExtensionPoints<PHONE_NUMBER>368	319	2387
code/didLoadExtensions<PHONE_NUMBER>378	10	2397

Raw Perf Marks: localExtHost
Name	Timestamp	Delta	Total
code/timeOrigin<PHONE_NUMBER>967	0	0
code/fork/start<PHONE_NUMBER>248	281	281
code/fork/willLoadCode<PHONE_NUMBER>305	57	338
code/extHost/willConnectToRenderer<PHONE_NUMBER>097	792	1130
code/extHost/didConnectToRenderer<PHONE_NUMBER>098	1	1131
code/extHost/didWaitForInitData<PHONE_NUMBER>284	186	1317
code/extHost/didCreateServices<PHONE_NUMBER>295	11	1328
code/extHost/willWaitForConfig<PHONE_NUMBER>299	4	1332
code/extHost/didWaitForConfig<PHONE_NUMBER>355	56	1388
code/extHost/didInitAPI<PHONE_NUMBER>359	4	1392
code/extHost/didInitProxyResolver<PHONE_NUMBER>364	5	1397
code/extHost/ready<PHONE_NUMBER>364	0	1397
code/extHost/willLoadExtensionCode/vscode.microsoft-authentication<PHONE_NUMBER>367	3	1400
code/extHost/didLoadExtensionCode/vscode.microsoft-authentication<PHONE_NUMBER>409	42	1442
code/extHost/willLoadExtensionCode/vscode.debug-auto-launch<PHONE_NUMBER>409	0	1442
code/extHost/didLoadExtensionCode/vscode.debug-auto-launch<PHONE_NUMBER>415	6	1448
code/extHost/willLoadExtensionCode/vscode.git<PHONE_NUMBER>416	1	1449
code/extHost/didLoadExtensionCode/vscode.git<PHONE_NUMBER>508	92	1541
code/extHost/willLoadExtensionCode/GitHub.vscode-pull-request-github<PHONE_NUMBER>509	1	1542
code/extHost/didLoadExtensionCode/GitHub.vscode-pull-request-github<PHONE_NUMBER>650	141	1683
code/extHost/willActivateExtension/vscode.microsoft-authentication<PHONE_NUMBER>655	5	1688
code/extHost/willActivateExtension/vscode.debug-auto-launch<PHONE_NUMBER>663	8	1696
code/extHost/willActivateExtension/vscode.git<PHONE_NUMBER>663	0	1696
code/extHost/willActivateExtension/GitHub.vscode-pull-request-github<PHONE_NUMBER>677	14	1710
code/extHost/didActivateExtension/vscode.debug-auto-launch<PHONE_NUMBER>680	3	1713
code/extHost/didActivateExtension/GitHub.vscode-pull-request-github<PHONE_NUMBER>680	0	1713
code/extHost/willLoadExtensionCode/vscode.github-authentication<PHONE_NUMBER>704	24	1737
code/extHost/didLoadExtensionCode/vscode.github-authentication<PHONE_NUMBER>758	54	1791
code/extHost/didActivateExtension/vscode.git<PHONE_NUMBER>803	45	1836
code/extHost/willLoadExtensionCode/ms-vscode.js-debug<PHONE_NUMBER>805	2	1838
code/extHost/didLoadExtensionCode/ms-vscode.js-debug<PHONE_NUMBER>138	333	2171
code/extHost/willActivateExtension/vscode.github-authentication<PHONE_NUMBER>138	0	2171
code/extHost/didActivateExtension/vscode.microsoft-authentication<PHONE_NUMBER>147	9	2180
code/extHost/willLoadExtensionCode/vscode.github<PHONE_NUMBER>194	47	2227
code/extHost/didLoadExtensionCode/vscode.github<PHONE_NUMBER>210	16	2243
code/extHost/willActivateExtension/ms-vscode.js-debug<PHONE_NUMBER>210	0	2243
code/extHost/didActivateExtension/ms-vscode.js-debug<PHONE_NUMBER>225	15	2258
code/extHost/willActivateExtension/vscode.github<PHONE_NUMBER>259	34	2292
code/extHost/didActivateExtension/vscode.github<PHONE_NUMBER>260	1	2293

Node Cached Data Stats
cached data used
cached data missed
cached data rejected
cached data created (lazy, might need refreshes)

:warning: Make sure to attach these files from your home-directory: :warning:
prof-878f.extHost.cpuprofile.txt
prof-878f.main.cpuprofile.txt
prof-878f.renderer.cpuprofile.txt

When I turn off Load startup items in msconfig, it become normally. I don't know why.

This is due to a delayed app-ready event

This is due to a delayed app-ready event

Can you help me to fix it, I realized that it returns slow again

I found out that because of Nahimic Service, it becomes normally after I end their tasks.

I found out that because of Nahimic Service, it becomes normally after I end their tasks.

I also have this issue. Nahimic Service is enabled by default on many Asus computers, and other makes. Disabling a service manually is not really an acceptable and in my case it gets reenabled regularly by system updates. And it can't be uninstalled without also removing your onboard audio drivers. (manually extracting installing .inf drivers to work around this isn't a real solution either as aside from being super hacky and disables many features, it's impossible to unpack the inf files from many installers these days.) Very strange that it would cause this kind of interference though Nahimic Service is known to cause issues with other applications, e.g. it can cause SideFX Houdini to crash at random.
Even if there is nothing that can be done to eliminate this issue directly from the VScode developers (I have no idea if where the onus lies), it should be clearly documented as a possible issue (as it is in SideFX Houdini troubleshooting docs) and perhaps even a warning issued in vscode if the Nahimic Service is detected since it is so detrimental, it makes vscode nearly unusable as there is a 10 second delay with EVERY file opened, it's not just a delay of initial app startup which is bad enough.
This was also reported ~8 months ago in this issue https://github.com/microsoft/vscode/issues/113360
Very likely that this often goes unreported as it doesn't completely block VScode from working, it just gives the (very false) impression that VScode and/or the user's computer is a stinking hot unoptimized piece of garbage. So it's work looking into to try and remedy that false perception alone on every single Asus computer in existence and any others that have Nahimic bundle with their audio drivers. Again i'm not blaming VScode for this, it's more likely something nasty that Nahimic is doing but it is also puzzling why certain applications like VScode are somehow severely affected and interfered with while most others are not.
Cheers

I found out that because of Nahimic Service, it becomes normally after I end their tasks.

Thanks, I have been having the same issue. I found this is being tracked under this github issue since 2017 if you would like to track progress
https://github.com/microsoft/vscode/issues/22087
since disabling the service isn't really an acceptable solution, the service will get reenabled eventually automatically by any audio driver updates on many computers.

This is due to a delayed app-ready event

Can this issue actually be addressed or are you going to just keep closing and locking issues?

This is due to a delayed app-ready event

Can this issue actually be addressed or are you going to just keep closing and locking issues?
Edit:
@lnm451 in this case you closed this issue. There are tons of them. Can we have this addressed so that it doesn't become a widespread issue. This audio driver comes preinstalled on a lot of prebuilt computers.

The main issue is #22087 and is still open. This wasn't mentioned specifically in this issue thread but i found it by searching issues for "nahimic" and it is the master issue for this (which is actually an issue between electron and nahimic.. which is why the vscode devs can't do anything to resolve it directly.) This is a duplicate issue and so it doesn't need to be open. It was closed by the issue reporter, anyway @lnm451 who is not a microsoft developer.

This is due to a delayed app-ready event

Can this issue actually be addressed or are you going to just keep closing and locking issues?
Edit:
@lnm451 in this case you closed this issue. There are tons of them. Can we have this addressed so that it doesn't become a widespread issue. This audio driver comes preinstalled on a lot of prebuilt computers.

The master issue for this is #22087 and is still open, this issue here is a duplicate and has no purpose being open. Only problem is the master issue wasn't linked before it got closed so there you go. i found it by searching issues for "nahimic". It is actually an issue between electron and nahimic.. which is why the vscode devs can't do anything to resolve it directly. It was closed by the issue reporter, anyway @lnm451 who is not a microsoft developer. (neither am i)

Thank you for the clarification. I didn't realize this issue was closed by the issue reporter.
This is one of those things that took a lot of digging and I was having my issues closed by the VS Code team members despite trying to identify and resolve the issue.
It's pretty frustrating,  but thank you for the information. It'll be best to log this one with the guys working on Electron then.


AssetManager is hanging up

Please ensure you have given all the following requested information in your report.
Issue details
I try to load and get an TextureAtlas asset file and use the AbsoluteFileHandlerResolver:
new AssetManager(new AbsoluteFileHandlerResolver())
After assetManager.load(), i call assetManager.finishLoadingAsset(atlasFile) which causes into a deadlock or something else. The window is frozen / hanging up forever (only STRG + C helps).

Reproduction steps/code
Gdx.app.debug("WaterRenderer", "try to load atlas file: " + atlasFile);

//load asset
assetManager.load(atlasFile, TextureAtlas.class);

if (assetManager.isLoaded(atlasFile)) {
    Gdx.app.log("Water", "water animation is already loaded.");
} else {
    Gdx.app.log("Water", "water animation isnt loaded yet.");
}

//finish loading
assetManager.finishLoadingAsset(atlasFile); //this command is hanging up game, without this line the game isnt hanging up, but also asset isnt loaded

Gdx.app.debug("WaterRenderer", "atlas file loaded: " + atlasFile);

Full source code (i have tagged the not-working-code):
https://github.com/leeks-and-dragons/leeks-and-dragons/tree/libgdx_hanging_up_issue
Version of LibGDX and/or relevant dependencies
I use the newest libGDX Version, libGDX 1.9.6.
Stacktrace
There isnt any stacktrace.
Log
I have set asset manager log method to DEBUG. So this is the log:
WaterRenderer: try to load atlas file: D:\Users\Justin\IdeaProjects\LeeksAndDragons-Project\leeks-and-dragons\mods\maingame\animation\water\WaterAnimation.atlas
Water: water animation isnt loaded yet.
AssetManager: Loading: D:/Users/Justin/<Project Name>/mods/maingame/animation/water/WaterAnimation.atlas, com.badlogic.gdx.graphics.g2d.TextureAtlas
AssetManager: Loading dependency: D:/Users/Justin/<Project Name>/mods/maingame/animation/water/WaterAnimation.png, com.badlogic.gdx.graphics.Texture

EDIT:
If i print assetManager.getDiagnostics() before assetManager.finishLoadingAsset(atlasFile) call, i get this output:
WaterRenderer: try to load atlas file: D:\Users\Justin\IdeaProjects\LeeksAndDragons-Project\leeks-and-dragons\mods\maingame\animation\water\WaterAnimation.atlas
Water: water animation isnt loaded yet.
Water:
========
BEGIN of asset manager diagnostics:
========
D:/Users/Justin/IdeaProjects/LeeksAndDragons-Project/leeks-and-dragons/mods/maingame/animation/water/WaterAnimation.png, Texture, refs: 1
./data/wallpaper/Loading_Screen.png, Texture, refs: 2
./data/wallpaper/Loading_Screen_layer_2.png, Texture, refs: 2
D:/Users/Justin/IdeaProjects/LeeksAndDragons-Project/leeks-and-dragons/mods/maingame/asset1.png, Texture, refs: 1
D:/Users/Justin/IdeaProjects/LeeksAndDragons-Project/leeks-and-dragons/mods/maingame/asset2.png, Texture, refs: 1
./data/sound/menu_selection_click/menu_selection_click_16bit.wav, Sound, refs: 1
D:/Users/Justin/IdeaProjects/LeeksAndDragons-Project/leeks-and-dragons/mods/maingame/animation/water/WaterAnimation.atlas, TextureAtlas, refs: 1, deps: [D:/Users/Justin/IdeaProjects/LeeksAndDragons-Project/leeks-and-dragons/mods/maingame/animation/water/WaterAnimation.png,]

========
END of asset manager diagnostics:
========

Please select the affected platforms

[ ] Android
[ ] iOS (robovm)
[ ] iOS (MOE)
[ ] HTML/GWT
[x] Windows
[ ] Linux
[ ] MacOS

I have tested it only with Windows 10, maybe same problem occurres on Linux & Mac OS.

Try loading it via new TextureAtlas(FileHandle); and see if it works.

@piotr-j Thanks for your answer! :)
I have tested it and it works with this snippet:
FileHandle fileHandle = Gdx.files.absolute("mods/maingame/animation/water/WaterAnimation.atlas");
TextureAtlas atlas = new TextureAtlas(fileHandle);

So i think the bug is really in asset manager.

I have reproduced this issue an little bit more and maybe i have found the problem.
This works fine:
assetManager.load("mods/maingame/animation/water/WaterAnimation.atlas", TextureAtlas.class);

Also this works fine:
assetManager.load("D:/Users/Justin/IdeaProjects/LeeksAndDragons-Project/leeks-and-dragons/mods/maingame/animation/water/WaterAnimation.atlas");

But this snippet doesnt work and causes an application hang up:
File file = new File("mods/maingame/animation/water/WaterAnimation.atlas");
Gdx.app.debug("WaterRenderer", "atlas file: " + file.getAbsolutePath());

assetManager.load(file.getAbsolutePath(), TextureAtlas.class);//this line is game hanging up

Whats the problem? It's easier, than you think. The output from Gdx.app.debug() is this:
WaterRenderer: atlas file: D:\Users\Justin\IdeaProjects\LeeksAndDragons-Project\leeks-and-dragons\mods\maingame\animation\water\WaterAnimation.atlas

Whats the different? The last log uses windows backslashes "" (because file.getAbsolutePath() returns string with backslashes on windows) instead of slashes "/".
So if i replace backslash with slash, this snippet works also:
File file = new File("mods/maingame/animation/water/WaterAnimation.atlas");
Gdx.app.debug("WaterRenderer", "atlas file: " + file.getAbsolutePath());

assetManager.load(file.getAbsolutePath().replace("\\", "/"), TextureAtlas.class);

Now you get it. Actually when running on a Japanese windows, those backslashes will become '¥'. So that's why you want to use FileHandle instead of java.io.File.


Going Super-Lazy...

So I was thinking last night about how async/await is coming to ES5 via TS2.0.  I'm super excited for this.  But then it dawned on me...  Putting aside code that doesn't run in the browser.  Why can't we have a TS compiler that has a "superLazy":true mode?
What is Super-Lazy?
So you can write code for JS that takes dependency management a step further.  Instead of simply:
// Preferably this is how super lazy code would look without even you even knowing it.
var myObj = new ModuleClass();
myObject.doSomething();

could potentially write it:
// If not just looking like regular synchronous code...
var myObj = await new ModuleClass();
myObject.doSomething();

which either would really equal:
require("ModuleClass").then(ModuleClass=>{
   var myObj = new ModuleClass();
   myObject.doSomething();
});

Instead of forcing the developer to write more async code, the TS compiler could add the code that uses the async/await pattern automatically.
Why?
Because we build classes and libraries that link to each other but sometimes in our lazy world of code that particular dependency never gets used!  So why load the dependencies ahead of time?  Why not defer them to the last second just like an AsyncLazy<T> (aka Promise<T>) class or something?

This may not be necessary for everything but if you can imagine the chain of dependencies that may be avoided if a particular class is never instantiated even though it's imported.

So here's my real world example:
Just like .NET I have an IEnumerable<T> interface an subsequent classes that follow that pattern.
I also have LINQ extensions by loading a module and calling Enumerable.from(myCollection).
The problem is, the LINQ library is huge.  And although I would love for every class that implements IEnumerable<T> to have the full LINQ functionality, I then automatically incur that overhead even if per-se someone was to use Queue<T> but only for its basic functionality and never use LINQ.
So my plan is/was to create an .asEnumerable():IPromise<ILinq> or something to the effect.
Which under the hood would:
asEnumerable():IPromise<ILinq> {
  return require("../System.Linq/Linq")
      .then(Enumerable=>Enumerable.from(this));
}

Although the above fits what I'm trying to accomplish, it's basically clunky and not ideal.
Ideally, I would simply want it to work like:
var names = myIEnumerable.linq // where .linq is accesor that returns a promise that may have already resolved.
    .select(person=>person.name);

Is this making sense?

I do not think TS should be hiding that much details from the user. Moreover, most of the value outlined above can be achived by structuring your project into units ( be it 1 class, multiple classes,..) and having every unit in a module.
One other thing, this would break single file compilation, as the compiler needs to know were to get the class from in the first place, which relies on global program information.

related discussion in https://github.com/Microsoft/TypeScript/issues/2508

Isn't SystemJS already doing this?

@electricessence I'm pretty sure the ES module loader spec will cover your async module loading case.
Here is some related issues a filed before:
#3100.
https://github.com/whatwg/loader/issues/59

closing as out of scope of the TS project at the time being.

@mhegazy ...

One other thing, this would break single file compilation, as the compiler needs to know were to get the class from in the first place, which relies on global program information.

Would not break it.  You would still use the same import statements.  The code would read exactly as you would normally write synchronous code.  But the require would happen at instantiation of the desired class and not the host class.

So again, there is a way to manually do this.  It's just the nature of TS and it's ability of async/await rewriting that allows fro this to happen.  I still hope people think about it or how to enable it.

@DaSchTour

Isn't SystemJS already doing this?
As far as I know, there is no loader that does this.  The code would have to be interpreted/re-compiled to allow for pure async loading.

there is no way to do this correctly unless you 1. do global analysis and know which classes are created asynchronously and which are not, or 2. rewrite every construct call to an asynchronous operation. and in both cases, the cost of rewriting a all your new's to async, and then transforming the rest of your code is substantial. I do not think there is much value here to be frank to do this all the time for all classes and all instantiations. you are much better off identifying what are units of code that should live together, and importing them when needed. then use a bundler (or just tsc --outFile on your entry module) and that will do tree shaking for you.

So the obvious point is that if you are bundling or 'outFile' then this is a useless concept for you.
But for me, I have a perfect use case that makes sense to me.  I don't want to (but may end up) rewrite my universe of code to be async everywhere, but it solves a serious problem...
Here's my example...
Let's say you have an interface like IEnumerator<T>.
But for every type of stream, iterator, collection, generator, or anything imaginable, each will have a unique/specialized/optimized enumerator that works with it.
Now let's say you have a method called
export function from(e:any):IEnumerator<T> { /* complex logic to select the right class */ }

At the head of this file is a huge number of imports for different enumerators.
But for the life of the application, you may only use 1 of 5 of these even though you loaded all of them.
Bundling doesn't solve this issue either.  It just incurs the unnecessary cost up front.

@mhegazy and sorry, just to clarify... I don't see what I'm suggesting as anything different to what the async/await rewrite does.  Simply stated, your imports declare which potential classes you might use, and in place of their constructor, you have some async function.

I don't see what I'm suggesting as anything different to what the async/await rewrite does.

But this is based on what is reasonably expected to be agreed as a standard for the ECMAScript language.  The place to start for this would be TC39 or more likely the WHATWG for the System Loader.

For this case you can isolate enumeration in one module, then use conditional loading(require, or System.import, ...) and await the promise.

Let me try and explain how you would need to do this effectively today (which isn't too bad if it's just one thing) and it will be obvious then how async/await helps.  And what I'm suggesting is simply allowing a rewrite (maybe I need to get my hands dirty in the TSC) that replaces new X with new require("X") where the import is skipped at the beginning.   And please help me by showing me where I'm wrong here.
Also note, I understand that this is not a concern for most.  It only really applies to browser/web loading and not NodeJS/CommonJS.  But if I was to create a UMD module I would want this.
If I need to do what I'm talking about today and still retain type information...

I would need to define the entire interface of the class I was instantiating so the typing could be reflected.  Please use your imagination here as it gets a bit crazy if the class is larger and hence why you would want/need to do this in the first place.

// IMyHugeUtility.d.ts
export interface IMyHugeUtility{
  /// ... endless methods inside ...
}

Inherit from that interface and expose the file MyHugeUtility.ts.
Consume the file.

myMethod():Promise<IMyHugeUtility> {
  var r = Promise.pending();  // Because require (AMD) doesn't inherently return promises :/
  require("./path/MyHugeUtility",(MyHugeUtility:IMyHugeUtility)=>{
     r.resolve(new IMyHugeUtility());
  });
  return r;
}

And subsequently...  Putting async in front of this method then makes it nice to consume in a synchronous way.

What you are talking about is supporting one very specific pattern at the cost of increasing the complexity of the compiler, adding compiler behaviour that isn't based on any existing or planned ES language feature and could easily "surprise" many developers, all for the cost of not being explicit about dependencies.  This seems like a case of the fallacy of composition.  How would you do with namespace resolution, where there are conflicting names?  What if someone has a class name that conflicts with a built in (e.g. Bluebird's Promise)?

@kitsonk I agree that this does seem like an edge case.  And in no way am I assuming it's easy.
But not only do I believe in the value of it, I also believe that the TSC could be the only thing that could do it right!  Only a compiler with async/await capabilities would be able to do this effectively.
Namespace resolution:  How is this even an issue?
You would still write your code as normal including your imports.
import MyHugeClass from './MyHugeClass';
import {myFunc} from './aLotOfCode';
import {somethingThatRunsImmediately} from './overHere';

/* The bulk of your code. */

somethingThatRunsImmediately();

// Not sure how much of the async portion of this patter would be required.  (just one example here)
async function somethingThatMayNeverBeCalledFor():Promise<MyClass> {
    var n = new MyClass();
    myFunc(n);
    return n;
}

/* some more code */

So the compiler would treat the TS as the same code with resolution as normal.
The difference is, setting a superLazy:true flag would automatically 'asynchronize' any imports.
So the resultant (pseudo) JS code would be:
// Note: no actual imports here.
define(["require","exports","somethingThatRunsImmediately"],
  function(somethingThatRunsImmediately){

/* The bulk of your code. */

somethingThatRunsImmediately();

function somethingThatMayNeverBeCalledFor() {
    return new Promise(resolve=>
             require("./MyClass",MyClass=>{
                   var n = MyClass();
                   // same pattern for myFunc
                   resolve(n);
             });
    );
}

/* some more code */
});

Sorry if that seems either repetitive or long winded.
What would be a good first step if I wanted to contribute to TypeScript and potentially implement this feature?

As noted earlier this feature is out of scope of the TS project at the time being.

@mhegazy noted

@kitsonk (and everyone else).  Thanks for the discussion.  This actually helped me move forward with a CommonJS solution.  Still not perfect, and I still need to import a huge number of declarations, but it will work well enough for now.


Migrate to Swift 3

Almost everything seems to be working except for the posting.
After posting and pull-to-refresh, no songs appear in feed (could this be an issue with backend migration?)

@acheng96 pull and run to make sure everything works as expected plz


Disjoint union - incorrect refinement to any for unknown keys

Here is an ordinary disjoint union type:
type Action =
  | { type: 'BLAH', payload: string }
  | { type: 'FOO', payload: number }

Trying to use the payload without refinement gives type errors, as expected:
function error (action: Action): number {
  return action.payload // $ExpectError (string | number is incompatible with number)
}

However, if we refine the type using an invalid key, obvious type errors pass the checker:
function noError (action: Action): number {
  if (action.type === 'OOPS_A_TYPO') {
    return action.payload // Should error, but passes!
  }
  return 0
}

Expected behavior: There is no refinement, so the payload remains string | number and an error occurs.

I am also open to workaround ideas on this one.

Well, the return of a number is guaranteed in your example, the refinement actually works: The payload is never returned. The error should be a different one, the entire if is redundant because it is if (false).

It looks like the latest version of flow (0.58.0) now throws an error for the original example:
if (action.type === 'OOPS_A_TYPO') {
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ object with property `type` that matches string literal `OOPS_A_TYPO`. This type is incompatible with
 11: export function noError (action: Action): number {
                                      ^^^^^^ union: object type(s)

With this in place, I think it is safe to say that this is no longer an issue - this is now invalid code, so it doesn't matter what Flow infers inside the if block.


Remove histogram from metrics

Report only these counters:
vsphere_cluster_check_total
vsphere_cluster_check_errors
vsphere_node_check_total
vsphere_node_check_errors

Full histogram per check per node could be too heavy for Prometheus database.

/lgtm


[stable/prometheus] Pushgateway ingress path breaks webpage - CSS and JS files not found (404)

Is this a request for help?:
Yes and no
If I could have solved my issue any other way please let me know
If not, let me know what you think of my solution

Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT

Version of Helm and Kubernetes:
Helm: v2.8.2
Kubernetes: v1.10.0
Which chart:
stable/prometheus
What happened:
I was trying to configure the three ingresses for Server, Alertmanager and Pushgateway to have the same host and different path, but the Pushgateway webpage was broken becuase of the nginx.ingress.kubernetes.io/rewrite-target: / annotation (the static folder containing CSS and JS files was not being found).
I'm using the stable/nginx-ingress Chart as ingress controller
My ingresses hosts are:
Server: prometheus.example.com
Alertmanager: prometheus.example.com/alertmanager
Pushgateway: prometheus.example.com/pushgateway
What you expected to happen:
Get the pushgateway ingress to work, or have the ability to specify the "application root" at the application level, which is possible in a newer pushgateway image with the parameter --web.route-prefix
How to reproduce it (as minimally and precisely as possible):
Enable the three ingresses with the above hosts and the following annotations on all three:
annotations:
  kubernetes.io/ingress.class: nginx
  nginx.ingress.kubernetes.io/rewrite-target: /

Anything else we need to know:
I managed to fix it myself and I'd be happy to open a PR.
I've updated the Values file to use the newer pushgateway image prom/pushgateway:v0.5.1
I've set pushgateway extraArgs:
extraArgs:
  web.route-prefix: "pushgateway"

I've set the ingress annotations to:
annotations:
  kubernetes.io/ingress.class: nginx

(NOTE: no rewrite-target in this case)
I then had to modify the Chart as the readinessProbe in the pushgateway-deployment.yaml file was failing for the missing "prefix".
It was checking: path: /#/status
It should have been checking: path: /pushgateway/#/status
The change I made:
readinessProbe:
  httpGet:
  {{- if (index .Values "pushgateway" "extraArgs" "web.route-prefix") }}
    path: /{{ index .Values "pushgateway" "extraArgs" "web.route-prefix" }}/#/status
  {{- else }}
    path: /#/status
  {{- end }}

@mgoodness
@gianrubio


refact: adjust hugegraph project structure to prepare for merge

Purpose of the PR
subtask of #2265
Adjust the project structure of this repository to include three sub-modules: hugegraph-server, hugegraph-pd, hugegraph-store at the root level.

Main Changes
The following files are currently in the root directory of this repository:
.
├── BUILDING.md
├── CONTRIBUTING.md
├── DISCLAIMER
├── Dockerfile
├── LICENSE
├── NOTICE
├── README.md
├── hugegraph-api
├── hugegraph-cassandra
├── hugegraph-core
├── hugegraph-dist
├── hugegraph-example
├── hugegraph-hbase
├── hugegraph-mysql
├── hugegraph-palo
├── hugegraph-postgresql
├── hugegraph-rocksdb
├── hugegraph-scylladb
├── hugegraph-style.xml
├── hugegraph-test
├── pom.xml
└── style

After adjusting the project structure, the existing sub-modules will be moved to the hugegraph-server folder, and two new folders, hugegraph-pd and hugegraph-store, are added for future integration (add empty README.md files in these folders for being tracked by git).
.
├── BUILDING.md
├── CONTRIBUTING.md
├── DISCLAIMER
├── Dockerfile
├── LICENSE
├── NOTICE
├── README.md
├── hugegraph-pd
│   └── README.md
├── hugegraph-server
│   ├── hugegraph-api
│   ├── hugegraph-cassandra
│   ├── hugegraph-core
│   ├── hugegraph-dist
│   ├── hugegraph-example
│   ├── hugegraph-hbase
│   ├── hugegraph-mysql
│   ├── hugegraph-palo
│   ├── hugegraph-postgresql
│   ├── hugegraph-rocksdb
│   ├── hugegraph-scylladb
│   └── hugegraph-test
├── hugegraph-store
│   └── README.md
├── hugegraph-style.xml
├── pom.xml
└── style

Obviously, after the adjustments, hugegraph-server cannot be built correctly, so this PR  will make breaking changes. The remaining configuration files in the root directory will be adjusted in subsequent PRs.

Verifying these changes

[x] Trivial rework / code cleanup without any test coverage. (No Need)
[ ] Already covered by existing tests, such as (please modify tests here).
[ ] Need tests and can be verified as follows:

xxx

Does this PR potentially affect the following parts?

[ ]  Nope
[ ]  Dependencies (add/update license info)
[ ]  Modify configurations
[ ]  The public API
[x]  Other affects (breaking changes)

Documentation Status

[x]  Doc - TODO
[ ]  Doc - Done
[ ]  Doc - No Need

Note: If u'r not the first time to pull/switch code, u may find the empty (outdated) dir leave in the path, try to use git clean -fdx -i to select & clean them gracefully 🗝

TODO:

@msgui we need fix the CI problem later, could take a look for it

@javeme as PR #2265 says:
we will submit this PR merge to master branch soon, it only adjust the server level, and firstly we only include root-server + 2 README file to occupy 2 modules

To avoid different module paths may take side-effect for new PRs


Add Ramdisk configuration to AIX ansible scripts

see #118 and #44

@CJKwork I thought this was already done somewhere but it's still open ... Either way the AIX ansible scripts could do with being checked over. Give me a shout if you need a box to play with and don't have any available

Adding this as a cross-ref:
https://github.com/nodejs/build/issues/661

Pull request
https://github.com/AdoptOpenJDK/openjdk-infrastructure/pull/568
for this issue.


fix(blog): add title to blog page

What I did

Add the title to blog page

thxxx 🤗
and sorry for the delay 😅


Merge intpips/Makefile and int_loop.mk

These used to be pretty different, but now they are almost the same and need to be kept in sync (see for example https://github.com/SymbiFlow/prjxray/pull/406). Most of the divergences are because of things like intpips needing parallelism that wasn't necessary in others. There should only be a few flags that intpips needs to override in int_loop.mk after the paralleism is brought in

This has already been done. Closing.


Improvement in chat UI

Show time of message sent in chat screen corresponding to every message.

Hey @kshitijalwadhi, I would like to work on this issue.

Hi @rish07.
You are very welcome to contribute to this repository.
Please follow the contribution guidlines before submitting your pull request.

Sure, do you have UI ready as to how the time stamp should look in the message bubble?

We didn't make a prototype for this. You can judge on your own, how it will look better.
Maybe we can have it like a standard chat window where the time is showed at the bottom right of the message bubble.
I have attached a screenshot of the presently implemented chat window.
After you are done with this, if you want to experiment, maybe you can also try showing a date above a chat bubble when a message is sent at a new date from the previous message. (similar to how it works in whatsapp).


Bug 2073436: Update to v1.14.0

Updating Azure File CSI driver to the latest upstream release, from v1.8.0 to v1.14.0.
Changes from upstream v1.14.0:
https://github.com/kubernetes-sigs/azurefile-csi-driver/compare/v1.14.0...bertinatto:rebase-v1.14.0
Changes since v1.8.0:
https://github.com/kubernetes-sigs/azurefile-csi-driver/compare/v1.8.0...v1.14.0
Individual release changelogs:
https://github.com/kubernetes-sigs/azurefile-csi-driver/releases/tag/v1.9.0
https://github.com/kubernetes-sigs/azurefile-csi-driver/releases/tag/v1.10.0
https://github.com/kubernetes-sigs/azurefile-csi-driver/releases/tag/v1.11.0
https://github.com/kubernetes-sigs/azurefile-csi-driver/releases/tag/v1.12.0
https://github.com/kubernetes-sigs/azurefile-csi-driver/releases/tag/v1.13.0
https://github.com/kubernetes-sigs/azurefile-csi-driver/releases/tag/v1.14.0
CC @openshift/storage

/hold
for QE's approval (to simulate no-FF)

/retest

/lgtm

/label qe-approved

/hold cancel


Update test dependency

This only updates microsoft.tests.sdk and eshopworld.tests.core dependencies for the test project

Just to clarify there is no plan to release an update package once this is merged.


371 fix date format goal setting

Fixes: https://github.com/PerfectFit-project/virtual-coach-issues/issues/371

I was not able to test it.. Apparently /EXTERNAL_trigger_goal_setting was not working...

With testing, I have a problem with storing the date to db. The line
selected = session.query(Users).filter_by(nicedayuid=user_id).one()
is not working, probably because my user_id is not in the db? It's not working both at this branch as on the main branch

With testing, I have a problem with storing the date to db. The line selected = session.query(Users).filter_by(nicedayuid=user_id).one() is not working, probably because my user_id is not in the db? It's not working both at this branch as on the main branch

Yes, if the user is not in the users table, then this will fail. Are you sure that this is the case?


Add unit test for right/rightOuterJoin combination

I found out that there is no unit test for right/rightOuterJoin so here is one that combines them both.
I do not include test for sqlite3 because it currently does not support right join.

thanks!

just out of curiosity-if I were to call right/rightOuterJoin with sqlite3 I'd get some error thrown right?


NPM / Bower

Any chances of getting this added to NPM and/or Bower?

It is on npm now: https://www.npmjs.com/package/jquery.shorten


post a message on user stream

Hello,
Is it possible to post a message on user stream like facebook wall post and twitter tweet posting?
Thanks

This is the Google API client library. You'll want to look into using the facebook SDK or the twitter auth api.


E117: unknown function: vundle#installer#list

Hi,
Have trouble making Vundle works with my customized vimrc after shifted my .dotfiles to $XDG (1). But Vundle works with a basic vimrc, so cullprit's in my ongoing vim config. Please is there any particular line to look after in vimrc that is known to cause errors such as:
:BundleList
E117: Fonction inconnue : vundle#installer#list
:BundleSearch <plugin>
E117: Fonction inconnue : vundle#scripts#all
:h vundle
E149: Désolé, aucune aide pour vundle

Station:

vim v7.4
Arch linux
Linux 3.18.1-3-ck x86_64

Uninstalled package vundle-git <IP_ADDRESS>.g3dcb0c3-1 then installed Vundle from git
git clone https://github.com/gmarik/Vundle.vim.git $XDG_CONFIG_HOME/vim/bundle/Vundle.vim
Also did uninstall all vim packages as per  (2) then reinstall vim-runtime & vim, then Vundle: same issue.
(1) Working configuration with vim, Vundle and $XDG  https://github.com/gmarik/Vundle.vim/issues/538
(2) https://stackoverflow.com/questions/14697797/cant-get-bundleinstall-working-for-vundle
EDIT: typos

(You could also post a minimal vimrc file, yours is quite long.)
Try to use call vundle#begin(expand('$XDG_CONFIG_HOME').'/vim/bundle') if you want your bundles in a non standard place.
If this does not help you should post a minimal vimrc, the value of &rtp, the output of :scriptnames or so.

Also make sure you don't ruin vundles runtimepath configuration.
See the line:
set rtp+=~/.vim/bundle/Vundle.vim
in your vimrc.
I had a
set runtimepath=$XDG_CONFIG_HOME/vim,/usr/share/vim/vimfiles,/usr/share/vim/vim74,/usr/share/vim/vimfiles/after,$XDG_CONFIG_HOME/vim/after
in my vimrc afterwards and it obviously trashed everything. I just put it before vundles line and it worked fine.

Thanks BirMa! Yes setting vim's environment before the Vundle's conf lines solves this issue.

On github you normally do not edit the title to mark a topic as solved but just press the corresponding button instead.  This issue is still listed as an open issue until you press the button.

lucc, got it and sorry for being unattentive on where I was operating.

Thanks BirMa! Yes setting vim's environment before the Vundle's conf lines solves this issue.
+1

http://stackoverflow.com/a/22398235/4279735
I solved with this.

After several  days,i solved this Problem  by move 'runtime! debian.vim' before vundle code.

@Pinyupen that's what I commented ~9 months ago.

this worked for me! https://askubuntu.com/questions/894118/vundle-installation-fail