Updating travis conf

The Travis build is currently failing. Once fixed it must also be configured to publish to pypi on release starting from release 1.18.

Fixed in #17


Storage API endpoint

Add an API endpoint that will allow a client to upload their zonefile and profile information.  The endpoint should verify that the zonefile's hash is already present in the blockchain, and that the profile is signed by the key indicated in the zonefile.  This effectively makes the registrar a storage provider for the client.

Issue moved to blockstack/blockstack-cli #140 via ZenHub


NLog not flushing before application exit using NLog.Extensions.Logging

I've noticed that when I'm using NLog through Microsoft.Extensions.Logging, the end of the application doesn't log as expected when using an async wrapper with the latest version of NLog.Extensions.Logging. If I add intermediate code, it logs, up until the very end of the application (almost like something isn't "turning out the lights," so to speak). Downgrading to NLog.Extensions.Logging 1.7.5 fixes the issue, as does a Thread.Sleep or LogManager.Shutdown before the end of the application.
NLog version: 5.0.5
NLog.Extensions.Logging version: 5.1.0
Platform:  .NET6
Current NLog config (xml or C#, if relevant)
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      autoReload="true"
      internalLogLevel="Info"
      internalLogFile="logs\internal\nlog.log">
  <variable name="internalLogDir" value="logs\internal"/>
  <variable name="baseLogDir" value="logs"/>

	<targets>
		<target
		  xsi:type="File"
		  name="BaseLog"
		  createDirs="true"
		  autoFlush="true"
		  fileName="${baseLogDir}\NLogTest.log"
		  layout="${longdate} ${callsite} ${level} ${message} ${exception:format=tostring}"
		  archiveEvery="Day"
		  archiveNumbering="Date"
		  archiveDateFormat="yyyy-MM-dd"
		  maxArchiveFiles="7"
		  concurrentWrites="true" />
		<wrapper-target xsi:type="AsyncWrapper" name="asyncBase">
			<target-ref name="BaseLog"/>
		</wrapper-target>
	</targets>
  <rules>
    <logger name="*" minlevel="Debug" writeTo="asyncBase"/>
  </rules>
</nlog>

Code:
namespace NLogTest
{
    class Program
    {
        static void Main(string[] args)
        {
            var services = new ServiceCollection();
            services.AddLogging(loggingBuilder =>
            {
                // configure Logging with NLog
                loggingBuilder.ClearProviders();
                loggingBuilder.SetMinimumLevel(LogLevel.Trace);
                loggingBuilder.AddNLog("nlog.config");
            });

            var environmentName = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Development";
            var builder = new ConfigurationBuilder()
                .SetBasePath(AppDomain.CurrentDomain.BaseDirectory)
            IConfiguration configuration = builder.Build();
            var serviceProvider = services.BuildServiceProvider();
            var logger = serviceProvider.GetService<ILogger<Program>>();
            try
            {
                logger.LogInformation("Program Start");
                Console.WriteLine("Program Start");
                logger.LogInformation("Program End");
                Console.WriteLine("Program End");
                //uncommenting either of these lines makes the logging work
                //LogManager.Shutdown();
                //Thread.Sleep(3000);
            }
            catch
            {
                Console.WriteLine("Error");
            }
        }
    }
}

When running this application, the console is written to, but the log file is not.
Are there any workarounds? Yes, using LogManager.Shutdown() before the end of the application.

NLog hooks into AppDomain.Unload and performed flush/shutdown on these "final" events.
Sadly enough Microsoft .NET signals these events on Linux before application is fully shutdown, thus causing the NLog logging to become silent and fails logging all events during application-shutdown.
When using NLog.Extensions.Logging v5 then it is expected that the developer cares about object-lifetime and disposes its objects for correct shutdown.
Solution 1:
Change this:
var serviceProvider = services.BuildServiceProvider();

To this (Adding using):
using var serviceProvider = services.BuildServiceProvider();

Solution 2
Introduce finally-block:
try
{
   // App Code
}
finally
{
   NLog.LogManager.Shutdown();
}

This is on Windows, so the Linux behavior is not so much of a concern. Thanks for your feedback; I have implemented Solution #2 above as a work around, so if that is a recommended fix then I will just stick with that.
Thanks again!

Yes the easy solution would be if Microsoft Dotnet worked as expected on Linux. Then NLog AutoShutdown could be enabled as before.
Sent from my Galaxy
-------- Original message --------
From: kcritchnau @.>
Date: 03/11/2022 19:11 (GMT+01:00)
To: NLog/NLog @.>
Cc: Rolf Kristensen @.>, Comment @.>
Subject: Re: [NLog/NLog] NLog not flushing before application exit using NLog.Extensions.Logging (Issue #5097)
This is on Windows, so the Linux behavior is not so much of a concern. Thanks for your feedback; I have implemented Solution #2https://github.com/NLog/NLog/issues/2 above as a work around, so if that is a recommended fix then I will just stick with that.
Thanks again!
—
Reply to this email directly, view it on GitHubhttps://github.com/NLog/NLog/issues/5097#issuecomment-1302494399, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACXZ7HGR343ZVSSELDN3GWLWGP56PANCNFSM6AAAAAARWL4IFQ.
You are receiving this because you commented.Message ID: @.***>


[REQUEST] Run the next Runner after 1 Runner is done

This request would be really Helpful when you are running ob on rdp while you are away.
So insted of the Runner finishing and OB does nothing it be really great for it the run the next runner.
PIC EX:
https://imgur.com/BfkjHA2

Already planned for the scheduler addition, closing as a separate issue is not needed


Ordering the list of available languages in the dropdown menu alphabetically

I think the plan is to have the selected language determined by the user's locale? Or will it be English? Either way, I think the rest of the languages in the dropdown menu should be ordered alphabetically.

I think it should be English at the top, and then alphabetical. That's only because the site will default to English, and all other languages will fall back to English.
Thoughts?

I think before the user select a language, then English should be at the top.
But once they select the preferred language, I think it should be at the top, as the selected language of the site.

Agreed! That definitely makes the most sense. Let’s try it out. We may find It makes some aspects of the User experience feel weird but we won’t know until we try and it seems very reasonable.

Closed by #118


There are some warning and cannot load the local pdf

Here is the code：

Hi , have you solved this problem? i got the same situation working with vue-cli3.x。
i tried the demo ,but there is a crossorign issue

I have the same issue. I use webpack and I assume I need to use a file-loader other than vue-loader. The error I get is "You may need an appropriate loader to handle this file type."
Trying to load my PDF file like so<EMAIL_ADDRESS>

May be a PDF format issue. PDFs exported using Evernote cannot be loaded, and PDFs exported using Typora cannot be loaded. PDFs exported using World2019 and WPS can be loaded.

Found out that the pdf file need to be put in public folder so it can be reach on runtime.


🐛 Rich text editor adding '' to Markdown

Describe the bug
Sometimes when using the rich text editor where image are present, back slashes are added to the markdown
To Reproduce

Expected behavior
Slashes should not be added to Markdown
Screenshots

Applicable Versions:

Netlify CMS version: 2.15.27
Git provider: GitHub
OS: MacOS 11.5.1
Browser version Safari 14.1.2

Issue occurs on all browsers.
CMS configuration
https://github.com/SSWConsulting/SSW.Rules/blob/main/src/cms/config.js

@bradystroud I'm interested in working out the issue. Can you provide the md/rtf where this issue occured?

So annoying. I think it is on files that have :::
We use those 3 colons for templates. grrrrrr
-a
www.adamcogan.com

To attack this problem, I was planning on adding a config option disable the rich text editor until it was fixed. This would force users to use the Markdown editor.
The problem with this is the Markdown editor offers no way to upload images 😕

[ ] Investigate the difficulty of allowing image uploads in the markdown editor
It might be possible to add a image widget outside of the editor.

This issue might be fixed by #5795

The rich text editor can be easily disabled using the modes config on the Markdown widget https://www.netlifycms.org/docs/widgets/#markdown
Currently there is no clear way to upload an image in this mode without adding an image field to the frontmatter.
I have created a discussion to confirm this #6497

Hey Team, this is still an issue.

Possibly related: #512


Refactor subctl release GHAs

Generally refactor both the subctl release and subctl devel release
GitHub Actions for clarity and consistency with other GHAs.
Bump richardsimko/update-tag GHA dependency to the latest version

I think this would be passing CI if it wasn't for https://github.com/submariner-io/submariner-operator/issues/1086, so marking ready for review.


next basket recommendation

Hi,
Thank you for open sourcing the code and your work in the area. I am playing with an open source dataset and trying to do next basket recommendation. At the moment, I am trying to understand your paper and code thoroughly to see if it's applicable to my work. Do you think that's a good idea? or Do you have any suggestions on where to start? I am rather new to the area so bear with my ignorance. Thanks a lot for your help in advance!

Hi,
I am not fully versed in the specificities of next-basket recommendation, but I think that there is certainly a way to adapt the RNN approach to that problem.
In the following paper: http://bit.ly/umap_paper we compare the RNN with FPMC, which was originally designed for next-basket recommendation. In those experiments FPMC was simplified to deal with the standard item prediction problem, but you could take the other direction and adapt the RNN to the next-basket case.
Some have done that for feedforward neural network: http://ceur-ws.org/Vol-1441/recsys2015_poster15.pdf
It can be an inspiration for what you would have to do.
Best of luck,
Robin

Hi Robin,
Thank you very much for the reply. i will definitely look into it.
Richie


New KB Articles

Hi Glenn,
The tag for IDOR is not created, can you please create one ?
Regards,
Aniket

check will add it


Flowing context

Currently a faulted instance doesn't carry any context (other than the exception). It can be somewhat limiting. The only thing you can really do with one is log the exception itself, but multiple Try instances you don't know the origin of it.
I'm not sure what's the appropriate solution here, but do you see this as an issue that needs a solution?
I can imagine adding a Try<TInput, TResult> (which can also avoid capturing):
var block =
    new TransformBlock<string, Try<string, string>>(
        uri => Try.Create(uri, innerUri => client.GetStringAsync(innerUri)));

I can make that a PR if you're interested.
WDYT?

This should be solvable by using ExceptionDispatchInfo, I believe.

Sorry for the silence! For some reason GH never notified me of this issue, so I just saw it...
You bring up a good point, and one which makes sense. I've had similar wants when using dataflow (even without Try), so I wonder if a separate solution would be better. Have to think about this for a bit.

As a workaround, can Exception.Data be used?
var block1 = new TransformBlock<Try<int>, Try<string>>(msg =>
{
	return msg.Map(value =>
	{
		try
		{
			if (value > 2)
			{
				throw new Exception("blech");
			}

			return value.ToString();
		}
		catch (Exception ex)
		{
			ex.Data["block1.state"] = value;
			throw;
		}
	});
});


Scalpel dies with " Error in tempdir()" during run

I'm running bcbio on a cluster, where the /var directory/partition on the nodes is very small, and probably almost full. So when running MuTect/Scalpel sometimes it dies with errors like:

[2016-04-05T22:17Z] Error in tempdir() using /var/tmp/pbs.276135.node001/XXXXXXXXXX: Could not create directory /var/tmp/pbs.276135.node001/hVox7X0ZmJ: No space left on device at /pico/work/try16_EMUTPRED/bcbio-20160314/bcbio/data/anaconda/share/scalpel-0.5.1-3/Parallel/ForkManager.pm line 465.
[2016-04-05T22:17Z] INFO  00:17:45,066 MuTect - [MUTECT] Processed<PHONE_NUMBER> reads in 651 ms
[2016-04-05T22:17Z] Command failure: findVariants (/pico/work/try16_EMUTPRED/bcbio-20160314/bcbio/data/anaconda/share/scalpel-0.5.1-3/FindVariants.pl --bam /pico/scratch/userexternal/esebesty/bcbio_run/single-pair-cineca/work/bamprep/HCC1143_mix1/4/HCC1143_mix1-sort-4_0_31817216-prep.bam --bed /pico/scratch/userexternal/esebesty/bcbio_run/single-pair-cineca/work/mutect/4/tcga-synthetic-test-4_0_31817216-somaticIndels-regions-nolcr-nolcr.bed --ref /pico/work/try16_EMUTPRED/bcbio-20160314/bcbio/data/genomes/Hsapiens/GRCh37/seq/GRCh37.fa --kmer 25 --mincov 5 --covthr 3 --lowcov 1 --covratio 0.01 --radius 100 --window 400 --maxregcov 10000 --step 100 --mapscore 1 --mismatches 3 --pathlimit 10000 --dir /pico/scratch/userexternal/esebesty/bcbio_run/single-pair-cineca/work/mutect/4/tcga-synthetic-test-4_0_31817216-somaticIndels-scalpel-work/main/tumor --sample ALL --numprocs 0 --coords null --format vcf --cov2file --intarget)...
[2016-04-05T22:17Z] child exited with value 28

Setting

resources:
  tmp:
    dir: /pico/scratch/userexternal/esebesty/tmp

won't help, Scalpel doesn't seem to respect it.
The error could be simply corrected by making Scalpel create its temporary directories and files in the user set tmp dir.

The File::Temp and the File::Spec::Unix perl module returns a string representation of the first writable directory from the following list or "" if none are writable:

    $ENV{TMPDIR}
    /tmp

So now I'm setting $TMPDIR and hope that all goes well. We will see.

Endre -- thanks for the report and tracking this down. If this workaround helps resolve the issue we can set TMPDIR in bcbio prior to running scalpel to ensure it uses the current temporary directory instead of a global one. Fingers crossed that'll do it.

Setting $TMPDIR seems to work. Scalpel now creates directories there, and doesn't fail due to insufficient space.

Endre;
Brilliant, thank you. I've made this the default behaviour in bcbio now so you shouldn't have to set it manually going forward. Thanks for identifying the issue.


Uploading File manually

Is it possible to upload the file manually by letting the user click on a normal submit button alongside with a form either using ajax or direct post

If I understand correctly you want:

User clicks button outside of FilePond, this starts the upload of all selected files
A custom upload method is used to upload the files

Is that correct?
If so, can you describe which step is difficult and why?

I need to submit a form and other fields along with the files in an AJAX post. Would it be possible to attach and add the base64 encoded data to my request?

@DamSenViet You can use the File Encode plugin to have FilePond encode the files as base64 data. You can then send it along with a normal form post ( not using AJAX ).
If you want to send data asynchronously you can use a FormData object to store all the values and files, this is what FilePond uses to send data to the server.
To add data to files you can use the setMetadata method on the file object, this data will be sent along with the file.
If you need to customize the request further you can set up a custom processing method, it provides hooks to control the FilePond interface ( progress indicators and errors/success state ).

So finally I got to upload a file and in my controller I return the generated ID for the file but how would I add the return key to an hidden input and since I would prefer using the file-encode-plugin, how can someone attach the file-encode to an input filed... am just lost a little bit on it

If you're using the File Encode plugin you don't need a process entry in the server configuration as you'll be uploading files on form submit ( note that this will cause trouble for large files ). When using the File Encode plugin the hidden inputs FilePond generates contain the file data.

@rikschennink Could you provide an example of how to add the encoded files to a FormData object? I'm having trouble figuring it out.

@nifte check out the add files before encode. The op dropped a codepen that checks on the element with the img data.

@DamSenViet Gotcha. Thanks!

@DamSenViet So, I figured out how to access the Base64-encoded data for each file, but I'm still confused on how to actually attach them to a FormData object...

@nifte C'mon man we're all developers but you gotta learn how to use the APIs.
https://developer.mozilla.org/en-US/docs/Web/API/FormData/append
Really not that hard to Google "formData".

@DamSenViet I know how to use the FormData object. The part I'm confused on is what to actually append to the FormData (i.e. the 'value' parameter).

@nifte well the file is base64 encoded. Get the base64 string via the data json and attach that to your FormData. Send that off then process the data server side (save/write in base64 mode, etc).

@DamSenViet Okay, this is what I've got:
var form = new FormData();
for (let i = 0; i < $('.filepond--list input').length; i++) {
	let file = JSON.parse($('.filepond--list input').eq(i).val());
	form.append('file' + i, file.data);
}

I'm taking the data from each hidden input, and appending it to the FormData object. But when I check the $_POST object on my server, it just shows each file with the data as a string.

That's exactly what a file is. It's literally just a giant string, usually in binary 0's & 1's. If you open a file in binary reading mode that's literally all you will see. When you use base64 encoding it helps compress the binary representation.
e.g. Here's why we base64
15 in binary (base 1) is "1111" = 4 characters = 4 bytes
15 in hex (base 16) is "F" = 1 character = 1 byte
Imagine you have an img in binary that's millions of characters long. No server wants to handle that kind of load. We need to take the burden off the network since it can create bottlenecks.
You can either send a string that's either 4 million bytes you can send a string that's 1 million bytes. It's pretty obvious what you should be picking. As the file size gets bigger, the benefits get better (relatively). If you're wondering why we can't send it in binary directly, there's really nothing stopping you if you know how to manipulate AJAX dataType. It's just the browser does not let you just grab the file data on your own. It's prohibited as a security measure. That's why we use the FileReader object to get the base64 representation, because it's an open API (and currently the only method available to us).
That's why we send the string off in base64 encoding. You take the string and write to a new file in base64 mode (turns base64 back into binary).
In whatever language you're using you need to decode base64 the file. Base64 is standard so I doubt you'll have trouble finding a library.
e.g. in a node.js server you would do something like this if you wanted to save the file somewhere:
require("fs").writeFile("out.png", base64Data, 'base64', function(err) {
  console.log(err);
}

That would be the entire upload operation

send file to server as string, encoded in base64
have server save the file somewhere, decoded from base64 back to binary

But what exactly are you trying to do with this? I have no context of what you're trying to do.

@nifte If you're going to send FormData objects, why not use a custom process method instead of the File Encode plugin?

@rikschennink So, I already have a php file that handles files submitted from my form. I'm basically just trying to use Filepond as the UI for the file inputs in my form, so I'll use whatever the easiest solution is.

@nifte I you’re submitting async set the server property to your php file location. If you’re submitting a form with page reload then FormData is not going to help you (as it’s for use with fetch or XMLHttpRequest) and you’ll need to adjust the backend to accept encoded files (see the php boilerplate for the required code changes).

@rikschennink thanks you.
  async onUpload() {
    const { arrFiles } = this.state
    console.log('arrFiles', arrFiles)
    var data = new FormData();
    _.forEach(arrFiles, file => {
      data.append('ebookFile', file.file);
    })
    // data.append('hi', 'hung')
    try {
      const response = await uploadFiles(data)
      console.log('response', response)
    } catch (e) {
      console.log(e)
    }
  }

for those who come later.

This was helpful for me for future people with this specific problem:
https://github.com/pqina/filepond-docs/blob/master/content/patterns/API/server.md

How to work using this kind of Data . I am getting this result as an Array . There could be 10 images.
I am using Cordova and there are no input here. all is done using a native media picker used in my Cordova app and post selection of images from this gallery picker i get the result as follow. No i want to use filepond to upload this data to my server which is written in NODEJS
>
> {
> exifRotate: 0
> index: 0
> mediaType: "image"
> name: "Screenshot_20190702-023602.png"
> path: "/storage/emulated/0/Pictures/Screenshots/Screenshot_20190702-023602.png"
> quality: 100
> size: 1033217
> src: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD"
> thumbnailBase64: "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABALDA4MChAODQ4SER"
> uri: "file:///storage/emulated/0/Pictures/Screenshots/Screenshot_20190702-023602.png"
> __proto__: Object
> }
>
>
>

Any Suggestions

@siddmegadeth In theory you should be able to add the path and FilePond will try to load the file from that location. You can do this with the addFile method.
If that doesn't work you can load the file object with FileReader and then pass it to FilePond.

If possible can you provide exmaple. I am having a hardtime going through filepond documentation.
All API is listed but just don't know from where to start and how to use, specific to my usecase. Mostly cover input type="file" .

If you have a filePond instance with a server location.
const pond = FilePond.create({ server:'./api' });
pond.addFile('./path/to/file');

How can i send Profile ID or any user identification . I am not able to send user  unique ID so that i can query this user and create new file or else append this file if user is found. Right now i cannot send information which i can extract in req.body

@siddmegadeth please post questions to StackOverflow as described in the issue template. This is related to Cordova not FilePond.

Is that easy to understand? FormData + getFiles
 html:
<input type="file" class="filepond" name="filepond" id="id_filepond" multiple data-max-file-size="3MB" data-max-files="3" /><button id ='test'>3232</button>

js:
           const pond = FilePond.create(document.querySelector('#id_filepond'), {
                labelIdle: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
            });
            $('#test').click(function () {
                const files = pond.getFiles()
                console.log(files)
                const params = new FormData();
                params.append('test', 'hahaha'); // Your custom data
                for (var i in files) {
                    params.append('file', files[i].file);
                }
                $.ajax({
                    url: "xxxxxxxx",
                    type: "POST",
                    processData: false,
                    contentType: false,
                    data: params,
                    success: function (d) {
                    }
                });
            })

This is my solution, inspired by @zyyoo
submit a form:
let formData = new FormData($("XX")[0]);
formData.delete("data"); //data is the name of the orignal input file; import to delete
  $.each(filesObj.getFiles(), function (i, file) { //filesObj is the instanz of FilePond.create()
  formData.append('file-' + i, file.file);
});

@GeSeRnnov You have a reference to FilePond, you set it here:
<Filepond ref={ref => this.pond = ref}>

this.pond will point to the FilePond instance.
I advise to let FilePond send the files to the server, then when you submit the form with Axios you only send the file IDs returned by the server. Now the server knows which files have been uploaded and can move the files to the right location/database.
If that's not what you want, then use this.pond.getFiles() and add the file objects (fileItem.file) to the data before sending everything in one go to the server with Axios.

@GeSeRnnov You have a reference to FilePond, you set it here:
<Filepond ref={ref => this.pond = ref}>

this.pond will point to the FilePond instance.
I advise to let FilePond send the files to the server, then when you submit the form with Axios you only send the file IDs returned by the server. Now the server knows which files have been uploaded and can move the files to the right location/database.
If that's not what you want, then use this.pond.getFiles() and add the file objects (fileItem.file) to the data before sending everything in one go to the server with Axios.

thanks for this great project and sorry for reopening this issue,
I'm trying to upload files manually and managed to make it work, but the uploaded files are the unprocessed ones (without the watermark) which is visible in the preview,
the FilePond component :
<FilePond
ref={ref}
files={imageFiles}
onupdatefiles={setImageFiles}
allowMultiple={true}
maxFiles={15}
allowReorder
dropValidation
name="files" /* sets the file input name, it's filepond by default /
labelIdle='Drag & Drop your files or Browse'
//FileTypeValidation plugin
allowFileTypeValidation
labelFileTypeNotAllowed="File of invalid type"
imagePreviewMaxFileSize="6MB"
acceptedFileTypes={["image/"]}
//FileSizeValidation plugin
allowFileSizeValidation
minFileSize="100KB"
maxFileSize="6MB"
labelMaxFileSizeExceeded="File is too large"
labelMaxFileSize="Maximum file size is {filesize}"
//
allowFileMetadata
//
allowImageTransform
imageTransformClientTransforms
imageTransformCanvasMemoryLimit
fileMetadataObject={{
markup: [
[
"rect",
{
left: 0,
right: 0,
bottom: 0,
height: "100px",
backgroundColor: "rgba(0,0,0,.5)",
},
],
[
"image",
{
right: "10px",
top: "10px",
width: "60px",
height: "60px",
src: logo,
fit: "contain",
},
],
],
onpreparefile: (file, output) => {
console.log(output);
},
}}
     imageTransformBeforeCreateBlob={(canvas) =>
       new Promise((resolve) => {
         // Do something with the canvas, like drawing some text on it
         const ctx = canvas.getContext("2d");
         ctx.font = "48px serif";
         ctx.fillText("Bdoon Wasyt", 10, 50);

         console.log("imageTransformBeforeCreateBlob", ctx, canvas);

         // return canvas to the plugin for further processing
         resolve(canvas);
         imgy = canvas
       })
     }
     imageTransformAfterCreateBlob={(blob) =>
       new Promise((resolve) => {
         // do something with the blob, for instance send it to a custom compression alogrithm
         console.log("imageTransformAfterCreateBlob", blob);

         // return the blob to the plugin for further processing
         resolve(blob);
       })
     }

/>
in the upload function i access the files using:
      let file = await ref.current.getFile(i).file

also imageTransformBeforeCreateBlob doesn't add text
i appreciate  help fixing this.

While this question might be a bit dated, here's a response for individuals currently encountering this issue.
I don't know why I saw a lot of people saying that this is not possible. There is a workaround without limitations. If you have data, you just want to put it somewhere else.
Solution :

In the form you want to submit create an input

If it's multiple make sure you put the brackets for the name
<input type="file" id="files" name="files[]" multiple>

If it's not multiple
<input type="file" id="files" name="files">

Create your pond instance
const pond = FilePond.create(element);

Attach an event and call a function
pond.on('addfile', (error, file) => {
 PutIntoInput();
}

Create the function
function PutIntoInput(){
    const filesFromPond = pond.getFiles(); // pond is your instance
    const filesInput = $('#files')[0]; // element we created in step1
    const newFileList = new DataTransfer(); // new file list
    filesFromPond.forEach(file => { // Add each file to a list
        newFileList.items.add(file.file);
    });
    filesInput.files = newFileList.files; // Set the file list
}

PS : You might use CSS to hide the input type="file" because you cannot set it to hidden in this cas.


Unexpected error when running kclvm-tools test case with cargo test.

Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
run 'cargo test' under 'KCLVM/kclvm/tools'.
2. What did you expect to see? (Required)
Test results are output.
3. What did you see instead (Required)
kclvm_runner-d37b7ee29cd12206(5583,0x70000fc26000) malloc: Double free of object 0x7f809ab067d0
kclvm_runner-d37b7ee29cd12206(5583,0x70000fc26000) malloc: *** set a breakpoint in malloc_error_break to debug

4. What is your KusionStack components version? (Required)
kclvm version is 0.4.3; checksum: e07ed7af0d9bd1e86a3131714e4bd20c

KCL-Vet internally calls the execute() method in kclvm-runner.
The execute() method does not support concurrent calls but 'cargo test' will execute test cases concurrently.
Therefore, PR #278 and #279 temporarily changed the test cases of KCL-Vet to serial.
Adjusting kclvm-runner will be considered in the future to address this issue.


Add container with scrollbar

This adds a container that is scroll able with a scrollbar

Here's what I see when I run the ui testapp


Should detekt-api be Java-friendly?

I'm looking at the Javadoc produced by dokka for detekt-api. There are a few oddities related to Java interop (e.g. because BaseRule has a top level typealias a second class BaseRuleKt is generated in Javadoc - could be fixed by using @file:JvmName)
Question is, as a Kotlin focused project, do we care?
If not, should we change dokka config so instead of producing Javadoc (which will need several new annotations sprinkled through the code to get a nicer output) should we instead generate Jekyll compatible markdown which documents only the Kotlin-friendly API which won't require adding these annotations? That could then be published on GitHub pages.

I'm not quite sure if the effort is worth it.
Let's see what others think about it.

Yep, no wishes for cleaner detekt-api docs for far :)

Yep, no wishes for cleaner detekt-api docs

Happy to drop Javadoc then and switch dokka output to Jekyll?
If so I can look into doing that. I think this will get rid of the last dokka warning as well since I believe that actually comes from the Javadoc tool

I think the javadoc jar is needed to be able to publish to maven central.
They need both, sources and javadoc jars.
What do you mean with changing output to jekyll?
Havin the api docs published to the website? That would be great %%

Havin the api docs published to the website?

Exactly, dokka can do this. I don't know if it can output two formats at once though (jekyll + javadoc) and I didn't realise javadoc is needed for Maven Central - I'll see what dokka can do.


adds warning in case of unknown distro in etc/os-release

Tries to fix #447
Currently, with my little knowledge of the code being a new contributor here, I could find that mutation of /etc/os-release files happens while validation and ID tells distro name usually in most /etc/os-release files.
Therefore while checking for ID, if it is "", we set it to unknown in the generated file, this happens in the Validate function. Therefore I added a warning for this there in the check for empty ID. This should probably support what we desired. Thanks!

Thanks for the review @kaniini, based on my understanding, I attempted it another way, looking for your feedback to improve it further if it needs!

Thanks a lot for the review @luhring, not sure how the build and lint happened as last I checked it worked but maybe I am new to apko code base and its guidelines and erred somewhere, I will take a look at this quickly and push the required fixes, thanks again for the review @luhring :pray:

I don't know why I am on a spree of typos while committing these  days, the same happened with https://github.com/wolfi-dev/os/pull/2308
Missed a } :sweat_smile:

LGTM. @kaniini please review

Hi @kaniini, just fixed the merge conflicts due to recent changes, feel free to review and let me know if further improvements required, thanks for the help!


[Bug]: Modifying the probes and policies configured for the project causes the probes to go offline.

Preflight Checklist

[X] I agree to follow the Code of Conduct that this project adheres to.
[X] I have searched the issue tracker for an issue that matches the one I want to file, without success.
[X] I am not looking for support or already pursued the available support channels without success.

Version
1.0.3
Installation Type
Official SaaS Service
Service Name
DongTai-OpenAPI
Describe the details of the bug and the steps to reproduce it

new project "demo"
run Application with agent
change Agent or Custom Template

agent is not running

Additional Information
No response
Logs
No response

I am too


Standby


[flutter_adaptive_scaffold] Exposing way to customize NavigationRailDestination

Use case
Currently, AdaptiveScaffold takes only List<NavigationDestination> as destinations parameter, which is understandable, to make its type common. But, it results in us not being able to use other parameter exposed by NavigationRailDestination such as individual indicatorColor, indicatorShape and the most important one for me personally, padding.
Proposal
Expose a mapper method parameter to allow us customize individual NavigationRailDestination.
    return AdaptiveScaffold(
      mapNavigationRailDestination: (int index, NavigationDestination dest) {
        return NavigationRailDestination(
          icon: dest.icon,
          label: Text(dest.label),
          padding: newSections.contains(index)
              ? const EdgeInsets.only(top: 12)
              : EdgeInsets.zero,
        );
      },
    );

I can work on this if the proposed solution is approved.

@gspencergoog this can be closed.


[Question]: I've created an agent that uses fabric with LangChain and Ollama.  Is that okay?

What is your question?
This is not a real question, because I read the license.  I just wanted to make you aware of my project.  https://github.com/MikeyBeez/RAGAgent/tree/fabric. I hope you like it.  It's for MacOS.  I don't know if Mac is your main system.  I guess I thought you'd like to know that people find your work extremely helpful and beneficial.  Thank you for all your hard work.  BTW, my software is also free and open source.  I hope to help keep AI development moving at top speed.  :)

where did you find the license ?

@leobenkel, the presumed license for main is in the agents branch https://github.com/danielmiessler/fabric/blob/agents/LICENSE.txt
I created a discussion to clarify that the license for main is the same. Pretty sure it is, but wanted to make sure.

ok


Bug with loading data extension column

A new column will not load after being added using data extension on an existing column reconciled to Commons, but it will be shown in the operation history.

To Reproduce
Steps to reproduce the behavior:

First, reconcile a column.
Then, select 'Edit column', 'Add columns from reconciled values'.
Finally, add the property you wish to load. Select ok.

Current Results
The added column will not load, even though it's shown in the operation history.

Expected Behavior
The added column should show.

Screenshots

Versions

Operating System: Ubuntu 18.04
Browser Version: Chrome
JRE or JDK Version: 11
OpenRefine: 3.6-SNAPSHOT

Datasets
https://commons.wikimedia.org/entity/M68784635

Additional context

Looks like this is fixed now, as I could not reproduce with Windows and Edge browser using OpenRefine 3.6.2.  The selected property father was added as a new column against the reconciled cells in column v:

Oops, it has to be a column reconciled against Wikipedia Commons


remove sass from peer deps

since sass isn't used by ui-components except when building storybook, it only need to be in devDependencies
this prevents errors when sass versions don't exactly match up like  While resolving: @silintl/cover-ui@undefined npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/sass npm ERR<EMAIL_ADDRESS>from the root project npm ERR!  npm ERR! Could not resolve dependency: npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>

:tada: This PR is included in version 10.7.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Selective profile loading

This PR improves resource loading performance by moving resource fetching into the Row component and only loading resources found within the view. The Row component now fetches all of the resources needed for the Row's layers. The Row also tracks and displays loading and error states. One caveat is that all external resources are still globally fetched since there is not currently a good mechanism for detecting changes in individual external resources (for normal resources we key off simulation ID) though maybe @Mythicaeda or @mattdailis would have some ideas.
Notes:

At first I attempted to create a global resource store that managed resource fetching, states, etc., but that proved to be quite complex due to all of the inputs that are necessary to drive resource fetching for the current sim.
I also tried to implement resource fetching at the Timeline level but it grew fairly complex with a lot of interdependent reactive variables and stores and caused a lot of unnecessary re-rendering in child components.
I thought about some sort of custom store for resource fetching and states which may be possible but somewhat complex? Curious if @duranb has any thoughts on how this might be done.
Since this PR has resource fetching occurring at the Row level it means that resources are not available outside of Rows which is fine except that the Timeline Editor needs access to resources in order to compute y axes and place horizontal guides. To work around this, I have the Row component reflecting the computed y axes into a store which is then read by the editor. This could also be done for resources if needed in the future though it is probably not great from a data flow and ownership perspective.
External resources store is directly accessed by Row in this PR instead of passing it down from TimelinePanel -> Timeline -> Row. Is there any reason to not directly access stores like this? Seems like in some cases direct access would be better since it would not cause re-rendering of parent components that are just passing things through?
Closes #1124, closes #1069

@duranb ready for any final review


update version 5.4.3

update rpc version 5.4.3-SNAPSHOT
Motivation:
Explain the context, and why you're making that change.
To make others understand what is the problem you're trying to solve.
Modification:
Describe the idea and modifications you've done.
Result:
Fixes #.
If there is no issue then describe the changes introduced by this PR.

Codecov Report

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

@@           Coverage Diff            @@
##             master     #70   +/-   ##
========================================
  Coverage      55.8%   55.8%
+ Complexity      373     355   -18
========================================
  Files            51      51
  Lines          1620    1620
  Branches        274     274
========================================
  Hits            904     904
  Misses          555     555
  Partials        161     161

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 21ee57a...2e552d1. Read the comment docs.


Names of possible integrations not shown anymore

I cannot say since which version this occurs, but the names of the integrations I configure are not shown anymore. But in the past it shows all names correctly.

Please fill in issue template. It could be translation/language problem, so please include those information in your issue.

Home Assistant release with the issue: 0.75.2
Last working Home Assistant release (if known): not known, I think before 0.70.0
Operating environment (Hass.io/Docker/Windows/etc.): Hassos 1.9
Component/platform: Raspberry Pi 3B+
Description of problem: Under "Settings -> Integrations" there are blanks which showing no name but a "configure" link on the right side. Currently it's only one which shows no name. When I click on "configure" on the left it leads to Philips Hue configuration.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant): the discovery component is activated
Traceback (if applicable): none

Additional information: I'm on German language. But even when switching browser to English this persists. It's the same on Google Chrome, Firefox (both on Windows 10) as well as on Smartphone.


HTTP::Request multipart/form-data handling

Currently we don't handle multipart forms and need to implement this for dealing with file uploads.
I'll try to do this according to Rack implementation https://github.com/rack/rack/tree/028438ffffd95ce1f6197d38c04fa5ea6a034a85/lib/rack/multipart
What do you think?

I checked a lot of implementations and i think that this should be handled outside of std. I'm going to create a shard soon.

Will be fixed by #2967, once complete.

This is living in a shard (https://github.com/RX14/multipart.cr) now thanks to @RX14 👍


Refactoring: move most of initialization in pkg/workspace

In order to allow to easily load external libraries in the future, most of the library loading that currently happens in the command-line package must be moved elsewhere so it can later be reused.
This is preliminary work to #24 and should help review later pull requests.

There is one thing I did not do in this PR but I'll need to work on is find a way to have the DataValuesPreProcessing.Value() result in the same format as its input (the values flags). This will allow overriding values when importing libraries.

Updated with value type unified

(just forgot a file)

Updated the PR to remove manual recursion for value files and use ListAccessibleFiles() instead. Also remove unneeded change in pkg/template/core/go_value.go.

Here are the latest changes from my push: https://github.com/k14s/ytt/compare/9f69e36a324af5a94a72c602132ad8029042b3aa..849de6150f6ce93d56fc23d7fee2ea37aad43f70
I updated:

LoadValues() dot not change the LibraryLoader any more and Eval() takes a value argument
Library.parent and Library.RelativePath() removed, replaced by live relative path construction in evaluation routine and stored in FileInLibrary.Path
I found out that when rebasing my work on top of master, I was not using the correct relative path and I fixed that. the relative path used for the output files must be relative to the library used to construct the LibraryLoader, not the root library loaded from the filesystem
Updated files.go error string as you suggested

About LoadValues(), there is a way to merge it with Eval(): provide in LibraryLoader a function pointer to a callback that can be used to inspect the values after they are loaded. I'm not sure this is a good idea, and I already implemented taking values as argument and returning transformed values. but it can be done.

left one comment, otherwise looks good. would you mind rebasing this on top of master last time before we merged this in (to include this: https://github.com/k14s/ytt/compare/c6e9032f32614f9a2afa5883ee990356cbd9023c...a744459dca403387fd321db836dbe16219c6c734)?

done

merged 🤘. i did a little light renaming in follow up commit: https://github.com/k14s/ytt/commit/e72d8ad826ea49abde719ac82f63cdb44bb2a992


Closes: #1

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[x] Tests pass
[ ] Appropriate changes to README are included in PR

He corregido el script para que empiece solo con letras


Changing the Return Type of SendNotificationsResponse

Signed-off-by: Aditya Jindal<EMAIL_ADDRESS>Description
This adds a List of NotificationEvents to the SendMessage API Response. SendMessage APIs response reflects the status of the notifications that have been sent.
Follow up PR: Add IT to test multiple web-hook channels and use the SendNotifications API  from the Notifications Plugin.
Issues Resolved
https://github.com/opensearch-project/notifications/issues/441
Check List

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #454 (1b25ed2) into main (5918a9f) will increase coverage by 15.69%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##               main     #454       +/-   ##
=============================================
+ Coverage     70.71%   86.40%   +15.69%
=============================================
  Files           124       51       -73
  Lines          3923     1479     -2444
  Branches        626      365      -261
=============================================
- Hits           2774     1278     -1496
+ Misses          979      198      -781
+ Partials        170        3      -167

Flag
Coverage Δ

dashboards-notifications
86.40% <ø> (ø)

opensearch-notifications
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...notifications/action/SendTestNotificationAction.kt

...arch/notifications/send/SendMessageActionHelper.kt

...nsearch/notifications/settings/EmailChannelType.kt

...earch/notifications/core/NotificationCorePlugin.kt

...ications/spi/model/destination/SlackDestination.kt

...notifications/core/client/DestinationHttpClient.kt

...ations/resthandler/NotificationStatsRestHandler.kt

...org/opensearch/notifications/NotificationPlugin.kt

...org/opensearch/notifications/core/utils/Helpers.kt

...ations/spi/model/destination/WebhookDestination.kt

... and 63 more

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 5918a9f...1b25ed2. Read the comment docs.

We can close this PR as well, you can follow-up your IT test in another PR.


expose bucket service from a vcluster to host

Fix #3313
Signed-off-by: Chanwit Kaewkasi<EMAIL_ADDRESS>

@chanwit great job! 🎉 Tested it with the following command
gitops beta run ./deploy/overlays/dev --timeout=3m --port-forward namespace=dev,resource=svc/backend,port=9898:9898

and can confirm that I see the logs in the test branch of enterprise pulling in this branch:

That's great! ✨

Got the following error on screenshot for the following command:
gitops beta run ./deploy/overlays/dev --timeout=3m --port-forward namespace=dev,resource=svc/backend,port=9898:9898 --session-name=session2 --session-namespace=ns2

But after I restarted the command the logs started loading successfully for both GitOps Run sessions running.
It looks like there is a time period when the session is already displayed in the GitOps Run UI, but it's not like ready yet completely (it is similar to clicking on a GitOps Run session kustomization and source link before the session is completely ready, I think I created an issue for that already).

This following-up bug would be related to the value being passed from the front end.
Maybe I should address it together when enhancing the end point.


User list from Split (Request) money page doesn't sync between tabs.

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Login into a new account in 2 tabs.
From first tab,  open Request money page, enter any amount, press Next. Notice that the user list is empty.
From second tab, create a new Workspace, then go to Manage Member => Invite Member => Try to invite new member.
Notice that the user list from first tab is still empty, you need to go back previous screen and press Next to see new member.

Expected Result
User list should be sync between tabs.
Actual Result
User list from first tab is still empty, you need to go back previous screen and press Next to see new member.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.2.3-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/43996225/231885109-5aad1718-42dd-4859-bd50-16fe91217eea.mp4
https://user-images.githubusercontent.com/43996225/231885117-a583b45d-f0f7-41ff-a860-d60b466b82c3.mov
Expensify/Expensify Issue URL:
Issue reported by: @hungvu193
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681375421334519
View all open jobs on GitHub

Triggered auto assignment to @trjExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

Bug0 Triage Checklist (Main S/O)

[ ] This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
[ ] This bug is not a duplicate report (check E/App issues and #expensify-bugs)

If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead

[ ] This bug is reproducible using the reproduction steps in the OP. S/O

If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
If the reproduction steps aren't clear and you determine the correct steps, please update the OP.

[ ] This issue is filled out as thoroughly and clearly as possible

Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.

[ ] I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@trjExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

Technically this is a bug, but it is so edge case that I don't think we should be worrying about it and we should close.

Cool, works for me.


server: Fix NPE when migrating volume without template

Description
If you try to migrate a VM with volume and its template was removed, it results in a NullPointerException and the migration doesn't occur.
If the template is already in both pools, the NPE happens in getVolumeBackingFile, when _vmTemplateDao.findById() returns null and it then tries to call from it. The fix was to check if it is null (and since it can only be null if it was removed, since srcVolumeInfo has templateId) and return null so it does a FullClone Migration.
If the template is not in both pools, the NPE happens in copyTemplateToTargetFilesystemStorageIfNeeded, when TemplateObjectTO tries to getInstallPath() on a null object. The fix was the same, check if findById() returns null and, if so, don't copy it.
Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[X] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[X] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[X] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

Uploaded two templates (A and B) to ACS, created one VM for each. Deleted B.
Called migrateVirtualMachineWithVolume to migrate VM A on both host and storage pool.
Called migrateVirtualMachineWithVolume to migrate VM B on both host and storage pool.
Deleted A.
Called migrateVirtualMachineWithVolume to migrate VM A, again.
All migrations were successful.

is it applicable for 4.18 ?

thanks @gpordeus for the fix (or enhancement even) . Do you think you can codify your testing by adding an integration test for these fixes to make sure we have no regression on those in the future?

@DaanHoogland I have added the integration tests.

is it applicable for 4.18 ?

@weizhouapache Yes

thanks @gpordeus for the fix (or enhancement even) . Do you think you can codify your testing by adding an integration test for these fixes to make sure we have no regression on those in the future?

@DaanHoogland I have added the integration test.

good work, i left some comments, but nothing serious.

is it applicable for 4.18 ?

@weizhouapache Yes

can you rebase the change on the 4.18 branch than?

@gpordeus all of a sudden all kinds of unrelated files are changed in your PR. Can you have a look?

@gpordeus all of a sudden all kinds of unrelated files are changed in your PR. Can you have a look?

Fixed, but the labels added by the bot are still there.

@blueorangutan package

@DaanHoogland a [SF] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: el9 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 6408

@blueorangutan test

@blueorangutan test

[SF] Trillian test result (tid-6982)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 45893 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7615-t6982-kvm-centos7.zip
Smoke tests completed. 107 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

test_01_migrate_VM_and_root_volume
Error
81.82
test_vm_life_cycle.py

test_02_migrate_VM_with_two_data_disks
Error
57.64
test_vm_life_cycle.py

Hi @gpordeus, I tested and indeed there's no NPE anymore but the VMs are not able to start after a stop/start operation (on a KVM environment), did you notice the same behavior?

Hi @gpordeus, I tested and indeed there's no NPE anymore but the VMs are not able to start after a stop/start operation (on a KVM environment), did you notice the same behavior?

Hi, @vladimirpetrov ! I did not, could you specify in which circumstances this happens? If it's before or after deleting the template and/or migrating, for instance.

This happens after deleting the template and successfully migrating the VM. Then when I do stop/start of the VM it doesn't start because of this error @gpordeus .

@blueorangutan package

@DaanHoogland a [SF] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: el9 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 6583

@blueorangutan test matrix

@weizhouapache a [SF] Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

[SF] Trillian test result (tid-7206)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 39164 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7615-t7206-xenserver-71.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

[SF] Trillian test result (tid-7208)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 46660 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7615-t7208-kvm-centos7.zip
Smoke tests completed. 107 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

test_01_migrate_VM_and_root_volume
Error
81.72
test_vm_life_cycle.py

test_02_migrate_VM_with_two_data_disks
Error
54.38
test_vm_life_cycle.py

[SF] Trillian test result (tid-7207)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 59620 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7615-t7207-vmware-67u3.zip
Smoke tests completed. 106 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

test_01_deploy_vm_on_specific_host
Error
18.76
test_vm_deployment_planner.py

test_02_deploy_vm_on_specific_cluster
Error
3601.78
test_vm_deployment_planner.py

test_03_deploy_vm_on_specific_pod
Error
1.36
test_vm_deployment_planner.py

test_04_deploy_vm_on_host_override_pod_and_cluster
Error
4.37
test_vm_deployment_planner.py

test_05_deploy_vm_on_cluster_override_pod
Error
4.36
test_vm_deployment_planner.py

test_09_expunge_vm
Failure
424.67
test_vm_life_cycle.py

@blueorangutan package

@rohityadavcloud a [SF] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

Packaging result [SF]: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: el9 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 6683

@blueorangutan test

@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

[SF] Trillian test result (tid-7306)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 48384 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7615-t7306-kvm-centos7.zip
Smoke tests completed. 107 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

test_01_migrate_VM_and_root_volume
Error
79.75
test_vm_life_cycle.py

test_02_migrate_VM_with_two_data_disks
Error
56.57
test_vm_life_cycle.py

Hi @gpordeus, I tested and indeed there's no NPE anymore but the VMs are not able to start after a stop/start operation (on a KVM environment), did you notice the same behavior?

Hi, @vladimirpetrov ! I did not, could you specify in which circumstances this happens? If it's before or after deleting the template and/or migrating, for instance.

@gpordeus (cc @vladimirpetrov ) any explanation/resolution on this?

@gpordeus
do you have any update ?
in my opinion, if template does not exist on secondary storage and primary storage, an exception should be thrown somewhere.

@gpordeus (cc @vladimirpetrov ) any explanation/resolution on this?

@DaanHoogland , I've managed to reproduce the error (It happened when I migrated from an NFS primary storage to another), but I'm still looking into what's causing it.

@gpordeus do you have any update ? in my opinion, if template does not exist on secondary storage and primary storage, an exception should be thrown somewhere.

@weizhouapache I don't think an Exception should be thrown since the user is already allowed to force delete the template and the migration copies the template into the volume, so there is no absolute need for the backing file.

the migration copies the template into the volume

@gpordeus
I hope so, can you confirm it ?

@blueorangutan package

@rohityadavcloud a [SF] Jenkins job has been kicked to build packages. It will be bundled with  KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan test

@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

[SF] Trillian test result (tid-7514)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 46111 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7615-t7514-kvm-centos7.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

@blueorangutan package

Packaging result [SF]: :heavy_check_mark: el7 :heavy_check_mark: el8 :heavy_check_mark: el9 :heavy_check_mark: debian :heavy_check_mark: suse15. SL-JID 6880

@blueorangutan test rocky8 kvm-rocky8

[SF] Trillian test result (tid-7536)
Environment: kvm-rocky8 (x2), Advanced Networking with Mgmt server r8
Total time taken: 44187 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7615-t7536-kvm-rocky8.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

[SF] Trillian test result (tid-7537)
Environment: kvm-rocky8 (x2), Advanced Networking with Mgmt server r8
Total time taken: 44249 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7615-t7537-kvm-rocky8.zip
Smoke tests completed. 107 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test
Result
Time (s)
Test File

test_08_upgrade_kubernetes_ha_cluster
Failure
768.74
test_kubernetes_clusters.py

@gpordeus
I can reproduce the issue @vladimirpetrov faced in his testing

create a env with 2 primary pools, and disable pool primary2
register a template
create two vms (A and B)
force-delete the template
enable pool primary2
migrate running vm A to primary2, it succeeds
stop vm B, and migrate it to primary2, it succeeds
start vm B, all looks good.
stop vm A, and start it again, vm A is stuck at booting

the qcow2 image does not have a backing file
# qemu-img info -U /mnt/c2876c2e-5312-3cf9-b332-64d597086dc9/1a6593ad-8d02-4b10-a520-3eeefb336b13
image: /mnt/c2876c2e-5312-3cf9-b332-64d597086dc9/1a6593ad-8d02-4b10-a520-3eeefb336b13
file format: qcow2
virtual size: 50 MiB (52428800 bytes)
disk size: 1.06 MiB
cluster_size: 65536
Format specific information:
    compat: 1.1
    compression type: zlib
    lazy refcounts: false
    refcount bits: 16
    corrupt: false
    extended l2: false

@DaanHoogland @rohityadavcloud @gpordeus
my summary: if template is removed,
Before this PR,

when migrate volume of stopped vm, it succeeds. vm also works after starting
when migrate a running vm with volumes, got an NPE
Failed to migrate VM [VM instance {"id":3,"instanceName":"i-2-3-VM","type":"User","uuid":"1d3541d7-187e-417f-9cd4-cd18d0fc1e3d"}] along with its volumes due to [java.lang.NullPointerException].

With this PR:

the NPE issue in live storage migration is fixed
However, vm is corrupted after live storage migration

I would rather get an NPE exception than vm corruption , as data loss is a more critical issue for users.

@gpordeus I can reproduce the issue @vladimirpetrov faced in his testing
image of vm B does not have backing file either, but it works (the disk size is much bigger than vm A)

@weizhouapache Great, thank you for testing and for pointing out the disk size. I hadn't been able to replicate it before last week because I was testing from and to iSCSI and NFS storages, while this error only happens in NFS to NFS.

@DaanHoogland @rohityadavcloud @gpordeus
my summary: if template is removed,
Before this PR,
* when migrate volume of stopped vm, it succeeds. vm also works after starting

* when migrate a running vm with volumes, got an NPE
  Failed to migrate VM [VM instance {"id":3,"instanceName":"i-2-3-VM","type":"User","uuid":"1d3541d7-187e-417f-9cd4-cd18d0fc1e3d"}] along with its volumes due to [java.lang.NullPointerException].

With this PR:
* the NPE issue in live storage migration is fixed

* However, vm is corrupted after live storage migration

I would rather get an NPE exception than vm corruption , as data loss is a more critical issue for users.

@gpordeus can you please fix the vm corruption issue in our testing ?

Yes, I agree and I'm already working on it. The problem is a flag that is passed to libvirt migration only when it's NFS to NFS, for some reason, which makes it so that only the last layer of the vm is copied and, since the template was deleted and wasn't copied first, it corrupts them. Getting rid of the flag makes it work, but I'm testing if there are any other side effects or if there is a better way of going about it.

@gpordeus any progress? can we add this to 4.19?

@gpordeus any progress? can we add this to 4.19?
@DaanHoogland Sorry for the delay, it's being a little trickier than I anticipated. It won't take much longer, but not enough to make it to 4.19.

@gpordeus when you get to this, will it include a fix for #5759 ?

@gpordeus should we still try to merge this? (as 4.18 is coming to end of maintemnance)

@gpordeus should we still try to merge this? (as 4.18 is coming to end of maintemnance)

@DaanHoogland I suppose not, especially with #8911. I'm closing this, but I'll still be working on #5759. I was sidetracked, but I'll give it priority now.


Best way to save to file (milestones)

What is the best way to save an xml document to file when I just want to save some milestone.
For example:
I want collect 100.000 XY information. After 100 XY's I want to save them to file so if the program fails at some point not all data are lost. The question is: is it practicable just to to save the whole tree to a file like that
doc.save_file("save_file_output.xml")
or is there a better solution? I can imagine that when it's saving 99.700 XY's and than again 99.800 XY's the saving process will take a lot of time, since it's rewrting all informations again.
€dit: btw I read already this: https://pugixml.org/docs/manual.html#saving.subtree
But im not really sure how to use it to save to file and if it's necessary to do that like that. Maybe the function save_file() dectects on it's own that some XY's are already written.
€dit2: I also got a seconed question. Why is this happening?
node.append_child("description").append_child(pugi::node_pcdata).set_value(description);
description:

Produktbeschreibung

output:
<description><h2>Produktbeschreibung</h2> <h3 /></description>
How can I disable the conversion from
 to <h2> ?
I only found a way how to load a file without parsing entities. (parse_escapes)

Does somebody know a solution?

I am not entirely sure, but I thing you over complicate writing to file.  Use pugixml to write more complicated structures.
For egzample use "%f%f". I think you can manage to rewrite it to ofstream if you want to.
Add standard xml line at begining then use pugixml to read data after all points will be stored, you will get benefits of saving data during it's creation, and easy acess to points after generating them.
I think it's not practical in your case. You have to simple example to take benefits from such implementation for storing values.
Other question is it possible in other cases. If new branch is independent from other tree elements you can add it to the end, but adding new sub tree will be difficult because tree structure doesnot have any relation with data in file. In this case you will nead to rewrite new subtree and its trunk.
100 000 elements in your case should not take long to write, furthermore you can chop data into 100 elements sections and write them separately. In quick test 100000 xy elements took 25 average ms to write to file.

For second question.
doc_t.save_file("new4.xml", "\t", pugi::format_no_escapes, pugi::encoding_wchar);


Add documentation on how to install GITRm on omega

following up

Documentation added, check this link https://github.com/DIII-D/GITRmProject/wiki/Install-GITRm-on-Omega
I close the thread, if you want something different I will reopen it.


235 only first contact is displayed

@michielbdejong Fixes are added.

This PR was created on the wrong repo; superseded by https://github.com/pondersource/nc-sciencemesh/pull/236


Two scenes loading eachother (using export) causes Crash

Operating system or device - Godot version:
2.1.1 stable (on Steam)
Issue description (what happened, and what was expected):
When I hit play, the game freezes and will not start.
I have no idea what causes this, but I suspect it has something with using export (PackedScene), and having the scenes reference each-other. What is supposed to happen, is that scene_1 is supposed to change to scene_2 when pressing space (ui_select) - and scene_2 to change back to 1 when pressing space again. I would understand why this would happen if they would automatically load eachother (thus causing a loop), but neither scene is instancing the other at startup, so it is odd.
Edit 1: I can confirm that it still crashes, even if I do not run any code. It is definitely because of the export (PackedScene) that refer each-other.
Edit 2: If you change the next_scene inside scene_2.tscn
export (PackedScene) var next_scene
into
onready var next_scene = preload("res://scene_1/scene_1.tscn")
It works perfectly. It has something to do with export.
Steps to reproduce:

Download project files:
Scene Transitioning - Bug.zip

Hit play.

The example shows a "broken dependency error", after fixing it and when trying to run, on the console, you get the error (among others):
ERROR: Another resource is loaded from path: res://scene_1/scene_1.tscn
Is not taking the resource as the same one and seems to be trying to use the same path.
Also, the dependency error appears when re-loading the project.

Renamed to be a bit more descriptive, since I now know what is causing this

I believe that it happened with me too.
I created a scene manager to change scenes. I exported the next scene value like this:
export(String, FILE, "*.tscn") var next_scene

This works ok.

Yesterday I tried to change this system to export the actual PackedScene and it crashes for no apparent reason.
Tons of Parse Error: [ext_resource] referenced nonexistent resource at: in the console.

Update: Actually it really crashes if 2 scenes are "loading" each other.
I tested it on my game:

Load Main TitleScreen.
If you wait x seconds it changes to an "Attract Mode" scene (a "preview" of the game).
When "Attract Mode" ends, back to the Main TitleScreen.

If I remove the "Attract Mode" or the "back to TitleScreen when attract ends" from exported var it runs ok.

Happened with me too. But in my case, neither "Output" nor "Debugger" windows show any message about the problem (version 2.1.3 on Mac OS 10.11.6)

Potentially related to #5958.

The problem looks the same when running project. But, in this case, the scenes are still editable.

First of all thank you for your report and sorry for the delay.
We released Godot 3.0 in January 2018 after 18 months of work, fixing many old issues either directly, or by obsoleting/replacing the features they were referring to.
We still have hundreds of issues whose relevance/reproducibility needs to be checked against the current stable version, and that's where you can help us.
Could you check if the issue that you described initially is still relevant/reproducible in Godot 3.0 or any newer version, and comment about it here?
For bug reports, please also make sure that the issue contains detailed steps to reproduce the bug and, if possible, a zipped project that can be used to reproduce it right away. This greatly speeds up debugging and bugfixing tasks for our contributors.
Our Bugsquad will review this issue more in-depth in 15 days, and potentially close it if its relevance could not be confirmed.
Thanks in advance.
Note: This message is being copy-pasted to many "stale" issues (90+ days without activity). It might happen that it is not meaningful for this specific issue or appears oblivious of the issue's context, if so please comment to notify the Bugsquad about it.

It still happens on godot 3.0.2

#9686 is the same (I mean, symptom may be different but the bug is the same), so closing this one.

Still happens in godot 4.0.2


add nfAppIO/whnfAppIO

Add the nfAppIO and whnfAppIO functions similar to https://github.com/bos/criterion/pull/199 . I adapted a similar style compared to pureFunc, rather than just copying my implementations from the criterion pull request.

@rubenpieters thanks for the PR and sorry for letting it languish. The code looks good to me. I guess this should fix #76. Is it possible to add a benchmark demonstrating a simple/contrived case where it helps?
I would ideally want to get rid of the nfIO and whnfIO as they are prone to unpredictable results. But they need to remain for backward compatibility and compatibility with criterion as well. Maybe we can deprecate those?
@vincenthz any thoughts on this PR? Are the API names good or there are any better alternatives?

I just looked at criterion and since this has already been merged in criterion with these names we should keep the names as is for compatibility. We should also merge Ryan's doc changes from https://github.com/bos/criterion/commit/6b94e1a8a34afaed0a226114105a2f2a6a8076c6 .

I have a use case where this problem occurs in the following repo: https://github.com/rubenpieters/conduit-bench/tree/with-gauge .


[opentelemetry-auto-slim] fix schema url

This pull request aims to fix an issue identified in which the value of schemaUrl is being inferred in the $version parameter instead of $schemaUrl

The named params don't work with 8.0. The usage of this package for 8.0 is <1%, so I'm happy for either dropping 8.0 (update composer requirements and drop it from the build matrix), or maintaining support for a bit longer by not using named params.

The named params don't work with 8.0. The usage of this package for 8.0 is <1%, so I'm happy for either dropping 8.0 (update composer requirements and drop it from the build matrix), or maintaining support for a bit longer by not using named params.

I opted for the second option, so I removed the named parameters. What do you think ?

I opted for the second option, so I removed the named parameters.

The change LGTM, however there are now psalm failures.

I opted for the second option, so I removed the named parameters.

The change LGTM, however there are now psalm failures.

Could you help me resolve the psalm errors?
I tried to add extends to the params template code in this code snippet, but without success.

Could you help me resolve the psalm errors?
I tried to add extends to the params template code in this code snippet, but without success.

Slim added some psalm template annotations in 4.14.0. Trying to replicate the annotations they use internally (@template-extends) doesn't seem to be detected by psalm, not sure if it's because of the anonymous declaration, but it can be suppressed with @psalm-suppress MissingTemplateParam before that line.


Adding Profile Image In Profile

Is it a ?

[ ] Bug Report

[x] Feature Request

[ ] Chore

Feature Request
Feature Description
I would like to add a good placeholder for profile image in OrganizerDetailedActivity and the Organizer can change the image when they want.
Screenshots of the issue

Would you like to work on the issue?
Yes

Please elaborate the issue
Profile Image and placeholder already exist in Profile Section

For some phones the place holder is blured. and can't change the profile picture by the organizer.

OK, please split the issue into 2

[ ] Changing The Profile Place Holder

[ ] Enabling Change Profile Picture For The User

Please create a new issue for second part is what I meant by splitting

Okay

You still working on this @SahanMonaara ?


purge fails with import error

Describe the bug
Purge fails with an ImportError. It tries to import parse_json_link_index which fails.
$ ./bin/archivebox-purge
Traceback (most recent call last):
  File "./bin/archivebox-purge", line 9, in <module>
    from archive import parse_json_link_index
ImportError: cannot import name 'parse_json_link_index'

Would it be possible to have a remove button/checkbox on the index.html, and thus you could remove by selecting them through that, it could then direcly remove the website or it could just mark it for when ./archive goes to write to it again, it sees the mark and moves the website.

I'll work on it

@Mortuus-Medicus yes that will be added once we have the Django UI pushed.  For now that's impossible with static HTML as there's no server that's running to listen for the remove request.
The purge script will be updated in v0.3.0, can you wait until that version is released, or do you need to purge URLs immediately?

@pirate Would it not be possible to achieve the same result with JS? Or is that not robust enough?

What do you mean? Client-side JS cannot access the filesystem, and we're not adding a node server just for that one feature when Django is almost finished anyway.

I see, then there's no real point in reinventing the wheel if you already have almost finished Django!
(Hmm... Don't know why, but I'm feeling the urge to recreate your program in Go)

FYI This is fixed here: https://github.com/pirate/ArchiveBox/wiki/Roadmap#-archivebox-remove
There's a posted example of the new behavior there too ^
You can check it out on the django branch, but don't run it on a big existing archive without backing it up somewhere first!


Destroy and Rebuild wont work

Issue description:
Hello, I'm trying to destroy my slider, remove an img element from the DOM and then rebuild so it will accept the changes I've made, but I can't ever get the slider.destroy() to work, in fact it keeps saying it's not a function. What do I need to do to get this to work?
Many thanks for your help.
Demo link/slider setting:
https://codepen.io/patman45/pen/vzRyNw
Tiny-slider version: 2.8.6
Browser name && version:  Chrome Version 68.0.3440.106 (Official Build) (64-bit)
OS name && version:  Mac OS

Sorry realised I was doing it totally wrong. Closed this.
destroy()
Remove elements
set new slider variable
rebuild()


Typo for s10 support (HSDES:14018681578)

Fixing a typo that prevents s10 boards from running this test

Failing sim s10gx run now passes: https://spetc.intel.com/testsummary?trview=0&testRunIds=7597769


v1.2.0 release - set smart contracts version

Description
Add your description here, if it fixes a particular issue please provide a
link
to the issue.
Checklist

[ ] Commit sequence broadly makes sense and commits have useful messages.
[ ] New tests are added if needed and existing tests are updated.
[ ] Relevant logging and metrics added
[ ] CI passes. See note on CI.
[ ] Any changes are noted in the changelog.md for affected crate
[ ] Self-reviewed the diff

Note on CI
If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges.  Please contact IOG Partner Chains developers to do this
for you.

trustless was renamed and the version was dropped to have the nix-os build green. So we should release smart-contracts first before we make this change


DNS resolution fails on Ubuntu k8s cluster

The nslookup command fails to resolve service addresses like kubernetes.default on a busybox pod running on a k8s cluster deployed over Ubuntu VMs with the flannel plugin. The same, however, works with the Weave Net plugin.
Expected Behavior
DNS resolution (nslookup) should work right out of the box on a busybox pod for addresses like kubernetes.default.
Current Behavior
The following error is observed.
root@master-0-ubuntu1604:~# kubectl exec -ti busybox -- nslookup kubernetes.default
Server:    <IP_ADDRESS>
Address 1: <IP_ADDRESS>

nslookup: can't resolve 'kubernetes.default'
command terminated with exit code 1

Steps to Reproduce (for bugs)

Deploy a k8s cluster using kubeadm. Ensure that --pod-network-cidr=<IP_ADDRESS>/16 is set with kubeadm init.
Deploy flannel: kubectl create -f https://raw.githubusercontent.com/coreos/flannel/v0.10.0/Documentation/kube-flannel.yml
Deploy a busybox pod: kubectl create -f https://k8s.io/examples/admin/dns/busybox.yaml
Lookup kubernetes.default via nslookup: kubectl exec -ti busybox -- nslookup kubernetes.default

Context
Pods from Istio failed to start on my k8s cluster when using Flannel; however, they worked perfectly fine with Weave Net. istio/istio#5379 describes the issue in further detail.
Your Environment

Flannel version: v0.10.0/v0.9.0
Backend used (e.g. vxlan or udp): vxlan
Kubernetes version: v1.11.0
Operating System and version: Ubuntu 16.04 (Kernel: 4.4.0-42-generic x86_64 GNU/Linux)

I'm having the same problem with kubernetes 1.10.5 and Ubuntu 18.04 LTS. I'm new to Kubernetes and am probably misunderstanding how this all works. Would appreciate any guidance.
If I go to the shell on a busybox pod I can't resolve kubernetes.default or kubernetes.x where x is one of three namespaces I've created.
But I'm getting slightly farther than the OP. When I run nslookup I get:
/ # nslookup kubernetes.default
Server:    <IP_ADDRESS>
Address 1: <IP_ADDRESS> kube-dns.kube-system.svc.cluster.local

nslookup: can't resolve 'kubernetes.default'
/ #

This suggests that the nameserver IP is successfully resolving to a PTR record of some sort? Sure enough, testing nslookup against the above name of the nameserver works:
/ # nslookup kube-dns.kube-system.svc.cluster.local
Server:    <IP_ADDRESS>
Address 1: <IP_ADDRESS> kube-dns.kube-system.svc.cluster.local

Name:      kube-dns.kube-system.svc.cluster.local
Address 1: <IP_ADDRESS> kube-dns.kube-system.svc.cluster.local
/ #

So nslookup appears to be able to reach a 10.96 IP even though there are no interfaces, IPs or routing entries on my nodes or pods related to any 10.xxx network.
And it appears that kube-dns is not forwarding other requests to the node's nameserver entries, which are present in /etc/netplan/bond0.yaml.
What am I missing?
How is traffic reaching kube-dns at a 10.96 IP?
Where/how should kube-dns know to forward lookups to the node's nameserver setting?
Hope to hear from you...

OK, found this other earlier issue: https://github.com/coreos/flannel/issues/983
Which is much like mine, they're also getting the reverse lookup for the kube-dns pod
Added the configmap for kube-dns with the upstreamNameserver setting pointed at my on-premise nameservers and I can now nslookup both outside and on-premise hostnames but it takes just about exactly 20s to return an address. In fact, for google.com it takes 20s to return an IPv6 address and then another 20s to return IPv4.
This smells like a timeout setting that needs to be changed.

OK, it's getting weirder.
After deleting and relaunching the busybox pod, nslookup now immediately returns a "non-authoritative" answer. But then it hangs for 5s exactly and returns an error "*** Can't find s---.org: No answer"
Will stop spamming this issue as I've drifted from the OP's problem but will post here when I figure this out.


change the wording

https://github.com/MicrosoftDocs/windows-itpro-docs/issues/6644

Dear @JohanFreelancer9,
kindly do the copy editor review for this PR.
Dear @mypil, for your information
Thank you

@lomayor - PR has been copy edited and is ready for final review. This is based on issue #6644.
Thank you.
cc: @kenwith

I'm working with Daniel Simpson and I've reviewed this and agree with the change.


Question about examples.

Hi @wibblymat Thanks for sw-toolbox!
I'm trying to find examples.  Can you point me to examples of applications using sw-toolbox.  I apologize for not finding them.
I tried from the documentation to create an example.  See https://civic-data.github.io/laws-of-planet-earth/us/ny/scripts_openlegislation/getdata1_swtoolkit.html
I only seem to be able to cache some of the data.
How do I turn on debug in the sw-toolbox.js?
It appears that globalOptions.debug and options.debug can be set to true, but I don't see how to set it.
Again I apologize for not finding it and thank you for the toolbox!
service worker support is amazing!  I agree with @jakearchibald  that this changes applications for the better!

I think I made my little example work.
See https://civic-data.github.io/laws-of-planet-earth/us/ny/scripts_openlegislation/getdata1_swtoolkit.html
One thing that would helpful in the Chrome Cache Storage interface would be to make the pagination of the cached items clearer.
I was wondering why the items seemed to not be cached if there were more than 50
It turns out you have to go to the next page :)
For anyone debugging, those little arrows are very important. :)
It would be helpful to have something like page 1 of 6 or something like that on the page.

Hi @fedex1!
There aren't any big examples available right now. This has been developed internally for projects at Google, and while some of them will be released as open source as some point, none of them has yet.
I should definitely make a proper demo and include it in the repo. I've opened #9 to track that.
You change global options like toolbox.debug = true. You set options on a per-method level using the options object like toolbox.get('/', toolbox.fastest, { debug: true }).
For suggestions about the developer tools experience, the team are always looking for things to improve. It would be awesome if you could submit feedback to at http://crbug.com/ though, as we tend to give more weight to requests that come from 'real' developers.
Please open/re-open an issue if you have more problems or feedback!

Thanks and will do.

@wibblymat What sort of debugging should one see when setting toolbo.debug = true and passing debug:true when registering a runtimeCache?  I can't seem to get my runtimeCache working but I have to imagine it is because I'm doing something wrong and not that there's a bug with a basic use case.  I have been trying to get more information out of SW Toolbox but haven't figured out how.


ci: bump nix-install-action (fixes docs build)

The new docs CI (#2554) relies on --arg-from-file, which was added in 2.24.
nix-install-action v26 installs nix 2.20.5, updating to v30 will install nix 2.24.9.

@mergify queue


merge package from arlac77/npm-package-template

package.json

chore(package<EMAIL_ADDRESS>

Coverage remained the same at 70.0% when pulling 4e34f9d3ef8641d0ebeed14b953b96c539e9604b on template-sync-1 into 3a9ac4bc7d6408eecb154758e1b25392a97ef093 on master.


Missing Not() method in Predicate Builder

Great project, but missing the Not() option in the Predicate Builder:
public static Expression<Func<T, bool>> Not<T>(this Expression<Func<T, bool>> expression)  {             return Expression.Lambda<Func<T, bool>>(Expression.Not(expression.Body), expression.Parameters); }
This can be used for negating the expression for example:
inner = inner.Or (p => p.Description.Contains ("foo")).Not();

Why do you want to make your own not-operator?
There is already Not-operator in expressions, it's just not extension-method: https://msdn.microsoft.com/en-us/library/bb299047(v=vs.110).aspx
I would need a little more code to not-be-a-pseudo, but I think you could do:
 inner = inner.Or (Expression.Not(p => p.Description.Contains ("foo")));
or
 inner = inner.Or (p => !p.Description.Contains ("foo"));

It was just for adding more fluent code to the current api provided by LinqKit. ;-)

I think that all the System.Linq.Expressions, at least unary-expressions (ArrayLength, Convert, ConvertChecked, Negate, NegateChecked, Not, Quote, TypeAs, UnaryPlus) could be extension methods, how ever this shouldn't be LinqKit's improvement but .NET Framework Class Library.
You can make a PR if you feel that these would be very helpful, but LinqKit is not the only tool using expression-traversal. Or should we close this issue for now?

Hi,
I think you are correct, that this should be included in the .Net Framework Class Library. So I will close this issue for now. Thanks for the comments ;-).

Based on the above I could not figure out how todo this, so for anyone else looking for a solution here is what we found to be working after quite a while of trial and error.
Our use case was to negate an entire predicate chain that contained many ands / ors. negating the individual chain elements would have made the query unreadable / unmaintainable.
We would find it helpful if ExpressionStarter would provide a negation option for an entire predicate chain out of the box.
var predicate = PredicateBuilder.New<TEntity>(your start condition);
Expression<Func<TEntity, bool>> expression = predicate; // its important to use implicit conversion here
if (negate)
{
    expression = expression.Not();
}

query.Where(expression);

// register extension method
public class ExtensionMethods {

    public static Expression<Func<T, bool>> Not<T>(this Expression<Func<T, bool>> one)
    {
        var candidateExpr = one.Parameters[0];
        var body = Expression.Not(one.Body);

        return Expression.Lambda<Func<T, bool>>(body, candidateExpr);
    }
}


MINIFICPP-1047 Add property "Drop empty flow files" to PublishKafka

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

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

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

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

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

For code changes:

[x] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[x] If applicable, have you updated the LICENSE file?
[x] If applicable, have you updated the NOTICE file?

For documentation related changes:

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

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

Will run tests.

@bakaid Did you run the tests?

@szaszm Unfortunately I was always preempted by something, but I am building your final version right now.

@szaszm moving the make_headers call to the ReadCallback constructor body solves the issue.

Merged as 455d4b35bb6bc70373372d66ceaf9d35a4d32a49
Forgot to add close with commit, closing manually.

Both appveyor test failures are unrelated:

ProcessorTests: Fails because it tests that a file with a name starting with a dot is treated as a hidden file and ignored by GetFile
TailFileTests: Fails because test files are written with CRLF line ending but TailFile expects LF.
Both are fixed in MINIFICPP-1096 (PR coming soon)


Reduce unnecessary white space on some androids

Screenshots are from a community member in discord:
On an android, it appears that there is too much white space all around (or we don't optimize for it). we can do better on this so more useful information is displayed without scrolling.

@PeterMain what do we want to do here? Just less padding?


listset - Feature Request

Request:
/lac listset [setName]
Description:
A function for listing all sets created for the current profile.  Optional arg[3] value "setName" can be supplied to list the names of items included in the set.
Example:

Thanks for implementing this in 1.5.0


feat(otlpreceiver): add solution

Adds the attributes described in README.md.

Kind of superseded by 19966759fe24d9bc847042c4280545d91c820736.