Save downloaded files into date based subdir

There should be a new parameter 'subdir' to goup downloads by year/month.
Exported files should be saved in subdirectories, optionally grouped by year (and month) of the activities start time. Like now, the root directory can be set with the parameter 'directory'. This must be the root directory for 'subdir'. Naming by date/time has to be optional. For instance:
-subdir {YYYY}
-subdir {YYYY}/{MM}
-subdir myTcxFiles/{YYYY} -f tcx
-subdir myGpxFiles -f gpx

Description for the pull request:
Added new parameter --subdir / -s to goup downloaded activities by year/month.
Exported files now can be saved in subdirectories, optionally grouped by year (and/or month) of the activitiy start time. Like now, the root directory can be set with the parameter 'directory', which is the root directory for 'subdir'. Naming by date/time can be set with placeholders of the parameter's argument. For instance:
--subdir {YYYY} --> downloads/2019/
--subdir {YYYY}/{MM} --> downloads/2019/03
--subdir myTcxFiles/{YYYY} -f tcx --> downloads/myTcxFiles/2019
--subdir myGpxFiles -f gpx  --> downloads/myGpxFiles/2019

Done.


Removed '<'

I have removed the "<" from the 404 page.
Old:
https://cdn.discordapp.com/attachments/455435273870901261/1001690014649946233/unknown.png

smh


[ConcurrentValue] Add syntax highlighting, etc.

Cc: @lattner

Wow, awesome, thank you @benrimmington !!


Custom Next and Prev Props logs warnings to the console.

The following two warnings occur when using custom elements for the next and prev arrows.
Warning: React does not recognize the `currentSlide` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `currentslide` instead. If you accidentally passed it from a parent component, remove it from the DOM element.

warning.js:33 Warning: React does not recognize the `slideCount` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `slidecount` instead. If you accidentally passed it from a parent component, remove it from the DOM element.

I've defined them as stateless functions as follows:
export const PrevArrow = props => (
  <button type="button" {...props}>
    <PrevIcon />
  </button>
);

export const NextArrow = props => (
  <button type="button" {...props}>
    <NextIcon />
  </button>
);

First of all, these are warnings, not errors.
The props that are passed to arrow components, contain slideCount and currentSlide custom props. So, if you're gonna define your arrows like this, you might wanna extract those props out first. Something like this should do:
const {currentSlide, slideCount, ...arrowProps} = props
<button {...otherProps}>

@laveesingh  - thanks for the answer!
did you mean:
const {currentSlide, slideCount, ...arrowProps} = props
<button {...arrowProps}>

did note them as warnings in the title, and have corrected it in the body.

Why is it closed?  This error is fired when JSX elements are provided instead of functions:
PrevArrow :  (
  <button type="button">
    <PrevIcon />
  </button>
);


TileGroup never renders the legend attribute

Look at the TileGroup example here:  http://react.carbondesignsystem.com/?selectedKind=Tile&selectedStory=Selectable&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Fstories%2Fstories-panel
The example has a legend attribute with a value of Selectable Tile Group, but that attribute is never added to the fieldset element for the TileGroup.  This means there's no way to set a legend for the TileGroup and that results in the following accessibility issue:

👋🏽 Thanks so much for reporting! I'm unable to reproduce your error. Could you tell me what DAP ruleset you're testing with?

I see this with the IBM Accessibility February 2019 ruleset.


[PE-D][Tester E] Add command does not handle invalid duplicate and invalid spacing

Describe the bug:
Users can key in spaces between words in the name to bypass the duplicate checking for names.
Steps to reproduce:
add n/John                                    Doe p/98765432 a/421 Marina Bay Road #12-34 Tan Kim PTE Building Singapore 123456
add n/John Doe p/98765432 a/421 Marina Bay Road #12-34 Tan Kim PTE Building Singapore 123456
Expected behaviour:
It should disallow the use of

more than one spaing
duplicate names regardless of spacing

Actual behaviour:
Names with the same words, but different spacing are not handled.
Screenshot:

Labels: type.FunctionalityBug severity.Medium
original: limjeremy496/ped#8

Functionality bug, valid for fixing.


remove button margin top to align the theme toggle icon in the navbar

fix theme color switch position

@rishabkumar7  not sure if this will break something in the HomepageApi component, saw that you added the margin of the button

thank you 💯


ci cd and other changes

This PR updates the CI CD tutorials and makes other fixes.

@slavipande FYI

Manju, you do not need to add the rules.vr files to this commit.  Can you please remove the rules.vr files?

Manju, you do not need to add the rules.vr files to this commit. Can you please remove the rules.vr files?

Hi @jmmargo, I removed the old rules.vr files but I left the new/renamed ones as those should be required for updating the tutorial right?
Best regards,
Manju


Gulp example?

Care to show us how one could use this as a Browserify transform when running Browserify via Gulp?
I have my other transforms (coffeeify, hbsfy, envify, etc.) defined in package.json’s transforms key.

https://github.com/davidchase/bulkify-gulp-example has been a great resource for me setting up bulkify. The only problem I ran into was #8
Good luck!


Exception: Call to Node module failed with error: Error: Can't resolve all parameters for FetchDataComponent: (?).

Sorry for the long post, i just wanted to give anyone kind enough to help a thorough explanation of what i did to get this error.
I'm using the Template Pack extension for Visual Studio 2015 (not ready to make the jump to 2017) .  However, i wanted to update to the new version of angular instead of using 2.0.0, which comes with the template. So i copied over the package.json from the new template,  into my template, installed all the modules, restored the project, and run the application. Then this error appeared.

So i thought it had to be the Webpack config files, so copied over the new webpack files and i get some type errors, which i dont think would break anything
>webpack --config webpack.config.vendor.js
Everything is Fine
>webpack
Types errors

Then i got the pre-rendering issue mentioned here, so i copied over the boot-server and boo.client-js which includes the mark's patch. Then decided to just copy over the entire Client-App folder to be sure. Deleted the Test folder/spec files, re-ran webpack commands, and finally I ran the application again to get the final and flowing error.
Exception: Call to Node module failed with error: Error: Can't resolve all parameters for FetchDataComponent: (?).
at SyntaxError.Error (native)
at SyntaxError.ZoneAwareError (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:74873:33)
at SyntaxError.BaseError [as constructor] (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:33353:20)
at new SyntaxError (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:33556:20)
at CompileMetadataResolver._getDependenciesMetadata (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:50410:35)
at CompileMetadataResolver._getTypeMetadata (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:50285:30)
at CompileMetadataResolver.getNonNormalizedDirectiveMetadata (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:49925:28)
at CompileMetadataResolver._loadDirectiveMetadata (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:49801:27)
at C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:50002:58
at Array.forEach (native)
at CompileMetadataResolver.loadNgModuleDirectiveAndPipeMetadata (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:50001:45)
at C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:59118:62
at Array.forEach (native)
at JitCompiler._loadModules (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:59117:47)
at JitCompiler._compileModuleAndComponents (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:59072:56)

The current project can be found here. Thanks guys!!!
Full output
System.Exception: Call to Node module failed with error: Error: Can't resolve all parameters for FetchDataComponent: (?).
    at SyntaxError.Error (native)
    at SyntaxError.ZoneAwareError (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:74873:33)
    at SyntaxError.BaseError [as constructor] (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:33353:20)
    at new SyntaxError (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:33556:20)
    at CompileMetadataResolver._getDependenciesMetadata (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:50410:35)
    at CompileMetadataResolver._getTypeMetadata (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:50285:30)
    at CompileMetadataResolver.getNonNormalizedDirectiveMetadata (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:49925:28)
    at CompileMetadataResolver._loadDirectiveMetadata (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:49801:27)
    at C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:50002:58
    at Array.forEach (native)
    at CompileMetadataResolver.loadNgModuleDirectiveAndPipeMetadata (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:50001:45)
    at C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:59118:62
    at Array.forEach (native)
    at JitCompiler._loadModules (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:59117:47)
    at JitCompiler._compileModuleAndComponents (C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\vendor.js:59072:56)
   at Microsoft.AspNetCore.NodeServices.HostingModels.HttpNodeInstance.<InvokeExportAsync>d__7`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Microsoft.AspNetCore.NodeServices.HostingModels.OutOfProcessNodeInstance.<InvokeExportAsync>d__13`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Microsoft.AspNetCore.NodeServices.NodeServicesImpl.<InvokeExportWithPossibleRetryAsync>d__10`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Microsoft.AspNetCore.SpaServices.Prerendering.PrerenderTagHelper.<ProcessAsync>d__33.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.<RunAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at AspNetCore._Views_Home_Index_cshtml.<ExecuteAsync>d__31.MoveNext() in /Views/Home/Index.cshtml:line 2
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Razor.RazorView.<RenderPageAsync>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Razor.RazorView.<RenderAsync>d__13.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor.<ExecuteAsync>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.ViewResult.<ExecuteResultAsync>d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeResultAsync>d__32.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeResultFilterAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeAllResultFiltersAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeResourceFilterAsync>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeAsync>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.<Invoke>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at Microsoft.AspNetCore.SpaServices.Webpack.ConditionalProxyMiddleware.<Invoke>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__6.MoveNext()
Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request finished in 28717.2442ms 500 text/html; charset=utf-8
Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request starting HTTP/1.1 GET http://localhost:63621/favicon.ico
Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware:Information: The file /favicon.ico was not modified
Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request finished in 106.327ms 304 image/x-icon
Microsoft.AspNetCore.NodeServices:Error: [at-loader] Checking finished with 27 errors
Microsoft.AspNetCore.NodeServices:Information: Node will restart because file changed: C:\Users\akralove\documents\visual studio 2015\Projects\Angular2Application\Angular2Application\ClientApp\dist\main-server.js
Microsoft.AspNetCore.NodeServices:Error: [at-loader] Checking finished with 27 errors
Microsoft.AspNetCore.NodeServices:Information: webpack built 8902d10d0e9923865e9e in 43331ms
Microsoft.AspNetCore.NodeServices:Information: Hash: 8902d10d0e9923865e9e
Version: webpack 2.3.3
Time: 43331ms
             Asset    Size  Chunks             Chunk Names
    main-client.js  128 kB       0  [emitted]  main-client
main-client.js.map  144 kB       0  [emitted]  main-client
chunk    {0} main-client.js, main-client.js.map (main-client) 98.6 kB [entry] [rendered]
    [0] delegated<EMAIL_ADDRESS>from dll-reference vendor_6d16e8a0e8055fc46d7d 42 bytes {0} [not cacheable] [built]
    [1] external "vendor_6d16e8a0e8055fc46d7d" 42 bytes {0} [not cacheable]
    [4] delegated ./node_modules/angular2-universal/browser/index.js from dll-reference vendor_6d16e8a0e8055fc46d7d 42 bytes {0} [not cacheable] [built]
    [5] ./ClientApp/boot-client.ts 1.3 kB {0} [built]
    [6] (webpack)-hot-middleware/client.js?path=http%3A%2F%2Flocalhost%3A53781%2F__webpack_hmr 6.68 kB {0} [built]
    [7] delegated ./node_modules/event-source-polyfill/eventsource.js from dll-reference vendor_6d16e8a0e8055fc46d7d 42 bytes {0} [not cacheable] [built]
   [10] ./ClientApp/app/app.module.ts 2.23 kB {0} [built]
   [28] ./~/querystring-es3/index.js 127 bytes {0} [built]
   [29] ./~/strip-ansi/index.js 161 bytes {0} [built]
   [32] (webpack)-hot-middleware/client-overlay.js 1.82 kB {0} [built]
   [33] (webpack)-hot-middleware/process-update.js 3.88 kB {0} [built]
   [35] delegated ./node_modules/angular2-universal-polyfills/browser.js from dll-reference vendor_6d16e8a0e8055fc46d7d 42 bytes {0} [not cacheable] [built]
   [36] delegated ./node_modules/bootstrap/dist/js/npm.js from dll-reference vendor_6d16e8a0e8055fc46d7d 42 bytes {0} [not cacheable] [built]
   [37] delegated ./node_modules/webpack/buildin/module.js from dll-reference vendor_6d16e8a0e8055fc46d7d 42 bytes {0} [not cacheable] [built]
   [38] multi event-source-polyfill webpack-hot-middleware/client?path=http%3A%2F%2Flocalhost%3A53781%2F__webpack_hmr ./ClientApp/boot-client.ts 52 bytes {0} [built]
     + 24 hidden modules

ERROR in [at-loader] ./ClientApp/app/app.module.ts:30:14
    TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.

ERROR in [at-loader] ./ClientApp/app/components/app/app.component.ts:8:14
    TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.

ERROR in [at-loader] ./ClientApp/app/components/counter/counter.component.ts:7:14
    TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.

ERROR in [at-loader] ./ClientApp/app/components/fetchdata/fetchdata.component.ts:8:14
    TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.

ERROR in [at-loader] ./ClientApp/app/components/home/home.component.ts:7:14
    TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.

ERROR in [at-loader] ./ClientApp/app/components/navmenu/navmenu.component.ts:8:14
    TS1219: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning.

ERROR in [at-loader] ./ClientApp/boot-server.ts:13:16
    TS2693: 'Promise' only refers to a type, but is being used as a value here.

ERROR in [at-loader] ./node_modules/@angular/common/src/directives/ng_class.d.ts:48:34
    TS2304: Cannot find name 'Set'.

ERROR in [at-loader] ./node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts:24:15
    TS2304: Cannot find name 'Map'.

ERROR in [at-loader] ./node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts:28:16
    TS2304: Cannot find name 'Map'.

ERROR in [at-loader] ./node_modules/@angular/core/src/di/reflective_provider.d.ts:87:123
    TS2304: Cannot find name 'Map'.

ERROR in [at-loader] ./node_modules/@angular/core/src/di/reflective_provider.d.ts:87:165
    TS2304: Cannot find name 'Map'.

ERROR in [at-loader] ./node_modules/@angular/core/src/facade/lang.d.ts:12:17
    TS2304: Cannot find name 'Map'.

ERROR in [at-loader] ./node_modules/@angular/core/src/facade/lang.d.ts:13:17
    TS2304: Cannot find name 'Set'.

ERROR in [at-loader] ./node_modules/@angular/http/src/headers.d.ts:52:59
    TS2304: Cannot find name 'Map'.

ERROR in [at-loader] ./node_modules/@angular/http/src/url_search_params.d.ts:46:16
    TS2304: Cannot find name 'Map'.

ERROR in [at-loader] ./node_modules/@angular/platform-browser/src/browser/browser_adapter.d.ts:79:33
    TS2304: Cannot find name 'Map'.

ERROR in [at-loader] ./node_modules/@angular/platform-browser/src/dom/dom_adapter.d.ts:97:42
    TS2304: Cannot find name 'Map'.

ERROR in [at-loader] ./node_modules/@angular/platform-browser/src/dom/dom_renderer.d.ts:22:37
    TS2304: Cannot find name 'Map'.

ERROR in [at-loader] ./node_modules/@angular/platform-browser/src/dom/shared_styles_host.d.ts:11:30
    TS2304: Cannot find name 'Set'.

ERROR in [at-loader] ./node_modules/@angular/platform-browser/src/dom/shared_styles_host.d.ts:22:30
    TS2304: Cannot find name 'Set'.

ERROR in [at-loader] ./node_modules/angular2-universal/common/index.d.ts:1:33
    TS2304: Cannot find name 'WeakMap'.

ERROR in [at-loader] ./node_modules/angular2-universal/node_modules/angular2-platform-node/node-platform.d.ts:14:20
    TS2304: Cannot find name 'WeakMap'.

ERROR in [at-loader] ./node_modules/angular2-universal/node_modules/angular2-platform-node/node-renderer.d.ts:9:37
    TS2304: Cannot find name 'Map'.

ERROR in [at-loader] ./node_modules/angular2-universal/node_modules/angular2-platform-node/node-shared-styles-host.d.ts:3:17
    TS2304: Cannot find name 'Set'.

ERROR in [at-loader] ./node_modules/angular2-universal/node_modules/angular2-platform-node/node-shared-styles-host.d.ts:10:17
    TS2304: Cannot find name 'Set'.

ERROR in [at-loader] ./node_modules/rxjs/Observable.d.ts:69:60
    TS2693: 'Promise' only refers to a type, but is being used as a value here.
The thread 0x1cf0 has exited with code 0 (0x0).
The thread 0x9c4 has exited with code 0 (0x0).
The thread 0x15a4 has exited with code 0 (0x0).
The thread 0xee4 has exited with code 0 (0x0).
The thread 0x1b40 has exited with code 0 (0x0).

It's not a simple upgrade process as universal has been moved to Core, you must use typescript 2.2+ and many other misc changes needed.  Working prototype here, might be able to add in the necessary changes here as well, but it's quite a difference now.

@MarkPieszak Thanks for answering!

@MarkPieszak Sorry, I missed the notification. Thanks, I will check your prototype out. I appreciate you taking the time to look at my question.


Error after upgrading to react 0.14

Hi,
I have problem with
<Link to="/" >Home</Link>

When I delete this from code, everything works good.
Otherwise....
Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of `Header`.
Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of `Header`.

Have you imported the ``Link` component ?
import { Link } from 'react-router'; // es6
var Link = require('react-router').Link;

@mvlach The error tells you what it is. You are trying to render the component in the wrong format somewhere in your Header component.

I get the same error, how to solve the problem??

As already said, the problem is probably not with react-router and you must have an error in your render method.

hm... same issue happened to me, I have look around my codes, seems nothing I did wrong:
import './Reset.scss';
import './Bootstrap.min.scss';
import React from 'react';
import ReactDOM from 'react-dom';
import Catalog from './Catalog/App-Catalog.js';
import Cart from './Cart/App-Cart.js';
import CatelogDetail from './Catalog/App-CatalogItem.js';
import Template from './App-Template.js';
import Router from 'react-router-component';
var Locations = Router.Locations;
var Location = Router.location;

class App extends React.Component {
	render() {
		return (
			<Template>
				<Locations>
					<Location path="/" handler={Catalog}/>
					<Location path="/cart" handler={Cart}/>
					<Location path="/item/:item" handler={CatelogDetail}/>
				</Locations>
			</Template>
		)
	}
}

ReactDOM.render(<App />, document.getElementById('main'));

I have the same problem, I debugged the issue and I found the problem is on: ReactElementValidator -> createElement
It seems that all Route elements are created well, but when Router element is going to be created this validation is false:
var validType = typeof type === 'string' || typeof type === 'function';
Does anyone know how can I deal with this issue?

Test the version of react-router you have to make sure it is the latest.

rm -rf node_modules && npm install should fix it

rm -rf node_modules && npm install fixed it!
(After wasting one full day banging the wall with my head!)

Dang this saved my life too.  Thanks so much!  I always forget that a lot of times this will fix all the things.  Also, I'll usually run:
rm -rf ./node_modules && npm cache clean && npm install

still does not work

@pplegend upgrade your packages, prunes, reinstall everything, and check the latest docs, this issue happened a year ago. A lot of stuff changed since.


Passing arguments to Jou programs

Currently not possible, unless you first compile to a file with jou -o filename.exe program.jou and then pass arguments like so ./filename.exe arg1 arg2 arg3

we don't need passing arguments to Jou programs when compile. There is no programming language gives args to programs when compile

Indeed. If you use -o, it causes Jou to only compile the program and not run it, so it shouldn't accept additional arguments if -o is used. But without -o it compiles and then runs the program, and that's what this issue is about.

we don't need passing arguments to Jou programs when compile. There is no programming language gives args to programs when compile

And why can't Jou be the first 😄? I think it could actually have some amazing applications.

C compilers have the -D option, which basically specifies a compile-time argument. If you pass -Dfoo=123 to the compiler, then every occurrence of the variable name foo in the .c files will be replaced by 123, as if the C code contained #define foo 123.
I think Jou should have something similar, but it is somewhat low priority. You could instead auto-generate a file that gets imported into Jou. In fact, I already do that:
https://github.com/Akuli/jou/blob/b709670adaad11dec65b742716f6dd0c78b57015/Makefile.posix#L33-L36

Is there another way besides just overriding every occurrence of a variable?

In C there really isn't, and with properly named variables, it isn't as bad as you would expect it to be.
For Jou, the best option would probably be reading environment variables at compile time. Environment variables are a "standard" way to pass info to programs that most developers are already familiar with (and if not, will be very useful to learn). This way compiling the program would look something like MY_VAR=123 jou program.jou.

Hmmm. The reason I ask is because I could imagine myself wanting to use compile-time optimizations for code that is dependent one one thing or another such as platform or whatnot that can be determined dynamically in the code when speed isn't a priority but can be optimized for distribution.

You can already do if WINDOWS: or if MACOS: at compile time. That will probably need to be generalized at some point in the future.

I know, I was just using that as an example.


How to uninstall a plugin?

I've installed dokku-bower-install as described on their GitHub readme.  Not sure if it's the plugins fault, but before the install it worked, so there's that. So general question:
How to uninstall this (or any other) plugin properly?
The Wiki Page only states how to create and install plugins, not how to remove them.

Thanks @AlJohri.

@juanpastas please do not comment on old issues.


Gather functionality broken by variable explorer / data explorer fetching

The python code snippits that we run for variable work are captured by gather and seem to break gather.
If you run:
#%%
testing = 1
#%%
print(str(testing))
And then gather on the second cell you should (and do) get both cells. But if you have the variable explorer open during this time you will only get the second cell alone.

@IanMatthewHuff, sorry I didn't catch this when working on Gather! I looked into this and the reason Gather breaks with the variable explorer open is that

The execution count returned by the Jupyter kernel in the KernelMessage for the Python code snippets is being incremented even though the execution request is sent with store_history = false, which should ensure that the execution count is not incremented according to the docs.
The execution count is not incremented when it should be for code executed after the Python code snippets. E.g. if I execute testing = 1 with the variable explorer open, that cell will have execution_count = 1, the code snippets executed right after it will have execution_count = 2, and if I execute print(str(testing)), that cell will have execution_count = 2.
When the user gathers a cell, the ProgramBuilder.buildTo function in @msrvida/python-program-analysis iterates backward through the execution log to build up a program for slicing. It stops iterating and adding code when it finds cells whose execution count >= that of the last cell added. In the example above, that means print(str(testing)) is added but the code snippets (which have the same execution count as the cell for print(str(testing))) and everything executed before them are skipped. The ProgramBuilder.buildTo code assumes that the execution count monotonically increases, which isn't true since jupyterlab/services offers the option to execute code with store_history = false, in which case the execution count may remain the same. Relevant code is here.

Imo a complete fix would involve 1. fixing the off by one execution counts returned from the Jupyter kernel (or fixing whatever part of our code is causing the errors, if this isn't a Jupyter kernel bug) 2. changing the ProgramBuilder.buildTo code where it assumes that execution count is strictly increasing. Failing that we could always just not add the Python code snippets to the Gather execution log. I'm happy to work on this since I should have caught it!

Funny, just for kicks I decided to build and debug this problem myself. I think Ian told me, but I ignored the fact that the source of the problem was documented here. :) Good news is that I discovered the same thing and was thinking the same way with regard to not logging the "meta" cells.
The easiest way I can think to do this is to prefix all of these cell scripts with a special comment. If we detect that comment in the source, then we don't log the execution. This would also allow us to add other types of tags for our cells.

See PR https://github.com/IanMatthewHuff/vscode-python/pull/1

Nothing happens when I press gather. Maybe some of the changes from the native editor affected this?

Hmm, I'm not seeing it. This is what I get doing a gather on the second cell of our manual test file. Correctly gathers up cells 1 and 2 only.

Maybe I'm doing something wrong? I'm executing 2 cells on the interactive window, pressing the gather button and nothing happens.

Validated


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-27-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 3999

Questions ?
Please refer to the Backport tool documentation


Support element screenshots for ScaleFactor != 1

This enables making screenshots of zoomed elements, for example to make
high-dpi screenshots.

To make use of this I have an ActionFunc like this:
func setViewportAndScale(w, h int64, scale float64) cdp.ActionFunc {
	return func(ctxt context.Context, ha cdptypes.Handler) error {
		err := emulation.SetVisibleSize(w, h).Do(ctxt, ha)
		if err != nil {
			return err
		}
		sw, sh := int64(float64(w)/scale), int64(float64(h)/scale)
		err = emulation.SetDeviceMetricsOverride(sw, sh, scale, false, false).WithScale(scale).Do(ctxt, ha)
		if err != nil {
			return err
		}
		return nil
	}
}

This allows you to make a screenshot which is (w,h) in size in the resulting PNG, with the given zoom factor applied.

Coverage increased (+0.4%) to 67.48% when pulling ba994cb3804c64d76b37525384a8ac001bb89f36 on pwaller:screenshot-scalefactor-support into 4cc4ba1ca23fb669e5ec66cda5c2bcdc3c10f672 on knq:master.

What you have should be part of the "navigation" actions. I'll look at adding something like this. Apologies for not thinking about DPI/scaling factor with the original screenshot actions.

Coverage decreased (-0.3%) to 68.07% when pulling 3e44750d048839bf7191ad74bc522dd06fb79d60 on pwaller:screenshot-scalefactor-support into ccdd204500a4787c6496320d2906f708364973f6 on knq:master.


Added changelog for 0.3.0

We should release 0.3.0.

All the changes looked good to me, so no complaints on making them accessible as a new release. I’m in the release and iterate often camp anyway, and we can always make patch releases if we bump into anything.

Thank you for the review


Jetpack Compose Material3 1.3.0-beta04

Hmm, there is no changes from https://developer.android.com/jetpack/androidx/releases/compose-material3#1.3.0-beta04. Investigating...

Obsolete https://github.com/JetBrains/compose-multiplatform-core/pull/1479


SMS 20: Create the basic application structure for profiles

create an application where you will add code. This ensures that code is modular. Also separate unit tests, templates and static directory.

Resolved with https://github.com/mantoshkumar1/restful_cv/pull/24


[Packager] Fix DependencyResolver to support ES6 multiline imports

This is a PR to fix #1939 (DependencyResolver fails to handle ES6 modules import statements with new lines)
This PR includes:

A fix to the problematic regular expression
Updated tests that support the new line style.

Summary:
We found out that while the packager does its module wrapping thing for lines like this:
import theDefault, { named1, named2 } from 'src/mylib';

It fails to do the same for multi line imports:
import theDefault, {
  named1,
  named2
} from 'src/mylib';

We've tracked done the issue to a faulty regular expression in replacePatterns.js
You can see various import statements with the problematic regular expression here
We've figure out a better regular expression (you can play around with it here)

The pattern should be something like [\s\S] instead of [^;].
Also could you squash your commits?

@ide,
Squashed my commits, and updated the regular expression to:
exports.IMPORT_RE = /(\bimport\s+(?:\s*?|[\s\S]+?from\s+?))(['"])([^'"]+)(\2)/g;

to support both import "module" and import {coolness} from "module" cases.
You can check it out here:
http://regexr.com/3bckg

this is a little simpler:
/(\bimport\s+(?:[\s\S]+?from\s+)??)(['"])([^'"]+)(\2)/g

This looks good to me. Thanks for the comprehensive tests too.

I realized it'd be easy to filter out some more invalid statements... take a look at http://regexr.com/3bd3s

How does this relate to #1993?

#1993 adds babel support for converting import statements to require calls but the packager builds its dependency graph before babel runs, so it needs to grep for both require and import. The regex it was using to look for import statements didn't match a couple of valid cases and with this PR now it does.

@ide, oh cool! :)
Updated the PR with the latest regex + updated the PR comment.

This is so crucial in combination with "try restarting the packager" error message. I have multiple other imports, which are working fine with multiline statements already...
Looking forward :+1:

This would be super helpful. Took me days to figure out that the new lines where the culprit, I just thought react-native was using a broken babel version or something like that. I kept (and keep) fixing it like this:
import theDefault from 'src/mylib'
const {
  named1,
  named2
} = theDefault

I noticed when converting my project back to just the normal packager (and no longer use react-native-webpack-server) I ran into this issue. I also ran into the issue with things like export * from './videos' wouldn't work either. So the updated regex here I think should also include the keyword "export"...as export [blank] from [blank] is just like importing. I fixed it locally by changing the regex in this PR to:
/(\b(?:import|export)\s+(?:[^'"]+\s+from\s+)??)(['"])([^'"]+)(\2)/g.
Thoughts?

@skevy seems good. It's always a bit frustrating when other tooling lags behind babel.

@shlomiatar what do you think about the updated regex?

I had added export from syntax in #1975.
It also has tests for it.
We can probably combine those 2 or merge separately.

@amasad: want to import this?

Sorry this took so long, I was out for a while.
We're actually in the process of moving the packager to it's own github repo and we'll be able to accept contributions like this much faster (we can just use the Github merge button). I'm hoping we can release it some time this week.

@amasad @sahrens any updates on moving the packager out to it's own repo? Would love to see this merged.

Can this happen soon?

@facebook-github-bot shipit

What's the status of this import?

it should have been merged 7 days ago

@martinbigio Yep, I see it in the commit history now! Closing this PR since it has been merged into master :D

:tada:


Update 0021-merge-two-sorted-lists.rs,  Create 0143-reorder-list.rs

File(s) Modified: 0021-merge-two-sorted-lists.rs

Language(s) Used: rust

Submission URL for Merge two sorted lists: https://leetcode.com/problems/merge-two-sorted-lists/submissions/1144795035/
Previous iterative solution is just as optimal. This above solution is shorter, cleaner and easier to understand.

File(s) Modified: 0143-reorder-list.rs

Language(s) Used: rust

Submission URL for Reorder List: https://leetcode.com/problems/reorder-list/submissions/1145986372/

@txtyash Thanks for your contribution 👍


Use app insight connection string instead of aiKey

Fixes https://github.com/microsoft/vscode-azurefunctions/issues/4278

See the documentation here https://learn.microsoft.com/en-us/azure/azure-monitor/app/migrate-from-instrumentation-keys-to-connection-strings


C++20, improved compile times

I think we could progress much faster if we had a faster CI/CD check, because these 2h per small change is quite a long time.
I have been looking at our options, and the lowest hanging fruit in this case like is upgrading to C++20, and leaning into the import/export of modules rather than #include.
That should reduce the compile times quite a lot because the modules are compiled only once rather than every time they are included.
Especially the ios-ci workflow alone takes >100 minutes to go through, and it's mainly spending time compiling.

I think we should just make sure ccache is enabled for all tests (currently it's certainly not).
C++ modules will not really help with cold builds. In C++ headers do not mean that everything is recompiled each time as they just reference the actual code.

Ah, okay. Was just reading through some pages like these https://www.incredibuild.com/blog/what-you-need-to-do-to-move-on-to-c-20-the-complete-list

This is also not that supported yet. The first step would be to move to C++17 where we can also drop a lot of polyfills Mapbox implemented.

I believe the code already compiles with C++, so that sounds like a good idea to actually see how much we can gain from that

No, there are some warnings with C++17 still with some platforms. Qt6 does use C++17 though, but I had to use some ifdefs to make it compile without warnings.

Oh yes I see. That should of course be resolved first. So all this ghc::filesystem could for instance be remove right?

And optionals and many other classes, but I can't remember all from the top of my head.

It's really a great area to investigate, so if you see anything that potentially can be pulled out I'd be happy to give it a shot.

I think we need to finalise the CI setup first as discussed yesterday. Or we need people reviewing much more thoroughly. My previous cleanups did cause some regressions by accident unfortunately 😊


Request for adding Lazarus/Free Pascal

What programming language should we add?
Free Pascal/Lazarus
What is the official website for the language?
Lazarus: https://www.lazarus-ide.org/
Free Pascal (or FPC for short): https://www.freepascal.org/
Is this a language that comes in many variants? If so, which variant should we support?
This Language is already a Variant of an Language: Object Pascal. Another Variant would be Delphi Pascal, which is already be added to Exercism.
Does the language have an official/unofficial logo?
This is a bit tricky, because Lazarus and FPC themself are at the base level distinct Projects.
But Lazarus and FPC are made from the same People, but Lazarus's Logo might be more recognizeable.
(Because Lazarus is the IDE and most people will know the IDE more rather than its compiler FPC).
Lazarus IDE: https://wiki.freepascal.org/File:Lazarus-icons-lpr-proposal-bpsoftware.png
Sometimes also uses this logo (for example on their Website): https://wiki.freepascal.org/File:Lazarus-icons-exe-proposal-bpsoftware.png
Free Pascal actually uses an GIF as their logo: https://wiki.freepascal.org/File:fpc_running_logo.gif
All Logos can be found here: https://wiki.freepascal.org/Logos_and_Banners
Currently the wiki dosnt state explicitly how the Logos mentioned above are licensed.
In general FPC is licensed under a combination of MDL ,LGPL and GPLv2: https://wiki.freepascal.org/licensing .
So it would be natural that the offical logos would also fall under this License. There also exists an forum thread about this,
in which the conclusion was:
[...] that page (https://wiki.freepascal.org/Logos_and_Banners) would have no sense if we were not allowed to use those.

Source: https://forum.lazarus.freepascal.org/index.php/topic,22315.msg131457.html#msg131457
Is there a testing framework available for the language?
Yes: https://wiki.freepascal.org/fpcunit
Is this language listed as 'supported' by Highlightjs?
No, not really. Highlightjs only officially supports Delphi.
If it is not supported by Highlightjs, what is the closest supported language it maps to?
Highlightjs only officially supports Delphi. But since the both languages are syntactical Identical, this should be no problem.

what is Highlightjs' canonical spelling for the language? "Delphi"
what file extensions should be highlighted? ".pas"-Files

Who will be leading the effort to launch the track?
I'm new on contributing to exercism but I could maintain the track. (If this is what the question was intended to ask for)
Otherwise it might be good to cooperate with the people that lead the already existing delphi track at https://github.com/exercism/delphi

@Mai-Lapyst Thanks for this. How different are Lazarus and Delphi? e.g. Would the exercises need changing significantly?

@iHiD Thanks for responding so quickly!
The main differences between Delphi and FPC/Lazarus are:

FPC dosn't support Generics
Exporting of overloaded functions in librarys are not possible
Delegating interfaces to classes is not always supported
Anonymous Methods are not supported
Custom attributes are not supported
Enhanced RTTI is not supported (compiler directives)
Imports via "uses" keyword sometimes are named differently.
For example: Delphi allows "System.SysUtils" and "SysUtils" while FPC only has "SysUtils".
Various compiler directives are missing in one or the other.
{$include} works differently: FPC also supports accessing compiler information or environment variables through this compiler directive

This are the most common found differences. There might be more, and I can research this further if theres need for it.
As for the exercises: It depends what the exercises are using/teaching. For example an exercise with generics wouldn't work with FPC/Lazarus until they implement generics.
The Tests also might need some changes, but this depends on weather or not fpcunit and DUnitX (the test framework used in the delphi track) share the same API. If not, there needs to be further testing if DUnitX works with FPC/Lazarus, but since FPC lacks some features of Delphi (generics, anonymous methods) this might be not the case.

Feels like we could do this. @ErikSchierboom Could you have a read of the above and see if you agree pls? If so, would it make sense to fork the @exercism/delphi repo for this, or go from scratch?

We've discussed this for a bit, and here are our thoughts.
AFAIC, Lazarus/Free Pascal is very similar in Delphi, lacking only some language features. Delphi itself must be coded in an IDE that only runs on Windows. This is not ideal for students, as there will be students working on other OS'es that can't or don't want to run Windows natively or in a VM. Those students will be missing out on Delphi.
That said, creating a separate track which language is mostly identical to another track also seems sub-optimal, as people would be learning (virtually) the same language via two different tracks. It would also mean that mentors would have to be spread over two tracks, as well as any coding efforts like implementing exercises or track tooling being duplicated.
What if, instead of creating a new track, we'd update the Delphi track to offer Lazarus/Free Pascal as an alternative for students that don't want to work on Windows? We could create a new document in the Delphi repo listing the differences between the languages and have a separate section in the INSTALLATION.md document on how to setup Lazarus/Free Pascal as an alternative IDE.
@rpottsoh We're also very keen on hearing your thoughts.

Lazarus/FPC is another dialect of Pascal, like Delphi.  I think a single language track would have a hard time trying to be compatible with both dialects.  There are just too many differences to contend with.
Development is in progress to make it possible for learners to submit exercises directly from the online editor available on the Exercism site in order to see how their solution fairs against the tests provided.
If a learner chooses to work this way then they do not need to install anything.  I admit I do not entirely know how this new capability operates in V3 of Exercism; I am assuming one could work offline in their editor of choice and submit their solution using the CLI, or copy & paste to the online editor to then see the results.
Besides all of the nuanced differences between the two Pascal dialects, the test framework I have implemented for the Delphi track (DUnitX) heavily relies on the features available to Delphi that are not available to Lazarus/FPC.  DUnitX is well maintained by its author and has fairly regular updates.
To support both compilers, at the very least, a test framework that is known to work with both compilers would have to be used.   All of the exercises in the Delphi track would need to be rewritten to support another testing framework.  DUnit I think is a framework that is compatible with both compilers (unconfirmed).  DUnit is provided with Delphi and is available to Lazarus/FPC.
Supporting Lazarus/FPC is more work than I am willing to take on.

Thanks for the detailed explanation. It sounds like we probably do want separate tracks then.

@Mai-Lapyst Are you still interested in working on a Lazarus/Free Pascal track?

We need to decide on the name and ID for the track. Are we good with Lazarus/Free Pascal and lazarus-free-pascal or is there something a bit shorter that would be suitable?

If I'm reading it correctly, Lazarus is the IDE and Free Pascal the language. Is that correct @Mai-Lapyst? If so, the name should be free-pascal I think.

I'm going to go ahead and generate the repo, and if we got it wrong, just holler and we can delete it and redo it.

I've created the repo here: https://github.com/exercism/free-pascal/issues/1
@Mai-Lapyst you should have an invitation to the maintainer team for the new track.


Question about ignore file/list

how should I enable ignore list?
For example, I got some hydra config
name: resnet50
skip_pool: false
version: swav_run${..seed}_${.name}
..seed is not defined
.name is not defined
How should I ignore it?

Hi @Xiang-Pan , could you give a bit more info on the concern at place:
.name - as I understand you want it be found in the current scope. We are working on this and would bring it to light in the next release.
..seed - about this I am not really sure where this key should come from?
And generally address your question, what exactly do you want to ignore? All diagnostics?

Thanks for you feedback:))
Basically, it is more like the variable in the reference, but hydra-lsp seems to report the error. It would be great if there is some ignore rule like pytlint or flake8. Since those error messages will dominate the error message pool.
Happy New Year and look forward to the next version.


[FEAT] make the layout preview areas resizable!

thanks for the good work, but I think it would really be very helpful if the layout preview area or container was draggable and resizeable so that I can see how the flex would be like for different screens, and responsiveness!

Thanks for the suggestion. It’s a fantastic idea and would definitely improve the usability of the tool. However, I’d like to gather more input on the best way to implement it without affecting the UI or functionality negatively.
For example, should the layout preview area be resizable while keeping the editor on the left a fixed width? This might leave blank spaces on either side of the preview. Alternatively, if resizing the preview also resizes the editor, it could lead to the editor becoming too wide or too narrow, and there might still be blank spaces below the preview area.
I’d love to hear your thoughts or suggestions on how to approach this implementation effectively. Thanks again

the red marking can be where one grabs to resize, the yeah I'd go for empty space around the preview area, this how even most component libs show responsiveness for different blocks...

Took a while, but feature implemented and pushed! Thanks for the suggestion.

Took a while, but feature implemented and pushed! Thanks for the suggestion.

Sure let me check it out, thanks for listening!


Add mingw angle support

Test still seem to fail.

What is that not merged? Only doc change right?

I compile angle on mingw and it worked on my machine. But on appveyor it failed. I think it was missing a dll. I could never figure out which one though even though I tried with depends exe.

We can try using msvc angle on < 3.5, but I'm not sure that's a good idea due to mixing compilers etc.


Release Google.Analytics.Data.V1Beta version 1.0.0-beta04

Changes in this release:

Commit 5d64452: feat: add minute_ranges field to RunRealtimeReportRequest object which can be used to specify the time range (in minutes) for realtime report queries docs: document the increase from 8 to 9 of the number of allowed dimensions in a report query

Created release for Google.Analytics.Data.V1Beta-1.0.0-beta04


Typo "**exist()**to"→"exist() to"

https://docs.microsoft.com/en-us/sql/xquery/xqueries-handling-relational-data?view=sql-server-ver15

@hyoshioka0128 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@hyoshioka0128 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@hyoshioka0128 Thank you! #sign-off

@hyoshioka0128 Thank you! #sign-off


Discord silently fails to open links in firefox

Describe the bug
I use Firefox as a web browser. When I click on links in discord, nothing happens. If I run Discord from the command line there no errors are displayed when clicking on links.
I used strace to see what discord was doing and found the exact execve call to firefox that is failing. I used that debug information to create a shell script that invokes execve with the same args and environment variables and ran that directly and saw the following error message:
XPCOMGlueLoad error for file /nix/store/chvdh5g7516rd7krss8pjsxb63naqnhp-firefox-unwrapped-87.0/lib/firefox/libxul.so:
/nix/store/bli00bnggzsir939wzy6b0jr2myw2qvd-nss-3.56/lib/libnss3.so: version `NSS_3.58' not found (required by /nix/store/chvdh5g7516rd7krss8pjsxb63naqnhp-firefox-unwrapped-87.0/lib/firefox/libxul.so)
Couldn't load XPCOM.

One of the environment variables that I noticed was LD_LIBRARY_PATH which is set by a wrapper script around discord. I also noticed that firefox and discord are built against different versions of nss. Firefox uses the nss_latest attribute and Discord uses nss. Discord forks and execs firefox when you click on a link, and the LD_LIBRARY_PATH environment variable that is set by the discord wrapper script is inherited by the firefox process which points firefox at a different version of nss than what it is compiled with.
As a temporary workaround, I made a local fork of the discord derivation that uses nss_latest instead of nss and links are working now. I would have made a PR but that feels like a fragile workaround because discord and firefox should not need to be compiled against the same version of nss. I think the proper fix is to use a different mechanism to point discord at the the paths in LD_LIBRARY_PATH so that it is not inherited by child processes, but I'm not quite sure how to do that.
To Reproduce
Steps to reproduce the behavior:

Install firefox and discord
Make sure that firefox is set as the default browser
Open firefox and discord
Try to click on a link in discord

Notify maintainers
@ldesgoui  @MP2E @tadeokondrak
Metadata
- system: `"x86_64-linux"`
- host os: `Linux 5.4.108, NixOS, 20.09.3662.d88cdc7bc1a (Nightingale)`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.3.10`
- channels(ooesili): `""`
- channels(root): `"nixos-20.09.3662.d88cdc7bc1a, unstable-21.05pre279012.ad47284f8b0"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
- discord
# a list of nixos modules affected by the problem
module: []

There's a wrapper to firefox that appends to LD_LIBRARY_PATH, shouldn't it prepend instead? https://github.com/NixOS/nixpkgs/blob/42a03e4728fc05cb9f123057670e41967f628360/pkgs/applications/networking/browsers/firefox/wrapper.nix#L124

Also, why does Discord fork firefox-unwrapped according to the error message?

By fork, do you mean launch the subprocess? I think that's just what xdg-open does

Shouldn't it be the wrapped firefox instead?

It does call the wrapper script, wihch appends to LD_LIBRARY_PATH so the paths set by discord's wrapper are found and used first, hence the issue of firefox-unwrapped failing to start as it needs nss_latest and is given nss

By fork, do you mean launch the subprocess? I think that's just what xdg-open does

Yes I do mean this. I had my strace goggles on and was thinking in terms of system calls (launching a process involves fork(2)-ing the current process and execve(2)-ing the program)

There's a wrapper to firefox that appends to LD_LIBRARY_PATH, shouldn't it prepend instead?
https://github.com/NixOS/nixpkgs/blob/42a03e4728fc05cb9f123057670e41967f628360/pkgs/applications/networking/browsers/firefox/wrapper.nix#L124

I think you're right about this. I dug through the commit history for that wrapper.nix file and it doesn't look like there was any particular reason for using --suffix over --prefix. I also noticed that --prefix is used in most derivations in this repo, so it's probably a safe bet.
nixpkgs $ rg -- '--suffix LD_LIBRARY_PATH' | wc -l
19
nixpkgs $ rg -- '--prefix LD_LIBRARY_PATH' | wc -l
179

I'll make a PR if a contributor can give me a 👍🏻 on the approach. The firefox derivation scares me a little bit and I'm not sure what consequences that change might have.


Extend Parts to allow to attach scriptdata to it

diff -burNx .git a/src/Discord/Parts/Part.php b/src/Discord/Parts/Part.php
--- a/discord-php/src/Discord/Parts/Part.php       2020-10-03 14:13:52.000000000 +0200
+++ b/src/Discord/Parts/Part.php   2020-10-01 09:04:08.124265466 +0200
@@ -104,6 +104,13 @@
     protected $fillAfterSave = true;

     /**
+     * An array for script usage.
+     *
+     * @var array
+     */
+    public $scriptData = [];
+
+   /**
      * Create a new part instance.
      *
      * @param Factory $factory    The factory.

What does this do?

since everything else in the Part struct is tailored to be used by the api only, this public would allow for attaching data to be used for scripting purposes, if you remember eggdrop (irc bot), that one had setudef to add custom channel settings.
See it as a container for custom data someone might want to add to a channel/guild/member/whatever.
Using this myself and it is quite handy. Yes, ,everything has a __set/__get method, but using this on for example Channel etc causes it to complain about overloading.

I've added it but it will probably be best to use an array of some sorts to do this, as if you update a part in one place it won't nessacarily update in the repositories.


.send() encoding problem

i'm sending some text via .send(), the site uses charset ISO-8859-1.
I tried setting the charset with
const charset = require('superagent-charset')
charset(request)
.charset('ISO-8859-1')

Which has worked previously when reading the response. But when i'm sending, the text coming up on the site is encoded weirdly. å showing up as Ã¥ etc. Is there a specific method of setting the charset of .send()?
Thanks a lot

So, in general the Web platform supports only UTF-8 well, and the rest is legacy and broken.
I don't think it's possible to send a string via XHR and have it latin1-encoded.
It's definitely impossible to do that if you're sending files (using .field() and .attach()).
You could try:

change encoding of your entire page to ISO-8859-1 encoding
apply your own URL-encoding and use request.post().type('form').send('text=%e5')
tell the recipient that UTF-8 is 25 years old and it's time to upgrade

@pornel Havent managed to solve it yet :(
I'm sending a payload like this
const payload = `------WebKitFormBoundaryBkSiVoOiTVrsXXjp
Content-Disposition: form-data; name="something"

Hey!
------WebKitFormBoundaryBkSiVoOiTVrsXXjp
Content-Disposition: form-data; name="something else"

How you doin? ÅÄÖ
------WebKitFormBoundaryBkSiVoOiTVrsXXjp--`

user
    .post('http://url')
    .send(payload)

Any new ideas or tips would be greatly appreciated

I think .send() will always use UTF-8, or at least the same encoding as the page. I forgot how '90s encodings work...


Reactivity of handle returned by subscribe not documented

In the controller function/constructor I write:
$reactive(this).attach($scope);
this.handle = this.subscribe('myPub');
setTimeout(() => {
    this.handle.stop();
}, 1000);
this.autorun(() => {
    console.log(handle.ready());
});

In the console I get:
false //publication not ready yet
true  //publication ready, function in autorun runs again
false //timeout runs after 1000ms, publication stopped, autorun runs again

I am a bit suprised this works. Am I not supposed to use
this.getReactively('handle')

I could not find any documentation saying that the handle returned from subscribe behaves reactively (??)

It is infact mentioned in the meteor guide: http://docs.meteor.com/api/pubsub.html#Meteor-subscribe
ready()
True if the server has marked the subscription as ready. A reactive data source.
And in the Angular-meteor it is mentioned that the return parameters are exactly as Meteor.subscribe. I guess it does not make sense to copy all of Meteor docs into angular-meteor site.

Ok, thank you very much I was looking in the wrong place then. I agree that it makes no sense to copy the Meteor docs.


reactor-benchmark failed to build

Can not find method createCounterLabelsBuffer in AeronStatPrinter.java

Looking into it.

Fixed via
https://github.com/reactor/reactor-io/commit/725fd7e1ba84f894c67113001f37b1dcb718e1ac
https://github.com/reactor/reactor-benchmark/commit/772943900683283bef1873b424584d68f3c0962f


Package Name:  @azure/service-bus
Package Version:  7.5.1
nodejs

version: 16

Describe the bug
Sudden DetachForcedError happen across multiple servers (10 pods deployed on Kubernetes) listening on the same subscription. They then stop listening to the topics unless we restart the servers.
I have the extract of logs for one server with some DEBUG here :
DetachForcedError: The link 'G9:13642683:prd.gps-train.gps-tracker.messages/Subscriptions/processing-0f774707-92ad-a643-95b8-6e15eb539d7f' is force detached. Code: consumer(link35055). Details: InnerMessageReceiver was closed. TrackingId:638ebc4e000206d9000088ef62fbac03_G9_B32, SystemTracker:pzsbeotpr01:Topic:prd.gps-train.gps-tracker.messages|processing, Timestamp:2022-08-16T15:53:02
Exiting application...
2022-08-16T15:53:02.728Z rhea:io [connection-1] read 433 bytes
2022-08-16T15:53:02.728Z rhea:io [connection-1] got frame of size 433
2022-08-16T15:53:02.728Z rhea:frames [connection-1]:1 <- detach#16 {"closed":true,"error":{"condition":"amqp:link:detach-forced","description":"The link 'G9:13642683:prd.gps-train.gps-tracker.messages/Subscriptions/processing-0f774707-92ad-a643-95b8-6e15eb539d7f' is force detached. Code: consumer(link35055). Details: InnerMessageReceiver was closed. TrackingId:638ebc4e000206d9000088ef62fbac03_G9_B32, SystemTracker:pzsbeotpr01:Topic:prd.gps-train.gps-tracker.messages|processing, Timestamp:2022-08-16T15:53:02"}}
2022-08-16T15:53:02.734Z rhea:events [connection-1] Link got event: receiver_error
2022-08-16T15:53:02.743Z rhea-promise:receiver [connection-1] receiver 'prd.gps-train.gps-tracker.messages/Subscriptions/processing-0f774707-92ad-a643-95b8-6e15eb539d7f' got event: 'receiver_error'. Re-emitting the translated context.
2022-08-16T15:53:02.743Z rhea-promise:translate [connection-1] Translating the context for event: 'receiver_error'.
azure:service-bus:receiver:warning [connection-1|streaming:prd.gps-train.gps-tracker.messages/Subscriptions/processing-0f774707-92ad-a643-95b8-6e15eb539d7f] 'receiver_error' event occurred. The associated error is : ServiceBusError: DetachForcedError: The link 'G9:13642683:prd.gps-train.gps-tracker.messages/Subscriptions/processing-0f774707-92ad-a643-95b8-6e15eb539d7f' is force detached. Code: consumer(link35055). Details: InnerMessageReceiver was closed. TrackingId:638ebc4e000206d9000088ef62fbac03_G9_B32, SystemTracker:pzsbeotpr01:Topic:prd.gps-train.gps-tracker.messages|processing, Timestamp:2022-08-16T15:53:02
at translateServiceBusError (/node_modules/@groupeiot-itnovem/esncf-iot-servicebus/node_modules/@azure/service-bus/dist/index.js:4575:16)
at Receiver.StreamingReceiver._onAmqpError (/node_modules/@groupeiot-itnovem/esncf-iot-servicebus/node_modules/@azure/service-bus/dist/index.js:7082:33)
at Receiver.emit (node:events:527:28)
at emit (/node_modules/rhea-promise/dist/lib/util/utils.js:131:24)
at Object.emitEvent (/node_modules/rhea-promise/dist/lib/util/utils.js:142:9)
at Receiver.<anonymous> (/node_modules/rhea-promise/dist/lib/link.js:284:25)
at Receiver.emit (node:events:527:28)
at Receiver.link.dispatch (/node_modules/rhea/lib/link.js:59:37)
at Receiver.<anonymous> (/node_modules/dd-trace/packages/datadog-plugin-rhea/src/index.js:91:23)
at Receiver.link.on_detach (/node_modules/rhea/lib/link.js:162:32) {
retryable: true,
info: null,
code: 'GeneralError'
}
azure:service-bus:receiver:verbose ServiceBusError: DetachForcedError: The link 'G9:13642683:prd.gps-train.gps-tracker.messages/Subscriptions/processing-0f774707-92ad-a643-95b8-6e15eb539d7f' is force detached. Code: consumer(link35055). Details: InnerMessageReceiver was closed. TrackingId:638ebc4e000206d9000088ef62fbac03_G9_B32, SystemTracker:pzsbeotpr01:Topic:prd.gps-train.gps-tracker.messages|processing, Timestamp:2022-08-16T15:53:02
at translateServiceBusError (/node_modules/@groupeiot-itnovem/esncf-iot-servicebus/node_modules/@azure/service-bus/dist/index.js:4575:16)
at Receiver.StreamingReceiver._onAmqpError (/node_modules/@groupeiot-itnovem/esncf-iot-servicebus/node_modules/@azure/service-bus/dist/index.js:7082:33)
at Receiver.emit (node:events:527:28)
at emit (/node_modules/rhea-promise/dist/lib/util/utils.js:131:24)
at Object.emitEvent (/node_modules/rhea-promise/dist/lib/util/utils.js:142:9)
at Receiver.<anonymous> (/node_modules/rhea-promise/dist/lib/link.js:284:25)
at Receiver.emit (node:events:527:28)
at Receiver.link.dispatch (/node_modules/rhea/lib/link.js:59:37)
at Receiver.<anonymous> (/node_modules/dd-trace/packages/datadog-plugin-rhea/src/index.js:91:23)
at Receiver.link.on_detach (/node_modules/rhea/lib/link.js:162:32)

I am not sure is this is link to the sdk or not, I am a bit in the dark here, hence this issue. Any help would be greatly appreciated.
I think the package could at least have some kind of re-connection mechanism to avoid this issue stopping the messages consumption.

Coincidentally, I have been also debugging a DetachForcedError in our code using the same version of the SDK.  It comes when we have a message handler that takes a long time to complete and are using the auto-renew-lock feature.  We are setting the maxAutoLockRenewal duration to 25 minutes and the messageHandler taking 20 minutes.  The simple code looks like:
export function createListener(): void {
	const options = {
		webSocketOptions: {
			webSocket: WebSocket,
			webSocketConstructorOptions: {}
		}
	};

	sbClient = new ServiceBusClient(
		serviceBus.connectionString,
		options
	);

	receiver = sbClient.createReceiver(serviceBus.topic, serviceBus.subscription, {
		maxAutoLockRenewalDurationInMs: 25 * 60 * 1000
	});

	receiver.subscribe({
		processMessage: messageHandler,
		processError: errorHandler
	});
}

The messageHandler is just:
import {ServiceBusReceivedMessage, delay} from '@azure/service-bus';

export async function messageHandler(messageReceived: ServiceBusReceivedMessage): Promise<void> {
	await delay(20 * 60 * 1000);
}

We are getting this error:
  rhea:frames [connection-1]:1 <- detach#16 {"closed":true,"error":{"condition":"amqp:link:detach-forced","description":"The link 'Mytopic/Subscriptions/MySubscription' is force detached. Code: aggregate-link287443449. Details: AmqpMessagePartitioningEntityMessageCache.IdleTimerExpired: Idle timeout in Seconds: 900."}}  +157ms

@HarshaNalluru any clue to what could be happening? Any chance of having an automatic re-connection?

@laudibert, I'm checking with the service team on the force detached error.
Can you provide us with the sample code to repro your issue, to help us investigate in terms of the reconnection?

@HarshaNalluru
I've jute made this in the receiver
export const receiveMessage = async ( 	sbClient: ServiceBusClient, 	queueName: string, 	handler: ( brokeredMessage: ServiceBusReceivedMessage ) => Promise<void>, 	maxConcurrentCalls: number = 1 ) => { 	try { 		let queueReceiver = sbClient.createReceiver( queueName); 		console.log("tracking the receiver link",queueReceiver.identifier,"queue name",queueName) 		const processMessage = async ( 			brokeredMessage: ServiceBusReceivedMessage 		) => { 			console.log( "receive a new message" ,queueName) 			await queueReceiver.completeMessage( brokeredMessage ); 			await handler( brokeredMessage ); 		}; 		const processError = async ( args: ProcessErrorArgs ) => { 			console.error( 				Error from error source ${ args.errorSource } occurred: , 				args.error 			); 		}; 		/* 						Open subscription to specific queue 						and make specific message handling, 						maxConcurrentCalls >> that mean the current count of messages handled 						in each call is 1. 						autoCompleteMessages:false >> thats gonna give the handler space to copleate message by message . 				*/ 		queueReceiver.subscribe( 			{ processMessage, processError }, 			{ autoCompleteMessages: false, maxConcurrentCalls: maxConcurrentCalls } 		); 	} catch ( err ) { 		throw err; 	} };

I'm also seeing this error, roughly every 10 minutes, as follows:
{
  error: ServiceBusError: DetachForcedError: The link 'G71:4832269:xxxxxxx is force detached. Code: consumer(xxxxxx). Details: AmqpMessageConsumer.IdleTimerExpired: Idle timeout: 00:10:00. TrackingId:xxxxxxx, SystemTracker:plantduino:Queue:xxxxxxx, Timestamp:2022-10-31T23:43:26
      at translateServiceBusError (/app/node_modules/@azure/service-bus/dist/index.js:4366:16)
      at Receiver.StreamingReceiver._onAmqpError (/app/node_modules/@azure/service-bus/dist/index.js:6937:33)
      at Receiver.emit (node:events:513:28)
      at emit (/app/node_modules/rhea-promise/dist/lib/util/utils.js:131:24)
      at Object.emitEvent (/app/node_modules/rhea-promise/dist/lib/util/utils.js:142:9)
      at Receiver.<anonymous> (/app/node_modules/rhea-promise/dist/lib/link.js:284:25)
      at Receiver.emit (node:events:513:28)
      at Receiver.link.dispatch (/app/node_modules/rhea/lib/link.js:59:37)
      at Receiver.link.on_detach (/app/node_modules/rhea/lib/link.js:162:32)
      at Session.on_detach (/app/node_modules/rhea/lib/session.js:740:27) {
    retryable: true,
    info: null,
    code: 'GeneralError'
  },
  errorSource: 'receive',
  entityPath: 'xxxxxx',
  fullyQualifiedNamespace: 'xxxxxx.servicebus.windows.net',
  identifier: 'xxxxxxx-d286a08a-164e-a047-983f-5f986948311c'
}

Sample code that causes this - note that I handle the error by re-establishing a new connection, which seems to work:
this.client = new ServiceBusClient(options.connectionString);
this.receiver = this.client.createReceiver(this.options.queueName);

this.closeReceiver = this.receiver.subscribe({
  processMessage: processMessage,
  processError: processError
});

const processMessage = async (message: ServiceBusReceivedMessage) => {
// do something with message
}

const processError = async (args: ProcessErrorArgs) => {
    console.error(`Error occurred`, args);

    if (args.error instanceof ServiceBusError) {
      console.log('Re-establishing connection to service bus');
      await this.closeReceiver.close();

      this.receiver = this.client.createReceiver(this.options.queueName);

      this.closeReceiver = this.receiver.subscribe({
        processMessage: processMessage,
        processError: processError
      });
   }
}

@photomoose Thanks for sharing your code! According to the doc, this error is expected when there's no send/receive are made for 10 minutes. Do you know whether that's the your case (i.e., no activity for 10 minutes).

@jeremymeng yes, it looks like it is caused by no activity as you describe. Presumably this is safe to ignore? (i.e. I don't have to re-create the receiver instance, I can simply call receiver.subscribe() again when I want to receive further messages?)

Presumably this is safe to ignore? (i.e. I don't have to re-create the receiver instance, I can simply call receiver.subscribe() again when I want to receive further messages?)

Sorry for the missing rely to this.  Yes, the JS client should be able to recover from this error.  Please let us know if that is not the case.


Free algorithms not displayed in c2d

free algorithm are not displayed in edit compute section
free algorithms are not available in algorithm selection list for datasets with allow all algorithms true

The main flow starts from the assets. So, let's remove the component that displays the list of assets for an algorithm

@bogdanfazakas please check the attached PR as well. In the meantime, Luca decided to look over


Identity protection. Zoom service account FP detection

Hello!
We have a lot of FP Risky sign-ins and Risky users detections related to Zoom service account. It performs sign-ins from different IP/locations. Is it possible to add/verify additional parameters such as user agent or something else to reduce the FP rate?
[Enter feedback here]

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

ID: b9652e4f-49ee-9aec-291e-52f74962767d
Version Independent ID: 505f2728-2c65-57f0-d644-c627b51de8ad
Content: Provide risk feedback in Azure Active Directory Identity Protection
Content Source: articles/active-directory/identity-protection/howto-identity-protection-risk-feedback.md
Service: active-directory
Sub-service: identity-protection
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@sgolota Thank you for your feedback . We will investigate and update the thread.

@sgolota Thanks for reaching out.  These are all the parameters we show if we have the data, you can use anyone to calculate your FP, it also have a Device browser option which should be related to user agent string :

You can go to Risky Sign in reports and select the 3 dots on top right to get to the columns.
Let us know if you have any questions.
One important thing about user agent string is -- they can be changed by end users, many browsers allow you to change the user agent yourself.

we are not able to implement any changes in the calculation process, only mark sign-ins as safe. Can it be adjusted from the Microsoft side?

@sgolota @can you send a screenshot ?

@vipulsparsh

@sgolota If it does not have a  column selection page here, then this is by design.  Feel free to raise a feedback on our feedback page :  https://feedback.azure.com/forums/169401-azure-active-directory


should be [], right?

copied and pasted, saw some bad code.. should be transitions: [] instead of transitions:{}, right?

https://github.com/taoqf/javascript-state-machine

this appears sufficiently dead over a year later...

Should be
transtions: []


Roll engine 4959b71d6a1b..6a132f80f448 (6 commits)

https://github.com/flutter/engine/compare/4959b71d6a1b...6a132f80f448
git log 4959b71d6a1b..6a132f80f448 --no-merges --oneline
6a132f80f Fix Windows Engine Bot (flutter/engine#6844)
e6d6f18eb - Roll engine to version f9ebf2129732fd2b606286fdf58e500384b8a0bc (flutter/engine#6839)
889f41f0d Roll src/third_party/skia 9e3109c99ea5..60b6bc3c2950 (1 commits) (flutter/engine#6843)
a68e21430 Roll src/third_party/skia 1e1ba0e0176f..9e3109c99ea5 (1 commits) (flutter/engine#6840)
1174193ce Roll src/third_party/skia f04fb3cacbad..1e1ba0e0176f (2 commits) (flutter/engine#6838)
09ef73ff6 Fix code smells reported by chrome's clang plugin (flutter/engine#6833)
The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff, who should
be CC'd on the roll, and stop the roller if necessary.

@liyuqian : New roll has been created by https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Auto-roller completed checks. About to merge.


iOS: Show a message explaining that user needs to enable camera access to Chrome in their settings, when they have already selected No

Right now the page shows a blank screen

Please enable access to your camera for the mobile browser that you are using to open the Base æpp Wallet.


Question: How the plugin handles pushes when app is terminated?

FirebaseMessaging needs top level handler, which may run in separate isolate.
Code sniped from official Firebase docs:
https://firebase.google.com/docs/cloud-messaging/flutter/receive
@pragma('vm:entry-point')
Future<void> _firebaseMessagingBackgroundHandler(RemoteMessage message) async {
  // If you're going to use other Firebase services in the background, such as Firestore,
  // make sure you call `initializeApp` before using other Firebase services.
  await Firebase.initializeApp();

  print("Handling a background message: ${message.messageId}");
}

void main() {
  FirebaseMessaging.onBackgroundMessage(_firebaseMessagingBackgroundHandler);
  runApp(MyApp());
}

So, how can I handle push using the plugin when app is terminated?
Thank you!

UPD: Just starting to receive pushes for terminated Android app with delay of about 60 seconds or something.
So, I think the opened issue: #36 is still relevant.


Only 1000 images downloaded out of 57000-ish

Hey, I wrote the command isic image download --search 'benign_malignant:"benign"' images/ to download all the benign images, which in the isic-archive shows 57319 images. But, after running the command, it only downloaded 1000 images. Could you help me in getting all the images. Thank you.

By default the CLI only downloads 1,000 images. You can add --limit 0 to disable the limit and download everything.


what cut-off to use for "almost complete" pathways?

Hey!
I want to ask that based on the heatmap output, what is the best cut-off to use for "almost complete pathway" analysis in metagenomes?
If I have pathways with completeness greater than 0.6, would that be a good estimate of "almost complete" pathways?
Would you recommend only using "complete" pathways i.e. completeness =1 for downstream analysis?

This is very much dependent on the pathway in question (and how complete the genome being queried is). There are a number of pathways, such as the TCA cycle, where a low completeness score (~0.4) could be acceptable. Other pathways, such as 3-hydroxypropionate 4-hydroxybutyrate cycle, which has components that are common in other metabolisms, would benefit from a more strict cut-off (>=0.5).


delete unncessary args; loading model

test models please

test models please

test models please

test models please

test models please

test models please


[v2.5] KDM Update for K8s December patch release

KDM Updates
TO BE RELEASED: Rancher v2.5.12

New Kubernetes Version
Min Rancher Version
Min RKE Version

1.20.14-rancher1-1
2.5.11-rc0
1.2.14-rc0

Rancher System Images & Add-ons
Note: Please update system images and add-ons in the template as needed.
TBD
Developer Changelog

Add templates for new K8s versions. If a template that hasn't been released yet already exists, update it in place.
Update the default K8s version, and add or update the version information (MinRancherVersion and MinRKEVersion) in k8s_version_info.go for new K8s versions if needed (Use table from above).
Confirm versions for system images, add-on templates are correct using versioning reference table from below (expand details to view the table). Update the table if new versions are introduced.
Confirm add-on template version constraints in template.go are correct using versioning reference table from below (expand details to view the table). Update the table if needed.

Versioning Reference

Expand for system images & add-on templates versioning table

Note: Truncated repository names with a * indicates there are multiple images with that prefix. All repository names that match a truncated prefix should be checked for the same version stated in the table.
For example: rancher/weave-* matches weaveworks/weave-kube and weaveworks/weave-npc, and they should both have the same version.
v1.20.14-rancher1-1

Repository
Tag

rancher/mirrored-coreos-etcd
v3.4.15-rancher1

rancher/hyperkube
v1.20.14-rancher1

rancher/rke-tools
v0.1.78

rancher/mirrored-k8s-dns-*
1.15.10

rancher/mirrored-cluster-proportional-autoscaler
1.8.1

rancher/mirrored-coreos-flannel
v0.15.1

rancher/flannel-cni
v0.3.0-rancher6

rancher/mirrored-calico-*
v3.17.2

rancher/mirrored-calico-pod2daemon-flexvol
v3.17.2

weaveworks/weave-kube
2.8.1

weaveworks/weave-npc
2.8.1

noiro/* (All ACI images)
<IP_ADDRESS>.1ae238a

rancher/mirrored-pause
3.2

rancher/nginx-ingress-controller
nginx-0.49.3-rancher1

rancher/mirrored-nginx-ingress-controller-defaultbackend
1.5-rancher1

rancher/mirrored-jettech-kube-webhook-certgen
v1.5.1

rancher/mirrored-metrics-server
v0.4.1

rancher/mirrored-coredns-coredns
1.8.0

rancher/mirrored-cluster-proportional-autoscaler
1.8.1

rancher/kubelet-pause
v0.1.6

rancher/mirrored-k8s-dns-node-cache
1.15.13

Add-on Name
Add-on Template Version Constraint

Calico
calicov3171

Canal
canalv3171

Flannel
flannelv115

CoreDNS
coreDnsv117

KubeDNS
kubeDnsv116

MetricsServer
metricsServerv120

Weave
weavev120

Aci
aciv500

NginxIngress
nginxIngressv0493

Nodelocal
nodelocalv115

Fresh install checks and upgrade checks looks good.
Provisioning Checks on Fresh Install of Rancher 2.5.11 - PASS

KDM points to dev-v2.5 branch.
Cluster creation succeeds for all new k8s versions with all network providers
Network checks succeeded for all new clusters
Ran validation tests for Canal cluster.
Network checks and Canal checks pass.

Provisioning Checks after Upgrading to new KDM - PASS

On latest released v2.5.11, KDM points to release-v2.5
Cluster creation succeeds for v1.20.13 k8s versions with all network providers.
Ran pre-upgrade checks
Point KDM to dev-2.5 branch.
Upgrade k8s to the latest patches
Run post-upgrade checks
Pre-Upgrade and Post-Upgrade checks pass.

Verified on v2.5.11:
Fresh install checks - 2.5.11 - pointing to dev-v2.5

Deployed clusters with k8s version v1.20.14-rancher1-1 on all network providers - weave/flannel/calico/canal
Validations of Network checks on all clusters looks good
Validation tests on Canal clusters looks good

Upgrade checks - v2.5.11 pointing to release-v2.5

Deployed cluster with k8s v1.20.13-rancher1-2 version on all network providers weave/flannel/calico/canal with KDM job pointing to release-v2.5
Pre-upgrade checks looks good
Changed rke-metadata to point to dev-v2.5
Upgraded K8s versions to new versions - v1.20.14-rancher1-1
Post upgrade checks looks good.

RKE checks using 1.2.16-rc1 passed for v1.20.14-rancher1-1 k8s version.
Verified that on dev-v2.5 RKE default k8s version is pointing to 1.20.14-rancher1-1.
"RKEDefaultK8sVersions": {
"0.3": "v1.16.3-rancher1-1",
"default": "v1.20.14-rancher1-1"


DOI manuscript retrieval service returns not useful entries

What?
The /doi/manuscript endpint sometimes returns entries with empty values that can't be used.
For example:
curl -u backend:backend  -H "X-XSRF-TOKEN:moo" -H "Cookie:XSRF-TOKEN=moo" localhost:8080/doi/manuscript?doi=10.3352/jeehp.2013.10.3

{
  "manuscripts": [
    {
      "url": null,
      "repositoryLabel": null,
      "type": "application/pdf",
      "source": "Unpaywall",
      "name": null,
      "isBest": true
    },
    {
      "url": null,
      "repositoryLabel": "PubMed Central - Europe PMC",
      "type": "application/pdf",
      "source": "Unpaywall",
      "name": null,
      "isBest": false
    },
    {
      "url": null,
      "repositoryLabel": null,
      "type": "application/pdf",
      "source": "Unpaywall",
      "name": null,
      "isBest": false
    },
    {
      "url": "http://pdfs.semanticscholar.org/f594/5cc11565b2389ab95ff9f97baf3a87967d00.pdf",
      "repositoryLabel": null,
      "type": "application/pdf",
      "source": "Unpaywall",
      "name": "5cc11565b2389ab95ff9f97baf3a87967d00.pdf",
      "isBest": false
    }
  ]
}

Note all these entries with null values that cannot be used.

Why?
The service should only return entries which could be used.
How?
Acceptance Criteria
Related Issues

@markpatton is this a user-facing issue? (i.e., should we prioritize or can it wait?)

Also noticing that params are added to the filename of the manuscript, which they should not be. Also fixing up the filename processing.

See https://github.com/eclipse-pass/pass-core/pull/94


remove spurious execute permission from ansible group_var files

release pre-flight check...clear out some spurious execute mode bits on files.

Codecov Report

Merging #4629 into master will decrease coverage by 7%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4629      +/-   ##
==========================================
- Coverage   84.44%   77.43%   -7.01%
==========================================
  Files         183      183
  Lines        8305     8305
  Branches      574      574
==========================================
- Hits         7013     6431     -582
- Misses       1292     1874     +582

Impacted Files
Coverage Δ

...core/database/cosmosdb/RxObservableImplicits.scala
0% <0%> (-100%)
:arrow_down:

...ore/database/cosmosdb/cache/CacheInvalidator.scala
0% <0%> (-100%)
:arrow_down:

...core/database/cosmosdb/CosmosDBArtifactStore.scala
0% <0%> (-95.89%)
:arrow_down:

...tabase/cosmosdb/cache/CacheInvalidatorConfig.scala
0% <0%> (-94.74%)
:arrow_down:

...sk/core/database/cosmosdb/CosmosDBViewMapper.scala
0% <0%> (-92.6%)
:arrow_down:

...e/database/cosmosdb/cache/ChangeFeedListener.scala
0% <0%> (-86.67%)
:arrow_down:

...e/database/cosmosdb/cache/KafkaEventProducer.scala
0% <0%> (-76.48%)
:arrow_down:

...whisk/core/database/cosmosdb/CosmosDBSupport.scala
0% <0%> (-74.08%)
:arrow_down:

...a/org/apache/openwhisk/common/ExecutorCloser.scala
0% <0%> (-66.67%)
:arrow_down:

...abase/cosmosdb/CosmosDBArtifactStoreProvider.scala
4% <0%> (-52%)
:arrow_down:

... and 30 more

Continue to review full report at Codecov.

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

Thanks @sven-lange-last ; please merge at your convenience.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 77.43%. Comparing base (2036548) to head (4198c84).
Report is 502 commits behind head on master.

:exclamation:  There is a different number of reports uploaded between BASE (2036548) and HEAD (4198c84). Click for more details.
HEAD has 1 upload less than BASE

Flag
BASE (2036548)
HEAD (4198c84)

3
2

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4629      +/-   ##
==========================================
- Coverage   84.44%   77.43%   -7.01%
==========================================
  Files         183      183
  Lines        8305     8305
  Branches      574      574
==========================================
- Hits         7013     6431     -582
- Misses       1292     1874     +582

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Can this Lib control IRB6700 abb robot?

You can use this library with all ABB robots that runs on the IRC5 controller with a RobotWare 6 system.

In other words: the entire library is manipulator agnostic.

As this is not an actual issue with the library here, I'm going to close it.
Feel free to keep commenting on it of course.


What is the difference between prettyUrlPatterns and prettyPatterns?

Hi,
I see both prettyUrlPatterns and prettyPatterns.
Also, there are getPrettyUrlPatterns and getPrettyPatterns.
But they seem similar. What is the difference between this two?

Hi @SilentImp, from what I can see prettyUrlPatterns should be deprecated in favor of prettyPatterns: https://github.com/BDav24/next-url-prettifier/commit/104b394496af680e74ee71c8fe535d5fa30fa958


RFC: What regions would you like to see us add to Uploadthing?

I understand that this issue may be closed if it should be filed in another category

[X] I understand

My issue
Please leave a comment below with the regions you would like to see. If someone else has already suggested that region, please react with a 👍 rather than making a new comment.
Thanks!

ap-southeast-1 Singapore

us-east-1 N. Virginia

A little little bit of an offtopic, but it would be awesome to be able to be able select between default US / EU region on the free tier! Of course I know its available on paid plan - but at least just one region available in EU on the free tier would be so awesome.


Support for class fields

This issue has been reported before with typescript (https://github.com/Polymer/lit-element/issues/855 and https://github.com/Polymer/lit-element/issues/878)
With class fields coming to Safari 14, we will start to see more developers using it outside of typescript.
The class field specification changed from using assignment to using defineProperty. This is a problem when using LitElement properties without decorators.
This is a small example: https://jsbin.com/zesedefeqe/1/edit?html,output
Is there any way we can support standard class fields in JS without decorators? Otherwise this will become a common source for confusion for developers.

Unfortunately, it does not appear there's anything good we can do to make this better. The spec went in a direction where this feature is really kind of incomplete until decorators are fully supported. Hopefully, that will happen soon.
To use class fields, you'll need to use our @property decorator. Otherwise, when using static properties to define properties, properties must be initialized in the constructor and now with a class field.
I think the example you linked was incomplete. Here's an updated one: https://jsbin.com/tulowur/edit?html,output.
It is possible to make this work right now via a workaround. We have support for handling properties set early when an element definition is not yet defined; however, this tracking is done in the constructor, before class fields are defined. It's possible to manually call _saveInstanceProperties, say, in connectedCallback to make this work for class fields. We don't want to implement this generally because it's highly likely to introduce a significant performance penalty. The idea is that when you lazy load your definition, the performance penalty of modifying the class is offset by the benefit of loading the definition lazily.
https://jsbin.com/cojivaf/2/edit?html,output
connectedCallback() {
  this._saveInstanceProperties();
  super.connectedCallback();
}

@arthurevans Please update the docs to explicitly state the class fields should not be used in Javascript, explaining the reason and how to initialize properties in the constructor. Thanks!

So when decorators one day get agreed upon (its taking its time), this will solved, right? assuming we rewrite all our decorators.
e.g.
export decorator @customElement(name) {
  @register(cls => customElements.define(name, cls))
}
export decorator @property(opts) {
  @initialize((instance, name, value) => {
    instance[`__${name}`] = value;
  })
  @register((target, name) => {
    Object.defineProperty(target, target.getPropertyDescriptor(name, `__${name}`, opts));
  })
}

but given how many implementations of different decorator proposals are in the wild already, do we even have any idea how long this might take? it sounds like its not any time soon, as always with decorators, so we will just have to recommend against class fields for potentially months?
thats ok if its the case i just want to understand the plan


pythonPackages.asyncpg: 0.20.1 -> 0.21.0

Motivation for this change
Fixes https://nvd.nist.gov/vuln/detail/CVE-2020-17446
Some reverse dependencies on darwin are already broken due to other issues.
Things done

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

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

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

@GrahamcOfBorg eval
@GrahamcOfBorg build python37Packages.asyncpg python38Packages.asyncpg python37Packages.starlette python37Packages.orm python37Packages.databases

Result of nixpkgs-review pr 95499 1

11 packages built:
- python37Packages.asyncpg
- python37Packages.databases
- python37Packages.fastapi
- python37Packages.orm
- python37Packages.starlette
- python38Packages.asyncpg
- python38Packages.databases
- python38Packages.fastapi
- python38Packages.orm
- python38Packages.starlette
- sourcehut.listssrht

:+1: I should be able to identify the patches for stable.


How to prefilter search, when passing paramenter from URL

Hi guys,
I have a URL that is passing some parameters (strings), that I want the search page to have filtered when you land on the page :
v-careers-search-page.html?careerssearch=xxx&Job_family_group=xxx&Organisation_name=xxx&Primary_location_country=GB
so for example when I land on the search page, I would like the 'Primary_location_country' checkbox to prefilter all GB countries, but also be able to filter any other options given from GB
hope this makes sense..
cheers,
A

Hi, this is more js question. Such a lib https://medialize.github.io/URI.js/ may help you with parsing url parameters (if you are doing it on the frontend side)

I have this :
        computed: {
            searchResult: function () {
                var result = itemsjs.search({
                    query: this.query,
                    //filters: this.filters

                     filter: function(i) {
                         return i.Primary_Location_Country == 'GB';
                     }

                     prefilter: function(items) {
                         return items.filter(item => {
                             return item.Primary_Location_Country == "US";
                         })
                     }
                })
                return result
            }
        }

this works, but when I start click the other aggregated checkboxs they don't seem to re-filter.

I am closing because this is more Vue.js related question


[ISSUE #2370]【Code Clean】Clean warning codes in [shenyu-plugin-monitor] module

Volunteer help
Clean warning codes  [shenyu-plugin-monitor]

please assign to me


feat(aws-codepipeline): make input Artifacts explicit when creating Actions

BREAKING CHANGE: previously, the CodePipeline Construct would attempt
to wire the inputs of Actions implicitly, if they were not provided.
Now, this functionality has been removed, and we require specifying the
inputs for Build, Test and Deploy Actions explicitly.
Part of the agreed upon changes to the CodePipeline Construct library.

Pull Request Checklist
Please check all boxes, including N/A items:
Testing

[x] Unit test and/or integration test added
[x] Toolkit change?: integration tests manually executed (paste output to the PR description)
[x] Init template change?: coordinated update of integration tests (currently maintained in a private repo).

Documentation

[x] README: README and/or documentation topic updated
[x] jsdocs: All public APIs documented

Title and description

[x] Change type: Title is prefixed with change type:

fix(module): <title> bug fix (patch)
feat(module): <title> feature/capability (minor)
chore(module): <title>  won't appear in changelog
build(module): <title> won't appear in changelog

[x] Title format: Title uses lower case and doesn't end with a period
[x] Breaking change?: Last paragraph of description is: BREAKING CHANGE: <describe exactly what changed and how to achieve similar behavior + link to documentation/gist/issue if more details are required>
[x] References: Indicate issues fixed via: Fixes #xxx or Closes #xxx

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.

Looking at this, I am having second thoughts about this change. What value do we add by complicating the API and making it more verbose. We have a design tenet to only require configuration when we can’t deduce it automatic (“smart defaults”) and when I am looking at this change I think it violates this tenet by asking users to add a lot of configuration that can easily be safely reduced from their intent.

Missed a test in the app-delivery package.

@skinny85 Is this superseded by #1590?

@skinny85 Is this superseded by #1590?

Yep. Check out the comment right above yours :).

LOL. Let's close it?


Simplify polygons associated with predictions with the Ramer-Douglas-Peucker algorithm

You're right @cleherny. I cleaned the helpers/misc.py file and pushed a new commit.