Eureka SideCar. eureka.instance.hostname not used in Cloud Foundry

Hello,
I have weird issue with sidecar. All my other apps, which use @EnableEurekaClient work fine, but this one - side car, returns wrong eureka.instance.hostname, not the one I want in bootstrap.yml.
Here is what I have in bootstrap.yml
eureka.instance.statusPageUrlPath: /swagger-ui.html

---
spring:
 profiles: development-cloud
eureka.instance.hostname:  ${vcap.application.uris[0]}
eureka.instance.nonSecurePort: 80
eureka:
 client:
  serviceUrl:
   defaultZone: http://${SERVICE_DISCOVERY_HOST:service-discovery-locator.cfappstpanpaz2.mycompany.com}:${SERVICE_DISCOVERY_PORT:80}/eureka/
 instance:
  metadataMap:
   instanceId: ${vcap.application.instance_id:${spring.application.name}:${spring.application.instance_id:${server.port}:${random.value}}}

Then, I print EurekaInstanceConfigBean at startup:
@Configuration
@RefreshScope
@EnableEurekaClient
@EnableSidecar
public class AppConfig {
	private static final Logger LOGGER = LoggerFactory.getLogger(AppConfig.class);

    @Value("${eureka.instance.hostname:localhost}")
    private String hostName;

    @Autowired
    EurekaInstanceConfigBean eurekaInstanceConfigBean;

    @Bean
    public String eurekaInfo() {
    	LOGGER.info("eureka.instance.hostname: {}", hostName);
    	LOGGER.info("eurekaInstanceConfigBean: {}", eurekaInstanceConfigBean);
    	return hostName;
    }

	}

When I look at runtime logs I see that although my eureka.instance.hostname is correct: eureka.instance.hostname: service-sidecar-server.cfappstpanpaz2.mycompany.com
But it does no get into the bean, so my bean has hostname provided by CF ( see this 1922mma8o5i as hostname):
Wed Dec 02 2015 14:21:31 GMT-0500 (Eastern Standard Time) [App/0] OUT 2015-12-02 19:21:31,221 33 INFO [main] c.v.u.s.s.server.config.AppConfig [AppConfig.java:37] --- eureka.instance.hostname: service-sidecar-server.cfappstpanpaz2.mycompany.com

Wed Dec 02 2015 14:21:31 GMT-0500 (Eastern Standard Time) [App/0] OUT 2015-12-02 19:21:31,221 33 INFO [main] c.v.u.s.s.server.config.AppConfig [AppConfig.java:38] --- eurekaInstanceConfigBean: EurekaInstanceConfigBean(hostInfo=[<IP_ADDRESS>, 1922mma8o5i], appname=service-sidecar-server, appGroupName=null, instanceEnabledOnit=false, nonSecurePort=80, securePort=443, nonSecurePortEnabled=true, securePortEnabled=false, leaseRenewalIntervalInSeconds=30, leaseExpirationDurationInSeconds=90, virtualHostName=service-sidecar-server, secureVirtualHostName=null, aSGName=null, metadataMap={instanceId=207bc122b4424175acf4383702a6d3f7}, dataCenterInfo=org.springframework.cloud.netflix.eureka.EurekaInstanceConfigBean$IdentifyingDataCenterInfo@4df379e5, ipAddress=<IP_ADDRESS>, statusPageUrlPath=/swagger-ui.html, statusPageUrl=http://1922mma8o5i:63713/info, homePageUrlPath=/, homePageUrl=http://1922mma8o5i:0/, healthCheckUrlPath=/health, healthCheckUrl=http://1922mma8o5i:63713/health, secureHealthCheckUrl=null, namespace=eureka, hostname=service-sidecar-server.cfappstpanpaz2.mycompany.com, preferIpAddress=false, initialStatus=UP)

Wed Dec 02 2015 14:21:31 GMT-0500 (Eastern Standard Time) [App/0] OUT 2015-12-02 19:21:31,289 33 INFO [main] o.s.j.e.a.AnnotationMBeanExporter [MBeanExporter.java:431] --- Registering beans for JMX exposure on startup

And then ... in Eureka server dashboard it shows my that weird hostname, and it also does not respect this:
eureka.instance.statusPageUrlPath: /swagger-ui.html
How do I get around it ? So my hostname will be: service-sidecar-server.cfappstpanpaz2.mycompany.com

I'm using
	<parent>
		<groupId>org.springframework.cloud</groupId>
		<artifactId>spring-cloud-starter-parent</artifactId>
		<version>Angel.SR3</version>
		<relativePath /> <!-- lookup parent from repository -->
	</parent>
...
<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-netflix-sidecar</artifactId>
		</dependency>

		<dependency>
			<groupId>org.springframework.cloud</groupId>
			<artifactId>spring-cloud-starter-eureka</artifactId>
		</dependency>

You need to set the full url for the status page, eureka.instance.statusPageUrl=...

It works for other apps, with just this:
spring:
 application:
  name: trail-design-get
eureka.instance.statusPageUrlPath: /swagger-ui.html

On Eureka dashboard it translates into this link:
http://trail-design-get.cfappstpanpaz2.mycompany.com/swagger-ui.html
But for sidecar similar setup:
spring:
 application:
  name: service-sidecar-server
endpoints.env.keys-to-sanitize: eureka.instance.statusPageUrlPath: /swagger-ui.html

translates into this link: http://1922q6n6vpu:62629/info
So it does not respect anything from:
eureka.instance.statusPageUrlPath: /swagger-ui.html
eureka.instance.hostname:  ${vcap.application.uris[0]}
eureka.instance.nonSecurePort: 80

@bogdatov is your yaml pasted as is? or is it missing the two space indentation?

This is my bootstrap.yml with related info - sidecar - posted as is:
spring:
 application:
  name: service-sidecar-server
eureka.instance.statusPageUrlPath: /swagger-ui.html

---
spring:
 profiles: development-cloud
eureka.instance.hostname:  ${vcap.application.uris[0]}
eureka.instance.nonSecurePort: 80
eureka:
 client:
  serviceUrl:
   defaultZone: http://${SERVICE_DISCOVERY_HOST:service-discovery-locator.cfappstpanpaz2.mycompany.com}:${SERVICE_DISCOVERY_PORT:80}/eureka/
 instance:
  metadataMap:
   instanceId: ${vcap.application.instance_id:${spring.application.name}:${spring.application.instance_id:${server.port}:${random.value}}}

@spencergibb
Looks like for SideCar, I had to use eureka.instance.statusPageUrl  with full URL
But for other apps, which are just Eureka Clients, but not sidecar or Zuul, I could use this:
eureka.instance.statusPageUrlPath: /swagger-ui.html
Now my Eureka dashboard seems fine.Thanks.


Add BaseUriPlugin support. ISSUE-235

Q
A

Bug fix?
no

New feature?
yes

BC breaks?
no

Deprecations?
no

Related tickets
-

Documentation
if this is a new feature, link to pull request in https://github.com/php-http/documentation that adds relevant documentation

License
MIT

What's in this PR?
Add BaseUriPlugin support
Why?
https://github.com/php-http/HttplugBundle/issues/235
Example Usage
http://docs.php-http.org/en/latest/plugins/request-uri-manipulations.html
Checklist

[x] Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix

@dbu yes, I will add.

Thanks for this, can you add also a test in https://github.com/php-http/HttplugBundle/blob/master/Tests/Unit/DependencyInjection/ConfigurationTest.php ?

@joelwurtz can you please describe more about this

(Just addingthis plugin into the full.yml/xml/php and check if it's equal into the existing test should

be enough IMO)

@dbu I also added changes to CHANGELOG.md and PR doc. Can you please review it?

Added this to full test configuration. And add info to documentation and create new PR.https://github.com/php-http/documentation/pull/226

I really apprichiate the fix and all the reviews.

Guys!! Thank you too for support and help and task!!))


Fix image layout when using css-layout

Flipboard/react-canvas#16 describes an issue with transparent PNGs not
rendering correctly. This was solved in 0146a0b by introducing a separate
background layer, which would render a plain surface with the specified
background color and then putting the actual image (without a background color)
before this surface. However, when using css-layout/flexbox to layout
components, this background surface was considered another valid component
sharing the available space with the actual image. This leads to an undesired
result, described in Flipboard/react-canvas#43.
I fixed this issue by reducing the React render tree down to the image again,
but moved the background layer creation to the canvas actual drawing stage.
Fixes Flipboard/react-canvas#43.

I don't think handling this in the drawing engine is the right place. I need to re-think how integration with css-layout works. In the mean time, I'll make a fix to the css-layout example so it isn't broken.


Favorites and channels lists are reversed

I just opened the app to send a message, and I noticed that items in my favorites and channels are reversed. The one I usually have at the top is now at the bottom of the section, and so on.
It still looks fine on the desktop app, so I have to assume this is a mobile version bug.

@francislavoie What OS and version are you on? Do you see the same issue on our community server here https://community.mattermost.com/ (it is on the latest server version)?

Android 13, latest beta. Pixel 6 Pro.
Immediately after logging into the community server, it looks like this on mobile app & Firefox respectively (no problems observed):

And then, I created a new category "Favourites" (note: I had to do this on my PC with a web browser because the app doesn't seem to let me create categories, and the web interface on Firefox didn't let me open the keyboard to set a name for a category either).
I added two channels to this category, Contributors first and Reception second. The web app looks correct, but the Android app has the category upside down.

Latest beta (build 460) has some known issues around this.
cc: @larkox


syllable fix in readability-scores

Thanks! But no need to update here, ^13.0.0 will already include the last version below 14.0.0 on a new npm install. And this website regenerates every week, so it’ll ✨magically ✨ be solved in a bit!


Remove a boxed enumerator allocated during TryMapToHostDocumentPosition

From customer trace:

No complaints, though we're only a week away from being able to change SourceMappings (and everything else) to a better type.

That'll be a process though. It likely won't happen in a week -- unless you do it on a tear! :smile:

Changing SourceMapping from IReadOnlyList<SourceMapping> to the SourceMapping[] its stored as internally should be a one line change, right? What could go wrong?! 😁


ProviderType.DATABASE is not available

What version of Music Assistant has the issue?
2022.7.0b5
The problem
Looks similar to this issue https://github.com/music-assistant/hass-music-assistant/issues/564
I used Audacity to resave some flac music files that had missing durations. When I do a REFRESH on the album this error appears in the logs.
How to reproduce
As above
Relevant log output
Logger: music_assistant
Source: /usr/local/lib/python3.10/site-packages/music_assistant/mass.py:245
First occurred: 9:43:51 PM (1 occurrences)
Last logged: 9:43:51 PM
Job [Add spotify://artist/4gzpq5DPGxSnKTe4SA8HAU to database] failed with error Provider ProviderType.DATABASE is not available.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/music_assistant/controllers/music/artists.py", line 97, in add
await self.match_artist(db_item)
File "/usr/local/lib/python3.10/site-packages/music_assistant/controllers/music/artists.py", line 116, in match_artist
if await self._match(db_artist, provider):
File "/usr/local/lib/python3.10/site-packages/music_assistant/controllers/music/artists.py", line 289, in _match
prov_artist = await self.get_provider_item(
File "/usr/local/lib/python3.10/site-packages/music_assistant/models/media_controller.py", line 341, in get_provider_item
provider = self.mass.music.get_provider(provider_id)
File "/usr/local/lib/python3.10/site-packages/music_assistant/controllers/music/init.py", line 130, in get_provider
raise ProviderUnavailableError(f"Provider {provider_id} is not available")
music_assistant.models.errors.ProviderUnavailableError: Provider ProviderType.DATABASE is not available
Additional information
No response
What version of Home Assistant Core are your running
2022.7.2
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Raspberry Pi

its a race conditions due to you refreshing the item and the UI opening that same item.
Should be fixed in next release as I tried to wade my way through the edge cases we talked about and especially made the whole "I've adjusted some tags" flow more robust.


Show Alpha on /policies/all

This adds the Alpha flag to the Policy Firehose. Relies on
https://github.com/alphagov/govuk-content-schemas/pull/105 being merged
before tests will pass.

Is this still needed/wanted?  It's been sitting with no update for nearly a month now.

It is, though I forgot to push the updated version. But I'm still waiting on https://github.com/alphagov/govuk-content-schemas/pull/108 being merged to make it pass anyways.

Tests pass after https://github.com/alphagov/govuk-content-schemas/pull/108 was merged. Merging!


why transform the cmd_vel to  so huge?

the cmd_vel too huge maybe  to train      [1.0000e+04, 3.0000e+07],

loss_cmd_img is to huge


Contributor Guide

Closes #05 to add a contributor guide/readme

Codecov Report

Merging #63 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #63   +/-   ##
=======================================
  Coverage   94.54%   94.54%
=======================================
  Files           8        8
  Lines         220      220
=======================================
  Hits          208      208
  Misses         12       12

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 83ed229...239e8b8. Read the comment docs.

This looks brilliant! Very informative and well explained. I did notice a couple of typos in the 'Linting' section (specifically an extra c in the word 'recommend' and an l instead of a v in 'development team'). Fix those and we're good to go :)

Perfect - thanks!


(QEMU - Arm64) clarify artefacts available and used

Readiness

[x] Merge (pending reviews)
[ ] Merge after date or event
[ ] Draft

Overview
It was not clear to me where could I get the flash.bin
Also, not all arc images will have the flash.bin.
Example:

Therefore, this PR propose adding a note to try to clarify and provide as an example a command that can work in those cases.

Checklist
Optional. Add a 'x' to steps taken.
You can fill this out after opening the PR. "Did I..."

[ ] Run spelling and grammar check, preferably with linter.
[ ] Avoid changing any header associated with a link/reference.
[ ] Step through instructions (or ask someone to do so).
[ ] Review for wordiness
[ ] Match tone and style of page/section.
[ ] Run make linkcheck.
[ ] View HTML in a browser to check rendering.
[ ] Use semantic newlines.
[ ] follow best practices for commits.

[ ] Descriptive title written in the imperative.
[ ] Include brief overview of QA steps taken.
[ ] Mention any related issues numbers.
[ ] End message with sign off/DCO line (-s, --signoff).
[ ] Sign commit with your gpg key (-S, --gpg-sign).
[ ] Squash commits if needed.

[ ] Request PR review by a technical writer and at least one peer.

Comments
Any thing else that a maintainer/reviewer should know.
This could include potential issues, rational for approach, etc.

Docs for 8a1bfe8c91498b84064df64a72bf7dc355e1fcae are browsable at: https://ci.foundries.io/projects/fio-docs/builds/2355/docs/artifacts/html/index.html


Roll Flutter Engine from 14ecaeb915e0 to c3d7c5967d82 (2 revisions)

https://github.com/flutter/engine/compare/14ecaeb915e0...c3d7c5967d82
2022-11-14<EMAIL_ADDRESS>Roll Skia from a434f9b69660 to 33c62dafffc9 (9 revisions) (flutter/engine#37598)
2022-11-14<EMAIL_ADDRESS>[web] Switch to doubles (flutter/engine#37336)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


neptune python util update + neo4j to neptune export fix + doc update

Issue #, if available:
Description of changes:
neo4j to export utility breaks for neo4j property values similar to this [3,4,8,10,11,12,13,14,15,18,19,20,21,6,7]
updated neptune python util to use Glue Connection Type "Network"
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Hi @abhishekpradeepmishra
Please refactor this into 2 separate PRs. The change to neptune_python_utils is an unnecessary breaking change: please expose this new feature through a new method.
Thanks
ian


[SMALLFIX] Replace explicit type argument with template

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/2877/
Test PASSed.

Jenkins, test this please.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/2901/
Test PASSed.

LGTM

@ZiyaoXie Please merge master to resolve conflicts, thanks


record_clusters_with_data revision

↪ Pull Request

Fixes #121
💻 Examples

✔ PR Todo

[x] Added/updated testing for this change
[x] Included links to related issues/PRs
[x] Update relevant docs + docstrings
[x] Update the CHANGELOG under the current -dev version:

Add changelog entries under any that apply: BREAKING CHANGES, NEW FEATURES, BUG FIXES.
Changelog entry format: [#<issue number>](<link to issue>) <change description>

This PR has 18 commits; please clean up the commit history.


Dark mode problem

1- I changed to dark mode. Everything is ok.
2- I restart Phoenix, and automatically Phoenix appear in light mode.
Obs. Android version: 7.0

I could reproduce this issue on Android 8.0 by playing with the Night mode and the Battery Saver system settings. Scenario is not straightforward so I suspect there's a bug either in the AndroidX AppCompat 1.1.0 library, or in our code (!).


Restore cards to the bottom of the cards and autoscroll it into view.

Instead of restoring the layout upon restore card, the card should be restored to the bottom of the other cards and the view should autoscroll to bring the card into view. The rest of the layout should be undisturbed
DoD:
When the user restores a card, the card is added to the bottom of the other cards and scrolled into view.

Notes:

~there is an example method the does part of this in the RW-rcl (see handleAddCard()).  It would just add a card with the index of the card to restore.~
in the RW-rcl, the hook useMinimizedCardsState() can be updated.  Can modify maximizeCard() and minimizeCard.  Change preCurrentLayout to save by id the old layout for each breakpoint of the id.  Then on maximize recall  the settings, but change x to 0 and y to row count.


Duplicate Logs Using Serilog Logger in Azure Function

I need to use serilog to send message with custom properties to application insights on Azure Functions.
I'm using the code below in my startup and I'm getting duplicate logs in application insights. One log entry containing the custom properties that I've pushed to Serilog and the other doesn't
public override void Configure(IFunctionsHostBuilder builder)
{
var serilogLogger = new LoggerConfiguration()
.Enrich.FromLogContext()
.WriteTo
.ApplicationInsights(TelemetryConfiguration.CreateDefault(), TelemetryConverter.Traces)
.CreateLogger();
builder
.Services
.AddHttpClient()
.AddLogging(l => l.AddSerilog(serilogLogger))
.AddSingleton(serilogLogger);
}
Any thoughts on what might be going wrong here?
Note: I tried the following too:
builder
.Services
.AddHttpClient()
.AddLogging(l =>
{
l.ClearProviders().AddSerilog(serilogLogger)
})
.AddSingleton(serilogLogger);
And this fixed the "duplicate" issue but then I would have a log that contains my custom properties but is missing some key properties (e.g. operation id, cloud role name, etc)

I'm also experiencing this.

Same issue here. Any solution or workaround available?

Ditto!  I have same issue.
Here's my code.  Using telemetryConfiguration since Microsoft has decided to drop support for using InstrumentationKey only.  They will require the full Application Insights ConnectionString.  We found that they already do require it in Gov Azure.
  var telemetryConfiguration = TelemetryConfiguration.CreateDefault();
  \\
     var loggerConfiguration = new LoggerConfiguration()
                .MinimumLevel.Is(logEventLevel)
                .MinimumLevel.Override("Microsoft", LogEventLevel.Information)
                .Enrich.WithProperty("ApplicationName", "OurAppName")
                .WriteTo.ApplicationInsights(telemetryConfiguration, TelemetryConverter.Traces, logEventLevel);

       Log.Logger = loggerConfiguration.CreateLogger();

       services.AddLogging(configure => configure.AddSerilog(dispose: true));

Hi! We're currently switching maintenance teams and low on bandwidth; if anyone is able to help out by investigating this more deeply/proposing a solution, that would be much appreciated. Thanks!

Does it work if you Inject ILoggerProvider
builder.Services.AddSingleton<ILoggerProvider, MyLoggerProvider>();
https://docs.microsoft.com/en-us/azure/azure-functions/functions-dotnet-dependency-injection

also seeing this. we can't remove the default function logger providers and when adding serilog we log duplicate traces :(

Any resolutions to this?
builder.Services.AddLogging(lb => {             lb.ClearProviders().AddSerilog(Log.Logger);             lb.AddSerilog(Log.Logger);         });
Throws an error on start up in function app.
We use builder.Logging.ClearProviders().AddSerilog();  in an API but the above does not work and we are still getting duplicate logs.
We did add a TraceTelemetryConverter to set the CloudRoleName and did notice that 1 out of 2 of the duplicated logs reflects the name we set.

the marginal fix for this is to remove any AppInsights connection string / etc from the App/Function configuration section in Azure.
unfortunately, doing this removes the operation_id type grouping of the traces/requests/exceptions. 😢

the marginal fix for this is to remove any AppInsights connection string / instrumentation key from the App/Function configuration section in Azure. with this connection string / instrumentation key removed, the app insights won't be set up for the app/function by default. you have to manually add/initialize it in the startup.
unfortunately, doing this removes the operation_id type grouping of the traces/requests/exceptions. 😢

I was wondering about this and you just saved me a few hours of work. My conclusion is that with Azure Functions Net6 v4 in isolated mode that Serilog really isn't necessary. Application Insights will retain data for long enough time to debug and applications. This is good news and bad news. The bad news is that Serilog makes the logs more readable. And believe me, I have spent hours wiring up Serilog in several projects.

What we do is clear providers before adding Serilog.

Add A.I.
Clear all logging Providers
Add Serilog

That removed all my duplicates when using logger, lets me use Serilog with the A.I. registered TelemetryClient.

What we do is clear providers before adding Serilog.

Add A.I.
Clear all logging Providers
Add Serilog

That removed all my duplicates when using logger & lets me use Serilog with the A.I. registered TelemetryClient.

would you mind to share you code?
Thanks

Im able to resolve this issue in two ways.Its work form me. In my situation, I used Queuetrigger Function V4. I can put my logs into app insights

You can disable the default logger in the host.json file the following way. Make it isEnabled = false
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": false
}
},

Or you can remove the default provider and add Serilog like below
Startup.cs

`
public override void Configure(IFunctionsHostBuilder builder)
{
ServiceDescriptor descriptor =
builder.Services.FirstOrDefault(service => service.ImplementationType?.Name == "ApplicationInsightsLoggerProvider");
        if (descriptor != null)
        {
            builder.Services.Remove(descriptor);
        }

        builder.Services.AddSingleton<ILoggerProvider>((sp) =>
        {
            Log.Logger = new LoggerConfiguration()
                .ReadFrom.Configuration(Configuration, sectionName: "AzureFunctionsJobHost:logging:serilog")
                .WriteTo.ApplicationInsights(sp.GetRequiredService<TelemetryClient>(), TelemetryConverter.Traces)
                .CreateLogger();
            return new SerilogLoggerProvider(Log.Logger, true);
        });

}
`
Logging sample
[FunctionName(nameof(abcrocessStarter))]
        public async Task Run([QueueTrigger("abctaprocess",Connection = "abcStorage")]
            DataProcessQueueMessage abcProcessQueueMessage,
            [DurableClient] IDurableOrchestrationClient starter,
            ILogger log)
        {

            log.LogInformation("Serilog Retrieving projectId: {projectId}", 555555);
            log.LogInformation("Retrieving projectId: {projectId}", 333333);

            log.LogError("Retrieving projectId: {projectId}", 111111);
        }

Im able to resolve this issue in two ways.Its work form me. In my situation, I used Queuetrigger Function V4. I can put my logs into app insights without any duplicates

You can disable the default logger in the host.json file the following way. Make it isEnabled = false
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": false
}
},

That would be strange, as this is controlling the sampling settings for application insights.  It is not removing or disabling the app insights logger.  (see docs)

@fgheysels Try the second approach mentioned in my comments. It works for me. Currently, I`m using it.

@eldursi @fgheysels @middiu
An instance of ApplicationInsightsLoggerProvider is registered and used by the In-Process Azure Function Host using the LoggerProvider pattern to log to App Insights. This works fine until you want to log custom things to App Insights (using Serilog, etc) because by registering your custom App Insights provider, your loggers will now write to App Insights twice; once through the Azure Host registered logger provider and once through your custom logger provider.
To fix this, you could completely remove the Azure Host registered logger provider, but this removes all the nice, default metric/request/correlation capturing capabilities of Az Funcs + App Insights.
The working solution I have found is to register a custom LoggerFactory instance that contains all the registered logger providers except the App Insights logger provider registered by the Azure Function Host that also contains any custom provider that I want to use to log to App Insights.
Then, you can inject this LoggerFactory instance into your Function App class and create an ILogger instance that logs to App Insights only through your custom provider and still logs to all other providers and does not require you to remove the default App Insights logger provider completely. This way, you get the best of both worlds.
In this model, you would not register your custom logger provider with the ILoggerProvider interface since this would cause all ILogger instances directly resolved from the container to use both App Insights providers, leading to duplicate logs.
Startup Configure method:
builder.Services.AddSingleton((sp) =>
{
    Log.Logger = new LoggerConfiguration()
        .Enrich.With<ThrowContextEnricher>()
        .Enrich.FromLogContext()
        .WriteTo.ApplicationInsights(sp.GetRequiredService<TelemetryClient>(), TelemetryConverter.Traces)
        .CreateLogger();

    List<ILoggerProvider> providers = new
    (
        sp.GetServices<ILoggerProvider>()
          .Where(lp => lp.GetType().Name != "ApplicationInsightsLoggerProvider")
    )
    {
        new SerilogLoggerProvider(Log.Logger, true)
    };

    return new LoggerFactory(providers);
});

Function code:
private readonly ILogger _logger;

public AzFunc(LoggerFactory loggerFactory)
{
    _logger = loggerFactory.CreateLogger<AzFunc>();
}

[FunctionName("FuncName")]
public async Task FuncName([ServiceBusTrigger(ConstantStrings.TOPIC_NAME,
                                                ConstantStrings.SUBSCRIPTION_NAME,
                                                Connection = ConstantStrings.SB_CONN_STRING_VARIABLE_NAME)]string queueItem)
{
    _logger.LogError(ex, ex.Message);
}

It occurs when we use the following environment variables.

APPLICATIONINSIGHTS_CONNECTION_STRING
APPINSIGHTS_INSTRUMENTATIONKEY

Solution:
If you set connection string or instrumentation key in serilog config file, you won't get duplicate logs issue.
Reference: https://github.com/serilog-contrib/serilog-sinks-applicationinsights#configuring-with-readfromconfiguration
Example:
{   "Serilog": {   ...     "WriteTo": [       {         "Name": "ApplicationInsights",         "Args": {           "connectionString": "[your connection string here]",           "telemetryConverter": 	    "Serilog.Sinks.ApplicationInsights.TelemetryConverters.TraceTelemetryConverter, Serilog.Sinks.ApplicationInsights"         }       }     ],    ... }

I've had a similar issue to what's been discussed above, but with Blazor application using the application insights sink.
Not sure where to post this, so posting here in the hope that someone else doesn't waste a couple hours.
Reproduction steps:

Created a new application using dotnet new blazorserver
As per the Serilog app insights README, I added the necessary details in Appsettings.Development.Json.

{
  "DetailedErrors": true,
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "Serilog": {
    "Using": [
      "Serilog.Sinks.ApplicationInsights"
    ],
    "MinimumLevel": {
      "Default": "Information",
      "Override": {
        "Microsoft": "Warning",
        "System": "Warning"
      }
    },
    "WriteTo": [

      {
        "Name": "Console"
      },
      {
        "Name": "File",
        "Args": {
          "path": "log.txt",
          "rollingInterval": "Day"
        }
      },
      {
        "Name": "ApplicationInsights",
        "Args": {
          "connectionString": "<INSERT KEY HERE>",
          "telemetryConverter":
          "Serilog.Sinks.ApplicationInsights.TelemetryConverters.TraceTelemetryConverter, Serilog.Sinks.ApplicationInsights"
        }
      }
    ],
    "Enrich": [ "FromLogContext" ],
    "Properties": {
      "Application": "Sample"
    }
  }

}

and added Serilog from configuration.
builder.Host.UseSerilog((_, config) => config.ReadFrom.Configuration(builder.Configuration));

It was at this point I first noticed the duplicate logs. In my scenario I was using the sample application to log an information trace each time the counter button was clicked.
Suggestions to remove the ILoggerProvider (Link 1 and corresponding github issue) proved ineffective in resolving the issue.
A lot of trawling later and I stumbled on the following issue. It turns out that certain diagnostic settings within the application insights can cause duplicates. This issue is further discussed here.
The fix (for me) was switching switching off the Send to Log Analytics workspace diagnostic setting which can be found under application insights > Monitoring > Diagnostic Settings > Standard Diagnostic Setting (the only option for me) > Edit Setting

This is a non-code solution to my specific scenario, but hopefully this is an easy thing to rule out if you run into the same issues I have when trying to use Serilog in Azure!

Duplicate logs issue occurs in Azure Functions when the following environment variables are used. These variables enable ApplicationInsights in the runtime host used by the Azure Functions service. The Azure Functions runtime builds upon the Azure WebJobs SDK to provide a hosting platform for functions. So you have to somehow bypass using these environment variables, if you want to use Serilog.Sinks.ApplicationInsights package with azure functions.

APPLICATIONINSIGHTS_CONNECTION_STRING
APPINSIGHTS_INSTRUMENTATIONKEY

If you set one of these variables on local machine => Azure Functions Core Tools will enable ApplicationInsights.
If you set one of these variables in Azure cloud environment =>  Azure Functions Host  will enable ApplicationInsights.

If you check SDK version property in AppInsights logs.

If SDK is azurefunctions  in properties of a log- log is created by Azure Functions Host
If SDK is azurefunctionscoretools  in properties of a log- log is created by Azure Functions Core Tools
If SDK is dotnetc in properties of a log- log is created by 3rd party logger (SeriLog, etc.)

For isolated worker process
Solution 1
If you set connection string or instrumentation key in serilog config file, you won't get duplicate logs issue.
Example: { "Serilog": { ... "WriteTo": [ { "Name": "ApplicationInsights", "Args": { "connectionString": "[your connection string here]", "telemetryConverter": "Serilog.Sinks.ApplicationInsights.TelemetryConverters.TraceTelemetryConverter, Serilog.Sinks.ApplicationInsights" } } ], ... } Reference: https://github.com/serilog-contrib/serilog-sinks-applicationinsights#configuring-with-readfromconfiguration
Solution 2 (Serilog configuraion is in appsettings.json)
Reference: https://github.com/serilog/serilog-settings-configuration#serilogsettingsconfiguration--
1. Register SeriLog
.ConfigureAppConfiguration(builder =>
                {
                    var configuration = new ConfigurationBuilder()
                        .SetBasePath(Directory.GetCurrentDirectory())
                        .AddJsonFile("appsettings.json")
                        .AddEnvironmentVariables()
                        .Build();
                    Log.Logger = new LoggerConfiguration()
                        .ReadFrom.Configuration(configuration)
                        .CreateLogger();
                })
.UseSerilog();

Set connection stringin local.settings.json file"Serilog__WriteTo__0__Args__connectionString":"[your connection string here]"`

Solution 3
Create a cutom environment variable like CUSTOM_APPINSIGHTS_INSTRUMENTATIONKEY and use it with the following api.
services.AddApplicationInsightsTelemetryWorkerService("instrumentation key here");

Reference: https://learn.microsoft.com/en-us/azure/azure-monitor/app/worker-service#net-corenet-framework-console-application
For In-process
Solution 1
https://github.com/serilog/serilog-settings-configuration#azure-functions-v2-v3
References:

https://github.com/serilog-contrib/serilog-sinks-applicationinsights#configuring-with-readfromconfiguration
https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v4%2Cwindows%2Ccsharp%2Cportal%2Cbash
https://github.com/Azure/azure-functions-host
https://github.com/Azure/azure-functions-core-tools/blob/db2ff784941c3f6241aea996818ba370ea441bd2/src/Azure.Functions.Cli/Diagnostics/LoggingBuilder.cs#:~:text=client.Context.GetInternalContext().SdkVersion %3D %24"azurefunctionscoretools%3A {Constants.CliVersion}"%3B
https://github.com/Azure/azure-functions-host/blob/d207a4380e18aa79a7545762bd2f5107f8338893/src/WebJobs.Script/ScriptHostBuilderExtensions.cs#:~:text=telemetryClient.Context.GetInternalContext().SdkVersion %3D new ApplicationInsightsSdkVersionProvider().GetSdkVersion()%3B

This is a helpful solution, but it seems like if we remove the default host logger it prevents other telemetry types from being sent. Such as Request, Dependency, and Custom events. Do you have a workaround for that also?

I seeing fixes where the recommendation is to remove the default Application Insights Logger but there are issues that can come with this. The biggest one that I can think of is that you no longer have the ability to send Request and Dependency events to AI. Is there really no way to tell the default Application Insights logger to stop sending trace events and leave that to serilog?

@eldursi @fgheysels @middiu
An instance of ApplicationInsightsLoggerProvider is registered and used by the In-Process Azure Function Host using the LoggerProvider pattern to log to App Insights. This works fine until you want to log custom things to App Insights (using Serilog, etc) because by registering your custom App Insights provider, your loggers will now write to App Insights twice; once through the Azure Host registered logger provider and once through your custom logger provider.
To fix this, you could completely remove the Azure Host registered logger provider, but this removes all the nice, default metric/request/correlation capturing capabilities of Az Funcs + App Insights.
The working solution I have found is to register a custom LoggerFactory instance that contains all the registered logger providers except the App Insights logger provider registered by the Azure Function Host that also contains any custom provider that I want to use to log to App Insights.
Then, you can inject this LoggerFactory instance into your Function App class and create an ILogger instance that logs to App Insights only through your custom provider and still logs to all other providers and does not require you to remove the default App Insights logger provider completely. This way, you get the best of both worlds.
In this model, you would not register your custom logger provider with the ILoggerProvider interface since this would cause all ILogger instances directly resolved from the container to use both App Insights providers, leading to duplicate logs.
Startup Configure method:
builder.Services.AddSingleton((sp) =>
{
    Log.Logger = new LoggerConfiguration()
        .Enrich.With<ThrowContextEnricher>()
        .Enrich.FromLogContext()
        .WriteTo.ApplicationInsights(sp.GetRequiredService<TelemetryClient>(), TelemetryConverter.Traces)
        .CreateLogger();

    List<ILoggerProvider> providers = new
    (
        sp.GetServices<ILoggerProvider>()
          .Where(lp => lp.GetType().Name != "ApplicationInsightsLoggerProvider")
    )
    {
        new SerilogLoggerProvider(Log.Logger, true)
    };

    return new LoggerFactory(providers);
});

Function code:
private readonly ILogger _logger;

public AzFunc(LoggerFactory loggerFactory)
{
    _logger = loggerFactory.CreateLogger<AzFunc>();
}

[FunctionName("FuncName")]
public async Task FuncName([ServiceBusTrigger(ConstantStrings.TOPIC_NAME,
                                                ConstantStrings.SUBSCRIPTION_NAME,
                                                Connection = ConstantStrings.SB_CONN_STRING_VARIABLE_NAME)]string queueItem)
{
    _logger.LogInformation("info");
}

Interesting solution but this does not user Serilog for trace event logs


Documentation on Threading Model is Missing

I am new to eCAL, and I am trying to better understand how to develop applications on top of it. I read through the documentation at https://continental.github.io/ecal/ and I didn't notice any sections on threading models.
I am trying to understand questions like:

Do timer callbacks and subscriber callbacks execute on the same thread?
What thread do service calls run on? Is there a thread pool involved?
When is it acceptable to block on I/O? When is it not?
How is ASIO used under the hood? If an eCAL user wanted to use ASIO for their own asynchronous I/O, is there a clean way to mix with eCAL to reuse event loop threads?

Describe the solution you'd like
A page added to the documentation that addresses all the questions above.
Describe alternatives you've considered
I can't think of a good alternative.

Documented https://continental.github.io/ecal/advanced/threading_model.html

Thanks @rex-schilasky !
I did notice one typo startet -> started

@bsirang Thank you, just saw the typo after the merge was done. Currently the CI is triggering a full build for every push/ pull request. That's why I was not that motivated to correct this single letter :-D. We really need a independent build for documentation changes only. But I hope the documentation helps .. some more internal docs will follow.


When using valueFromProviderState within array, the generated index starts with -1

I have a POST request to get status of the list of users as below:
.path("/userStatus")
.method(POST)
Body:
{
"userIds":["id1", "id2"]
}
where id1, id2 are retrieved from provider states
I define the pact by using valueFromProviderState to inject values from provider state :
.path("/userStatus")
.method(POST)
.body(new PactDslJsonBody()
.array("userIds")
.valueFromProviderState("${id1}","John")
.valueFromProviderState("${id2}","Marry")
.closeArray()
)
And Pact generated like:
"body": {
"userIds": [
"John",
"Marry"
]
},
"generators": {
"body": {
"$.userIds[-1]": {
"type": "ProviderState",
"expression": "${id1}"
},
"$.userIds[0]": {
"type": "ProviderState",
"expression": "${id2}"
}
}
}
}
The index "-1" makes the pact Verification error. I tried updating the indexes to start with 0 manually and it works correctly.
Please help to update the framework so that the index starts with 0 in this case. Thanks
I am using version 3.6.14

3.6.15 has been released

Thanks @uglyog


Staircases Segmentation

Deep Learning Simplified Repository (Proposing new issue)
:red_circle: Project Title : Staircases Segmentation
:red_circle: Aim : Create a DL model which will segment the staircases in ascending or descending order.
:red_circle: Dataset : https://www.kaggle.com/datasets/akshaydattatraykhare/ascending-and-descending-staircases
:red_circle: Approach : Try to use 3-4 algorithms to implement the models and compare all the algorithms to find out the best fitted algorithm for the model by checking the accuracy scores. Also do not forget to do a exploratory data analysis before creating any model.

📍 Follow the Guidelines to Contribute in the Project :

You need to create a separate folder named as the Project Title.
Inside that folder, there will be four main components.

Images - To store the required images.
Dataset - To store the dataset or, information/source about the dataset.
Model - To store the machine learning model you've created using the dataset.
requirements.txt - This file will contain the required packages/libraries to run the project in other machines.

Inside the Model folder, the README.md file must be filled up properly, with proper visualizations and conclusions.

:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Follow Contributing Guidelines & Code of Conduct before start Contributing.

:white_check_mark: To be Mentioned while taking the issue :

Full name :
GitHub Profile Link :
Email ID :
Participant ID (if applicable):
Approach for this Project :
What is your participant role? (Mention the Open Source program)

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

Full name : Sagar Rathore
GitHub Profile Link :https://github.com/spartan289
Email ID<EMAIL_ADDRESS>Participant ID (if applicable):
Approach for this Project : I will be using cnn will apply more approach as i further move along
What is your participant role? (Mention the Open Source program) SWOC 3

Issue assigned to you @spartan289


Include sdm audit: users, roles & resources info

Is your feature request related to a problem? Please describe.
Currently the LEC already supports the auditing of activities through the strongDM CLI, but it still does not support the auditing for users, roles and resources which is interesting to add.
Describe the solution you'd like
Add support for auditing users, roles and resources through commands already available in the strongDM CLI.
Additional context
It should be considered that the commands for auditing users and roles in the strongDM CLI do not have a time filtering tool, therefore, this data can become a data in constant redundancy.

ENABLE_ACTIVITIES=false
AUDIT_STUFF="activities xxx"
Result = extract audit activities

ENABLE_ACTIVITIES=true
AUDIT_STUFF="xxx" # activities is not in the list
Result = extract audit activities

ENABLE_ACTIVITIES=false
AUDIT_STUFF="xxx" # activities is not in the list
Result = DO NOT extract audit activities

About config clash for activities, take a look at the following example:
LOG_EXPORT_CONTAINER_EXTRACT_AUDIT_ACTIVITIES=true
LOG_EXPORT_CONTAINER_EXTRACT_AUDIT_ACTIVITIES_INTERVAL=30
LOG_EXPORT_CONTAINER_EXTRACT_AUDIT="activities:15 resources:15 users:480 roles:480"

The system should extract audit activities every 30m, resources every 15m, users every 8h and roles every 8h.

Because yaml has some problems interpreting colon symbols in variables, we'll change to forward slashes. For example:
LOG_EXPORT_CONTAINER_EXTRACT_AUDIT="activities/15 resources/15 users/480 roles/480"

If there's a config similar to this:
LOG_EXPORT_CONTAINER_EXTRACT_AUDIT_ACTIVITIES=true
LOG_EXPORT_CONTAINER_EXTRACT_AUDIT="activities/13 resources/15 users/480 roles/480"

LEC is going to interpret activities extraction interval time = 13m.  But, if:
LOG_EXPORT_CONTAINER_EXTRACT_AUDIT_ACTIVITIES=true
LOG_EXPORT_CONTAINER_EXTRACT_AUDIT_ACTIVITIES_INTERVAL=30
LOG_EXPORT_CONTAINER_EXTRACT_AUDIT="activities/13 resources/15 users/480 roles/480"

LEC is going to interpret activities extraction interval time = 30m

The path LOG_EXPORT_CONTAINER_EXTRACT_AUDIT_ACTIVITIES has precedence over LOG_EXPORT_CONTAINER_EXTRACT_AUDIT because it's more specific.


footer sometimes does not align to page's bottom

Issue type:

[ ] Feature request
[x] Bug report
[ ] Documentation

Environment:

AdminLTE Version: 2.4.2
Operating System: Linux on Server side and Win10 & Samsung Mobile as Clients
Browser (Version): Opera 49.0, Windows Edge, Samsung Internet Browser

Description:
If there is less content on the page and the left Menu's height is approximately as heigh as the window (or even a little bit heigher, but not more then the Header's height), the Footer don't align to the page's bottom.
For me it seems to be a fallacy at the calculation formula.
Steps to reproduce:

small content on the page
Height of the left menu approximately as heigh as the window
tested without using the right sidebar.
See detailed steps in my comment below.

Have a look to a demonstration gif:

The same issue occurs on mobile view too:

You probably have a div issue.. check if all div are closed

@almasaeed2010 @lenamtl
I can't find any unclosed divs.
And the issue also occurs when I open the original index2.html in the browser and remove the elements (menu items, content, control-sidebar) with the browser's development tools.
In https://github.com/Th3M3/almasaeed2010-AdminLTE/blob/test/index3.html I have added class hidden to some menu items and the control-sidebar (on the right side) so you can reproduce this issue :wink:
I would be glad to have this fixed.

I see some problems in your code...
You should use the demo index page and compare the original code with your code and you will see the diffs and then you can do some investigation.
For example:
You have some strange code just after the sidebar :

The footer part should be after the wrapper content

      Version 2.4.0

    Copyright  All rights...

You can also check if there is a fixed or max height set in your css wrapper or other custom CSS causing this.
The only issue I got that is similar of yours, but not the same is that menu cannot be accessible in some case if you have long menu, but compare to your case my template is ok and I don't see any space under the footer like you have...
https://github.com/almasaeed2010/AdminLTE/issues/1491

@lenamtl
I'm still not sure where am I should be wrong.
I grabed the original index2.html from the master branch and had only added classes hidden to the elements I do not need.
I have compared my index3.html and the original index2.html and the differences are only the added hidden-classes. Everything else has been left untouched/unchanged.

Appendum:
Please try the following on your template:
1. remove, hide or reduce the content inside
 so that it's less then the window's height
2. remove or hide the right sidebar
3. remove
-elements inside of
 in the left menu-bar until the remaining items all fit inside the window.
4. If at least one of the existing menu items is a tree, then expand and collapse it or try to zoom in or out the whole page.
You can do this all with the browser's development tools for testing, without need to change your files.
Now you should be able to see the issue I reported

Ok, I see I have not use the correct file to compare, sorry my bald.
Maybe you may have the same issue I had as the page on your example is a short page.
Do a backup of your CSS file.
Can you try this
Change height value of  body  and wrapper  css
so replace
height: 100%;
to a minimum height
min-height: 100%;

I have not applied own css-files.
As I see, AdminLTE itself adds min-height: 100% and height: auto to ,  and
.
The element
 gets a wrong calculated min-height-value.
This is what I ment with "For me it seems to be a fallacy at the calculation formula." in the beginning post.
I don't want to workaround the issue because the cause should be fixed in the .js file.

I agree with you and I already ask about more info on the calculation with no luck.
see #1491  They also tried to fix it many times with no luck too...
Both class have height: 100% and this is not working when a page have a long menu and not much content on it...
By setting min-height 100% this is a temporary fix (and it's not breaking anything). So no template glitch, the only thing is that if the parent menu have a lot of sub-menus (2-3 levels) in some rare case I have to close and reopen parent menu, this occurred only when a page have not much content in it other pages are ok.
Well I'm talking for my project, each project have custom code and different needs...
If you find a JS fix I will be happy to test it ..

Has anyone found a solution?

You can try this
Change height value of body and wrapper css
so replace
height: 100%;
to a minimum height
min-height: 100%;

default demo has this property
http://prntscr.com/hqvbfa

Hi, not really as the min-height is generate from JS (in some condition) not from the CSS and sometimes the calculation of the page is wrong and it's not applied the min-height.
So by putting the value directly in the CSS this ensure you that this will be always min-height.

I'm asking @almasaeed2010 for an reply for this issue.
On another issue he wrote on October that he's currently working on v2.4.4. I'm in hope that this issue will also be fixed with this release.

This is the reason why I stick to old version 2.3

Have you tried adding fixed class? E.g. .
It solve that problem for me. But now I'm having issue where my footer's height goes with the content's height. Like if the content is small, the footer's height will increase in size. And I'm still having trouble to fix that.

This issue is already fixed


Improve start-up time?

I'm experimenting with nvim-compe, and notice that it makes a modest dent in my start-up time.  (Not much, but, still!)
I notice that we are sourcing and registering all of these sources, although I am not using most of them:
116.734  000.989  000.989: sourcing /home/dch/.vim/plugged/nvim-compe/after/plugin/compe_buffer.vim
117.543  000.793  000.793: sourcing /home/dch/.vim/plugged/nvim-compe/after/plugin/compe_calc.vim
118.461  000.901  000.901: sourcing /home/dch/.vim/plugged/nvim-compe/after/plugin/compe_nvim_lsp.vim
119.273  000.794  000.794: sourcing /home/dch/.vim/plugged/nvim-compe/after/plugin/compe_nvim_lua.vim
119.995  000.707  000.707: sourcing /home/dch/.vim/plugged/nvim-compe/after/plugin/compe_omni.vim
120.839  000.829  000.829: sourcing /home/dch/.vim/plugged/nvim-compe/after/plugin/compe_path.vim
121.607  000.751  000.751: sourcing /home/dch/.vim/plugged/nvim-compe/after/plugin/compe_snippets_nvim.vim
122.311  000.686  000.686: sourcing /home/dch/.vim/plugged/nvim-compe/after/plugin/compe_spell.vim
123.017  000.690  000.690: sourcing /home/dch/.vim/plugged/nvim-compe/after/plugin/compe_tags.vim
124.047  001.015  001.015: sourcing /home/dch/.vim/plugged/nvim-compe/after/plugin/compe_treesitter.vim
124.948  000.884  000.884: sourcing /home/dch/.vim/plugged/nvim-compe/after/plugin/compe_ultisnips.vim
125.008  000.044  000.044: sourcing /home/dch/.vim/plugged/nvim-compe/after/plugin/compe_vim_lsc.vim
125.038  000.013  000.013: sourcing /home/dch/.vim/plugged/nvim-compe/after/plugin/compe_vim_lsp.vim
125.794  000.744  000.744: sourcing /home/dch/.vim/plugged/nvim-compe/after/plugin/compe_vsnip.vim

Perhaps it would be worthwhile to arrange that these things are loaded only if the configuration says that they will be used?

Good point.
I think we should separate some of the built-in sources that need external sources.
I'm just lazy so all sources are built-in.

Separating the sources is simply a hassle.

the question is, where are we going to put all of those sources? An org as a central place that keeps all of them so people could find them easier (similar to how telescope do it) or do we want to find someone who wants to maintain a source?

If we create nvim-compe/compe repo & org, we can put all sources that depends on external plugins.
But yes, I don't well know how/who maintein some of the sources.

Initializing all built in sources takes 10ms as seen above.
I think you can safely postpone this until a 10ms is deemed an issue.

It's true that 10ms is not very much (which is what I said a the start).
However I raised this issue at this plugin because 10ms is rather more than most take; certainly if every plugin added 10ms to startup time then we'd really notice.
Also, I had hoped that there might be a relatively easy win here - though of course when the maintainer says that it would be a hassle, I'm sure they're right!

Maybe just check if the source is enabled before requiring it?
For example, in compe_calc.vim, checking if the user enabled calc b4 calling lua require'compe'.register_source('calc', require'compe_calc') might do the trick?

My solution is that add a few lines like this
let g:loaded_compe_treesitter=1
let g:loaded_compe_calc=1
let g:loaded_compe_snippets_nvim=1
let g:loaded_compe_spell=1
let g:loaded_compe_vim_lsc=1
let g:loaded_compe_vim_lsp=1

and my start time:
075.867  000.795  000.795: sourcing /home/thallium/.cache/dein/.cache/init.vim/.dein/after/plugin/compe_buffer.vim
075.903  000.013  000.013: sourcing /home/thallium/.cache/dein/.cache/init.vim/.dein/after/plugin/compe_calc.vim
076.663  000.744  000.744: sourcing /home/thallium/.cache/dein/.cache/init.vim/.dein/after/plugin/compe_nvim_lsp.vim
077.141  000.457  000.457: sourcing /home/thallium/.cache/dein/.cache/init.vim/.dein/after/plugin/compe_nvim_lua.vim
077.597  000.438  000.438: sourcing /home/thallium/.cache/dein/.cache/init.vim/.dein/after/plugin/compe_omni.vim
078.131  000.516  000.516: sourcing /home/thallium/.cache/dein/.cache/init.vim/.dein/after/plugin/compe_path.vim
078.168  000.015  000.015: sourcing /home/thallium/.cache/dein/.cache/init.vim/.dein/after/plugin/compe_snippets_nvim.vim
078.233  000.012  000.012: sourcing /home/thallium/.cache/dein/.cache/init.vim/.dein/after/plugin/compe_spell.vim
078.680  000.432  000.432: sourcing /home/thallium/.cache/dein/.cache/init.vim/.dein/after/plugin/compe_tags.vim
078.712  000.013  000.013: sourcing /home/thallium/.cache/dein/.cache/init.vim/.dein/after/plugin/compe_treesitter.vim
079.131  000.400  000.400: sourcing /home/thallium/.cache/dein/.cache/init.vim/.dein/after/plugin/compe_ultisnips.vim
079.161  000.013  000.013: sourcing /home/thallium/.cache/dein/.cache/init.vim/.dein/after/plugin/compe_vim_lsc.vim
079.185  000.010  000.010: sourcing /home/thallium/.cache/dein/.cache/init.vim/.dein/after/plugin/compe_vim_lsp.vim
079.595  000.396  000.396: sourcing /home/thallium/.cache/dein/.cache/init.vim/.dein/after/plugin/compe_vsnip.vim

Ugh, I hate the stalebot.
I don't expect that the passage of time will make this issue any less valid.  (Probably the same is true for most issues).
Of course you are very much within your rights to decide to close this out as wontfix or whatever, if that's what you want to do.
But: I would very much prefer for that to be a deliberate decision made by a human than for it to be swept up by the unthinking bot.


Build broken by TryFrom on latest nightly

With the latest nightly, the build fails with a bunch of errors in TryFrom like the following one.
note: candidate #1 is defined in an impl of the trait `conversion::PyTryFrom` for the type `objects::sequence::PySequence`
   --> pyo3/src/objects/sequence.rs:252:5
    |
252 |     fn try_from(value: &PyObjectRef) -> Result<&PySequence, Self::Error> {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: candidate #2 is defined in an impl of the trait `std::convert::TryFrom` for the type `_`

error[E0034]: multiple applicable items in scope
  --> pyo3/src/objects/stringutils.rs:60:9
   |
60 |         PyString::try_from(ob)?.to_string()
   |         ^^^^^^^^^^^^^^^^^^ multiple `try_from` found
   |

This is most likely caused by the stabilization of TryFrom in rust-lang/rust#49305

fixes by #137

Thanks!


spaceship-prompt: install prompt_spaceship_setup

Motivation for this change
just like in https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=spaceship-prompt-git
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

does this make available a function to setup spaceship ? Note that there is a home-manager module.

does this make available a function to setup spaceship ?

Yes, in home-manager I'd set
programs.zsh = {
  plugins = [ {
      name = "spaceship-prompt";
      src = "${pkgs.spaceship-prompt}/share/zsh/site-functions";
  } ];
  initExtra = ''
    autoload -U promptinit; promptinit
    prompt spaceship
  ''
};

Note that there is a home-manager module.

No, there's only a starship module. But I've found starship to be even slower when in a git checkout of Nixpkgs.

sry I confused both.


"CapacitorSQLite" plugin is not implemented on ios

Describe the bug
I received "CapacitorSQLite" plugin is not implemented on ios in the console after running the iOS emulator, using Quasar v2

I have a plugin installed on my package.json
I have the capacitor configuration

{
  "appId": "org.myapp.app",
  "appName": "mutus",
  "bundledWebRuntime": false,
  "npmClient": "yarn",
  "webDir": "www",
  "server": {
    "androidScheme": "https",
    "url": "http://<IP_ADDRESS>:9500"
  },
  "plugins": {
    "CapacitorSQLite": {
      "iosDatabaseLocation": "Library/MyDatabase",
      "iosIsEncryption": false,
      "iosKeychainPrefix": "my-app",
      "iosBiometric": {
        "biometricAuth": false,
        "biometricTitle": "Biometric login for myapp sqlite"
      },
      "androidIsEncryption": true,
      "androidBiometric": {
        "biometricAuth": false,
        "biometricTitle": "Biometric login for myapp sqlite",
        "biometricSubTitle": "Log in using your biometric"
      }
    }
  }
}

I run the npx cap sync and npx cap sync ios

Only one thing won't happened in my Podfile the plugin is not in the list and when I add this manually, the npx cap sync removed that from the list, this is my Podfile
require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers'

platform :ios, '13.0'
use_frameworks!

# workaround to avoid Xcode caching of Pods that requires
# Product -> Clean Build Folder after new Cordova plugins installed
# Requires CocoaPods 1.6 or newer
install! 'cocoapods', :disable_input_output_paths => true

def capacitor_pods
  pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorCommunityAppleSignIn', :path => '../../node_modules/@capacitor-community/apple-sign-in'
  pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app'
  pod 'CapacitorFilesystem', :path => '../../node_modules/@capacitor/filesystem'
  pod 'CodetrixStudioCapacitorGoogleAuth', :path => '../../node_modules/@codetrix-studio/capacitor-google-auth'
end

target 'App' do
  capacitor_pods
  # Add your Pods here
end

post_install do |installer|
  assertDeploymentTarget(installer)
end

@itsalb3rt Did you look at the tutorial at https://github.com/jepiqueau/jepiqueau.github.io/blob/main/_posts/2023-11-28-Quasar-SQLite-CRUD-App.md clone it and run it. is it working. If yes look at the différences with your code.

Yes, I follow this step by step but not working on my project

ohhh Sh**tt I see the problem, I have a src-capacitor dir, and I install the @capacitor-community/sqlite package outside this lol, sorry. thanks!

@itsalb3rt 👍

I am getting the same error
[log] - initializeAppError: Error: "CapacitorSQLite" plugin is not implemented on ios
⚡  [error] - ERROR {"code":"UNIMPLEMENTED"}
⚡  [log] - {"code":"UNIMPLEMENTED"}
i checked all installations but still get this issue only on iOS. Any idea on how to solve this ?


How do i append a Json array with new data?

How do i append a Json array with new data?

Do you have an example of what you want to do  - and maybe we can help

It is ok. I already found a solution some time ago.
Will close this issue.

I also want same functionality, can you please give me your solution.


Website Down

Cloudflare systems are down
meaning the website

OS: Windows 11
Browser opera GX/firefox

@metalcupcake5

Already online again


zathua assertion fail opening PDF document

On GitLab by @mtlg on Dec 4, 2018, 17:57

I have downloaded the PDF document from the top of this web page https://ieeexplore.ieee.org/abstract/document/7894201 (too big to attach).
When I attempt to open the PDF document with zathura, it crashes with the following log:
zathura 7894201.pdf
zathura: source/fitz/colorspace.c:1399: fast_rgb_to_cmyk: Assertion `"This should never happen" == NULL' failed.
Aborted (core dumped)
The document opens OK using evince.
Additional data
zathura --version
zathura 0.4.0
girara 0.3.0 (runtime: 0.3.0)
(plugin) cb (0.1.8) (/usr/lib64/zathura/libcb.so)
(plugin) djvu (0.2.8) (/usr/lib64/zathura/libdjvu.so)
(plugin) ps (0.2.6) (/usr/lib64/zathura/libps.so)
(plugin) pdf-mupdf (0.3.3) (/usr/lib64/zathura/libpdf-mupdf.so)
evince --version
GNOME Document Viewer 3.28.5

The current version of zathura-pdf-mupdf is 0.3.4, which works with newer mupdf versions and included many fixes. Please try again with that version.

moved from zathura#53

On GitLab by @mtlg on Dec 5, 2018, 18:27

Here is another PDF that leads to same assertion failure Ricerca_Talenti_web.pdf

closed


Normal and Multi Distributions for BigDataGen

This fixes part of https://github.com/NVIDIA/spark-rapids/issues/8721
It adds in a NormalDistribution based off of Java's build in pseudo random nextGaussian API
It also adds in a MultDistribution which can be used to create a BiNormalDistribution.
I didn't do an ExponentialDistribution because I don't know if we really need it right now. Newer versions of java offer an API for this and I didn't feel like writing something from scratch to do it.

build


delete/backspace key not working on mobile

Hi, when trying to use plunker on my Samsung smartphone, I can type into the editor just fine but the backspace/ delete key doesn't erase a character like it should.  I've tried downloading some different keyboard apps for my device just to make sure it wasn't my device, but the problem persists.
Thanks for your wonderful web development environment.  I use it all the time on desktop and hopefully all the time with my phone if this issue can be resolved.
Thanks!

Hi,
I am facing similar issue on stackblitz mobile  also. Do we have found any solution to this?
Thank You