EDIFACT: Serialize DateTime Value Based On Format Qualifier

Hi
I currently have an element defined as below which forces the DateTimePeriod to be serialized as per the Format annotation (i.e. yyyyMMddHHmm).  Is there any way of serializing the format dynamically based on the DateTimePeriodFormatQualifier value?
    [EdiElement]
    public class C507
    {
        [EdiValue("X(3)", Path = "*/*/0", Mandatory =true)]
        public string DateTimePeriodQualifier { get; set; }

        [EdiValue("X(35)", Path = "*/*/1", Format = "yyyyMMddHHmm")]
        public DateTime DateTimePeriod { get; set; }

        /// <summary>
        /// 2379 - Specification of the representation of a date, a date and time or of a period.
        /// <para>203 - CCYYMMDDHHMM</para>
        /// <para>204 - CCYYMMDDHHMMSS</para>
        /// </summary>
        [EdiValue("X(3)", Path = "*/*/2")]
        public string DateTimePeriodFormatQualifier { get; set; }
    }

Hi @idblew,
although I havent given this much thought I would say that there is no easy way to do this at the moment except if the value part (DTM/*/1) is changed from DateTime to string.  Then one could create a non mapped seccond  property that uses the public string DateTimePeriodString { get; set; } and parses/serializes according to DateTimePeriodFormatQualifier.
Check an example here
https://github.com/indice-co/EDI.Net/blob/2e715bb1f913ffe907ade3c1812a1832041f5137/test/indice.Edi.Tests/Models/EDIFact_D96B_INVOIC.cs#L83

Hi @idblew,
although I haven't given this much thought I would say that there is no easy way to do this at the moment except if the value part (DTM/*/1) is changed from DateTime to string. Then one could create a non mapped second property that uses the public string DateTimePeriodString { get; set; } and parses/serializes according to DateTimePeriodFormatQualifier.
Check an example here
https://github.com/indice-co/EDI.Net/blob/2e715bb1f913ffe907ade3c1812a1832041f5137/test/indice.Edi.Tests/Models/EDIFact_D96B_INVOIC.cs#L83

Thanks @cleftheris for the response, that's exactly how I worked around the problem using an extension method for DateTime 😊
    /// <summary>
    /// C507 - Date and/or time, or period relevant to the specified date/time/period type.
    /// </summary>
    [EdiElement]
    public class C507
    {
        /// <summary>
        /// 2005 - Code giving specific meaning to a date, time or period
        /// <para>7 - Date and/or time at which specified event or document becomes effective.</para>
        /// </summary>
        [EdiValue("X(3)", Path = "*/*/0", Mandatory =true)]
        public string DateTimePeriodQualifier { get; set; }

        public DateTime DateTimePeriod { get; set; }

        /// <summary>
        /// 2380 - The value of a date, a date and time, a time or of a period in a specified representation.
        /// </summary>
        [EdiValue("X(35)", Path = "*/*/1")]//, Format = "yyyyMMddHHmm")]
        public string DateTimePeriodFormatted { get { return DateTimePeriod.FormatAsString(DateTimePeriodFormatQualifier); } }

        /// <summary>
        /// 2379 - Specification of the representation of a date, a date and time or of a period.
        /// <para>203 - CCYYMMDDHHMM</para>
        /// <para>204 - CCYYMMDDHHMMSS</para>
        /// </summary>
        [EdiValue("X(3)", Path = "*/*/2")]
        public string DateTimePeriodFormatQualifier { get; set; }
    }

        public static string FormatAsString(this DateTime datetime, string formatQualifier)
        {
            string format = "";
            switch (formatQualifier)
            {
                case "101":
                    format = "yyMMdd";
                    break;
                case "102":
                    format = "yyyyMMdd";
                    break;
                case "201":
                    format = "yyMMddHHmm";
                    break;
                case "202":
                    format = "yyMMddHHmmss";
                    break;
                case "203":
                    format = "yyyyMMddHHmm";
                    break;
                case "204":
                    format = "yyyyMMddHHmmss";
                    break;
            }

            return datetime.ToString(format) ?? datetime.ToString();
        }

PS: This is a great EDI Serializer/Deserializer, really made the job of generating well formed EDI so much easier!  Keep up the excellent work!!


[Suggestion] Remove the "precision/powerful" hookset options from  weak (!) and strong (!!) bites.

This is just a suggestion to reduce UI clutter. Weak bites (!) are always precision, and strong bites (!!) are always powerful. The only one that is split depending on fish is the ferocious/legendary bite (!!!).
Having the option there doesn't really hurt anything, this is really just a cosmetic suggestion. Feel free to ignore or whatever, just thought I'd throw it out there.

I appreciate the feedback. The selectable hookset was a very requested feature, but I didn't know if it only applied to !!! bites so I just added it to all options to be extra safe. I'll leave it for now but if I ever touch the UI again I'll probably see if its fine to remove them.


Disconnects after several minutes

The video feed I have is working fine, but after several minutes the connection times out, and I need to hit "done" and open the camera again to view it. This is on a raspberry pi 3 with a USB webcam, and with only a few filters added to the ffmpeg.js file to crop and rotate the video

Can you post your config? Also kind of off topic but I'm interested in how you rotated the image. I would like to mount my camera upside down and wasn't sure how to go about flipping the image so I mounted it right side up.

I'm interested in how you rotated the image

I edited the command that starts ffmpeg to use the transpose filter
I should note I also reproduced this with an unmodified version of the progran


WIP Hoist via ts transformer

Can I get a code review on this?  I still need to port the rest of the transformer's validation, but it does the correct transformation.  I want to ensure I'm on the right track; are there any style changes I should make?
Implements #256

Code-style-wise I think it's fine.
We might move the language server into a different branch for a while, see #529 - just so you know

The original babel transformer uses declaration information to detect whenever a hoisted module factory refers to external variables.  If those variables aren't ambient globals (Promise, window, etc) then it generates a diagnostic message.  The goal is to avoid situations where the hoisted statement references external variables that aren't declared yet.
The problem is, the necessary scope information isn't available without TypeScript's binder, and that's not available to transformers.  So that kind of sanity-checking should be moved into a language service plugin.
Is it ok if I remove those sanity-checks from the transformer and add an explanation to the readme?

Hm. I'm unsure. If we're going to get any loss in functionality, I think I'd prefer to keep using the babel postprocessor - it also allows us to take advantage of the fact that if Jest adds extra steps to their plugin, we don't need to rewrite our transformer.

@GeeWee I think that's valid, but personally I want to have the option of using a ts transformer because it speeds up boot times so much.  This is really important when debugging tests in the IDE, because the node process is started anew every time.
Right now, the implementation uses babel by default.  If (and only if) a user specifies skipBabel then the typescript transformer will be used.  This effectively gives us an increase in functionality over the status quo.

It also gives us a lot of extra surface to maintain for what I see for very little gain

The benefits are much bigger from my perspective because I routinely attach the debugger to tests, so having low startup and transpilation times are important.
But if this doesn't get merged here, I can publish it as a separate module.  People who want to use it can do the following:

Enable skipBabel
Use ttypescript via #543 / #551
Add the transformer to their tsconfig.json

Ideally ts-jest's README can have how-to instructions for this setup.

Perhaps it's a CPU speed issue - even when I do that it's pretty fast. Do you have any idea what the babel vs typescript transformer performance is?
To me this actually seems like a really good idea !

Huh, yeah 1.5s vs 0.2s require time seems pretty massive.

Makes sense since babel-core alone pulls 489 modules off disk, and that's not counting the other fs calls required to locate them in the first place (with node's complex CommonJS loader behavior: reading package.json, ./index.js, and checking for multiple node_modules directories)
TypeScript is bundled as a single source file.
Repro:
node -e "console.time(process.argv[1]); require(process.argv[1]); console.timeEnd(process.argv[1]); console.log('Modules loaded: ' + Object.keys(require.cache).length);" babel-core
node -e "console.time(process.argv[1]); require(process.argv[1]); console.timeEnd(process.argv[1]); console.log('Modules loaded: ' + Object.keys(require.cache).length);" babel-preset-jest
node -e "console.time(process.argv[1]); require(process.argv[1]); console.timeEnd(process.argv[1]); console.log('Modules loaded: ' + Object.keys(require.cache).length);" babel-plugin-istanbul
node -e "console.time(process.argv[1]); require(process.argv[1]); console.timeEnd(process.argv[1]); console.log('Modules loaded: ' + Object.keys(require.cache).length);" typescript

I think I'm going to close this in favour of #551 - if people are so inclined they can skip babel and use the transformer via something like ttypescript.


Extending config format for user-defined flow steps

Hi,
I use custom step for js handling. Plugin (jsmin-sourcemap) demands configuration in format {dest: [], src: []}. deepMerge function truncate anything except { files: [] } through. I extended it slightly (only for arrays too through). I'd like to see this issue fixed in main repository, so I could reference in packages to it but not to my github repo; if there's additional adjustments that should be done please let me know.
(example how I use it:
var jsminUsemin = {
    name: 'jsmin-sourcemap',
    createConfig: function(context, block) {
      var cfg = {dest: [], src: []};
      var outfile = block.dest;
      cfg.dest = path.join(context.outDir, outfile);
      context.inFiles.forEach(function(f) { cfg.src.push(path.join(context.inDir, f)); } );
      context.outFiles = [block.dest];
      return cfg;
    }
  };

...

useminPrepare: {
      html: 'app/index.html',
      options: {
        root: 'app',
        dest: 'dist/app',
        flow: {
          html: {
            steps: {
              js: [jsminUsemin],
              css: ['cssmin']
            },
            post: {}
          }

        }
      }
    },

Thanks,
Igor

Thanks for resolving this issue


where does insanely-fast-whisper  store the downloaded model file?

Hi, there, I am student in China. I cannot download the whisper model files, eg. large-v3.ph, automatically by running the nsanely-fast-whisper command. But I can download manually from other website. But where should I put those model files? Thank you.

I also would like to know where they are stored since they don't appear to be deleted after uninstalling with pipx

It's a crime to stuff massive files into system partition, into a hidden directory.
If I'm in
/media/sda2/projects/Neural/speech_transcription/ifwhisper$ pipx install insanely-fast-whisper --force --pip-args="--ignore-requires-python"
The downloaded files should go in the /media/sda2/projects partition.
I know this isn't Valbhavs10 fault.  It's people who grew up with Windows' fault, aka the entire Python community.

Hi, there, I am student in China. I cannot download the whisper model files, eg. large-v3.ph, automatically by running the nsanely-fast-whisper command. But I can download manually from other website. But where should I put those model files? Thank you.

有个--model-name的参数，这里直接把模型的路径给定就可以了，比如说
insanely-fast-whisper --file-name /data_hdd/test-Dataset-500/ --model-name /data_hdd/Projects/models/whisper/openai-whisper-large-v3 --device-id 0 --timestamp chunk --transcript-path /data_hdd/test_whisper.json


anti-mash

What feature do you want to get added on the base engine?
im not a bad rhythm gamer, but i genuinely request you to make anti-mash togglable, thanks.

just go to Options, then Gameplay, then Disablr Ghost Tapping

just go to Options, then Gameplay, then Disablr Ghost Tapping

That makes it so that when there is no note to hit, you miss.
Antimash is hardcoded.


Add a Screenshot

This is really, cool! I've seen this repo before, but I didn't understand exactly what it did from the description. Your screenshot that you posted on the forums would be perfect, can you add it to the README?

Added the screenshot. Updated the readme - Will add more screenshots and a proper description once Armory v0.6 arrives :)


Custom widgets in matrixdynamic

Hello, my intention is to embed select2tagbox in matrixdynamic. Is there any generic way to do so?
Using JQuery I'm trying to override the 'cellType' property of matrixdropdownbase class
JsonObject.metaData.addClass("matrixdropdownbase", [          .....         { name: "cellType", default: "dropdown", choices: ["dropdown", "checkbox", "radiogroup", "text", "comment"] }          ..... ],
with select2tagbox property (as mentioned in the  select2tagbox example) but I'm not sure if it'll work.
Is this feasible ?

@Kuhax Do you want to replace a checkbox by select2tag widget?
Thank you,
Andrew

@andrewtelnov I was thinking about overriding any of the default choices available for matrixdynamic: ["dropdown", "checkbox", "radiogroup", "text", "comment"]. I thought that implementation-wise dropdown was the simpliest to be overriden by select2tag (since the latter extends dropdown). However, in the end my goal is to be able to add a select2tag column to matrixdynamic.
If you can provide an option to replace a checkbox by select2tag that would be fantastic.

@Kuhax I think we have to make a demo. Probably, I am not sure, we will have to modify the library to be able to do it.
I am adding the demo into our TODO list. If I don't comeback on the next week, please ping me.
Do you have any urgent deadline?
Thank you,
Andrew

@andrewtelnov a demo sounds good. As of today I don't have an urgent deadline, I'm on "when it's done" mode. Certainly it would be nice to have this feature implemented.

@andrewtelnov Is it also possible to add a demo on using the jqueryUI datepicker in matrixdynamic? I can't seem to get this to work as well.

@nategasm Yes, we will make it work as well.
Thank you,
Andrew

I've noticed this enhancement was added in the new version but the datepicker still isn't working as intended. What happens is when you add additional rows and change the date, it will only change the date of the first row. A similar (but maybe separate) issue also happens when you have more than one datepicker field in the survey, in this case it will only update the first datepicker field.
In general the datepicker widget I find is very buggy and fiddly to use with surveyjs especially when you have a lot of them in a survey. It would be great if there were a built in/native datepicker question type.

@nategasm I've just tested jQueryUI DatePicker in the matrixdymanic question. The problem was in the widget-datepicker id attrubute that has being used in the template and used as selector for jQuery widget creation.
After changed to the css class, multiple DatePickers work ok for me in matrixdymanic. Can you check this plunk: http://plnkr.co/edit/KDQZBx3zvJTtprzpQvd4?p=preview ?
If it's ok for you, I'll update corresponding example.

@tsv2013 DatePickers as shown in the plunk look good to me.
However, I was unable to make select2tagbox work in matrixdynamic.

@Kuhax ok, I'll add select2tagbox in the sample plunk.

@Kuhax I've updated the http://plnkr.co/edit/KDQZBx3zvJTtprzpQvd4?p=preview plunk with select2. Can you check it?

@tsv2013 I've had a look at your plunk and it works great thank you.
I'm now trying to use the dateFormat (dd/mm/yyyy) property with matrixdynamic but it does not seem to be working fully.
Check my fiddle: https://jsfiddle.net/mo2pg19h/1/
It works fine for the first textbox but it seems to get the day/month/year mixed up in the matrix when you try to change it.

@nategasm This code:
Survey.JsonObject.metaData.addProperty("text", {
	  name: "dateFormat",
	  default: "dd/mm/yy",
	  choices: ["dd/mm/yy", "mm/dd/yy", "yy-mm-dd", "d M, y", "d MM, y", "DD, d MM, yy", "'day' d 'of' MM 'in the year' yy"]
	});

adds properties for ordinary questions only and doesn't affect inner matrix questions. We need to discuss it with @andrewtelnov.

@tsv2013 I have checked the plunk and it works flawlessly. Thanks

@nategasm I've updated your fiddle to make it work - https://jsfiddle.net/mo2pg19h/3/
I've added declaration for a new property for matrix column:
	Survey.JsonObject.metaData.addProperty("matrixdropdowncolumn", {
	  name: "dateFormat",
	  default: "dd/mm/yy",
	  choices: ["dd/mm/yy", "mm/dd/yy", "yy-mm-dd", "d M, y", "d MM, y", "DD, d MM, yy", "'day' d 'of' MM 'in the year' yy"]
	});

And added onMatrixCellCreated event handler to pass property value from column options to the created cell:
  survey.onMatrixCellCreated.add(function(model, options) {
		if(options.column.cellType === 'text'  ) {
    	options.cellQuestion.dateFormat = options.column.dateFormat;
    }
  });

Does it fit your needs?

@Kuhax If you are using your own editor. You may add the dateFormat property into Editor as:
SurveyQuestionEditorDefinition.definition["matrixdropdowncolumn@text"].properties.push("dateFormat");
PS: We are using dev version. I have added onMatrixCellCreated event just yesterday. We will release a new version in few days.
Thank you,
Andrew

@tsv2013 Thanks, that seems to work, but I have updated the fiddle again with another issue where the values aren't saved when you switch between pages: https://jsfiddle.net/mo2pg19h/4/

@nategasm Thank you for the fiddle. I'll take a look.

@nategasm I guess the thing was in the following code:
	    if (question.name === 'textDate') {
	      convertDate = new Date();
              widget.datepicker('setDate', convertDate);
	    }

It is executed for the question with 'textDate' name only and hence only for one quetion in the survey. And thst's why initial values were not being set on the second page.
I've commented the code above and added the following line:
      question.valueChangedCallback();
Please check the updated fiddle: https://jsfiddle.net/mo2pg19h/5/

@tsv2013 That seems to almost work, but there are still some really weird issues in that fiddle.
Here is one example with exact steps:
On page 1 fill out the first matrix row completely
Add a second row, fill in 1st column, then 2nd column.
After filling 2nd column the date value of the first row is cleared.
If you continue changing the values on the 2nd row, it will then sometimes change the values on the 1st row.

@nategasm I see! Thank you! We'll fix it ASAP.

There was an "fiddle.jshell.net/:211 Uncaught TypeError: Cannot read property 'split' of undefined" in the stringToDate function:
	function stringToDate(_date, _format, _delimiter) {
	  var formatLowerCase = _format.toLowerCase();
	  var formatItems = formatLowerCase.split(_delimiter);
	  var dateItems = _date.split(_delimiter); // _date is undefined here is some cases
	  var monthIndex = formatItems.indexOf("mm");
	  var dayIndex = formatItems.indexOf("dd");
	  var yearIndex = formatItems.indexOf("yyyy");
	  var month = parseInt(dateItems[monthIndex]);
	  month -= 1;
	  var formatedDate = new Date(dateItems[yearIndex], month, dateItems[dayIndex]);
	  return formatedDate;
	}

I've fixed it via:
var dateItems = (_date || "").split(_delimiter);
You can check an updated fiddle: https://jsfiddle.net/mo2pg19h/6/

@tsv2013 Almost there! I have found another broken scenario in that fiddle.
Fill out 2 rows on page 1, fill out 2 rows on page 2, go back to page 1. The 2nd row values are reset. Filling in row 2 values again will then change row 1 values.
It doesn't seem to be the stringToDate function as I tried removing it.

@nategasm I'll check it. Thank you for the report.

@nategasm I've not managed to reproduce described behaviour with the current dev version. I've updated dev version on our cdn. You can check the fiddle - https://jsfiddle.net/mo2pg19h/8/

@tsv2013 Looks like I had to clear my cache, seems fine now, thanks!
Sorry to be a pain though, I have found another weird interaction. Check my fork fiddle: https://jsfiddle.net/mpy52s1u/
I've just added a few more questions. To reproduce the bug, fill out all questions (tick all checkboxes) and put at least 3 rows in each matrix. After completing the survey and looking at the result you'll see some questions containing the wrong responses. eg. In my result I got "asDate":"Check 3" and "textDate":"Check 1"

@nategasm Ok, I'll check it. Thank you for the feedback!

I've changed value change subscription to the native jQuery DatePicker event:
	    //widget.on("change", function(e) {
	    //  question.value = $(this).val();
	    //});
	    var widget = $(el).find('.widget-datepicker').datepicker({
	      dateFormat: question.dateFormat,
              onSelect: function(dateText) {
                question.value = dateText;
              }
	    });

After these changes the updated fiddle https://jsfiddle.net/mpy52s1u/3/ works ok for me :)
Can you check it?

@tsv2013 Everything finally works fine now. Thanks so much! Would be good if you updated the surveyjs.org datepicker example to use the same properties.

I've update examples on the surveyjs.org.

@tsv2013  I have a small issue with a rendering condition of select2tagbox. In your plunk the condition is isFit : function(question) { return question.name === 'subject'; },
I would prefer it to be like isFit : function(question) { return question["renderAs"] === 'select2tagbox'; }, which does not work right now as it is with matrixdynamic.

@Kuhax This had been discussed in this comment above https://github.com/surveyjs/surveyjs/issues/384#issuecomment-303948715
"renderAs" custom property is not set for cell questions. You can do it on the onMatrixCellCreated event handler to pass property value from column options to the created cell:
  survey.onMatrixCellCreated.add(function(model, options) {
		if(options.column.cellType === 'dropdown'  ) {
    	options.cellQuestion.renderAs = options.column.renderAs ;
    }
  });

The column property should be declared as
	Survey.JsonObject.metaData.addProperty("matrixdropdowncolumn", {
	  name: "renderAs",
	  default: "default",
	  choices: ["default", "select2tagbox"]
	});

And for the certain cloumn you can set the "renderAs" ptoperty to the "select2tagbox".

@tsv2013 I understand that "renderAs" cannot be used in matrixdynamic but I would like to mark a dropdown with a flag in order to set it to select2tagbox or dropdown.
This condition -> isFit : function(question) { question.name === 'some_name_1';}, is way more restricitive then isFit : function(question) { return question["renderAs"] === 'select2tagbox'; },  Since I may need to copy paste the widget code several times in order to adapt it to different questions with names like "some_name_1", "some_name_2" to "some_name_n". If the question is tagged with some kind of custom property such as ["renderAs"] === 'select2tagbox' it will work for all questions tagged with this mark.

@tsv2013 I have tried your suggestions on this plunk but it just won't work. Do you mind check this out, please ?
Thanks in advance.

@Kuhax Sure. It's very strange - in this case  onMatrixCellCreated event fires too late - after cell controls has been created. I need to check our sources.

@Kuhax we've discussed this with @andrewtelnov and decided to pass properties from column description to the cell quesion. I'll implement it ASAP.

@tsv2013 thank you very much. I'm really looking forward to this.

@Kuhax I've added necessary code in our core library and updated dev version on our cdn - you can check the plunk: http://plnkr.co/edit/HZgXdp?p=preview
Fix will be available in the nearest update.

@tsv2013 thanks. I have checked it out and it works as expected now. However I've found another issue with rendering previously saved results. Please take a look at this plunk Notice that on line 100 I am trying to load a previously saved survey. In the first question there are 3 answers ("English: British and World Literature","Math: Practical Math","someOtherValue"). Notice that "someOtherValue" was introduced manually and was saved correctly. However it won't appear on the survey afterwards.
It seems that custom values (which are not in the list) are not rendered by default.

@tsv2013 after some tinkering I think the issue lays in line 69
$el.select2({tags: "true", data: question.visibleChoices.map(function(choice) { return { id: choice.value, text: choice.text }; })});
Looks like question.visibleChoices.map leaves out custom values and takes only ones that exist in the list.
Is there any other other way to assign all the values to data ?
Thanks

Hi @Kuhax I've slightly modified the plunk, now it takes other values in account in the choicesChangedCallback. Can you check it?

@tsv2013 I have just modified select2 widget in my survey following your suggestions and it worked straight away. Custom values (or tags) are now saved and rendered correctly.
Thanks for your help.

@Kuhax Glad to hear!

@tsv2013 I have found one issue with rendering of saved results. Take a look an this plunk  I have added "value" and "text" to the options. When a survey is rendered with saved values, both values and text appear in the select2 widget.

@Kuhax I've fixed it in this plunk. You can check it.
Ive patched choicesChangedCallback  function:
        question.choicesChangedCallback = function() {
            var choices = question.visibleChoices.map(function(choice) {
                return { id: choice.value, text: choice.text };
              });
            (question.value || []).forEach(function(valueItem) {
              if(choices.filter(function(choice) { return choice.text === valueItem || choice.id === valueItem; }).length === 0) {
                choices.push({ id: valueItem, text: valueItem });
              }
            });
            $el.select2({
              tags: "true",
              data: choices
            });
        }

Now choices is filtered not be text only, but by id also.

@tsv2013 I have tried it and it works perfectly. Maybe it's a good idea to document this feature because it's pretty cool.
Thanks !

I've found an issue with my application where I'm trying to use a custom widget within a dynamic matrix. It seems to also exist in the plunk mentioned above (plunk) so thought you might be able to offer some advice.
If you have multiple rows in the dynamic matrix and then click the remove button on the first row the last row gets removed. Other rows will do the same, always removing the last row. Interestingly, the correct element in the dynamic matrix data array is removed i.e. the data is correct but the display is wrong.
I've seen this issue in IE and Firefox. Any help would be greatly appreciated.

@Kichi93, hello! I've created separate issue for this problem.  https://github.com/surveyjs/surveyjs/issues/549

@andrewtelnov, @tsv2013 Do we need to add final plnkr into site's examples?

Hi, i am not able to add datepicker with custom widgets that use jquery but im not able to use icon trigger for datepicker. could you please help me out on the same.

Hello @andrewtelnov , Does the date type input have a specific attribute to set that it's textbox show the current date as a default value instead of mm/dd/yyyy ? I tried couple of times setting it's value or placeholder to NOW with jquery but none of them worked, Please Advice. Thanks

@SaharDastitash Here is the code:
survey.onMatrixCellCreated.add(function(sender, options){
  if(options.columnName == "Date") {
    if(options.cellQuestion.isEmpty()) {
      var month = new Date().getMonth().toString();
      if(month.length < 2) month = '0' + month;
      var day = new Date().getDate().toString();
      if(day.length < 2) day = '0' + day;
      options.cellQuestion.value = new Date().getFullYear() + '-' + month + '-' + day;
    }
  }
});

Please create a seperate issue.
Thank you,
Andrew


Mobile Safari issue

Has anyone seen an issue when trying to use the live demos from a mobile device, specifically from iPhone/Safari or Chrome?  When I select an image from my camera roll, the app hangs on the loading message. I've replicated this with my own app on a mobile (works fine on desktop Chrome emulating a mobile device).  I'm not sure how best to try and debug the issue, outside of simply saying it doesn't work. Sorry I can't give more specifics.

Do you trying this from webpage or something like phonegap?

From a webpage.  If you point a mobile browser to one of your demo sites, you can replicate the behavior.   I tried it on this: http://codepen.io/Crackeraki/full/XmEdPx/  Thanks for looking into this.

This happens in Safari desktop version too. Any solution?

I believe it happens due to
newImage.crossOrigin = 'anonymous';

in crop-host.js.
The original ngCrop repo adds crossOrigin property only for images loaded via http. In case of a local file crossOrigin must not be set - check commit d244d01. Here is the PR.

It's happening on Firefox 35.0.1 as well
http://codepen.io/Crackeraki/pen/avYNKP

@evdoks Thanks, your commit is working :)

i will do one soon

Thanks for fixing this :D

Is this already fixed? @CrackerakiUA i think it is.. But a PR #51 says there is still something wrong?

@rickerd looks like mentioned issue with blobs is already being handled: https://github.com/CrackerakiUA/ngImgCropFullExtended/blob/master/source/js/classes/crop-host.js#L482-L484


Totals update proposal

I see a lot of people confused about the "Issued" verbiage. I'd like to propose to have 3 metrics: burned, minted, and net issued. This should alleviate the misunderstandings around those numbers. Bonus points if there's a subscript under the net issuance value that says "N% reduction" or something like that.
Current:

Totals since EIP-1559

Burned
37,554.27 ETH

Issued
71,974.85 ETH

Proposed:

Totals since EIP-1559

Burned
37,554.27 ETH

Minted
109,529.12 ETH

Net Issued
71,974.85 ETH

@hanniabu  is this an issue? @stevengcook  updated to be


Revert the test and lint pipelines to pull_request

Description
This PR reverts the test and lint pipelines to be triggered by the pull_request event, instead of pull_request_target

/merge

/merge


luigi leaves some zombie processes

Hi, I've found that sometimes luigi leaves zombies. Here is a simple code where the issue can be reproduced. This is a trivial task called 'Slowpoke' which does nothing but sleeps, accepting sleep time as a parameter. The 'Result' task creates three slowpokes which sleep 3, 6, and 9 seconds, and waits for them:
#!/usr/bin/env python

from time import sleep
from luigi import Task, IntParameter, run
from luigi.mock import MockTarget

class Slowpoke(Task):
    seconds = IntParameter()

    def run(self):
        sleep(self.seconds)
        with self.output().open('w'):
            pass

    def output(self):
        return MockTarget('Slowpoke')

class Result(Task):
    def requires(self):
        return [Slowpoke(seconds) for seconds in [3, 6, 9]]

    def run(self):
        with self.output().open('w'):
            pass

    def output(self):
        return MockTarget('Result')

if __name__ == '__main__':
    run()

(download)
Run this code with workers >= 3, and you'll find that after the first task has finished (3 sec), the appropriate worker turns to a zombie; and after 6 second, the same for the next worker:
$ ps x | awk '$3~/Z/'
 8776 pts/0    Z+     0:00 [python] <defunct>
 8778 pts/0    Z+     0:00 [python] <defunct>

In this toy example, the dead workers don't affect result since they can not be reused here anymore, but the real graph I'm targeting at is much more complex, and I see zombies there too. And in that case I'm not sure so much the dead workers could not be reused again.
So the existence of zombies seems to be an issue, but I'm not sure yet whether can it break an execution graph somehow.

luigi version: 2.8.13
python versions: 3.6.10, 3.7.7, 3.8.2
OS: Linux Mint 19.3

Thank you!
Cheers,
Timur

I'm having the same issue on luigi 3.4.0


ssl fails with invalid certificate even when disabling verification

  ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, error) => true;

was set, but Connect still fails with certificate fails validation.
var url = neo4JSettings.ClientUrl;
ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, error) => true;
Client = new GraphClient(url, neo4JSettings.Username, neo4JSettings.Password);
Client.Connect();

Any update on this?

No


heartbeat support

AMQP extension supports heartbeat since 1.6.0beta4. So why not support it as well?

maybe we should add a constraint about the extension version in the composer.json

Why? You can live w/o heartbeat functionality. And 1.6.0 was released like 2 weeks ago only

no problem to add the heartbeat option with an extension prior to 1.6 ?

Nope, I've originally tested with 1.4.0 and 1.6.0. Works fine

:+1:

:+1:

v1.9.0


Unable to parse special characters

Attempted to use a property that started with an @ symbol and resulted in a parse error.

How do I escape square brackets if I use the square bracket notation?


FIXED DARK MODE TOGGLE IN SIGN IN/UP PAGES AND RESOLVED CONFLICTS

Fixes:  #212
Description
Fixed the light and dark mode toggle in sign in/up pages and resolved conflicts in my previous PR
Type of PR

[x] Bug fix
[ ] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots

@PriyaGhosal I resolved the conflicts from previous PR. Kindly merge the PR so that I may work on other issues. Thank You.

@01-aniket-maity Please see the conflicts . Resolve the conflicts . Ensure you pull all the latest changes before pushing your feature/bug fixes to the main branch. After resolving the conflicts, please open a new PR for review.
Thank you!


Add ability to continue training process after aborting

Now, when server stopped or there was another problem, I have only one method to continue training:

Creating new task based on previous

Perhaps, better to add this ability to the aborted task?

I totally agree, this should be a feature in the future. For now, you can do the same thing by retraining. When creating a new model, select the previous model that got aborted under the Previous Networks tab, and start with the weights at Epoch #30, or whatever the last snapshot was.
Technically, this is a little different because you lose the momentum and other solver state variables, but this will essentially get you what you want until this feature gets implemented.

i bumped in to the same problem today and was about to open a ticket ... then i spotted this... Thanks for the tip to restart using the "Previous Networks" :-)

Hey @lukeyeager I was tranning a model with 30 epochs, it was on the epoch 12 when the pc shut down for some reason (it still had 2 days till the training was finish). So I created a new model and in the previous networks tab I chose the epoch 12 on the model it was training before. So it started a new training, but it says it will take 6 days while the other job only had 2 days remaining, am I doing something wrong?

Are there technical reasons for why this is still not implemented?

We are currently doing very long training batches with DIGITS, and have run into the scenario where we need to do server maintenance, but do not want to loose the progress we have made. We have also run into unexpected shutdowns which have killed our training. Is it possible to get pausing and resuming implemented, I am surprised that it is not currently. Even if it only starts back at the last epoch, it would be a large improvement.


How can I update my scripts to the latest Carla version ?

Hey all of you ,
I use Ubuntu 18 and the  "nightly build " version of  Carla . ( I want to have access to the
carla.WorldSnapshot  feature that is why I want to use the latest version.)
My problem is that my previous scripts  for  Carla 0.9.5  are not working anymore and I don't have any working examples  or  documentation to update them.  Nearly nothing  works anymore  in  PythonAPI/examples  folder !
(Most of the example scripts  are blocking  at  : world = World(client.get_world()  )
My question is :  How can I update my scripts to  the latest Carla version ?
Thank you  for your help  in advance

From my team's experience, the PythonAPI of the development(latest) version of CARLA (i.e. 0.9.x series) is in flux, development snapshots (e.g. 0.9.5) do not have detailed/up-to-date documentation in some cases and the PythonAPI changes between snapshots (e.g. from 0.9.2 to 0.9.5).  The CARLA developers warn us of this and it is to be expected for any software under activate development outside a stable branch.  Folks on my team examine the source code of the PythonAPI function calls to determine how to adapt their code to updates between snapshots when the documentation isn't available, which can be tedious, but is the 'price' for using non-stable releases.
In general, do not use the 'nightly build', head of trunk, master branch, etc. of most software projects as they are, in general, subject to significant change and aren't meant for production.  Tagged (snapshot) releases usually are much less of a headache.
For greatest API stability and documentation, the 'stable' 0.8.x branch is likely your best best.  The snapshots of the 0.9 development branch (e.g. 0.9.5) provide a nice balance of new features and documentation/stability, especially when compared to the head of master branch.

Thank you  very much for sharing your experience.  As a young software developer , I appreciate a lot.
I will follow your advice . I stay with the  0.9.5  , a  nice balance of new features and documentation/stability ... for the rest  there are always a workarounds .


GEODE-4822 The second server instance startup error: Could not create…

… an instance of PartitionRegionConfig
Modified deserialization of DataSerializableFixedID objects to ignore the
pdx-read-serialized setting.
Thank you for submitting a contribution to Apache Geode.
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] Has your PR been rebased against the latest commit within the target branch (typically develop)?

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

[x] Does gradlew build run cleanly?

[x] Have you written or updated unit tests to verify your changes?

[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

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. If you need help, please send an
email to<EMAIL_ADDRESS>

@dschneider-pivotal  If there are specific messages that need to avoid deserializing values we need to address these individually.  As it stands any message using DataSerializer.readObject() is subject to receiving a PdxInstance if a PdxSerializer is installed and happens to affect the value in question.  Our methods were not implemented with that possibility in mind.
Since precheckin passed with this change set we obviously have no unit tests covering the need to get a PdxInstance from readObject in a DSFID message.

closing this PR - will open a new one


Uncaught TypeError: Cannot read property 'startsWith' of undefined

[Enter steps to reproduce:]

Begin typing out a mcfunction command.

Atom: 1.40.0 x64
Electron: 3.1.10
OS: Mac OS X 10.13.2
Thrown From: mcfunction-support package 3.6.0
Stack Trace
Uncaught TypeError: Cannot read property 'startsWith' of undefined
At /Users/tisomadmin/.atom/packages/mcfunction-support/lib/provider.js:292

TypeError: Cannot read property 'startsWith' of undefined
    at Object.getCommandOption (/packages/mcfunction-support/lib/provider.js:292:19)
    at Object.getSuggestions (/packages/mcfunction-support/lib/provider.js:160:46)
    at o.forEach.t (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:647224)
    at Array.forEach (<anonymous>)
    at AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:646740)
    at AutocompleteManager.findSuggestions (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:646478)
    at AutocompleteManager.requestNewSuggestions (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:655011)
    at AutocompleteManager.showOrHideSuggestionListForBufferChanges (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:656102)
    at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1209208)
    at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1210649)
    at TextBuffer.emitDidChangeTextEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:504418)
    at TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:492523)
    at TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:24215)
    at mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16150)
    at TextEditor.mergeSelections (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:39484)
    at TextEditor.mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:39038)
    at TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16113)
    at TextEditor.insertText (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:15662)
    at TextEditor.e.(anonymous function) [as insertText] (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:258055)
    at TextEditorComponent.didTextInput (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:94325)

Commands
     -3:57.8.0 editor:consolidate-selections (input.hidden-input)
     -3:57.8.0 core:cancel (input.hidden-input)
     -3:56.6.0 grammar-selector:show (atom-text-editor.editor.is-focused)
  2x -3:55.4.0 core:move-down (input.hidden-input)
     -3:55 core:confirm (input.hidden-input)
  2x -3:53.8.0 core:move-down (input.hidden-input)
     -3:52.5.0 core:backspace (input.hidden-input)
     -3:52 autocomplete-plus:cancel (input.hidden-input)
     -3:51.6.0 core:move-down (input.hidden-input)
  2x -3:50.4.0 core:backspace (input.hidden-input)
  3x -3:48.4.0 autocomplete-plus:confirm (input.hidden-input)
     -3:41.8.0 core:backspace (input.hidden-input)
     -3:40.3.0 editor:newline (input.hidden-input)
     -0:04.3.0 grammar-selector:show (atom-text-editor.editor.is-focused)
     -0:02.9.0 core:move-down (input.hidden-input)
     -0:02.6.0 core:confirm (input.hidden-input)

Non-Core Packages
atom-java-decompiler 0.1.2
audio 1.5.7
language-markdown 0.37.0
mcfunction-lang 1.16.0-20w12a
mcfunction-support 3.6.0
sort-lines 0.19.0
svg-preview 0.14.0
teletype 0.13.4

Previously discussed in https://github.com/Czaplicki/mcfunction-support-resources/issues/4. Same problem with res.json.

This issue still exists. Is there a fix coming soon?

I don't know if he will update this package soon, as his README says that he stopped using atom. You may want to check out other mcfunction packages, like the original one or mcfunction-lang.

Same problem

I type execute then I get a ton of spam errors on the side...

Why came this error:
[Enter steps to reproduce:]

...
...

Atom: 1.48.0 x64
Electron: 5.0.13
OS: LAPTOP-PV49KKHA
Thrown From: mcfunction-support package 3.6.0
Stack Trace
Uncaught TypeError: Cannot read property 'startsWith' of undefined
At C:\Users\Simon\.atom\packages\mcfunction-support\lib\provider.js:292

TypeError: Cannot read property 'startsWith' of undefined
    at Object.getCommandOption (/packages/mcfunction-support/lib/provider.js:292:19)
    at Object.getSuggestions (/packages/mcfunction-support/lib/provider.js:175:16)
    at ~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:648842
    at Array.forEach (<anonymous>)
    at AutocompleteManager.getSuggestionsFromProviders (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:648358)
    at AutocompleteManager.findSuggestions (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:648096)
    at AutocompleteManager.requestNewSuggestions (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:656629)
    at AutocompleteManager.showOrHideSuggestionListForBufferChanges (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:657720)
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:1201460)
    at Emitter.emit (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:1202901)
    at TextBuffer.emitDidChangeTextEvent (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:505021)
    at TextBuffer.transact (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:493176)
    at TextEditor.transact (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:24215)
    at ~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:16150
    at TextEditor.mergeSelections (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:39484)
    at TextEditor.mergeIntersectingSelections (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:39038)
    at TextEditor.mutateSelectedText (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:16113)
    at TextEditor.insertText (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:15662)
    at TextEditor.e.(anonymous function) [as insertText] (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:258561)
    at TextEditorComponent.didTextInput (~/AppData/Local/atom/app-1.48.0/resources/app/static/<embedded>:11:94346)

Commands
  7x -1:38.3.0 core:backspace (input.hidden-input)
     -1:33.5.0 core:move-down (input.hidden-input)
     -1:32.7.0 autocomplete-plus:confirm (input.hidden-input)
  2x -1:21.6.0 core:backspace (input.hidden-input)
  7x -1:17 core:move-left (input.hidden-input)
     -1:15.5.0 core:move-right (input.hidden-input)
     -1:15.1.0 core:move-left (input.hidden-input)
     -1:14.7.0 core:backspace (input.hidden-input)
  3x -1:14.4.0 core:move-right (input.hidden-input)
  3x -1:13.7.0 core:move-left (input.hidden-input)
  7x -1:11.5.0 core:move-right (input.hidden-input)
     -1:05.9.0 autocomplete-plus:confirm (input.hidden-input)
  6x -1:04.6.0 core:backspace (input.hidden-input)
     -0:25.6.0 core:move-left (input.hidden-input)
  3x -0:25.4.0 core:move-right (input.hidden-input)
     -0:20.1.0 autocomplete-plus:confirm (input.hidden-input)

Non-Core Packages
mcfunction-support 3.6.0

I found a fix.  It still exist in your Users\User\Local\atom\packages folder and I don't know how, but everything works after you deleted the first folder.


KUBECTL SHELL window unavailable when left menu window unfold

Bug description
KUBECTL SHELL window unavailable when click the left menu window unfold buttom to unfold it.  see attached picture.
Expected behavior
KUBECTL SHELL window should still be available
Portainer Logs
Provide the logs of your Portainer container or Service.
You can see how here
Steps to reproduce the issue:
Technical details:

Portainer version: 2.9.0
Docker version (managed by Portainer):
Kubernetes version (managed by Portainer):
Platform (windows/linux): macos
Command used to start Portainer (docker run -p 9443:9443 portainer/portainer):
Browser:
Use Case (delete as appropriate): Using Portainer at Home, Using Portainer in a Commerical setup.
Have you reviewed our technical documentation and knowledge base? Yes/No

Additional context
Add any other context about the problem here.

When minimizing the side menu in 2.15.0 or later, the kubectl window now closes instead of leaving a blank space.


Symfony2 and VichUploaderBundle integration

Hi,
In one of my projects I needed to integrate Cropit in Symfony2.
I found there was nowhere to see how, so I solved this integration on Stackoverflow, I'd like to share for anyone who may need it.
Cheers

Thanks for sharing. Closing this non-issue and people can still find it by searching.


smartAudit project

Project Abstract
The smartAudit project aims to develop a comprehensive smart contract auditing platform for the Polkadot ecosystem. The platform will utilize both static and dynamic analysis techniques to identify vulnerabilities and security risks in smart contracts deployed on the Polkadot network. It will offer user-friendly interfaces, detailed vulnerability reports, and recommendations for contract improvements, empowering developers to build secure and reliable decentralized applications.
Grant Level: Level 2 (Up to $30,000, 3 approvals)
Application Checklist

[x] The application template has been copied and aptly renamed (smartAudit.md).
[x] I have read the application guidelines.
[x] Payment details have been provided (BTC address: 0x1234567890abcdefg).
[x] The software delivered for this grant will be released under the Apache 2.0 license specified in the application.
[x] The initial PR contains only one commit (squash and force-push if needed).
[x] The grant will only be announced once the first milestone has been accepted (see the announcement guidelines).
[x] I prefer the discussion of this application to take place in a private Element/Matrix channel. My username is: @ferasalsaab:matrix.org (using the Element homeserver).

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

@ferasalsaab on top of the points @Noc2 already has made, we'd usually ask for wireframes for any ui-based deliverables.

I'm closing this application due to inactivity. Please let me know if you want to continue working on it, @ferasalsaab.


link to 1.7 sdk download broken

the page says to get the 1.7 SDK on github but there isn't a 1.7 version available on github.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 0af3bfaf-c67e-358d-8398-410529e73eae
Version Independent ID: 3820f16c-f0d9-146f-7808-3659e5ebc186
Content: MSIX SDK Release 1.7 release notes - MSIX
Content Source: msix-src/msix-sdk/release-notes/sdk-release-notes-1.7.md
Product: msix
GitHub Login: @dianmsft
Microsoft Alias: diahar

@TravisEz13 it looks like the link on that page takes you to the release_v1.7 branch on github https://github.com/Microsoft/msix-packaging/tree/release_v1.7

If you have any additional questions or the above answer did not suffice, plese reopen the issue.


get config/samples/subsamples  as separate function

It would be more efficient to retrieve the configuration, samples, and subsamples separately using dedicated functions. Currently, to obtain the configuration, we must execute the project.get method, which retrieves the entire project. This approach is highly inefficient, particularly for large projects.

I agree with this!

This issue was fixed in 0.8.0


Remove or edit iframe title

Hi, Thanks for this awesome plugin.
I used the iframe (embed) to include the manager in my page.
Is there a way to remove or edit the title : Laravel FileManager ?

Have you tried changing the translation for laravel-filemanager::lfm.title-panel?


⚠ Processors has degraded performance

In c715578, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 47 ms

Resolved: Processors performance has improved in 3317bc6.


Implement Forward-Backward KF

It's in the doc, but nothing in the code about this

Any progress on this?

Also cant get this working in browser, using kalman.filter.min. Doesnt look like the function has any options. Is it extended somewhere else that hasnt been included in the .min package?

@asmi242 I'm not sure you are in the right issue.
If you have an issue with the browser version, please open a new issue with detailed reproduction step and detailed actual description (with screenshots) and precise expectations.

@asmi242 I'm not sure you are in the right issue.
If you have an issue with the browser version, please open a new issue with detailed reproduction step and detailed actual description (with screenshots) and precise expectations.

Hi @piercus, thanks for your reply.
I have setup a basic constant acceleration filter as in the example in the documentation (See screenshot). I have included kalman-filter.min in my webapp, and have successfully used the filter. I'm currently trying to call the filterAll function using the two methods given.  When I call the filter using (1), it works as expected and returns filtered observations. When I call it using (2) it gives the error that 't is not iteratable'.

results = kFilter.filterAll(observations);
results = kFilter.filterAll({ observations, passMode: 'forward-backward' });

You can see a screenshost of the code, with basic observations:

And the console error:

Successful filtering without using the passMode option:


Request for Global Actions

If it is not against some policy you have in mind, please make Actions globally available so it is possible to add custom actions.
"Dirty" fix to add at the end of NerdPack/system/actions.lua:
-- Gobals
NeP.Globals.Actions = NeP.Actions

Im not sure i want to allow this.
Is there a reason why you need it?
You should be able to do similar with libs
<EMAIL_ADDRESS>


Added linktree template

Description 📜
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Fixes #163

This would be great if you provide any of this   📝

[ ] Video (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[ ] Documentation (Content Creation in the form of codes or tutorials)
[x] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Navbar design
[ ] Footer
[x] Single page website
[ ] Animation design
[ ] parallax effect design
[x] Others

Checklist ✅
]

[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm Hacktoberfest contributor

Any tutorials or documentation have you added
(made by you only not from google)

[ ] Tutorial
[ ] Documentation

Screenshots / Gif (Compulsory) 📸

![linktree](https://user-images.githubusercontent.com/72568715/195435715-dcff98a7-2d88-4700-9e03-54a3488aab65.PNG)
https://user-images.githubusercontent.com/72568715/195435780-d51fa7b5-9c6d-4521-8e57-75ad5b7efe37.mp4

@Sulagna-Dutta-Roy  Thnx for Contributing !! Hope you learned something new , Don't forget to star repo and follow me for further such amazing repos 👍


[Docs] Incorrect param name in models doc

In file https://github.com/firebase/genkit/blob/main/docs/models.md
const result = await generate({
model: gemini15Flash,
prompt: [
{ text: 'describe the following image:' },
{
data: {
url: fs.readFileSync(__dirname + '/image.jpeg', {
encoding: 'base64',
flag: 'r',
}),
contentType: 'image/jpeg',
},
},
],
});
The data param does not exists, media is the correct param name
I would like to work on this as my first contribution.

Thanks for reporting! We'd be happy to review your PR once it's submitted.


variable.env

There is no variable.env file. I followed the instructions and I get an Error: Environment variable 'dbString' is not defined.

We no longer use the variable.env to define environment variables. (Documentation needs to be updated)
The application is programmed to exit if the important env vars are not defined.
Before you try and run the application, set the env var using the following:
(Mac)
export dbString =<Your-dbString >

still getting the same error

I am closing this issue as it is not an error in the code.
Make sure you do not leave any gaps between the var name and value i.e <name>=<value>
Example:
export dbString=<Your-dbString >
If you still get the same message, log your current env var to the console and check it has been defined.

Hey did you manage to fix this issue as I'm getting the same error?


Problem with dashboard since Webmin 1.780 update

Hello,
I have a problem with my dashboard on Webmin since the last update. All information are unavailable but when I switch to another theme, it's work.

Do you know this problem ?
Thanks and happy new year ! :-)

Webmin developer forgot to pull latest version of Authentic Theme. Please update to the latest version of the theme, which is 17.30.
In few hours I will make a patch to support new Filemin stuff in Webmin 1.780.

Webmin developer forgot to pull latest version of Authentic Theme. Please update to the latest version of the theme, which is 17.30.
In few hours I will make a patch to support new Filemin stuff in Webmin 1.780.

Fixed in 17.31. Please update.

Fixed in 17.31. Please update.

I've updated the theme to 17.31 version and the problem is not fixed. Do you have an idea ?

I've updated the theme to 17.31 version and the problem is not fixed. Do you have an idea ?

I don't unfortunately but I'll be looking.. Be kind to reboot your server completely to be very sure, ok?

I don't unfortunately but I'll be looking.. Be kind to reboot your server completely to be very sure, ok?

Thanks for your fast answer ! I have completely restarted my server and I also tried to delete and reinstall the theme. Nothing change, dashboard don't work.
But if I come back to the default theme "Gray Framed Theme", it's ok.

Thanks for your fast answer ! I have completely restarted my server and I also tried to delete and reinstall the theme. Nothing change, dashboard don't work.
But if I come back to the default theme "Gray Framed Theme", it's ok.

what OS ?

what OS ?

That sounds very weird and more like impossible.
Please post your system specifications (OS, browser), for both server and client computer.
I tested it in Ubuntu, CentOS and Fedora - all is working correctly.

That sounds very weird and more like impossible.
Please post your system specifications (OS, browser), for both server and client computer.
I tested it in Ubuntu, CentOS and Fedora - all is working correctly.

I work on Mac OS 10.11.2 with Safari 9.0.2 and Chrome 47.0.2526. Both browsers have the same problem.
My server is an VPS at OVH who work with Debian 8 (Jessie). See the attached picture on my Webmin.

I work on Mac OS 10.11.2 with Safari 9.0.2 and Chrome 47.0.2526. Both browsers have the same problem.
My server is an VPS at OVH who work with Debian 8 (Jessie). See the attached picture on my Webmin.

Just for you information, it works very well before the update of Webmin that I've done today.

Just for you information, it works very well before the update of Webmin that I've done today.

Did it happen before the upgrade to Webmin 1.780
Pay attention, when you go to System Information page and reload it (only right frame) manually do you have this NaN appear right away or a moment after?

Did it happen before the upgrade to Webmin 1.780
Pay attention, when you go to System Information page and reload it (only right frame) manually do you have this NaN appear right away or a moment after?

another user reports that had issues with 1.780 and Debian 8... something like Webmin didn't auto start anymore and he had to start it by command line..don't know if is related, but just to know..

another user reports that had issues with 1.780 and Debian 8... something like Webmin didn't auto start anymore and he had to start it by command line..don't know if is related, but just to know..

No, it never happen before the upgrade to Webmin 1.780.
When I goes to System Information page and if I click on the green button to refresh the right frame, I have the NaN who appear.

No, it never happen before the upgrade to Webmin 1.780.
When I goes to System Information page and if I click on the green button to refresh the right frame, I have the NaN who appear.

cleared the browser cache/cookies and reloaded ?

cleared the browser cache/cookies and reloaded ?

Not the green button, right click, context menu, reload frame content. Do you get correct values at the very beginning or it's that right away?

Not the green button, right click, context menu, reload frame content. Do you get correct values at the very beginning or it's that right away?

@7starsone I have cleared the browser cache/cookies and the problem is already there. I've also tried the private navigation.
@qooob I've also tried your method but nothing. I've "NaN" just after the refresh, I don't see correct value anytime.

@7starsone I have cleared the browser cache/cookies and the problem is already there. I've also tried the private navigation.
@qooob I've also tried your method but nothing. I've "NaN" just after the refresh, I don't see correct value anytime.

Webmin developer says he didn't change anything in this concern. I have very little idea at the moment of why it's happening. I'll test tomorrow.

Webmin developer says he didn't change anything in this concern. I have very little idea at the moment of why it's happening. I'll test tomorrow.

Does the rest of the page loads fully/correctly.

Does the rest of the page loads fully/correctly.

Did you install any browser's plugins? Tried on other OSes? Like Linux/Windows/Android?

Did you install any browser's plugins? Tried on other OSes? Like Linux/Windows/Android?

No, as you can see on the first screenshot, I don't have any information. Not just graphics with CPU, RAM, but all informations on dashboard don't show like :

Webmin version
Time on system
Kernel and CPU

But if I switch to another theme on Webmin, it works like the second screenshot. I test now on different OSes.

No, as you can see on the first screenshot, I don't have any information. Not just graphics with CPU, RAM, but all informations on dashboard don't show like :

Webmin version
Time on system
Kernel and CPU

But if I switch to another theme on Webmin, it works like the second screenshot. I test now on different OSes.

Also, while being on System Information page, open Notification Slider and click refresh button, anything changes? Errors in console?

Also, while being on System Information page, open Notification Slider and click refresh button, anything changes? Errors in console?

Nothing changes when I click on notification slider or refresh button. They are few errors in console, check with the screenshot.

Nothing changes when I click on notification slider or refresh button. They are few errors in console, check with the screenshot.

I see. Please try other OS, not iOS. Like Chrome in Linuxor Windows at last.

I see. Please try other OS, not iOS. Like Chrome in Linuxor Windows at last.

http://www.troyhunt.com/2015/10/how-to-break-your-site-with-content.html

"The answer is to use both child-src and frame-src"

Same problem on Android with Chrome and iOS with Safari/Chrome. Now, I try with Chrome on Windows 10.

The problem is there in Chrome on Windows 10.

other errors in console?

No errors in the console in Chrome on Windows 10 and Mac OS. I get these errors only with Safari I think. So it may not be the source of the problem ?

well, with Safari there's an issue for sure... on Windows 10/Chrome it works if you choose another theme?

Yes, it works on Chrome when I choose another theme. To sum up, the problem is the same on Windows/Mac/iOS/Android with Chrome/Safari.

I think there's a problem with the specific combination 1.780/Debian 8/Authentic Theme...Ilia could understand why...now I need to go. Happy 2016! ;-)

I wasn't lazy and installed fourth OS for debugging - Debian 8. I could not reproduce your issue.
Here is the Video Screencast
Please make sure to check your local settings, it's not the theme's bug for sure.
Also, I would like to see your video screencast with opened console!?
I will close the issue for now.

so, your theme has even an internal cache system? Is that cleared when you reboot the server? May be that his issue?

No, it's not cleared upon reboot. :P

Hey guys ! I've completly reinstalled Webmin tonight and now, dashboard works very well ! Maybe a crash during the upgrade of Webmin.
Many thanks !


Add plugins overview

This PR adds a "Plugins" section to the preferences tab of the Importer/Exporter GUI, which lists all installed and available plugins. Each plugin is displayed with additional information such as its version, its vendor, a description and the implemented extensions of the Plugin API. In addition, the plugins can be enabled/disabled using this dialog.
The Plugin API has been changed in a non-backwards compatible way to make this new dialog possible. Every plugin must now provide a plugin.xml file that is stored in the same package as the plugin class itself and that provides the additional metadata. In addition, an optional pluginLogo.svg (and a pluginLogo_dark.svg for the dark theme) can be provided.
The new "Plugins" section can be tested with the ADE Manager plugin and the Spreadsheet Generator plugin. Simply use the feature-new-plugin-api branch for both plugins.

Thanks @clausnagel. Very cool new feature.
I have two remarks after my review:

How about adding an additional CLI option like --enabledPlugins? This could be useful when users want to enable/disable certain FeatureExportExtensions
It might be a Nice to Have to allow users to change the order of plugins listed in the preference panel. A benefit is that the plugins of FeatureExportExtensions can be run by following an user-defined order to build a process chain.

All other things work well in during my tests. 👍

Thanks, @yaozhihang.
re 1: Should --enabledPlugins only list all enabled/disabled plugins, or would you like to be able to actively enable/disable a plugin on the command line? In the latter case, what would be the input to the paramter? The class name of the plugin?
re 2: In general, you cannot define dependencies for plugins (for instance, you cannot say that plugin B should only be executed after plugin A). The plugins overview simply lists the plugins in alphabetical order.
I agree that it would be nice to be able to define the execution order for separate FeatureExportExtensions. For other extensions like ConfigExtension or ViewExtension, an execution order does not make sense though. We could add a <depends-on> element to the plugin.xml configuration to express a dependency - this would be static then (and again would not make sense for all plugins). But what if the plugin referenced by <depends-on> is not installed or disabled? If we want to have it dynamic, I would rather not use the general plugins overview for this purpose but would recommend a specific dialog. This dialog should only list those plugins for which defining an execution order makes sense (could be a separate "Execution order" node beneath the "Plugins" node in the preferences tree). Hm, sounds doable but requires more effort.

The --enabledPlugins should allow to actively enable a list of plugins. I think we could use the full class name of plugin e.g. org.citydb.plugins.spreadsheet_gen.SPSHGPlugin
I prefer your latter idea. Yes, you are right. it sounds doable and need more coding. We could move this to a separate PR.

@yaozhihang, I added a --use-plugin option that allows to enable or disable plugins on the command line.
I agree to move your second proposal to another PR once we have a requirement to support the execution order of specific plugins.

@clausnagel  Looks very good.


Model development meeting 2023-04-03

ACCESS-NRI Development Meeting 3/4/2023
Short term strategy for releases
Configurations
What's missing

Kelsey: Supported configurations release framework
What atmospheric experiments do we need to release? piControl, pdControl, Historical, + ? All of the DECK and ScenarioMIP. Instructions sufficient to set up paleo configurations?
Doesn't necessarily have to wait on the cataloging prototype.
Does the end to end provenance just need to be documented or does it need to be more widely runnable?
Adding checksums of all the inputs to the archive somehow (following payu). To github like OM2?
Legacy MOM and CICE repositories to github. CM2 run scripts to github.
Documentation of output (better metadata from um2netcdf?, making sure units are complete).
accessdev to ARE move ~ midyear? Taken care of by NCI documentation?
Should the hive be the place for all documentation, including what we create? Branch for work in progress?


Native compilation issues on GraalVM 21.1

An example in the AWS2 test module:
Error: Detected an instance of Random/SplittableRandom class in the image heap. Instances created during image generation have cached seed values and don't behave as expected.  To see how this object got instantiated use --trace-object-instantiation=java.util.Random. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
Trace: Object was reached by
	reading field software.amazon.awssdk.core.retry.backoff.FullJitterBackoffStrategy.random of
		constant software.amazon.awssdk.core.retry.backoff.FullJitterBackoffStrategy@666fb1bf reached by
	scanning method software.amazon.awssdk.services.dynamodb.DynamoDbRetryPolicy.resolveRetryPolicy(DynamoDbRetryPolicy.java:83)
Call path from entry point to software.amazon.awssdk.services.dynamodb.DynamoDbRetryPolicy.resolveRetryPolicy(SdkClientConfiguration):
	at software.amazon.awssdk.services.dynamodb.DynamoDbRetryPolicy.resolveRetryPolicy(DynamoDbRetryPolicy.java:68)
	at software.amazon.awssdk.services.dynamodb.DefaultDynamoDbBaseClientBuilder.finalizeServiceConfiguration(DefaultDynamoDbBaseClientBuilder.java:67)
	at software.amazon.awssdk.awscore.client.builder.AwsDefaultClientBuilder.finalizeChildConfiguration(AwsDefaultClientBuilder.java:139)
	at software.amazon.awssdk.core.client.builder.SdkDefaultClientBuilder.syncClientConfiguration(SdkDefaultClientBuilder.java:158)
	at software.amazon.awssdk.services.dynamodb.DefaultDynamoDbClientBuilder.buildClient(DefaultDynamoDbClientBuilder.java:44)
	at software.amazon.awssdk.services.dynamodb.DefaultDynamoDbClientBuilder.buildClient(DefaultDynamoDbClientBuilder.java:22)
	at software.amazon.awssdk.core.client.builder.SdkDefaultClientBuilder.build(SdkDefaultClientBuilder.java:130)
	at org.apache.camel.component.aws2.ddbstream.Ddb2StreamEndpoint.createDdbStreamClient(Ddb2StreamEndpoint.java:156)
	at com.oracle.svm.reflect.Ddb2StreamEndpoint_createDdbStreamClient_66beea1cc17f3e19d34ea704f07455e39bfd7aa1_2626.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Method.java:566)
	at java.util.ServiceLoader$ProviderImpl.invokeFactoryMethod(ServiceLoader.java:737)
	at java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:720)
	at com.oracle.svm.core.jdk.SystemPropertiesSupport.initializeLazyValue(SystemPropertiesSupport.java:216)
	at com.oracle.svm.core.jdk.SystemPropertiesSupport.getProperty(SystemPropertiesSupport.java:169)
	at com.oracle.svm.core.jdk.Target_java_lang_System.getProperty(JavaLangSubstitutions.java:291)
	at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS:Ljava_lang_System_2_0002egetProperty_00028Ljava_lang_String_2_00029Ljava_lang_String_2(generated:0)
Error: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: Detected an instance of Random/SplittableRandom class in the image heap. Instances created during image generation have cached seed values and don't behave as expected.  To see how this object got instantiated use --trace-object-instantiation=java.security.SecureRandom. The object was probably created by a class initializer and is reachable from a static field. You can request class initialization at image runtime by using the option --initialize-at-run-time=<class-name>. Or you can write your own initialization methods and call them explicitly from your main entry point.
Trace:
	at parsing org.apache.http.impl.auth.NTLMEngineImpl.access$000(NTLMEngineImpl.java:51)
Call path from entry point to org.apache.http.impl.auth.NTLMEngineImpl.access$000():
	at org.apache.http.impl.auth.NTLMEngineImpl.access$000(NTLMEngineImpl.java:51)
	at org.apache.http.impl.auth.NTLMEngineImpl$Type3Message.<init>(NTLMEngineImpl.java:1505)
	at org.apache.http.impl.auth.NTLMEngineImpl$Type3Message.<init>(NTLMEngineImpl.java:1474)
	at org.apache.http.impl.auth.NTLMEngineImpl.getType3Message(NTLMEngineImpl.java:181)
	at org.apache.http.impl.auth.NTLMEngineImpl.generateType3Msg(NTLMEngineImpl.java:2097)
	at org.apache.http.impl.auth.NTLMScheme.authenticate(NTLMScheme.java:142)
	at org.apache.http.impl.auth.AuthSchemeBase.authenticate(AuthSchemeBase.java:136)
	at org.apache.http.impl.auth.HttpAuthenticator.doAuth(HttpAuthenticator.java:233)
	at org.apache.http.impl.auth.HttpAuthenticator.generateAuthResponse(HttpAuthenticator.java:213)
	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:262)
	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
	at software.amazon.awssdk.http.apache.internal.impl.ApacheSdkHttpClient.execute(ApacheSdkHttpClient.java:72)
	at software.amazon.awssdk.http.apache.ApacheHttpClient.execute(ApacheHttpClient.java:253)
	at software.amazon.awssdk.http.apache.ApacheHttpClient.access$500(ApacheHttpClient.java:106)
	at software.amazon.awssdk.http.apache.ApacheHttpClient$1.call(ApacheHttpClient.java:232)
	at software.amazon.awssdk.http.apache.ApacheHttpClient$1.call(ApacheHttpClient.java:229)
	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
	at java.lang.Thread.run(Thread.java:829)
	at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:553)
	at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)
	at com.oracle.svm.core.code.IsolateEnterStub.PosixJavaThreads_pthreadStartRoutine_e1f4a8c0039f8337338252cd8734f63a79b5e3df(generated:0)

In case of AWS, I am considering to make our AWS extensions depend on the Quarkus ones. I have a PoC and it seems to work quite well.

I think as a next step we should:

star moving the components to use the async bits and drop apache-http in favor of netty
see if we can integrate better with the aws extension provided by quarkus

I remember we had some discussions with @oscerd in the past but it's a huge task

I don't know if all the services we are covering in Camel have their respective Quarkus extensions.
Moving to async is an option, but I would probably create a second component for async, not all the components would have real advantages in moving to async.

star moving the components to use the async bits and drop apache-http in favor of netty

+1 for the direction, but I doubt we'll have time for that in the coming months. I have filed https://github.com/apache/camel-quarkus/issues/2662

don't know if all the services we are covering in Camel have their respective Quarkus extensions.

No, they do not, but I do not think it is an issue. We can leverage the ones that exist and do our stuff as we did so far with the rest.

Moving to async is an option, but I would probably create a second component for async, not all the components would have real advantages in moving to async.

I wonder whether sync/async can be seen as an implementation detail? Well, probably not, as long as the user has the option to provide his custom client instance. And switching to async would be a backwards incompatible change. OTOH, having two component variants for each AWS service sounds after a lot of work and a lot of maintenance. I think we should avoid it as far as possible.

We can try to introduce the async option into the original components, but in the end you'll get some new code and some new maintenance to face. Not a whole new component, but for sure new stuff.

By the way, let's see, maybe we can start from the messaging ones.

Fixed via https://github.com/apache/camel-quarkus/pull/2663


Allow manually register canonicalMIMEHeaderKey

This is a feature request related to  #18476 #18196 #5022 #18495.
Instead of controlling each request/response, may we have a function to register my own canonicalMIMEHeaderKey  ?
The HTTP problem "will be" solved with HTTP/2, but MIME is more then just HTTP.
Instead of one-header at a time, may be we can have something easier to override?

What's the problem?

Legacy, standard noncompliance client that do header in case sensitive way?
I am doing a mitm proxy for a binaryonly app to inject a auth header for our internal firewall.
When I get the header, the case is not preserved and broke the legacy app.
Apache mod_proxy, nginx, squid all do that in case preserving way. But there is no way to do this in go without rewriting the whole Round Tripper.

My IP camera wouldn't accept a canonicalized CSeq key (RTSP protocol). I did solve it, though.

I saw the previous proposal to control the case of header have been rejected.
That's why I am proposing an alternative way to do this -- allow adding my own entry to the hardcoded list.

We aren't going to add new API to the standard library to support legacy clients that are not standards compliant.  You will have to make your own copy of the net/textproto package, or run a transformation on the input stream.


Windows Compilation Fails with bcrypt error

Hi
I have tried to compile postgrest for windows. version 0.2.12 as well the <IP_ADDRESS> fails with the bcrypt module:
[ 8 of 12] Compiling PostgREST.DbStructure ( src\PostgREST\DbStructure.hs, .stac
k-work\dist\d96ab9d9\build\PostgREST\DbStructure.o )
ghc.exe: unable to load package `bcrypt-0.0.7'
(version 0.2.12 fails with the same message but with bcrypt-0.0.6 . I have checked if bcrypt was downloaded.. it is. using the newest "stack" for windows as stated in the manual.
Postgres is installed on this Windows 8.1 machine (version 9.4) also installed are the odbc drivers.
Does anyone has an idea what the problem could be? Or what information migth help you to understand the problem on my machine?
Thanks
Regards
Petr

A couple ideas.

What happens if you run stack install bcrypt by itself?
Does it help to build and install bcrypt from source first? http://download.openwall.net/pub/projects/crypt/

I'm downloading a VirtualBox image for windows so I can try to reproduce. I'll start including windows binaries in the official releases once we figure this out.

I've built you a windows x64 release! https://github.com/begriffs/postgrest/releases/tag/v<IP_ADDRESS>
I ran into the bcrypt problem too, but then I realized we don't use bcrypt anymore because we let postgresql do password encryption. So I removed bcrypt from the cabal file and it built fine. I'll apply that change to master so that future releases will build in windows. But I'll also include a pre-built windows binary in future releases.


Unable to find document file

Hi
VSC output window is flooding with the following errors and no intellisense at all is showing.
https://pvsc.azureedge.net/python-language-server-beta/Python-Language-Server-win-x<IP_ADDRESS>.nupkg
(sensiotools) PS D:\sensio-data\sensiotools\sensiotools\test> (pwd).Path
D:\sensio-data\sensiotools\sensiotools\test
Believe it is unable to pick up the path, is it the D: that fails it.
[Info  - 12:15:50] Analysis restarted.
Hover in file:///d:/sensio-data/sensiotools/sensiotools/test/testapi-events.py at (314, 31)
[Error - 12:15:58] Unable to find document file:///d:/sensio-data/sensiotools/sensiotools/test/testapi-events.py
Hover in file:///d:/sensio-data/sensiotools/sensiotools/test/testapi-events.py at (314, 31)
[Error - 12:15:59] Unable to find document file:///d:/sensio-data/sensiotools/sensiotools/test/testapi-events.py
Goto Definition in file:///d:/sensio-data/sensiotools/sensiotools/test/testapi-events.py at (314, 31)
[Error - 12:15:59] Unable to find document file:///d:/sensio-data/sensiotools/sensiotools/test/testapi-events.py

Goto Definition in file:///d:/sensio-data/sensiotools/sensiotools/test/list-alarms.py at (66, 13)
[Error - 12:48:23] Unable to find document file:///d:/sensio-data/sensiotools/sensiotools/test/list-alarms.py
[Error - 12:48:23] Request textDocument/definition failed.
  Message: Object reference not set to an instance of an object.
  Code: -32000
   at Microsoft.Python.LanguageServer.Sources.DefinitionSource.FindDefinition(IDocumentAnalysis analysis, SourceLocation location)
   at Microsoft.Python.LanguageServer.Implementation.Server.GotoDefinition(TextDocumentPositionParams params, CancellationToken cancellationToken)
   at Microsoft.Python.LanguageServer.Implementation.LanguageServer.GotoDefinition(JToken token, CancellationToken cancellationToken)

Hi @fenchu , I assume file is present.

@AlexanderSher They are all present it is the files I have open in editor:
ls D:\sensio-data\sensiotools\sensiotools\test\testapi-events.py; ls D:\sensio-data\sensiotools\sensiotools\test\list-alarms.py

    Directory: D:\sensio-data\sensiotools\sensiotools\test

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----       07/03/2019     13:59          27747 testapi-events.py
-a----       04/02/2019     11:45           5975 list-alarms.py

Does it still show an error if you rename testapi-events.py into testapi_events.py and list-alarms.py into list_alarms.py?

https://stackoverflow.com/questions/761519/is-it-ok-to-use-dashes-in-python-files-when-trying-to-import-them

Even though these files are essentially unimportable (as with #727's 1.py), I think they should probably still work on their own. Having a script like my-cool-script which is Python with a shebang is a pretty common case. We could likely allow modules of any name and let the parser decide what can actually be referenced, which would also open the door to handling __import__ if became necessary.

https://github.com/Microsoft/python-language-server/issues/736

Thanks for the clarification, it works if I replace '-' with '_'.
I know dash is not allowed in module import filenames, but it is great to use for scripts that should never be used as modules. And other plugins like http://www.pydev.org/vscode works excellent. And pylint do not seem to object.

Folding into #736


Fix body encoding

This PR fixes the encoding for the response body.

@theadam can you please make a release with this latest changes?
Regards

@SandroMachado Would you be interested in being made into a maintainer, so you could accept PRs and create releases?  I no longer keep my iOS dev environment up to date.

Sure! Thanks for the invite!

Just added you on Github, do you have a cocoapods email, I can add you as an owner there too.  Let me know if you need anything else

@theadam looks like it is not working. I am getting this message publishing the new version on cocoa pods:
[!] You<EMAIL_ADDRESS>are not allowed to push new versions for this pod. The owners of this pod are<EMAIL_ADDRESS>

try now!

Works! Thanks :)


Possible regression in waiting for DOMContentLoaded

Opening a new bug for possible regression reported in https://github.com/dart-lang/sdk/issues/885#issuecomment-161689055
@vsmenon did the original fix.
Comment from there by @joseluis is
On version 1.13.0 this doesn't seem true anymore.
Minimal example: querySelector('#someid'); returns null when the element is placed after the script tag that loads the Dart script compiled with dart2js. In order to make it work I must use the script defer attribute, like this:
<html>
    <head>
        <meta charset="utf-8">
    </head>
    <body>
        <script src="dart-program.js" defer></script>
        <script id="someid"></script>
    </body>
</html>

yes - dart2js's output requires that you either put the script tag at the end or use the defer attribute in order to be consistent with Dartium's behavior. By default, when you use packages/browser/dart.js, the code will replace the script tag after DOM content loaded, so this bug is not visible unless you load directly the generated .js code.
For production people commonly want to load the .js code directly, so we request that they do so with the defer attribute. There are some packages that do this transformation automatically, but I've noticed that some of those transformers have a bug regarding this. For example, the package dart_to_js_script_rewriter is not adding the deferred attribute: https://github.com/Workiva/dart_to_js_script_rewriter/issues/21
@joseluis how did you run into this? Did you update the HTML by hand or did you use a transformer like dart_to_js_script_rewriter?

Thank you for the explanation @sigmundch. I believe it would be good to put this info in the current documentation.
Adding the defer attribute seems the only solid workaround to me, then.
I'm currently working in a Dart program and compiling it with dart2js. I wanted to see what was the simplest way to load it. That's why I wasn't using that dart.js script, and the HTML is also minimal intentionally.

OK, so it sounds like I can close this.


Release version 0.3.1

Summary

Release version 0.3.1

Testing Done
none

Please also add the release note. Can be short


Fix javadoc mistake in DefaultLimitSpec.

Javadoc for getLimit should say it's a limit, not an offset.

thanks @capistrant !


Typo?

Hello,
I noticed that in my app that this line
USER_INVITE_USER_TEMPLATE = 'flask_user/invite_user.html' #:
had to be replaced with
USER_INVITE_TEMPLATE = 'flask_user/invite_user.html' #:
to work correctly. Both are attributes in the app.config object, so I assume it was a simple typo?

Fixed it a while back.


Set service target for non-sampled ES client spans

What does this PR do?
Fixes #2952
Checklist

[x] This is a bugfix

[ ] I have updated CHANGELOG.asciidoc
[x] I have added tests that would fail without this fix

:green_heart: Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2023-01-11T13:14:53.571+0000

Duration: 66 min 58 sec

Test stats :test_tube:

Test
Results

Failed
0

Passed
3399

Skipped
42

Total
3441

:green_heart: Flaky test report
Tests succeeded.
:robot: GitHub comments
Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

/test : Re-trigger the build.

run benchmark tests : Run the benchmark tests.

run jdk compatibility tests : Run the JDK Compatibility tests.

run integration tests : Run the Agent Integration tests.

run end-to-end tests : Run the APM-ITs.

run windows tests : Build & tests on windows.

run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)


[feature-request] Hide files from Explorer sidebar, but do not exclude them from search or Ctrl-P navigation

Right now we can exclude files from search and/or exploration (the explorer sidebar and the Ctrl-P or Ctrl-E action).
What I'm looking for is a granularity that allows, for example, to exclude __init__.py files from the Explorer sidebar but include them in Ctrl-P navigation.
So you can go there when you really need them, but they don't clutter up the interface on the side.

https://github.com/Microsoft/vscode/issues/67168


No notification bell, plus icon and others

Gitea version (or commit ref): 1.12.1
Git version: 2.25.0
Operating system: Windows Server 2008
Database (use [x]):

[ ] PostgreSQL
[ ] MySQL
[x] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[x] No
[ ] Not relevant

Log gist:
no relevant log was founded

Description
After upgrate to version 1.12.0 ring bell icon from notification button disappeared and error is shown instead. Plus icon and dropdown carret is missing too same as some icons from dropdown menu.
Screenshots

+1 ... we're having the same issue

Check in browser devtools if /img/svg/icons.svg did load correctly.

Check in browser devtools if /img/svg/icons.svg did load correctly. If this is a custom build, make sure it's built via make build, not make generate build.

/img/svg/icons.svg loads just fine. I used the release from github. I even did a fresh install of gitea, but without any luck.

Solved it on our side. The issue was a custom Template for the Navbar (head_navbar.tmpl).
@dimmuboy check if you're using a Templat for your Navbar.

Thank you @oaxiento that's really what break my git. I update all used tmpl files.


Inform users of unsaved changes

This is a 2 step process:

Show users which clips need to be saved
Track number of unsaved clips in annotate. If there are still unsaved clips, then warn user before leaving page

Part 1 is done, part 2 will be saved until other bug fixes are made

This is a 2 step process:

Show users which clips need to be saved
Track number of unsaved clips in annotate. If there are still unsaved clips, then warn user before leaving page

Part 1 is done, part 2 will be saved until other bug fixes are made

Part 2 will be partly finished by tonight. I need to add a library to create a popup where I can inform the user about leaving behind
unsaved clips rather than stopping them from leaving all together or figure out if I can add a button to an alert element

Part 2 will be partly finished by tonight. I need to add a library to create a popup where I can inform the user about leaving behind
unsaved clips rather than stopping them from leaving all together or figure out if I can add a button to an alert element


[Feature Request] Add "active" prop to  DMC Carousel

Hi,
I would like to implement a Mantine Carousel using DMC. However I could net find any attribute that lets me the set active slide using some logic or callback. I would like the carousel to alternate between two slide every couple of seconds. Is there any way to achieve this behavior?

Hi @philipp-leibner
It appears that there is no "active" slide prop, but you can control which slide is displayed using the initialSlide prop.  Try this example:

import dash_mantine_components as dmc
from dash import Dash, _dash_renderer, dcc, Input, Output
_dash_renderer._set_react_version("18.2.0")

app = Dash(external_stylesheets=dmc.styles.ALL)

def make_slide(text):
    return dmc.Card(
        dmc.Text(f"Slide {text}"),
        withBorder=True,
        shadow="sm",
        radius="md",
        bg="green",
        c="white",
        m=50
    )

app.layout = dmc.MantineProvider([
    dcc.Interval(id="interval", interval=2000, n_intervals=0 ),
    dmc.Carousel([
        dmc.CarouselSlide(make_slide(1)),
        dmc.CarouselSlide(make_slide(2)),
    ],
        id="carousel"
    )
])

@app.callback(
    Output("carousel", "initialSlide"),
    Input("interval", "n_intervals")
)
def update(n):
    if n % 2 ==0:
        return 0
    return 1

if __name__ == "__main__":
    app.run(debug=True)

Thank you!

@philipp-leibner   In the next release there will also be an autoplay prop - and that will probably work even better for your use case #316 :tada:


Feat/lmarketdiscover

📝 Description
Adding a direct link to [ L ] Market feature from the Discover Landing on Mobile
❓ Context

Impacted projects: Ledger Market - Discover - LLM
Linked resource(s): External contribution - N/A

✅ Checklist

[ ] Test coverage
[X] Atomic delivery
[X] No breaking changes

📸 Demo
Please see #616 that contains video and explanation
🚀 Expectations to reach
Please make sure you follow these Important Steps.
Pull Requests must pass the CI and be internally validated in order to be merged.

PR is targeting main but started from develop (or release), flow is not respected


Shouldly.ShouldAssertException: [AzurePipelines.TestLogger.Tests.ClientMessage (x)] should be [AzurePipelines.TestLogger.Tests.ClientMessage (y)]

Hi Dave.
I forked and cloned the project, but I get the following error when the tests are run:
  X CreateParents [73ms]
  Error Message:
   Shouldly.ShouldAssertException : [AzurePipelines.TestLogger.Tests.ClientMessage (-971002351)]
    should be
[AzurePipelines.TestLogger.Tests.ClientMessage<PHONE_NUMBER>)]
    but was not
    difference
[*AzurePipelines.TestLogger.Tests.ClientMessage (-971002351)*]
  Stack Trace:
     at Shouldly.ShouldlyCoreExtensions.AssertAwesomely[T](T actual, Func`2 specifiedConstraint, Object originalActual, Object originalExpected, Func`1 customMessage, String shouldlyMethod)
   at Shouldly.ShouldBeTestExtensions.ShouldBe[T](IEnumerable`1 actual, IEnumerable`1 expected, Boolean ignoreOrder, Func`1 customMessage)
   at Shouldly.ShouldBeTestExtensions.ShouldBe[T](IEnumerable`1 actual, IEnumerable`1 expected, Boolean ignoreOrder)
   at AzurePipelines.TestLogger.Tests.LoggerQueueTests.CreateParents() in C:\github\icnocop\AzurePipelines.TestLogger\tests\AzurePipelines.TestLogger.Tests\LoggerQueueTests.cs:line 201

build.txt
The error messages aren't very helpful and so I had to debug the test to figure out which properties are actually different.

Windows 10 Enterprise Version 1909 (OS Build 18363.535) 64-bit
Visual Studio Enterprise 2019 16.4.1
TimeZone: PST
Locale: English - US
Thank you.

Finally getting around to merging these in! Thanks a lot for running this to ground all the way to a fix.

I was able to reproduce the failures locally and confirmed the fix - thanks again!


[Feature/Idea]: Beta tracks on winget-automation

What would you like to see changed/added?
https://github.com/microsoft/winget-pkgs/pull/60088#issuecomment-1123589502
Add two different types of releases. Beta and stable

And an option to specify the exact version:
name: Publish to WinGet
on: [release]
jobs:
  publish-stable:
    if: ${{ github.ref == 'refs/tags/stable' }}
    runs-on: windows-latest
    steps:
      - name: Get version
        id: version
        shell: bash
        run: |
          BUTTERFLY_VERSION_REGEX="version:\s(.+)\+(.+)"
          [[ $(grep -E "${BUTTERFLY_VERSION_REGEX}" app/pubspec.yaml) =~ ${BUTTERFLY_VERSION_REGEX} ]]
          BUTTERFLY_VERSION="${BASH_REMATCH[1]}"
          echo "BUTTERFLY_VERSION=${BUTTERFLY_VERSION}" >> $GITHUB_ENV

I want to use ${{ env.BUTTERFLY_VERSION }} as release


Boot Crash on iOS 11.4.1 device with Corona 3583 and XCode 11.5

Hi,
Just built with Corona 3583 and XCode 11.5.
Crashed on Device running iOS 11.4.1 just after showing splash screen.
No problems when testing on a couple of other devices running newer iOS versions.
Crash report attached...
Vegas Fun Slots-2020-06-29-121039.ips.txt

Tried building with 3582 and XCode 11.4.1 and got the same result:
NOTE: Splash screen shows then it exits abruptly with no message
Vegas Fun Slots-2020-06-29-221609.txt

Fix should be deployed now. Please test.

It works! Thank you very much for the quick response & action!


flyway_commandline: no_jre version

Feature request/suggestion:
the flyway_commandline should be available as no_jre: it should work with the JRE found in the path. The package could be much smaller.
Both versions should be available to download.
Which version and edition of Flyway are you using?
Does not matter
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Does not matter
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Does not matter
Which database are you using (type & version)?
Does not matter
Which operating system are you using?
Does not matter
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
Does not matter
What did you expect to see?
Does not matter
What did you see instead?
Does not matter

As stated on https://flywaydb.org/documentation/commandline/#download-and-installation

Older versions, packages without JRE and sources are available from Maven Central


Changelog?

It would help a lot to have a changelog. Was doing some maintenance and ncu entry for this looked something like this,
react-google-maps            ^1.3.2  →   ^4.7.0

The changelog doesn't need to be indepth; just deprecations and breaking changes for the major releases is sufficient.

Yeah, we do have a CHANGELOG.md in both npm tarball and on GitHub repository. Sorry we don't put them into GitHub releases (if you're talking to this).

Ah! Sorry about that. Went though a lot of packages and a lot of them had the changelog mentioned or in the README. It would probably help someone else who made the same mistake if you add a link to it there, but no big deal.
Thanks.


Broken render of Markdown table - Chinese translation - Actions - Context availability

Code of Conduct

[X] I have read and agree to the GitHub Docs project's Code of Conduct

What article on docs.github.com is affected?
https://docs.github.com/cn/actions/learn-github-actions/contexts#context-availability
What part(s) of the article would you like to see updated?
Render context availability table properly.
Additional information
2022-02-02
Current status on docs website:
The source file rendered fine on GitHub at 3535fb25322da9e39f9c788c080964d058b775de:

@liyishuai
Thanks for opening this! Unfortunately, we are not able to accept changes for translated content. Our translation process involves an integration with an external service at crowdin.com, where all translation activity happens. We hope to eventually open up the translation process to the open-source community, but we're not there yet.
See https://github.com/github/docs/blob/main/contributing/types-of-contributions.md#earth_asia-translations.