Guide "How to use Bootstrap 4 and Sass (and jQuery)" is deprecated

This guide is deprecated https://github.com/AngularClass/angular2-webpack-starter/wiki/How-to-use-Bootstrap-4-and-Sass-(and-jQuery)

@Andrey-Pavlov I´m currentry struggling to do this right... Can you please share some guidance?

And I dont need any jquery dependancy

Sure, but without jquery not all bootstrap features will be available.

npm i --save-dev<EMAIL_ADDRESS>bootstrap-loader tether jquery (but it's optional)

webpack.common.js

after new LoaderOptionsPlugin({}) add:
 new webpack.ProvidePlugin({
        $: "jquery",
        jQuery: "jquery",
        "window.jQuery": "jquery",
        Tether: "tether",
        "window.Tether": "tether",
        Tooltip: "exports?Tooltip!bootstrap/js/dist/tooltip",
        Alert: "exports?Alert!bootstrap/js/dist/alert",
        Button: "exports?Button!bootstrap/js/dist/button",
        Carousel: "exports?Carousel!bootstrap/js/dist/carousel",
        Collapse: "exports?Collapse!bootstrap/js/dist/collapse",
        Dropdown: "exports?Dropdown!bootstrap/js/dist/dropdown",
        Modal: "exports?Modal!bootstrap/js/dist/modal",
        Popover: "exports?Popover!bootstrap/js/dist/popover",
        Scrollspy: "exports?Scrollspy!bootstrap/js/dist/scrollspy",
        Tab: "exports?Tab!bootstrap/js/dist/tab",
        Util: "exports?Util!bootstrap/js/dist/util"
      })

Add loaders for sass under (npm i --save-dev sass-loader) and all UNMEET DEPENDENCIES

        {
          test: /\.css$/,
          loaders: ['to-string-loader', 'css-loader']
        },

        {
          test: /\.scss$/,
          loaders: ['to-string-loader', 'css-loader', 'sass-loader']
        },

vendor.ts

import 'bootstrap-loader';
import 'jquery';

Frequently errors:

resolve-url-loader, 'path' of undefined
Path must be a string. Received undefined

You need to add follow rows to LoaderOptionPlugin
context: helpers.root(),
output: { path: helpers.root('dist') },
/**
     * Plugin LoaderOptionsPlugin (experimental)
     *
     * See: https://gist.github.com/sokra/27b24881210b56bbaff7
     */
    new LoaderOptionsPlugin({
      debug: true,
      options: {
         context: helpers.root(),
        output: {
            path: helpers.root('dist')
        },
        /**
         * Static analysis linter for TypeScript advanced options configuration
         * Description: An extensible linter for the TypeScript language.
         *
         * See: https://github.com/wbuchwalter/tslint-loader
         */
        tslint: {
          emitErrors: false,
          failOnHint: false,
          resourcePath: 'src'
        }
      }
    })
  ],

Spend 6 hours to resolve that 2 issues. :(

@Andrey-Pavlov thank you so much for doing the leg-work on this.
Updating webpack.common.js's LoaderOptionsPlugin was ineffective for me, I also had to update webpack.dev.js.

Well done @Andrey-Pavlov 👍

I've managed to get rid of the issue by following @Andrey-Pavlov steps, but when using the npm run server:dev command I get: (sorry for the long dump)
ERROR in ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js?{"bootstrapVersion":4,"useCustomIconFontPath":false,"extractStyles":false,"styleLoaders":["style","css","sass"],"styles":["mixins","normalize","print","glyphicons","scaffolding","type","code","grid","tables","forms","buttons","component-animations","dropdowns","button-groups","input-groups","navs","navbar","breadcrumbs","pagination","pager","labels","badges","jumbotron","thumbnails","alerts","progress-bars","media","list-group","panels","wells","responsive-embed","close","modals","tooltip","popovers","carousel","utilities","responsive-utilities"],"scripts":["transition","alert","button","carousel","collapse","dropdown","modal","tooltip","popover","scrollspy","tab","affix"],"configFilePath":"/home/horacio/Sites/angular2-webpack-starter/.bootstraprc","bootstrapPath":"/home/horacio/Sites/angular2-webpack-starter/~/bootstrap","bootstrapRelPath":"../bootstrap"}!./~/bootstrap-loader/no-op.js
Module not found: Error: Can't resolve '../bootstrap/js/dist/transition' in '/home/horacio/Sites/angular2-webpack-starter/node_modules/bootstrap-loader'
 @ ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js?{"bootstrapVersion":4,"useCustomIconFontPath":false,"extractStyles":false,"styleLoaders":["style","css","sass"],"styles":["mixins","normalize","print","glyphicons","scaffolding","type","code","grid","tables","forms","buttons","component-animations","dropdowns","button-groups","input-groups","navs","navbar","breadcrumbs","pagination","pager","labels","badges","jumbotron","thumbnails","alerts","progress-bars","media","list-group","panels","wells","responsive-embed","close","modals","tooltip","popovers","carousel","utilities","responsive-utilities"],"scripts":["transition","alert","button","carousel","collapse","dropdown","modal","tooltip","popover","scrollspy","tab","affix"],"configFilePath":"/home/horacio/Sites/angular2-webpack-starter/.bootstraprc","bootstrapPath":"/home/horacio/Sites/angular2-webpack-starter/~/bootstrap","bootstrapRelPath":"../bootstrap"}!./~/bootstrap-loader/no-op.js 1:0-43
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.browser.ts
 @ multi vendor

ERROR in ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js?{"bootstrapVersion":4,"useCustomIconFontPath":false,"extractStyles":false,"styleLoaders":["style","css","sass"],"styles":["mixins","normalize","print","glyphicons","scaffolding","type","code","grid","tables","forms","buttons","component-animations","dropdowns","button-groups","input-groups","navs","navbar","breadcrumbs","pagination","pager","labels","badges","jumbotron","thumbnails","alerts","progress-bars","media","list-group","panels","wells","responsive-embed","close","modals","tooltip","popovers","carousel","utilities","responsive-utilities"],"scripts":["transition","alert","button","carousel","collapse","dropdown","modal","tooltip","popover","scrollspy","tab","affix"],"configFilePath":"/home/horacio/Sites/angular2-webpack-starter/.bootstraprc","bootstrapPath":"/home/horacio/Sites/angular2-webpack-starter/~/bootstrap","bootstrapRelPath":"../bootstrap"}!./~/bootstrap-loader/no-op.js
Module not found: Error: Can't resolve '../bootstrap/js/dist/affix' in '/home/horacio/Sites/angular2-webpack-starter/node_modules/bootstrap-loader'
 @ ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js?{"bootstrapVersion":4,"useCustomIconFontPath":false,"extractStyles":false,"styleLoaders":["style","css","sass"],"styles":["mixins","normalize","print","glyphicons","scaffolding","type","code","grid","tables","forms","buttons","component-animations","dropdowns","button-groups","input-groups","navs","navbar","breadcrumbs","pagination","pager","labels","badges","jumbotron","thumbnails","alerts","progress-bars","media","list-group","panels","wells","responsive-embed","close","modals","tooltip","popovers","carousel","utilities","responsive-utilities"],"scripts":["transition","alert","button","carousel","collapse","dropdown","modal","tooltip","popover","scrollspy","tab","affix"],"configFilePath":"/home/horacio/Sites/angular2-webpack-starter/.bootstraprc","bootstrapPath":"/home/horacio/Sites/angular2-webpack-starter/~/bootstrap","bootstrapRelPath":"../bootstrap"}!./~/bootstrap-loader/no-op.js 12:0-38
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.browser.ts
 @ multi vendor

ERROR in ./~/css-loader!./~/to-string-loader/src/to-string.js!./~/css-loader!./src/app/app.component.css
Module build failed: Unknown word (2:9)

  1 |
> 2 |         var result = require("!!./../../node_modules/css-loader/index.js!./app.component.css");
    |         ^
  3 |
  4 |         if (typeof result === "string") {
  5 |             module.exports = result;

 @ ./src/app/app.component.css 2:21-190
 @ ./src/app/app.component.ts
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.browser.ts
 @ multi main

ERROR in ./~/css-loader!./~/to-string-loader/src/to-string.js!./~/css-loader!./src/app/home/home.component.css
Module build failed: Unknown word (2:9)

  1 |
> 2 |         var result = require("!!./../../../node_modules/css-loader/index.js!./home.component.css");
    |         ^
  3 |
  4 |         if (typeof result === "string") {
  5 |             module.exports = result;

 @ ./src/app/home/home.component.css 2:21-200
 @ ./src/app/home/home.component.ts
 @ ./src/app/home/index.ts
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.browser.ts
 @ multi main

ERROR in ./~/css-loader!./~/resolve-url-loader!./~/sass-loader?sourceMap!./~/bootstrap-loader/lib/bootstrap.styles.loader.js?{"bootstrapVersion":4,"useCustomIconFontPath":false,"extractStyles":false,"styleLoaders":["style","css","sass"],"styles":["mixins","normalize","print","glyphicons","scaffolding","type","code","grid","tables","forms","buttons","component-animations","dropdowns","button-groups","input-groups","navs","navbar","breadcrumbs","pagination","pager","labels","badges","jumbotron","thumbnails","alerts","progress-bars","media","list-group","panels","wells","responsive-embed","close","modals","tooltip","popovers","carousel","utilities","responsive-utilities"],"scripts":["transition","alert","button","carousel","collapse","dropdown","modal","tooltip","popover","scrollspy","tab","affix"],"configFilePath":"/home/horacio/Sites/angular2-webpack-starter/.bootstraprc","bootstrapPath":"/home/horacio/Sites/angular2-webpack-starter/~/bootstrap","bootstrapRelPath":"../bootstrap"}!./~/bootstrap-loader/no-op.js
Module build failed:
undefined
^
      File to import not found or unreadable: ../bootstrap/scss/_glyphicons
Parent style sheet: stdin
      in /home/horacio/Sites/angular2-webpack-starter/node_modules/bootstrap-loader/no-op.js (line 5, column 1)
 @ ./~/style-loader!./~/css-loader!./~/resolve-url-loader!./~/sass-loader?sourceMap!./~/bootstrap-loader/lib/bootstrap.styles.loader.js?{"bootstrapVersion":4,"useCustomIconFontPath":false,"extractStyles":false,"styleLoaders":["style","css","sass"],"styles":["mixins","normalize","print","glyphicons","scaffolding","type","code","grid","tables","forms","buttons","component-animations","dropdowns","button-groups","input-groups","navs","navbar","breadcrumbs","pagination","pager","labels","badges","jumbotron","thumbnails","alerts","progress-bars","media","list-group","panels","wells","responsive-embed","close","modals","tooltip","popovers","carousel","utilities","responsive-utilities"],"scripts":["transition","alert","button","carousel","collapse","dropdown","modal","tooltip","popover","scrollspy","tab","affix"],"configFilePath":"/home/horacio/Sites/angular2-webpack-starter/.bootstraprc","bootstrapPath":"/home/horacio/Sites/angular2-webpack-starter/~/bootstrap","bootstrapRelPath":"../bootstrap"}!./~/bootstrap-loader/no-op.js 4:14-1174
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.browser.ts
 @ multi vendor

Any clues? I'm so lost!

@byhoratiss did you manage to fix it? I believe the first error can be fixed by going for 4.0.0-beta.4 for bootstrap but I still get
Module build failed: Unknown word (2:9)

  1 |
> 2 |         var result = require("!!./../../node_modules/css-loader/index.js!./app.component.css");
    |         ^
  3 |
  4 |         if (typeof result === "string") {
  5 |             module.exports = result;

 @ ./src/app/app.component.css 2:21-190
 @ ./src/app/app.component.ts
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.browser.ts
 @ multi main

ERROR in ./~/css-loader!./~/to-string-loader/src/to-string.js!./~/css-loader!./src/app/home/home.component.css
Module build failed: Unknown word (2:9)

  1 |
> 2 |         var result = require("!!./../../../node_modules/css-loader/index.js!./home.component.css");
    |         ^
  3 |
  4 |         if (typeof result === "string") {
  5 |             module.exports = result;

 @ ./src/app/home/home.component.css 2:21-200
 @ ./src/app/home/home.component.ts
 @ ./src/app/home/index.ts
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.browser.ts
 @ multi main

ERROR in ./~/css-loader!./~/postcss-loader!./~/resolve-url/resolve-url.js!./~/sass-loader?sourceMap!./~/bootstrap-loader/lib/bootstrap.styles.loader.js!./~/bootstrap-loader/no-op.js
Module build failed: ReferenceError: document is not defined
    at Object.resolveUrl (/home/valentin/angular2-webpack-starter/node_modules/resolve-url/resolve-url.js:21:16)
 @ ./~/style-loader!./~/css-loader!./~/postcss-loader!./~/resolve-url/resolve-url.js!./~/sass-loader?sourceMap!./~/bootstrap-loader/lib/bootstrap.styles.loader.js!./~/bootstrap-loader/no-op.js 4:14-192 13:2-17:4 14:20-198
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.browser.ts
 @ multi vendor

No I couldn't. I tried a lot and desisted. 😩
El 22 nov. 2016 4:04 PM, "Valentin Funk"<EMAIL_ADDRESS>escribió:

@byhoratiss https://github.com/byhoratiss did you manage to fix it? I
believe the first error can be fixed by going for 4.0.0-beta.4 for
bootstrap but I still get
Module build failed: Unknown word (2:9)
1 |

2 |         var result = require("!!./../../node_modules/css-loader/index.js!./app.component.css");
|         ^
3 |
4 |         if (typeof result === "string") {
5 |             module.exports = result;

@ ./src/app/app.component.css 2:21-190
@ ./src/app/app.component.ts
@ ./src/app/app.module.ts
@ ./src/app/index.ts
@ ./src/main.browser.ts
@ multi main
ERROR in ./~/css-loader!./~/to-string-loader/src/to-string.js!./~/css-loader!./src/app/home/home.component.css
Module build failed: Unknown word (2:9)
1 |

2 |         var result = require("!!./../../../node_modules/css-loader/index.js!./home.component.css");
|         ^
3 |
4 |         if (typeof result === "string") {
5 |             module.exports = result;

@ ./src/app/home/home.component.css 2:21-200
@ ./src/app/home/home.component.ts
@ ./src/app/home/index.ts
@ ./src/app/app.module.ts
@ ./src/app/index.ts
@ ./src/main.browser.ts
@ multi main
ERROR in ./~/css-loader!./~/postcss-loader!./~/resolve-url/resolve-url.js!./~/sass-loader?sourceMap!./~/bootstrap-loader/lib/bootstrap.styles.loader.js!./~/bootstrap-loader/no-op.js
Module build failed: ReferenceError: document is not defined
at Object.resolveUrl (/home/valentin/angular2-webpack-starter/node_modules/resolve-url/resolve-url.js:21:16)
@ ./~/style-loader!./~/css-loader!./~/postcss-loader!./~/resolve-url/resolve-url.js!./~/sass-loader?sourceMap!./~/bootstrap-loader/lib/bootstrap.styles.loader.js!./~/bootstrap-loader/no-op.js 4:14-192 13:2-17:4 14:20-198
@ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
@ ./~/bootstrap-loader/loader.js
@ ./src/vendor.browser.ts
@ multi vendor
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/AngularClass/angular2-webpack-starter/issues/1156#issuecomment-262333323,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAd3mHvPWf9pyaPQnfTrDcPySEPLBRnbks5rAzxzgaJpZM4KqjfV
.

Too many issues with this already reported, and the guide is not useful. Please update soon.

Has anyone figured out the solution to this issue?

In .bootstraprc add  '-loader' suffix to all the webpack loaders in 'styleLoaders'.
Webpack loaders, order matters
styleLoaders:

style-loader
css-loader
postcss-loader
sass-loader #<--- Beginning with Webpack v2.1.0-beta.26, the '-loader' suffix is required for all loaders.

I updated the wiki page according to my setup. Took me hours to get this running finally.

I fixed it for my setup with @vadhavkar‘s comment and changed @Andrey-Pavlov‘s example. I added -loader to all exports like this:
new webpack.ProvidePlugin({
    $: "jquery",
    jQuery: "jquery",
    "window.jQuery": "jquery",
    Tether: "tether",
    "window.Tether": "tether",
    Tooltip: "exports-loader?Tooltip!bootstrap/js/dist/tooltip",
    Alert: "exports-loader?Alert!bootstrap/js/dist/alert",
    Button: "exports-loader?Button!bootstrap/js/dist/button",
    Carousel: "exports-loader?Carousel!bootstrap/js/dist/carousel",
    Collapse: "exports-loader?Collapse!bootstrap/js/dist/collapse",
    Dropdown: "exports-loader?Dropdown!bootstrap/js/dist/dropdown",
    Modal: "exports-loader?Modal!bootstrap/js/dist/modal",
    Popover: "exports-loader?Popover!bootstrap/js/dist/popover",
    Scrollspy: "exports-loader?Scrollspy!bootstrap/js/dist/scrollspy",
    Tab: "exports-loader?Tab!bootstrap/js/dist/tab",
    Util: "exports-loader?Util!bootstrap/js/dist/util"
})

I'm getting the following error:
ERROR in multi (webpack)-dev-server/client?http://localhost:3000 ./client/polyfills.browser.ts
Module not found: Error: Can't resolve './client/polyfills.browser.ts' in '/Users/angular2-webpack-starter'
 @ multi (webpack)-dev-server/client?http://localhost:3000 ./client/polyfills.browser.ts

ERROR in multi (webpack)-dev-server/client?http://localhost:3000 ./client/main.browser.ts
Module not found: Error: Can't resolve './client/main.browser.ts' in '/Users/angular2-webpack-starter'
 @ multi (webpack)-dev-server/client?http://localhost:3000 ./client/main.browser.ts

ERROR in ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
Module not found: Error: Can't resolve 'postcss-loader' in '/Users/angular2-webpack-starter/node_modules/bootstrap-loader'
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js 1:21-1096
 @ ./~/bootstrap-loader/loader.js
 @ multi (webpack)-dev-server/client?http://localhost:3000 bootstrap-loader

Sigh, any ideas?

anyone?

I personally recommend using ng-bootstrap, which integrate with Angular 2 nicely with directives, service and components !
The setup is easy:

npm install<EMAIL_ADDRESS>--save
Import the sass file into you app (import '../path/to/node_modules/bootstrap/scss/bootstrap.scss')
Import ng-bootstrap into your main module:

import { NgbModule } from '@ng-bootstrap/ng-bootstrap'

@NgModule({
  bootstrap: [ AppComponent ],
  declarations: [
    AppComponent,
  ],
  imports: [
    NgbModule.forRoot()
  ],
  providers: [
  ]
})
export class AppModule {
}


eve chart axes

this is not an issue with fakegato, ... but:
is there a way to force eve to set y-axis min/max?
e.g. for indoor temperature i would like to have the axis starting from 0 instead of something around the min values.
i thought about setting the first values in the json manually to 0, but they would probably get overwritten in the future.... any ideas?

I don’t think it’s possible. You should ask to Eve’s developer.


Value Added Tax

Hello
Great job!
Does Medici supports multiple VAT?
Thanks

Wrong Question. Medici is a Double-entry accounting system. So it is up to you to to implement VAT handling.

Wrong Question. Medici is a Double-entry accounting system. So it is up to you to to implement VAT handling.

I fully agree!
Was just asking if a method was already implemented, e.g. one like in the Banana desktop software: https://www.banana.ch/en/global in which you can just apply a VAT code on a transaction.
Such a method is very handy as you define your VAT codes (normally there are more than 1) and then you simply apply it.
If someone has developed something with Medici I'd be interested.

If you go to the npm page of the medici you can see which packages use medici as dependency. But in my experience medici is usually used in non-public projects so the chance to find some useful packages is imho low.

This question is same as:

Do databases support multiple VAT?

:)
Thanks for the conversation everyone. The question is significantly outside of the Medici scope.
Cheers


faceted search possible?

faceted search possible?

Hey thanks for this question ! I close this issue in favor of #424


Add a MySQL provider

I would like to add an example of a MySQL Provider.
@SapientGuardian would love to use your code, would you be interested in creating a pull request?
Greetings Damien

Certainly! I'll get one ready later today.

cool, thanks

Hi @SapientGuardian
I'm haveing problems with this solution, I get an Exception: There is already an open DataReader when I try to open add some data. Did you experience this?
Greetings Damien

here's a similar exception
http://stackoverflow.com/questions/25128321/there-is-already-an-open-datareader-even-though-it-is-not

{Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> MySql.Data.MySqlClient.MySqlException: There is already an open DataReader associated with this Connection which must be closed first.
at MySql.Data.MySqlClient.ExceptionInterceptor.Throw(Exception exception)
at MySql.Data.MySqlClient.MySqlCommand.CheckState()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.Execute(IRelationalConnection connection, String executeMethod, IReadOnlyDictionary2 parameterValues, Boolean openConnection, Boolean closeConnection)    at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.ExecuteReader(IRelationalConnection connection, IReadOnlyDictionary2 parameterValues, Boolean manageConnection)
at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
--- End of inner exception stack trace ---
at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable1 commandBatches, IRelationalConnection connection)    at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IReadOnlyList1 entriesToSave)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)
at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)
at DataAccessMySqlProvider.DomainModelMySqlContext.SaveChanges() in C:\git\damienbod\AspNet5MultipleProject\src\DataAccessMySqlProvider\DomainModelMySqlContext.cs:line 39
at DataAccessMySqlProvider.DataAccessMySqlProvider.AddDataEventRecord(DataEventRecord dataEventRecord) in C:\git\damienbod\AspNet5MultipleProject\src\DataAccessMySqlProvider\DataAccessMySqlProvider.cs:line 30
at AspNet5MultipleProject.Controllers.DataEventRecordsController.Post(DataEventRecord value) in C:\git\damienbod\AspNet5MultipleProject\src\AspNet5MultipleProject\Controllers\DataEventRecordsController.cs:line 41
at Microsoft.AspNetCore.Mvc.Internal.ObjectMethodExecutor.<>c__DisplayClass37_0.b__0(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__28.MoveNext()}

This was an old bug: https://github.com/SapientGuardian/SapientGuardian.EntityFrameworkCore.MySql/issues/4
Can you check your project.json.lock file to see what version of the library you've got?

"SapientGuardian.MySql.Data": "6.9.811"

Thanks for the hint, ,works perfect now, updated the project.lock.json

Hi @SapientGuardian
I'm creating a blog and will publish this later tonight.
Here's the draft:
https://github.com/damienbod/AspNet5MultipleProject/blob/master/src/DataAccessMySqlProvider/readme.md
If you would like to change this, or that I mention you differently, more, or not at all, let me know.
I could you as author if you prefer that.
Thanks for your code.
Greetings Damien

Looks great, glad you got it working! I'm a little worried if you had to manually edit your project.lock.json though, since it's a generated file. It should just pull latest when you do a dotnet restore.

I didn't edit this file directly, changed the version to 7.1.4 in project.json and deleted the lock file.
Greetings Damien


Guests edit account.

Add a button for guests to edit their accounts. Currently they have to figure out that the route is /guests/edit. Also, add a button to delete account.

Partially fixed by #259. Delete account button is still missing.

Guests no longer exist.


Enable the difference between the current value and a specified value to be highlighted

slider.showDiff()
See details on the corresponding entry in README.md.

Thanks for the PR! I'm on holiday right now and will review next week 👍

Hi! As with the other PR I'm interested to get a feel for how common a use-case this is.
It reminds me of the originFromZero option in Microsoft's Fluent slider component. Your PR is in some sense a more general version of that (placing the origin at an arbitrary point rather than just 0).
I can see why showing the user the distance from zero might be useful but I'd like to understand better the use-case around seeing the difference from a different point.
Thanks again!

We created this feature for a use case where the user can preview the difference between the two states of parameter settings (current vs. history). See a video preview of our paper at 4:39. Our situation is view-only. We haven't tested dragging on the slider while the preview is shown.
I could imagine it could be used in the situation that the focus of the adjustment is a deviation from a baseline value. (Instead of adjusting the value itself.) For example, in statistics software, when the focus is on adjusting "mean difference" between two datasets.


fitBounds should only run when the user is manually adding a new file

This seems a bit UI-unfriendly since you won't want to zoom back to the extent you're working at every time you run an operation. Workflow gif below:

Some potential options for fixing this:

Don't zoom at all, unless the new file has been added manually by the user
Zoom to the extent of the new feature, rather than the entire map

This has been updated in the alpha branch.

Closing this for now, since we have a zoom to layer button (it could probably be improved, though!)


Add support for unshallow

Signed-off-by: Stephen Paul Weber<EMAIL_ADDRESS>Allow passing the --unshallow option

@singpolyma
How can this be tested?  Can you create a shallow repo, and use this to make it an unshallow?

@tarcinil test added


Rule engine  with  auth_result = 'success' never trigger a resource

Environment

OS: Ubuntu 16.04
Erlang/OTP:
EMQ: 3.2.3

Description
A rule engine with sql
SELECT * FROM "client.connected" WHERE auth_result = 'success'
is working using Test SQL from dashboard as expected, but never trigger a resource.
Removing auth_result = 'success' resource is triggered as expected.
auth_result is present in output from broker.

This fix will be included in emqx 3.2.5. Thanks!


undefined method `convert_inline_menu'

Hi.
I have tried to use your tool to prepare fb2 version of my book but got this error:
undefined method `convert_inline_menu' for #<Asciidoctor::FB2::Converter:0x0000556df3ea73b8>
Did you mean?  convert_inline_image
  Use --trace for backtrace

asciidoctor-fb2 -v
Asciidoctor FB2 0.1.0 using Asciidoctor 2.0.10 [https://asciidoctor.org]
Runtime Environment (ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)

This was fixed in 0.2.0. Please, note that asciidoctor-fb2 is in very early development, so you might need to report several more bugs before it will work for you :D

Thanks for the quick fix!


Error 0x80070013 when trying to start Bash after updating

This bug-tracker is monitored by developers and other technical types.  We like detail!  So please use this form and tell us, concisely but precisely, what's up.  Please fill out ALL THE FIELDS!
If you have a feature request, please post to the UserVoice.  If you're reporting a BSOD, don't post here!  Instead, e-mail<EMAIL_ADDRESS>and if possible attach the minidump from "C:\Windows\minidump".

Your Windows build number:  (Type ver at a Windows Command Prompt)

Microsoft Windows [Version 10.0.16179]

What you're doing and what's happening:  (Copy&paste specific commands and their output, or include screen shots)

I'm trying to start Bash on Windows, but it fails with error code 0x80070013:
> C:\Windows\System32\bash.exe
Error: 0x80070013
Press any key to continue...

This has been happening since I updated to build 16179. Logs generated using start/stop_lxcore_trace.cmd are attached:
lxcore_trace.zip

What's wrong / what should be happening instead:

I expected Bash on Windows to start without errors, and give me a bash prompt.

Strace of the failing command, if applicable:  (If <cmd> is failing, then run strace -o strace.txt -ff <cmd>, and post the strace.txt output here)

N/A
See our contributing instructions for assistance.

@Gskartwii - Thank you very much for including the traces! You are hitting a variant of #1977 for which we have a fix inbound. Based on the error code it looks like one of your drives does not have write access for SYSTEM.  To unblock yourself you should to check the permission of your drives and ensure SYSTEM has write access.
0x80070013<PHONE_NUMBER>) - The media is write protected.

Thanks for the quick response. Like with #1977, the issue here seems to be Keybase's KBFS. I tried to change its permissions, but there is no Security tab in the drive's Properties menu.

Appears to be fixed.


openui5_preload gives no errors but doesn't create anything

I've experimented with various options in my Gruntfile.js.  If I don't get the paths exactly right, the task complains about no files found.  When I do get the paths right, it runs and says Done but doesn't create Component-preload file.  See file structure on left of below screen shot, Gruntfile.js on right and task output bottom-right:

Any tips or advice would be appreciated.

The above happens when I run the task as an npm-script.  However, I just discovered that if I run it with grunt-cli from the command line, I start getting feedback on what the problems are:

In the above case, it's unsupported ES6 syntax.  Would still like to know how to configure it so that I get this feedback when running it as a script.

Have switched to a gulp script that I'm having better luck with.  Closing this.

Hey @proehlen
Thanks for your feedback.
The issue with not having any feedback seems to be a duplicate of #36 that has been fixed with #42 (not part of a release, yet).
I can not see any difference between running via npm run or grunt directly.
When looking at your configuration I would recommend you to adopt a few settings (see comments):
openui5_preload: {
  component: {
    options: {
      resources: {
        cwd: 'public/webapp', // this should point to the entry folder
        prefix: 'meteor-ui5-website', // this should be your component namespace
        src: [
          // src patterns start within the "cwd"
          '**/*.js',
          '**/*.fragment.html',
          '**/*.fragment.json',
          '**/*.fragment.xml',
          '**/*.view.html',
          '**/*.view.json',
          '**/*.view.xml',
          '**/*.properties'
        ],
      },

      // "dest" needs to be defined within "options" not "options.resources"
      dest: 'public/webapp', // to put the file in the same folder

      compress: true
    },
    components: true
  }
}

This worked for me when using grunt-openui5@https://github.com/SAP/grunt-openui5.git#master (except the ES6 errors with UglifyJS)
PS: I've also had a look into the issue in your repo and why the files from the preload are ignored, but at first glance the file looks correct.

@matz3 Hey thanks very much for your time and the detailed response. I'm able to produce the Component-preload.js file using grunt now.  It's still ignoring the preload modules but at least I know I'm doing it the right way now.

I've added a comment to the issue in your project.


Trade status not displaying a error

First of i want to say, I do have money on my steamapi and the bot is not on any kind of tradehold.
And i know there's a issue about this before but its closed and market invalid. (So i hope it's ok that i make a new one)
Sometimes when I press "Trade" it works and sometimes i get the "Trade status {}".
My first guess was that it was the steam api that was overused so i changed it to one i only use with the bot. Still happens.
It usually works if i restart the app. So my next guess was that the server load was to high, but it never comes close to even 5% cpu and ram is like 60%.
I do run it as a pm2, but that should not make any difference right?
The index.html sais
<strong v-else>{{ offerStatus.error }} </strong>
So i guess there's supposed to be a error message where the "{}" is?
Where do i begin to get the error message to display correctly?
Thanks in advance!

Please provide me your trade URL here<EMAIL_ADDRESS>

Sent you the trade url.

@pepzwee
It displays an error message new, (And i only gotten it 1 time where before i would have gotten it like 10+) did you change something with the steamapis? Or is this just a lucky coincidence?

No changes were made. Most likely Steam being wonky at that time is what caused your empty errors.


Runtime worker threads feature requests

Followup of #7089
Other than my comments here https://github.com/paritytech/substrate/pull/7089#issuecomment-713178510 I have some feature requests.
Currently the interface is Vec<u8> -> Vec<u8> which is enough to get thing done, but not a developer friendly one.
It shouldn't be hard to implement some automatic args marshaling to improve type-safety.
It will be useful to have some messaging passing between threads. This will allow reuse runtime threads. From my understanding, spawn a new thread is expensive.
With the ability to reuse runtime threads, we can just have a global thread pool with fixed number thread. Instead of spawn new threads in pallet, pallet code should just dispatch a task into the global thread pool. This will allow to us disable the ability to spawn a new thread and prevent the possible resource abuse issue. It will be just one runtime config on the thread pool size and pallets developer doesn't need to worry about it anymore.
Should I break up this into multiple issues?

Thanks @xlc!
I think I will make separate issues that can clearly be implemented or addressed myself.


Consider generating markdown in owner app

It may be wise to allow markdown in certain input fields. It's a good compromise between styling options and simplicity/restrictiveness. The most important feature this would enable are links.
As I see it, the description and the textmessages should allow it.
Here is a datatype we can use:
http://ns.ontowiki.net/SysOnt/Markdown

closing this issue in favor of #2139


feat: abstract signer to allow for different methods of signing transactions and auth entries

Making a trait / interface in its own crate and keeping it in the rpc crate for the time being. May need to move to a new crate. Would be a breaking changes

A breaking change for RPC. This code will move to a new crate

closed in favor of #157


fix(build): introduce travis build stages for parallelism

PR summary
Improve build to use travis stages in order to perform some steps in parallel and reduce overall build times.
PR Checklist
Please make sure that your PR fulfills the following requirements:

[ ] The commit message follows the Angular Commit Message Guidelines.
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] New tests
[ ] Build/CI related changes
[ ] Documentation content changes
[ ] Other (please describe)

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

:tada: This PR is included in version 0.15.5 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Re-export public ParseError type

Fixes #616.

Apparently 1.41.0 rustfmt has some changes. Want to fix those up, too?


docs(note): :book: use regular comments for variables

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
859

Relevant Lines:
859

💛  - Coveralls


training speed

Thanks for sharing your great work!
I used distributed training with a larger batch size on 4 V100 GPUs, while the training time was 10x slower than the logs you released. Please check my training log:
load data successfully
model size is  2.0x
[25 07:39:20] TRAIN Epoch:[1/300], Iter 20: lr = 0.374975,	loss = 6.885094,	Top-1 err = 0.998307,	Top-5 err = 0.992773,	data_time = 0.003278,	train_time = 7.488774
[25 07:41:06] TRAIN Epoch:[1/300], Iter 40: lr = 0.374950,	loss = 6.782532,	Top-1 err = 0.997005,	Top-5 err = 0.986263,	data_time = 0.000368,	train_time = 5.290983
[25 07:42:55] TRAIN Epoch:[1/300], Iter 60: lr = 0.374925,	loss = 6.705432,	Top-1 err = 0.996289,	Top-5 err = 0.984375,	data_time = 0.000656,	train_time = 5.449250
[25 07:44:55] TRAIN Epoch:[1/300], Iter 80: lr = 0.374900,	loss = 6.599855,	Top-1 err = 0.993880,	Top-5 err = 0.976628,	data_time = 0.005118,	train_time = 6.008399

I used the ShuffleNetV2 code. Any suggestions for improving the speed? I wonder which hardware configuration you used during your training? Or you used personal code (faster conv operations with cuda)?

@acoder-fin  We use 8 2080ti to train ShuffleNetV2 and we use normal conv operations.  In your case (I have never meet such a low speed) I would suggest that you test the hardware environment.

@nmaac Thank you very much! No idea whats wrong.
Then I used the example code from DALI package, and the speed was quite good.  No idea whats wrong. Then I used the example code from DALI package, and the speed was quite good.  Thanks!


Make travis-ci build faster

With evolving Euler tests, the travis-ci build takes longer and longer...
Task: Analyse possibilities to make the build faster.

Fixed (~ 35% faster)


HIL: can't arm with latest versions

With the firmware up to version 1.6.3, I could follow the following procedure to do HIL:
-plug in Pixhawk v2 to USB and wait until LED breathing blue
-start jMAVSim and wait unilt LED breathing green
-on an nsh terminal, issue the command: commander arm
and the drone would arm.
I cannot test latest standard releases due to issue #7857, but if I try with the latest master (with a workaround for that issue), I cannot arm anymore. I get the error:
WARN  [commander] HITL: Connect to simulator before arming.
WARN  [commander] arming failed
I noticed that 61b0a81bf9823aa56fa4f5cc3d0fc0da5d00b559 changed the condition in the if statement that shows this error. If I change the following line in commander.cpp
status.hil_state == vehicle_status_s::HIL_STATE_ON)

to
status.hil_state != vehicle_status_s::HIL_STATE_ON)

it works as before. Is it possible that this condition is wrong now? or has the procedure to start a HIL simulation changed?

This is indeed wrong now. But since the commit removed the startup_in_hil flag, this whole check does not make sense anymore. I think we can just remove it.
I'm surprised that the preflight checks don't fail. They should fail if there is no gyro available.


[BUG] - Input value disappears on hover with asynchronous values using React Hook Form

NextUI Version
2.4.6
Describe the bug
Have encountered this issue posted here:
Asynchronous default values are disappearing from <Input> on hover. Issue doesn't occur on plain <input> tags. Wrapping in a <Controller/> doesn't fix.

When loading in values, the value is reset when hovering over the input.
Your Example Website or App
https://codesandbox.io/p/devbox/great-sara-fcx6hm?file=%2FApp.jsx
Steps to Reproduce the Bug or Issue

Hover over text input

Expected behavior
Value doesn't disappear
Screenshots or Videos
No response
Operating System Version
Windows
Browser
Chrome

<Controller
  control={control}
  name="email"
  render={({ field: { value } }) => (
    <Input value={value} {...register("email")} />
  )}
/>

This seems to solve the issue for me. Please try this and let me know.

Yep using Controller does work as a workaround.


Inconsistant tax year used in canned responses

It seems that generally the tax year as used in all the canned responses is 2018-19, though there are some deviations from this such as the tax year returned from the Retrieve Self Assessment Tax Calculation Metadata endpoint.
Which means I see things like (annotated output)
./itsa update-annual-summary
[OK] Updated Annual Summary for 2018-19
[OK] Triggered calculation for 2018-19
[OK] Calculation Metadata for 2017-18	<----

./itsa submit-end-of-period-statement 2018-04-06 2019-04-05
[OK] Updated Annual Summary for 2018-19
[OK] Triggered calculation for 2018-19
[OK] Calculation Metadata for 2017-18	<----

./itsa crystallise 2018-19
[OK] Calculation Metadata for 2017-18	<----

I know this is just dummy data, but could we at least be consistent?
This inconsistency is causing some real issues; https://github.com/hmrc/income-tax-mtd-changelog/issues/3 & https://github.com/hmrc/income-tax-mtd-changelog/issues/6

Hi @ac000,
Good spot. I've created a ticket within the team to make the tax year in these responses consistent.
Kind regards,
MTD API Team

Thanks, would it be possible to update this issue when done?

Sure, will do!

This #12 is also a problem. Will this be fixed up?

Hi @ac000,
Thank you. A ticket has been created to make the business ids in the responses consistent.
Kind regards,
MTD API Team


Question: Does this action support alerts on pull requests?

I've successfully configured this action and everything is running very nicely on the main branch. I'm keen to also run this action on pull requests and receive alerts when there are benchmark regressions.
I updated my action config to run on PRs, however, it fails as follows:
0s
Run rhysd/github-action-benchmark@v1
  with:
    tool: benchmarkjs
    output-file-path: benchmark/output.txt
    comment-on-alert: true
    alert-comment-cc-users: @colineberhardt
    auto-push: true
    name: Benchmark
    gh-pages-branch: gh-pages
    benchmark-data-dir-path: dev/bench
    skip-fetch-gh-pages: false
    comment-always: false
    save-data-file: true
    alert-threshold: 200%
    fail-on-alert: false
Error: 'auto-push' is enabled but 'github-token' is not set. Please give API token to push GitHub pages branch to remote

/see https://github.com/ColinEberhardt/assemblyscript-regex/pull/21
Any ideas?

hi @ColinEberhardt
This is weird and should not happen. Unfortunately, logs are not available anymore
Anyway, I would suggest to not set auto-push option for benchmarks on a PR as it will push the results to gh-pages for every successful benchmark run on every PR which will pollute the data. I suggest having a separate workflow that runs for PRs and doesn't have the auto-push option set

jFYI, running on pull_request won't work as the action would run under the forked context w/ a different token which only has read permissions on the target repo (base). Thus comment-on-alert would also throw an error as the token cannot write. We are facing the same issue.

@embano1 Did you find a fix for using comment-on-alert during PR's ?

@embano1 Did you find a fix for using comment-on-alert during PR's ?

Nope, AFAIK since the security model around PRs hasn't change (which is good), Github Actions are still limited in those cases and there's no secure workaround available.

I merged and released this new feature yesterday. Maybe instead of trying to add comments on PR, you could use a GitHub summary.
Official blog post here

@ktrz Thanks for the new feature. It seems the actions.yml was not updated with the new field. We are getting an unexpected field error

@ColinEberhardt your original issue is because you forgot to set this: github-token: ${{ secrets.GITHUB_TOKEN }}
I was able to get this action to publish a comment with the benchmarks: https://github.com/miparnisari/benchtest/commit/4ae42941cc8a75f3dc16b75ccee502d4b2311347#commitcomment-130466117

@miparnisari

@ColinEberhardt your original issue is because you forgot to set this: github-token: ${{ secrets.GITHUB_TOKEN }}

Just to be clear, this does not work on PRs against forks.

Oh. I didn't try that scenario 😅

@gaby if you have a PR from a branch in the same repo it should work without an issue. Summary doesn't need any permission AFAIK
Could you provide a link to a workflow run?

@ktrz Here https://github.com/gofiber/fiber/pull/3079

I had to set comment-on-alert: false because I was getting HTTP 403

@gaby
I will investigate the summary that is not rendering properly after I get back from holidays at the end of this week.
Making a comment requires pull-requests: write permission. It is possible that the gofiber repo has a different default value for that which would require you to add pull-requests: write to the permissions list on top of the workflow file

@ktrz Adding the permission and enabling comment-on-alert now adds a properly rendered table to the PR as a comment.
Will this work for a PR created from a fork? Even if we give it the permissions?
Thanks!
https://github.com/gofiber/fiber/pull/3079#pullrequestreview-2192711992

@gaby PRs from a fork are restricted to have max permission of read for pull request so the comment won't work unfortunately in that case.

@ktrz I was able to get around that using a new variable that was added by GitHub. With this field I can enable comments for our branches, and auto-disable them for forks. Thanks for your help! 💪
 comment-on-alert: ${{ github.event.pull_request.head.repo.fork == false }}

This is my full workflow for reference, combining practices seen in multiple projects:
on:
  push:
    branches:
      - main
    paths-ignore:
      - "**/*.md"
  pull_request:
    paths-ignore:
      - "**/*.md"

permissions:
  # deployments permission to deploy GitHub pages website
  deployments: write
  # contents permission to update benchmark contents in gh-pages branch
  contents: write
  # allow posting comments to pull request
  pull-requests: write

name: Benchmark
jobs:
  Compare:
    runs-on: ubuntu-latest
    steps:
      - name: Fetch Repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0 # to be able to retrieve the last commit in main

      - name: Install Go
        uses: actions/setup-go@v5
        with:
          # NOTE: Keep this in sync with the version from go.mod
          go-version: "1.21.x"

      - name: Run Benchmark
        run: set -o pipefail; go test ./... -benchmem -run=^$ -bench . | tee output.txt

      # NOTE: Benchmarks could change with different CPU types
      - name: Get GitHub Runner System Information
        uses<EMAIL_ADDRESS>        id: system-info

      - name: Get Main branch SHA
        id: get-main-branch-sha
        run: |
          SHA=$(git rev-parse origin/main)
          echo "sha=$SHA" >> $GITHUB_OUTPUT

      - name: Get Benchmark Results from main branch
        id: cache
        uses: actions/cache/restore@v4
        with:
          path: ./cache
          key: ${{ steps.get-main-branch-sha.outputs.sha }}-${{ runner.os }}-${{ steps.system-info.outputs.cpu-model }}-benchmark

      # This will only run if we have Benchmark Results from main branch
      - name: Compare PR Benchmark Results with main branch
        uses<EMAIL_ADDRESS>        if: steps.cache.outputs.cache-hit == 'true'
        with:
          tool: 'go'
          output-file-path: output.txt
          external-data-json-path: ./cache/benchmark-data.json
          # Do not save the data (This allows comparing benchmarks)
          save-data-file: false
          fail-on-alert: true
          # Comment on the PR if the branch is not a fork
          comment-on-alert: ${{ github.event.pull_request.head.repo.fork == false }}
          github-token: ${{ secrets.GITHUB_TOKEN }}
          summary-always: true
          alert-threshold: "150%"

      - name: Store Benchmark Results for main branch
        uses<EMAIL_ADDRESS>        if: ${{ github.ref_name == 'main' }}
        with:
          tool: 'go'
          output-file-path: output.txt
          external-data-json-path: ./cache/benchmark-data.json
          # Save the data to external file (cache)
          save-data-file: true
          fail-on-alert: false
          github-token: ${{ secrets.GITHUB_TOKEN }}
          summary-always: true
          alert-threshold: "150%"

      - name: Update Benchmark Results cache
        uses: actions/cache/save@v4
        if: ${{ github.ref_name == 'main' }}
        with:
          path: ./cache
          key: ${{ steps.get-main-branch-sha.outputs.sha }}-${{ runner.os }}-${{ steps.system-info.outputs.cpu-model }}-benchmark

@gaby that's cool! I will try to use this within the action to give more meaningful error messages if someone tries to use it on the fork


MM-37134 Properly group Android push notifications by channel

Summary
Groups the Android push notifications by channel
Ticket Link
https://mattermost.atlassian.net/browse/MM-37134
Release Note
Fixed Android push notifications so that they are grouped by channel.

Building app in separate branch.

tested and working. takes a few seconds for the messages to group but they are being grouped eventually

@jespino This is being planned for a dot release.

@enahum Feel free to add another dev reviewer to expedite getting this reviewed.

Cherry pick is scheduled.


After every update, the shortcut settings are set to zero and have to be set again.

duplicate of #1140


docs: improve CONTRIBUTION instructions - sign-off step

There's a difference between signing commits (-S) and signing off commits (-s).

Thabkns for the PR, @rolweber :+1:
it will be merged soon.


MMAgent.ps1 script may contain an out of date ProductId.

I believe this:
ProductId = "8A7F2C51-4C7D-4BFD-9014-91D11F24AAE2"
should be changed to:
ProductId = "125E840F-D03A-4F95-8236-8176B6150760"

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

ID: 00a00a3e-a0df-7ee5-4733-7231bd7a024f
Version Independent ID: 94361683-e1e7-7e55-6993-86d3c2486a14
Content: Connect Windows computers to Azure Log Analytics
Content Source: articles/log-analytics/log-analytics-agent-windows.md
Service: log-analytics
GitHub Login: @MGoedtel
Microsoft Alias: magoedte

@andresravinet - Thank you for submitting your feedback regarding the use of the script to deploy the agent.  As the article points out, you need to update the ProductId value in the script with the product code from the latest version of the MMA installer package before using it. This is specified in the paragraph following the links to download the package -
The 32-bit and 64-bit versions of the agent package have different product codes and new versions released also have a unique value. The product code is a GUID that is the principal identification of an application or product and is represented by the Windows Installer ProductCode property. The ProductId value in the MMAgent.ps1 script has to match the product code from the 32-bit or 64-bit agent installer package.
Hope that helps.

I'll bug this and tweak the article to make this more clearer.  Thanks.  #please-close


Provide list of keyboard codes

Feature Description
I was nicely surprised to see that @angular/cdk/keycodes export the table of keyCodes for use in apps, which is a great helper. I would vote to provide also a list of codes, as - as per MDN - KeyboardEvent#keyCode is a deprecated property.
Use Case
it should be possible to say:
  import { Codes } from '@angular/cdk/keycodes'; // or /codes

  @HostListener('document:keydown', ['$event.code'])
  handleKeyDown(code) {
    if(code === Codes.ESCAPE){
      this.popoverRef.cancel()
    }
  }

The list could export a namespaced list:
  import { Codes } from '@angular/cdk/keycodes';
  // use: Codes.ESCAPE, Codes.TAB, etc

or individual constants
  import { ESCAPE, TAB } from '@angular/cdk/keycodes';
  // use: ESCAPE, TAB, etc.

to be decided by the team.

You can do this:
import * as KeyCodes from '@angular/cdk/keycodes';

someFn(KeyCodes.ESCAPE);

It's important for these to not be all on one object by default so that optimizers can remove the symbols you're not using.


Added TraversyMedia Youtube channel

Added : https://www.youtube.com/c/TraversyMedia in Youtube channels section.
Changes made : Sorted the YouTube channels list in alphabetical order.

Hey, Please consider resolving conflicts


Can't recycle items created prior to adding the mod

Replication:

Create a new world
Craft an item
Install mod and boot back into game
Try to reclaim item

Expected: You can switch to the reclaim tab and reclaim materials from the item
Actual: You can switch to the reclaim tab, but there are no reclaim recipes.
Work around:

after adding mod, create an item of that type again
Now the recipe will appear to reclaim

I assume this is because of the configuration for needing to know recipes, Though i haven't been able to test with that setting turned off yet. I don't know how valheim stores known recipes, but it would be nice if the mod could read from that list so you don't have to create itemsagain to be able to reclaim stuff from them.

Ok I turned off the setting where you need to know recipes, and it still has the same behavior


Recent version bump broke essentially all text rendering

PR #591 bumped versions of dependencies. While the PR description described the bump as "minor," many of the crates that were bumped are in the leading-0 phase of semver, meaning that minor version bumps are breaking.
One good example of breakage is the embedded_graphics crate, which appears to have switched the default baseline behavior for text rendering in (I'm guessing) 0.7. As a result, after #591, many of the examples render their text off the screen, and programs that attempt to clear the screen before writing text (the clock examples, say) instead clear a rectangle just beneath the text.
Fixing this generally requires diffs like the following:
diff --git a/boards/wio_terminal/examples/clock.rs b/boards/wio_terminal/examples/clock.rs
index 9e4567f29..2f0c02f72 100644
--- a/boards/wio_terminal/examples/clock.rs
+++ b/boards/wio_terminal/examples/clock.rs
@@ -15,7 +15,7 @@ use eg::mono_font::{ascii::FONT_10X20, MonoTextStyle};
 use eg::pixelcolor::Rgb565;
 use eg::prelude::*;
 use eg::primitives::{PrimitiveStyleBuilder, Rectangle};
-use eg::text::Text;
+use eg::text::{Baseline, Text};

 use cortex_m::interrupt::free as disable_interrupts;
 use cortex_m::peripheral::NVIC;
@@ -137,7 +137,7 @@ fn main() -> ! {
             .ok()
             .unwrap();

-        Text::new(data.as_str(), Point::new(55, 80), style)
+        Text::with_baseline(data.as_str(), Point::new(55, 80), style, Baseline::Top)
             .draw(&mut display)
             .ok()
             .unwrap();

Anyway, noticed this when I was using your code to get a shiny new Wio Terminal working before I write my own drivers. :-)

If you have the change to fix, please open a PR! Thanks for the report

I have the fix for the one example I used to test flashing (above); I'm not equipped to test all the examples. I also can't promise this is the only breaking change in embedded-graphics 0.7.

As you can tell by us breaking the examples, we don't necessarily have all of the hardware on hand at all times either 🙂 even a partial fix PR is appreciated

As you can tell by us breaking the examples, we don't necessarily have all of the hardware on hand at all times either slightly_smiling_face even a partial fix PR is appreciated

Evidence of, and apology for, our poor behavior

@bradleyharden Between the merge of #604 and my pending patches I believe all text rendering in examples should be resolved.

@pabigot, have all the relevant patches been merged? I think so. If so, we can close. @cbiffle, can you confirm your issues are resolved?

@bradleyharden All my patches are in and the examples work for me on the current master branch.

Ok, I'm going to close then. @cbiffle, feel free to reopen if you're still having an issue.


bug: Recovery Needed for CRIs stuck in Transient State

What happened:
CRIs sometimes get stuck in XXXing states (most often Attaching state), and until the CRI either gets updated to XXXFailed state or other success indicating states, there is no component within our driver that can intervene and requeue this operation. And aside from the bug we are seeing, if the controller crashes for any reason in the middle of these update operations, our CRIs will get stuck in these states and will not be able to recover.
On that note, our driver has a need for some kind of recovery scheme for such scenarios.
What you expected to happen:
To be able to control CRI transient state in an expected manner.
How to reproduce it:
Anything else we need to know?:
Environment:

CSI Driver version:
Kubernetes version (use kubectl version):
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

@sunpa93 This was fixed by #263, correct?

@sunpa93 This was fixed by #263, correct?

#236 handles CRI getting stuck in transient state from non-recoverable net errors but I think we should keep this issue open to keep track of other unrecoverable errors we can encounter from cri update that can leave cri stuck in transient states (although we have not had encountered other errors that can contribute to this so far).

...keep this issue open to keep track of other unrecoverable errors we can encounter from cri update that can leave cri stuck in transient states (although we have not had encountered other errors that can contribute to this so far).

It doesn't really help to track theoretical issues with unknown root causes. Unless there is an unaddressed known condition that causes this issue, we should close it. We can always create a new one if we encounter other errors that cause this same issue.

Sounds good. Will close this issue then 👍