latest build with angular 2.2.3 failing

when i run npm install. peer depdencies are failing
Binary is fine
<EMAIL_ADDRESS>/Users/kodiraj/Downloads/ng2-admin-master
├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>

Hey @kodiraj we will check this, however, this won't affect the build itself and it will function correctly.

When I run npm install, got this error:
npm ERR! Linux 4.2.0-42-generic
npm ERR! argv "/home/jaly/node62/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.2.0
npm ERR! npm  v3.8.9
npm ERR! shasum check failed for /tmp/npm-27974-86b100a5/registry.npmjs.org/typescript/-/typescript-2.0.6.tgz
npm ERR! Expected: 5385499ac9811508c2c43e0ea07a1ddca435e111
npm ERR! Actual:   ace8c4efae4e1c162b67921b89e0d492bebbbb63
npm ERR! From:     https://registry.npmjs.org/typescript/-/typescript-2.0.6.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     https://github.com/npm/npm/issues

on macOS, my npm install ends with:
npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.4.7
npm ERR! npm  v2.15.8
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package<EMAIL_ADDRESS>does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer<EMAIL_ADDRESS>wants<EMAIL_ADDRESS>npm ERR! peerinvalid Peer<EMAIL_ADDRESS>wants<EMAIL_ADDRESS>npm ERR! peerinvalid Peer<EMAIL_ADDRESS>wants<EMAIL_ADDRESS>npm ERR! peerinvalid Peer<EMAIL_ADDRESS>wants<EMAIL_ADDRESS>npm ERR! peerinvalid Peer<EMAIL_ADDRESS>wants<EMAIL_ADDRESS>npm ERR! peerinvalid Peer<EMAIL_ADDRESS>wants<EMAIL_ADDRESS>npm ERR! peerinvalid Peer<EMAIL_ADDRESS>wants<EMAIL_ADDRESS>
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/adam/Dev/scratch/ng2-admin/npm-debug.log

And npm start contains the following errors:
Click to expand log
ERROR in (webpack)-dev-server/client?http://localhost:3000
Module not found: Error: Can't resolve 'strip-ansi' in '/Users/adam/Dev/scratch/ng2-admin/node_modules/webpack-dev-server/client'
 @ (webpack)-dev-server/client?http://localhost:3000 3:16-37
 @ multi polyfills

ERROR in (webpack)-dev-server/client/socket.js
Module not found: Error: Can't resolve 'sockjs-client' in '/Users/adam/Dev/scratch/ng2-admin/node_modules/webpack-dev-server/client'
 @ (webpack)-dev-server/client/socket.js 1:13-37
 @ (webpack)-dev-server/client?http://localhost:3000
 @ multi polyfills

ERROR in ./~/ng2-bootstrap/components/datepicker/date-formatter.js
Module not found: Error: Can't resolve 'moment' in '/Users/adam/Dev/scratch/ng2-admin/node_modules/ng2-bootstrap/components/datepicker'
 @ ./~/ng2-bootstrap/components/datepicker/date-formatter.js 2:13-30
 @ ./~/ng2-bootstrap/components/datepicker.js
 @ ./~/ng2-bootstrap/ng2-bootstrap.js
 @ ./src/app/app.component.ts
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.browser.ts
 @ multi main

ERROR in ./~/fullcalendar/dist/fullcalendar.js
Module not found: Error: Can't resolve 'moment' in '/Users/adam/Dev/scratch/ng2-admin/node_modules/fullcalendar/dist'
 @ ./~/fullcalendar/dist/fullcalendar.js 9:2-41
 @ ./src/app/theme/components/baFullCalendar/baFullCalendar.loader.ts
 @ ./src/app/theme/components/baFullCalendar/baFullCalendar.component.ts
 @ ./src/app/theme/components/baFullCalendar/index.ts
 @ ./src/app/theme/components/index.ts
 @ ./src/app/theme/nga.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.browser.ts
 @ multi main

ERROR in (webpack)/~/node-libs-browser/~/buffer/index.js
Module not found: Error: Can't resolve 'base64-js' in '/Users/adam/Dev/scratch/ng2-admin/node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer'
 @ (webpack)/~/node-libs-browser/~/buffer/index.js 11:13-33
 @ ./~/ng2-smart-table/build/src/ng2-smart-table/lib/helpers.js
 @ ./~/ng2-smart-table/build/src/ng2-smart-table/ng2-smart-table.component.js
 @ ./~/ng2-smart-table/build/ng2-smart-table.js
 @ ./src/app/pages/tables/tables.module.ts
 @ ./src/app/pages/pages.routing.ts
 @ ./src/app/pages/pages.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.browser.ts
 @ multi main

ERROR in (webpack)/~/node-libs-browser/~/buffer/index.js
Module not found: Error: Can't resolve 'ieee754' in '/Users/adam/Dev/scratch/ng2-admin/node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer'
 @ (webpack)/~/node-libs-browser/~/buffer/index.js 12:14-32
 @ ./~/ng2-smart-table/build/src/ng2-smart-table/lib/helpers.js
 @ ./~/ng2-smart-table/build/src/ng2-smart-table/ng2-smart-table.component.js
 @ ./~/ng2-smart-table/build/ng2-smart-table.js
 @ ./src/app/pages/tables/tables.module.ts
 @ ./src/app/pages/pages.routing.ts
 @ ./src/app/pages/pages.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.browser.ts
 @ multi main

ERROR in (webpack)/~/node-libs-browser/~/buffer/index.js
Module not found: Error: Can't resolve 'isarray' in '/Users/adam/Dev/scratch/ng2-admin/node_modules/webpack/node_modules/node-libs-browser/node_modules/buffer'
 @ (webpack)/~/node-libs-browser/~/buffer/index.js 13:14-32
 @ ./~/ng2-smart-table/build/src/ng2-smart-table/lib/helpers.js
 @ ./~/ng2-smart-table/build/src/ng2-smart-table/ng2-smart-table.component.js
 @ ./~/ng2-smart-table/build/ng2-smart-table.js
 @ ./src/app/pages/tables/tables.module.ts
 @ ./src/app/pages/pages.routing.ts
 @ ./src/app/pages/pages.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/index.ts
 @ ./src/main.browser.ts
 @ multi main
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 542 kB [entry] [rendered]
        [0] ./~/lodash/lodash.js 539 kB {0} [built]
            [] -> factory:138ms building:3300ms = 3438ms
        [1] (webpack)/buildin/global.js 506 bytes {0} [built]
            [] -> factory:2817ms building:229ms = 3046ms
        [2] (webpack)/buildin/module.js 548 bytes {0} [built]
            [] -> factory:2820ms building:228ms = 3048ms
        [3] ./~/html-webpack-plugin/lib/loader.js!./src/index.html 1.77 kB {0} [built]
             factory:119ms building:179ms = 298ms
Child extract-text-webpack-plugin:
                                    Asset     Size  Chunks             Chunk Names
     19e65b89cee273a249fba4c09b951b74.eot   121 kB          [emitted]
     28df6ee7b407fd8a14b40bc01f4fd3ae.svg   334 kB          [emitted]
     dd4781d1acc57ba4c4808d1b44301201.ttf   189 kB          [emitted]
    2c159d0d05473040b53ec79df8797d32.woff  67.9 kB          [emitted]
    chunk    {0} extract-text-webpack-plugin-output-filename 67.8 kB [entry] [rendered]
        [0] ./~/ionicons/fonts/ionicons.eot?v=2.0.1 82 bytes {0} [built]
            [] -> factory:49ms building:24ms = 73ms
        [1] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
            [] -> factory:2ms building:1ms = 3ms
        [2] ./~/ionicons/fonts/ionicons.svg?v=2.0.1 82 bytes {0} [built]
            [] -> factory:58ms building:19ms = 77ms
        [3] ./~/ionicons/fonts/ionicons.ttf?v=2.0.1 82 bytes {0} [built]
            [] -> factory:51ms building:23ms = 74ms
        [4] ./~/ionicons/fonts/ionicons.woff?v=2.0.1 83 bytes {0} [built]
            [] -> factory:56ms building:19ms = 75ms
        [5] ./~/css-loader!./~/sass-loader?sourceMap!./src/app/theme/initial.scss 66 kB {0} [built]
             factory:15ms building:27580ms = 27595ms
webpack: bundle is now VALID.
[default] Checking started in a separate process...
[default] Ok, 5.751 sec.

When launching localhost:3000, only a spinner is displayed on a black background

Fix for me was to update node from 4.4.x to 6.9.x.
The npm install 'peerinvalid' errors are now just warnings, and npm start has no errors and everything launches normally 👍


feat: Use loadfile that allows reading from local file or uri

close #4589

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/go-mod-bootstrap/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:

[x] I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
[x] I am not introducing a new dependency (add notes below if you are)
[x] I have added unit tests for the new feature or bug fix (if not, why?)
[x] I have fully tested (add details below) this the new feature or bug fix (if not, why?)
[ ] I have opened a PR for the related docs change (if not, why?)

Testing Instructions

add EDGEX_CONFIG_FILE= to any service
start edgex in secure or no-secure mode
Modified service should get config from the remote location instead of the local copy.

New Dependency Instructions (If applicable)

@brian-intel , please add file type being loaded to commit message and PR tile. Message is currently too generic.

@brian-intel , You must update go.mod to use latest go-mod-bootstrap.

Codecov Report

Merging #4600 (440befc) into main (65b3fe8) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main    #4600   +/-   ##
=======================================
  Coverage   41.57%   41.57%
=======================================
  Files         106      106
  Lines        9759     9759
=======================================
  Hits         4057     4057
  Misses       5356     5356
  Partials      346      346

@brian-intel , PR needs to be rebased.


(enh) add lib/common.js to sideEffects

vite/rollup will treeshake side effect imports (whereas webpack will not) if the files themselves are not marked in package.json

Resolves #3827
Changes

Mark ./lib/common.js and ./es/common.js as files with side effects
Checklist

[x] Added markup tests, or they don't apply here because...
[ ] Updated the changelog at CHANGES.md

The ES version does a direct import... that's not a side effect, is it?

Honestly I have no idea how rollup's tree shaking algorithm works. It always strips the import unless both lines are marked as side effects.


I created a certificate on Windows 7 host, and want to use it on a Windows 2000 virtual machine.

Hi,
I have a Windows 7 machine that hosts a Windows 2000 virtual machine.
On the VM I run my website that needs a certificate.
I could not run letsencrypt.exe on the Windows 2000 VM, so I ran it on the Windows 7 host.
I used letsencrypt.exe interactively, and chose

 Create new certificate with advanced options
 Manually input hostnames
 mysite.com
 Validate: Save file on local (network) path - W:\mysite.com
 Do not run any installation steps
 entered email address
 agreed to letsencrypt polycy

On the host it created directory
C:\ProgramData\win-acme\httpsacme-v01.api.letsencrypt.org
for me, with 14 files. (*.der *.pem *.json *.pfx Registreation Renewals Signer)
The website root is accesible from the host
as W:\mysite.com
According to the Wiki, some or all of the 14 files should end up in
www.mysite.com/.well-known/acme-challenge/
letsencrypt.exe shows:
[INFO] Answer should now be browsable at http://mysite.com/.well-known/acme-challenge/{long code}
My question: which of the certificate files should go where?
The Wiki is not clear about that. (at least I could not find it.)
Any help will be highly appreciated.
Engbert.

You should be able to import the .pfx file into the Windows 2000 system and then use it with IIS.


Can you give a demo-blog repo?

thus it's more convenient for users

@luckypoem I agree there should be a demo repo; just haven't made one yet. Is there something you're not understanding? I would be glad to personally answer your questions.
I am currently refactoring the docs at: https://github.com/RyanZim/onessg/tree/docs, you may want to look at that branch. Feedback welcome!

Regarding Blogs: onessg is not "blog-aware" at present; although you could build a blog with it. I have never tried, I don't have a blog. I'm not opposed to making it a little bit more blog-friendly, however, I don't want it to become blog-centric. A few things to keep in mind:

There is no way to automatically generate a Table of Contents, RSS Feed, etc.
onessg doesn't alter your directory structure, so if you want URLs like: http://mysite.com/2016/10/17/hello-world.html, you will have to create that directory structure yourself. (I've considered adding URL manipulation capabilities, but never have.)

Despite these, building a blog with onessg should be possible.

FWIW, I'm a freelance web designer/developer (http://ryanzim.com), and I wanted to just write the content of my pages in HTML, and have a tool automatically wrap them with my layout/boilerplate (Copy/Pasting isn't DRY). All the existing SSGs either were either too opinionated, wanted to perform the job of my entire asset pipeline, or required extensive configuration. So I built my own!

@luckypoem It might also be of interest to you; I am planning on adding a _draft key so that you can mark a page as a draft in its front-matter. onessg will not compile the drafts unless you pass a cli flag (probably something like --dev).

Gonna close this; I do plan on making a demo repo when I get around to it, but it will not be a blog.


Decorators not working, getting TypeError: _dec is not a function

Hello Team, thanks for developing and maintaining this great library.
I am facing challenges transpiling the decorators. Any help would be appreciated.
The Component Code
// ./components/base/Tooltips.js

@onClickOutside
export class TooltipWrapper extends Component {

  constructor () {
    super();
  }

The @swc/jest config
module.exports = {
  preset: '../../../jest-preset.js',
  transform: {
    '^.+\\.(t|j)(sx|s)?$': [
      '@swc/jest',
      {
        'jsc': {
          keepClassNames: true,
          'parser': {
            'syntax': 'typescript',
            'tsx': true,
            'jsx': true,
            decorators: true,
            'decoratorsBeforeExport': true,
            'dynamicImport': true
          },
          'transform': {
            'react': {
              'runtime': 'automatic'
            },
            legacyDecorator: true,
            'decoratorMetadata': true
          }
        },
        module: {
          type: 'es6',
          noInterop: false
        }
      }
    ]
	}
};

The Error
 FAIL  __tests__/components/uptime/UptimeMonitorForm.test.js
  ● Test suite failed to run

    TypeError: _dec is not a function

      158 | }
      159 |
    > 160 | @onClickOutside
          |                ^
      161 | export class TooltipWrapper extends Component {
      162 |
      163 |   constructor () {

      at Object.<anonymous> (../../../src/renderer/js/components/base/Tooltips.js:160:16)

Hi @kdy1 is there any update on this issue? We are trying to use swc internally at Postman for specific projects. Any update would be helpful for our further research.

@abhinaba-ghosh I'll take a look.

Can you share more input? I can't debug this without an input file

Closing as not actionable, due to lack of response.


enable grpc-dotnet client compression interop tests

Supersedes https://github.com/grpc/grpc/pull/19694/files (and doesn't touch auth interop test blacklist).

@JunTaoLuo @JamesNK

@JamesNK  looks like the server_compressed_streaming and server_compressed_unary scenarios are not passing against the C++ server. We can't merge before this is resolved.
https://source.cloud.google.com/results/invocations/26d210c3-a760-4edd-9187-e59ce3a31356/targets/github%2Fgrpc%2Finterop_test/tests;group=tests;test=cloud_to_cloud:aspnetcore:c%2B%2B_server:server_compressed_streaming:tls;row=1

I'm not sure why it is failing. For some reason the deflate compressed content from the C++ server can't be decompressed in C#.

Can retest after https://github.com/grpc/grpc-dotnet/pull/480 is merged

Merged
@jtattermusch Ready to retest

@jtattermusch Once https://github.com/grpc/grpc-dotnet/pull/481 is approved and merged then we can enable the server compression tests for aspnetcore as well.
Could do that here or a new PR.

Should be able to enable server compression tests now

known failures:
https://github.com/grpc/grpc/issues/19338


enhancement: Prevent Upgrade if VM Backup (Schedule) Under Processing

Problem:
While the VM Backup is under processing, it may occupy one LH VA ticket. This can cause the following VM operation (e.q. VM Live migration) to be blocked by LH VA webhook https://github.com/longhorn/longhorn-manager/blob/5ff1f83aefb2c17365264d7cc111e04415c9cef8/webhook/resources/volumeattachment/validator.go#L121-L124
Solution:
Prevent upgrade if there is VM Backup (VM Backup Schedule) under processing
Related Issue:
#6754
Test plan:

Building the Harvester cluster with v1.4.0-rc1
Setting ManageChart harvester's spec.paused = true
Updating Harvester Webhook deployment with this PR
Applying a version manifest upgrade to v1.4.0-rc1, e.q.apiVersion: harvesterhci.io/v1beta1
kind: Version
metadata:
  name: v1.4.0-rc1
  namespace: harvester-system
spec:
  isoURL: http://<IP_ADDRESS>:8080/iso/harvester-v1.4.0-rc1-amd64.iso

Creating a VM vm1
Creating vmbackup for VM vm1, during the backup in progress, start the upgrade
The upgrade CR creation will be rejected with message vmbackup <vmabckup name> is under processing
Creating a backup schedule for VM vm1, and making sure the schedule is not suspended
Starting the upgrade, the upgrade CR creation will be rejected with message schedule <scheduke name> is running

Good finding. We can improve further by

An upgrade-config to enable automatically suspend al VM schedules (and restore them when an upgrade is done).
A global setting to control all VM schedules.

Open a ticket for these requirement https://github.com/harvester/harvester/issues/6759

@w13915984028 I merged this for rc3, please let Webber know if you have further concerns, thanks!


Jump link not working

In README - if you click on step 4 "Save and Share", it does not jump to the right section.

Fixed


Player chain Destination in offline context

Describe the bug
Hi there,
I guess Tone.Offline creates a new Destination only for the offline rendering purpose (but not sure)
The point is that when I want to create a Player chain, it needs to be connected to Tone.Destination but I get a Failed to execute 'connect' on 'AudioNode': cannot connect to an AudioNode belonging to a different audio context. error
Idk how I could set that chain Destination to that specific offline context, don't know if it's possible.
To Reproduce
I've created a sandbox that reproduce the error https://codesandbox.io/s/wizardly-smoke-j6cw56?file=/src/App.js
Actually I almost got the hole "upload - render - download" process and I saw some people asking how to do it so maybe that sandbox could be useful, I'm new with Tone.js so probably there are better ways to solve that process.
Expected behavior
Id be awesome to put a chain with effects, or at least create new ones and just pass them some parameters, but the issue is (probably) with the chain.
What I've tried
Even pray
Additional context
There's no more context, only congratulate you for this awesome library :D

But you trying to use realtime destination in offline context.
Get offline context (change line 12 to this):
Tone.Offline((context) => {

And use destination from it:
sample.chain(...PluginArray, context.destination);

thanks for jumping in @Valent-in


Adding Password Strength Calculator

Project title
Password Strength Calculator
Project Description
Password Strength Calculator which shows the strength of the password entered in terms of a percentage bar.
Stack:

[x] Html
[x] CSS
[x] JavaScript

/assign


[Issue 10816][Proxy] Refresh client auth token

Fixes #10816
Motivation
See #10816
Modifications
Refresh client token on proxy (to lookup) in case when refresh token command have been received from broker.
Verifying this change

[x] Make sure that the change passes the CI checks.

This change added tests and can be verified as follows:

org.apache.pulsar.proxy.server.ProxyWithJwtAuthorizationTest#testRefreshClientToken

Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): (no)
The public API: (no)
The schema: (no)
The default values of configurations: (no)
The wire protocol: (no)
The rest endpoints: (no)
The admin cli options: (no)
Anything that affects deployment: (no)

Documentation
Check the box below and label this PR (if you have committer privilege).
Need to update docs?

[x] no-need-doc
Bug fix

@kkkoder I think you do too much checkstyle format in this PR. I would suggest to split them if needed

@kkkoder let me open a PR for checkstyle fix

@kkkoder let me open a PR for checkstyle fix

Ok, do it.

@kkkoder I have done in #13343, could you please pull master code, and undo the format, thanks :)

Hi @kkoderok, thanks for your contribution! Can you still work on this PR? If you don't have time, I will work on this PR.

Closed by #17831.


Internal Cache Mapping

I'm not sure if anything like this is currently supported, or even how feasible it is to build. I'd gladly take a look into it.
The idea is rather simple, but very powerful.
Say, you have a system that has many API calls happening, but some are related in many ways; for example an ecommerce system.
You have many caches stored, but with a developer defined array of properties to fetch as part of the API call (say, db fields), thus the individual item may not be able to be determined efficiently from the cache key. (Eg. Cache/Products/Product/[params]), there is no way to get the product that has been edited in the backend by that key, and so the current option is to wipe out ALL products (in the Cache/Products/Product) which is rather inefficient for one product that has changed. What would be better instead would be for the developer to set an internal map, which, based on the response from the API call, before ->set() is called, you can call ->map() with a secondary key. This way you could Map it to something like Map/Products/Product/unique-product-name, which can have a one to many relationship (it doesn't get overwritten, instead added to); and then on the backend or api client the developer does not need to know anything about how to get the keys generated by the parameter array, instead they simply can clear out the map for that product and it will automatically map to all of the actual caches that exist to clear them out.
If this is already possible, please point it out as the docs didn't come up with anything.
@tedivm Thanks.

Do you mean an implementation, or a front-end example of it in use?


Bump setuptools in pyproject.toml to >=51.0.0?

Describe the bug

While doing some digging in the setuptools documentation I came across this section: https://setuptools.pypa.io/en/latest/userguide/declarative_config.html#options which (if I'm reading it correctly) suggests that in order to use the options.entry_points key (as we do in our setup.cfg here), you must use setuptools >= 51.0.0.
Currently we specify setuptools >= 42 in pyproject.toml here
If this is correct and I'm not reading it wrong, does this mean we could get a broken install if someone uses setuptools < 51?
Given that no one (to my knowledge) has raised an issue about this I think it's safe to assume no one has fell foul of this, but it seems like something we should fix?

I agree. I don't know if we'll break something in the process, though.

What the... Pretty sure this is not new in 51. It's been around as long as I can remember.

Thinking they meant to put "41" not "51", perhaps.

Pretty sure that existed even before 41. In fact it appears to have been there in the very first version of setup.cfg: https://github.com/pypa/setuptools/pull/862.

Closing as per https://github.com/theacodes/nox/issues/553#issuecomment-1008277811, thanks @layday


go-mode tabifies incorrectly

With simple file like:
package t

var _ = `
    x
`

% cat -et t.go
package t$
$
var _ = `
     x$
`$

Save it in emacs with go-mode enabled produce:
% cat -et t.go
package t$
$
var _ = `
^Ix
`$

Note 4 spaces, which is my tab-width are expanded to one tab.
go-mode seems to set indent-tabs-mode to true.

I cannot reproduce the issue. Saving that file, neither with nor without the gofmt hook enabled, will convert spaces to tabs. indent-tabs-mode alone is not responsible for this. Are you running some other hook, such as tabify, on save? Or are you using smart tabs?

@dominikh No, here's my emacs config https://github.com/Gnouc/emacs.d
If I remove the line in go-mode.el, it works as expected.

Are you able to reproduce the issue in an emacs -Q session, with just go-mode.el loaded?

@dominikh I'm away from my laptop, will try it tonight.

@dominikh I can not reproduce with emacs -Q with only go-mode.el loaded.
I found the culprit, it's ws-butler, which auto replace spaces by tabs if ident-tabs-mode is true, and vice versa.
Sorry for this annoying.


betterdiscordctl not working  on Pop!Os

when i try to run  betterdiscordctl -s /usr/share i just get:
Discord: /usr/share/discord
Modules: /home/highom/.config/discord/0.0.9/modules
Core patched: no
Index modified: no
Linked core directory: no
Linked core repository: no

Use betterdiscordctl install -s /usr/share.


Blog post: Chart performance and tech choices

Write a blog post about the charts on covid19.ca.gov, including their performance and tech choices. I believe Aaron may have a draft to start with this.

[x] Write first draft
[ ] Content designer review of first draft
[ ] Final approval

First draft

First draft

We didn't get traction to ship this post on our site but I did write it, got excellent editing from @m-sullivan7 and it was published on the amazing performance planet site: https://calendar.perfplanet.com/2022/faster-data-visualizations/


api: split chunk and soc api

@zelig would need your input on this since I need to start adjusting the integration tests for this change to be merged

@zelig would need your input on this since I need to start adjusting the integration tests for this change to be merged


Implement the Elo Algorithm

Investigate to implement the Elo Algorithm to the matchmaking system
https://en.wikipedia.org/wiki/Elo_rating_system#Other_usage

@pH-7 this is very interesting. Nice!

Tinder no longer uses the Elo algorithm because it didn't work for them. (Google it if you don't believe me.) If you wanna take an actually algorithmic approach to this, I'd suggest maybe starting with this paper:
https://arxiv.org/abs/1905.07342

Tinder no longer uses the Elo algorithm because it didn't work for them. (Google it if you don't believe me.) If you wanna take an actually algorithmic approach to this, I'd suggest maybe starting with this paper:
https://arxiv.org/abs/1905.07342

Interesting indeed! Thanks very much for sharing this paper @no-identd
Any further suggestions are always very welcome 🤗


In memory transaction issue resolution

Adds initial EF seemingly working in-memory context.

Needs testing, basically EF should bootstrap without the exception we were seeing previously in startup.cs

I'll test this today

Nothing broke, and the InMemory transaction manager error is now gone. All tests passed locally (still experiencing the Travis CI issue with localDB) so this is good to go. I'll work with @jcocchi to integrate the InMemoryRepository into the tests.


Adding CareMessage

This is a modified version of the Contributing Guidelines.
This pull request adheres to the repository's Code of Conduct

[x] This PR contains housekeeping (URL edits, copy changes etc)
[x] You know your alphabet - company is listed in alphabetical order in the README
[x] The company directly hires employees - This may sounds odd but while awesome, this list is not for coding bootcamps, "teaching" positions a network (Teacher positions employed directly, such as Treehouse, are allowed), or networking sites for listing a CV looking for gigs
[x] The company added hires remote employees, or positions are available to remote workers and are clearly illustrated as such
[x] I am an employee of the company mentioned and confirm all details are correct
[x] Remote status has details regarding how the culture includes remote employees, how the company integrated remote workers, etc
[x] Region details any restrictions to applicants based on geography
[x] How to apply details the best approach for new applications, link to open positions, and any other help available for job hunters
[x] Any missing parts from the profile, please use <Unknown> to allow for future completion
[ ] A company profile is included - Not essential but it really helps!
[ ] A company-profile has been included for each addition to the list

Hi @danielnc - Would you be able to add a company-profile.md file as well please? Thanks!

@dougaitken created a new PR #247


init() got an unexpected keyword argument 'namedtuple_as_object' when clicking on an instance or service

Hello,
I'm getting this error when I click on an instance or service and also when I save a service or instance (probably because it takes me to the same page).
Here is the traceback:
Environment:
Request Method: GET
Request URL: http://ec2-54-75-217-178.eu-west-1.compute.amazonaws.com/service/1/
Django Version: 1.6.5
Python Version: 2.6.9
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'south',
'compressor',
'polymorphic',
'djcelery',
'mptt',
'jsonify',
'cabot.cabotapp',
'rest_framework')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Template error:
In template /opt/cabot/cabot/templates/cabotapp/service_detail.html, error at line 149
init() got an unexpected keyword argument 'namedtuple_as_object'
139 :
140 :
141 :
142 : {% endblock content %}
143 :
144 : {% block js %}
145 : {% load compress %}
146 : {% load jsonify %}
147 : {{ block.super }}
148 :
151 :
152 : {% compress js %}
153 :
154 :

Hmm. Pretty sure this is because you have an incompatible version of json: see this issue https://github.com/simplejson/simplejson/issues/37 for details.
Looking at the directory locations, you've got this installed site-wide rather than in a virtualenv which probably means you've got some other conflicting package. Can you try to install with the correct dependencies (specified in setup.py) and see if you're able to recreate?

That what the problem. Using a venv did the trick. Thank you!


refactor(ngCsp): Make use of document.head

document.head is available since IE9 (https://developer.mozilla.org/en-US/docs/Web/API/Document/head)
Saves us a bit of DOM querying during startup and a couple of bytes.

LGTM - although you might like to chime in on #11933 as this could be a moot point.


Error: ENOTDIR: not a directory, rmdir '/projectDir/dist/symlinkDir'

Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)
- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions
    "@angular-devkit/build-angular": "0.10.4",
    "@angular/cli": "7.0.4",
    "@angular/compiler-cli": "7.0.2",

Tested on Node versions 8.9.4, 8.11.1, and 10.0.0.
Repro steps

Add a symlinked folder into projectDir/dist. For example, put a symlink from one git repository's folder (i.e. projectDir) to another git repository's public assets folder (i.e. symlinkDir). The resultant folder structure should be projectDir/dist/symlinkDir.
Run ng build --output-path=dist.
Observe failure when build attempts to remove symlinkDir which is not an actual directory but is a symlink instead.

The log given by the failure
ENOTDIR: not a directory, rmdir '/projectDir/dist/symlinkDir'
Error: ENOTDIR: not a directory, rmdir '/projectDir/dist/symlinkDir'
    at Object.fs.rmdirSync (fs.js:846:18)
    at Observable.rxjs_1.Observable [as _subscribe] (/projectDir/node_modules/@angular-devkit/core/node/host.js:188:28)
    at Observable._trySubscribe (/projectDir/node_modules/rxjs/internal/Observable.js:44:25)
    at Observable.subscribe (/projectDir/node_modules/rxjs/internal/Observable.js:30:22)
    at /projectDir/node_modules/rxjs/internal/util/subscribeTo.js:22:31
    at Object.subscribeToResult (/projectDir/node_modules/rxjs/internal/util/subscribeToResult.js:10:45)
    at MergeMapSubscriber._innerSub (/projectDir/node_modules/rxjs/internal/operators/mergeMap.js:82:29)
    at MergeMapSubscriber._tryNext (/projectDir/node_modules/rxjs/internal/operators/mergeMap.js:76:14)
    at MergeMapSubscriber._next (/projectDir/node_modules/rxjs/internal/operators/mergeMap.js:59:18)
    at MergeMapSubscriber.Subscriber.next (/projectDir/node_modules/rxjs/internal/Subscriber.js:67:18)
    at MapSubscriber._next (/projectDir/node_modules/rxjs/internal/operators/map.js:55:26)
    at MapSubscriber.Subscriber.next (/projectDir/node_modules/rxjs/internal/Subscriber.js:67:18)
    at Observable.rxjs_1.Observable.obs [as _subscribe] (/projectDir/node_modules/@angular-devkit/core/node/host.js:263:21)
    at Observable._trySubscribe (/projectDir/node_modules/rxjs/internal/Observable.js:44:25)
    at Observable.subscribe (/projectDir/node_modules/rxjs/internal/Observable.js:30:22)
    at MapOperator.call (/projectDir/node_modules/rxjs/internal/operators/map.js:32:23)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: `ng build --watch --output-path=dist`
npm ERR! Exit status 1

Desired functionality
The symlinkDir symlink should be detected as a file pointer instead of a directory and either deleted or skipped (likely deleted correctly unless something is set in config). Either way, it shouldn't error out when it comes along.
Mention any other details that might be useful
It appears that when a symlinked directory is marked by Angular CLI for deletion and gets checked for isDirectory ( https://github.com/angular/angular-cli/blob/db78228fc4880374076129d21d84248937cd9269/packages/angular_devkit/core/node/host.ts#L265 ), when the check is performed in the virtual host implementation, it's currently implemented to follow symlinks, as it uses this._delegate.stat not this._delegate.lstat here: https://github.com/angular/angular-cli/blob/db78228fc4880374076129d21d84248937cd9269/packages/angular_devkit/core/src/virtual-fs/host/sync.ts#L96 -- at the very least, before the rmdirSync call, the delete code should perform a lstat check to ensure that the directory is actually a directory and not a symlinked directory.
I'm not sure if this was intentional, but there likely should be some mechanism in the virtual host to properly identify symlinks. This is likely an edge case and may not be worth the testing burden as most users expect the dist folder to be wiped out and no one creating symlinks inside of it, but there are realities of complex architectures that might need this functionality. We're looking for a workaround in the meantime.
A reasonable compromise implementation might be to provide a followSymlinks configuration setting in angular.json that will use stat on isDirectory calls if true and lstat if false.

Hey @kyliau, I will try to work on it.

Thanks for reporting this issue. Luckily, it has already been fixed in one of the recent releases. Please update to the most recent version to resolve the problem.
If the problem persists in your application after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. You can use ng new repro-app to create a new project where you reproduce the problem.


Configurable effect of non-null defaults

While discussing where exactly something like @DefaultNonnull has an effect, I repeatedly mentioned that Eclipse defines its @NonNullByDefault in a configurable way, passing the final choice to users.
I'm filing this new issues to give the different aspects of this design a home of its own.

If someone wants to champion any configurable-default features, please open new issues and please describe a small set of specific use cases in each.


not to able to install bsv tools

im getting an error ,

Can anyone help me out ??

You need to install the tcl-dev package into your system (see https://github.com/B-Lang-org/bsc). Alternatively, you can use the docker image where the BSC env is  already installed. This project is one of many: https://github.com/benycze/bsc-docker-container


What do I assign to 'meta'?

Hi, I'm trying to run your usage case you outlined.  I've got all 4 modules installed (npm) just fine with no issues, but I'm still at a loss as to what is assigned to the meta value you specified.  Here is my code so far:
const letterPath = './assets/rtf/SampleLetter.rtf'
const file2html = require('file2html')
const TextReader = require('file2html-text');
const OOXMLReader = require('file2html-ooxml');
const ImageReader = require('file2html-image');

function file2HtmlSample() {
    file2html.config({
        readers: [
            TextReader,
            OOXMLReader,
            ImageReader
        ]
    });

    var fileBuffer = fs.ReadStream(letterPath)
    var meta = {}

    file2html.read({
        fileBuffer,
        meta
    }).then((file) => {
        const {
            styles,
            content
        } = file.getData();
        // document.body.innerHTML = styles + content;
        console.log('file2Html-sample:\n', styles + content);
    });
}

Hi Mike!
It's an object with optional FileMetaInformation
file2html tries to collect all meta information from the file: size, mimeType, name, etc., see FileMetaInformation interface.
But you may override those properties by passing meta object to the file2html.read method.
BTW, RTF is not supported yet. Please, check all supported formats in this list

Hi, I've deleted the 'meta' object and changed my file to be a docx, but I'm still having issues:

C:\Users\Nick\Desktop\TPOT Dev\TPOT Electron\node_modules\file2html\lib\index.js:44 Uncaught TypeError: Cannot read property 'mimeType' of undefined
at C:\Users\Nick\Desktop\TPOT Dev\TPOT Electron\node_modules\file2html\lib\index.js:44:56
at Array.find (native)
at Object.read (C:\Users\Nick\Desktop\TPOT Dev\TPOT Electron\node_modules\file2html\lib\index.js:43:37)
at Object.file2HtmlSample (C:\Users\Nick\Desktop\TPOT Dev\TPOT Electron\assets\js\test-modules\RtfConverter.js:53:15)
at window.onload (file:///C:/Users/Nick/Desktop/TPOT%20Dev/TPOT%20Electron/assets/js/letters.js:52:15)

I think this tells me that meta still needs to be passed in and is not optional.  That, or the mimetype is not collected automatically for docx?  Not sure.  Thanks.

Separate issue, but I'll leave it here.  You've said FileMetaData is an interface, so I think of java/C# interfaces.  Do I derive from it?  Or is it a JSON object?  It looks like the latter, as JS is weak typed and has no interfaces.
If trying to use File, what does that refer to?  I really have no idea.  Is it something like this: https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getMetadata ?
My assumption is that your module is using filestream also (doesn't complain about it so far), so my natural inclination as to what 'File' means is that it's from the FileSystem module or something else.
I'm using npm, so I'm also doing the following:
const fs = require('fs')
Thanks!

I'm still getting an Uncaught TypeError, which takes me to index.js:44.

Code:
function file2HtmlSample() {
    file2html.config({
        readers: [
            TextReader,
            OOXMLReader,
            ImageReader
        ]
    });

    var fileBuffer = fs.ReadStream(letterPath)
    var meta = {
        mimeType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
    }

    file2html.read({
        fileBuffer,
        meta // : FileMetaInformation
    }).then((file) => {
        const {
            styles,
            content
        } = file.getData();
        // document.body.innerHTML = styles + content;
        console.log('file2Html-sample:\n', styles + content);
    });
}

Could I have a full example usage of FileMetaInformation?  I checked out the link you gave for Typescript and tried to emulate the Optional Parameters, with no success.
Later, after this bug, I managed to brick my project entirely by installing the ooxml engine (npm i file2html-ooxml) a second time.  Perhaps that's just a Node /Electron thing, idk.


Add documentation about non-Koalas APIs

Resolves https://github.com/databricks/koalas/issues/1414
I have added a preemptive guide to non-Koalas APIs to best practeces.
Please check.

Codecov Report

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

@@            Coverage Diff             @@
##           master    #1420      +/-   ##
==========================================
- Coverage   95.13%   92.83%   -2.30%
==========================================
  Files          34       34
  Lines        7958     7958
==========================================
- Hits         7571     7388     -183
- Misses        387      570     +183

Impacted Files
Coverage Δ

databricks/koalas/usage_logging/__init__.py
24.32% <0.00%> (-70.28%)
:arrow_down:

databricks/koalas/usage_logging/usage_logger.py
50.00% <0.00%> (-50.00%)
:arrow_down:

databricks/koalas/__init__.py
78.84% <0.00%> (-13.47%)
:arrow_down:

databricks/conftest.py
88.67% <0.00%> (-7.55%)
:arrow_down:

databricks/koalas/frame.py
93.18% <0.00%> (-3.44%)
:arrow_down:

databricks/koalas/namespace.py
85.00% <0.00%> (-1.58%)
:arrow_down:

databricks/koalas/utils.py
95.43% <0.00%> (-1.02%)
:arrow_down:

databricks/koalas/plot.py
93.33% <0.00%> (-0.96%)
:arrow_down:

databricks/koalas/testing/utils.py
78.26% <0.00%> (-0.73%)
:arrow_down:

databricks/koalas/groupby.py
91.56% <0.00%> (-0.21%)
:arrow_down:

... and 1 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 d63e747...acb6c10. Read the comment docs.

Merged. Thanks!


fix fix resize impl in array/map (#41595)

this resize function called shrink function which defined in IColumn, and function set_num_rows in Block.cpp call shrink to make column rows changed, maybe less or more.
In this situation if we would make less rows which like cut the rows, so we should also make nested data in array/map resize to the less number of rows , otherwise we will meet exception
Proposed changes
Issue Number: close #xxx

run buildall


Ember windows hangs after Confirm: Do you want to proceed (Y/N): ?

I have installed ember windows and execute ember windows command on a Windows 7 system from bash executed as an admin.
It shows:
Do you want to proceed (Y/N)?
Cursor shows up in the new line after this question.
When i type Y and enter - nothing happens,
The same for y and for n.
Cursor just goes into next line and i can type and type and press enter and nothing happens. No errors are displayed
Expected result:
I type y and the process goes further.

I am also having this issue.  I am on Windows 10, I get the same result in both admin and non-admin versions of powershell.  This result also happens if I try to just use a vanilla cmd command prompt.

I am having the same issue on Windows 7.

Same here. Windows 7

In my case the problem was that I was not running the command in the Windows PowerShell utility. I thought it was enough to launch the cmd utility as an administrator and run the command there, but it was not. Once I used PowerShell everything worked as expected.

same problem

Same problem
felixrieseberg/ember-cli-windows-addon#16

Any update? Having this problem as well. Any solution?

This might depend on how you installed it.
Solution
If you installed it as a project dependency using npm i ember-cli-windows-addon (with or without --save-dev), remove that using npm un ember-cli-windows-addon.
Then use the following commands (note, there's no -addon):
npm install -g ember-cli-windows
ember-cli-windows

Remember to use an elevated PowerShell. If there was an error, try executing Set-ExecutionPolicy Unrestricted -scope Process first.

Confirmed, Powershell ember-cli-windows worked, but ember-cli-windows seems to work from an admin cmd shell as well
I was freezing before with the addon (ember windows) under both cmd and powershell with node 6 and 8.
FWIW
I dont think I ever actually saw the documentation on these repos, just the bits from stackoverflow and finally the advice in the ember-cli windows section to use the addon.
Should ember-cli's documentation use this global or the addon? If someone found the addon first should it tell them to use ember-cli-windows first?


add contributor graph

I want to add contributor graph in readme .PLease assign this issue to me

what exactly you want to implement ?
Please share screenshot

i am creating new issue.
comment on that if you want to work on it.


Adding LICENSE

Added apache 2.0 license to project

Line 189 Should be filled out in License

Thanks for catching that, I didn't actually read all the way through it t be honest.


Project Management can not upload additional documents

Users could upload supporting documentation to initiate projects. However, users are no longer able to upload documentation to support the project moving forward.
Step 1: Initial project start

Step 2: After project has been initiated, staff is unable to upload additional documentation

Is this not supposed to be done in the reports they send in every week or month?
Sent with GitHawk

@frjo the "supporting documents' section is for financial documents relating to the contract. Report functions are for activities related to the progress of a project.

This can now be tested on test. I have removed the checks that only unlocked/editable projects have uploads links.
Please test it out in the workflow of a project and see if it works as it should.

Test is functional! Please release. Thank you.


native_sim BOARD_NATIVE_POSIX/BOARD_NATIVE_SIM depend fixes

So far native_sim is setting NATIVE_SIM_NATIVE_POSIX_COMPAT, which make native_sim pretend to be native_posix from kconfig point of view. This is done to avoid breaking users during the transition, but native_sim will eventually stop doing it.
Let's fix to incorrect checks in tree of BOARD_NATIVE_POSIX, where a driver and test work both with native_posix and native_sim, but were checking still for BOARD_NATIVE_POSIX only.

These changes are quite trivial, and in files I'm responsible for. Instead of pestering @andyross for an approval, I just change the assignee.


C0d3 CLI keeps asking for credentials

Holà,
Issue
When away from my machine after sometime, when solving problem and submitting, the c0d3 cli asks for my credentials.
Steps to Reproduce
Here's how it happened:
Switch branch, solve, submit, it asks for credentials, submit works, after 2-4h of non-related stuff, get back to solving, switch branch, solve, try to submit, it asks for credentials again.
It could be an issue with the token, it probably expires after some time.

not an issue anymore, but if this happen again please file issue with c0d3 cli: https://github.com/garageScript/c0d3-cli


Streak interrupted suddenly while it was counting fine

Describe the bug
Streak seems broken in my account even though Github contribution graph says otherwise.
To Reproduce
Steps to reproduce the behavior:

Go to my account: https://github.com/chrisK824
Click on 11th May in contributions graph
Confirm that 11th of May has one contribution

Expected behavior
Expected streak not to break on this day
Screenshots
If applicable, add screenshots to help explain your problem.
https://streak-stats.demolab.com/?user=chrisK824&theme=highcontrast&starting_year=2010
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

The stats show whatever the GitHub API returns so it's a GitHub problem and not something that can be fixed. Check this possible solution the FAQ:
https://github.com/DenverCoder1/github-readme-streak-stats/blob/main/docs/faq.md#why-doesnt-my-streak-stats-match-my-contribution-graph


Hello there!

I noticed that you had added my slope game I would like for you to use a different format. There is a updated version on my site right now.
View it here

Woah, thanks for noticing! Right now I cant get this version to work on my hardware, but, when I can get it, I´ll update it. Thanks again for reaching out. Oh, and coding the game.

I am going to add another persons slope, because I cannot get your updated versions code. Thank you for it though!

Also I have a site where I have lots of games that you can link to


Fixed some more warnings

Fixed the warnings that was left in Visual Studio.

@JohannesFinsveen can you look at why the test are failing in this PR

@JohannesFinsveen can you look at why the test are failing in this PR

Did you recreate the menu? @likp

@JohannesFinsveen can you look at why the test are failing in this PR

Did you recreate the menu? @likp

Yes, I did. I guess I should not have added that change?

@JohannesFinsveen can you look at why the test are failing in this PR

Did you recreate the menu? @likp

Yes, I did. I guess I should not have added that change?

We need to fix than, but perhape in a  different issue?


Delete bad entries?

I put in a classic manually with the wrong IP. How do I delete?

Just slide the entry in the nav bar to the right.
https://graham22.github.io/Classic/classicmonitor/help_en.html#NavigationBar


Nested Sub-Expression Support

With Meteor 1.2 came a Spacebars upgrade that allows nested sub-expressions.
{{asDollars (getArrayObjectKeySum (listActiveSegmentsWithOpportunity this.segment this.opportunity) 'oppMoveRevenue')}}

These work fantastic in Spacebar files but do not seem to work in Jade files. Any chance we could see support for this?

+1 !

+1 ... Really need this support.

+1 ... Really need this support.

Looks like this was fixed with 0.4.4. Thanks!

Actually gonna reopen this since it looks like we still can't use them in Jade conditionals. For example:
each countArray (listResults _id)

... returns nothing but errors.

Update: Appears to only fail if the last character in the line is a closing parenthesis. While the above expression does not work, the one below does.
if countArray (listResults _id) 'asc'

Hey there, +1 :-)


ratelimit plugin

Working on a ratelimit plugin for caddy: https://github.com/xuqingfeng/caddy-rate-limit
Want to hear your thoughts 🙇

That's awesome! Looking forward to seeing it completed. We'll get that on the download page. I hope others will chime in with feedback.

This is exactly what I need. Thank you!

See #79 for a previous discussion of rate limiting, maybe it will have some ideas/suggestions!

@xuqingfeng Let me know when you're ready to put this on the download page for others to use! I'll help you out with that since we're still transitioning to 0.9.
Going to close this for now, though, since there's nothing actionable for the Caddy developers to do here.
Really looking forward to it! Again, take a look at that issue I linked to ^ and see if that gives you some ideas.

The link is really helpful 😄 ,I will do more tests on it, will let you know when I'm ready.

Is this useful ? https://godoc.org/golang.org/x/time/rate

@abiosoft Yes! The implementation of token bucket is pretty convenient.

Just setup a demo site: https://caddy-rate-limit.gohack.xyz/

That's cool! I saw the 429 response after holding Cmd+R for a few seconds.

@xuqingfeng So FYI, this is already available on the download page of the Caddy website but it wasn't built into Caddy 0.9's list of directives (d'oh) but 0.9.1 will have it working fully.


Documentation Difficulties

I currently try to wrap my head around feathers-casl and read the documentation. There are some things that I have trouble understanding. Since later, I might be unable to recount these problems, I want to document them here in hope they can help to improve the documentation. I hope it is okay, that I bundled them in one issue, since I did not want to swamp the list of open issues.

"Add abilities to hooks context"
The documentation writes:  "We use this here to put ability on these objects, which makes it available to all hooks after the authenticate(...)-hook.". The code example adds the code for population to the create action, which runs when a user logs in (according to the services’ documentation).
I fail to understand how this provides the ability to all hooks that run after authentication and not just to hooks that run on "create" on the authentication service (Or is this somehow cached? I could not find anything in the main feathers documentation)

"Add the authorize-hook to the services "
This is minor, but I do not understand why
a) authorizeHook defined for each service method instead of just for "all"
(as [authenticate("jwt"), authorizeHook]) and
b) why this is not an around → all hook (like the authenticate hook in the CLI-generated feathers v5/dove code).

Using CASL with the REST (Express.js) transport
“In case you are not using sockets and want to use feathers-casl with the Express transport, you need to define the abilities right after your authenticate() hook and before the authorize() hook for each service relying on CASL.” → does this mean that the equivalent of what the code snippet below does is done for me automatically, when I use sockets and, if I use sockets, I can just expect abilities to be there? And is the setup that enables this for sockets what "Add abilities to hooks context" does?

For anyone running into these difficulties (as I initially did, moving from a REST setup to WebSockets), here is an explanation:
The after-hook for authentication/create passes the user object resulting from a successful authentication to the defineAbilities function, so that can return the rules generated for this user which are then attached to the authentication result.
When using WebSockets, this authResult is passed to the login handler in the connections.js file and if you attach the rules from the authentication results to the connection object, you end up having these accessible under params everywhere, because the WebSocket connection is stateful, unlike with REST.
Regarding the hook type, I don't really know about that but the around stuff did not work for me, so I went with before/after.
One thing I found a bit confusing is restricting access to the user entities.  This results in errors and although I thought that the plugin will let internal requests pass, I still had to add a simple hook adding a manage/all rule if the request comes without a provider. If I understand correctly, this should not be necessary, but no user, no rules, no access...


hamming: Improve error-handling behavior

As part of #275, we'd like to more closely follow idiomatic Go behavior in the face of errors.
If the hamming exercise does not have error handling, then this ticket can be closed immediately.
If it does, then follow the below steps:
Ensure err return value is of type error
It's idiomatic for the error return value to be of type error.
Most tests simply check whether err == nil or not. If we don't verify the type of err, it could be any type that has nils.
To lean on the type system, add the following line after assigning err:
var _ error = err

See the hamming tests for an example.
Ignore the normal return value when an error expected
The contract in Go is "if there's an error, assume nothing about the normal return value". Thus, we should only check the non-error return value when there is no error.
In some exercises we found that we were checking the normal return value, even when there was an error.
See the binary tests for an example of the behavior that we want.
Increment the test version
These changes break backwards compatibility. Bump the test version to let reviewers know that the exercise has changed.
This requires changing two constants:

targetTestVersion in the test file (*_test.go)

testVersion in the reference solution (example.go)

If the exercise does not have a test version, then add one, setting the value to 1.
See the version test in leap for an example.

The first part has been dealt with in #277 and the "Ignore the normal return value when an error expected" was already satisfied by the switch/case in here.


Modbus capture in profinet folder?

So far as I can tell, the file mb2.pcap in the pcaps/profinet/ directory actually contains Modbus/TCP packets, not profinet.
Unless I'm incorrect, please move it.

Feel free to create and submit a merge request with the changes

There you go. :)

Merged. Thanks!


Does Cortana support adaptive cards or not?

This doc says Cortana supports adaptive cards. But these sources say Cortana doesn't:

https://docs.microsoft.com/en-us/azure/bot-service/dotnet/bot-builder-dotnet-cortana-skill?view=azure-bot-service-3.0#display-cards-in-cortana
https://docs.botframework.com/en-us/channel-inspector/channels/Cortana?f=AdaptiveCards&e=example1

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

ID: 8504c151-082b-16fc-b4c6-9f04196788db
Version Independent ID: 62c3708c-9396-1b46-cf8e-7e72fcdcf5b5
Content: Principles of Cortana Skill Design - Cortana
Content Source: docs/skills/design-principles.md
Product: cortana
GitHub Login: @JohnBucyMSFT
Microsoft Alias: jobucy

Yes it supports adaptive cards.  I'll reach out to the owners of those docs.


Still Pending Technologies on Flash

Some issues in Flash Play on Issue #1869 is related to still not implemented technologies
(Possible Fixes?)

OGG over Flash: https://github.com/FrancisVarga/flex-ogg-example
MPEG-DASH over Flash: http://castlabs.com/open-source/dashas/

@isantolin  With OGG you mean video or audio? About MPEG-DASH, for now we'll use fallback on HLS but we are trying to see how to integrate a Flash fallback for it

@ron666 OGG Audio it's possible, but Theora/OGV video i cant found any way to playback on Flash :(

I'll check that but might need a library to play OGV video. I'll research some more. Thanks

@isantolin just to keep you posted I'm working in the Dash fallback and I think by the end of this week I'll have it ready. Right now it works but there's no way to manipulate the media with control bar

@ron666 When you get ready that feature just keep in touch to test it

@isantolin You can test DASH support now using dash.as; I'm checking with John about the Video OGG

@ron666 the file to test is "alpha-2.html"?

@isantolin Yes please and also /test/mdash/html

@isantolin As an update, OGG can only be played in certain browsers and what I've found so far is that the best option is to use MP3 for audio and MP4 for video as fallback


Long title reloading time

When accessing the "Titles"menu option it sometimes take a long time till it run smoothly (most likly due to lots of cias installed).
Would it be possible to do it in a similar way as "JK's Save Manager" did it? e.g. loading all titles once into a list to speed up re-accessing time and only refresh list with a button or once something was deleted ect?

This is a result of loading title metadata for names and icons.


Logo added with resolved issues

Related Issue
[Cite any related issue(s) this pull request addresses. If none, simply state “None”]
Fixes:  #(issue no.)
#114
Description
Added logo
[Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.]

Type of PR

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

Screenshots / videos (if applicable)
[Attach any relevant screenshots or videos demonstrating the changes. Make sure to attach before & after screenshots in your PR.]

Checklist:

[x ] I have made this change from my own.
[ x] I have taken help from some online resources.
[x ] My code follows the style guidelines of this project.
[ x] I have performed a self-review of my own code.
[ x] I have commented my code, particularly in hard-to-understand areas.
[ x] My changes generate no new warnings.
[ x] I have tested the changes thoroughly before submitting this pull request.
[ x] I have provided relevant issue numbers and screenshots after making the changes.

@shreyad2806 Please see the conflicts highlighted in the image above. Resolve the conflicts in the mentioned files. Ensure you pull all the latest changes before pushing your feature/bug fixes to the main branch. After resolving the conflicts, please open a new PR for review.
Thank you!


[Bug]:   on resetting permission the user will not be able to access the camera again

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When the user drag and drop a camera widget and then denies the permission and resetting or provides the permission the user is unable to recover the widget
he needs to delete the widget and place it all new
Steps To Reproduce

place a camera widget
ensure at first permission are provided
now block the permission
ensure camera widget turns black
Now provide the permission
and observe

Environment
Deploy Preview
Version
Cloud

@prapullac observed with reload the camera re-appears.

@prapullac observed with reload the camera re-appears.

@shwetha-ramesh , What does this mean?

@prapullac observed with reload the camera re-appears.

@shwetha-ramesh , What does this mean?

When permission is denied and enabled again, if the browser is refreshed the changes are applied.

@wmdev0808 When permission is denied and enabled again, if the browser is refreshed the changes are applied


default behaviour of adapter contamination test has changed

While previously the test data was a PASS, now the section is empty and it is a WARN.
Is this intended?

I'll investigate.  Following implementation of the automatic contamination removal function FastQC changed versions, subsequently the way that it reports and stores overrepresented sequences and adaptor contamination has changed.  This may be the reason.

The current behaviour results fromm incorrect parsing of the contaminants file.  In the absence of an adaptor contaminants file Fastqc will attempt to detect common adaptor sequence contamination over reads and output a histogram approapriately.  This is however based on common 12mers and may not indicate genuine contamination.  Instead the actual adaptor sequnces can be provided for this module, however, these sequences are longer than the test data reads, thus it will provide a WARN instead of a PASS.
Proposed solution: look at read length, if less than adaptor sequences then use default behaviour, else use user-provided contamination file.

Thanks, this has been fixed!


Running on windows 10

Hi! I would like to use ino with my arduino due, however I am running windows 10. Is ino compatible with windows?
Many thanks!

You should be able to install it on the Windows Subsystem for Linux or WSL.
But as listed here it's not on Windows itself.

It should also be noted that WSL did not initially ship with serial support.  You'll need the Fall Creators Update from late 2017 or later to be able to communicate with a board.  See here for more info.


test: check build

Checking main is building OK

Test failure seems to be a transient error. It all seems to pass now except the GraalVM one


Add JSON support and fixes associations IDs

Add JSON field support for MySQL
Fixing the bug with foreign keys (FK was always equal to PK...)
FIxing type bug (Symbol instead of Hash)


Feature/auto focus date range picker

The current DateRangePickerWrapper example utilizes the autoFocus prop to set the focusedInput prop of the DateRangePicker to null, however, the FocusedInputShape declares its prop type as:
PropTypes.oneOf([START_DATE, END_DATE]);
null is not part of this enumeration. The purpose of this pull request is to add an autoFocus prop to the DateRangePicker shape, which allows users to follow the standard set by using PropTypes.oneOf([...]) while still allowing them to disable focus in componentDidMount.
Side note: I discovered this issue by passing null as the focusedInput in my work project, and noticed Facebooks' react-scripts complain about null not being a part of the above enumeration.

Coverage remained the same at 85.071% when pulling 191b8958c97dbb69d58a8d1ef6a356d7e954b09a on DonBrody:feature/auto-focus-date-range-picker into 94262344f9f70ce362553379c99e6c9947daa2e9 on airbnb:master.

Sure, I understand that. My argument is that Facebook considers it to be a best practice to not pass null or undefined to an enumeration unless the enumeration is explicitly defined to include those values. It's their scripts that are complaining about the use of null. Without this additional prop, the code still functions as expected. This is just a best practice argument.

What scripts? I’m not familiar with this as a best practice; the ecosystem frequently passes null and undefined interchangeably to mean “none”

Facebook's create-react-app

It looks like I was mistaken. I looked into this a little more and realized my problem was unrelated. Thank you for taking the time to talk with me.


Jump to logical EOL as well as Physical EOL

When line-wrap is enables, logical EOL != physical EOL. With [End] key could only jump to logical EOL
Would greatly help with editing LONG lines in the files

Dup of https://github.com/Microsoft/vscode/issues/1424 and let's track it there.


added camera app

This code is adapted from the node-webkit wiki

Looks good for me, I added some CSS fixes https://github.com/Paxa/nw-sample-apps/commit/24693a3ec716a8f0907546d58f1981e8271376b3


EDSM API key validation not working

I have got an API key from EDSM, but after I enter it into the log agent settings window, the validate button only says 'Message not found' and doesn't accept the API key.
I have tried regenerating the API key from EDSM but this doesn't seem to help.
Any ideas?

@PaulKlein thanks for finding & reporting this - indeed there's an exception when the key is empty. You can work around this by pressing Win+R, copying there following string:
notepad %appdata%\EliteLogAgent\Settings.json
Then pasting your EDSM API key into apiKey parameter in following section:
    "EdsmUploader": {
      "apiKey": "",
      "verified": true
    }

I'll include a proper fix in the patch this weekend

@Peliia this is a separate issue - a bug in release 1.0.0. Will fix as well, thanks for reporting

Release <IP_ADDRESS>8 is out which should fix both issues

@DarkWanderer Thanks so much, I've just downloaded the new version and it's working perfectly.
Thanks for your support and very helpful app!


firebase via node unusably slow only on WSL

[win ver 10.0.16299.19 running Ubuntu Xenial installed from the windows store]
I was following this quick getting started tutorial with Firebase/Firestore for Node JS:
https://firebase.google.com/docs/firestore/quickstart?authuser=0
and noticed that queries to the database were painfully slow specifically in WSL, but not in Windows Node (both versions of node are the same: 8.9) or in a native Ubuntu Node environment
Steps:
initialize the app for your own server:
const admin = require('firebase-admin');

var serviceAccount = require("path/to/serviceAccountKey.json");

admin.initializeApp({
  credential: admin.credential.cert(serviceAccount)
});

var db = admin.firestore();

this requires installing firebase-admin to communicate with a firestore database.
then run a very simple example query:
var docRef = db.collection('users').doc('alovelace');

var setAda = docRef.set({
    first: 'Ada',
    last: 'Lovelace',
    born: 1815
});

this takes around 20 seconds in my WSL environment. In Windows node and native Ubuntu node it is instantaneous. Executing the same query in the web browser version of the tutorial, as opposed to the node version, in WSL runs instantaneously. Maybe this slowness might be due to the apparent dependency on grpc by firebase-admin-node? I can't find any WSL issues mentioning grpc, but would there be any reason grpc would run much slower in WSL than elsewhere?

Yes, I  ditched WSL2 for powershell. After running firebase serve in WSL it takes multiple seconds just to send a request back and forth. File downloads/uploads take even longer. I wouldn't advice running the emulators in WSL.

@nicobrinkkemper was your project stored in your Windows drive? WSL2 has faster file system performance than WSL 1 as long as you are running inside of your Linux root file system. Check our docs page for more info.
@dontsave in general this seems related to file system performance in WSL1, which we're tracking on issue https://github.com/microsoft/WSL/issues/873. WSL2 is aimed at fixing this issue.

Old and closed issue, but I'll leave my comment.
After removing firebase-tools from windows and installing only on WSL2 everything worked like a charm.


upgrade to diagrams-1.3

I've updated the code and examples to work with diagrams 1.3 as per their migration guide.
I was able to get the using-haskell-qrencode.hs example working, but I couldn't get using-qrcode.hs to work from stdin, but it was fine with:
let input = "TEXT"

instead of:
input <- getContents

Thanks, that's awesome!  Released as version 1.3.


[ThorChain]: change deposit function to depositWithExpiry

Description
fix #2893
TODO: unit tests on avax with expiry

coverage false positive

I still see Code coverage drops to 94.9% (current is 95.0%) on latest master

I still see Code coverage drops to 94.9% (current is 95.0%) on latest master

yeah will add some UT in order to increase coverage


Update using-the-debuggerdisplay-attribute.md

Fixed typo
DebuggerBrowseable -> DebuggerBrowsable

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

Merged per email from @j-martens


Support LocalAI as a provider

LocalAI has a OpenAI compatible API. Two ways to support this as a provider:

Add a provider for LocalAI.
Add the following options to the OpenAI provider:

Model name would have to be editable, not from a fixed list
Base URL should be configurable

Many tools do it like described in Option 2 above. This would also make it possible for people to work with OpenAI fined-tuned models. So that's a win-win option.

I'm not sure what benefits this provides that aren't already in the software. You can use Ollama if you prefer local models. Base URL can already be modified for OpenAI (I think via the settings window, this was an old issue). There are N LLM APIs that try to do what Ollama did (before Ollama was Dalai...) and there's no point in spending effort supporting all custom solutions. I would suggest that you write a Custom Provider if you prefer to use LocalAI.
Closing this issue momentarily unless someone else wants it.

By LocalAI I am referring to https://github.com/mudler/LocalAI
But really, I am mostly mentioning support for any OpenAI compatible locally (or not) hosted service. You already have the support for OpenAI and as you pointed out, I can change the Base URL.
What I can't do however when using OpenAI, is select an arbitrary model name.
Therefore, all that I am really asking for is being able to change the model name to whatever I want. Not from a fixed list.
This would also benefit regular OpenAI because I could use fine-tuned model I create on OpenAI.
I changed the title accordingly.


@PathParam's type identification doesn't work well with nullable stuff

I have this widget
class XView extends StatelessWidget {
  const XView({Key? key, @PathParam('id') this.id}) : super(key: key);

  final int? id;

  @override
  Widget build(BuildContext context) {
    return Container();
  }
}

and this route
MaterialRoute<void>(path: '/x/:id', page: XView),

which generates the following code in app.router.dart
class StackedRouter extends RouterBase {
  @override
  List<RouteDef> get routes => _routes;
  final _routes = <RouteDef>[
    RouteDef(Routes.xView, page: XView),
    ...
  ];
  @override
  Map<Type, StackedRouteFactory> get pagesMap => _pagesMap;
  final _pagesMap = <Type, StackedRouteFactory>{
    XView: (data) {
      var args = data.getArgs<XViewArguments>(
        orElse: () => XViewArguments(),
      );
      return MaterialPageRoute<void>(
        builder: (context) => XView(
          key: args.key,
          id: data.pathParams['id'].value,
        ),
        settings: data,
      );
    },
    ...
  };
}

The line
id: data.pathParams['id'].value,

leads to the error
The argument type 'dynamic' can't be assigned to the parameter type 'int?'.

If I were to make the following change in XView
-   final int? id;
+   final int id;

the code generator would have the following results instead
-            id: data.pathParams['id'].value,
+            id: data.pathParams['id'].intValue,

However, that still wouldn't work as .intValue returns an int? which cannot be assigned to an int.
I believe the issue here is the code generator is only recognising int and not int? as something to generate intValue for.

@skytect this works for us. We don't use the PathParam functionality so it might be out of date.
Will take a look at this.
What is the expected output of the generator?

Also, thank you for the well detailed issue.

Fixed and released in latest versions


After testing, it was found that there is a noticeable lag.

After testing, it was found that there is a noticeable lag.
Sometimes there is no response when pressed.

Could you provide more details as to how and when it happens? Do you have this problem with all the buttons?


Dymanic dataset

I'm using typeahed. dataset initialized only once.  I neet to change dataset after type some symbol. How can I produce this?

In the meantime, can the constructor take an array of dataset objects or does it have to be a comma separated list?


fix bug involving garbage collection

This commit fixes a bug that occurs when a young collection cycle starts
in between filling up an old generation memory block, and the allocation
of a fresh block in the oldspace.

I would love to have a regression test for this, but I have no idea how to reliably trigger the exact sequence of events that leads to the bug, which is:

An old generation memory block gets completely filled to the exact byte.
A young generation collection occurs in which at least one object is promoted to the old generation, before the new old generation block has been allocated yet.

In practice, the exact same semantics, seemingly deterministic, can sometimes trigger this bug and sometimes not, depending on the exact version of gmp or mpfr you have installed. So I really have no idea how to reliably test for this.


ARTEMIS-1447 JDBC NodeManager to support JDBC HA Shared Store

It fixes the NPE on server start due to:

missing SqlProviderFactory
missing executor factory/scheduled pool (ie using exclusive scheduled pools)

It fixes the WARNINGS due to wrong slowness detection while renewing JdbcLeaseLock.

I have removed that constructor... I have run the whole testsuite.. it's all good.


python310Packages.mautrix: 0.14.10 -> 0.15.6

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.mautrix is: "A Python 3 asyncio Matrix framework."
meta.homepage for python310Packages.mautrix is: "https://github.com/tulir/mautrix-python"
meta.changelog for python310Packages.mautrix is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 0.15.6 with grep in /nix/store/yj499zl80rqxn0kjfs2c4g2da6zshpnq-python3.10-mautrix-0.15.6

found 0.15.6 in filename of file in /nix/store/yj499zl80rqxn0kjfs2c4g2da6zshpnq-python3.10-mautrix-0.15.6

Rebuild report (if merged into master) (click to expand)

13 total rebuild path(s)

8 package rebuild(s)

8 x86_64-linux rebuild(s)
5 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
heisenbridge
mautrix-facebook
mautrix-signal
mautrix-telegram
python310Packages.mautrix
python310Packages.mautrix-appservice
python39Packages.mautrix
python39Packages.mautrix-appservice

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/yj499zl80rqxn0kjfs2c4g2da6zshpnq-python3.10-mautrix-0.15.6 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.mautrix https://github.com/r-ryantm/nixpkgs/archive/9d78cedd4dad7f14f9f72fc790309c6dd84babb2.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/yj499zl80rqxn0kjfs2c4g2da6zshpnq-python3.10-mautrix-0.15.6
ls -la /nix/store/yj499zl80rqxn0kjfs2c4g2da6zshpnq-python3.10-mautrix-0.15.6/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

3 packages failed to build:

heisenbridge
mautrix-signal
mautrix-telegram

3 packages built:

mautrix-facebook
python310Packages.mautrix
python39Packages.mautrix

Maintainer pings
cc @nyanloutre @ma27 @sumnerevans for testing.

Pinging maintainers of failing packages: @nyanloutre @Ma27 @sumnerevans @expipiplus1
This update is required for a pending update of mautrix-facebook so I'd like to see this get in soon.

mautrix-facebook update is https://github.com/NixOS/nixpkgs/pull/168145 which includes this commit.

I asked Tulir to make releases for the rest of the mautrix bridges so we can update to tagged releases.

Why close this? I was going to use this issue to coordinate the release.

Why close this? I was going to use this issue to coordinate the release.

create a pr which updates all the mautrix packages

Done by 135764ebbabbd2d2f935b0ab449b6f5eb3f1deb8.


Encourage smaller/more localised changesets?

When reviewing history at osm.org, it is not uncommon to see changesets that span the entire world. Frequently these are made by the iD editor at osm.org. (Recent example: https://www.openstreetmap.org/changeset/96809971 )
Given changesets should be localised and small (experts will know when to violate this), it would be nice to suggest to commit changes before working on a different area: that is, track modifications and warn when it looks like they're far away.

My experience is that iD's workflow tends to encourage small changesets already

My experience is that iD's workflow tends to encourage small changesets already

Duplicate of https://github.com/openstreetmap/iD/issues/7434

Duplicate of https://github.com/openstreetmap/iD/issues/7434

Duplicate of #7434

Yep, see this and #5424.

Duplicate of #7434

Yep, see this and #5424.


Add --run-whisper-locally option

Add the option to run whisper locally with a --run-whisper-locally option.

Create a new requirements-local-whisper.txt which would include all dependencies + whisper or stable-ts
Add --run-whisper-locally optional argument
Only import whisper if the user has selected to run the model locally

If the library cannot be imported tell the user to install the correct dependencies from requirements-local-whisper.txt

Get the transcript from the local run of whisper
Continue with the rest of the pipeline as it was before

Hi, is it possible to work on this? I am very interested to give it a try 😊

It's up for grabs, go for it! :+1:


ValueError: Invalid frame length. expected 512 but received 169984

im making my voice assistant but ive come across this error:
ValueError: Invalid frame length. expected 512 but received 169984
what does this mean how can i fix it?
def recognize_speech():
with sr.Microphone() as source:
print("Listening for wake word...")
    # Continuously listen for audio until the wake word is detected
    while True:
        audio = r.listen(source)

        # Process audio for wake word detection
        pcm = audio.frame_data
        keyword_index = handle.process(pcm)

        # If wake word is detected, break out of the loop
        if keyword_index >= 0:
            print("Wake word detected!")
            break

here is relevant code snippet

Please read the documentation and refer to our demos before posting an issue. As the error message said, you are passing in a frame that is too large to .process(). The frame size required is specified by .frameLength and is 512 as the message suggested.  You'll need to break up that larger frame into smaller ones.

oh thanks so much, sorry for that.


docs: adjust page header patterns to use Button.layouts for mobile full width

Decided against changing the pattern for now, because:

I have to move media query into js with matchMedia
I have to toggle fullWidth layout in props
The SearchInput is the next thing to require fullWidth support. Where does it end?

The original solution was in CSS only and used descendent selectors to modify button/input widths.  Maybe not that bad.  Also not perfect.


init with proposed naming convention changes

moduleType / typeID -> moduleTypeId
supportsAccountMode -> supportsExecutionMode
should we change enums MODULE_TYPE_* as well?

lgtm thank you ser!


Allow ClipRRect.borderRadius to support BorderRadiusDirectional

Fixes #91997
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

I restarted the failed check. If it doesn't pass, you may have to rebase this PR to the latest master.

I pushed an empty commit. Hopefully all tests will pass now


Explosion of Errors

When I use the UI, sometimes an explosion of warnings will start happening. I'm not sure what causes it, but it's pretty hard to run because the stderr buffer will overflow and the program will quit, often before I can get to 10 blocks.

oh maybe this is happening because siad is panicking.

that's the problem. Is there a way to more gracefully detect that siad has stopped responding?

oh this is already discussed in #14


Add Tuya dimmer variation _TZ3210_i680rtja

You tested if the dimmer works correctly with this?

Yes, it only removes the color cluster from the endpoints.  As the _TZ3210_i680rtja is a single channel led controller it is not needed.


[QUESTION] Can guests view Microsoft content on the Learning Pathways site?

Hi all,
I am wondering if guests that are invited to a Microsoft Learning Pathways site can view the training content?
I work in a Group with several tenants. I would like to be able to create a single site (on the French tenant) and invite all the employees of the subsidiaries (from different tenants) as visitors to the site. After a test, I have the impression that the guests see all the content of the site EXCEPT the Microsoft training modules (page Microsoft 365 training).
Can you please confirm that it is indeed the case?
Thank you in advance
Magali

The content of Microsoft Learning Pathways is publicly available on Microsoft Sites.
However, if they can view the web parts of Microsoft Learning Pathways is a question of the tenant configuration.
If the tenant has CDN enable, then yes.
https://learn.microsoft.com/en-us/sharepoint/dev/spfx/enable-microsoft-365-content-delivery-network?tabs=msposh
If CDN is not enabled, they cannot access the resources of the web parts, and only people with proper user accounts can access the information.
It also depends on the configured sharing options of the Microsoft Learning Pathways site collection.

Hi @Magali12345,
Thanks for reaching out to us!
Could you please let us know whether the guest user is seeing any error in the Microsoft 365 training page?
Generally Guest users might receive an error while using the SPFX webpart as they will not have access to AppCatalog site unless the access is provided explicitly.

Hello @v-prigunasek
Thank you for your answer.
This is what the guest user sees in the Microsoft 365 training page :

Do you think that it is linked to the non access to AppCatalog?

Yes, right. It is related to the access issue for external users on "Client Side Assets" library in the App Catalog site.
If you have a business need to allow external users to access your SPFX webparts in your tenant, then they should be added to the "Client Side Assets" library with Read permissions.
You can follow below steps to add permissions for external users:

Turn ON external sharing for your M365 tenant.

Download & open SharePoint Online Management Shell and run below commands using administrator account:
Connect-SPOService -Url https://-admin.sharepoint.com
Set-SPOTenant -ShowAllUsersClaim $true

Grant "Read" permissions to All Users(membership) group on App Catalog site (https://-admin.sharepoint.com/sites/AppCatalog/_layouts/user.aspx) or on "Client Side Assets" library (https://-admin.sharepoint.com/sites/AppCatalog/ClientSideAssets/AllItems.aspx) in App Catalog site as shown below:

Incase, if you don't want to provide read access to All Users except few guest users, then you can skip step 2, and add the set of guest users directly to the library with Read permissions.

Let me know if you need any additional information.

It works! Thank you @v-prigunasek for your help!

Granted Read permissions to the AppCatalog to guest users solved the problem.


Feature/nmea extraction

NMEA parser and basic handling functions

Codecov Report

Merging #211 (8ca2f1f) into development (58961e8) will increase coverage by 0.29%.
The diff coverage is 90.99%.

@@               Coverage Diff               @@
##           development     #211      +/-   ##
===============================================
+ Coverage        69.97%   70.26%   +0.29%
===============================================
  Files               32       33       +1
  Lines             3087     3155      +68
===============================================
+ Hits              2160     2217      +57
- Misses             927      938      +11

Impacted Files
Coverage Δ

endaq/ide/measurement.py
89.17% <ø> (-0.14%)
:arrow_down:

endaq/ide/nmea.py
90.99% <90.99%> (ø)

endaq/batch/analyzer.py
90.61% <0.00%> (-1.23%)
:arrow_down:

endaq/batch/utils/ide_utils.py
85.10% <0.00%> (-1.17%)
:arrow_down:

endaq/cloud/core.py
20.13% <0.00%> (-1.10%)
:arrow_down:

endaq/calc/shock.py
89.14% <0.00%> (-0.07%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Chore: Typo fixed in RPG.rivet-project file

Typo fixed in examples/rpg/RPG.rivet-project file:
demostrate -> demonstrate

Thank you!


The test result from uploaded FSC147.pth does not match the result of the paper

The test result from uploaded FSC147.pth does not match the result of the paper.
The inference result for FSC147 test data is MAE 15.71, RMSE 104.99. I use the FSC147 fine-tuned weights which you upload on the document.
However, the zero shot result is similar to the result of the paper.
Few shot : 15.71 / 104.99
Zero shot: 14.70 / 106.87
I ran the evaluation code with torch 1.10, timm (0.3.2, 0.4.5). I tried 0.3.2 and 0.4.5 version of timm.
Is there any way to fix this issue?

I found the reason.
There was a minor code mistake.
FSC_test_cross(few_shot).py
rects = list()
for bbox in bboxes:
x1 = int(bbox[0][0] * scale_factor_W)
y1 = int(bbox[0][1] * scale_factor_H)
x2 = int(bbox[1][0] * scale_factor_W)  ### change to bbox[2][0]
y2 = int(bbox[1][1] * scale_factor_H)   ### change to bbox[2][1]
rects.append([y1, x1, y2, x2])

Hi @Jyerim, sorry for introducing this mistake.
Can you share your new results? My experiments with the original test code, without this error, are still quite different with respect to the results reported in the paper, and I'd like to know if it is due to the different PyTorch/timm version.
I tested the few shot counting task with the uploaded weights FSC147.pth:

With the test script published by @Verg-Avesta I obtain MAE: 14.97 and RMSE: 106.50;
With my script with your fix I get MAE: 13.00, RMSE: 105.75;
The results in the paper are MAE: 11.95, RMSE: 91.23.

You can check the difference between the two scripts here.

I don't think the difference of PyTorch/timm version will make the result vary so much. Maybe there is something wrong with the 0-shot and 3-shot setting? Or maybe you din't use test-time normalisation? In Issue #7, he used the checkpoint I uploaded and got the result of MAE: 12.44, RMSE: 89.86, so there might be something wrong with the test script you used.

Thank you @Verg-Avesta, I managed to obtain the results you mentioned.
I'll open a new pull request with the fix in a few minutes.


Reduce numerous workspace/preferences fetches

💻 Environment
Platform: Library
📒 Description
We fetch /workspaces/preferences too many times. It is actually used to detect if the user has any workspaces left. Currently, it seems that it is triggered every time the user gets an error from the backend. We should narrow it down to certain error that indicates this scenario is possible. The error is probably something like 403 Forbidden

Problem
Every time the periodic or manual syncing is done, we're performing 4 requests to the server: /me, /me/workspaces, /me/workspaces/preferences, and /me/preferences/desktop.
Proposed solution

Do not perform  /me/workspaces/preferences/ and /me/preferences/desktop requests when periodic syncing is done.
Keep performing all 4 requests when full syncing is done.
When the client receives an error due to locked time entry, perform me/workspaces/preferences request in order to update the information on locked reports in the workspaces that could cause the locked time entry error.

This reduces the number of requests during non-user-triggered syncs by 50%.

@IndrekV In order to test the solution in the case when the entries are locked during the application runtime, I'd need access to or the help of an admin account of a premium workspace. Could you please help with that?


support angular

this creates out of the box support as an angular module

I went through installing and the contributing readme.  Looks like you're using a deprecated transpiler that doesn't even have a website anymore, so I don't know how to rewrite this pull request so your transpiler will output the correct content, sorry.

Correct me if I'm wrong, but wouldn't this make it the case that moment would always attach as an angular module instead of to the global namespace if angular were loaded first?
I could see that screwing up a lot of build processes where moment was assumed to be in the global namespace. Plenty of people configure it that way.
I'm open to opinions of the other maintainers on this repo and the community, but I'm not sure if support for specific JS frameworks is a road we want to go down.

why not support both?  It's only a ternary because that's how it was written before.  It doesn't have to be one or the other.

It is just unsafe because of what Maggie pointed out. We could provide a few lines of code in our docs page on how to load it but not like this for sure.
Can you point to any other projects that do what you implemented here?

@ichernev your statement is blatantly false.  It's not "unsafe" for any reason.  I am certainly happy to change it so it's not a ternary, but there's no reason not to enable it.  @maggiepint pointed out that my way would be "one or the other" and I'm perfectly ok with changing that, but don't spout flat out falsehoods like "It is just unsafe".

@deltreey, you may want to look into https://github.com/urish/angular-moment or https://github.com/urish/angular2-moment for Angular+Moment support.

@deltreey we have a work in progress to switch the transpiler in #3090.
I'm in agreement with the rest of the core team.  Support for specific frameworks is out of scope, and better handled by specific implementations like the angular-moment projects that Tim mentioned.
Imagine if we had to do this for every JavaScript framework out there.  The list would be huge, and never-ending.
Thanks for the suggestion, and we look forward to future contributions, but on this particular one we'll pass.

It's worth noting on this pull request that it is not difficult to inject moment into angular using a few different methods. Angular moment is by no means an absolute requirement.
http://stackoverflow.com/questions/23727411/how-to-get-full-momentjs-api-inside-angular-view
http://www.jvandemo.com/how-to-properly-integrate-non-angularjs-libraries-in-your-angularjs-application/


Auth providers - Can't manage users/groups members for options 2 and 3 - those not allowing any user

Rancher version: v2.5-head (02/01/2021) 610920447
This was tested using Keycloak but might be a global issue on auth providers
After enabling auth I can login with the admin principal but when editing the users or groups from the Dashboard UI i can't save new users for options 2 and 3.

Allow members of clusters and projects, plus authorized users & groups
Restrict access to only the auhorized users & groups

I click save but I return to the UI and the new user or group i added is not listed.
View the access Config

Edit the access Config and Save

Result

If I go to the Ember UI i don't see it there either. Editing this authorization from Ember UI works as expected.

ok so @anupama2501 confirmed this in LDAP based auth, I did this in SAML based, so this might confirm a global issue
#2254

Rancher version v2.5-head (02/04/2021) 8201e08
I've opened a separate issue for enabling SAML auth. https://github.com/rancher/dashboard/issues/2292
I fall back enabling Keycloak and Okta from Ember UI but when I try to add a group or user from the Edit Config view I can't add users/groups.

Rancher version v2.5-head (02/18/2021) 03b8153
I was able to manage the users and groups in the users list in both site access options:

Allow members of clusters and projects, plus authorized users & groups
Restrict access to only the auhorized users & groups


fix: update setting title to extension

fixes #5 !

Thanks @piyush-vaviya for the contribution, Will take a look at your PR now!

@all-contributors please add @piyush-vaviya for bug


fix #2427 compileAsync a schema with discriminator and $ref

Make the discriminator code generation throw MissingRefError when the $ref does not synchronously resolve so that compileAsync can loadSchema and retry.

What issue does this pull request resolve?
#2427
What changes did you make?
Make the discriminator code generation throw MissingRefError when the $ref does not synchronously resolve so that compileAsync can loadSchema and retry.
Is there anything that requires more attention while reviewing?
The existing tests create separate test Ajv instances by calling withStandalone(getAjvInstances(AjvClass, …)) (https://github.com/ajv-validator/ajv/blob/v8.13.0/spec/discriminator.spec.ts#L22). I could not directly reuse those Ajv instances because I need to add the loadSchema option and I can’t call compileAsync on an Ajv after withStandalone. For now I only called new _Ajv. To what extent should I try creating separate ajv, ajv2019, standalone instances in the test?

I've made some small changes just to get it passing linting and see how the tests run.

Not sure why coveralls is erroring. Will try a clean branch and see if I get the same issue.

This has been moved to #2433 due to coveralls issues.


[FLINK-13632] Port LockableTypeSerializer upgrade test to TypeSerializerUpgradeTestBase

What is the purpose of the change
Port LockableTypeSerializer upgrade test to TypeSerializerUpgradeTestBase
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable)

verified the migration test with generated test-data on release-1.9