The symbols cannot be resolved when build android native c/c++ applictions

When build a appliction of android (c/c++ native), both plugin for Clion or Android studio, all the standard c++ header files could not found. So the symbols defined in them also all red.
The error could be see in $HOME/.cache/JetBrains/CLion2022.2/log/idea.log
[Compiler exited with error code 1: /tmp/blaze_compiler6.sh -xc -gcc-toolchain external/androidndk/ndk/toolchains/x86-4.9/prebuilt/linux-x86_64 -target i686-none-linux-android -fPIC -isystem /home/wgs/.cache/bazel/bazel_wgs/0c5f353b70428032322000e4ccc35314/execroot/main/external/androidndk/ndk/sysroot/usr/include/i686-linux-android -D__ANDROID_API_=29 -mstackrealign -no-canonical-prefixes -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -funwind-tables -fstack-protector-strong -fno-addrsig "" --sysroot=/home/wgs/study/bazel/hellobazel/external/androidndk/ndk/platforms/android-29/arch-x86 -isystem /home/wgs/.cache/bazel/_bazel_wgs/0c5f353b70428032322000e4ccc35314/execroot/main/external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include -isystem /home/wgs/.cache/bazel/_bazel_wgs/0c5f353b70428032322000e4ccc35314/execroot/main/external/androidndk/ndk/sources/cxx-stl/llvm-libc++abi/include -isystem /home/wgs/.cache/bazel/_bazel_wgs/0c5f353b70428032322000e4ccc35314/execroot/main/external/androidndk/ndk/sources/android/support/include -isystem /home/wgs/.cache/bazel/_bazel_wgs/0c5f353b70428032322000e4ccc35314/execroot/main/external/androidndk/ndk/sysroot/usr/include -fpch-preprocess -v -dD -E
Android (7019983 based on r365631c3) clang version 9.0.9 (https://android.googlesource.com/toolchain/llvm-project a2a1e703c0edb03ba29944e529ccbf457742737b) (based on LLVM 9.0.9svn)
Target: i686-none-linux-android
Thread model: posix
InstalledDir: /home/wgs/.cache/bazel/_bazel_wgs/0c5f353b70428032322000e4ccc35314/execroot/main/external/androidndk/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin
Found candidate GCC installation: /home/wgs/.cache/bazel/_bazel_wgs/0c5f353b70428032322000e4ccc35314/execroot/main/external/androidndk/ndk/toolchains/x86-4.9/prebuilt/linux-x86_64/lib/gcc/i686-linux-android/4.9.x
Selected GCC installation: external/androidndk/ndk/toolchains/x86-4.9/prebuilt/linux-x86_64/lib/gcc/i686-linux-android/4.9.x
Candidate multilib: .;@m32
Selected multilib: .;@m32
clang: error: no such file or directory: '""'

@sgowroji Thank you for care about this. Here is the reproduce steps.

Install CLion and bazel on ubuntu 20.04.
Install Bazel plugin for the CLion.
Download NDK and extract it on a install dir: https://dl.google.com/android/repository/android-ndk-r21e-linux-x86_64.zip
Create a simple helloword bazel project and config the NDK repo in its WORKSPACE file. Like below:
android_ndk_repository(
name = "androidndk",  # Required. Name must be "androidndk".
path = "/home/wgs/Android/Sdk/ndk/21.4.7075529",  # Optional. Can be omitted if ANDROID_NDK_HOME environment
variable is set.
)
Using Import bazel project to import this project. After the project synced. All things is OK for x86_64 project.
Config the default build to use android NDK as below in .bazelrc file
build:android_linkopt --linkopt=-llog
build:android_linkopt --linkopt=-lm
build:android_linkopt --linkopt=-ldl
build:android_linkopt --linkopt=-Wl,-z,global

build:android_arm64-v8a --crosstool_top=@androidndk//:toolchain-libcpp
build:android_arm64-v8a --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
build:android_arm64-v8a --cpu=arm64-v8a
build:android_arm64-v8a --config=android_linkopt
build --config=android_arm64-v8a

build the project with bazel build :main on console is OK.
Resync the project through Bazel->Sync->Sync Project with BUILD file.
You can see that all the symbols in std namespace cannot found now.

Please see the example project here. And the screenshot.

Hello @GuoshunWu, Could you please provide complete steps to reproduce the above error. Thanks!

Hi @sgowroji ，What else do you want me to help you to get this issue fix? I you do, please don't hesitate to contact me.
Thanks.

Hi Guys,
How is this going? I'm waiting for using this. Hope to solve it quickly.

Hi Guys,
How is this gogin on? If there's a usable one, please give me to have a test.
Thanks.
BR,
Guoshun

Hi @tpasternak, Thanks for informing. I will share to Android team and will let you know the update.

Hi @estebandlc and @sgowroji , How is it going? I had the same problem with the NDK project when using CLion. I would appreciate it very much if this bug could be resolved as soon as possible.

Any update here?


React JSON Schema Form binding for Primer

Hi, just wanted to share some work we are doing to add Primer binding to React JSON Schema Form solution.
The repo is available on https://github.com/datalayer/rjsf-primer and provides today a complete coverage of the RJSF API. Playground on https://datalayer.github.io/rjsf-primer
Hope this can be useful. Also happy to get any feedback, and be listed as external resources on Primer documentation if there is a place for that.

We miss a Slider to implement the RangeWidget, so we picked the MUI one for now https://mui.com/material-ui/react-slider/

Thanks for sharing @echarles!
@siddharthkp as our First Responder this week, could you take a look and weigh in with any feedback?
Also tagging in @emilybrick to look into whether this might be a good fit to link to as an external resource from the Primer docs.


Way more tests

Pull Request Test Coverage Report for Build 448817105

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+6.5%) to 76.385%

Totals

Change from base Build 448690544:
6.5%

Covered Lines:
1132

Relevant Lines:
1502

💛  - Coveralls


icon for org

The org icon is normally a unicorn. Have u ever come across it. If yes please add it. I have searched my pants of and I couldn't find it.

I'm really not sure where to find this if it's not present in this page, I don't think it would be available yet but maybe you can find a replacement for it

My only corncern is how can this be here. this is doom-modeline https://github.com/seagle0128/doom-modeline

doom is an emacs config which is renderer in a GUI, not a TUI, so they can render svg and such i believe which we cannot do.

Mm. I see. Yeah that makes sense.

Should I close this issue ?? What do u say ??

closing this for you. If you find the icon at some point you could make a PR to include it

ok


Add mail 2.8 support

Motivation
address_list method was removed from mail gem 2.8+.
Related links:

https://github.com/mikel/mail/issues/1521
https://github.com/rails/rails/pull/46643/

Changes

Add mail 2.8+ support
Test gem with multiple mail gem versions

I just had the same issue. And I wonder when a new version of the mailtrap gem with this fix will be released?

@spickermann Hey! We're planning to release a new version this week. If it's more urgent, you could use the version from the github repo:
gem 'mailtrap', github: 'railsware/mailtrap-ruby'

hi @spickermann!
Just wanted to let you know, that we've released 1.2.0 with this fix included. And check the changelog, as this release includes braking changes.


Develop: Add database for storing analytics data

As a developer, I need a database structure set up that supports Google Analytics integration.
Also see #410 for overlap. To meet our needs, we may need two separate data storage techniques (or one if it meets all criteria of both stories).
Acceptance Criteria

Database structure is set up within the application to support Google Analytics data
Document any relevant content in the Programmer guide (draft thoughts of usage and importantly the "Why")
Updates SRS and STP (and other docs if necessary)
Add/Update relevant unit tests

I believe this will be all captured in Firebase, but more research will be needed.


Hide minimize button

Issue Type

[ ] Bug report
[*] Feature request
[ ] Question / support request
[ ] Other

Description
Can't find a prop for the <Zoom></Zoom> element to hide the Minimize button when an image is clicked. I had to add a custom css style to hide it.
/* React medium zoom image */
button[aria-label="Minimize image"] {
  display: none !important;
}

Hi! In order to prevent accidental accessibility issues, such a feature won't be supported (there must be a button). However, if you want to hide it for some reason, you can use this selector:

[data-rmiz-btn-unzoom] {
  display: none;
}


Fast Execution

Is it possible to modify this code to remove all frame limiting mechanisms? For instance, if I wanted to adapt this library to allow a machine learning algorithm to process game data at something close to 1000 frames per second (rough number), would that be doable?
Removing the frame limiting mechanism in the run function of the GUI appears to provide some speedup, but are there other modifications to potentially boost this further?

whoops, had the wrong tab open. This was meant for another repository. My bad. Closing issue


Add RSS feeds to Post List pages

Add RSS feeds to list pages.
This looks nice:
https://github.com/jpmonette/feed
Old website RSS source:
https://github.com/NumentaCorp/numenta.com/blob/master/src/documents/blog/index.rss.hbs
Originally from https://jira.numenta.com/browse/WEB-196
cc @jsfowles

@jsfowles great one for you


Update the way read header is handled

edited by @pires
Fixes #75

Hi,
I just tested this patch with SFTPGo  for proxy SSH and FTP connections, it looks fine. Are there any blockers to merge it? thanks

Coverage increased (+1.1%) to 95.476% when pulling 13136de7e94414d0e8fb7b2b66f67a11985f6276 on antoniomika:am/fix_read_deadline into bab7dd263f970c6c7b509e39ecfa2d50560f3f31 on pires:bugfix/reset_conn_read_deadline_after_successful_header.

Hey @pires,
Added some more documentation, cleaned up some unneeded boilerplate and we should be ready to go!
Best,

@pires just a heads up, this should merge first, followed by #76 after this lands.

@pires just a heads up, this should merge first, followed by #76 after this lands.

What is there in #76 that isn't solved here?

@pires just a heads up, this should merge first, followed by #76 after this lands.

What is there in #76 that isn't solved here?

To apply this patch you have to apply #76 first.

@pires just a heads up, this should merge first, followed by #76 after this lands.

What is there in #76 that isn't solved here?

To apply this patch you have to apply #76 first.

Damn, I must have that espresso urgently! 😅

Somehow #82 landed here and I'd like to give the chance for @drakkan to get their contribution in. Can you please remove this?

Sorry about that, I should've checked if there was another PR with the static check fixes. I use code spaces and was a bit OCD with the linting issues. I actually started working on #73 but those changes were more complicated so I decided to leave them for when I had more time. You can remove those changes in your PR now and merge in #82.

Yeah #73 is painful. Also have a branch for a long while now 😅


feat(arize-dataset): accept arize dataset that can be input to nemo-customizer

Hi! I'm the autofix.ci troubleshooter bot.
It looks like you correctly set up a CI job that uses the autofix.ci GitHub Action, but the autofix.ci GitHub App has not been installed for this repository. This means that autofix.ci unfortunately does not have the permissions to fix this pull request. If you are the repository owner, please install the app and then restart the CI workflow! 😃


Compile regression model for TPU problem with op: div_no_nan

Hello,
I have been trying (unsucessfully) to create and compile a model used for regression (final activation is linear instead of f.e. softmax). After several attemps with TF versions 1.15 and 2.1 I have seen that the problem is the operation div_no_nan which is performed within the scope of the loss function, as shown in this image from Tensorboard:

I have tried to use different types of Optimizers, such as RMSProp or Adagrad, but the problem remains the same: edge_tpu_compiler throwing an unrecognizable compiler error, which is caused by this operation (hopefully only this one).
The code I am using to create the model is:
def get_model(self, shape, num_forecasts, inner_activation='relu'):
        model = tf.keras.models.Sequential()
        model.add(tf.keras.layers.Dense(units=int(64), input_shape=shape, activation=inner_activation))
        model.add(tf.keras.layers.Dense(units=int(64), activation=inner_activation))
        model.add(tf.keras.layers.Flatten())
        model.add(tf.keras.layers.Dense(units=num_forecasts, activation="linear"))

        # opt = tf.keras.optimizers.Adam(lr=0.01)

        model.compile(optimizer="adam",loss="mae", metrics=['acc'])
        model.summary()
        return model

The ops I use to convert the model to TPU are:
        if tf.__version__.split(".")[0] == '1':
            converter.target_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]
        else:
            converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]
        converter.representative_dataset = self.representative_dataset_gen
        converter.inference_input_type = tf.uint8
        converter.inference_output_type = tf.uint8
        converter.optimizations = [tf.lite.Optimize.DEFAULT]

My question is then, is there any way/combination of optimizer and loss function to prevent this error (and any TPU incompatibility) for regression instead of classification?
In addition, I provide here the model (in keras format) and the TFLite version (might not be the exact same model shown in the image or the code but the problem is the same).
models.zip
Regards,
Adrian

Hi Adrian,
can you check your compiler version? It appears that you've hit a bug on an older compiler that is already fixed. The current release is:
Edge TPU Compiler version 2.0.291256449

I've attached the compiled version :)

Hello,
Can't believe that the problem was on the compiler version :S after two weeks of trying a lot of model architectures. Thanks @Namburger
I can see that the compiled model only has 1 layer running on the TPU, I guess the operations are still no compatible.
Any suggestions on fixing this?
Regards :)


Category List Boolean fields may not be correctly parsed when importing files.

Whenever I import a list of transaction categories the Boolean fields, i.e. IncomeCategory, ExpenseCategory, and TaxRelated, are always false, regardless of their values in the .qif file.
It looks like the API is expecting explicit true/false string values in the .qif file, but quicken treats it more like an option flag when exporting data, i.e. the existence of the field id code (e.g. T, I, and E) is sufficient to indicate TRUE, and its absence indicates FALSE.  Or at least that's how I'm interpreting the spec, since it fits the .qif files I' trying to import.
Here's an excerpt from my .qif file:
!Type:Cat
NBonus
DBonus Income
T
R7360
I
^
NClothing
DClothing
E
^
NEntertainment
DEntertainment
E
^
NMedical:Doctor
DDoctors, Dentists, & Hospitals
T
R7744
E
^
!Clear:AutoSwitch

So I should have one income and three expense categories, of which one of each is tax-related.
But if I import and immediately export, the above becomes:
!Type:Cat
B0
NBonus
DBonus Income
EFalse
IFalse
TFalse
R7360
^
B0
NClothing
DClothing
EFalse
IFalse
TFalse
^
B0
NEntertainment
DEntertainment
EFalse
IFalse
TFalse
^
B0
NMedical:Doctor
DDoctors, Dentists, & Hospitals
EFalse
IFalse
TFalse
R7744
^

Now all the categories are neither income nor expense, which doesn't match what was exported from Quicken.
I don't know if the .qif spec has changed over time, but my files are from Quicken 2000, so it's possible that more modern versions are using the explicit true/false values instead of just the field indicators.
I'm in the process of modifying the API to work with my import files.  I'd be happy to submit a PR when I'm finished, but I don't know if the API should look just for the presence/absence of field indicators for income/expense/tax-related and nothing else, or if it should also parse explicit true/false strings.
For example, should an Income category be represented like this:
I
and not this:
ITrue
Or should both options be acceptable?

Great catch. Reading the spec seems to indicate mere presence should dictate truth. It also says absence of either I or E should default to expense. I'll wire up an update and get this fixed.

This should have been corrected in commit 19de1c97201ae0f94dd6d8e7d982573312061330.


Develocity capture.fileFingerprints has conflicting documentation

Issue type
Wrong or misleading information
Problem description
Develocity docs says:

In addition, the paths and content hashes of individual input files of each property are captured by default. -- plugin docs

and also implies it's enabled by default because the next section is titled "When to disable".
However the JavaDoc says the opposite:

Defaults to false. -- BuildScanCaptureConfiguration.getFileFingerprints

For reference, the Gradle Enterprise docs say:

Since Gradle plugin 3.17, the paths and content hashes of individual task input files of each property are also captured by default. For older versions, this can be enabled on an opt-in basis. They allow identifying which individual files changed for a task when comparing two builds. -- legacy docs

And the Javadoc says the same:

Defaults to false. -- BuildScanCaptureSettings.taskInputFiles.

Context (optional)
I understand it might be technically correct that the property's default is false, because the resolution of it will default to true. However from a DX perspective, when users are reading API docs, it feels misleading.
Page with the problem
https://docs.gradle.com/enterprise/gradle-plugin/api/com/gradle/develocity/agent/gradle/scan/BuildScanCaptureConfiguration.html#getFileFingerprints()

This is a valid documentation issue.

Fixed in 3.17.2


added  two new commands for  exporting and importing .xml files

Taken example from Windows 10 v1903  build no 18362.207.
added  two commands  under export of configuration file  and  import of configuration  file
add this exploit configuration file.xml is  created by me  with windows 10 v1903
ExploitConfigfile.zip

@nenonix @JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@levinec A community contributed PR that has passed copy review is available for technical review. Thanks.


Update version matrix for v1.18

Update version matrix for v1.18.
/assign @saschagrunert

I think we have to re-connect the project to travis somehow. :thinking:


There is no way out of

Once you click Quote it starts creating new <blockquote>s tags. I can't exit the quote while I'm typing. Even with double enters, or tab.

@okbel thanks very much for the feedback. Big update for pell coming soon with tons of fixes, hopefully I can work in a fix for this as well.

Thanks for the quick reply! (And sorry for the short description I wanted to comeback and write detailed steps of repro hah)
Really excited about the update! Let me know how it goes! We are using Pell for Talk [here] (https://github.com/coralproject/talk/tree/master/plugins/talk-plugin-rich-text-pell)

@okbel No worries. v1.0.1 includes a fix for the blockquote escaping, as well as making sure the first child element in the editor is properly wrapped in a tag (I noticed you have a workaround for this in this file:
https://github.com/coralproject/talk/blob/master/plugins/talk-plugin-rich-text-pell/client/utils.js
Perhaps you don't need the workaround anymore.
The coral project looks pretty cool, kudos to you and your team.
Maybe we can post a "Who uses pell" section on this README and list yours there. Let me know if you're okay with that.

Thank you!  Sure! Feel free to add us to the section.

Click quote button => input something => shift + enter => input something => enter => not escap (bug)

Interesting, never knew about the shift+enter thing.

I find blockquote very handy, but dont have them. My version is v2 working branch.


TraceId does not propagate between threads

Describe the bug
TraceId does not propagate between threads since version 2.2.2.RELESE of sleuth (Spring Cloud Hoxton.SR3)
I've tested with verison 2.2.1.RELEASE (Hoxton.SR2) - works correctly
On newest version - 2.2.5.RELEASE issue still persists.
Sample
Here's test Controller:
`
package app.testing;
import brave.Span;
import brave.Tracer;
import brave.propagation.TraceContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;
import reactor.core.scheduler.Schedulers;

import java.util.Optional;

@RestController
public class TraceIdController {
    private Tracer tracer;

    @Autowired
    public TraceIdController(Tracer tracer) {
        this.tracer = tracer;
    }

    @GetMapping(value = "/api/v1/traceId/test")
    public Mono<TraceIdDto> get() {
        String traceId = getTraceId().orElse(null);
        return Mono.defer(() -> Mono.just(getTraceId()))
                .subscribeOn(Schedulers.elastic())
                .map(elasticThreadId -> new TraceIdDto(traceId, elasticThreadId.orElse(null)));
    }

    private Optional<String> getTraceId() {
        return Optional.of(tracer)
                .map(Tracer::currentSpan)
                .map(Span::context)
                .map(TraceContext::traceIdString);
    }

}

package app.testing;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class TraceIdDto {
    private String nativeThreadTraceId;
    private String elasticThreadTraceId;
}

`
And junit test that shows the problem:
`   package app.testing;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.reactive.server.WebTestClient;

import static org.assertj.core.api.Assertions.assertThat;

@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class TraceIdControllerTest {

    @Autowired
    private WebTestClient webTestClient;

    @Test
    public void testTraceId() {

        TraceIdDto traceIdDto = webTestClient.get().uri("/api/v1/traceId/test")
                .exchange().expectStatus().isOk()
                .expectBody(TraceIdDto.class)
                .returnResult().getResponseBody();

        assertThat(traceIdDto.getNativeThreadTraceId()).isEqualTo(traceIdDto.getElasticThreadTraceId());
    }

}

`
Proposed solution
I've investiagted sleuth code a little bit, and I think the problem is in SleuthContextListener. I've compered this class with ContextRefreshedListener that existed in 2.2.1 version.
It seems like SleuthContextListener sets refreshed and closed flags to false, when appropriate event comes, instead to true.
...  listener.refreshed.compareAndSet(false,  event instanceof ContextRefreshedEvent);  listener.closed.compareAndSet(false, event instanceof ContextClosedEvent);  ...

Are you willing to create a failing test and a PR for this?

I'd rather not. I think, it would be better if someone who knows sleuth code better, did it.

I've tested a little bit more, and I was wrong - SleuthContextListener sets the refreshed flag correctly. However ContextUtil retrieves different instance of SleuthContextListener than the one that handles ContextRefreshedEvent. So I'm not sure how to fix the issue at the moment.

That's useful, thanks. I'll try to look at it.

I can't replicate this. It will be difficult to fix this without a sample. Can you please provide one?

So the sample that I provided up above works for you without a problem?

Those are two snippets, can you create a sample as a Java maven project that actually replicates this? That would be super helpful.

Allright, I will try to create a project for you. Gradle instead of maven won't be problem for you?

I'm not a fan of Gradle but sure ;)

@marcingrzejszczak here you go: https://github.com/jacekmg/sleuth-trace-id-propagation-test
Let me know if that's sufficient for you.

Thanks for the sample - it was super useful. So unfortunately Sleuth and Reactor are a problematic couple from the very beginning. That's mainly Sleuth's fault - we're trying to make things super easy for the user without the user's need to interact with any of the Sleuth's internals. With Reactor we're going away of such an approach (that's why in Sleuth 3.0.0 you'll have the utility operators fro messaging, webflux etc.). Coming back to your case - the trace id is properly propagated via the reactor context. For some reason it's just not set as a thread local. What you should be doing is the following
@RestController
public class TraceIdController {

    private Tracer tracer;

    @Autowired
    public TraceIdController(Tracer tracer) {
        this.tracer = tracer;
    }

    @GetMapping(value = "/api/v1/traceId/test")
    public Mono<TraceIdDto> get() {
        String traceId = getTraceId().orElse(null);
        return Mono.defer(() -> Mono.subscriberContext().map(ctx -> Optional.of(ctx.get(TraceContext.class)).map(TraceContext::traceIdString))
                .subscribeOn(Schedulers.elastic())
                .map(traceIdFromNewThread -> new TraceIdDto(traceId, traceIdFromNewThread.orElse(null))));
    }

    private Optional<String> getTraceId() {
        return Optional.of(tracer)
                .map(Tracer::currentSpan)
                .map(Span::context)
                .map(TraceContext::traceIdString);
    }

}

and example for Sleuth 3.0.0
.application.yaml - disables the default on each operator wrapping
spring:
  sleuth:
    reactor:
      instrumentation-type: manual

.TraceIdController
package app.controllers;

import app.dtos.TraceIdDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.sleuth.CurrentTraceContext;  // (1)
import org.springframework.cloud.sleuth.Span;
import org.springframework.cloud.sleuth.TraceContext;
import org.springframework.cloud.sleuth.Tracer;
import org.springframework.cloud.sleuth.instrument.web.WebFluxSleuthOperators;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.server.ServerWebExchange;

import reactor.core.publisher.Mono;
import reactor.core.scheduler.Schedulers;

import java.util.Optional;

@RestController
public class TraceIdController {

    private final Tracer tracer;

    private final CurrentTraceContext currentTraceContext;

    public TraceIdController(Tracer tracer, CurrentTraceContext currentTraceContext) {
        this.tracer = tracer;
        this.currentTraceContext = currentTraceContext;
    }

    @GetMapping(value = "/api/v1/traceId/test")
    public Mono<TraceIdDto> get(ServerWebExchange serverWebExchange) {
        String traceId = WebFluxSleuthOperators.withSpanInScope(tracer, currentTraceContext, serverWebExchange, () -> getTraceId().orElse(null));  // (2)
        return Mono.defer(Mono::subscriberContext)
                .subscribeOn(Schedulers.elastic())
                .map(context -> WebFluxSleuthOperators.withSpanInScope(context, () -> new TraceIdDto(traceId, getTraceId().orElse(null)))); // (3)
    }

    private Optional<String> getTraceId() {
        return Optional.of(tracer)
                .map(Tracer::currentSpan)
                .map(Span::context)
                .map(TraceContext::traceId);
    }

}

(1) - new imports to the Sleuth's API
(2) - you can retrieve trace information from ServerWebExchange
(3) - you can retrieve trace information from Reactor's Context

That way things will not only just work but actually work much faster.

To clarify, the issue won't be fixed for webflux?
Because it also affects slf4j Logger. I've added logger to the sample project, and we can clearly see that logger in elastic thread do not have access to traceId:
2020-12-04 16:27:45.634  INFO [,32334ea865a2891f,32334ea865a2891f,true] 3747 --- [or-http-epoll-3] app.controllers.TraceIdController        : Traceid retrieval
2020-12-04 16:27:45.679  INFO [,,,] 3747 --- [      elastic-2] app.controllers.TraceIdController        : Traceid retrieval

So it makes sleuth pretty much useless when we are using slf4j logger and webflux.
In other words: In order to use sleuth in logging we would have to implement custom logger that would have subscriberContext as an argument, everytime that we want to log something?

By "won't be fixed" - I meant that traceId won't propagate automatically between threads as it was working with Hoxton.SR2. Worrying about whether tracing context will propagate or not, during feature development is quite inconvenient.
Anyway, thanks for fast and clear responses.

By "won't be fixed" - I meant that traceId won't propagate automatically between threads as it was working with Hoxton.SR2. Worrying about whether tracing context will propagate or not, during feature development is quite inconvenient.

You'll have to do that manually, sorry.

By "won't be fixed" - I meant that traceId won't propagate automatically between threads as it was working with Hoxton.SR2. Worrying about whether tracing context will propagate or not, during feature development is quite inconvenient.
Anyway, thanks for fast and clear responses.

@jacekmg  Did you find any solution on this. I am facing same issue

@vinodnholkar I didn't find any new solutions, besides manual scope update that @marcingrzejszczak proposed.


Datasweet formula plugin is breaking SearchGuard configuration tabs

Hi, the datasweet plugin is not working properly when installed on Kibana with SearchGuard.
Steps to reproduce:

Install Kibana with SearchGuard plugin. Tested on below versions:

Kibana 6.4.0 https://artifacts.elastic.co/downloads/kibana/kibana-6.4.0-linux-x86_64.tar.gz
SearchGuard 15 for 6.4.0 http://central.maven.org/maven2/com/floragunn/search-guard-kibana-plugin/6.4.0-15/search-guard-kibana-plugin-6.4.0-15.zip
DataSweet Formula 2.0.0 for 6.4.0 https://github.com/datasweet/kibana-datasweet-formula/releases/download/v2.0.0/datasweet_formula-2.0.0_kibana-6.4.0.zip

Once you have SearchGuard running install datasweet formula plugin

Attempting to transfer from file:///tmp/kibana/datasweet_formula-2.0.0_kibana-6.4.0.zip
Transferring 407760 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
Plugin installation complete

Open SearchGuard configuration or tenancy selection pages, which will not be rendered. /app/searchguard-configuration and /app/searchguard-multitenancy

I have tried installing other plugins instead of datasweet and SearchGuard pages don't break due to them. Hence, opening issue in this project. Please let me know if I should share some more information.

NOTE: Tested the same with SearchGuard version 17. The error exist with it as well.

Hi !
Datasweet Formula is a big hack of the kibana code : we decorate (angular pattern) some kibana core functions to run.
We are sorry, we won't assure compliance with others plugins.
Regards.


Temp branch

Porting zephyr to iMx8MNano (M7 core) processor using Digi CC8MNano board. The port is based on/inspired from Manivannan Sadhasivam port of iMx8MMini (M4) and is extended with GPIO, Timer/counter, Power module and RPMsgLite for multi core communication.

@waseemh40 I suggest cleaning up the commits and resubmitting this.  Closing this PR until that is done.
Also, please start with the most basic SoC & board support.  (ie what you need to build and utilize a uart or something like that).

Hello,
Thanks for a very quick review :-) What about if I remove the PM and RPMsgLite part? Power management was done for our specific use case and as far as I understand, it breaks the standard Zephyr based PM (which has also been implemented in addition to our use case). I could remove the PM along-with RPMsgLite. This will leave GPIO, UART and GPT but in a single commit. Is this OK?
-Waseem


Seprating Styles.css

Styles.css has all the content for sidebar, sperating it to different files would be good practice.

Issue Fixed


Issue with Display

hello, thanks for hearing me out.
Bull-Board UI is working. But the display presentation - seems to be wrong. Appears to be some CSS missing eventually?
I'm Running Node.js on a Windows machine
I Hope i didn't miss some important stuff you wrote on the Readme, i went trough it several times.

This was the old design, it changed in the v1.10-alpha, you can install it from npm using
npm install<EMAIL_ADDRESS>
Or using git clone from master

Thanks a lot!


can't get acess token in LoginProxy

Hello,
but i used some parts
it's not Larapi issue I used some part of your configuration to mount my backend API for SPA React UI, I focused on authentication (login logout) part, everything works fine for authentication (I get the token and user can refresh to get new one).
but when i try de Logout i get FatalThrowableError when trying to get user accesstoken in LoginProy
Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function token() on null in file LoginProxy
I did not make any changes to LoginProxy, maybe I missed something from my project setup, can you give me a track of the possible cause of this issue.

@aityahiaidir did you update cloned source code with pull requests?
https://github.com/esbenp/larapi/pulls

@MahdiPishguy
no i didn't done, which code, my one code ?

@aityahiaidir check pull requests and apply them on your local project, it seems this problem can be fine

@aityahiaidir  It seems I have the same issue. Did you solve this?
After successful access token generation the user is not logged in and the auth()->user() returns null.

@nteath I have the same problem too. The way I fixed it is using middleware auth:ap for the logout route. My code is Route::post('auth/logout', 'LoginController@logout')->middleware('auth:api');
Also from the client, you have send a post request that has Authorization Bearer token. This way the authmanager can use the included access token in your request to retrieve the correct user


Use data attributes instead of CSS classes for binding

Here's a cool suggestion.
To make Transparency more pure, beautiful and HTML5'ish one could use data attributes for binding the template variables.
Instead of

one could say

... this way the conflict between CSS styles and template bindings would be greatly reduced.

Wouldn't you then end up (in reality) just writing

 since more often than not you end up applying styling to elements as well..?

I agree with @jareware.
Actually matching only to element classes and id, transparency supports developers and designers to find a common language and to avoid cognitive noise, e.g.,
Given Name

However, if you find data-* attributes are a better fit for your particular purpose, I recommend to take a look on http://knockoutjs.com/. It has a bunch of nice ideas, although a bit over-engineered for my taste.

You (may) want to separate your style from your data.
How about an example:

... which is little bit more close to a real use case? :)
I agree, KnockoutJS is definitely an overkill.

Ok, got your point. =)
As far as I see, Transparency could match also to data-* attribute. I propose we follow the same convention and use data-bind attribute, like Knockout.js and Backbone.ModelBinding:

How does that sound like? Would you be interested in contributing the feature? =)

Contributing does not look too complicate... maybe you'll have this feature before the next week  :)

Crap, I finally start to need to learn CoffeeScript :)

There is one pull request from me pending. If you can merge that one there will be next one containing a patch for this issue =)

Thanks! I'll review it right away

I merged the related pull request to master. Thanks for the contribution!


Add Responsiveness[2 Xpt] Group task

Make the app responsive, creating both mobile and desktop versions.

completed


Nested case statements

In the sqlite3 source there is at least one example where case statements are nested. I'm sure this is possible due to the correct chain of gotos. But it's also valid in C and not in Go.
Here is an example:
case OP_ReopenIdx: {
  int nField;
  KeyInfo *pKeyInfo;
  int p2;
  int iDb;
  int wrFlag;
  Btree *pX;
  VdbeCursor *pCur;
  Db *pDb;

  assert( pOp->p5==0 || pOp->p5==OPFLAG_SEEKEQ );
  assert( pOp->p4type==P4_KEYINFO );
  pCur = p->apCsr[pOp->p1];
  if( pCur && pCur->pgnoRoot==(u32)pOp->p2 ){
    assert( pCur->iDb==pOp->p3 );      /* Guaranteed by the code generator */
    goto open_cursor_set_hints;
  }
  /* If the cursor is not currently open or is open on a different
  ** index, then fall through into OP_OpenRead to force a reopen */
case OP_OpenRead:
case OP_OpenWrite:

  assert( pOp->opcode==OP_OpenWrite || pOp->p5==0 || pOp->p5==OPFLAG_SEEKEQ );
  assert( p->bIsReader );
  assert( pOp->opcode==OP_OpenRead || pOp->opcode==OP_ReopenIdx
          || p->readOnly==0 );

  if( p->expired ){
    rc = SQLITE_ABORT_ROLLBACK;
    goto abort_due_to_error;
  }

Here is a smaller scale example:
switch (a) {
  case 1: {
    printf("a");
  case 2:
  case 3:
    printf("b");
  }
  case 4:
    printf("c");
}


DeprecationWarning: using_params is deprecated and will be removed in version 0.9.0

is it possible to fix this warning:
DeprecationWarning: using_params is deprecated and will be removed in version 0.9.0
    pagination_params = using_params(Params)

I will try to fix it, thanks for reporting.


Issue/8321 add api endpoint for scheduler self check

Description
closes https://github.com/inmanta/inmanta-core/issues/8321
Self Check:
Strike through any lines that are not applicable (~~line~~) then check the box

[x] Attached issue to pull request
[x] Changelog entry
[x] Type annotations are present
[x] Code is clear and sufficiently documented
[x] No (preventable) type errors (check using make mypy or make mypy-diff)
[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[ ] Correct, in line with design
[ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )
[ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see test-fixes for more info)

Processing this pull request

Merged into branches master in 921290c0ff8fee7fa24cbb602747c5b0526f873b


add create account functionality

This adds the create account endpoint

Code looks great, but I'd recommend deleting the extra newlines.


”Micăsasa” is listed in the drop-down menu

Description:
"Micăsasa" is listed in the drop-down menu alongside its corresponding county and commune, according to the law.
Precondition:
The website is up an running.

Step 1
Type "Micăsasa" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Micăsasa, SIBIU".


fix: DIA-1739: increase kafka input topic timeout

Increase input topic timeout to allow time for generating presigned urls.
Opting to increase this rather than decrease the batch size more, as a temporary solution.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 68.03%. Comparing base (dc54ace) to head (d5b75f4).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #280   +/-   ##
=======================================
  Coverage   68.03%   68.03%
=======================================
  Files          47       47
  Lines        2515     2515
=======================================
  Hits         1711     1711
  Misses        804      804

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Implement create test email address + find test email

Hi, it would be great to implement those two basic features in this official node client for Mailtrap:
1. Create test email addresses programmatically
With Ethereal Email, we can generate a test email account with nodemailer.createTestAccount(), cf. documentation
With Mailosaur, there is no setup required and we can send emails to<EMAIL_ADDRESS>cf. documentation.
With Mailtrap, how can we achieve that? The documentation lacks this information.
2. Find a test email programmatically
With Ethereal Email, we can search an inbox with imap, cf. code example
With Mailosaur, we can search an inbox with the node client, cf. documentation.
With Mailtrap, how can we achieve that? The documentation lacks this information.

Hi! The present version of this package (v3) doesn't implement the testing API yet. However, you can still use former version 2 of the package to retrieve test inboxes and messages.
Also the package doesn't implement inbox creation. However, creating an inbox is supported in our HTTP API. So, you can do it with a simple HTTP request. The API reference includes a JavaScript code sample.
The API response should contain everything you need to send mail, specifically the username and password.
And of course there is also support for deleting the inbox afterwards in the API.
The basic way to send mail to a MailTrap inbox is by directing it to our SMTP server with the inbox credentials. A designated email address for the inbox is available as a paid feature. You can check its availability on your plan by the email_username_enabled flag in the API response. In that case, the email_username and email_domain fields constitute the inbox email address.


[New Port Request] subhook

Library name: subhook
Library description: SubHook is a super-simple hooking library for C and C++ that works on Windows, Linux and macOS. It supports x86 only (32-bit and 64-bit).
Source repository URL: https://github.com/Zeex/subhook

If you wish to add this port in the future, you can reopen this issue, but we're closing it for now, consider making a pull request instead.


Update CONTRIBUTING.md

i stopped the work on Clearing, please change it to the equalizer extension i wrote thanks

We'd like to bring back that Clearing example eventually, but we can talk about that later. :)


BUG in responsiveness

The hero section, contact us section is not responsive to all the screens. kindly assign me this issue to resolve with label as gssoc @apu52.

Hi @Pardume-Sharma
This is a duplicate issue of #328 , please have a look at available issues first before raising any issue.
Regards
Project Mentor


Feature request: Validation support without having to add an extra hidden input

It would be nice if we could add basic form attributes to the actual input inside the directive by copying them from the parent element to the actual rendered input. It'll save adding our own inputs for validation.
In general in would be great to have better validation support.

+1

+1


[FLINK-28628][hive] Introduce operation execution plugin

What is the purpose of the change
Introduce an operation execution plugin make exteranl dialect can custom implementation for some operations.
Brief change log

Introduce an interface OperationExternalExecutor.java
Before use Flink's internal operation execution, try to call method OperationExternalExecutor#executeOperation to delegate external implementation.
Rename ParserFactory to DialectFactory for DialectFactory  will also to createOperatorExternalExecutor.

Verifying this change
UT
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency):  no
The public API, i.e., is any changed class annotated with @Public(Evolving):  no
The serializers:  no
The runtime per-record code paths (performance sensitive):  no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper:  no
The S3 file system connector:  no

Documentation

Does this pull request introduce a new feature?  no
If yes, how is the feature documented? N/A

@flinkbot run azure

Looks good to me. But please fix the compile problem.
PS: maybe you didn't configure the automatic code format in IDE. See https://nightlies.apache.org/flink/flink-docs-master/docs/flinkdev/ide_setup/#code-formatting

TableEnvironmentTest.testManagedTable are failed. Please append commits to fix the test.

@wuchong The CI is passed now. Could you please help merge so that I can move on the other issues.


can't get Sass support to work with Sapper and Rollup

When I try to use a Sass variable inside a <style lang="scss">, I get
Undefined variable: "$green".

I have done these installs:
npm install -D svelte-preprocess
npm install -D node-sass
npm install -D typescript

Here is what I have in rollup.config.js. Does anyone see what I'm missing?
import sveltePreprocess from 'svelte-preprocess';
...

const preprocess = sveltePreprocess({
  sass: true,
  typescript: true
});

export default {
  client: {
    ...
    plugins: [
      ...
      svelte({
        ...
        preprocess
      }),
      ...
  },

  server: {
    ...
    plugins: [
      ...
      svelte({
        ...
        preprocess
      }),
      ...
    ],
    ...
  },
  ...
  }
};

Hey, @mvolkmann! Where the $green variable is defined?

Sorry, my mistake. That should have been $color which has a value of green.


Server: exit in case of db connection failure

Iglu Server hangs on the air in case of invalid db connection credentials, which makes the server look like running when actually it doesn't.
Server needs to fail with a user friendly error message instead of error's stack trace.

Makes sense. Also it would be nice to exit immediately, not waiting for first HTTP request.

Server checks if apikey and schemas tables exist in the beginning. It'll exit there if db credentials are invalid.


Status is not clearing when going to a line after the tab group

Status is not clearing when going to a line after the tab group

fixed in #27


Add docker compose support

Note that there are some changes in configs. I'm not sure whether we should keep those as default.

Note to self: once this is merged, the only real way to use cloogle is using docker. So we can also:

Merge the clm branch.
Check with the Clean team if the gitlab clean-compiler will be up to date from now on and add it as a submodule instead of using svn in the makefile.
Add clean-platform as a submodule, use levenshtein from Data.List and remove CleanLevenshtein.


[jest-circus] beforeEach/afterEach fails test depending on describe block scope

🐛 Bug Report
Migrating to jest-circus I found a bug where moving a helper containing some beforeEach/afterEach setup code for jsdom causes failures when nested inside the describe block. Moving the helper outside the describe block causes the tests to pass.
Specifically it's something about the afterEach code in the helper that is dependent on the describe block scope but it's not clear to me why that is

To Reproduce
Steps to reproduce the behavior:
See readme in repo below
Expected behavior
beforeEach/afterEach should not rely on describe block scope

Link to repl or repo (highly encouraged)
Instructions in readme: https://github.com/Whoaa512/jest-circus-each-bug

envinfo

  System:
    OS: macOS 11.4
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  Binaries:
    Node: 12.16.2 - /var/folders/rq/vyt5hmfn61z4b5yv8vdykdfm0000gn/T/fnm-shell-6486320/bin/node
    Yarn: 1.22.4 - ~/.yarn/bin/yarn
    npm: 6.14.4 - /var/folders/rq/vyt5hmfn61z4b5yv8vdykdfm0000gn/T/fnm-shell-6486320/bin/npm
  npmPackages:
    jest: ^26 => 26.6.3

Update: The root of this failure is actually due to react trying to access the global.window after it's cleaned up in my afterEach.
I believe this bug actually lies in enzyme's react 16 adapter due to how to tries to get references to the Lazy tags.
I was able to workaround by wrapping the contents of my afterEach in a setTimeout so the cleanup happens after the
Closing since this behavior was only revealed upon switching to jest-circus and I don't think is actually related to jest at all.


Mutli-threaded access to the connection pool problems

Hi Brett
I've been using HikariCP for a few months now, but recently have made my application pretty heavily multi-threaded. I've been having trouble with my connections getting closed when I don't expect them to be closed. I've been debugging this for a couple of days, and am left assuming that either there is some misunderstanding on my part of how this should work, or that something is wrong in the connection pool.
Basically my app receives numerous requests and each is handled on its own thread. I made each thread start off by getting a new connection and then calling the functions which interact with the DB. These functions can query and update the DB from this connection, and some operations may create a transaction. After the work is done I expect the connection to be released back to the pool.
When I started I had max active connections set to 32 and it generally worked, but occasionally saw some errors where it ran out of connections. While debugging this I kept reducing the max connections in order to make the problem happen more quickly. At this point I'm down to max of 2. It appears that either one of my worker threads is getting a connection that is already closed or that the connection is being closed before the worker has finished (maybe means 2 workers were handed references to the same connection).
My application can theoretically spawn hundreds of worker threads. I was expecting that each worker would block if there are no idle threads in the pool, and once one became available the next worker would awaken and perform its tasks. When the app first starts it usually spawns about 10 workers immediately within a second or so. In the current scenario the app workers complete 2 or 3 tasks before the SQLException connection is closed error appears.
Have  I made some mistake in what I can expect from HikariCP regarding asking for multiple connections simultaneously? Or when they'll be closed, or how my threads will block when there are no idle connections available?
Thanks, Derek

Your assumptions sound correct. If you had a leak you would be running out of connections. Since you are seeing some connections close early it sounds like connections are being shared across threads unintentionally. Do you have debug logging turned on? Are you using anything like CompleteableFuture or any libraries that might be using threads behind the scenes? If I'm not mistaken some of the CompleteableFuture apis actually kick off back to the thread pool under the hood which may cause issues with connections.
If there is any sample code you can share or a very minimal example that reproduces the issue it might be easier to track down.

Multithreaded access to Connections was deprecated in JDBC and is not supported by HikariCP either.  It definitely sounds like multiple threads are interacting with a single Connection instance at once.
HikariCP is fast enough that you can obtain a Connection, execute SQL, and then return it back to the pool many times in the course of a request.
It is a Best Practice to only hold Connections in local variables, preferably in a try-with-resources block, or possibly passed on the stack, but never in a class member field.  If you follow that pattern it is virtually impossible to leak a Connection or accidentally share across threads.
Not that it should matter, but I'm curious, are you running HikariCP as a fixed size pool, or are you specifying minimumIdle?

I didn't include any source code 'cause its all written in Clojure and I didn't expect anyone to be able to deal with that.
There are a couple of libraries involved in the connection process and one of them may be allocating extra connections that I'm not aware of. And if that is happening while one of my threads is executing a task then that would explain why I'm running out of connections and all of my tasks are stopping. I don't have Hikari debug logging turned on. I guess I need to figure out how to do that.
Brett, I'm not intentionally trying to share connections among different threads. I've always thought that was a bad idea. However I am requesting new connections on mulitple threads, hopefully there is no problem with doing that. I guess that is the main thing I'm checking with you on.
If my connections are being shared among different threads, then I have no idea how that is happening. Its been a frustrating few days trying to get a handle on where things are going wrong.

The best way I can think to debug this is using a logging library that logs the thread name. Keep the thread pool with a higher number of threads and sprinkle log statements throughout the logic. Try to run one operation at a time (possibly a few) and see if the loggers log the same thread name consistently or if the thread names change between queries.  A bit primitive but might help.
If you are composing / mapping any Future type objects make sure that code executes on the same thread and doesn't return a new Future that could execute on a different thread. That could cause this issue.

@dealy663 HikariCP's DataSource is threadsafe with respect to getConnection() (among other methods).

Thanks for the tips guys, I think I got everything working now.

@dealy663 what was the issue, I think I may experience the same issue now, I am running jetty server with max 50 threads(by default) and after few hours I got spammed with errors like
clojure.java.jdbc/query                   jdbc.clj:  958
                                                clojure.java.jdbc/db-query-with-resultset                   jdbc.clj:  919
                                                      clojure.java.jdbc/prepare-statement                   jdbc.clj:  542
                            com.zaxxer.hikari.pool.HikariProxyConnection.prepareStatement  HikariProxyConnection.java
                                  com.zaxxer.hikari.pool.ProxyConnection.prepareStatement       ProxyConnection.java:  310
                                                   com.sun.proxy.$Proxy2.prepareStatement
                         com.zaxxer.hikari.pool.ProxyConnection$ClosedConnection$1.invoke       ProxyConnection.java:  469
java.sql.SQLException: Connection is closed
    errorCode: 0

It sounds like you are holding a connection out of the pool for a long time.  Turn on DEBUG logging and enable the leakDetectionThreshold.

@brettwooldridge Thanks, just FYI I was able to fix this by using with-db-connection fn wrappers
(jdbc/with-db-connection [conn {:datasource datasource}]
    (let [rows (jdbc/query conn "SELECT 0")]
      (println rows)))


Sorry, but it's a bit unclear to me how your code works :)
On line 1 of you example, you are passing the comment param to the @ticket instance variable, but on the last line, you are calling the update method on the @zendesk_ticket instance variable...?
Could you please double check you are calling update on the right variable?

Oh sorry for the confusion aha! Let me post the whole code
Well I see the gem uses faraday right so we can't attach files from string of content. We have to use File or Tempfile?
Trying to attach a file to a comment on an existing ticket
def update
      respond_to do |format|
        format.js do
          # don't save over comment, just use the field for validation
          @ticket.comment = params[:comment]
          @ticket.comment.uploads << File.open("test.txt")
          @zendesk_ticket.update(ticket_update_params)
          if @ticket.valid? && @zendesk_ticket.save! && @ticket.update(updated_at: Time.now)
            flash.now[:success] = "Your help request was successfully updated.\n
            Your support ticket number is<EMAIL_ADDRESS>            You should receive a confirmation email shortly.\n\n
            Thank you!"
          else
            flash.now[:error] = if @ticket.errors.present?
              @ticket.errors.full_messages.join "\n"
            else
              'There was a problem sending out your request.'
            end
            render action: :edit
          end
        end
      end
    end

def ticket_update_params
      {
        comment: {
          body: params[:comment],
          author_id: zendesk_user.id
        }
      }
    end

private

def get_ticket
      @zendesk_ticket = ZendeskAPI::Ticket.find!(
        zen_client,
        id: params[:id]
      )
      @ticket = ZenSupport::Ticket.find_by!(zendesk_id: params[:id])
    end

Well I see the gem uses faraday right so we can't attach files from string of content. We have to use File or Tempfile?

Yeah, correct! You need to use the path or a File instance. See: https://github.com/zendesk/zendesk_api_client_rb#attaching-files
However, as far as I can see, you are calling the method upload on the @ticket instance variable... but the @ticket var is a ZenSupport::Ticket instance, not a ZendeskAPI::Ticket? So I think you are calling upload on the wrong instance

Hey @nogates
That worked perfectly. Everything went through but the attachment isn't showing up in zendesk?
Started PUT "/tickets/176" for <IP_ADDRESS> at 2019-12-11 20:15:44 -0800
Processing by ZenSupport::TicketsController#update as JS
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"GtYJjXyk4/4/0he728LfU/EcJ2qdXhpNwvIH4LHhR1hj+SSZEtC33eCwP5HCF59245deOAaiZsK7ksuCZKPLPg==", "comment"=>"dummy pdf", "commit"=>"Submit", "remotipart_submitted"=>"true", "X-Requested-With"=>"IFrame", "X-Http-Accept"=>"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01", "ticket"=>{"file"=>#<ActionDispatch::Http::UploadedFile:0x00007fc9d72ec6f8 @tempfile=#<Tempfile:/var/folders/44/ft_zkkq11m93z2vxvq01sg2r0000gn/T/RackMultipart20191211-38145-12zruiy.pdf>, @original_filename="dummy.pdf", @content_type="application/pdf", @headers="Content-Disposition: form-data; name=\"ticket[file]\"; filename=\"dummy.pdf\"\r\nContent-Type: application/pdf\r\n">}, "id"=>"176"}
  User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 24]]
  ZenSupport::Ticket Load (0.3ms)  SELECT  "zen_support_tickets".* FROM "zen_support_tickets" WHERE "zen_support_tickets"."zendesk_id" = $1 LIMIT 1  [["zendesk_id", 176]]
  UserReference Load (0.2ms)  SELECT  "user_references".* FROM "user_references" WHERE "user_references"."id" = $1 LIMIT 1  [["id", 4]]
  DataEncryptionKey Load (0.4ms)  SELECT  "data_encryption_keys".* FROM "data_encryption_keys" WHERE "data_encryption_keys"."id" = $1 LIMIT 1  [["id", 1]]
   (0.3ms)  BEGIN
  SQL (0.3ms)  UPDATE "zen_support_tickets" SET "updated_at" = $1 WHERE "zen_support_tickets"."id" = $2  [["updated_at", "2019-12-12 04:15:48.099277"], ["id", 2]]
   (0.4ms)  COMMIT
  Rendered layouts/_standard_flash.html.haml (5.5ms)
  Rendered /Users/darrenbooker/Desktop/zen-support/app/views/zen_support/tickets/update.js.haml (9.7ms)
Completed 200 OK in 3868ms (Views: 72.5ms | ActiveRecord: 2.3ms)

@dbbooke12 You need to pass the actual path of the file or an instance of the file to the uploads method... but if you are doing something like
    File.open(uploaded_io.original_filename, 'wb') do |file|
       @zendesk-ticket.comment.uploads << file.write(uploaded_io.read)
    end

That's not gonna work, because you are passing the output of file.write(uploaded_io.read) which is the number of bits that were written into the filesystem
You would need to do pass the actual path:
@zendesk_ticket.comment.uploads << uploaded_io.original_filename

Passing in the Path just like
@zendesk_ticket.comment.uploads << uploaded_io.original_filename
does throw any errors but still not showing up
In the logs it's showing
"file"=>#<ActionDispatch::Http::UploadedFile:0x00007fc9d72ec6f8 @tempfile=#<Tempfile:/var/folders/44/ft_zkkq11m93z2vxvq01sg2r0000gn/T/RackMultipart20191211-38145-12zruiy.pdf>

@dbbooke12 You need to work out the actual path of the file. Maybe the original_filename only returns the actual filename? I don't know what type of object he uploaded_io is, but I guess it will have a method that you can use to return the whole path?

Closing as inactive. I assume the user found a solution applying the latest suggestion.


Docker stats will wait, with no output when called on a non-running container

@crosbymichael I presume this was intentional?
Signed-off-by: Sven Dowideit<EMAIL_ADDRESS>

@fredlf @jamtur01

Maybe we should prepopulate table with zeroes always first?

@LK4D4 prepopulate should be a better idea.


Crouton kde install screen object distortion and missing sections on Samsung Chromebook

Please paste the output of the following command here: sudo edit-chroot -all

chronos@localhost / $ sudo edit-chroot -all
name: xenial
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/xenial...
crouton: version 1-20200428114634~master:67dc8d77
release: xenial
architecture: amd64
xmethod: xorg
targets: kde
host: version 13020.87.0 (Official Build) stable-channel winky
kernel: Linux localhost 4.4.217-17435-gfa2b7567ea63 #1 SMP PREEMPT Mon Jun 22 00:54:31 PDT 2020 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...
chronos@localhost / $

Please describe your issue:
I've had kde running for a few years now on a Samsung XE500C12 Chromebook. (16G) A few days ago the desktop screen for KDE had all sorts of distortions. Hovering the cursor over the taskbar causes the bar to distort and break up. If I select the drop-down menus, they all break into pieces and only partially show the menus.
I completely did a powerwash and started over, with the same results. I have a suspicion that it has something to do with the video drivers for the chromebook. I installed xcfe and it looks clean, although I didn't spend much time with it. I've attached a screenshot, or at least I hope I was successful. It shows the menu opened on the left, where it is only partially open.
Here is the output of the shell dialog when the kde is started. There seem to be a number of screen related errors that may mean something. I have no expertise in this area, so can't be certain.  Please inform if there is something else I can include.
crosh> shell
chronos@localhost / $ sudo startkde
Entering /mnt/stateful_partition/crouton/chroots/xenial...

X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-128-generic x86_64 Ubuntu
Current Operating System: Linux localhost 4.4.217-17435-gfa2b7567ea63 #1 SMP PREEMPT Mon Jun 22 00:54:31 PDT 2020 x86_64
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 4077568 verity payload=PARTUUID=b445bdd3-b6cc-d840-a73b-1158c4a582b8/PARTNROFF=1 hashtree=PARTUUID=b445bdd3-b6cc-d840-a73b-1158c4a582b8/PARTNROFF=1 hashstart=4077568 alg=sha256 root_hexdigest=a3dcdcbb8a61bd358aa4e0f7a0f132b2a1e483030e5cff69301ba67e398d195f salt=ec7ece87e860ce397f368cd229f54c82e627bc2a247d62bb82e6e671ae1cb734" noinitrd vt.global_cursor_default=0 kern_guid=b445bdd3-b6cc-d840-a73b-1158c4a582b8 add_efi_memmap boot=local noresume noswap i915.modeset=1 nmi_watchdog=panic,lapic
Build Date: 10 August 2018  09:33:05AM
xorg-server 2:1.18.4-0ubuntu0.8 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.33.6
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/Xorg.crouton.1.log", Time: Sat Jul  4 23:43:34 2020
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.chromium.LibCrosService was not provided by any .service files
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
Error executing command as another user: Not authorized

This incident has been reported.
crouton: version 1-20200428114634~master:67dc8d77
release: xenial
architecture: amd64
xmethod: xorg
targets: kde
host: version 13020.87.0 (Official Build) stable-channel winky
kernel: Linux localhost 4.4.217-17435-gfa2b7567ea63 #1 SMP PREEMPT Mon Jun 22 00:54:31 PDT 2020 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
xrandr: Output eDP1 is not disconnected but has no modes
xrandr: Output DP1 is not disconnected but has no modes
xrandr: Output HDMI1 is not disconnected but has no modes
xrandr: Output VGA1 is not disconnected but has no modes
Kicking xrandr again
xrandr: Output eDP1 is not disconnected but has no modes
xrandr: Output DP1 is not disconnected but has no modes
xrandr: Output HDMI1 is not disconnected but has no modes
xrandr: Output VGA1 is not disconnected but has no modes
Kicking xrandr again
Loading stage  "initial" 160
startkde: Starting up...
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
kdeinit5: preparing to launch 'libkdeinit5_klauncher'
kdeinit5: Launched KLauncher, pid = 22098, result = 0
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
kdeinit5: opened connection to :1
kdeinit5: preparing to launch 'libkdeinit5_kded5'
kdeinit5: Launched KDED, pid = 22111 result = 0
kdeinit5: preparing to launch 'libkdeinit5_kcminit_startup'
kdeinit5: Launched 'kcminit_startup', pid = 22112 result = 0
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
kdeinit5: Got SETENV 'KDE_MULTIHEAD=false' from launcher.
Initializing  "kcm_access" :  "kcminit_access"
kdeinit5: Got EXEC_NEW '/usr/bin/kaccess' from launcher.
kdeinit5: preparing to launch '/usr/bin/kaccess'
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/libexec/kf5/kconf_update' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/libexec/kf5/kconf_update'
Initializing  "kcm_style" :  "kcminit_style"
kdeinit5: PID 22119 terminated.
QCoreApplication::arguments: Please instantiate the QApplication object first
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kdeinit5: PID 22118 terminated.
kdeinit5: Got SETENV 'GTK_RC_FILES=/etc/gtk/gtkrc:/home/k1ypp/.gtkrc:/home/k1ypp/.config/gtkrc' from launcher.
kdeinit5: Got SETENV 'GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/k1ypp/.gtkrc-2.0:/home/k1ypp/.config/gtkrc-2.0' from launcher.
Initializing  "kded_touchpad" :  "kcminit_touchpad"
Width:  1877  height:  1213
Approx. resX:  20  resY:  24
Touchpad resolution: x:  20  y:  20
Final resolution x: 20  y: 20
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
Initializing  "kcm_input" :  "kcminit_mouse"
kdeinit5: PID 22112 terminated.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
kdeinit5: Got KWRAPPER '/usr/bin/ksmserver' from wrapper.
kdeinit5: preparing to launch '/usr/bin/ksmserver'
QDBusConnection: name 'org.freedesktop.UDisks2' had owner '' but we thought it was ':1.10'
QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.7'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
Qt: Session management error: networkIdsList argument is NULL
detected kglobalaccel restarting, re-registering all shortcut keys
Configuring Lock Action
XSync seems available and ready
XSync Inited
Supported, init completed
Created alarm 20971521
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
ksmserver: "/tmp/runtime-k1ypp/KSMserver"
kdeinit5: Got SETENV 'SESSION_MANAGER=local/localhost:@/tmp/.ICE-unix/22139,unix/localhost:/tmp/.ICE-unix/22139' from launcher.
ksmserver: KSMServer: SetAProc_loc: conn  0 , prot= local , file= @/tmp/.ICE-unix/22139
ksmserver: KSMServer: SetAProc_loc: conn  1 , prot= unix , file= /tmp/.ICE-unix/22139
ksmserver: KSMServer::restoreSession  "saved at previous logout"
kdeinit5: Got EXEC_NEW '/usr/bin/baloo_file' from launcher.
kdeinit5: preparing to launch '/usr/bin/baloo_file'
kdeinit5: Got EXEC_NEW '/usr/bin/krunner' from launcher.
kdeinit5: preparing to launch '/usr/bin/krunner'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
org.kde.baloo: "/home/k1ypp"
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
kdeinit5: Got EXEC_NEW '/usr/bin/plasmashell' from launcher.
kdeinit5: preparing to launch '/usr/bin/plasmashell'
completeShutdownOrCheckpoint called
completeShutdownOrCheckpoint called
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
completeShutdownOrCheckpoint called
kdeinit5: Got EXEC_NEW '/usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1' from launcher.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
OpenGL vendor string:                   Intel Open Source Technology Center
OpenGL renderer string:                 Mesa DRI Intel(R) Bay Trail
OpenGL version string:                  3.0 Mesa 18.0.5
OpenGL shading language version string: 1.30
Driver:                                 Intel
GPU class:                              Unknown
OpenGL version:                         3.0
GLSL version:                           1.30
Mesa version:                           18.0.5
X server version:                       1.18.4
Linux kernel version:                   4.4.217
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
New PolkitAgentListener  0x24b1720
Adding new listener  PolkitQt1::Agent::Listener(0x24cb4b0) for  0x24b1720
Listener online
"Cannot create unix session: No session for pid 22163"

** (process:22163): CRITICAL **: polkit_agent_listener_register_with_options: assertion 'POLKIT_IS_SUBJECT (subject)' failed
"Cannot register authentication agent!"
Authentication agent result: false
Couldn't register listener!

(process:22163): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Invalid service name "/org/kde/polkit-kde-authentication-agent-1" using: "/org/kde/polkitkdeauthenticationagent1"
kdeinit5: Got EXEC_NEW '/usr/bin/xembedsniproxy' from launcher.
kdeinit5: preparing to launch '/usr/bin/xembedsniproxy'
ksmserver: Autostart 0 done
kcminit not running? If we are running with mobile profile or in another platform other than X11 this is normal.
ksmserver: Kcminit phase 1 done
kdeinit5: Got EXEC_NEW '/usr/bin/start-pulseaudio-x11' from launcher.
kdeinit5: preparing to launch '/usr/bin/start-pulseaudio-x11'
completeShutdownOrCheckpoint called
Already running
ksmserver: Autostart 1 done
kdeinit5: Got EXEC_NEW '/usr/bin/xbindkeys_autostart' from launcher.
kdeinit5: preparing to launch '/usr/bin/xbindkeys_autostart'
/usr/bin/xbindkeys_autostart: line 24: CONF: unbound variable
kdeinit5: PID 22182 terminated.
QXcbConnection: XCB error: 3 (BadWindow), sequence: 736, resource id: 41943043, major code: 18 (ChangeProperty), minor code: 0
Trying to convert empty KLocalizedString to QString.
Trying to convert empty KLocalizedString to QString.
Trying to convert empty KLocalizedString to QString.
Failed to open layout memory xml file for reading "/home/k1ypp/.local/share/kded5/keyboard/session/layout_memory.xml" error: 5
QMetaProperty::read: Unable to handle unregistered datatype 'KWayland::Server::SurfaceInterface*' for property 'KWin::Toplevel::surface'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
org.kde.plasma: unversioned plugin detected, may result in instability
Setting the name of  0x1f4cb90  to  "org.kde.ActivityManager.ActivityTemplates"
Setting the name of  0x1f49ab0  to  "org.kde.ActivityManager.RunApplication"
kf5.kded: found kded module "touchpad" by prepending 'kded_' to the library path, please fix your metadata.
Setting the name of  0x1f43f80  to  "org.kde.ActivityManager.Resources.Scoring"
Creating directory:  "/home/k1ypp/.local/share/kactivitymanagerd/resources/"
KActivities: Database connection:  "kactivities_db_resources_135029606512832_readwrite"
    query_only:          QVariant(qlonglong, 0)
    journal_mode:        QVariant(QString, "wal")
    wal_autocheckpoint:  QVariant(qlonglong, 100)
    synchronous:         QVariant(qlonglong, 1)
Width:  1877  height:  1213
Approx. resX:  20  resY:  24
Touchpad resolution: x:  20  y:  20
Final resolution x: 20  y: 20
org.kde.plasma: unversioned plugin detected, may result in instability
ksmserver: Starting notification thread
ksmserver: Kcminit phase 2 done
ksmserver: Autostart 2 done
kde.xembedsniproxy: starting
Service started, version: 6.2.0
Failure: Module initialization failed
kdeinit5: PID 22177 terminated.
org.kde.plasma: unversioned plugin detected, may result in instability
kde.xembedsniproxy: Manager selection claimed
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
Could not resolve property : radialGradient4782
Could not resolve property : radialGradient4857
Could not resolve property : radialGradient4883
Could not resolve property : radialGradient4885
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:444:5: QML Text: Cannot anchor to a null item.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Registering "org.kde.StatusNotifierHost-22151" as system tray
Known plasmoid ids: QHash(("org.kde.plasma.clipboard", 13)("org.kde.plasma.devicenotifier", 14)("org.kde.plasma.notifications", 15))
org.kde.plasma: unversioned plugin detected, may result in instability
<Unknown File>: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
<Unknown File>: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
<Unknown File>: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
<Unknown File>: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
log_klipper: Failed to load history resource. Clipboard history cannot be read. :  History file does not exist
file:///usr/share/plasma/plasmoids/org.kde.plasma.systemtray/contents/ui/TaskDelegate.qml:156: TypeError: Cannot read property 'taskItem' of undefined
org.kde.plasma: unversioned plugin detected, may result in instability
<Unknown File>: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
<Unknown File>: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
<Unknown File>: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
<Unknown File>: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.systemtray/contents/ui/TaskDelegate.qml:141:19: Unable to assign [undefined] to QString
file:///usr/share/plasma/plasmoids/org.kde.plasma.systemtray/contents/ui/TaskDelegate.qml:99:18: Unable to assign [undefined] to bool
file:///usr/share/plasma/plasmoids/org.kde.plasma.systemtray/contents/ui/TaskDelegate.qml:91:18: Unable to assign [undefined] to bool
file:///usr/share/plasma/plasmoids/org.kde.plasma.systemtray/contents/ui/TaskDelegate.qml:64:30: Unable to assign [undefined] to int
file:///usr/share/plasma/plasmoids/org.kde.plasma.systemtray/contents/ui/TaskDelegate.qml:156: TypeError: Cannot read property 'taskItem' of undefined
file:///usr/share/plasma/plasmoids/org.kde.plasma.devicenotifier/contents/ui/devicenotifier.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.devicenotifier/contents/ui/devicenotifier.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.devicenotifier/contents/ui/devicenotifier.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.devicenotifier/contents/ui/devicenotifier.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
<Unknown File>: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
<Unknown File>: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
<Unknown File>: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
<Unknown File>: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
Notifications service registered
XSync seems available and ready
XSync Inited
Supported, init completed
file:///usr/share/plasma/plasmoids/org.kde.plasma.systemtray/contents/ui/TaskDelegate.qml:156: TypeError: Cannot read property 'taskItem' of undefined
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
Plasma Shell startup completed
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1588, resource id: 4194323, major code: 18 (ChangeProperty), minor code: 0
requesting unexisting screen 1
requesting unexisting screen 2
requesting unexisting screen 3
requesting unexisting screen 4
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
trying to show an empty dialog
(II) AIGLX: Suspending AIGLX clients for VT switch
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.chromium.LibCrosService was not provided by any .service files
nchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
Plasma Shell startup completed
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1588, resource id: 4194323, major code: 18 (ChangeProperty), minor code: 0
requesting unexisting screen 1
requesting unexisting screen 2
requesting unexisting screen 3
requesting unexisting screen 4
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
trying to show an empty dialog
(II) AIGLX: Suspending AIGLX clients for VT switch
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.chromium.LibCrosService was not provided by any .service filesnchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
Plasma Shell startup completed
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1588, resource id: 4194323, major code: 18 (ChangeProperty), minor code: 0
requesting unexisting screen 1
requesting unexisting screen 2
requesting unexisting screen 3
requesting unexisting screen 4
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
trying to show an empty dialog
(II) AIGLX: Suspending AIGLX clients for VT switch
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.chromium.LibCrosService was not provided by any .service filesnchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
Plasma Shell startup completed
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1588, resource id: 4194323, major code: 18 (ChangeProperty), minor code: 0
requesting unexisting screen 1
requesting unexisting screen 2
requesting unexisting screen 3
requesting unexisting screen 4
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
trying to sError org.freedesktop.DBus.Error.ServiceUnknown: The name org.chromium.LibCrosService was not provided by any .service files
QXcbConnection: XCB error: 3 (BadWindow), sequence: 3423, resource id: 4194305, major code: 3 (GetWindowAttributes), minor code: 0
file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Button.qml:96: TypeError: Cannot read property of null
file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Button.qml:96: TypeError: Cannot read property of null
Couldn't find node arrow-down. Skipping rendering.
Couldn't find node arrow-up. Skipping rendering.
Couldn't find node arrow-right. Skipping rendering.
Couldn't find node arrow-left. Skipping rendering.
KActivities: Database connection:  "kactivities_db_resources_136676101003456_readonly"
    query_only:          QVariant(qlonglong, 1)
    journal_mode:        QVariant(QString, "wal")
    wal_autocheckpoint:  QVariant(qlonglong, 100)
    synchronous:         QVariant(qlonglong, 0)
file:///usr/share/plasma/packages/org.kde.desktoptoolbox/contents/ui/ToolBoxRoot.qml:93:23: QML ToolBoxItem: Binding loop detected for property "height"
Shutdown called with confirm  -1  type  -1  and mode  -1
After modifications confirm is  -1  type is  0  and mode  3
libkwinglutils: Failed to compile fragment shader:
"0:6(12): error: no matching function for call to `smoothstep(int, float, float)'; candidates are:\n0:6(12): error:    float smoothstep(float, float, float)\n0:6(12): error:    vec2 smoothstep(float, float, vec2)\n0:6(12): error:    vec3 smoothstep(float, float, vec3)\n0:6(12): error:    vec4 smoothstep(float, float, vec4)\n0:6(12): error:    vec2 smoothstep(vec2, vec2, vec2)\n0:6(12): error:    vec3 smoothstep(vec3, vec3, vec3)\n0:6(12): error:    vec4 smoothstep(vec4, vec4, vec4)\n0:7(37): warning: `d' used uninitialized\n\x00"
saveSession is  true
ksmserver: Saving legacy session apps
ksmserver: Done saving  0  legacy session apps
clients should be empty,  false
completeShutdownOrCheckpoint called
completeShutdownOrCheckpoint called
completeShutdownOrCheckpoint called
QXcbConnection: XCB error: 3 (BadWindow), sequence: 8052, resource id: 37748751, major code: 15 (QueryTree), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 8071, resource id: 37748765, major code: 15 (QueryTree), minor code: 0
completeShutdownOrCheckpoint called
completeShutdownOrCheckpoint called
completeShutdownOrCheckpoint called
completeShutdownOrCheckpoint called
completeShutdownOrCheckpoint called
completeShutdownOrCheckpoint called
state is  7
ksmserver: Starting killing clients
ksmserver: completeShutdown: client  "/usr/bin/krunner" ( 1014cd7d2d4000159392062300000221390000 )
ksmserver: completeShutdown: client  "kwinsmhelper" ( 1014cd7d2d4000159392062300000221390002 )
ksmserver: completeShutdown: client  "/usr/bin/plasmashell" ( 1014cd7d2d4000159392062300000221390004 )
ksmserver: completeShutdown: client  "/usr/bin/kactivitymanagerd" ( 1014cd7d2d4000159392062400000221390005 )
ksmserver: completeShutdown: client  "/usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1" ( 1014cd7d2d4000159392062400000221390006 )
ksmserver: completeShutdown: client  "/usr/bin/xembedsniproxy" ( 1014cd7d2d4000159392062500000221390008 )
ksmserver: completeShutdown: client  "requestshutdownhelper" ( 1014cd7d2d4000159392089000000221390009 )
ksmserver:  We killed all clients. We have now clients.count()= 8

ksmserver: KSMServer::completeKilling clients.count()= 8

kde.xembedsniproxy: closing
ksmserver: KSMServer::completeKilling clients.count()= 7

Cleaning up...
Destroying listener
ksmserver: KSMServer::completeKilling clients.count()= 6

ksmserver: KSMServer::completeKilling clients.count()= 5

Removing listener  PolkitQt1::Agent::Listener(0x24cb4b0)
QXcbConnection: XCB error: 3 (BadWindow), sequence: 8516, resource id: 46137349, major code: 18 (ChangeProperty), minor code: 0
ksmserver: KSMServer::completeKilling clients.count()= 4

QXcbConnection: XCB error: 3 (BadWindow), sequence: 8520, resource id: 39845893, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 8524, resource id: 44040196, major code: 18 (ChangeProperty), minor code: 0
kdeinit5: PID 22175 terminated.
Closing SQL connection:  "kactivities_db_resources_135029606512832_readwrite"
kdeinit5: PID 22163 terminated.
ksmserver: KSMServer::completeKilling clients.count()= 3

QXcbConnection: XCB error: 3 (BadWindow), sequence: 8528, resource id: 33554446, major code: 18 (ChangeProperty), minor code: 0
Service  "org.kde.StatusNotifierHost-22151" unregistered
kdeinit5: PID 22145 terminated.
requesting unexisting screen 0
requesting unexisting screen 0
requesting unexisting screen 0
requesting unexisting screen 0
ksmserver: KSMServer::completeKilling clients.count()= 2

ksmserver: KSMServer::completeKilling clients.count()= 1

ksmserver: Starting killing WM
ksmserver: killWM: client  "kwin_x11" ( 1014cd7d2d4000159392062300000221390001 )
ksmserver: KSMServer::completeKillingWM clients.count()= 1

ksmserver: KSMServer::completeKillingWM clients.count()= 1

ksmserver: KSMServer::completeKillingWM clients.count()= 0

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
kdeinit5: PID 22139 terminated.
/usr/bin/startkde: 1: /usr/bin/startkde: kreadconfig5: not found
startkde: Shutting down...
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-k1ypp'
kdeinit5: terminate KDE.
klauncher: Exiting on signal 1
QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
startkde: Done.
Running exit commands...
/usr/bin/xinit: connection to X server lost

waiting for X server to shut down Hangup
The X11 connection broke: I/O error (code 1)
X connection to :1 broken (explicit kill or server shutdown).
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.chromium.LibCrosService was not provided by any .service files
(II) Server terminated successfully (0). Closing log file.

Unmounting /mnt/stateful_partition/crouton/chroots/xenial...
chronos@localhost / $ nchor to an item that isn't a parent or sibling.
> file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
bash: nchor: command not found
chronos@localhost / $ Plasma Shell startup completed
ibash: Plasma: command not found
chronos@localhost / $ file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
> file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
chor to anbash: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml:: No such file or directory
chronos@localhost / $ file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
> file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.
bash: file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml:: No such file or directory
chronos@localhost / $ QXcbConnection: XCB error: 3 (BadWindow), sequence: 1588, resource id: 4194323, major code: 18 (ChangeProperty), minor code: 0
bash: syntax error near unexpected token `('
chronos@localhost / $ requesting unexisting screen 1
bash: requesting: command not found
chronos@localhost / $ requesting unexisting screen 2
bash: requesting: command not found
chronos@localhost / $ requesting unexisting screen 3
bash: requesting: command not found
chronos@localhost / $ requesting unexisting screen 4
bash: requesting: command not found
chronos@localhost / $ Both point size and pixel size set. Using pixel size.
(ChangePropertybash: Both: command not found
chronos@localhost / $ Both point size and pixel size set. Using pixel size.
bash: Both: command not found
chronos@localhost / $ trying to show an empty dialog
bash: trying: command not found
chronos@localhost / $ (II) AIGLX: Suspending AIGLX clients for VT switch
bash: syntax error near unexpected token `AIGLX:'
chronos@localhost / $ Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.chromium.LibCrosService was not provided by any .service filesnchor to an item that isn't a parent or sibling.
> file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml: QML Plasmoid: Cannot anchor to an item that isn't a parent or sibling.^C
>
> ^C
chronos@localhost / $

If known, describe the steps to reproduce the issue:

I recently installed KDE with Xenial, and it looked exactly like that. However, I then installed KDE with Bionic (which is KDE Plasma) and it looks fine. Also with Fossa, but it was lagging on my Intel Celeron. I don't really know what causes the issue, but I recommend that you upgrade to either Bionic or Fossa.

Yeah, I was just going to write about my progress and saw your comment. Thanks for acting on it. Last night I removed the chroot xenial and kde and installed buster and kde and it is working correctly. I may go back and do it again with a kde-desktop version, since the current one looks a bit sparse. I guess I'll just avoid xenial. I'll have to look at how to close this.
Thanks, Dennis


Emojis

It would be nice to have some emoticons on the cards, so it really makes funretro more fun :D 💃

https://github.com/OneSignal/emoji-picker

Yes, adding an emoji picker would look cool. Are anyone working on this now?

@alanjsph Nobody is working on it yet.

Are all unicode characters supported in the input? ⌨
ctrl + ⌘ + space opens the emoji picker on mac.

Here's an example with 'emoji support' http://funretro.github.io/distributed/#l32mxdb

It opens on mac but it is not very intuitive. Not everybody knows about it. I think if we implement a feature that works everywhere, and it just opens a modal to select some emojis, maybe it will be a better experience and work for everyone.

Maybe we could add a link/button that triggers ctrl + ⌘ + space only on mac. That would be like a MVP of the feature.

Seems reasonable but at that point you might as well add the emoji picker 😛 . I say this because you'd be binding a combination of key events to a button and then those key events would only be supported by one operating system, so you would have to determine the user's OS and only show the button if it's Mac.


Implemented Logo in the navbar.

resolved the issue number.
#20

The should have width and height it's shows build errors

it will take some time from my side all checks are passed


Add page.drawSVG(path) method

Brought over the SVG path methods from pdfkit, with attribution and updated to TypeScript.
Addresses issue: https://github.com/Hopding/pdf-lib/issues/114
Here's a sample test page with the output with variations on the options.
https://gist.github.com/jlmessenger/c8323fcb7891f30843e59a391cae925a

@Hopding let me know what you think.

Hello @jlmessenger! This is certainly a feature that I'd like to get into pdf-lib. So thank you for working on this. I'm planning to do a thorough review within the next week. However, I've looked over this briefly and a few things pop out at me:

This new code will need to have some unit tests added before it can be merged. Primarily src/api/svgPath.ts.
I also try to ensure that all new API changes are tested in the three tester apps (in the apps/ dir) to prevent regressions.
I do not think these changes fully address #114, because these changes support drawing SVG paths. They do not allow SVG files to be embedded. It certainly does not have to be done as part of this PR, but I'm curious how much effort you think it would take to support SVG embedding?
Along the lines of my previous note, I think it would be better to call the new method PDFPage.drawSvgPath(...).

As I mentioned, I'll try to do a more thorough review of the code itself soon. Please let me know if you have any questions/concerns!

I think the best way to test the src/api/svgPath.ts module would be to have a series of tests cases that call svgPathOperators with various path strings and then verify that the resulting array contains the correct operators and arguments in the correct sequence. The key thing would be to exercise all the different paths/functions through the code in src/api/svgPath.ts. I would like to have nearly 100% coverage for code like this (similar to how the PDF parser code has almost 100% test coverage). You can generate a coverage report with yarn testc.
I hope this helps. Please let me know if you have any additional questions!

@Hopding - Thanks for the direction.
I used the SVG path specification as a source for path samples, and added unit tests.

Version 1.2.0 is now published. It contains the PDFPage.drawSvgPath(...) method. The full release notes are available here.
You can install this new version with npm:
npm install<EMAIL_ADDRESS>
It's also available on unpkg:

<EMAIL_ADDRESS><EMAIL_ADDRESS>


Use v5 of OBS web socket plugin

Now that the web socket plugin lives under the OBS project umbrella and ships with OBS as of v28, update the project to use v5 of the plugin to support new versions of OBS going forward.

We batch requests to make things more efficient when changing layouts. This is currently not supported in the JS library. There's an open issue for support. Don't want to update this to use v5 of the web socket plugin until batch request support is in.