al length should be $2\sqrt{2}\pi$.



Q:

Limit a date in input type date

I would like to limit the date so that the user does not have to select a date of less than one year, but I wish that it is done automatically compared to the date of the system. If anyone has ideas I'm grateful.

A:

You can get the current date and subtract an year from the current year and set min attribute 

var dtToday = new Date();

    var month = dtToday.getMonth() + 1;
    var day = dtToday.getDate();
    var year = dtToday.getFullYear();

    if(month < 10)
        month = '0' + month.toString();
    if(day < 10)
        day = '0' + day.toString();

    var minDate = (year-1) + '-' + month + '-' + day;    
    document.getElementById('dt').setAttribute('min', minDate);
<input type="date"  id="dt">



Q:

J2Objc Eclipse Plugin "error: --ignore-missing-imports is no longer supported"

When I use the J2Objc Eclipse Plugin I get the following error while translating my code: 
Executing with switches: [ -g --no-package-directories -x objective-c -use-arc --verbose --ignore-missing-imports --prefixes /Users/mg/Documents/Grails/GGTS3.6.2/TEST2Objectc/.TEST2Objectc-prefixes  ]
/Applications/J2Objc/j2objc-0.9.6/j2objc -g --no-package-directories -x objective-c -use-arc --verbose --ignore-missing-imports --prefixes /Users/mg/Documents/Grails/GGTS3.6.2/TEST2Objectc/.TEST2Objectc-prefixes -encoding UTF-8 -d /Users/mg/Documents/Grails/GGTS3.6.2/TEST2Objectc/src /Users/mg/Documents/Grails/GGTS3.6.2/TEST2Objectc/src/java/ios/Test.java
error: --ignore-missing-imports is no longer supported

I do not see any option to change the --ignore-missing-imports flag.
How can I fix this error?

A:

--ignore-missing-imports flag has been removed by J2Objc developer 
Because

That flag is only useful when doing a first
  pass over a large project, and shouldn't be used normally since all that
  does is ignore an error that will show up when compiling the generated
  files.

You should uncheck "Continue translation if an imported class is not fo