target option for anchor rendering

I'm writing a markdown document that is going to be shown in a frame of a frameset. In my case, all links "..." are references to external pages (outside the frameset), which means that I need 'target="_top"' in the anchor links.
I wonder if this is a general use case that could be supported "out of the box", maybe even with the possibility to choose between 'target="_top"' and 'target="_blank"'. Maybe by an option that allows to freely define the target attribute for links rendered from "...".

I knew that adding an extension of my own was an option. Despite the examples provided as "official" extensions, it's a bit hard to get started, though. So thanks for the code.

@mnlipp, as an option

@mnlipp, as an alternative you can give me more details on what plain text rendering would result then I can quickly throw it together for you.

@mnlipp, sorry wrong issue. 😊

@mnlipp, the repo has a flexmark-java-samples which as a few extension types

@vsch Thanks for the link to the samples. I completely overlooked this. Maybe you should add this link in the Extension points section.
In case somebody comes across this, here's my final solution:
/**
 * Provides an extension that adds "`target='_top'`" to all anchor links.
 */
public class TopAnchorLinkExtension implements HtmlRenderer.HtmlRendererExtension {

	/**
	 * Called with all options. Currently this extension has no options and
	 * does nothing.
	 */
	@Override
	public void rendererOptions(MutableDataHolder options) {
	}

	/**
	 * This method is called once when the builder for the output is created.
	 * It must modify the passed in builder as required by the extension.
	 */
	@Override
	public void extend(Builder rendererBuilder, String rendererType) {
		rendererBuilder.attributeProviderFactory(new IndependentAttributeProviderFactory() {

			@Override
			public AttributeProvider create(NodeRendererContext context) {
				return new AttributeProvider() {

					@Override
					public void setAttributes(Node node, AttributablePart part,
							Attributes attributes) {
						if (node instanceof Link && part == AttributablePart.LINK) {
				            attributes.replaceValue("target", "_top");
				        }
					}

				};
			}
		});
	}

	/**
	 * Extensions are added by providing a class to flexmark. Flexmark then
	 * invokes the extension's static `create` method through reflection.
	 *
	 * @return an instance of the extension
	 */
	public static Extension create() {
		return new TopAnchorLinkExtension();
	}
}


Add test for authorization header with upvote/downvote

We discovered an auth error in https://github.com/OperationCode/front-end/pull/1283 where the API doesn't know how to handle an upvote or downvote without an API key sent in the header. This should fix that issue.

Closed in favor of #395


Add support for Quarkus

Implement support for Speedment via a quarkus extension https://quarkus.io/guides/writing-extensions

Any update on this?

Any update on this?

We were talking about this the other day but no concrete plans yet. It is an important feature.


[WIP] Remove dial-based address detection logic

This didn't prove as usable as we hoped, since often cloud setups have
separate network interfaces for internal and external communication.
Instead, we're taking the approach of requiring the user to specify an
address or interface if there's any ambiguity.
Remove the logic that finds the IP address associated with the default
route, since it will no longer be used.
Do not merge until after https://github.com/docker/docker/pull/24237

LGTM

[Current coverage][cc-pull] is 54.67%

Merging [#1119][cc-pull] into [master][cc-base-branch] will decrease coverage by 0.17%

@@             master      #1119   diff @@
==========================================
  Files            77         77
  Lines         11923      11923
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           6540       6519    -21
- Misses         4479       4490    +11
- Partials        904        914    +10

[][cc-pull]

Powered by Codecov. Last updated by [24eaf00...35688c7][cc-compare]
[cc-base-branch]: https://codecov.io/gh/docker/swarmkit/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/docker/swarmkit/compare/24eaf0021a2eea7938fce7493ce4731f53c2b87c...35688c7540c2f213ec9446faf2d662cd46723013
[cc-pull]: https://codecov.io/gh/docker/swarmkit/pull/1119?src=pr

I think that, besides removing the auto detection, we should actually fail if it's not provided.
--listen-addr should be a mandatory flag with no default
Thoughts?

I'm making Docker do this properly in docker/docker#24237. For swarmkit, let's do it as a followup after #1121, since this will mean --listen-addr is not necessary if you specify --join-addr.

LGTM


Needs a strategy guide

Needs a strategy guide or at least a how-to video.

Difficult to use so much info how to make effective use of all that?


@debug annotation as a tree shaking hint

Following the discussion on https://github.com/flutter/flutter/pull/23964, it seems like having an @debug annotation would be a good solution to guarantee certain methods are tree-shaken out.
The idea is to introduce an @debug annotation (name is up for discussion) that the compiler could use as a hint to tree-shake the method out.
class A {
  @debug
  toString() {
    return '$runtimeType and some other fields that aren't used anywhere else';
  }
}

Because the toString name is used a lot, it's not likely that it'll be automatically tree-shaken out. Which leads to all the fields it's accessing to be retained as well. The @debug annotation here means that the developer doesn't want this method to be included in the release build (both binary AOT and dart2js).
Based on the above-linked Flutter PR, this can lead to significant binary size gains (37KB compressed for some Flutter apps).
In the case of toString it should be safe to remove it, and it'll fallback to its super.toString() (and that should be defined for all objects). In other situations though, it may not be safe, and the compiler should warn or error in such case. For type-checking purposes, any @debug method can call other @debug methods. But non-@debug methods can't see or call @debug methods (unless the super class has a method with the same name).

/cc @Hixie, @goderbauer, @dnfield, who participated in the original discussion
/cc @leafpetersen, because this might actually need language-level support (similar to assert).

If we add a kernel transform to the Flutter build system, it will essentially be a language feature in all but name. I'd rather we engage the actual language process rather than short-circuit it and saddle Dart with something that may not be what the language team would have designed.

What if this was handled as a conditional compilation instruction insted?
e.g. (using C-style syntax):
#if DEBUG
String toString() {
 return '$runtimeType and some other fields that aren't used anywhere else';
}
#endif

I suppose an attribute could still serve that purpose (e.g. applying it to the following scope or line based on a condition).  But this seems related to #33249 to me.

But non-@debug methods can't see or call @debug methods (unless the super class has a method with the same name).

This is too restrictive. @debug methods should be callable from within assert. Flutter has a ton of debug* methods and fields and they are mostly called from production methods and functions. They do wrap such calls in asserts.

@yjbanov for the case of toString() it's not a problem because the inheritance chain will always yield a class that implements it. So by putting @debug, you're just saying, use my super's implementation.
As for other cases, what would the return value be when the whole body is wrapped in an assertion? I don't think this is something the @debug can do automatically.
Do you have specific examples that can help me understand better?

Which leads to all the fields it's accessing to be retained as well.

As far as I know the AOT treeshaker currently does not remove unused fields at all. Would be cool if it would, though, especially if this gets implemented and makes even more fields unused in release mode. I've filed https://github.com/dart-lang/sdk/issues/35310 for the treeshaking issue.

This is pretty much conditional compilation.  Code that is valid when the debug methods are included may not be valid afterwards.
class A {
  void foo(int x) { x.isEven; }
}
class B extends A {
  @debug
  void foo(Object x) {}
}
void test() {
  new B().foo("hello");
}

This code is legal when the override is included, but is broken if the override is not included.
So I don't think doing this just as a kernel transform is a good idea - unless you first typecheck the code with the appropriate debug setting, you can't be sure that you won't be feeding arbitrarily bad code to the back ends.  If it's done as an annotation, at the least the CFE needs to understand the annotations and typecheck appropriately.

@leafpetersen arguably you can just restrict yourself to a very practical subset: e.g. outlaw this sort of override altogether and issue an error if @debug foo overrides a foo with non-equal signature.
My suggestion about doing it as kernel transformation is based on practical considerations (not everything has to be a language feature).

@mraleph I don't mean to imply that it has to be a language feature (though I agree with @Hixie that this is likely to become a de facto language feature, and that that's unfortunate).  You can figure out the set of restrictions that you need in order to guarantee coherence between configurations, or you can just check that the program is correct in the current configuration, but either way, there's some kind of static checking implied that needs to understand these annotations: either to enforce the coherence conditions, or to check the post-processed program.
I frankly think that figuring out the right set of restrictions that you need in order to guarantee that the debug program and the non-debug program are type equivalent is probably more work than just implementing the conditional compilation, but the user experience is probably better as well, so maybe worth it.
If the proposal is to release this into the wild without doing the work to make this sane though, then I am pretty opposed.  Presumably this is not the proposal?
Some things that come to mind that need to be thought through to try to make this sane:

mixins (plus super mixins)
super calls (especially super calls from non-debug methods to debug methods)
overrides with type specialization (both when overriding with a debug method, and when overriding a debug method with a non-debug method).
interfaces
when can you implement an interface with a debug method with a class with a non-debug method and vice versa?
how do you deal with multiple super-interfaces with debug and non-debug methods
constructors and final fields
can you have debug only final fields?  How do you initialize them?  In a debug only constructor?
if you have debug only constructors, then you need the appropriate checks to be sure that subclassing remains valid

Mild plug of https://github.com/dart-lang/sdk/issues/33920 - if customers knew what could be expected to be tree-shaken, I imagine it wouldn't have taken this long to file bugs that stuff they expected to be tree-shaken is not.
@leafpetersen: Is there a (non-resource) reason that the language team couldn't outline a set of tree-shaking guidelines (not a strict specification). For example, it would be nice for both Dart AOT and Dart2JS for implementation teams to read and try to conform to:

Fields.
Fields that are never read from are removed, and all writes to them are removed as a side-effect.
...

@matanlurey Well, there's no non-resource reason that the language team couldn't outline a set of pony-gifting guidelines as well specifying that I should get a pony, but I don't think I'm going to be building a stable any time soon... :)
More seriously, I don't think that tree-shaking shortcomings (where they exist) in the compilers is because the implementation teams in question don't know or care.  I'm sure that if this rises to the top of the priority queue there are improvements that could be made, but ultimately if we want tree-shaking to be dramatically better we probably need to do actual work in the language to make it so.

I don't think that tree-shaking shortcomings (where they exist) in the compilers is because the implementation teams in question don't know or care.

Totally agree. But a lot of this seems like it could have been mitigated by customers knowing what tree-shaking is capable of doing, what it isn't capable of doing, and requesting enhancements when needed. Instead it feels like a game of catch up - client teams have spent years developing code they later find out is not tree-shaking :-/

Just removing methods marked as @debug is not a semantics preserving transformation.

I don't think anyone is looking for a semantics preserving transformation.  My concern is just ensuring that it's a sound transformation.

Having to live with two programs in one source is something we're willing to live with given the ROI. In practice, a sufficiently complex program (e.g. any Flutter app) has virtually infinite number of programs in it, simply because the behavior depends on a lot of the environmental factors. An app running with assistive technology enabled is very different from one without it. Similarly you have connected vs offline, Android vs iOS vs Web, portrait vs landscape, to name a few.
I think the property we'd want is that the failure modes are well understood and are caught early, preferably during compilation. When I get an error compiling the app in release mode, will I understand quickly enough what's going on? @leafpetersen's intuition to look for non-obvious cases is the right one. However, I'd look for cases where the mere presence of @debug alters runtime behavior (i.e. not the contents of the debug code). Those I'd be worried about. The specific example with the overridden foo method looks OK to me. If new B().foo("hello"); is inside debug code then there's no error. If it's in release code then I get an error from the compiler saying that A.foo doesn't take String. I can figure out what's going on by simply reading the code.

Flutter programs are already two programs in one source — debug mode runs a ton more code than release mode (we use the assert language feature to do this). This is just about giving us the ability to tree-shake the debug program out of the release program.

The specific example with the overridden foo method looks OK to me. If new B().foo("hello"); is inside debug code then there's no error. If it's in release code then I get an error from the compiler saying that A.foo doesn't take String. I can figure out what's going on by simply reading the code.

Just be sure we're on the same page, my main concern is that the failure mode of doing this as a kernel transform (without static checking) is not an error message saying that A.foo doesn't take String, but instead at best a compiler crash, and at worst memory corruption or a core dump at runtime.

Flutter programs are already two programs in one source

One direction this could lead us in is explicitly adding something like a pre-processor + macros.  This has come up in discussions around code generation as well.

Preprocessing is really what this should be.  And ideally it would handle not just the compilation mode but other variables as well, such as the Flutter or Dart SDK version.

Preprocessing or a macro system of some sort could also help tree-shaking unused platform-specific code, e.g. Cupertino widgets in a Material Design app and vice-versa. It could also help us plug in Web-specific things in Hummingbird without affecting native functionality.
One important aspect to consider is how this can work with Bazel.

I think experimenting with this as a kernel transform is a reasonable step to improve flutter code size. @Hixie To prevent this from being a de-facto language feature, we can simply restrict the kernel transformation to the flutter core libraries, where we can verify each member that we want to remove. Though this will cap out at whatever the size of all the debug code flutter uses.
My gut feeling is that most applications don't have anywhere near the amount of debug code that flutter does, and any code that has been accidentally retained is also going to be difficult to prove safe to remove.

The supermixin experiment became a de facto language feature even with only flutter using it. It's precisely that that I'm trying to avoid.

I wrote a simple kernel transformer to change all overrides of toString in dart:ui and package:flutter to just be return super.toString():
class _ToStringVisitor extends RecursiveVisitor<void> {
  @override
  void visitProcedure(Procedure node) {
    if (node.name.name == 'toString' && node.enclosingLibrary != null) {
      assert(node.enclosingClass != null);
      final String importUri = node.enclosingLibrary.importUri.toString();
      if (importUri.startsWith('dart:ui') || importUri.startsWith('package:flutter/')) {
        // print('Removing ${node.location}');
        node.function.replaceWith(
          FunctionNode(
            ReturnStatement(
              SuperMethodInvocation(
                node.name,
                Arguments(<Expression>[]),
              ),
            ),
          ),
        );
      }
    }
    super.visitProcedure(node);
  }
}

class _ToStringTransformer extends frontend.ProgramTransformer {
  _ToStringTransformer(this.child);

  final frontend.ProgramTransformer child;

  @override
  void transform(Component component) {
    if (child is! _ToStringTransformer)
      component.visitChildren(_ToStringVisitor());
    child?.transform(component);
  }
}

In local testing, this reduces our AOT snapshot size on the gallery by about 200kb.  I think this is worth doing.

From a manual audit, I can't find a toString that would fail in release mode with this.
Unfortunately, I'm also trying to think about what this could end up doing if someone ever did add a meaningful toString to the framework or dart:ui.  I'd like to think we'd catch that in code review, but I don't think we should trust code review for that.
Trying to think if there's some way this transformer could also look at calls to .toString and maybe warn you, or fail to drop them in such a case.

@dnfield Would it be possible to try this on a Web build? 200kb on the Web would be huge.

I tried but it looks like web builds aren't using the front end compiler we provide.  Jonah says it should be possible though, I'll try to sync up with him and find out what's up there.

@dnfield have you tried removing the toString method altogether (instead of replacing its implementation with return super.toString())? I think you can do node.remove().

@mdebbar that's more complicated, you then have to find callsites and fix those

And I suspect that this just gets optimized to nothing anyway

@mdebbar that's more complicated, you then have to find callsites and fix those

I'm not sure I understand. When you remove the toString method from a class, it'll just inherit it from the super class. This works fine:
class A {
  // No `toString` method.
}

class B {
  @override
  String toString() {
    return super.toString();
  }
}

void main() {
  print(A().toString()); // prints "Instance of 'A'"
  print(B().toString()); // prints "Instance of 'B'"
}

Yes, but calling remove in the kernel doesn't quite work that way

https://github.com/flutter/engine/pull/17068

I wrote a simple kernel transformer to change all overrides of toString in dart:ui and package:flutter to
just be return super.toString(): .... In local testing, this reduces our AOT snapshot size on the gallery by
about 200kb. I think this is worth doing.

I would assume this is also possible without any kernel transformer:
const bool isRelease = const bool.fromEnvironment('dart.vm.product');

String toString() {
  if (isRelease) return super.toString();
  <normal body>
}

Would that work?
(Of course if one actually wants the toString() method definition to go away entirely, then it's a language change)

@mkustermann it becomes very verbose, and people forget to add it.

@dnfield It's one line (as is @debug), only a little bit longer. People may also forget about adding @debug :)

I don't think we'd want an annotation you have to put on every class. We'd probably want to just mark the base Diagnostics class as debug-only and have all its methods and any subclass overridden version of those methods be marked as needing to be removed.


feat(chat): show toltips for disabled header buttons (Issue #2810)

Description:
show toltips for disabled header buttons
Issues:

Issue #2810

UI changes

Checklist:

[x] the pull request name complies with Conventional Commits
[x] the pull request name starts with fix(<scope>):, feat(<scope>):, feature(<scope>):, chore(<scope>):, hotfix(<scope>): or e2e(<scope>):. If contains breaking changes then the pull request name must start with fix(<scope>)!:, feat(<scope>)!:, feature(<scope>)!:, chore(<scope>)!:, hotfix(<scope>)!: or e2e(<scope>)!: where <scope> is name of affected project: chat, chat-e2e, overlay, shared, sandbox-overlay, etc.
[x] the pull request name ends with (Issue #<TICKET_ID>) (comma-separated list of issues)
[x] I confirm that do not share any confidential information like API keys or any other secrets and private URLs

/deploy-review


Multiple database connection with different driver

Hi
can you please add multiple database connection with different driver ?
for example i want to connect to MariaDB and  Sqlite in same time

@rabinhod will be added in the future,
watch the repo to get notified when the support is added
Thanks.


How to inject additional code/context before sending to language server

I am working on a side project to execute code on the browser. However, the current code block will have access to some additional information, something like this:
"use strict";
return (async () => {
  const scope = { hello: 'world', username: 'tmcw', version: 1 };

  ${codeEditorSnippet} // code from CM6 will be transpiled to JavaScript before injected here for execution
})();

With the current setup, there will always be these two lint issues:

Cannot find name 'scope'.

A 'return' statement can only be used within a function body.

Would love any advice or suggestions on how to tackle this, thank you!

Sure, so definitely two issues:
To provide scope in context, you'd want to include a type definition to the virtual typescript environment - in the createVirtualTypeScriptEnvironment call in typescript/vfs https://www.npmjs.com/package/@typescript/vfs you should be able to add extra types. There are a bunch of ways, but one would be to add another file to fsMap, which is a Map object, with something that defines the value as being available in scope, like
declare var scope: { hello: string };

For the return statement, it'll be trickier… bare return statements outside of functions are not going to be valid JavaScript. I don't exactly what the simplest/cleanest solution would be. You could parse that code with TypeScript's AST parser and replace return with void   (with two extra spaces to keep it the same size), to make the code valid TS for the type checker?

Actually running into a similar thing with the return statement there. Interesting idea to override it to void, I'll try this.

I ended up forking the library and doing something like this!
// createWorker.ts
updateFile: ({ path, code }: { path: string; code: string }) => {
    if (!env) return;

    const updatedCode = `
      (() => {
        ${code}
      })
    `;

    createOrUpdateFile(env, path, updatedCode);
},

// getLints.ts
const diagnostics = [...syntaticDiagnostics, ...semanticDiagnostics]
    .filter(isDiagnosticWithLocation)
    .map((d) => ({
        ...d,
        start: d.start - OFFSET, // OFFSET is the amount shifted by nesting code inside updatedCode
    }));


Updated limit for deleting weaviate objects

While using weaviate via the vector store, we found out that we can delete only 100 objects at once using the delete functions, so we searched through the weaviate class in the llama index library to find out that the delete function first calls the get function for fetching the required objects based on the parameters user has passed. By default the get query returns 100 objects only thus resulting in deletion of only 100 objects. We have modified the get query and added a "with_limit" attribute to mention the limit of objects it can return. We have set it to 10000, as weaviate supports only retrieval of 10000 objects at once.

@logan-markewich - Limit has been set to 10000 as weaviate by default allows retrival of 10000 objects at once, unless specifically mentioned at the time of deployment. You have to set " QUERY_MAXIMUM_RESULTS" variable in the weaviate config file while deploying it.


[API] create the state endpoint under beacon

https://github.com/ethereum/beacon-APIs/pull/353
currently the initial-state is read from debug/state, but we're moving it.
The old one should only be deprecated, but the new one is basically identical.

Estimate: 1 day
Involved:

Create new /eth/v1/beacon/states/{state_id} based on old /eth/v2/debug/beacon/states/{state_id} API
Deprecate the old debug API
Add unit testing
Likely add an acceptance test and update some integration testing

Waiting for resolution on https://github.com/ethereum/beacon-APIs/pull/357


Can you release the prototxt of se-mobilenet?

Have tried to train from the scratch, but did not get the accuracy noted in the paper.
Maybe the structure is a little tricky?

SE-MobileNet.txt
Here, we use  batchnorm layer implemented by CuDNN.

Hello, the SE-mobilenet.txt you uploaded may have some mistakes, the SE block did not concat to the scale layer, and there no "reshape" layer in your txt.
layer {
name: "scale6"
type: "Scale"
bottom: "conv6/pw"
bottom: "reshape6"
top: "conv6"
scale_param {
axis: 0
bias_term: false
}
}

SE-MobileNet.txt
Sorry for this mistake,  I have corrected it.

SE-MobileNet.txt
Sorry for this mistake, I have corrected it.

Thanks for your reply!


Insecure response error

I'm seeing this error in the console when navigating to any page:
Failed to load resource: net::ERR_INSECURE_RESPONSE https://localhost:3001/app/index.js
Steps to reproduce:

npm install && gulp
Load extension from /build/ folder
Open console or inspect background view

Yeah, I'm also getting this.  Chrome 46 on Ubuntu 14.04.  A short bit of googling made me try starting chrome with --ignore-certificate-errors, but that didn't fix it.

+1
I got this issue on both Chrome 46.0.2490 and Chromium 44.0.2403.0

You can pick that link https://localhost:3001/app/index.js open it directly in browser and accept Error page with warning about insecure page. Then all requests will be fine.


Turbines resetting RPM upon reloading

I'm using the DW 1.7.10 pack version 1.0.3 on a server and found out that upon reloading a chunk the turbines rpm resets. Neither my turbines or my reactor is on a chunk boundary. Turbines are getting enough steam

Duplicate of #408.


Lacking privileges to access camera service

When using camera in landscape, closing screen and opening it, crashes the app. Tested on Nexus 5 with 6.0.1
FATAL EXCEPTION: main
Process: com.example.android.camera2basic, PID: 14591
java.lang.SecurityException: Lacking privileges to access camera service
at android.hardware.camera2.utils.CameraBinderDecorator.throwOnError(
CameraBinderDecorator.java:108)
at android.hardware.camera2.utils.CameraBinderDecorator$CameraBinderDecoratorListener.
onAfterInvocation(CameraBinderDecorator.java:73)
at android.hardware.camera2.utils.Decorator.invoke(Decorator.java:81)
at java.lang.reflect.Proxy.invoke(Proxy.java:393)
at $Proxy1.cancelRequest(Unknown Source)
at android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating(CameraDeviceImpl.java:926)
at android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptureSessionImpl.java:378)
at android.hardware.camera2.impl.CameraCaptureSessionImpl$2.onDisconnected(CameraCaptureSessionImpl.java:514)
at android.hardware.camera2.impl.CameraDeviceImpl$7.run(CameraDeviceImpl.java:228)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Right. I got the same issue, too!

I was able to reproduce this bug too.  Can someone confirm this fix:
In the OnResume meethod, before cameraOpen, add a closeCamera() call.

any word on fixes for this issue?

i'm having the same problem.
adding a closeCamera() call before the cameraOpen() in the OnResume doesn't fix it.

I am also having same issue, this problem in portrait mode was handled with closeCamera() before openCamera() but in landscape when some how it is not working

In Camera2Basic example closeCamera() in
mSurfaceTextureListener (onSurfaceTextureDestroyed). It worked for me.

Same problem here. None of the fixes fix it.
In my case I've traced it down to
Camera activity -> Another Activity -INTENT-> Another application -> back button twice to return to Camera activity

I was having the same problem.
make sure that you are calling the startPreviewingCamera() before you call openCamera

@p4block please see my latest comment in this thread:
https://github.com/google/cameraview/issues/61
TLDR:
After you call CameraCaptureSession.close(), CameraDevice.close(), ImageReader.close(), etc. when you app is pausing, wait until CameraDevice.StateCallback.onClosed() has fired to open your dialog. If you open it while the Camera is still closing, you may encounter this crash on Android 6.0 only. This was my experience when testing with a slew of devices (4.1, 4.4, 5.0, 5.1, 6.0, 7.1).

Have you solve this issue?

i am getting this error when on resume call and it is random crash. please check this bug

anyone got solution about this issue ?

call close camera in onresume before call open camera, call close camera in surfacetexturelistener on destroy is Not work to me. cause my camera activity in landscape mode . but in portrait mode is work perfect. anyone have some idea ? please help @jf-rce @rnallamo

This sample has been migrated to a new location where we can accept Pull Requests (check README for more information).
As recommended by GitHub, we are closing all issues and pull requests now that this older repo will be archived.
If you still see this issue in the updated repo, please reopen the issue/PR there. Thank you!


ResourceServerTokenServicesConfiguration does not create ResourceServerProperties

I setup an oauth2 authserver and ui server. Both tested ok at first.
But 2 days before, after I download lastest build-snapshot or upgrade to gradle 2.4, I cant run my ui server.
I got this:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.setFilterChainProxySecurityConfigurer(org.springframework.security.config.annotation.ObjectPostProcessor,java.util.List) throws java.lang.Exception; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.security.oauth2.sso.OAuth2SsoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: private org.springframework.security.oauth2.provider.token.ResourceServerTokenServices org.springframework.cloud.security.oauth2.sso.OAuth2SsoConfiguration.tokenServices; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.springframework.cloud.security.oauth2.resource.ResourceServerTokenServicesConfiguration$RemoteTokenServicesConfiguration$UserInfoTokenServicesConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: private org.springframework.cloud.security.oauth2.resource.ResourceServerProperties org.springframework.cloud.security.oauth2.resource.ResourceServerTokenServicesConfiguration$RemoteTokenServicesConfiguration$UserInfoTokenServicesConfiguration.sso; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:
No qualifying bean of type [org.springframework.cloud.security.oauth2.resource.ResourceServerProperties] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

I can see ResourceServerPropertiesConfiguration IN ResourceServerTokenServicesConfigurations, but UserInfoTokenServicesConfiguration cant get a instance.
This is strange to me...

my spring io platform version 2.0.0.BUILD-SNAPSHOT
springCloudVersion = '1.0.2.BUILD-SNAPSHOT'
compile 'org.springframework.cloud:spring-cloud-starter-security'
runtime "org.springframework.boot:spring-boot-starter-security:${springBootVersion}"
runtime 'org.springframework.security.oauth:spring-security-oauth2'

Are you getting snapshots of Spring Boot from the io platform?

Yes, I am using io platform and spring-boot-gradle-plugin.
I found spring-boot-gradle-plugin override some dependencies.

You are mixing Spring Boot 1.3 and Spring Cloud Security 1.0 (it doesn't work and it's not expected to work). Please change to a supported combination (1.3/1.1 or 1.2/1.0 respectively).

I'm using  boot 1.2.4.RELEASE/ cloud Angel.SR3 and it works fine. Thank you!

Hi @dsyer, guys,
I'm facing this same issue... I'm using Spring Boot 1.3.0-RELEASE and Spring Cloud Angel.SR4.
Is this combination supported? How can I check which combinations are valid?
Thank you

No, that combination doesn't work. It's simple (and already documented in this issue or in the blog: https://spring.io/blog/2015/11/25/migrating-spring-cloud-apps-from-spring-boot-1-2-to-1-3).

Thanks @dsyer,
I have aligned the versions properly (Spring boot 1.3.1-RELEASE, Brixton-M5) and made the upgrade changes as you described here: https://gist.github.com/dsyer/5b01276e9071c13492f7
I have implemented SSO with OAuth2 configured in ZuulProxy and using Token Relay to access microservice A and microservice B. With the proper versions everything is working fine.
However, I want microservice A to access microservice B. I'm implementing this using Oauth2RestOperations (OAuth2RestTemplate) in microservice A. The problem is that when OAuth2RestTemplate tries to retrieve the OAuth2Token from the context, is null. It should not be null as microservice A should have already the token in the context (and besides I know it is not expired).
Should this work? Do you think is a good approach (using OAuth2RestTemplate taking benefeit that the OAuth2Context has already the token to propagate it instead of asking for a new token to the oauth2 server)? Another option would be implement it with FeignClient and interceptors...
I'm pretty sure technically should work (correct me if I'm wrong, please) but I can't see what is wrong.
Spring Boot and Cloud versions are correct now, I don't use Spring Cloud dependencies except in the Zuulproxy (as I want to implement token relay not just SSO), the spring.oauth2 properties renamed to security.oauth2, and so on.. Everything looks good and in fact everything is working except OAuthRestOperations to call from microservice A to B.
Any clue?
Thanks again for your help

@chshawkn-pub Do you resolve your problem?


Add enemy cargo ship

Bulky ship with a lot of HP that has a lot of nice drops.

Seems way to hard to destroy the cargo hauler at the moment. Maybe we need to make sure that this wave only spawns at later levels. Or for now just reduce the health.
I'll test it again after the weapon pr gets merged in and then we can balance it from there

I was considering lowering the health a tiny bit, and the spawn-rate even further for the 1st stage.
The main issue is when the cargo ship appears. If it's the first wave (which I've had happen), then you're pretty much powerless against the wave. If it happens, say, right after the first boss, then you can take it down way too easily.
Another idea (unrelated to the current solutions, could be a follow-up future topic), a way to give mobs "modifiers", so that they have eg. x3 HP, x1.5 DMG, etc.


[Flutter Analyze] - Running flutter analyze leads to a Exception and crash

Steps to reproduce
As part of our CICD process, we are running flutter analyze . across our suite of flutter packages. Occasionally, the CICD process fails with the following kind of error
[app_foundation_account]: Exception: analysis server exited with code -9 and output:
21416info11/22/2024, 8:40:45 AM[app_foundation_account]: [stdout] {"event":"server.connected","params":{"version":"1.38.0","pid":9084}}
21417info11/22/2024, 8:40:45 AM[app_foundation_account]: [stdout] {"id":"1"}
21418info11/22/2024, 8:40:45 AM[app_foundation_account]: [stdout] {"event":"analysis.errors","params":{"file":"/harness/packages/layer2_app_foundation/app_foundation_account/analysis_options.yaml","errors":[]}}
21419info11/22/2024, 8:40:45 AM[app_foundation_account]: [stdout] {"event":"analysis.errors","params":{"file":"/harness/packages/layer2_app_foundation/app_foundation_account/pubspec.yaml","errors":[]}}
21420info11/22/2024, 8:40:45 AM

Our CICD system uses Harness. Our developers are able to run flutter analyze . on the same packages in their local environments without issue. We are currently use Flutter 3.24.3
Expected results
flutter analyze . runs successfully on our packages without throwing a code -9 error and exiting.
Actual results
flutter analyze . throws a code -9 error and exits causing our CICD pipeline to fail.
Code sample
Code sample
[Paste your code here]

Since this issue is an issue with the flutter analyze . failing i'm not able to have a specific reproducible code sample

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs

harness cicd console log_20241125.txt
Flutter Doctor output
Doctor output
[Paste your output here]

Since this issue is happening in our CICD environment, i'm unable to capture the output of running flutter doctor -v there

Our developers are able to run flutter analyze . on the same packages in their local environments without issue.

maybe it's a problem with "harness" (whatever that is),
how about testing the same cicd pipeline on github actions or others
to narrow down the cause

different exit code, but very similar error:

https://github.com/flutter/flutter/issues/143013

OT: @rrousselGit disney seem to use riverpod according to these logs :)

harness cicd console log_20241125.txt


QEA-1524: Handle NoSuchDriverError on quit

  1) Sender Management UI Test Basic Functionality:  CreateSender: Verify Copy
     Failure/Error: Driver.quit

     Selenium::WebDriver::Error::NoSuchDriverError:
       Build info: version: '3.1.0', revision: '86a5d70', time: '2017-02-16 07:57:44 -0800'
       System info: host: '4390bbdabbef', ip: '<IP_ADDRESS>', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-327.el7.x86_64', java.version: '1.8.0_121'
       Driver info: driver.version: unknown (org.openqa.selenium.NoSuchSessionException)

https://jenkinsmaster0001s1mdw1.sendgrid.net/job/QEA/job/gridium_test/6/

Changes look good, but no unit tests makes me (sadpanda)

Changes look good, but no unit tests makes me (sadpanda)

@yet-another-lucas
https://github.com/sendgrid/Gridium/pull/21/commits/5fc2293d415a6aad7c55da853e40e5a81c6772fc

https://jenkinsmaster0001s1mdw1.sendgrid.net/job/QEA/job/gridium_test/7/


feat: Add specific component tags for avatar, text-area and button for better theming support

Resolves #28

I have a problem.
Linting started complaining about vaadin-message-avatar.js:13:
--vaadin-avatar-outline-width: 0px;

It is a zero value and zero values should not have a unit. I changed the row to
--vaadin-avatar-outline-width: 0;

but that actually broke the implementation. Margin-right of the avatar was not anymore there. This is because it is used in a calc in vaadin-message-avatar-styles.js:8:
:host {
  margin-right: calc(var(--lumo-space-m) - var(--vaadin-avatar-outline-width));
  margin-top: calc(var(--lumo-space-s) - var(--vaadin-avatar-outline-width));
}

that evaluates with resolved variables to margin-right: calc(1rem - 0);, and I guess you have to have units on everything that goes into a calc.
So now I'm unsure how to have to satisfy the linter correctly.


Second Argument error on RoutingServiceProvider

Laravel Version: 5.4.28
PHP Version: 7.1
Database Driver & Version: not applicable

Description:
When installing socialite or guzzle there is an exception pops up.
Steps To Reproduce:
composer require laravel/socialite
Using version ^3.0 for laravel/socialite
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postUpdate
> php artisan optimize

  [Symfony\Component\Debug\Exception\FatalThrowableError]
  Type error: Argument 2 passed to Illuminate\Routing\UrlGenerator::__constru
  ct() must be an instance of Illuminate\Http\Request, null given, called in
  /Users/yoosuf/Workspace/baraka/account/vendor/laravel/framework/src/Illumin
  ate/Routing/RoutingServiceProvider.php on line 64

Script php artisan optimize handling the post-update-cmd event returned with error code 1

Installation failed, reverting ./composer.json to its original content.

Nothing wrong on my end, could be changes that you made in your app. Track how the request object is created to identify what change lead to this.
Also please test on a fresh laravel app since your own could could be the problem.


What am I doing wrong?

I have a basic activity:
class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {
        super.onCreate(savedInstanceState, persistentState)
        verticalLayout {
            padding = dip(100)
            button("test")
        }
    }

}

When I run it, there is no content. Any help?

You can do (like documentation):
class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {
        super.onCreate(savedInstanceState, persistentState)
        MainActivityUI().setContentView(this)
    }

  inner class MainActivityUI : AnkoComponent<AppCompatActivity> {
    override fun createView(ui: AnkoContext<AppCompatActivity>): View = with(ui) {
        verticalLayout {
            padding = dip(100)
            button("test")
        }
    }
  }
}

I tried that first, and it didn't work either.

oh no...I try it and it's work fine check your code

@matthewdias What version of Anko do you use?

@yanex 0.8.3 for sdk21

There are so many reasons this may not work... What do you mean by "when I run it"? Are you sure you're recompiling everything and pushing it where you "run it"?

This is after a full clean and build, and I only have one activity.

@matthewdias when you say "it doesn't work", there are so many things that could be going wrong. Is it failing to compile? Is it coming up blank on your emulator? Is it throwing an exception?
People seem to be having trouble replicating your issue, so you might want to see if you can describe some important details, like the structure of your project and the exact nature of the failure you're encountering.

I guess you are using the wrong onCreate() method.
You've overwritten onCreate(Bundle savedInstanceState, PersistableBundle persistentState) which only gets called

for those activities created with the attribute android.R.attr.persistableMode set to persistAcrossReboots

Use onCreate(Bundle savedInstanceState)  instead.


Replaced hardcoded user id to variable (zeus)

Id's of service users should range in the span between SYS_UID_MIN and SYS_UID_MAX as they are otherwise considered "Extra users". Extra users are often considered temporary user which the system might clean up from time to time.
iot-gate-imx8:/etc/iotedge# cat /etc/login.defs |grep UID
UID_MIN                  1000
UID_MAX                 60000
SYS_UID_MIN               101
SYS_UID_MAX               999
SUB_UID_MIN                100000
SUB_UID_MAX             600100000
SUB_UID_COUNT               65536

I've kept the iotedge user id to 15580, but has moved it to a variable that can be customized in the local.conf.

lgtm. Thank you!


added powershell w/o descriptions

I just wanted to get this in place. Now we can add data objects in the THP related to PowerShell. Descriptions honestly have me stumped for the most part. 🍔

Awesome man! Thank you again 👍


Dockerize

Issues:

[ ] Docker won't npm install a package.json with template variables in them.  Need to alter package.json without fsCopyTemplate
[x] Auto create images via docker-hub on latest and tagged releases

make a boilerplate to do the initial install and then during a later step overwrite it w/ a templatized copy which then a generator overwrites?

yes possibly.  Either that, or modify the package.json via transforming it to a javascript object, add/removing dependencies and field names, and then saving it with a standard fs.writeFileSync().  Whichever you think would be easier.

Since node and npm are already platform independent, what problem is being solved by Dockerizing?

@mwcz environment standardization specifically around training. We're going to start doing high scale (as far as class size) trainings surrounding web components and using the factory. We can't get bogged down in "oh your running node 7.x when we need 6.x or 8.x" when there's like 50-200 ppl there. We've been making docker images to skip on these dependency issues in past trainings to go from like 6-8 person scale to 15-20 and maybe end up with like 1 person who can't get docker working and have to fudge around with.
Docker won't be required, it'll just help those get on ramped, especially those in protected environments that may allow docker but not have full admin rights to install npm packages globally (gov, edu, parma)

@btopro I see!  That helps, thanks.  I can definitely see the training angle.


Handle the last basal event being a temp basal start

Previously when the upload happened in the middle of a temp basal
(ie temp basal hadn't completed), the data was uploaded incorrectly
as a regular scheduled basal, meaning that for the next upload, the
basals would be overlayed, rather than replaced.
This commit fixes that bug.

Fixes https://trello.com/c/fk1vqCBz

 [Uploader 600-series] When a temp basal starts before an upload, data is uploaded incorrectly


could gRPC have a plan to support .Net 4.0?

This is tricky for several reasons:

we are using async/await feature from .NET 4.5 heavily, and backporting to .NET 4.0 (that doesn't have async/await support) is troublesome and pretty work intensive - probably not worth the effort.
we'd rather invest resources into supporting CoreCLR which is where the future of .NET lies instead of trying to backport gRPC to outdated platforms (.NET 4.0 is pretty old).

Do you have anything in particular that prevents you from migrating to .NET 4.5 or CoreCLR?

So, we most likely won't work on this unless we get a (very strong) signal from the community that providing .NET 4.0 support is crucial (but I think anyone who's looking into adopting gRPC would already be on 4.5+).

One use case for older .NET would be Unity3D but even protobuf does not support it.

Unity needs to come up with support with .NET 4.5+ or netstandard (and I believe it's coming at some point).
We don't have any plans to start supporting .NET 4.0 any time in the future.

Unity released beta support for 4.6 end of last year and it's now an opt-in option as of Unity 2017.1.
Any change of re-investigating this ? :)

@sercand Unity released beta support for 4.6 end of last year and it's now an opt-in option as of Unity 2017.1.

https://github.com/ahakits/unity-grpc-sample works on Unity 2017.1.

Any updates with support .Net 4.0?


FR: Zoom In and Zoom Out

Add the possibilite apply zoom in and zoom out in schema

here Zoom Level Support

The feature has been added v0.7.9.


Mutect filter for barcode-swapping duplicates

@fleharty has found a common artifact in his UMI work in which barcode swapping causes duplicate reads not to be correctly flagged as such, thereby overestimating the evidence in favor of a false positive variant.  In his examples, several reads usually have the variant at exactly the same position.  Less frequently but still often enough that we must deal with it, there will be two sets of artifacts and two distinct positions.
Reasonable approaches to an annotation and corresponding filter include but are not limited to 1) a p-value for this degree of clustering, 2) a simple generative model, and 3) just counting the number of unique positions within the read.

Issue moved to broadinstitute/gatk #2982 via ZenHub


feat(description-list): Added description list - FRONT-2562

You keep forgetting to add the component/compositions you add as a dependency in bcl-twig-templates...


Pistol change

Hey, i'm very curious about the reason behind this change, a change i like.
Do you have some detail?

@asturur The change was obviously done to harmonize with other vendors’ emoji fonts, so as to convey the same meaning across devices.

For a moment i thought it was because this pistol looks less bad than the old pistol.
Opinion wise: Well i think quality and nice emoji should be over harmony since if people wants different devices let them have slightly different emoji.
I would always take a nicer design over a conformant one.

@asturur https://blog.emojipedia.org/google-updates-gun-emoji/
See also the harsh criticism Apple initially got for the change because there's a big difference in meaning between realistic handgun and toy water gun. https://blog.emojipedia.org/apple-and-the-gun-emoji/


Improve the json schema error response

Instead of the returning the whole schema, I would rather see just the path to the data that had the error along with the validation error message.

The changes are minor and I don't see any issues re syntax etc, but I don't really understand the changes. What's an err?

I guess more specifically, what do the fields of err mean is the question I'm asking

Could you explain the ValidationError fields?

The jsonschema.exception.ValidationError is explained pretty well here: https://python-jsonschema.readthedocs.io/en/stable/errors/
I will add a link to these docs in the comments

I added some docs in the readme as well as a comment about the error class in the code.
Also I removed the "schema path" field in the response as I think that'll be more confusing than useful.

Note that based on the diff

schema_path is still in the structure
the documentation references a value field when the actual field is validator_value

Good catch, forgot to push it all


Switch to protobuf

WARNING: Huge amount of change has been made in this PR.

[x] Flatbuffers fully removed. (I guess there is still some references in go.sum)
[x] Protbuf introduced with adaptions made to fit with pb conventions.
[x] (Local) Tests Pass for pkg, banyand directories.
[x] License Check. (proto files are not supported by Skywalking-eyes, manually added. Skip *.pb.go and *.textproto)
[ ] Other makefiles and Github CI workflow change

Problem found in this PR
Relative timestamp in ChunkID
The timestamp contained in chunkID is not the same as the timestamp field in the entity since we are using a relative time shift. This shift will cause inaccurate Scan results.

@hanahmily I need some help from you to setup CI workflow. It seems there is restriction of Actions usage in this repo.
Could you help setup the workflow?

@hanahmily I need some help from you to setup CI workflow. It seems there is restriction of Actions usage in this repo.
Could you help setup the workflow?

How about leave the workflow alone, let's merge it with some CI failures, I will submit  another PR to fix them

@hanahmily I need some help from you to setup CI workflow. It seems there is restriction of Actions usage in this repo.
Could you help setup the workflow?

How about leave the workflow alone, let's merge it with some CI failures, I will submit another PR to fix them

Sure.


Update __repr__ to display some information

This is a quick update to the __repr__ method to address issue #6926 and show device information from the repr.
Thanks to @dcherian for the suggestion to add device information.

Thanks! Can it be like this?
array([0, 1, 2], device=0)

Hi @negin513, any progress here?

@kmaehashi apologies for the long delay on this.
This is updated, now the repr should print : array ([1 2 3], device = CPU, dtype = int64)

@kmaehashi : Are there any __repr__ tests?
I guess maybe these should be updated too: https://github.com/cupy/cupy/blob/73911980e6557435114c71c7d4e4cd9e62cb54a7/tests/cupy_tests/io_tests/test_formatting.py#L11-L20

@negin513 This PR seems to break compatibility of indentation.

master:

>>> cupy.zeros((4, 4), dtype='float32')
array([[0., 0., 0., 0.],
       [0., 0., 0., 0.],
       [0., 0., 0., 0.],
       [0., 0., 0., 0.]], dtype=float32)

This PR:

>>> cupy.zeros((4, 4), dtype='float32')
array ([[0. 0. 0. 0.]
 [0. 0. 0. 0.]
 [0. 0. 0. 0.]
 [0. 0. 0. 0.]], device = <CUDA Device 0>, dtype = float32)


Remove touch target gaps between ActionBar items

What are you trying to accomplish?

This PR removes gaps between ActionBar items. It's a good idea to increase spacing between interactive elements like buttons depending on their size to make it easier to interact with them on smaller screens. However, WCAG 2.2 level AA stipulates the spacing should only apply if the touch target (i.e. button) is 24px or smaller in size. See https://github.com/github/primer/issues/2824 for more information.
Integration

No changes necessary in production.
List the issues that this change affects.

Fixes https://github.com/github/primer/issues/2824
Risk Assessment

[x] Low risk the change is small, highly observable, and easily rolled back.
[ ] Medium risk changes that are isolated, reduced in scope or could impact few users. The change will not impact library availability.
[ ] High risk changes are those that could impact customers and SLOs, low or no test coverage, low observability, or slow to rollback.

Accessibility

No new axe scan violation - This change does not introduce any new axe scan violations.

@jonrohan I actually just moved those tests from another file 😅


buildDotnetModule: stop passthru attributes from being overwritten

Motivation for this change
By setting passthru.fetch-deps directly, buildDotnetModule would overwrite any user-supplied passthru attributes as @legendofmiracles pointed out.
Supercedes: #152617
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[X] Fits CONTRIBUTING.md.

Can you please @legendofmiracles confirm this changes fixes your effort in PR https://github.com/NixOS/nixpkgs/pull/148541 ?

@GrahamcOfBorg build btcpayserver


gestalt-framework: 1.2.0 release

Changes from 1.1.x to 1.2.x

gestalt-dcos/#33: use release-1.2.0 instead of separate dcos-1.2.0 and kube-1.2.0 as part of unified ensemble release convention
gestalt-meta/gestalt-ui-react: add support for new gestalt-log logging aggregation service
gestalt-meta: improved support for container PUT and PATCH for both DC/OS and Kubernetes CaaS providers
gestalt-meta/gestalt-ui: new container.promote policy support

Fixed issues
gestalt-meta

gestalt-meta#234 - Linked Providers should be persisted with typeId
gestalt-meta#205 - HAPROXY_GROUP should not happen by default

gestalt-ui-react

gestalt-ui-react#42 - Provider’s screen has columns mislabeled, shows ‘Type’ on the user and timestamp column headings
gestalt-ui-react#35 - Logging UI
gestalt-ui-react#49 - Don't allow inline code lambdas for non-NodeJS types, since the other executors don't support inline yet
gestalt-ui-react#43 - Container Redeploy
gestalt-ui-react#45 - Entitlements view for Environment is mistakenly showing the entitlements for the parent workspace
gestalt-ui-react#41 - bad name for ApiEndpoint shows up during delete

gestalt-cli (provider provisioning)

galacticfog/gestalt-cli#1 - cli does not provider networks for DCOS provider

@cgbaker what are the changes from the last release and do the installation example change in any way?

@ryadav88 updated status above, thanks for the reminder
this universe build is currently running from
https://universe.galacticfog.com
and
https://universe-beta.galacticfog.com
and has been run through multiple times.
the installation examples do not change at all; all new features are post-install.

@cgbaker I'm following the example here https://github.com/dcos/examples/tree/master/gestalt/1.8 and I cannot see the service endpoints url in my cluster. I'm running DC/OS 1.9.
If this is a matter of DC/OS version, can you create an 1.9 example doc for me to follow?

@cgbaker it seems that the UI has changed. Can you please update the installation examples
https://github.com/dcos/examples/tree/master/gestalt/1.8 ?

@cgbaker I tested the Universe PR. Do you mind dumping the 1.8 example to a 1.9 directory. I've created a issue for it here: https://github.com/dcos/examples/issues/182
cc: @OhRobin


⚠ Jenkins Plugins Artifactory has degraded performance

In dbdc416, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1132 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 2323a3f after 12 minutes.


Support for SystemVerilog interfaces and modports

Hi Clifford,
This time doing the changes mostly in AST before RTLIL generation.
It seems to work correctly for several test cases. Also the normal yosys test suite passes.
It is a bit hard to add test cases in the normal way since iverilog does not support this yet.

Also modport support has been added now to this branch. It works surprisingly well. I am going to write a few more test cases.

Just tested on my laptop, seems to be working perfectly on my use case :)
I will do other tests in a few days.

@didjcodt Great to hear! It is perfect to get some assistance when it comes to testing.
Note one thing. There is still not support for having the interface as a port in the top module. I will probably add support for that soon, but it can come in a later pull request.
Let me know if you see any problems.


explaining dataset .mat files

good evening,
i don't seem to understand the structure and the content of the .mat files. in the dataset.
i believe it contains ground truth (counting) for images. i know at some point in CNN we need to calculate the error between the network result and the ground truth we have
i try to print one file:
{'image_info': array([[array([[(array([[<PHONE_NUMBER>8,<PHONE_NUMBER>7], [<PHONE_NUMBER> ,<PHONE_NUMBER>5], [<PHONE_NUMBER>4,<PHONE_NUMBER>2], ..., [ 42.5852337 ,<PHONE_NUMBER>9], [1017.48233659, 8.99748811], [1017.48233659, 23.31916643]]), array([[920]], dtype=uint16))]], dtype=[('location', 'O'), ('number', 'O')])]], dtype=object), '__version__': '1.0', '__header__': 'MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Fri Nov 18 20:06:05 2016', '__globals__': []}
can someone explain whats in these files and how or for what that content is used in crowd estimation.

i get the answer,
this .mat file contains (or what we are most interested in) two arrays (inside of a dictionary), the contents will be more clear  if you open the file in mat lab.
one array is of size N by 2 , the 2 is for the X and Y coordinate for targeted object pixels, and N is the the total number of pixels (hence, ground-truth)
this array is the one shown up in the question as :
array([[<PHONE_NUMBER>8,<PHONE_NUMBER>7], [<PHONE_NUMBER> ,<PHONE_NUMBER>5], [<PHONE_NUMBER>4,<PHONE_NUMBER>2], ..., [ 42.5852337 ,<PHONE_NUMBER>9], [1017.48233659, 8.99748811], [1017.48233659, 23.31916643]])
the other array simple contains the N ( the ground-thruth) which is shown above in the question as:
array([[920]]

I'm trying to generate GT csv files for my own dataset, but I don't have the necessary .mat files. @norahik, any idea how I can generate my own .mat files?

please explain two arrays of data in this .mat file in more detail exactly what it is?

i get the answer,
this .mat file contains (or what we are most interested in) two arrays (inside of a dictionary), the contents will be more clear if you open the file in mat lab.
one array is of size N by 2 , the 2 is for the X and Y coordinate for targeted object pixels, and N is the the total number of pixels (hence, ground-truth)
this array is the one shown up in the question as :
array([[<PHONE_NUMBER>8,<PHONE_NUMBER>7], [<PHONE_NUMBER> ,<PHONE_NUMBER>5], [<PHONE_NUMBER>4,<PHONE_NUMBER>2], ..., [ 42.5852337 ,<PHONE_NUMBER>9], [1017.48233659, 8.99748811], [1017.48233659, 23.31916643]])
the other array simple contains the N ( the ground-thruth) which is shown above in the question as:
array([[920]]

I know the means of two arrays ,now i have my own dataset and point-xy ground truth files ,how to get the same struture like : ('image_info: ', array([[array([[(array([[222.5446098 ,<PHONE_NUMBER>9],
[  6.63269208,<PHONE_NUMBER>2],
[ 64.82506957,<PHONE_NUMBER>3],
...,
[714.76278388,<PHONE_NUMBER> ],
[519.37417249,<PHONE_NUMBER>7],
[523.46608059,<PHONE_NUMBER>6]]), array([[707]], dtype=uint16))]],
dtype=[('location', 'O'), ('number', 'O')])]], dtype=object))
the outside array([[array([[(array([[x,y]]),array([[number]],dtype=uint16))]],dtype=[('location','0'],('number','0')])]],dtype = object))
the structure is so unique as we use before,can I modify the dataloader file , maybe somethings is unnecessary? I wonder how you solve the problem ,thank you very much .

good evening,
i don't seem to understand the structure and the content of the .mat files. in the dataset.
i believe it contains ground truth (counting) for images. i know at some point in CNN we need to calculate the error between the network result and the ground truth we have
i try to print one file:
{'image_info': array([[array([[(array([[<PHONE_NUMBER>8,<PHONE_NUMBER>7], [<PHONE_NUMBER> ,<PHONE_NUMBER>5], [<PHONE_NUMBER>4,<PHONE_NUMBER>2], ..., [ 42.5852337 ,<PHONE_NUMBER>9], [1017.48233659, 8.99748811], [1017.48233659, 23.31916643]]), array([[920]], dtype=uint16))]], dtype=[('location', 'O'), ('number', 'O')])]], dtype=object), '__version__': '1.0', '__header__': 'MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Fri Nov 18 20:06:05 2016', '__globals__': []}
can someone explain whats in these files and how or for what that content is used in crowd estimation.

I know the means of two arrays ,now i have my own dataset and point-xy ground truth files ,how to get the same struture like : ('image_info: ', array([[array([[(array([[222.5446098 ,<PHONE_NUMBER>9],
[ 6.63269208,<PHONE_NUMBER>2],
[ 64.82506957,<PHONE_NUMBER>3],
...,
[714.76278388,<PHONE_NUMBER> ],
[519.37417249,<PHONE_NUMBER>7],
[523.46608059,<PHONE_NUMBER>6]]), array([[707]], dtype=uint16))]],
dtype=[('location', 'O'), ('number', 'O')])]], dtype=object))
the outside array([[array([[(array([[x,y]]),array([[number]],dtype=uint16))]],dtype=[('location','0'],('number','0')])]],dtype = object))
the structure is so unique as we use before, I wonder how you solve the problem ,thank you very much .

@svishwa  hi ,how can I generate the GSV gt file for my own dataset , python or matlab ,thank you very much

I have solved it

I have solved it
How do you get a heat map for a new picture? Thank you for your answer

我已经解决了

你好，请问你用什么工具生成的.mat文件，可以分享一下代码么？

You can use "scipy" library with python to save a "Numpy" array in a matlab format.https://docs.scipy.org/doc/scipy/index.htmlhttps://code-maven.com/slides/python/matlab-saveBest Regards,Norah Alkharashi.-------- Original message --------From: w-x-j00 @.>Date: Tue, Mar 8, 2022, 4:08 AMTo: svishwa/crowdcount-mcnn @.>Cc: norahik @.>, Mention @.>Subject: Re: [svishwa/crowdcount-mcnn] explaining dataset .mat files (#27)
我已经解决了
你好，请问你用什么工具生成的.mat文件，可以分享一下代码么？
—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: @.***>


Add webpack, babel, and eslint

I'm adding webpack, babel, and eslint for compilation
This issue is about {Add webpack, babel, and eslint}

[x] I ensure that this issue is not a duplicate of any current open issues(s).
[x] Assign this issue to me (I want to work on this).
[x] I will send my PR only after I'm assigned to this issue by any maintainer.
[x] I understand that I will be unassigned from this issue if I fail to send a PR for this within a week.

@sneakycr0w is this up for grabs?

@Nitiquita thanks for showing interest here, PR has already been made for this, meanwhile you can look at the existing issues. Thanks 👍


SSH tunnel times out after 10 minutes even with traffic

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
Using tarmak cluster kubeconfig it gets closed after 10 minutes, no matter if it is used or not.
The openssh CLI only ends the connection if it's not used for 10 minutes. We should try to have that as well.
What you expected to happen:
We should have the same behaviour as SSH multiplexing
How to reproduce it (as minimally and precisely as possible):

Use tarmak cluster kubeconfig
Port-forward to a pod
Use the forwared port and then connection is dead after ten minutes

/assign

/close


Move editor debug pseudolocalization to a dev-only setting

Godot version
Godot Engine v4.1.1
System information
Windows 11 OpenGl Api 3.3.0 NVIDA 537.34 - Compatibility NVIDIA - NVIDIA GeForce GTX 1650
Issue description
When I tried to open Godot editor looks broken like this:

Console logs always write "Unicode parsing error, some characters were replaced with ∩┐╜ (U+FFFD): NUL character"

Steps to reproduce
Just open Godot engine
Minimal reproduction project
This is not about my project, about the engine

I'm afraid your Godot version is haunted. You should take it to your nearest software exorcist.

More seriously, it's actually a feature called pseudolocalization, which you may have enabled by mistake in the editor settings:

Id 457205697

Thanks @akien-mga this is fixed my issue.

There are clearly too many cases of editor pseudolocalization being enabled by accident, so we should move it to be available in dev builds only.

wait so how do i undo it?


Using podman-remote instead of pypodman, for podman-machine

/kind feature
Note: It's hard to use podman-remote instead of the previous pypodman,
due to the lack of environment variables (some of them missing entirelly).
Here is the current configuration:
export PODMAN_USER="root"
export PODMAN_HOST="<IP_ADDRESS>"
export PODMAN_PORT="38053"
export PODMAN_IDENTITY_FILE="/home/anders/.local/machine/machines/box/id_rsa"
export PODMAN_IGNORE_HOSTS="true"

Trying to map these into parameters, but there is no param for the -i flag.
Normally SSH is transferred over a local port, rather than using the VM's IP.
The current workaround is to use the PODMAN_VARLINK_BRIDGE,
but unfortunately that doesn't work for running interactive sessions with:
export PODMAN_VARLINK_BRIDGE="/usr/bin/ssh -F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null<EMAIL_ADDRESS>-o IdentitiesOnly=yes -i /home/anders/.local/machine/machines/box/id_rsa -p 38053 sudo varlink bridge"

$ podman-remote run -it alpine
Error: client must use upgraded connection to attach

Would it be possible to make podman-remote compatible with the above variables ?
(And add a configuration option, that would pass the correct -i to the ssh command)
	return fmt.Sprintf(
		`ssh -p %d -T %s@%s -- /usr/bin/varlink -A \'/usr/bin/podman --log-level=%s varlink \\\$VARLINK_ADDRESS\' bridge`,
		port, remoteConn.Username, remoteConn.Destination, logLevel)

One more complication is the hardcoded locations of the commands on the remote end.
For instance, when running tiny core linux then additional software is under /usr/local.
sh: /usr/bin/varlink: not found
tc@box:~$ which varlink
/usr/local/bin/varlink
tc@box:~$ which podman
/usr/local/bin/podman

Couldn't we just let the remote system find them in the PATH ? Workaround was runtime symlinks.

Eventually, once all the various above issues are worked around - it does work OK in the end...
$ podman-remote --username=$PODMAN_USER --remote-host=$PODMAN_HOST --port $PODMAN_PORT run -it alpine
Trying to pull docker.io/library/alpine...
Getting image source signatures
Copying blob sha256:9d48c3bd43c520dc2784e868a780e976b207cbf493eaff8c6596eb871cbd9609
Copying config sha256:961769676411f082461f9ef46626dd7a2d1e2b2a38e6a44364bcbecf51e66dd4
Writing manifest to image destination
Storing signatures
/ #

I copied my ssh key to the /root/.ssh/authorized_keys, due to the lack of -i parameter.
It also warned me that the server at random-port had changed its host key: (Again)
The authenticity of host '[<IP_ADDRESS>]:38053 ([<IP_ADDRESS>]:38053)' can't be established.
ECDSA key fingerprint is SHA256:0697eMVSJIEHK2LXDkE9R6R7QnHxbBkdZOaavBqz0Bs.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[<IP_ADDRESS>]:38053' (ECDSA) to the list of known hosts.

That is where the PODMAN_IGNORE_HOSTS comes in handy, until host keys are fixed.
It just causes the connection to use the regular workarounds for ignoring any host keys:
-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null

Yes those seem very reasonable, open a PR for them.

  Would this work on a MAC?

It should (any Unix), but come to think of it I forgot to pass the parameters to my Windows implementation... There is also a long-standing request to write a more "native" Mac driver.
Currently the included options are still VirtualBox and QEMU, but there are some plugins.
For the Mac, the requested driver is Xhyve (or Docker's HyperKit), and for Win it is Hyper-V.
Have tested an older version with VirtualBox 5 and with "qemu-system-x86_64" on OS X.
But haven't gotten around to building the podman-machine-driver-xhyve, or qemu with hvf.
The Windows users are reporting some issues when using the bridge, maybe DOS things ?
It was tested successfully on Windows 7, but I did use a proper bash shell (through MSYS)


Fix StackFS mount options in alluxio-fuse script

StackMain required fuse mount options to be passed in "-obig_writes -okernel_cache" format.
Modify the alluxio-fuse script to match the requirement

Failed test alluxio.server.ft.journal.MultiMasterJournalTest is unrelated

alluxio-bot, merge this please


Intercom: Incremental Read

The changes have been merged into the connectors library. After it is propagated it should be ready to go.
https://github.com/amp-labs/connectors/pull/1082


If authorized_keys does not exist then the -s function does not work..

Describe the bug
If you want to send your public key to the server using -s then it only works if the authorized_keys file is already in place.
To Reproduce
Steps to reproduce the behavior:

First I deleted authorized_keys file on the sever in .ssh
Then I  used the -s option on the client but are still prompted for a password
Checking the log you see the issue
touching the file then re running everything works as it should

Expected behavior
If the file does not exist then the server should create it
logs
INFO|2022-05-21 20:12:05.567675| sshnpd |ssh Public Key recieved from @colin notification id : f7ad4dc8-f0da-4484-8b09-f5ac407caa82

SEVERE|2022-05-21 20:12:05.569308| sshnpd |Error writting to pi .ssh/authorized_keys file : FileSystemException: Cannot open file, path = '/home/pi/.ssh/authorized_keys' (OS Error: No such file or directory, errno = 2)

 INFO|2022-05-21 20:12:07.864150| sshnpd |ssh callback request recieved from @colin notification id : 763452cc-45e7-47bc-99a9-5ec6d7ed38d1

Smartphone (please complete the following information):

Linux PiOS

A qucik note on why this is not as simple as it might seem..
Dart has no way to check/change file permissions (I know that sounds odd!) but it is true..
The file can be created but there is no way in Dart to fix the permissions to 0600 in Linux/Unix/BSD.
I could cheat and use chmod I guess but that sorta ugly..
Ideas welcome !


"Mark as FAQ"

If a question is marked as an FAQ by an admin, it could get aggregated to a separate JS embed that a customer could use to embed on an actual FAQ page. Then FAQs are just a subset of questions asked around a customer's site that are useful beyond the place where they were asked.
Future widget landscape

Insert wherever you want a q&a widget (default)
Feed of recently asked Q's (/questions)
FAQ widget (questions limited to marked as faq) - this issue
Unanswered questions (page limited to questions with no responses)
Tag questions in admin, then limit the output of a widget to questions with that tag

h/t @smallbrownbike for the stellar idea!

Idea: This could be done with a tag. We can have specific tags (by default) and faq can be one of them. We can use it to show how you can limit any questions to a specific subset by tag(s) with the Squeak! embed code.


fix some spell errorin Hudi

fix some spell errorin Hudi
for example:
parition =>partition

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

1 minor comment, everything else looks good.

@xubo245 can you please sign teh CLA and we can merge this

@vinothchandar Done.


Use of iRODS file browser leads to iRODS session processes lingering around without terminating

@rayi113 and @dtarb found that some repetitive use of iRODS file browser with some complicated workflow leads to failure to login to iRODS unless the iRODS server is restarted to clear up the processes. @rayi113 further observed that use of iRODS file browser leads to iRODS session processes lingering around without being terminated, and after some accumulation of iRODS session processes reaches the limit allowed by iRODS server, the user can no longer login to iRODS unless the iRODS server is restarted.

This has been resolved on www. Closing.


fix unpure leftover commas

why did you closed this w/o fixing?
from https://github.com/paf31/purescript-book/blob/master/text/chapter7.md#applicative-validation-1
double commas at the start and end of some lines:
Person
  { firstName: "John",
  , lastName: "Smith",
  , address: Address
      { street: "123 Fake St."
      , city: "FakeTown"
      , state: "CA"
      },
  , phones: [ PhoneNumber
                { type: HomePhone
                , number: "555-555-5555"
                }
            , PhoneNumber
                { type: CellPghone
                , number: "555-555-0000"
                }
            ]
  }


Revert "[ci] simplified and speeded up Travis"

Reverts Microsoft/LightGBM#1429

@StrikerRUS you can add these changes back.


[FEATURE] a way for the applescript to identify if the config is complete, and if so to restart from scratch

v3.1.0-beta2 works on this.

Running as "Main" will start a new file from scratch.
Running as "Backup" will add to a "Main" file, or error if adding to a file which already contains a "Backup" element.


DNS resolution fails for resources behind DirectAccess

Your Windows build number: 10.0.17134.407

What you're doing and what's happening:  attempting to resolve DNS for a server accessible over DirectAccess does not return the IPv6 address. By adding an entry to /etc/hosts with the IP from Windows name resolution the resources is then accessible.  For example, we have a GitHub Enterprise instance that lives inside the corporate network and is made accessible over DA:

Ubuntu:
$ ping github.example.corp
ping: github.example.corp: Name or service not known

Windows:
>ping github.example.corp

Pinging github.example.corp [redacted] with 32 bytes of data:
Reply from redacted: time=29ms

Back to Ubuntu:
$ cat /etc/hosts
# This file is automatically generated by WSL based on the Windows hosts file:
# %WINDIR%\System32\drivers\etc\hosts. Modifications to this file will be overwritten.
<IP_ADDRESS>       localhost
<IP_ADDRESS>       localdevicename.example.corp        localdevicename

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

redacted github.example.corp

$ ping github.example.corp
PING github.example.corp(github.example.corp (redacted)) 56 data bytes
64 bytes from github.example.corp (redacted): icmp_seq=1 ttl=253 time=30.9 ms

What's wrong / what should be happening instead: The initial resolution of the resource behind DirectAccess should resolve to the IPv6 address so that the internal addresses do not have to be managed individual via /etc/hosts

There's also no repro here, but #2082 #1350 et al.

@therealkenc I agree there are likely some similarities to the other issues that have been logged, I did not see mention of DirectAccess in any issued logged today.  Being that DirectAccess is a Microsoft technology baked into the OS, I suppose I have a slightly higher expectation for it to work together. Since it wasn't explicitly state anywhere I wanted to make sure the use case is captured as it seems Microsoft's own VPN technology would be just as important, if not more so, than third party VPNs. Potentially the work underway that is mentioned in other issues is expected to also accommodate DirectAccess and it's just not called out?

Old thread I know, but I added the IPv6 addresses that DirectAccess resolved for our internal DNS Servers to my /etc/resolv.conf file and was able to resolve internal resources then.


juniper_junos_unstructured: add message filter to junos

New message discovered from juniper os device.

@zyphermonkey please sign CLA and we will merge it. I already approved that

I have read the Code of Conduct and I hereby accept the Terms

recheck

:tada: This PR is included in version 3.4.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket: