Rolling file problem(maybe called as archive file)  and file being used by another process

NLog version: (4.7.2)
Platform: .Net 4.6.1
Current NLog config (xml or C#, if relevant)
<?xml version="1.0" encoding="utf-8" ?>
<nlog autoReload="true" throwConfigExceptions="true" xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <targets async="true">
    <target name="logfileInfo" xsi:type="File" fileName="log\Info_${date:format=yyyyMMdd}.log" layout="${date:format=yyyy-MM-dd HH\:mm\:ss.fff zzz}|${level:uppercase=true}|${threadid}|${logger}|${message}" archiveAboveSize="3072" KeepFileOpen="True" ConcurrentWrites="true"/>
    <target name="logfileError" xsi:type="File" fileName="log\Error_${date:format=yyyyMMdd}.log" layout="${date:format=yyyy-MM-dd HH\:mm\:ss.fff zzz}|${level:uppercase=true}|${threadid}|${logger}|${message}" archiveAboveSize="3072" KeepFileOpen="True" ConcurrentWrites="true"/>
    <target name="logconsole" xsi:type="Console" />
  </targets>

  <rules>
    <logger name="*" minlevel="Info" writeTo="logconsole" />
    <logger name="*" minlevel="Trace" maxlevel="Warn" writeTo="logfileInfo" />
    <logger name="*" minlevel="Error" maxlevel="Fatal" writeTo="logfileError" />
  </rules>
</nlog>

What is the current result?
I have inspected the InternalLogger.LogMessageReceived and record exception into event log of Windows.

exception1: The process cannot access the file 'Info_20200707.3.log' because it is being used by another process.
exception2: Could not find file 'Info_20200707.log'.

By the way the file size is only used for test intent.

What is the expected result?
I am not sure what's the correct behavior when rolling file with multi processes. Is it supposed to encounter such exception when rolling file with multi processes.

Did you checked the Internal log?
The exception was captured from InternalLogger.LogMessageReceived .

Please post full exception details (message, stacktrace, inner exceptions)

date time, 14:06:21
File Target[logfileInfo_wrapped]: Error has been raised.
,System.IO.IOException: The process cannot access the file 'Info_20200707.3.log' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at NLog.Targets.FileTarget.ArchiveFileAppendExisting(String fileName, String archiveFileName)
   at NLog.Targets.FileTarget.DoAutoArchive(String fileName, LogEventInfo eventInfo, DateTime previousLogEventTimestamp, Boolean initializedNewFile)
   at NLog.Targets.FileTarget.TryArchiveFileAfterCloseFileAppender(String fileName, String archiveFile, LogEventInfo ev, Int32 upcomingWriteSize, DateTime previousLogEventTimestamp, Boolean initializedNewFile)

date time, 14:06:22
File Target[logfileInfo_wrapped]: Error has been raised.
,System.IO.FileNotFoundException: Could not find file 'Info_20200707.log'.
File name: 'Info_20200707.log'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at NLog.Targets.FileTarget.ArchiveFileAppendExisting(String fileName, String archiveFileName)
   at NLog.Targets.FileTarget.DoAutoArchive(String fileName, LogEventInfo eventInfo, DateTime previousLogEventTimestamp, Boolean initializedNewFile)
   at NLog.Targets.FileTarget.TryArchiveFileAfterCloseFileAppender(String fileName, String archiveFile, LogEventInfo ev, Int32 upcomingWriteSize, DateTime previousLogEventTimestamp, Boolean initializedNewFile)

Are there any workarounds? yes/no
no

Is there a version in which it did work?
no

Can you help us by writing an unit test?
Maybe I can provide a repository with a console application write log and another console loop invoke the first console.

Think you have to provide the full output from internalLogFile="...." with internalLogLevel="Trace". So one can see the operations that results in these exceptions.
It is strange that the archive mutex is not preventing the different processes from making changes to the same file.

@snakefoot  I have created a git repository to reproduce this problem. https://github.com/ChuckTest/NLogTest
You can build the solution first, then go to fodler NLogTest\bin\Debug, and run ConsoleApp1.exe. The ConsoleApp1.exe will start 100 processes which will write log to the same file with rolling file by size.
You can check exception through the event log under "Applications and Services Logs"\NLog .

Currently I set the InternalLogger.LogLevel to NLog.LogLevel.Error
https://github.com/ChuckTest/NLogTest/blob/master/NLogTest/Program.cs#L16

Does not sound optimal with 100 processes writing to the same file. Sadly enough my computer only has 4 cores.
Sent from my Sony Xperia
---- Chuck Lu wrote ----
@snakefoothttps://github.com/snakefoot I have created a git repository to reproduce this problem. https://github.com/ChuckTest/NLogTest
You can build the solution first, then go to fodler NLogTest\bin\Debug, and run ConsoleApp1.exe. The ConsoleApp1.exe will start 100 processes which will write log to the same file with rolling file by size.
You can check exception through the event log under "Applications and Services Logs"\NLog .
[image]https://user-images.githubusercontent.com/3004057/86882967-b1d89a00-c123-11ea-8da8-d09082841924.png
Currently I set the InternalLogger.LogLevel to NLog.LogLevel.Error
https://github.com/ChuckTest/NLogTest/blob/master/NLogTest/Program.cs#L16
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/NLog/NLog/issues/4037#issuecomment-655306706, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACXZ7HFHXBHVALNKQVSPXVDR2QD7NANCNFSM4OSSIVPQ.

My laptop has only 4 cores and 8 logical processors.
What's  the maximum number of Processes can NLog support to write log to same file with rolling?

No idea where the sweet spot is. Probably very dependent on your CPU-hardware, Disk-System and operating system. But having 100 processes fighting to use the same global mutex is not good. Usually a criticalsection works ok with 4 threads, and works bad with 8 threads (Independent of CPU cores available) . Since a mutex is slower than a criticalsection, then I guess 8 processes sharing the same file is close to a maximum (merely a random guess)
Sent from my Sony Xperia
---- Chuck Lu wrote ----
My laptop has only 4 cores and 8 logical processors.
What's the maximum number of Processes can NLog support to write log to same file with rolling?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/NLog/NLog/issues/4037#issuecomment-655322383, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACXZ7HDUN4JSMC2XP4FXKWLR2QIZHANCNFSM4OSSIVPQ.

I have did another test with elasticsearch with the previous repository, and if you would like to test, you can check with https://github.com/ChuckTest/NLogTest/commit/97785bb7ee911f3a077b2313a9ce837ae35956e4 .
Thanks for your explanation,  I will try to use elastic search to avoid multi processes locking problem.

Depending on how critical the logging output is, then you continue write to file (just include ${processid} in fileName, so you get a file for each process, and use Jsonlayout) Then use LogStash or Filebeat to upload the files in the background
Sent from my Sony Xperia
---- Chuck Lu wrote ----
I have did another test with elasticsearch with the previous repository, and if you would like to test, you can check with ChuckTest/NLogTest@97785bbhttps://github.com/ChuckTest/NLogTest/commit/97785bb7ee911f3a077b2313a9ce837ae35956e4 .
Thanks for your explanation, I will try to use elastic search to avoid multi processes locking problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/NLog/NLog/issues/4037#issuecomment-655366322, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACXZ7HBH7GFJZETLTDK3AYTR2QTS5ANCNFSM4OSSIVPQ.


Changed like-dislike color to be always gray.

Getting information for which documents were liked/disliked by each user will need:

Either a call to the analytics index for each document
Make a single call for to get all the documents a user has liked or disliked

The first approach is expensive as there will be a lot of calls to the index while the second approach can be difficult to maintain and keep synchronized in memory.
After discussion with Z, it was decided to keep the color of like/dislike buttons to be gray and the change will be reflected only by the count. The user will be notified if they have previously liked/disliked a document by the toast.

Removed the comments in _card.scss and _details.scss

Codecov Report

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

@@           Coverage Diff           @@
##           master     #179   +/-   ##
=======================================
  Coverage   71.29%   71.29%
=======================================
  Files         245      245
  Lines       15560    15560
  Branches     1663     1663
=======================================
  Hits        11093    11093
  Misses       4467     4467

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 c23da17...8705064. Read the comment docs.

@tchaturvedi for future reference the standard comment is vg-# - some description

Thank you. I will keep that in mind when adding commit messages in future.


Support health checks

When adding a server to the pool, it should kick off a periodic health check. If the health check fails n times, then the server should not receive active connections.
Most load balancers will keep checking an inactive server and if it starts passing health checks in the future, it can be activated again. One concern I have with that behavior is that this proxy is for a dynamic environment it might not be feasible for servers to be removed from the pool. In that case, we have a servers that exist in the pool and that will never come back.
A few options:

Stick with normal load balancer behavior and deal with a growing list of inactive servers.
Remove a server after n health checks. This would put the onus on the backend servers to re-add themselves to the pool. I expect people will periodically re-add servers via cron or something. That seems annoying for people to do.
Nuance between a server that is unable to be connected to and a server that is able to be connected to but fails a health check. In the case where the proxy cannot connect to the server after n attempts, it would be removed permanently.

There might be other ideas too. I am wary of having a default and letting it be user configured, but maybe that is another piece to the puzzle.

I think we should let the user defines how to check the backends, with a good default.
Ideas:

having a global health checks activated: yes/no
possible rules:

just open a connection
http call

user must define an url
user can define expectations (http status...)

based on statistics. Ex: if the last requests return a 5xx with a rate > 50 % -> down
each rule can be activated / deactivated

Default: http call on / must return a 2xx status

First implementation landed in https://github.com/hjr3/alacrity/pull/62 . Moving this future enhancements to 0.2 milestone as it will cause large changes to the Pool.

The code is in a much better spot now that it is easier to enable/disable servers from a Pool. We can now proceed.


BugsnagPluginVue.constructor() types definition is wrong

The right definition should be:
declare class BugsnagPluginVue {
  constructor(Vue?: VueConstructor)
}

Thanks for this, we are currently reviewing.

Thank you.
This type definition has led me to the following workaround.
plugins: [new BugsnagPluginVue(Vue as any)],

The fix for this will be released in v7.0.1 of bugsnag-js, re-opening this issue until the release is made.

Thanks!

v7.0.1 has now been released.


Add ameba linter

Hi, Thanks for making this shard, I dig it a lot :)
This PR adds code formatting and ameba linter check to CI + cleans-up codebase a lil' (mostly from redundant return and self. calls).
Cheers!

Thanks for the help @Sija. I assume you've checked to make sure everything is still working correctly? I love the ameba linter so this is a welcome improvement.

@watzon indeed, tests are green and I've triple checked the changes to be sure there are no new bugs creeping into the codebase.

Thanks for the help @Sija!


Set default branch to next-version

Might be worth setting the default branch to next-version to eliminate the need for the "Web Fundamentals has MOVED" message in the README.

Yep - thanks! We're planning to do that on Wednesday.


The output information is not formated well

Please see the attachment.
When the app name is too long, the output is not so good. eg:java

I also believe that the new output holds too much information. (People use homebrew-cask-upgrade to find outdated apps, in the first place, and not to get a list of all their apps, even though the feature is pretty neat)
brew cu could only list the outdated apps and prompt you to update
brew cu --full could show the current output
This way brew cu behaves as a 'Check for updates'

The older output worked much better on smaller terminal windows as well
The new one is quite clunky
I'd personally much preferred the old one for that reason.

I'll third that. Before, I was getting beautiful color-coded concise info. This feels like a trip back to the 90's (or 80's) :-)

Any status update ? @buo

I thought table formatting was better because there were too many things to display (no., app name, cask name, current version, latest version, auto-update, state), but I was wrong. I'm thinking of going back to the previous color-coded concise info after reducing the number of columns or resizing the long strings like JDK versions. Thank you for your suggestions.

@buo - kudos on the beautiful new update output!
One column size issue and a feature request:

Could the Current & Latest columns be made wide enough to display all but the craziest (Java...) version numbers?
Could we have an option to only list the updates made (--quiet)?

Continuing thanks!


when 'input video in vllm deployment' will be supported?

when 'input video in vllm deployment' will be supported?
@kq-chen @ShuaiBai623

Can you provide more details

Can you provide more details

"⚠NOTE: Now vllm.entrypoints.openai.api_server does not support video input yet. We are actively developing on it.:"
when will this be finished?


Question regarding name of chromosome

Hi sorry to bother you I'm trying to use methylartist for my data, but I am encountering some problems.
First I have my chromosomes named as contig_1, contig_2 ect... in all my data is it a problem and do I need to rename them like chr1, chr2 ect...?
Second I am using a gff format from RepeatMasker (tools to annotate transposable elements) and I have this kind of data :
contig_1	RepeatMasker	dispersed_repeat	21700	21913	 3.3	+	.	ID=1;Target "Motif:RM2_rnd-1_family-0" 1666 1879
Do I need to rename anything here like maybe the ID do I need to rename it gene_id ?
Third I have done Dorado modified basecalling is it possible to use directly the ubam output of dorado to generate the methylartist region command or does it need to be aligned beforehand to a reference genome? What would then be the command lines ?
Thanks in advance, and have a nice day

Hi there, as long as the chromosome names are use consistenly across any input files you're using you should be fine (let me know if it isn't!)
The second thing, I think you sent me more details in an email, is the gff file indexed via bgzip and tabix?
An alternative to the gff file would be to use a .bed file via the --bed option, this takes a BED3+1 format i.e. chromosome, start, end, name and will plot entries as rectangles on the gene track.
Not sure what you mean by Dorado ubam but guessing you mean an unmapped bam file? Best would be to map it and use it as input via -b/--bam. Hard to give an exact command line but dorado will use minimap2 to do the mapping if you give it a reference genome via --reference. If you don't want to re-call everything you could map the .bam file (convert to fastq, map with minimap2) and merge the alignments via Picard MergeBamAlignment https://gatk.broadinstitute.org/hc/en-us/articles/360057439611-MergeBamAlignment-Picard

Thanks I will try with a bedfile, but the bed option is only available for methylartist locus is there a way to implement it for region ?

That's a good point, will implement bed input in region.

Thanks a lot ! It worked using a bed input for methylartist locus. Also as I'm working on transposable elements do you know if there is a way to not display on the plot the name of the gene/transposable element and only plot the corresponding rectangle.
This is the output I have, is it possible to put like a legend on the right side for the annotation of the transposable element ? I think it will be a lot more pleasing aesthetically  :

There is now a --hidebedlabel for both region and locus, and region supports the --bed flag.

For the other questions, it should be possible to make a legend for different categories from a .bed file though it might take awhile to get to, in the meantime you can specify the colour of a segment in the .bed in column 6 (chrom, start, end, label, strand, colour) and could then construct a legend in a vector graphics program (illustrator or similar) - not ideal I know.
When you say "reference sliding window size" do you mean the automatic setting for -s/--smoothwindowsize?

I am having issue with the "chromosome annotation also .  When I view bam with bedtools this is what I see

but when I run the command below I get an error
2024-06-11 17:59:49,101 starting methylartist with command: /users/PES0842/bebersole/.local/bin/methylartist locus -d methartBC01.txt -i NC_000022.11:c22559265-22547701
Traceback (most recent call last):
File "/users/PES0842/bebersole/.local/bin/methylartist", line 5755, in
main()
File "/users/PES0842/bebersole/.local/bin/methylartist", line 5427, in main
args.func(args)
File "/users/PES0842/bebersole/.local/bin/methylartist", line 2943, in locus
elt_start = int(elt_start.replace(',',''))
ValueError: invalid literal for int() with base 10: 'c22559265'
It appears the "c"  seems to be causing and issue in my mind because it is expecting an integer . Am I correct ?

Yes, coordinates need to be integers, is there a reason you need the "c" character in there?


Rename key Service Discovery types

This PR renames some of the core service discovery types for clarity, to better align their names with their purpose and behavior. The existing names have made me uncomfortable since I created them, but I did not want to stall progress by bikeshedding them.

Rename ServiceEndPointResolver to ServiceEndPointWatcher: this class watches for changes in a single service's endpoints and publishes those changes to listeners. The lifecycle of the class is controlled by the object which created it (through ServiceEndPointResolverFactory, which should be renamed also). When disposed, the instance stops watching for changes in service endpoints.

Rationale for the rename: Resolver is accurate, but better suited to the next class (below) and Watcher is a closer fit to the behavior and alludes to the lifetime of the object, that it actively does something while alive.

Rename ServiceEndPointResolverRegistry to ServiceEndPointResolver: this class is intended to be the main entry point for consumers performing on-demand service discovery outside of HttpClient. This class is registered as a singleton. It manages the lifetime of a ServiceEndPointWatcher for each resolved service, disposing them when they have been unused for some period of time.

Rationale for the rename: The suffix Registry does not fit well with the consumer-facing API which this class exposes (there is no registration action).

Rename IServiceEndPointResolver to IServiceEndPointProvider: this interface is implemented by the actual endpoint providers (config, DNS, pass-thru) and is consumed by ServiceEndPointWatcher. Each ServiceEndPointWatcher holds possibly multiple IServiceEndPointProvider instances and gives each a chance to modify the resulting ServiceEndPointCollection.

Rationale for the rename: These are resolvers at their core, but the ServiceEndPointResolver name seems more fit for the above class and since it does not implement this interface, I think it's best to choose a distinct name (it feels odd that ServiceEndPointResolver doesn't implement IServiceEndPointResolver when both exist). I also considered IServiceEndPointSource but Provider seemed more appropriate.

Of course, I'm amenable to naming suggestions.
For PR reviewers, it is easier to review individual commits, since the combined diff is confusing due to the A -> B + C ->A rename.
Microsoft Reviewers: Open in CodeFlow

I'm not sure I understand what a provider is.  The first two seem much clearer than the old names.

Provider is a suffix we use consistently in Microsoft.Extensions.* and Microsoft.AspNetCore.* to represent types that provide implementations to some factory-like abstraction, e.g. ILoggerProvider, IConfigurationProvider, IModelTypeProvider, ITempDataProvider, etc.

This seems important to merge

Friendly reminder that this PR is assigned to the Preview 4 milestone which is snapping in a couple of hours. Please ensure it is merged by 4pm PST in order to ensure the change will be part of Preview 4.


API gives 404 when the base URL responds with 200

API status widget on Api view gives 404 status code. At the same time API's base URL (https:///<backend_prefix)) responses with 200.

By default Status widget pings https://<host>. Consider changing this to https://<host>/<backend_prefix>. (Append API backends prefix to the URL)

Suggestion: allow the owner to switch on the monitoring. Also allow them to pick / change the URL settings. Consider giving a default.
Open issue: what to do with the monitoring icon for the APIs that are not monitored? Hide it?

Monitoring implementation has been changed to allow owner to identify which endpoint to monitor. Closing the issue


Tests for the "writes" app produce side effects on disk

Describe the bug
When tests run in packages/kit/test/apps/writes/, the route double-mount/+page.svelte is sometimes empty on disk after the tests finish. The tests pass on the run that leaves the file modified, but fail on future runs.
Reproduction
Run pnpm test a few times from packages/kit/test/apps/writes/. I wrote a quick fish script that usually shows the issue in about 10 runs:
cd packages/kit/test/apps/writes
for x in (seq 100)
  echo "Running test $x..."
  pnpm test &> /dev/null
  if git status | grep clean &> /dev/null
    echo "Working directory is clean after run $x."
  else
    echo "Working directory is dirty after run $x!"
    break
  end
end

Logs
No response
System Info
System:
    OS: macOS 13.2.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 907.83 MB / 16.00 GB
    Shell: 3.5.1 - /opt/homebrew/bin/fish
  Binaries:
    Node: 19.3.0 - /opt/homebrew/bin/node
    npm: 9.2.0 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 113.0.5672.126
    Firefox: 113.0.2
    Safari: 16.3
  npmPackages:
    svelte: 3.58.0 => 3.58.0
    vite: ^4.2.1 => 4.2.1

Severity
annoyance
Additional Information
I found the bug because I'm writing similar tests in another project and wanted to see how SvelteKit does it. I'm new to Playwright, but I think a possible cause is that Playwright runs multiple processes which execute the tests in parallel, leading to filesystem conflicts. The tests start with test.describe.configure({ mode: 'serial' });, but I think that controls how tests are run within each process rather than reducing the number of processes overall like the workers config does.
I'm not sure how the file would end up empty after the conflict.

Closing this as I was unable to reproduce the issue even after running the test 10 times.


Missing icons in Gajim

Describe the bug
There are icons missing in Gajim.
The one appearing in the screenshot should be user-info-symbolic which is found in the gnome-icon-theme-symbolic package.
It was not in nixpkgs, but I believe I got a package compiling?
See: https://github.com/werner291/nixpkgs/tree/master/pkgs/data/icons/gnome-icon-theme-symbolic
Following the lead of the Arch Linux package of the same name, I added this env.GTK_UPDATE_ICON_CACHE = "${coreutils}/bin/true"; horrible hack to patch out the gtk-update-icon-cache because that pack doesn't have a theme index, whatever that might be.
Unfortunately, the icons don't appear in Gajim despite adding that to the build-inputs... I'm stuck at that point. (I suspect my "hack" broke it; I'm kinda just doing what Arch did)
Steps To Reproduce
Steps to reproduce the behavior:

Set up a NixOS system with Plasma 5 and Gajim.

Expected behavior
Icons show up.
Screenshots

Additional context
Add any other context about the problem here.
Notify maintainers
@abbradar

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.34, NixOS, 24.11 (Vicuna), 24.11.20240620.d603719`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/xfpiyfgf6y30fxk5ngv0cjn474qfr3sj-source`

Add a :+1: reaction to issues you find important.

I have a hypothesis...
In Arch, that hack works fine because the system is managed imperatively, and that icon database update will happen eventually.
In Nix(OS), purity prevents that from working. Instead, we get that the icon database is not updated.
There's an option in gtk-update-icon-cache to not require a theme index; worth a shot maybe?

Changed it to env.GTK_UPDATE_ICON_CACHE = "${pkgs.gtk3}/bin/gtk-update-icon-cache --ignore-theme-index";
Icons do not show up either.
Not sure what to do at this point; I need someone who knows gtk better, I'm just throwing stuff at the wall to see what sticks.

FYI, I'm testing it with a flake based on the package in nixpkgs, does that matter?
{
  description = "A very basic flake";

  inputs = {
    nixpkgs.url = "github:werner291/nixpkgs?ref=master";
  };

  outputs =
    { self, nixpkgs }:
    let
      system = "x86_64-linux";
      pkgs = nixpkgs.legacyPackages.${system};
      enableJingle = true;
      enableE2E = true;
      enableSecrets = true;
      enableRST = true;
      enableSpelling = true;
      enableUPnP = true;
      enableAppIndicator = true;
    in
    {
      formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixpkgs-fmt;

      packages.x86_64-linux.default = with pkgs; with gst_all_1; python3.pkgs.buildPythonApplication {
        pname = "gajim";
        version = "1.9.2";

        src = ./.; # This is just the Gajim repo

        format = "pyproject";

        buildInputs = [
          gtk3
          gnome.adwaita-icon-theme
          gnome-icon-theme-symbolic # <- Note my addition here
          gtksourceview4
          glib-networking
        ] ++ lib.optionals enableJingle [ farstream gstreamer gst-plugins-base gst-libav gst-plugins-good libnice ]
        ++ lib.optional enableSecrets libsecret
        ++ lib.optional enableSpelling gspell
        ++ lib.optional enableUPnP gupnp-igd
        ++ lib.optional enableAppIndicator libappindicator-gtk3;

        nativeBuildInputs = [
          gettext
          wrapGAppsHook3
          gobject-introspection
        ];

        dontWrapGApps = true;

        preFixup = ''
          makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
        '';

        propagatedBuildInputs = with python3.pkgs; [
          nbxmpp
          pygobject3
          dbus-python
          pillow
          css-parser
          precis-i18n
          keyring
          setuptools
          packaging
          gssapi
          omemo-dr
          qrcode
          sqlalchemy
          emoji
        ] ++ lib.optionals enableE2E [ pycrypto python-gnupg ]
        ++ lib.optional enableRST docutils;
        #         ++ extraPythonPackages python3.pkgs;

        #   nativeCheckInputs = with pkgs;[ xvfb-run dbus ];

        preBuild = ''
          python pep517build/build_metadata.py -o dist/metadata
        '';

        postInstall = ''
          python pep517build/install_metadata.py dist/metadata --prefix=$out
        '';

        checkPhase = with pkgs; ''
          xvfb-run dbus-run-session \
          --config-file=${dbus}/share/dbus-1/session.conf \
          ${python3.interpreter} -m unittest discover -s test/gui -v
          ${python3.interpreter} -m unittest discover -s test/common -v
        '';

        # test are broken in 1.7.3, 1.8.0
        doCheck = false;

        # necessary for wrapGAppsHook3
        strictDeps = false;

        meta = {
          homepage = "http://gajim.org/";
          description = "Jabber client written in PyGTK";
          license = lib.licenses.gpl3Plus;
          maintainers = with lib.maintainers; [ raskin abbradar ];
          downloadPage = "http://gajim.org/download/";
          platforms = lib.platforms.linux;
          mainProgram = "gajim";
        };

        GIO_EXTRA_MODULES = [ "${pkgs.glib-networking.out}/lib/gio/modules" ];

      };
    };
}


WIP - improve test coverage

Improving test coverage.  Still a work in progress.  Submitting this so I can watch coveralls while I add tests.

@kapilt - this is labeled WIP since I was going to add more, but you can take it at any time if you want to get that coverage badge.

cool, i'll take it ;-) thanks!


feat: create our team page

fixes #7

@uihalagedara @ThusharaX

@sahanperera00 can you add some vertical margin in mobile view?

@sahanperera00 can you add some vertical margin in mobile view?

done


Elementum for Android deletes torrent file from 'add torrent's menu

I download and store torrents and play them with Elementum through the 'add torrent' option, selecting the torrent file. However, once I've started the torrent, it is automatically deleted. I want the torrent file to be left alone, how do I do this?

No log - no help.

How do you upload a log?

@alcuindeverellmoras http://elementum.surge.sh/contribute/log/#easy-one

paste.kodi.tv/pakinanuwa

paste.kodi.tv/qayucerugu

Posted debug/bundle and debug/all as I didn't know which one you needed

@alcuindeverellmoras Kodi has only current execution log. You need to reproduce the issue, then make a log file.

What exactly do I do to reproduce the issue? It deletes a torrent file from my device everytime I play it through 'add torrent'. I want it to stop deleting the torrent.

You need to catch a bug and then upload the log.

I don't have a bug exactly. I just want Elementum for Android to stop deleting the torrents that I download, when I play them. I want them to stay in the folder. I want to keep my .torrent files saved.

Ok. You don't want to provide required information. I don't have that bug.

I want your help, I want to know how to stop Elementum for Android from deleting .torrent files. Please help me, it's not a bug and I don't know what settings to change because I've tried so many times and it doesn't help.

@alcuindeverellmoras it is clear what you need to make.
Open Kodi. Make what you did to encounter a "bug". Make log file.

paste.kodi.tv/lujujiwori

paste.kodi.tv/rucetijehe


Input parameters for runtime-images and runtimes are not available

Describe the issue
Input parameters for runtime-images and runtimes are not available when spawning Elyra in JH.
I'm not sure why this behavior happens. I run the image [1] locally and everything works fine.
To Reproduce
Steps to reproduce the behavior:

Go to https://jupyterhub-opf-jupyterhub.apps.zero.massopen.cloud/
Spawn image s2i-lab-elyra:v0.0.6

Screenshots or log output
See: https://github.com/operate-first/support/issues/146
Expected behavior
All input parameters are available. Workaround currently is to use elyra cli to add runtimes and runtime-images.
Deployment information
Describe what you've deployed and how:

Elyra version: 2.0.1
Operating system: ubi 8
Installation source: [1]
Deployment type: Open Data Hub v1.0.5

References
[1] https://quay.io/repository/thoth-station/s2i-lab-elyra?tab=tags

@pacospace Can you please retrieve the JupyterHub log file (from the pod named jupyterhub-<X>-<UUID>) and the notebook server log file (from the pod named jupyterhub-nb-<UUID>)? I deployed JupyterHub/Elyra using the v1.0.5 ODH manifest yesterday in my cloud environment and things seem to work as expected.

I'm unable to recreate the problem in the specified environment. The metadata editor  displays correctly.

No explicit bug fix should be required because the issue should already be addressed in later releases. The workaround is to not use the command palette (<cmd/ctrl>  ) to open the runtime configuration wizard. Instead, select the tab marked Runtimes from the sidebar. (If there's another one named Kubeflow Pipelines runtimes ignore it - that's the one that does not work.)

No explicit bug fix should be required because the issue should already be addressed in later releases. The workaround is to not use the command palette (<cmd/ctrl> ) to open the runtime configuration wizard. Instead, select the tab marked Runtimes from the sidebar. (If there's another one named Kubeflow Pipelines runtimes ignore it - that's the one that does not work.)

thanks @ptitzler! and what about runtime images which is not available in the sidebar when starting Elyra?

and what about runtime images which is not available in the sidebar when starting Elyra?

See https://github.com/opendatahub-io/s2i-lab-elyra/issues/22.

I did try a local installation of version 2.0.1 (from PyPI) and was unable to recreate the problems. This is somewhat concerning because this might indicate that there is something special about the container image in ODH that might cause later images to show similar behavior as well. We need to explicitly test this scenario before we roll out the new image version.

@ptitzler - that issue is for the default runtime metadata instance not being generated.
@pacospace  - did you mean runtime metadata or runtime images? The runtime images configuration can be accessed using: https://elyra.readthedocs.io/en/latest/user_guide/runtime-image-conf.html#managing-runtime-images-with-the-user-interface

@ptitzler - that issue is for the default runtime metadata instance not being generated.
@pacospace - did you mean runtime metadata or runtime images? The runtime images configuration can be accessed using: https://elyra.readthedocs.io/en/latest/user_guide/runtime-image-conf.html#managing-runtime-images-with-the-user-interface

right, that is what we do usually, but the issue here https://github.com/operate-first/support/issues/146 is for runtimes and runtime-images when trying to add a new one from the UI:

@pacospace

I run the image [1] locally ...

What's the exact command you are running?

@pacospace

I run the image [1] locally ...

What's the exact command you are running?

podman run -p 8888:8888 quay.io/thoth-station/s2i-lab-elyra:v0.0.6 jupyter lab --debug

Thank you! I confirmed that the problem is only re-creatable using that image
$ docker run -p 8888:8888 quay.io/thoth-station/s2i-lab-elyra:v0.0.6 jupyter lab --debug --ip=<IP_ADDRESS> --port=8888

but it's not re-creatable using the official v2.0.1 Elyra container image
$ docker run -it -p 8888:8888 docker.io/elyra/elyra:2.0.1 jupyter lab

or a locally installed PyPI version.

I ran the installation verification commands in the container image
$ jupyter serverextension list
config dir: /opt/app-root/etc/jupyter
    jupyter_lsp  enabled
    - Validating...
      jupyter_lsp 1.1.3 OK
    jupyter_resource_usage  enabled
    - Validating...
      jupyter_resource_usage  OK
    jupyterlab  enabled
    - Validating...
      jupyterlab 3.0.7 OK
    jupyterlab_requirements  enabled
    - Validating...
      jupyterlab_requirements 0.4.7 OK
    nbdime  enabled
    - Validating...
      nbdime 3.0.0.b1 OK
    jupyter_nbextensions_configurator  enabled
    - Validating...
      jupyter_nbextensions_configurator 0.4.1 OK

In the following output note @elyra/metadata-extension v2.1.0-rc.1 enabled OK. This is definitely not the right extension for this version of Elyra!
$ jupyter labextension list
JupyterLab v3.0.7
/opt/app-root/share/jupyter/labextensions
        jupyterlab_requirements v0.4.7 enabled OK (python, jupyterlab-requirements)
        @krassowski/jupyterlab-lsp v3.3.1 enabled OK (python, jupyterlab_lsp)
        @jupyter-server/resource-usage v0.5.0 enabled OK (python, jupyter-resource-usage)
        @jupyterlab/git v0.30.0-beta.1 enabled OK (python, jupyterlab-git)

Other labextensions (built into JupyterLab)
   app dir: /opt/app-root/share/jupyter/lab
        @elyra/code-snippet-extension v2.0.1 enabled OK
        @elyra/metadata-extension v2.1.0-rc.1 enabled OK
        @elyra/pipeline-editor-extension v2.0.1 enabled OK
        @elyra/python-editor-extension v2.0.1 enabled OK
        @elyra/theme-extension v2.0.1 enabled OK
        nbdime-jupyterlab v2.1.0-beta.1 enabled OK

$ jupyter server extension list
Config dir: /opt/app-root/src/.jupyter

Config dir: /opt/app-root/etc/jupyter
    elyra enabled
    - Validating elyra...
      elyra 2.0.1 OK
    jupyter_resource_usage enabled
    - Validating jupyter_resource_usage...
      jupyter_resource_usage  OK
    jupyter_lsp enabled
    - Validating jupyter_lsp...
      jupyter_lsp 1.1.3 OK
    jupyterlab enabled
    - Validating jupyterlab...
      jupyterlab 3.0.7 OK
    jupyterlab_git enabled
    - Validating jupyterlab_git...
      jupyterlab_git 0.30.0b1 OK
    jupyterlab_requirements enabled
    - Validating jupyterlab_requirements...
      jupyterlab_requirements 0.4.7 OK
    nbclassic enabled
    - Validating nbclassic...
      nbclassic  OK
    nbdime enabled
    - Validating nbdime...
      nbdime 3.0.0.b1 OK

Config dir: /usr/local/etc/jupyter

@pacospace Since the problem only surfaces in the s2i image we'll need to discuss how that image was built. Can you please advise who we should reach out to so we can set up a walkthrough and q&a meeting?

@pacospace Since the problem only surfaces in the s2i image we'll need to discuss how that image was built. Can you please advise who we should reach out to so we can set up a walkthrough and q&a meeting?

Thanks @ptitzler for looking into this.
I add here:
@harshad16 from Thoth Team that created the automated pipelines for building images (e.g https://github.com/opendatahub-io/s2i-lab-elyra)
@vpavlin from ODH team

Thanks, @pacospace  for thoroughly tracking the issue.
We would also revisit the build and see why the wrong extension version is installed on the image.

fwiw, this is the output we are getting if we run those validation commands in the official Elyra 2.0.1 container image we've published:
$ jupyter serverextension list
config dir: /opt/conda/etc/jupyter
    jupyter_resource_usage  enabled
    - Validating...
      jupyter_resource_usage  OK
    jupyterlab  enabled
    - Validating...
      jupyterlab 3.0.5 OK
    nbdime  enabled
    - Validating...
      nbdime 3.0.0.b1 OK
    nbgitpuller  enabled
    - Validating...
      nbgitpuller 0.9.0 OK

$ jupyter server extension list
Config dir: /home/jovyan/.jupyter

Config dir: /opt/conda/etc/jupyter
    elyra enabled
    - Validating elyra...
      elyra 2.0.1 OK
    jupyter_lsp enabled
    - Validating jupyter_lsp...
      jupyter_lsp 1.1.1 OK
    jupyter_resource_usage enabled
    - Validating jupyter_resource_usage...
      jupyter_resource_usage  OK
    jupyterlab enabled
    - Validating jupyterlab...
      jupyterlab 3.0.5 OK
    jupyterlab_git enabled
    - Validating jupyterlab_git...
      jupyterlab_git 0.30.0b1 OK
    nbclassic enabled
    - Validating nbclassic...
      nbclassic  OK
    nbdime enabled
    - Validating nbdime...
      nbdime 3.0.0.b1 OK

Config dir: /usr/local/etc/jupyter

$ jupyter labextension list
JupyterLab v3.0.5
/opt/conda/share/jupyter/labextensions
        @jupyterlab/git v0.30.0-beta.1 enabled OK (python, jupyterlab-git)
        @krassowski/jupyterlab-lsp v3.2.0 enabled OK (python, jupyterlab_lsp)
        @jupyter-server/resource-usage v0.5.0 enabled OK (python, jupyter-resource-usage)

Other labextensions (built into JupyterLab)
   app dir: /opt/conda/share/jupyter/lab
        @elyra/code-snippet-extension v2.0.1 enabled OK
        @elyra/metadata-extension v2.0.1 enabled OK
        @elyra/pipeline-editor-extension v2.0.1 enabled OK
        @elyra/python-editor-extension v2.0.1 enabled OK
        @elyra/theme-extension v2.0.1 enabled OK
        nbdime-jupyterlab v2.1.0-beta.1 enabled OK

Disabled extensions:
    @jupyterlab/launcher-extension (all plugins)

I suspect the reason we are seeing a 2.1.0 version of the extension is due this addition in the image build for v0.0.6
https://github.com/opendatahub-io/s2i-lab-elyra/commit/b4cfc4f826c12737207de192525ccd6358ef4eef
Elyra packages the front end extensions into our wheel so the user should not need to explicitly install the node packages themselves : https://github.com/elyra-ai/elyra/blob/2421627dab0565e5a72eb50032bfed75950e2b5f/setup.py#L130

This should be resolved in v0.0.7 and later. I checked the installed extension version numbers and they appear okay. I also wasn't able to reproduce the issue using the v0.0.7 image.

The v0.0.7 image is now available in ODH manifest repository v1.0.9: https://github.com/opendatahub-io/odh-manifests/tarball/v1.0.9


POLIO-1525 POLIO-1526: Target population

Target population filed should move from risk assessment  tab to round tab like in the mock-up
Also Calendar popper should display target population , description  + remove budget and vaccine
Related JIRA tickets : POLIO-1525 POLIO-1526
Self proofreading checklist

[ ] Did I use eslint and black formatters
[ ] Is my code clear enough and well documented
[ ] Are my typescript files well typed
[ ] New translations have been added or updated if new strings have been introduced in the frontend
[ ] My migrations file are included
[ ] Are there enough tests
[ ] Documentation has been included (for new feature)

Changes

change calendar serializers to return target population per round and campaign description
move target population filed to round tab
review calendar popup to add/remove fields

How to test

Edit a campaign description and change the target population for a round
Open calendar and click on the round you just changed
you should see target population and description on the popup

Print screen / video

@beygorghor , I'm not a expert in UX but I have a suggestion on the roundForm. Here is my suggestion:

If there is not enough room to have it all together, I can ask if we should move or even remove the mop-up start and end dates. They are never being filled @beygorghor


Manifest version validation error

Hello,
When i use the manifest version 2020-01-01 present in documentation v1.1.0 like:
---
region: <String>
version: 2020-01-01
...

CodeBuild failed to validate the manifest:
ERROR - validation.invalid
ERROR -  --- All found errors ---
ERROR - ["Enum '2020-01-01' does not exist. Path: '/version'"]
...
Phase complete: BUILD State: SUCCEEDED

The build succeeded, perhaps it should fail ?
In the scripts archive downloaded by the CodeBuild project, we only have the version for v1.0.0 available.
# validation/manifest.schema.yaml:6
  "version":
    type:      date
    required: True
    enum: [2019-12-01]

Can you update the specifications or modify the documentation to remove this error ?

@Maniarr Hello. We have fixed this in our latest release of CFCT (V1.2)


[Build] Fixed an exit code 9009 encountered during the build pipeline

PR Details
A partial fix of #1939, fixing all issues I encountered when building Stride.Core.AssemblyProcessor. I am still unable to build Stride.sln as I am encountering errors when generating satellite assemblies (the localization assemblies), but I am submitting this pull request now as it appears that this issue may interest other developers.
Description
Adding " to the .csproj file commands that are failing due to spaces in the user name.
Related Issue

#1939

Motivation and Context
I am unable to contribute to the project since it can't build on my machine, which happens to have a space in the user name until issue #1939 is fixed, so I'm working through fixing it.
Types of changes

[ ] Docs change / refactoring / dependency upgrade
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[ ] My change requires a change to the documentation.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

The changes overlap those in #1904, although that one doesn't quote around ILRepack - maybe it's best to close this one and leave a comment over in that PR if that change is necessary ?

Noted and done in #1904

Awesome! I've added changes to the pull request and renamed it to reflect the final changes required for the build to work on a system with a space in the username.

Thanks !


Expose IGatherLayer in dynamo.conversion.impl

Already used in #2403. Need to take out the gather layers and add it to impl/

#2421


Showcase bug fix: adding required roles for uberfire showcase.

@csadilek pointed out that uberfire showcase is not working after https://github.com/uberfire/uberfire/commit/a4ab262b24eaef0e7899af411afd2836085b93c3 .
This PR is to put https://github.com/uberfire/uberfire/commit/a4ab262b24eaef0e7899af411afd2836085b93c3 solution in master.

+1

thanks @csadilek


fix(docs): Grammatical error correction

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #54247

Minor change in the text description to correct the error related to usage of article in English

Thank you for your interest in contributing to freeCodeCamp.
Another PR was just approved and merged that addresses the same issue
https://github.com/freeCodeCamp/freeCodeCamp/pull/54251
So we are going to close this one.
But we encourage you to look into other first timer or help wanted issues.
Happy contributing.


fix problem with CVE-2021-3520

This change should help fix the problem with https://nvd.nist.gov/vuln/detail/CVE-2021-3520

@chenghlee or @katietz It looks like upstream doesn't yet have a fix released. I'm not quite sure what our policy on this is. Do we want to maintain temporary patched version or wait until upstream releases a fix for this high severity issue?
See:
lz4/lz4#972

Before we merge this in I want to make sure it goes through our usual build and test process. I'll hold this open until this is built and released.
@skupr-anaconda and @varlackc if you have time during your PBS Review process this is a good one to build.

CVE-2021-3520.patch is failed when I built the recipe.
I recommend using the format for a patch like this one https://github.com/lz4/lz4/commit/8301a21773ef61656225e264f4f06ae14462bca7.patch
I'll create a new PR with some enhancements in the recipe and comments about the patch

@chenghlee @remkade The new PR for review https://github.com/AnacondaRecipes/lz4-c-feedstock/pull/2

Merged https://github.com/AnacondaRecipes/lz4-c-feedstock/pull/2


We can't go back from the main page

When we try to go back from the main page from this link : https://www.paperbrain.study/search , we are not able to go back and welcome message pops ups. When try to click back button, welcome key appears multiple time. We can't exit this page

@nawed2611 .I would like to fix this.

I want to work on this issue as a contributor.
Pleasure Assign so that I can show my skills under GSSoC'23.

this is our main page, this is the page users should see when they are logged in.
Let me know if you have anything else on mind


Update social card and remove some boilerplate

Basically just that:

I caught the docusaurus one in slack and came to tell you all about this. I was too late! Congrats on the docusaurus and website. Looks nice.


code generation covering all webidl

https://github.com/EbramTawfik/GeckoFX/issues/3
Is it possible to wrap everything?

Possibly. I was looking at typescript instead of WebIDL (e.g. https://github.com/microsoft/TypeScript/blob/main/lib/lib.dom.d.ts) as TS is much closer to C# than WebIDL like https://searchfox.org/mozilla-central/source/dom/webidl/Window.webidl

Isn't the typescrpt generated from webidl? @yoshiki-okawa

Maybe we could use this to generate the c# interop code?  Am I looking at this right?
https://github.com/jsdom/webidl2js

or this
https://github.com/microsoft/TypeScript-DOM-lib-generator

What I mean is that I think it is possible to do code gen based on https://github.com/microsoft/TypeScript/blob/main/lib/lib.dom.d.ts to cover pretty much all WebIDL. lib.dom.d.ts is generated from MDN Web APIs (https://developer.mozilla.org/en-US/docs/Web/API) but pretty much same as WebIDL.

Got it, I understand.  But, would this be easier than changing
https://github.com/microsoft/TypeScript-DOM-lib-generator
to generate c# rather than typescript?  I think it already iterates the webidl tree?  Or is there something else I'm missing?

Either way would work but I think code gen based on lib.dom.d.ts would be easier than understanding and modifying the generator.

@yoshiki-okawa is this more in line w/ your thinking?  From what I can tell, dart syntax looks a lot like c#?  If I'm not mistaken, this project is generating dart wrappers from typescript typedefinitions?
https://github.com/Blimster/babylon_dart_gen

I'm wondering if there will also be demand in the near future for wrapping c++ w/ c# pinvoke wrappers?  When using webassembly?
https://emscripten.org/docs/porting/connecting_cpp_and_javascript/WebIDL-Binder.html
(ie kill two birds w/ one stone)

yes babylon_dart_gen is pretty much what's in my mind.
regarding c++, if you are talking about c# -> JS -> c++, I cannot see benefit of it.

my thinking was generating c# -> c++ pinvoke wrappers, where the c++ api is described in webidl.  but the more I think about it, this sort of thing is probably better filled by something like protobuf.


Write a GO program to print diamond pattern

Description
Write a GO program to print diamond pattern
Input  : 5

Output :
    *
   ***
  *****
 *******
*********
 *******
  *****
   ***
    *

How to contribute

Save the solution in program/print_diamond_pattern.go file
Add print_diamond_pattern.go file in print-diamond-pattern folder

!assign


Prevent Select component to emit twice on value change

Setup

Rancher version: 2.6.5
Browser type & version: Any

Describe the bug
The Select component emits @input twice on value change.
To Reproduce
Open any view with Select and select a value
Result
Expected Result
Single event and related side effects, e.g. HTTP requests.
Screenshots

Additional context
Create an unit test to verify correct expectation.

@richard-cox this has dev-validate. Can we move it forward to Done? It has been lingering on testing for quite a while.


[New Feature Request] Allowing shadowsocks-go server's outgoing request using socks5 proxy

Allowing shadowsocks-go server's outgoing request using socks5 proxy would effectively create shadowsocks proxychains which is harder to detect.

You can put up an proposal in ss org


Quarantine asyncio tests when measuring Cython coverage

What do these changes do?
Quarantine asyncio tests when measuring Cython coverage to avoid coverage errors under Cython tests.
Related issue number

Vy case failed due to
TypeError: get_object(): incompatible function arguments. The following argument types are supported:
    1. (self: vineyard._C.IPCClient, object_id: vineyard._C.ObjectID) -> vineyard._C.Object

Invoked with: <vineyard._C.IPCClient object at 0x7f94d98307f0>, None

not related to changes in this PR.


Can't install the ARM Template extension in VS Code

Got this message:
[2021-11-29 11:49:32.377] [renderer1] [error] XHR failed: Download: XHR failed

@stevenbowler Thanks for taking the time to report this.  Did this occur once, or is this occurring every time and blocking you?

It is occuring every time, only with ARM Tools extension msazurermtools.azurerm-vscode-tools.  All other extensions so far installing ok, currently have 7 Microsoft blue check extensions installed.   Thanks for the follow-up.  Cheers.

Thought I could bypass the problem by installing Azure Tools extension ms-vscode.vscode-node-azure-pack, which includes ARM tools extension; however, same error.

resolved, was a local firewall/whitelist setting.

Thanks!  I appreciate you letting us know, may help others with the same problem.


memoryLimit reached while writing

Description
I'm developing a PHP application that handles image uploads to a server. The application is straightforward and primarily serves as a testbed for using Traefik and its plugins.
While integrating the Coraza plugin with Traefik, I encountered the following error:
ERR Failed to read request body tx_id="MgnMwDtswTYfBQTgNZy" error="memoryLimit reached while writing" entryPointName=https middlewareName=coraza-owasp@file middlewareType=wasm routerName=php_uploader@docker
if the image is bigger than 1MB
and:
DBG github.com/traefik/traefik/v3/pkg/server/service/proxy.go:100 > 500 Internal Server Error error="net/http: HTTP/1.x transport connection broken: http: ContentLength=113348 with Body length 0"
If the image is smaller than 1MB
Steps to reproduce
The PHP app:
<?php

if(isset($_POST) && isset($_POST['submit']) && isset($_FILES) && isset($_FILES['files'])) {
    $email = $_POST['email'];
    create_dir_if_not_exists("./uploads/$username");
    $total = count($_FILES['files']['name']);
    $isOk = true;

    for($i = 0; $i < $total; $i++) {
        $tmp_file = $_FILES['files']['tmp_name'][$i];

        if(!is_acceptable_file($tmp_file)) {
            return;
        }

        if($tmp_file != "") {
            $new_fil = "imagine code here";
            $isOk &= move_uploaded_file($tmp_file, $new_file);
        }
    }
    // Redirect...
}
?>
<html>
    <! -- imagine the rest of the code here -->
    <form action="/" method="post" enctype="multipart/form-data" >
                    <label for="email">Email </label>
                    <input type="email" id="email" name="email" required/>
                    <label for="files"> File(s) to send:</label>
                    <input type="file" name="files[]" id="files" multiple accept="image/*" required />
                </div>
                <button type="submit"name="submit"> Upload Images !</button>
    </form>
</html>

and the following labels:
        labels:
            - "traefik.enable=true"
            - "traefik.http.routers.php_uploader.rule=Host(`localhost`)"
            - "traefik.http.services.php_uploader.loadbalancer.server.port=80"
            - "traefik.http.routers.php_uploader.entrypoints=https"
            - "traefik.http.routers.php_uploader.tls=true"
            - "traefik.http.routers.php_uploader.middlewares=coraza-owasp@file,cloudflarewarp@file"

The Traefik:
v3.1.2 (image id: dfdbdfae3fb3)
The Coraza middleware:
v0.2.2
http:
    middlewares:
        coraza-owasp:
            plugin:
                coraza:
                    directives:
                        - Include @coraza.conf-recommended
                        - Include @crs-setup.conf.example
                        - Include @owasp_crs/*.conf
                        # I tried to disable the rule that stops me
                        - SecRuleRemoveByTag 'OWASP_CRS/POLICY/SIZE_LIMIT'
                        - SecRuleEngine On

Expected result
I should have the images uploaded to my server, the .ini file is edited to allow so and it works without the Coraza middleware.
Actual result
I have this error:
ERR Failed to read request body tx_id="MgnMwDtswTYfBQTgNZy" error="memoryLimit reached while writing" entryPointName=https middlewareName=coraza-owasp@file middlewareType=wasm routerName=php_uploader@docker

or
DBG github.com/traefik/traefik/v3/pkg/server/service/proxy.go:100 > 500 Internal Server Error error="net/http: HTTP/1.x transport connection broken: http: ContentLength=113348 with Body length 0"

And the server returns a 500.

Update:
I figured out that it's linked to the issue #280.
If you simply disable the body processing (SecRequestBodyAccess Off), it works fine.

Hey, reading about Traefik and Coraza middleware v0.2.2 makes me think that the issue belongs to the http-wasm connector (here is the proxy-wasm one, similar names, but different ABI and Coraza connector): https://github.com/jcchavezs/coraza-http-wasm


Upgrade typescript and @typescript-eslint/*

Arg, this brings us in trouble with top-level await in the cli. Will investigate.

Here we go


Configure languageVersion via toolchain

Follow up #5614.
https://kotlinlang.org/docs/gradle-configure-project.html#gradle-java-toolchains-support
https://jakewharton.com/build-on-latest-java-test-through-lowest-java

The solution might be Build on latest Java, test through lowest Java, but there is a NoSuchMethodError in detekt-compiler-plugin test
CompilerTest > with a source file that contains violations() FAILED
    java.lang.NoSuchMethodError: 'void org.jetbrains.kotlin.cli.common.arguments.K2JVMCompilerArguments.setSingleModule(boolean)'
        at app//com.tschuchort.compiletesting.KotlinCompilation$commonK2JVMArgs$1.invoke(KotlinCompilation.kt:359)
        at app//com.tschuchort.compiletesting.KotlinCompilation$commonK2JVMArgs$1.invoke(KotlinCompilation.kt:300)
        at app//com.tschuchort.compiletesting.AbstractKotlinCompilation.commonArguments(AbstractKotlinCompilation.kt:133)
        at app//com.tschuchort.compiletesting.KotlinCompilation.commonK2JVMArgs(KotlinCompilation.kt:300)
        at app//com.tschuchort.compiletesting.KotlinCompilation.compileJvmKotlin(KotlinCompilation.kt:488)
        at app//com.tschuchort.compiletesting.KotlinCompilation.compile(KotlinCompilation.kt:664)
        at app//io.github.detekt.compiler.plugin.util.CompilerTestUtils.compile(CompilerTestUtils.kt:21)
        at app//io.github.detekt.compiler.plugin.CompilerTest.with a source file that contains violations(CompilerTest.kt:11)

The test task is currently disabled on detekt-compiler-plugin, so these auto generated tasks should be disabled on that project too.

Disabled. Let's see the impacts on build time.

Yeah that was going to be my next point, but I wanted to see the actual CI runtimes first.
They're not good (which is expected). The loss of parallelism for test execution on the different JVM versions really hurts. This tradeoff isn't worth it just to use toolchains.

The loss of parallelism for test execution on the different JVM versions really hurts.

+1 for this. I'd rather keep explicit Java versions in the CI matrix as it's also easier for users to understand which version of Java broke

Agreed, I'll leave this PR open until we find new way to optimize.

I'm not sure why builds on Windows are still failing after applying foojay-resolver-convention, but the build time on Ubuntu looks resonable.

It looks fine for now.

Is this PR still blocked? Could we make a call on whether to move forward or to close this?

My 2 c here: I'd love us to use jvmToolchain here but I'm not a big fan on adding yet another Gralde plugin to handle the Win case. So I'd rather close this for now and get back to it?

I'm going to close this, though not because of the foojay plugin (that's essentially a requirement to use toolchains outside of controlled environments where JDKs are all pre installed).
Instead I'd like to wait until this is ready later this year: https://github.com/gradle/build-tool-roadmap/issues/61
We can then just use a standard config to set up the test suites instead of developing a custom one. Things are working ok as they are so there's no real reason to switch yet.

Warnings

:warning:
It looks like this PR contains functional changes without a corresponding test.

:warning:
This PR is approved with no milestone set. If merged, it won't appear in the detekt release notes.

  Generated by :no_entry_sign: dangerJS against e6c732989942ff0cac936c69a3177d2be4ec7768


Handling data marked dead

Long drive from IN to PA gave me time to think on a issues we will face.  One I came up with is that we should give some thought to how to uniformly handle data killed = marked dead.   In seismic reflection processing standard practice is to carry such data along as baggage.  The reason in seismic reflection processing are twofold:  (1) multichannel recording and the concepts of a section make the matrix a standard conceptual model for data and if a matrix has a dead column/row it cannot just be deleted; and (2) an implicit assumption in all reflection data acquisition is that killed data are a small fraction of the data set.  Both of these properties are rarely appropriate with earthquake data.  Hence, carrying along data flagged as dead is a waste of resources, particularly if the volume of dead is a significant fraction of the data.
I think a way to handle this is to define a (python) function to handle data marked killed, remove them from the datastream, but record the reason they were killed.  I have the perfect name for this function given the origins of the name python:  bring_out_your_dead.   If you don't get the joke watch Monty Python's "In Search of the Holy Grail" and you will - a perfect match to the origins of the name for python.   Could be one function few users will forget the name.
Some issues:

The obvious way to preserve what happened is to have the function fetch and save the elog of the data being deleted.   I think we have a prototype for this already in the mongo db handle.
I'm not sure how this would interact with a scheduler like SPARK.  I think you could characterize this as a reduce operator but with a one to nothing reduction.   Does SPARK have a mechanism for this construct?
This would also need to have a history preservation step for data with history defined.   I think that too would be like the elog preservation and would invoke the same save methods for live data except the chain would always end at the kill.

Thoughts?

lol, I had to search for that film, but I can totally see it is quite a "pythonic" name.
I think the way to do it is to have a filter operation that selects all the dead traces, and then have a database call to save the elogs of them. The former could be a function in our parallel API, and the latter need to be implemented in our database API as a generic function like save_elogs.

I was thinking about the same thing.  Wanted to get it in your head since you guys are working on the parallel api right now and it would seem a thing to include to reduce data volume dramatically in some workflows.


🪲[Bug]: hamburger icon needs to be replaced with close icon

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Hello @Abidsyed25 please assign this issue to me under gssoc 24

@kapilG0 ok


Can't add Keybinding with 5 key

VSCode Version: Version 1.26.0-insider (1.26.0-insider)
OS Version: macOS High Sierra 10.13.5

Steps to Reproduce:

Go to keyboard shortcuts
Setup a shourtcut
Try to use cmd+alt+shift+ctrl+q
The last character will be ignored
Manually edit keybindings.json
Try alt+cmd+ctrl+shift+q as key
It won't work

Does this issue occur when all extensions are disabled?: Yes

@Valetudox Does this keybinding reach VS Code ?
What does VS Code detect when you press the desired key combination?

The hotkey editor doesn't get the 'q' key, only the first 4

sorry, i didn't want to close

@Valetudox This means that VS Code is not receiving the keybinding. You might have something at your OS level that is eating up that keypress. Were you successful in using this keybinding in any other software on the same machine ?

@alexandrudima It doesn't work in other editor too. Sorry for the interruption.


Translate registration form from English to ESP or PT

Hi @reshamas ,
I would like to work on this issue. It would be great if you could assign it to me!
Thanks

Closing this issue since we are not using the registration form.


use xz compression for .deb/.rpm packages

supported since many years
binaries will be much smaller (about 50%)

I tested this on a couple of older distributions, the only one that doesn't support xz rpms is CentOS 5, but our rpm package doesn't work for it anyhow.


ProcessWord{,s} removes quotes

When using buildah, the content of specified labels will be altered in a way that specified quotes get removed. This can lead to various kinds of bugs and undesired side-effects.
If, for instance, a Dockerfile specifies LABEL RUN /usr/bin/foo --string-arg "a string arg" removing the quotes is likely to cause issues when the image is being used in special contexts (e.g., podman container runlabel).
This issue affects Podman and Buildah. Note that Docker has the very same issue, which I consider to be a bug for the reasons mentioned above. I had a look at the code and it seems fixable but I am not overly familiar with it and want to collect some feedback before.
Cc @baude @mheon @TomSweeneyRedHat @rhatdan
@baude, we could reuse the functions for runlabel's env replacements.

Yes this could be a big problem.

@rhatdan, can we get this fixed? It's blocking progress for podman-container-runlabel.

Sure.  PR's welcomed. :^)

Sure. PR's welcomed. :^)

Just added it to my todo ;-)

Starting to work on this now (Cc @baude)

Closing as described in #111.


Vim9: cannot declare and assign to constant variable separately

I was reading about const correctness via this comment, and thought about trying it in Vim9 script, but quickly realized that it was too annoying.
Suppose we have a variable whose value depends on some test:
vim9script
var n: number
if true
    n = 1
else
    n = 2
endif
echomsg n

1

Now, suppose we want to make sure the variable does not mutate.  We can't use :const:
vim9script
const n: number
if true
    n = 1
else
    n = 2
endif
echomsg n

E1021: Const requires a value

Instead, we need :lockvar:
vim9script
var n: number
if true
    n = 1
else
    n = 2
endif
lockvar n
echomsg n

1

But if we allowed :const to not be followed by a value, the code would be easier to write (no need of :lockvar), and the intent would be easier to understand.  Consider the fact that :lockvar could be written much later, and that while we're reading the code, as long as we don't find :lockvar, we are unaware that it's immutable.
Could we allow :const to be simply followed by a variable name and a type; then later lock the variable as soon as we assign to it some value?
FWIW, that's exactly what they seem to do in rust.  Over there, variables are immutable by default.  Which is why this code gives an error:
// written in /tmp/rs.rs
fn main() {
    let x;
    x = 1;
    x = x + 2;
    println!("x is: {:?}", x);
}

$ mkdir -p /tmp/build && rustc --out-dir /tmp/build/ /tmp/rs.rs && /tmp/build/rs
error[E0384]: cannot assign twice to immutable variable `x`
 --> /tmp/rs.rs:4:5
  |
2 |     let x;
  |         - help: consider making this binding mutable: `mut x`
3 |     x = 1;
  |     ----- first assignment to `x`
4 |     x = x + 2;
  |     ^^^^^^^^^ cannot assign twice to immutable variable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0384`.

But they can still separate the declaration from the assignment:
// written in /tmp/rs.rs
fn main() {
    let x;
    x = 1;
    println!("x is: {:?}", x);
}

$ mkdir -p /tmp/build && rustc --out-dir /tmp/build/ /tmp/rs.rs && /tmp/build/rs
x is: 1

You can always do something like this:
const n: number = Is_true() ? Set_value(1) : Set_value(2)

And the complex logic is hidden inside the three functions. This also makes the code more readable.

That's a nice workaround.  I'll keep it in mind.  But we still need to create at least one or two intermediate functions (here Is_true() and Set_value()).  It would be nice for the Vim9 syntax to let us separate the declaration from the assignment.

Rust is not a good example, it makes things more difficult (with the excuse that it's safer).
You should compute the value first, then declare the const:
vim9script
var val: number
if condition
    val = 1
else
    val = 2
endif
const n = val

It does require an extra temporary variable, but the big advantage is that it's clear where the constant is set and
there can be no mistakes with that.
If we would allow first declaring the constant without a value, and then later set the value, this can get very complicated if it's not a simple if-then-else.  Also, setting the value can come much later, there could be a try/catch in between, etc.

That's fair.  I didn't think of all the implications.  Closing the issue then.


We can add an assist feature

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
Hey @apu52 we can add an assist feature at the right bottom of the landing page which improves the UX of the website.
Use Case
improves the UX of the website allowing better interaction of user with the website.
Benefits
improves the UX of the website allowing better interaction of user with the website.
Add ScreenShots

Priority
High
Record

[X] I have read the Contributing Guidelines
[ ] I'm a GSSOC'24 contributor
[X] I'm a VSOC'24 contributor
[X] I have starred the repository

@KavyaBS123 I have assigned u .But first please try to complete previously assigned pR's.

@KavyaBS123  as VSOC time period is over , I am closing this issue


Refactor: Nix flake cleanup

Description
Clean up Nix code. In particular, I've moved the haskell.nix stuff into flake.nix, and removed most of the code that's unused or overly complex.
Checklist

[ ] Commit sequence broadly makes sense
[ ] Commits have useful messages
[ ] New tests are added if needed and existing tests are updated
[ ] Any changes are noted in the changelog
[ ] Code is formatted with fourmolu on version <IP_ADDRESS> (which can be run with scripts/fourmolize.sh)
[ ] Self-reviewed the diff

Migrations

[ ] The pr causes a breaking change of type a,b or c
[ ] If there is a breaking change, the pr includes a database migration and/or a fix process for old values, so that upgrade is possible
[ ] Resyncing and running the migrations provided will result in the same database semantically

If there is a breaking change, especially a big one, please add a justification here. Please elaborate
more what the migration achieves, what it cannot achieve or why a migration is not possible.

@sgillespie what's up with the schema-rollback change in the cabal file and the related haskell code?

@sgillespie what's up with the schema-rollback change in the cabal file and the related haskell code?

Great question! The schema-rollback tests no longer have any effect. Those tests will succeed whether there are missing rollbacks or not. They attempt to parse TH definitions, but that has been significantly refactored since then.

@sgillespie we should note this in the description of this PR. Right now it talks only about nix changes, making the Haskell changes look out of place. Even better might be to split that out into a separate PR though.

@sgillespie what's up with the schema-rollback change in the cabal file and the related haskell code?

For future reviewers' benefit, I took this out (including the history), so you won't see this. I'll address this in another PR

LGTM. Where do the 1.1k extra lines come from? flake.lock?

Yes, the majority came from flake.lock:
 .github/workflows/release-binaries.yml |   25 +++
 flake.lock                             | 2451 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------
 flake.nix                              |  450 ++++++++++++++++++++++++++------------------
 nix/binary-release.nix                 |   39 ----
 nix/custom-config.nix                  |    4 -
 nix/docker.nix                         |  295 +++++++++++++++--------------
 nix/flake-compat.nix                   |   20 --
 nix/haskell.nix                        |  195 -------------------
 nix/pkgs.nix                           |   51 -----
 nix/scripts.nix                        |   31 ---
 nix/util.nix                           |    9 -
 11 files changed, 2326 insertions(+), 1244 deletions(-)


How to compile

Please, help.
I build the old project with make&Makefile. Now, I trying to build tinyxml2 at Debian 9.3.
First, I tried to use `tinyxml2.h and tinyxml2.cpp' -> tinyxml2.o then added into the project.
(latest version from github)
But ii report errors:
In file included from tinyxml2/tinyxml2.cpp:24:0:
tinyxml2/tinyxml2.h:24:0: error: unterminated #ifndef
 #ifndef TINYXML2_INCLUDED
In file included from /usr/include/c++/6/new:40:0,
                 from tinyxml2/tinyxml2.cpp:26:
/usr/include/c++/6/exception:35:9: error: ‘#pragma’ is not allowed here
 #pragma GCC visibility push(default)
         ^~~
In file included from /usr/include/c++/6/new:40:0,
                 from tinyxml2/tinyxml2.cpp:26:
/usr/include/c++/6/exception:169:27: error: expected ‘)’ before end of line
 #pragma GCC visibility pop
                           ^
/usr/include/c++/6/exception:169:24: error: expected ‘;’ at end of member declaration
 #pragma GCC visibility pop
                        ^~~
/usr/include/c++/6/exception:169:27: error: expected ‘}’ before end of line
 #pragma GCC visibility pop
                           ^
/usr/include/c++/6/exception:169:27: error: expected unqualified-id before end of line
/usr/include/c++/6/exception:169:27: error: expected ‘}’ before end of line
/usr/include/c++/6/exception:169:27: error: expected declaration before end of line
Makefile:113: recipe for target 'tinyxml2.o' failed
make: *** [tinyxml2.o] Error 1
Second, I trying to apt-get install libtinyxml2-dev
Then I add -ltinyxml2 to the command line and I also play with -I/usr/lib/x86_64-linux-gnu/ -L/usr/lib/x86_64-linux-gnu/ and both at the same time to get it compiled. But always receive:
Many lines of errors like this:
xxx.cpp:(.text+0x47d2): undefined reference to ```tinyxml2::XMLDocument::XMLDocument(bool)'
xxx.cpp:(.text+0x4a03): undefined reference to tinyxml2::XMLDocument::SaveFile(char const*)'`
How to use it? Now, I'm looking into "second" solution with libtinyxml2-dev. But also interested what is the problem with first one...
Thanks

Seems found the problem. It include old "tinyxml.h" from the current folder instead of new one.


M3-4201 TableSettings dropdown UI

Description
New component to allow user control for table displays (column headers/ordering). This particular PR is strictly handling UI/styling, no functionality has been implemented as of yet (though some of the accessibility work has been handled here). This component expects an aria label, title for the field legend, and a list of options (the button icon is customizable as well, just defaults to the gear icon).
To view, run storybook: http://localhost:6006/?path=/story/table-editor--default

Type of Change

Non breaking change ('update')

Thanks all for the feedback! I updated the margins/line height of the list items, in addition to the text updates Dajahi pointed out. Since we don't have the icon exported yet, I'm defaulting to the gear icon, but this component will accept any icon so we can use this in multiple places with differing icon indicators.
@Jskobos for your callouts: space bar should toggle checkbox selection, using a SR enter or spacebar will select. We can add another keypress event for enter explicitly. The overflow issue you called out will need to be addressed separately- if I re-add that we lose the caret arrow :(


BytesMut::freeze ignores advance

Hi,
I created a BytesBuf with some data and removed the leading n bytes with advance(n). After some more computations I converted the result to an immutable Bytes value. My expectation was that the content of the BytesMut and Bytes would be identical. Instead the Bytes still contained the discared bytes.
Example program:
use bytes::{BytesMut, Buf, BufMut};

fn main() {
    let mut x = BytesMut::new();
    x.put(&b"hello"[..]);

    let mut y = BytesMut::new();
    y.put(&b"hello"[..]);
    y.advance(2);

    println!("{:?} {:?}", x, y); // b"hello" b"llo"
    assert_ne!(x, y);
    assert_ne!(&x[..], &y[..]);

    let x1 = x.freeze();
    let y1 = y.freeze();

    println!("{:?} {:?}", x1, y1); // b"hello" b"hello"
    // expected: b"hello" b"llo"
    assert_eq!(x1, y1);
    assert_eq!(&x1[..], &y1[..]);
}

https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ffaabad67256d03d04f6478d60b93381
As a work-around I use split_to instead of advance and ignore the return value.

Oh yea, that seems like a bug in freeze. Looking at the source, it seems to grab the original size so it can properly create a Bytes, but forgets to advance it forward if need be.


1a68c5b clobbers networking fact

After commit 1a68c5b rspec-puppet intentionally overrides custom facts with the node facts. However it  also adds the networking fact to the node facts.
The networking fact contains much more information than just fqdn / domain / hostname and because of the shallow merge it has become impossible to customize the networking fact in examples.
Example networking fact:
{
  "dhcp": "<IP_ADDRESS>",
  "domain": "example.com",
  "fqdn": "foo.example.com",
  "hostname": "foo",
  "interfaces": {
    "enp0s3": {
      "bindings": [
        {
          "address": "<IP_ADDRESS>",
          "netmask": "<IP_ADDRESS>",
          "network": "<IP_ADDRESS>"
        }
      ],
      "bindings6": [
        {
          "address": "fe80::a00:27ff:feb7:f3af",
          "netmask": "ffff:ffff:ffff:ffff::",
          "network": "fe80::"
        }
      ],
      "dhcp": "<IP_ADDRESS>",
      "ip": "<IP_ADDRESS>",
      "ip6": "fe80::a00:27ff:feb7:f3af",
      "mac": "08:00:27:b7:f3:af",
      "mtu": 1500,
      "netmask": "<IP_ADDRESS>",
      "netmask6": "ffff:ffff:ffff:ffff::",
      "network": "<IP_ADDRESS>",
      "network6": "fe80::"
    },
    "lo": {
      "bindings": [
        {
          "address": "<IP_ADDRESS>",
          "netmask": "<IP_ADDRESS>",
          "network": "<IP_ADDRESS>"
        }
      ],
      "bindings6": [
        {
          "address": "::1",
          "netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
          "network": "::1"
        }
      ],
      "ip": "<IP_ADDRESS>",
      "ip6": "::1",
      "mtu": 65536,
      "netmask": "<IP_ADDRESS>",
      "netmask6": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
      "network": "<IP_ADDRESS>",
      "network6": "::1"
    }
  },
  "ip": "<IP_ADDRESS>",
  "ip6": "fe80::a00:27ff:feb7:f3af",
  "mac": "08:00:27:b7:f3:af",
  "mtu": 1500,
  "netmask": "<IP_ADDRESS>",
  "netmask6": "ffff:ffff:ffff:ffff::",
  "network": "<IP_ADDRESS>",
  "network6": "fe80::",
  "primary": "enp0s3"
}

D'oh, thanks for the report. Just in time for a new release :)

rspec-puppet 2.6.2 pushed to rubygems


Add support for Malaysian Civic 2022

dongle ID: 8fcafab4167b8c6c

Your radar isn't giving a valid response so you're fuzzy FPing for now


Add GH Action to check SPDX license headers in new files.

Created a workflow to automatically check for SPDX license headers in new files when a PR is opened or changes are pushed to master or version-stable branches.
Added tools/spdx-check.sh script that scans new files with specific extensions and certain filenames for the SPDX-License-Identifier header.
The script excludes files in vendor/ directories from the check.
The workflow will fail if any of the new files are missing the required SPDX license header.

I want to add .proto files to the list...

@rene, could you recheck please?

@OhmSpectator for now it's ok, we do care about Apache 2.0, but please, consider add Apache 2.0 compatible licenses in the future....

@rene, do you find this list fine for it?
MIT License: MIT
BSD 2-Clause License: BSD-2-Clause
BSD 3-Clause License: BSD-3-Clause
ISC License: ISC
Python Software Foundation License (PSFL): Python-2.0
PostgreSQL License: PostgreSQL
Zlib License: Zlib
Boost Software License: BSL-1.0
Creative Commons Zero (CC0): CC0-1.0
WTFPL: WTFPL Very important one!


Fixes city section lists being empty

And the types to help next time. I can't wait to switch these to fragment containers 😬
Follow-up to #1438.

Fails

:no_entry_sign:

[danger-plugin-jest] Could not read test results. Danger cannot pass or fail the build.

  Generated by :no_entry_sign: dangerJS


File paths not resolving properly on Windows

Using Windows 7, node 64bit v.6.11.1
It's not receiving file paths correctly.
Gets error message in terminal when running npm start:
Project is running at http://localhost:9000/
webpack output is served from /
Content not from webpack is served from C:\Users\giggs\Documents\robpack\demo\dist
webpack: wait until bundle finished: /
Hash: 53cdf8733c669c76be58
Version: webpack 3.3.0
Time: 4749ms
                                                          Asset     Size  Chunks
          Chunk Names
                                                      bundle.js   355 kB       0  [emitted
]  [big]  main
                                                     index.html     2 kB          [emitted
]
bower_components/webcomponentsjs/custom-elements-es5-adapter.js  1.62 kB          [emitted
]
        bower_components/webcomponentsjs/webcomponents-hi-ce.js  23.6 kB          [emitted
]
                   bower_components/webcomponentsjs/gulpfile.js  5.09 kB          [emitted
]
     bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js  72.6 kB          [emitted
]
           bower_components/webcomponentsjs/webcomponents-hi.js  9.72 kB          [emitted
]
       bower_components/webcomponentsjs/webcomponents-loader.js  3.15 kB          [emitted
]
         bower_components/webcomponentsjs/webcomponents-lite.js  83.5 kB          [emitted
]
        bower_components/webcomponentsjs/webcomponents-sd-ce.js  64.3 kB          [emitted
]
  [39] multi (webpack)-dev-server/client?http://localhost:9000 ./src/index.js 40 bytes {0}
 [built]
  [40] (webpack)-dev-server/client?http://localhost:9000 5.59 kB {0} [built]
  [41] ./node_modules/url/url.js 23.3 kB {0} [built]
  [43] ./node_modules/url/util.js 314 bytes {0} [built]
  [47] ./node_modules/strip-ansi/index.js 161 bytes {0} [built]
  [48] ./node_modules/ansi-regex/index.js 135 bytes {0} [built]
  [49] (webpack)-dev-server/client/socket.js 856 bytes {0} [built]
  [50] ./node_modules/sockjs-client/lib/entry.js 244 bytes {0} [built]
  [81] (webpack)-dev-server/client/overlay.js 3.6 kB {0} [built]
  [86] (webpack)/hot/emitter.js 77 bytes {0} [built]
  [87] ./node_modules/events/events.js 8.33 kB {0} [built]
  [88] ./src/index.js 44 bytes {0} [built]
  [89] ./src/my-element.html 2.78 kB {0} [built]
  [90] ./node_modules/date-fns/format/index.js 10.1 kB {0} [built]
 [103] ./node_modules/polymer-webpack-loader/register-html-template.js 1.92 kB {0} [built]

    + 89 hidden modules

ERROR in ./src/my-element.html
obpackdemower_componentspolymerpolymer-element.html' in 'C:\Users\giggs\Documents\robpack\
demo\src'
 @ ./src/my-element.html 5:0-88
 @ ./src/index.js
 @ multi (webpack)-dev-server/client?http://localhost:9000 ./src/index.js
Child html-webpack-plugin for "index.html":
       [0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.ejs 2.49 kB {0} [b
uilt]
       [1] ./node_modules/lodash/lodash.js 540 kB {0} [built]
       [2] (webpack)/buildin/global.js 509 bytes {0} [built]
       [3] (webpack)/buildin/module.js 517 bytes {0} [built]
webpack: Failed to compile.

and in the console
Uncaught Error: Cannot find module "C:UsersgiggsDocuments
obpackdemoower_componentspolymerpolymer-element.html"
    at webpackMissingModule (bundle.js:9646)
    at Object.<anonymous> (bundle.js:9646)
    at __webpack_require__ (bundle.js:20)
    at Object.<anonymous> (bundle.js:9635)
    at __webpack_require__ (bundle.js:20)
    at Object.<anonymous> (bundle.js:4097)
    at __webpack_require__ (bundle.js:20)
    at module.exports.ctor.super_ (bundle.js:63)
    at bundle.js:66

Please also share your current webpack.config.js

I'm seeing similar in a simple test that places a paper-button on the page. The below error is coming from webpack which has the backslashes missing in the path to the paper button
ERROR in ./bower_components/paper-button/paper-button.html
Module not found: Error: Can't resolve 'C:dev   estpolymerwebpacower_componentspolymerpolymer
.html' in 'C:\dev\test\polymerwebpack\bower_components\paper-button'
@ ./bower_components/paper-button/paper-button.html 2:0-74
@ ./app.js
I've uploaded the code to this repository for reference if helpful:
https://github.com/MarkJamesHoward/PolymerWebpackLoader.git


remove commented code

for cleaner code, if a snippet have to be removed but is still needed we can always check them in history.

I only removed some commented codes here. The test has been broken, what happened?


@extend not working in 1_btns.scss file

Hi there, me again! Thanks for updating the starter to CodyFrame v3, much appreciated! I am facing one issue with the Button Group component, which is giving the following error upon build. Would you happen to have the solution to this?
SassError: The target selector was not found.
Use "@extend .btns__btn--selected !optional" to avoid this error.
    ╷
104 │     @extend .btns__btn--selected;
    │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
  src\styles\components\_1_btns.scss 104:5  root stylesheet

Hi, unfortunately I can't reproduce this error. My steps:

Create the file _1_btns.scss in src/styles/components. Paste the SCSS from the button group component.
Add this line in the file src/styles/components/_index.scss:@use '1_btns' as *;

Run gatsby develop. (I also ran gatsby build to confirm that a production build works.)

A couple thoughts:

I had initially neglected to update the component index to use @use instead of @import. Are you doing that?
Gatsby's validation didn't like it when I just had @use without the as keyword. To eliminate errors, I had to add the as * at the end.
Unfortunately I can't commit my changes that include the button group component. The Codyhouse license forbids it.

I had initially neglected to update the component index to use @use instead of @import. Are you doing that?
This fixed my problem!

Glad to hear it!


Req/freeze major

What does this PR do?
implement freezing version for next major requirement release
Before submitting

[x] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[ ] Did you make sure to update the documentation with your changes? (if necessary)
[ ] Did you write any new necessary tests? (not for typos and docs)
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] Did you list all the breaking changes introduced by this pull request?
[ ] Did you update the CHANGELOG? (not for typos, docs, test updates, or minor internal changes/refactors)

PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[x] Check that all items from Before submitting are resolved
[x] Make sure the title is self-explanatory and the description concisely explains the PR
[x] Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?
Make sure you had fun coding 🙃
cc @borda

This PR conflicts with #13912, which I feel would make this much easier if it was landed.

This is needed for the 0.6 release on Monday

It would be nice if you could help me there with the CI failures that block it.

yes, happy to help :)


[Question] which math lib I should use in lwjgl3 to handle matrices

I'm new to lwjgl3, I learnd that GLM is available in c++.
but what lib should I use in lwjgl?

You should use the JOML library. It provides vectors, matrices, quaternions, etc. It also plays nice with LWJGL.

You should use the JOML library. It provides vectors, matrices, quaternions, etc. It also plays nice with LWJGL.

thanks a lot


How do I use a bus with two threads?

I'm new with Rust. This could be could more about using Rust than bus.
Is it possible with Arc? or would bus need to implement the 'sync' trait? (I don't really know about that trait).
Note that I don't want to do bus.add_rx() on the line after Bus::new(10) since in my case it would be done at runtime (when a network connection is opened).
extern crate bus;
use std::{thread, time};
use bus::Bus;

fn main() {
    let mut bus = Bus::new(10);

    thread::spawn(move || {
        let mut i = 0;
        loop {
            bus.broadcast(format!("{}", i));
            i += 1;
            thread::sleep(time::Duration::from_secs(1));
        }
    });

    loop {
        let mut rx1 = bus.add_rx();
        let r = rx1.recv();
        println!("<- {}", r.unwrap());
    }
}

@brunoqc welcome to Rust! From the use-case you show here, it seems like you should instead use a regular Rust channel. Bus is specifically for when you need multiple threads to receive every transmission. In your code above, this is not necessary.
Now, you are hitting on an important limitation of Bus. You need exclusive access to a bus in order to add a receiver, and you need exclusive access to it in order to broadcast on it. Ideally, I would change Bus such that you could .clone() a receiver, but this is fairly hard to implement correctly given Bus' architecture. The solution for your particular scenario would be to use a Mutex wrapped in an Arc:
extern crate bus;
use std::{thread, time};
use std::sync::{Arc,Mutex};
use bus::Bus;

fn main() {
    let bus = Arc::new(Mutex::new(Bus::new(10)));

    let also_bus = bus.clone();
    thread::spawn(move || {
        let mut i = 0;
        loop {
            also_bus.lock().unwrap().broadcast(format!("{}", i));
            i += 1;
            thread::sleep(time::Duration::from_secs(1));
        }
    });

    loop {
        let mut rx1 = bus.lock().unwrap().add_rx();
        let r = rx1.recv();
        println!("<- {}", r.unwrap());
    }
}

Note this code can deadlock. Broadcast can block waiting for a receiver (while holding the bus lock), but the bottom loop is waiting for the lock in order to add a receiver, and thus isn't draining the bus. To get around this, you'd probably need to use try_broadcast instead, and release the lock and retry if it fails because the bus is full.

welcome to Rust!

Thanks!!

In your code above, this is not necessary.

My code was an exemple. I would like to use bus to send data to multiples websocket connections.
While waiting for your reply I found out about Arc::new(Mutex::new(bus)) and I saw try_broadcast. Thanks for explaining and telling me how bus behaves.
In the last loop, do you need the lock while waiting for revc()? Could you do something like (I'm assuming the mutex unlocks before the loop (but I may be missing something, I had to use drop() in my code)):
let mut rx1;
{
    rx1 = bus.lock().unwrap().add_rx();
}
loop {
    let r = rx1.recv();
    println!("<- {}", r.unwrap());
}

No, you only need the lock to create the receiver. The receiver itself is "disconnected" from the bus, and can be received on without having exclusive access (or access at all) to the bus. The code you give above should work fine, though I don't think you need the extra scope:
let mut rx1 = bus.lock().unwrap().add_rx();
loop {
    let r = rx1.recv();
    println!("<- {}", r.unwrap());
}

For this particular code, you could also use the into_iter method:
let mut rx1 = bus.lock().unwrap().add_rx();
for r in rx1.into_iter() {
    println!("<- {}", r);
}

Thanks!


Getting "Crashplan Filed to Monitor Paths Error" starting a few days ago

I've been running this container on my Synology for over a year and haven't had any issues with it.
Today I received the automated message from Crashplan alerting me the backup hasn't been syncing for 3 days.  I logged into the interface and found the following error:

I stopped the container, deleted the container, re-downloaded the latest tagged docker image, and re-installed the container, but I'm still getting the error popping up.
I checked history.log and it still shows current syncing with the Crashplan servers despite the email.
Checking the log from within Synology's Docker interface, I see:

Has anyone else encountered this, and know of a solution?

This is related to inotify watches.  Try to look for Unable to add watch for path in log/service.log.0.

Thank you.


VST SDK Download failed

It seems that Steinberg changed the location of the SDK again

-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- VSTSDK_PATH is set to /home/khusseini/src/github.com/rodlie/airwave/VST_SDK/VST3_SDK
--2018-11-23 20:29:45--  https://download.steinberg.net/sdk_downloads/vstsdk369_01_03_2018_build_132.zip
Resolving download.steinberg.net (download.steinberg.net)... 2a02:26f0:ee:29c::1575, 2a02:26f0:ee:2a6::1575, <IP_ADDRESS>
Connecting to download.steinberg.net (download.steinberg.net)|2a02:26f0:ee:29c::1575|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-11-23 20:29:47 ERROR 404: Not Found.

unzip:  cannot find or open vstsdk369_01_03_2018_build_132.zip, vstsdk369_01_03_2018_build_132.zip.zip or vstsdk369_01_03_2018_build_132.zip.ZIP.
CMake Error at CMakeLists.txt:76 (message):
  VST SDK is not found.  You should set the VSTSDK_PATH variable

VST2 is dead.
https://github.com/rodlie/airwave/pull/2#issuecomment-441390666

https://web.archive.org/web/*/https://download.steinberg.net/sdk_downloads/vstsdk369_01_03_2018_build_132.zip

Thank you both. This worked out for me :)


Expose metrics from Jasiri

It would be useful to expose the following metrics from Jasiri:

Spans started
Spans finished
Spans sampled
Spans not sampled

Need to do more research/thinking on what other metrics would be useful

Maybe we build on the work done in Jaeger4net. Expanding my initial list to include:

Traces Started (sampled + not sampled)
Traces Joined
Spans Reported
Spans dropped
Spans not reported


Update computeFlyToLocationForRectangle

修复地形（terrain）数据不完整的情况下，viewer.flyTo 定位到 ImageryLayer 的问题。 问题详情见：#10937

Thanks for the pull request @Southjor!

:heavy_check_mark: Signed CLA found.
:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.


How can I make it working with sails ? ( or can I ?)

Normally, I'm an iOS developer but i need an admin panel for my mobile app and i want to use this template. Unfortunately I'm not so comfortable with JS. I have a working web service with sails.js. I just need to use this template as views of my web service. Any guidance appreciated.

Hi @orhanozdemir ,
Do you still encounter this issue , if you do, can you please provide us more details about it in order to help you ?

Well, we will close this for now but feel free to reopen it if you need to, sharing some more details about it in order to try solve this out.


No chance to make an inbound call inbound Call in Net Core

Hi,
I've been searching for this everywhere, on google/bing, on git, on the nexmo website, and so on.
So, here's my issue :
I'm currently trying to follow this tutorial : https://www.nexmo.com/blog/2018/11/21/how-to-receive-a-phone-call-with-nexmo-voice-api-asp-core-core-and-nancyfx-dr/.
One major issue : when I try to contact the number I bought (using my phone then), it seems to disconnect the call even before it can respond. I almost sound like it's going to pick up but then I only hear beeps (the same kind produced when a phone is disconnected : https://www.youtube.com/watch?v=CU7F5qKX07w).
I can't find any documentation or tutorial that works in dotnet core. I tried with NodeJS, which works but I wish this could be in c#.
Any idea where the problem could be?

I'm working with windows 10
I have the last version of Visual Studio.
Everything works with postman.
The number was bought in Belgium, don't know if it's a factor.
I didn't divert from the tutorial at all. I updated the appsettings of course.

Will there be any working dotnet sample displaying how to receive call (inbound voice call)?
Thanks in advance

Update : we tried to make the run the code again and somehow it worked. Only thing that changed was the ngrok tunnel which was updated. I'm kinda befuddled to how this suddenly works but I guess it's a good think in the end :)