text:
try edit

when i try edit in .js archive it says "VARIABLE NOT DEFINED" but is defined but above , how to do ?

??

?? [x2]

Which .js file are you talking about?

When I try to edit some contenido
Javascript content tells me that variable is not defined, that's because the variable is defined in a separate place to what I'm editing and javascript receives orders from top to bottom, should I have to rename the variable or what do I do?

'contenido'?
I'm English.

Right , this might be an issue with your editor .

@gyeyoqu Do you even know JS?

What variable are you trying to edit?

This project is becomeing like OgarUL. 387 issues already. And a lot of them look like OgarUL issues.

Try to edit something related to "x" variable,If that variable is too far from what I'm editing, it tells me that the variable is not defined,
Should I define the variable again??

Try to edit something related to "x" variable,If that variable is too far from what I'm editing, it tells me that the variable is not defined,
Should I define the variable again??

@Andrews54757 Is that a joke? 2017 Quote of the year: "This project[MultiOgar-Edited] is becomeing like OgarUL", I'm still laughing as I am typing this.

haha


text:
updateMoveEngine using a lot of CPU

I am profiling the code to make it faster, and have found that updateMoveEngine is the culprit. Does anyone know what could be slowing it down the most? I'm trying to refactor the code to get more information about what is slow from the profiler.

Quadtree.

@ZfsrGhS953  spatial hash is better?

Yes, but there are even better collision detection algorithms. You'll see them once I finish making my own server software.

The updateMoveEngine function was removed and its contents were placed inside of mainLoop at the very start of this repository a few months ago. Please make sure you are running the latest version

source: gharchive/issue

license_type: permissive

license_source: github-api


text:
Problem when trianing on DAVIS16

Hi, I'm really interested in your work, but there are something wrong when I train the sat only on davis16 dataset.
DAVIS
|── Annotations
|        |── 480p # annotation for davis2017
|        |── 480p_2016 # annotation for davis2016
|── ImageSets
|        |──2016
|        |──2017
|── JPEGImages
|         |── 480p

There is something wrong with one of the annotations of davis2016.("bear/00077.png")
When generating mask for vos(TrackPairSampler._generate_mask_for_vos), the mask's shape is (480, 854, 2).

license: MIT


text:
DateTime.Humanize is not taking Timezone information into account

It seems Humanize() is not taking the correct timezone.    The results are taking UTC dates not the local dates.  My current timezone is CEST (currently UTC + 2).  When I add 2 hours to the current DateTime.Now, it returns 4 hours further.  I am testing version 1.36.
static void Main(string[] args)
    {
        Console.WriteLine(DateTime.Now.AddHours(30).Humanize());  // tomorrow
        Console.WriteLine(DateTime.Now.AddHours(2).Humanize()); // 4 hours from now
        Console.WriteLine(DateTime.Now.AddMinutes(-2).Humanize()); // an hour from now
        Console.WriteLine(DateTimeOffset.UtcNow.AddHours(2).Humanize()); // 2 hours from now (correct)
        Console.Read();
    }

Thanks for reporting this.
Can you please try v1.34 to see if you get the desired behavior? A change
was introduced to this method on v1.35 which wasn't supposed to be a
breaking change but this feels related to that !!
On 24/05/2015 9:19 PM, "Damiaan" notifications@github.com wrote:

It seems Humanize() is not taking the correct timezone. The results are
taking UTC dates not the local dates. My current timezone is CEST
(currently UTC + 2). When I add 2 hours to the current DateTime.Now, it
returns 4 hours further. I am testing version 1.36.
static void Main(string[] args)
{
Console.WriteLine(DateTime.Now.AddHours(30).Humanize());  // tomorrow
Console.WriteLine(DateTime.Now.AddHours(2).Humanize()); // 4 hours from now
Console.WriteLine(DateTime.Now.AddMinutes(-2).Humanize()); // an hour from now
Console.WriteLine(DateTimeOffset.UtcNow.AddHours(2).Humanize()); // 2 hours from now (correct)
Console.Read();
}
—
Reply to this email directly or view it on GitHub
https://github.com/MehdiK/Humanizer/issues/418.

Tried 1.33.7 and 1.34, but doesn't seem to solve the issue.

Oh, actually I take that back. Humanizer by default uses UTC timezone. If
you want your time to be compared against local time then you should pass a
false to the utcDate param. More info on the readme
https://github.com/MehdiK/Humanizer#humanize-datetime
Hope this answers your question
On 24/05/2015 9:48 PM, "Mehdi Khalili" me@mehdi-khalili.com wrote:

Thanks for reporting this.
Can you please try v1.34 to see if you get the desired behavior? A change
was introduced to this method on v1.35 which wasn't supposed to be a
breaking change but this feels related to that !!
On 24/05/2015 9:19 PM, "Damiaan" notifications@github.com wrote:

It seems Humanize() is not taking the correct timezone. The results are
taking UTC dates not the local dates. My current timezone is CEST
(currently UTC + 2). When I add 2 hours to the current DateTime.Now, it
returns 4 hours further. I am testing version 1.36.
static void Main(string[] args)
{
Console.WriteLine(DateTime.Now.AddHours(30).Humanize());  // tomorrow
Console.WriteLine(DateTime.Now.AddHours(2).Humanize()); // 4 hours from now
Console.WriteLine(DateTime.Now.AddMinutes(-2).Humanize()); // an hour from now
Console.WriteLine(DateTimeOffset.UtcNow.AddHours(2).Humanize()); // 2 hours from now (correct)
Console.Read();
}
—
Reply to this email directly or view it on GitHub
https://github.com/MehdiK/Humanizer/issues/418.

Solves the issue.  But if you are "humanizing" you tend to use local dates, and not UTC.  Isn't it better to supply have false as default value for the utcDate ?
Or can we overwrite a default configuration somewhere?

On second though, I can't really care at the moment, because this is only true for desktop applications.  I'll be working on a (cloud) server, which is running in UTC anyway.   I'll close the issue.
(but i still think you should consider passing false as default for the utcDate param)

Thanks @dampee. I think the default value should be UTC. You should almost never use anything other than UTC or DateTimeOffset values anywhere otherwise things get really ugly over different timezones or over daylight saving. In fact some devs think that DateTime should be deprecated.

authors: MehdiK dampee

repo: MehdiK/Humanizer

license: mit

license_source: bigquery


text:
Decreace log level

Would it be possible to decrease the log level fpr the requests from INFO to DEBUG?
Also for some other log messages (i.e. calculated time value in minute and second).

I will change this in the next versions.

done

authors: MeisterTR modmax


text:
是否支持加固？

是否支持加固？

支持加固，美团app自己也在使用加固

repo: Meituan-Dianping/Robust


text:
当 .vue 文件内 没有 export default {} 时报错不友好

[在此简单描述您的建议]
我建议可以再 .vue 文件内缺少 <script>export default {}</script> 时给出友好的提示，快速帮助开发者debug

考虑之后决定不加这个提示。

authors: confirmTing hucq

repo: Meituan-Dianping/mpvue


text:
Feature/people living in/not living in cities per continent

Report 23.

Haven't seen these extra codcov validation checks.  don't think they affect code integrity though.

source: gharchive/pull-request

authors: DavidUrracaOrdiz PeterWau

repo: MelissaAstbury/SEMPopulationInformation


text:
[melon-types] Types are not fetching internals correctly

Excepted:

Current:

Solved in #159

repo: MelonRuntime/Melon


text:
rollup fails with id.endsWith is not a function

I'm trying to vite build with an import to v86-module's v86.wasm blob. However, this seems to cause rollup to crash:
vite build --outDir $PROJECT_ROOT/build/site
vite v4.1.4 building for production...
✓ 34 modules transformed.
9:05:50 PM [vite-plugin-svelte] dom compile done.
package 	files	  time	   avg
libdb.so	    2	97.1ms	48.5ms
[commonjs--resolver] id.endsWith is not a function
error during build:
TypeError: id.endsWith is not a function
    at isWrappedId (file:///home/diamond/Scripts/libdb.so/node_modules/vite/dist/node/chunks/dep-ca21228b.js:7713:40)
    at Object.resolveId (file:///home/diamond/Scripts/libdb.so/node_modules/vite/dist/node/chunks/dep-ca21228b.js:7922:11)
    at file:///home/diamond/Scripts/libdb.so/node_modules/rollup/dist/es/shared/node-entry.js:24343:40
    at async PluginDriver.hookFirstAndGetPlugin (file:///home/diamond/Scripts/libdb.so/node_modules/rollup/dist/es/shared/node-entry.js:24243:28)
    at async resolveId (file:///home/diamond/Scripts/libdb.so/node_modules/rollup/dist/es/shared/node-entry.js:23187:26)
    at async ModuleLoader.loadEntryModule (file:///home/diamond/Scripts/libdb.so/node_modules/rollup/dist/es/shared/node-entry.js:23796:33)
    at async Promise.all (index 1)
    at async Promise.all (index 0)
make: *** [Makefile:20: build/site] Error 1

Here are a few relevant files:

vite.config.js
import { defineConfig, loadEnv } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import wasm from "vite-plugin-wasm";
import type * as vite from "vite";
import * as path from "path";
import sveltePreprocess from "svelte-preprocess";

const root = path.resolve(__dirname);

export default defineConfig({
  plugins: [
    svelte({
      preprocess: sveltePreprocess(),
    }),
    wasm(),
  ],
  root: path.join(root, "site"),
  envPrefix: ["BUILD_"],
  publicDir: path.join(root, "site", "public"),
  server: {
    port: 5000,
  },
  build: {
    emptyOutDir: true,
    rollupOptions: {
      output: {
        format: "esm",
        manualChunks: {
          vm: ["v86"],
          vmmisc: [],
          terminal: ["xterm", /xterm-addon-.*/],
        },
      },
      external: ["node_modules/v86/build/v86.wasm"],
    },
    target: "esnext",
  },
  // https://github.com/vitejs/vite/issues/7385#issuecomment-1286606298
  resolve: {
    alias: {
      "#/libdb.so": root,
    },
  },
});

site/lib/vm.ts (which imports the wasm blob)
const RAMSize = 128 * 1024 * 1024; // 128 MB
const VGASize = 8 * 1024 * 1024; // 8 MB

export async function spawn() {
  // @ts-ignore
  const v86 = await import("v86");
  // @ts-ignore
  const v86wasm = await import("v86/build/v86.wasm");
  const v86bios = await import("v86/bios/seabios.bin?url");

  const vm = v86.V86Starter({
    // TODO: swap this out for a wasm loader
    wasm_fn: v86wasm,
    memory_size: RAMSize,
    vga_memory_size: VGASize,
    autostart: true,
  });
}

The experimental repository is over at diamondburned/libdb.so. Build with either make or vite build.

Sorry, I misconfigured something else in vite.config.js. It was probably the manualChunks.

I ran into the same error when my config structure in rollupOptions was incorrect.

authors: diamondburned gknapp

repo: Menci/vite-plugin-wasm


text:
Redesign gauntlet and basin to allow for right click interactions natively

Switch from a system of strict packet interception and manual input handling to a system that uses onItemUse contexts so that gauntlet and basin have more intuitive "native" right click behaviors.
This is harder than it sounds.

This is done.

repo: MercuriusXeno/Goo


text:
update environment to be platform agnostic #146

a more portable lock file without MO specific URLs. closes #146
created environment from new lock file and sucesfully ran w'sheets 1 and 2.

@gredmond-mo - good call on the testing. I needed to remove two additional channels from the lock file. Works now on WSL2 on a new dirty laptop and still on VDI

repo: MetOffice/PyPRECIS


text:
🛑 Matataki FE Token is down

In 142a609, Matataki FE Token (https://www.matataki.io/token/238) was down:

HTTP code: 500
Response time: 262 ms

Resolved: Matataki FE Token is back up in 7f3e83e.

repo: Meta-Network/upptime


text:
add WSB token

Token Address : 0x05fE7535D46481cE9Cb1944fc403a74230dFeCBF
Token Name: Wall Street Bets Token
Token Decimals: 8
Token Symbol: WSBT
Website: https://wsb.cx
GitHub: https://github.com/WSB-cx
Twitter: https://twitter.com/token_wall
Discord: https://discord.gg/WjbEJJ9cAQ
Etherscan: https://etherscan.io/token/0x05fe7535d46481ce9cb1944fc403a74230dfecbf

Inactive

authors: KanekoYukinaga MRabenda

repo: MetaMask/contract-metadata

license: ISC


text:
Update ESLint config from v9 to v10

The ESLint configuration has been updated from v9 to v10, and all related packages has been updated. This resolves the console warning that had been printed upon each run of yarn lint about how the current TypeScript version is unsupported.
All lint changes were made with yarn lint:fix except one, which is where we're using interface over type to allow for declaration merging in setupAfterEnv.ts.

Rebased to resolve conflicts

repo: MetaMask/create-release-branch


text:
[Update Snap] Starknet v2.1.0

Checklist
All items in the list below needs to be satisfied.

[ ] Is the summary of the change documented in this ticket?
[ ] Has a MetaMask Snaps team member reviewed whether the changes need to be vetted?
[ ] If there are changes that need to be vetted, attach a description and the relevant fixes/remediations to this issue.
[ ] The corresponding pull request in this repo has been merged.

This change comprises padding all account addresses to have a 66 char length public key
https://github.com/Consensys/starknet-snap/commit/f406d43cacdf08894d94988a750af46680e91114

repo: MetaMask/snaps-registry


text:
Bump snaps packages

Consolidated bump PR that replaces all the failing Dependabot PRs.

@SocketSecurity ignore npm/assert@1.5.0
Trusted author.

repo: MetaMask/template-snap-monorepo


text:
[建议]能否实现动画？Can it achieve a boot animation

能不能像拯救者那样实现开机动画，而不是一张图片？Can it achieve a boot animation like the Lenovo Legion, instead of just a static image?——translated by Copilot

No.

authors: Metabolix cuo-ren

repo: Metabolix/HackBGRT


text:
Can I use NBitcoin.Litecoin with your project

https://github.com/MetacoSA/NBitcoin.Litecoin
I tried it but transaction is always executed within Bitcoin Network not Litecoin

what code did you write.

authors: NicolasDorier senzacionale

repo: MetacoSA/QBitNinja


text:
Resume GA4 analytics recording - add code snippet

For GA4 analytics data recording to resume, the below code must be placed on every page after the  element.
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z09LZD0ZV0"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-Z09LZD0ZV0');
</script>

Ready for testing on dev.
Note, that I wasn't able to test locally, as I don't have access to Google Analytics

Data's appearing in our GA4 instance. Looks like it's working perfectly.
On Fri, Oct 11, 2024 at 9:25 AM Nikita @.***> wrote:

Ready for testing on dev.
Note, that I wasn't able to test locally, as I don't have access to Google
Analytics
—
Reply to this email directly, view it on GitHub
https://github.com/Metaculus/metaculus/issues/956#issuecomment-2407530039,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BL5BQOSQ4UGF62UAWDNFACTZ27NW7AVCNFSM6AAAAABPXYAIYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBXGUZTAMBTHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

repo: Metaculus/metaculus


text:
Is there any common ways to send data from shader function to MTIFilter back?

Is there any common ways to send data from shader function to MTIFilter? I would like to implement some kind of https://github.com/FlexMonkey/ParticleCam/blob/master/ParticleCam/Shaders.metal

I think you can use MTIDataBuffer. A MTIDataBuffer can be binded to a shader parameter with type device T *, you can write the buffer in the shader.  And you can safely pass this buffer to another filter.
You can also access the buffer's content on CPU using the unsafeAccess method. However, you must ensure all the GPU reads/writes to this buffer is completed. For example, after calling the waitUntilCompleted method of the MTIRenderTask.

I think you can use MTIDataBuffer. A MTIDataBuffer can be binded to a shader parameter with type device T *, you can write the buffer in the shader. And you can safely pass this buffer to another filter.
You can also access the buffer's content on CPU using the unsafeAccess method. However, you must ensure all the GPU reads/writes to this buffer is completed. For example, after calling the waitUntilCompleted method of the MTIRenderTask.

Thank you for the answer!
Is there any existing filters / code in MetalPetal that I can check?

Sorry there are currently no demos.

Demo added. 668ef046bcd0edc8ff7ed6ca5de9c17df0a26283

@YuAo wow. thanks!

authors: YuAo larryonoff

repo: MetalPetal/MetalPetal


text:
Create block_gaps.sql

Description
Please include a summary of changes and related issue (if any).
Tests

[ ] Please provide evidence of your successful dbt run / dbt test here
[ ] Any comparison between prod and dev for any schema change

Checklist

[ ] Follow dbt style guide
[ ] Tag the person(s) responsible for reviewing proposed changes
[ ] Notes to deployment, if a full-refresh is needed for any table
[ ] Run git merge main to pull any changes from remote into your branch prior to merge.

test passed with 1 warning


text:
Unable to install

Hey there. I'm trying to install sops-secrets. I'm following the niv install version (using master HEAD).
This is the error I'm getting:
error: anonymous function at /nix/store/a6xf442xypwmxcvg8glawp8qsjgyp617-82b54d490663b6d87b7b34b9cfc0985df8b49c7d.tar.gz/pkgs/development/go-modules/generic/default.nix:3:1 called without required argument 'modSha256', at /nix/store/rxa8b97sr75xfknlp670wg9kxkp9qz54-source/pkgs/sops-install-secrets/default.nix:2:1
this is what my nix/source.json file looks like:
{
    "niv": {
        "branch": "master",
        "description": "Easy dependency management for Nix projects",
        "homepage": "https://github.com/nmattia/niv",
        "owner": "nmattia",
        "repo":   ##"niv",
        "rev": "f2e2502412a661bc371c7390d86de278c4b9ef97",
        "sha256": "01z6dsc2dlm7nf3x35hcq6d3qhh75786c36am3y9x98a3xn1q4jm",
        "type": "tarball",
        "url": "https://github.com/nmattia/niv/archive/f2e2502412a661bc371c7390d86de278c4b9ef97.tar.gz",
        "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
    },
    "nixpkgs": {
        "branch": "nixos-unstable",
        "description": "A read-only mirror of NixOS/nixpkgs tracking the released channels. Send issues and PRs to",
        "homepage": "https://github.com/NixOS/nixpkgs",
        "owner": "NixOS",
        "repo": "nixpkgs-channels",
        "rev": "82b54d490663b6d87b7b34b9cfc0985df8b49c7d",
        "sha256": "12gpsif48g5b4ys45x36g4vdf0srgal4c96351m7gd2jsgvdllyf",
        "type": "tarball",
        "url": "https://github.com/NixOS/nixpkgs-channels/archive/82b54d490663b6d87b7b34b9cfc0985df8b49c7d.tar.gz",
        "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
    },
    "sops-nix": {
        "branch": "master",
        "description": "Atomic secret provisioning for NixOS based on sops",
        "homepage": "",
        "owner": "Mic92",
        "repo": "sops-nix",
        "rev": "b67ae45dc7459e10f390b2c5d24822599b564974",
        "sha256": "02y1590s905zdhw68qqsls1ah6ysj1hyfhcqg0fanv0029lk4agz",
        "type": "tarball",
        "url": "https://github.com/Mic92/sops-nix/archive/b67ae45dc7459e10f390b2c5d24822599b564974.tar.gz",
        "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
    }
}

I'm using nixops and I've added the following to my configuration.nix
{ config, lib, pkgs, ... }:

{

  imports =
    [ # include the results of the hardware scan.
      ./hardware-configuration.nix
      "${(import ../../nix/sources.nix).sops-nix}/modules/sops"
    ];

I should probably note the nixops database has nixpkgs pinned as such:
## Updates the pinned nixpkgs in the nixops database
pin-nixpkgs:
	@nixops modify -d server1 deployment/server1.nix -I nixpkgs=https://github.com/nixos/nixpkgs/archive/`cat nix/sources.json | jq -r '.["nixpkgs"]["rev"]'`.tar.gz
	@nixops modify -d server2 deployment/server2.nix -I nixpkgs=https://github.com/nixos/nixpkgs/archive/`cat nix/sources.json | jq -r '.["nixpkgs"]["rev"]'`.tar.gz

I've never built golang with nix so I'm really not sure what the cause might be. Appreciate any guidance.

modSha256 was used in 20.03. Starting with 20.09 there is vendorSha256. Can you upgrade?

@Mic92 Thanks for the insight! I wanted to try and upgrade but for some reason "niv update nixpkgs -b nixos-20.09" is saying that nixos-20.09 tag/commit doesn't exist.
Update nixpkgs
  FATAL: Cannot get latest revision for branch 'nixos-20.09' (NixOS/nixpkgs-channels)
  The request failed: Response {responseStatus = Status {statusCode = 422, statusMessage = "Unprocessable Entity"}, responseVersion = HTTP/1.1, responseHeaders = [("server","GitHub.com"),("date","Thu, 12 Nov 2020 13:44:01 GMT"),("content-type","application/json; charset=utf-8"),("content-length","130"),("status","422 Unprocessable Entity"),("x-github-media-type","github.v3; param=sha"),("access-control-expose-headers","ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset"),("access-control-allow-origin","*"),("strict-transport-security","max-age=31536000; includeSubdomains; preload"),("x-frame-options","deny"),("x-content-type-options","nosniff"),("x-xss-protection","1; mode=block"),("referrer-policy","origin-when-cross-origin, strict-origin-when-cross-origin"),("content-security-policy","default-src 'none'"),("vary","Accept-Encoding, Accept, X-Requested-With"),("X-Ratelimit-Limit","60"),("X-Ratelimit-Remaining","58"),("X-Ratelimit-Reset","1605192024"),("X-Ratelimit-Used","2"),("X-GitHub-Request-Id","88A2:4222:C0146D:1A0A2B0:5FAD3C20")], responseBody = "{\"message\":\"No commit found for SHA: nixos-20.09\",\"documentation_url\":\"https://docs.github.com/rest/reference/repos#get-a-commit\"}", responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose}

Nevermind. niv update nixpkgs -o NixOS -r nixpkgs -b nixos-20.09 works. I'll try with that.

hey @Mic92 I was able to install it when bumping nixpkgs to nixos-20.09! Hooray! :cake:
I was wondering though...I had to upgrade the entire system and it would be great if I could have used 20.09 just for sops-nix. If I had an entry in my source.json file nixpkgs-20.09 and left the original nixpkgs entry alone would it be possible to pass in the new nixpkgs value to ${(import ../../nix/sources.nix).sops-nix}/modules/sops somehow ? So it would get built with 20.09 but the rest of the system would be left alone.

Yes. you can override pkgs here: https://github.com/Mic92/sops-nix/blob/b67ae45dc7459e10f390b2c5d24822599b564974/default.nix#L1 when importing it and pass it a different versions of nixpkgs. For the NixOS module it is trickier. You could create a wrapper module: https://github.com/Mic92/sops-nix/blob/b67ae45dc7459e10f390b2c5d24822599b564974/modules/sops/default.nix#L8
It would be roughly like this (untested) snippet:
{ config, lib, pkgs, ... }:
{
  imports = [
     ({ config, lib, ... }: (import ${(import ../../nix/sources.nix).sops-nix}/modules/sops
) {inherit config lib; pkgs = import <nixos-20.09> {};})
}

Thanks @Mic92  I'll give it a try. I'm going to close this since it's resolved the issue for me.


text:
[TRACKING ISSUE] Engine.io, and by extent, Socket.io, has a vulnerability

Platform: Affects all platforms.
Node Version: Affects all versions.
MagicMirror Version: v2
Description: Engine.io, the stack behind Socket.io, has a vulnerability caused by an out-of-date version of the ws module. Tracking issue in socketio/engine.io is available here
cc @MichMich @roramirez

I can see. Its in the planning to fix soon.
I think is need it before release a new version add this fix from the new version of ws module.
By other hand, If is release soon the patch of this. How w'll process to apply a patch on master branch?
I've mentioned before about release label, we using Semantic Versioning, What be the next release version name 2.1.0.1 or 2.1.1 if include only this patch?

@roramirez When they release a newer version with an updated ws module, we can release it with the next new version.

@nhubbard My question is more related, what will happened in the future if we need add only one patch on master branch?, What version name will be?

If you patch current version with a backwards compatible bug fix or patch, v2.1.0 would become v2.1.1 if I'm not mistaken. As far as I recall Semantic Versioning follows vMajor.Minor.Patch scheme.

Yes, I understand the version semantic that way. The main point is next planning name version is 2.1.1 I think should be 2.2.0

@morozgrafix Spot on.

2.2.0 will be used whenever there is a breaking change in the API. (like 2.1.0 was)...
2.1.1 will include this security patch.

@MichMich They released version 2.0.2 of Engine.io... but I don't see any new version of Socket.io :cry:

This  https://github.com/socketio/socket.io/releases/tag/1.7.3 ?

@roramirez Yup. 1.7.3 bumped engine.io-client to 1.8.3, which contained the bugfix.

So we should be moved this in package.json. I pushed  a PR.

authors: MichMich morozgrafix nhubbard roramirez

repo: MichMich/MagicMirror


text:
improve german translation and make contributing translations easier

Hi,
I improved the wording of two German translations and added inlang/inlang to make contributing translations easier (with no overhead for maintainers except of a config file). Disclaimer, I am the maintainer of inlang and inlang is early. A better editor, a CLI to validate translations in CI/CD, and more to help OSS maintainers is coming soon. I thought this might already help. If not, please let me know what is missing.
Changes

added an inlang.config.js file to the root of the repo
updated two German translations
added the /translations directory to prettierignore to avoid (future) formatting differences

Open questions

should potentially outdated translations like "DAYAFTERTOMORROW" be deleted? Since linting via CLI is not available yet, I refrained from doing so in the fear of breaking things.

Could you merge into master instead of development? I forked the repo with the master branch only (the default setting of GitHub). Rebasing on development would be a hassle.

PS The config file can be deleted at any point, no accounts, sync, whatsoever is required as inlang is built on git, working with "local" files. Think of it as VSCode for translators.

I put the PR in draft because of the open questions. It is theoretically ready for review

And I forgot, here is a preview link https://inlang.com/editor/github.com/samuelstroschein/MagicMirror. Keep in mind, everything runs locally in the browser

Codecov Report

Merging #3025 (2fc6cd1) into master (2eaf9df) will increase coverage by 0.07%.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##           master    #3025      +/-   ##
==========================================
+ Coverage   21.69%   21.77%   +0.07%
==========================================
  Files          52       52
  Lines       11424    11424
==========================================
+ Hits         2479     2488       +9
+ Misses       8945     8936       -9

Impacted Files
Coverage Δ

modules/default/updatenotification/node_helper.js
80.00% <0.00%> (+12.85%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Thansk for your PR and your work. Seems like a good idea to help with translations.
Alas two things:

merging in master is not a real option for a feature like this, we wor on the develop branch until a release is done every three month. sorry, you'll have to do a rebase
adding the translation to prettierignore is also something I dont like since prettier helps us keeping the code style consistent. an excemption here would lead to people who commit via git to maybe add new intendations etc

otherwise I am ok with adding your config to the project and wish you good luck

merging in master is not a real option for a feature like this, we wor on the develop branch until a release is done every three month. sorry, you'll have to do a rebase

I'll do that. I fear that the lack of support for branches right now of the editor (https://github.com/inlang/inlang/discussions/166) might lead to a similar problem for contributors. Damn, it will. The editor will always have the translation on the master branch, inevitably leading to merge conflicts when contributors edit the same translation because they were not aware of changes in the develop branch.
A simple fix until https://github.com/inlang/inlang/discussions/166, and generally a good idea, could be the possibility to configure a defaultBranch in the config that points to develop in this case. What do you think?

adding the translation to prettierignore is also something I dont like since prettier helps us keeping the code style consistent. an excemption here would lead to people who commit via git to maybe add new intendations etc

I could expose the possibility to define how resources (en.json, etc.) could be serialized which aligns with the prettier config.

otherwise I am ok with adding your config to the project and wish you good luck

Is there more we can do for you as a maintainer to ease i18n?

A simple fix until inlang/inlang#166, and generally a good idea, could be the possibility to configure a defaultBranch in the config that points to develop in this case. What do you think?

Definitly something I would appreaciate and use here

Is there more we can do for you as a maintainer to ease i18n?

Nothing that comes to my mind, maybe the others (@MichMich @khassel @sdetweil ) can think of something?

nothing additional for me

Thanks for the feedback. I will expose an experimental defaultBranch property in the config and expose how JSON's are serialized to align with prettier. I will open a new PR in the upcoming week.
Are you using VSCode for development btw?

Are you using VSCode for development btw?

Not me.
Looking forward to the next updates to this PR

How important is the branch feature to you/do you believe inlang will lead to more contributions?
The effort and risk for bugs are high, probably too high, when I add an experimental.defaultBranch property. There are several logic-related flows that need to be adjusted. For example, forks only fork the main branch by default. The inlang editor would need to account for branches in forks. The inlang editor would also need to account for the branch the PR should be opened against. That are just two obstacles. More will likely arise and either increase our maintenance burden until the feature is implemented correctly or lead to bugs for users.
We will eventually implement branches, especially considering our next git thesis, but I wonder whether the effort from our side and the value for you is worth the implementation of branches right now.

I close this PR until we have branch support.

authors: codecov-commenter rejas samuelstroschein sdetweil


text:
I'm really confused with the codes from line 51 to line 93 in main.py

I'm really confused with the codes from line 51 to line 93 in main.py. What's the difference between the two loops respectively from line 52 and line 63? Don't  they have the same function? Could you please answer my question, THANK YOU !

First loop runs on the python multi-processing pool to utilise all your CPU cores. Second loop "does the same thing" but because of the caching infrastructure, it really does nothing except load up the cached results and print them out in order.
You can imagine that printing from the multi-processing stage would be interleaved and messy without synchronization. Was just easier and fast enough to load up the results in a single thread at the end.
Does that make sense?

Thank you for your response.
I am not familiar with multi-processing pool. I will search for related knowlege. Thank you

authors: MichaelHills yuweiDu

repo: MichaelHills/seizure-prediction


text:
Incorrect import of firebase/app causing typescript compilation error

[REQUIRED] Describe your environment

Operating System version: MacOS X Catalina 10.15.7
Browser version: Chrome Version 86.0.4240.198 (Official Build) (x86_64
Firebase library (firebase, firebase-admin, etc...) and version: firebase: 8.0.2, firebase-admin: 9.4.1
geofirestore-core version: 4.1.2
geofirestore version: 4.3.0

[REQUIRED] Describe the problem
Describe the bug
See error below:
❯ ./node_modules/.bin/tsc --watch
[4:08:38 PM] Starting compilation in watch mode...

node_modules/geofirestore-core/dist/definitions.d.ts:2:10 - error TS2614: Module '"../../firebase"' has no exported member 'firestore'. Did you mean to use 'import firestore from "../../firebase"' instead?

2 import { firestore as webfirestore } from 'firebase/app';
           ~~~~~~~~~

[4:08:43 PM] Found 1 error. Watching for file changes.

Steps to Reproduce

npm install geofirestore
Import geofirestore
Try to compile typescript

Relevant Code
import * as geofirestore from "geofirestore";

Ah, I see, this is related to https://github.com/MichaelSolati/geofirestore-core/pull/2/commits/4c1cd29b6d298e0980d59c155d504a864d495e4d. Can we please merge in the pull request? Otherwise, the library is not usable.

Not able to get geofirestore to [install the pull request's version with the fix](
https://stackoverflow.com/questions/64923355/can-you-force-npm-sub-dependency-to-install-from-a-github-pull-request) 😢 Any workarounds you may know?

repo: MichaelSolati/geofirestore-core


text:
Fix groups function

There were a few logic errors in the code. This fixes a few things and makes the code a little more readable.

Incorrect "Managed by" entries due to the $Managers variable not being reset during loop.
Security groups and Mail-enabled security groups were duplicated and not being represented correctly.
Counts by group types partially worked. They're now represented correctly and a little more efficiently.
Compressed some of the nested If statements to single lines.
Replaced some Ifs with Elseifs so that some checking halts upon positive match.

Ya, looks good.


text:
whnver i send mail as a draft invoice error ..

SyntaxError at /invoices/send-mail/1/
invalid syntax (redis.py, line 22)

this error happen on live

@avigehlot05 This issue has been fixed. You can check it now.

repo: MicroPyramid/Django-CRM


text:
求助

前辈您好，仔细研究过您的工程文件，对我的帮助非常大，但部署到PYNQ-Z1开发板后发现无法加载overlays，查阅资料发现需要.tcl格式文件，您可以不吝赐教一下嘛？万分感激!

谢谢前辈～在没有tcl 文件的前提下，我试了一下，用2.6版本的会报错，用2.4版本的会给提示，但能正常运行～再次感谢🙏 在2021年03月30日 21:44，Microd 写道：
Hardware_Project/Block_Design文件夹中的README.md文件中有一句话是加了删除线的，那就是针对老版本PYNQ的img镜像需要tcl文件时如何获取tcl文件的方法，如果你使用新版本的PYNQ镜像应该是使用hwh文件即可。
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
[
{
@.***": "http://schema.org",
@.***": "EmailMessage",
"potentialAction": {
@.***": "ViewAction",
"target": "https://github.com/Microdent/Handwritten_Mathematical_Calculator_on_FPGA/issues/4#issuecomment-810260504",
"url": "https://github.com/Microdent/Handwritten_Mathematical_Calculator_on_FPGA/issues/4#issuecomment-810260504",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
@.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]


text:
[RichTextBlock][UWP] Update existing richtextblock implementation to match new specification for 1.2

Platform

UWP

Author or host
Neither. Feature dev.
If you're an author, who are you sending cards to?
Version of SDK
master
Issue

To address the length concerns, we’re simplifying the payload
a.	Removing the concept of paragraphs, so it’s just a set of inlines
b.	Syntax sugar for auto-converting a text string into a basic TextRun
For the wrap/maxLines
a.	Remove those properties
For the markdown inside runs
a.	Don’t support markdown
For being able to use italics within runs (since no markdown)
a.	 Possibly add an “italicize” property to TextRun

@RebeccaAnne FYI

repo: Microsoft/AdaptiveCards


text:
Offline installation

A brief description
I work for Software a company in which due to regulatory compliance and data egress control it will never be possible to enable the windows Store for our admin and deployment bastion workstations however the WSFL functionality would be most useful there.
Expected results
Ability to deploy the WSFL including bash ideally from SCCM. It seems like it wouldn't be too hard.
Actual results (with terminal output if applicable)
Run Bash ( Terminal opens requests confirmation, after confirmation just exists as it can't download from Windows store).
Your Windows build number
1607
Steps / commands required to reproduce the error
No internet access but access to sources\sxs and SCCM SUS point including Feature Enablement
Developer mode toggle. ( Errors "cannot download package" but does what it needs to for us to continue.)
Enable feature WSFL and reboot. ( Ok works as expected)
Run Bash ( Terminal opens requests confirmation, after confirmation just exists as it can't download from Windows store).
Strace of the failing command
Required packages and commands to install

See our contributing instructions for assistance.

We have heard this request before and it's definitely something we want to enabled in future versions of Windows.

@PeteAtJagex - Love the idea. Please head to our user voice page and open a ticket (if there is not one already, up vote if there is one already). We use that for prioritizing our future work.

I created a simple project that can install BashOnWindows even without Internet access.
You just need to download some files before installation.
Hope it can help.
Project address: https://github.com/sqc1999/LxRunOffline

@DDoSolitary I have used LxRunOffline.exe and can upgrade WSL to Ubuntu Zesty 17.04 from https://cloud-images.ubuntu.com/releases/17.04/release/

That article only has three distros. It should include the usage of wsl* functions and ready-made tar.gz files from distro owner.

repo: Microsoft/BashOnWindows


text:
Sample unit tests on bot with Dialogs and Prompts

Please create a sample of project with all the bot stuff (Dialog, prompts, etc.) unit tested to show how to mock some object such as DialogSet, WaterfallStepContext, etc.

Hi @nimbusparis, thanks for the feedback, we are planning to add additional testing examples and tools support as part of 4.5.
This page contains some background on our general approach.
For a complete list of the testing scenarios we are considering see Bot Testing Issues.
I will close this issue for now, please add your comments on the stories above if there's anything in particular you'd like to see that is not covered there.
Thanks again.
Gabo
PS: For a sneak peak of the work being doing, you can check the CoreBotTests branch (check the https://github.com/Microsoft/botbuilder-dotnet/tree/gabog/CoreBotTests/tests/Microsoft.Bot.Builder.TestBot.Tests project, it is early days and things are subject to change but it should give you an idea).

authors: gabog nimbusparis

repo: Microsoft/BotBuilder-Samples


text:
getting 405 . Web App Bot connected to local using ngrok.

env:
net core 2.1, c#
bot builder 4.1.1
net.core.app 2.1.5
bot enterprice template (w\o running of az scripts)
what's done:
i've created a chatbot app using latest enterprise template.
I haven't run azure resource script though 'cos of inner policy, so we just created resourses using regular bot service creation and configured manually.
I commented some services trying to minimize them to minimal set of working. I've commented Transcript Middleware, i changed State service to use MemoryStorage:
            var dataStore = new MemoryStorage();
            var userState = new UserState(dataStore);
            var conversationState = new ConversationState(dataStore);

            services.AddSingleton(dataStore);
            services.AddSingleton(userState);
            services.AddSingleton(conversationState);

            services.AddSingleton(new BotStateSet(userState, conversationState));

Took all app ids, keys and what is needed, configured my app.
So when im running locally and testing using emulator, everythings work fine. Now i'm trying to connect bot service to my local app using ngrok tunnel to debug it.
I'm running my app on 32618 port.
I've done basic forwarding using ngrok:
ngrok.exe http 32618 -host-header="localhost:32618"
and now its listening on https://deb52201.ngrok.io , i've updated .bot file to use
"endpoint": "https://deb52201.ngrok.io/api/messages",
in launchSetytings i'm still using
 "applicationUrl": "http://localhost:32618".
Updated message endpoint in azure bot app to https://deb52201.ngrok.io/api/messages
problem:
when i'm using emulator it's working (both with local and external ngrok urls) , though it gives me error :Error: The bot is remote, but the service URL is localhost. Without tunneling software you will not receive replies" (dunno what it means by service URL is localhost).
But when i'm trying to test using azure's Test in web chat i see error that message can't be sent. In ngrok i see in log that bot service was trying to call OPTIONS /api/messages and result is "not allowed".
In vs i see this error: Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request starting HTTP/1.1 OPTIONS http://localhost:32618/api/messages
Microsoft.AspNetCore.Hosting.Internal.WebHost:Information: Request finished in 4.3045ms 405
Application Insights Telemetry:
{"name":"Microsoft.ApplicationInsights.Dev.43984f36641f4cf391ac866e42e51bd7.Request",
"time":"2018-11-06T10:12:43.6894710Z",
"iKey":"43984f36-641f-4cf3-91ac-866e42e51bd7",
"tags":{"ai.application.ver":"1.0.0.0",
"ai.cloud.roleInstance":"VzlomNote",
"ai.operation.id":"d7fbd988a140254b968de0ee7bbb6d28",
"ai.operation.name":"OPTIONS /api/messages",
"ai.location.ip":"192.40.95.29",
"ai.internal.sdkVersion":"aspnet5c:2.5.1",
"ai.internal.nodeName":"VZLOMNOTE"},
"data":{"baseType":"RequestData",
"baseData":{"ver":2,
"id":"|d7fbd988a140254b968de0ee7bbb6d28.9ade66b2_",
"name":"OPTIONS /api/messages",
"duration":"00:00:00.0099015",
"success":false,
"responseCode":"405",
"url":"http://localhost:32618/api/messages",
"properties":
{"_MS.ProcessedByMetricExtractors":"(Name:'Requests', Ver:'1.1')",
"DeveloperMode":"true",
"AspNetCoreEnvironment":"Local"}}}}

The thread 0xda4 has exited with code 0 (0x0).
When googling related problems i constantly see advice to change stateManager. but a) i have InMemory already (hope its configured right) 2)all examples are for old versions on web api, there's no such methods, i can't find any examples for Net Core and BorBuilder 4.1.
Full code:
launchSettings:
{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:32618",
      "sslPort": 0
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "ChatbotCore": {
      "commandName": "Project",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Local"
      },
      "applicationUrl": "http://localhost:32618"
    }
  }
}

Startup:
 // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System;
using System.Linq;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Bot.Builder;
using Microsoft.Bot.Builder.Azure;
using Microsoft.Bot.Builder.Integration.AspNet.Core;
using Microsoft.Bot.Configuration;
using Microsoft.Bot.Connector.Authentication;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

namespace AgriSync.ChatbotCore
{
    public class Startup
    {
        private bool _isProduction = false;

        public Startup(IHostingEnvironment env)
        {
            var builder = new ConfigurationBuilder()
                .SetBasePath(env.ContentRootPath)
                .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
                .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
                .AddEnvironmentVariables();

            Configuration = builder.Build();
        }

        public IConfiguration Configuration { get; }

        public void ConfigureServices(IServiceCollection services)
        {
            // Load the connected services from .bot file.
            var botFilePath = Configuration.GetSection("botFilePath")?.Value;
            var botFileSecret = Configuration.GetSection("botFileSecret")?.Value;
            var botConfig = BotConfiguration.Load(botFilePath ?? @".\ChatbotCore.bot", botFileSecret);
            services.AddSingleton(sp => botConfig ?? throw new InvalidOperationException($"The .bot config file could not be loaded."));

            // Initializes your bot service clients and adds a singleton that your Bot can access through dependency injection.
            var connectedServices = new BotServices(botConfig);
            services.AddSingleton(sp => connectedServices);

            // Initialize Bot State
            /*var cosmosDbService = botConfig.Services.FirstOrDefault(s => s.Type == ServiceTypes.CosmosDB) ?? throw new Exception("Please configure your CosmosDb service in your .bot file.");
            var cosmosDb = cosmosDbService as CosmosDbService;
            var cosmosOptions = new CosmosDbStorageOptions()
            {
                CosmosDBEndpoint = new Uri(cosmosDb.Endpoint),
                AuthKey = cosmosDb.Key,
                CollectionId = cosmosDb.Collection,
                DatabaseId = cosmosDb.Database,
            };*/
            // var dataStore = new CosmosDbStorage(cosmosOptions);
/*

            var cosmosDbService = botConfig.Services.FirstOrDefault(s => s.Type == ServiceTypes.CosmosDB) ?? throw new Exception("Please configure your CosmosDb service in your .bot file.");
            var cosmosDb = cosmosDbService as CosmosDbService;
            var cosmosOptions = new CosmosDbStorageOptions()
            {
                CosmosDBEndpoint = new Uri(cosmosDb.Endpoint),
                AuthKey = cosmosDb.Key,
                CollectionId = cosmosDb.Collection,
                DatabaseId = cosmosDb.Database,
            };
             var dataStore = new CosmosDbStorage(cosmosOptions);*/

             //user and conversation state

             var dataStore = new MemoryStorage();
            var userState = new UserState(dataStore);
            var conversationState = new ConversationState(dataStore);

            services.AddSingleton(dataStore);
            services.AddSingleton(userState);
            services.AddSingleton(conversationState);

            services.AddSingleton(new BotStateSet(userState, conversationState));

            services.AddMvc();

            // Add the bot with options
            services.AddBot<ChatbotCore>(options =>
            {
                // Load the connected services from .bot file.
                var environment = _isProduction ? "production" : "development";
                var service = botConfig.Services.FirstOrDefault(s => s.Type == ServiceTypes.Endpoint && s.Name == environment);
                if (!(service is EndpointService endpointService))
                {
                    throw new InvalidOperationException($"The .bot file does not contain an endpoint with name '{environment}'.");
                }

                options.CredentialProvider = new SimpleCredentialProvider(endpointService.AppId, endpointService.AppPassword);

                // Telemetry Middleware (logs activity messages in Application Insights)
                var appInsightsService = botConfig.Services.FirstOrDefault(s => s.Type == ServiceTypes.AppInsights) ?? throw new Exception("Please configure your AppInsights connection in your .bot file.");
                var instrumentationKey = (appInsightsService as AppInsightsService).InstrumentationKey;
                var appInsightsLogger = new TelemetryLoggerMiddleware(instrumentationKey, logUserName: true, logOriginalMessage: true);
                options.Middleware.Add(appInsightsLogger);

                // Catches any errors that occur during a conversation turn and logs them to AppInsights.
                options.OnTurnError = async (context, exception) =>
                {
                    await context.SendActivityAsync("Sorry, it looks like something went wrong.");
                    connectedServices.TelemetryClient.TrackException(exception);
                };

                // Transcript Middleware (saves conversation history in a standard format)
                /*var storageService = botConfig.Services.FirstOrDefault(s => s.Type == ServiceTypes.BlobStorage) ?? throw new Exception("Please configure your Azure Storage service in your .bot file.");
                var blobStorage = storageService as BlobStorageService;
                var transcriptStore = new AzureBlobTranscriptStore(blobStorage.ConnectionString, blobStorage.Container);
                var transcriptMiddleware = new TranscriptLoggerMiddleware(transcriptStore);
                options.Middleware.Add(transcriptMiddleware);*/

                // Typing Middleware (automatically shows typing when the bot is responding/working)
                var typingMiddleware = new ShowTypingMiddleware();
                options.Middleware.Add(typingMiddleware);
                options.Middleware.Add(new AutoSaveStateMiddleware(userState, conversationState));

                /*IStorage dataStore = new MemoryStorage();

                var conversationState = new ConversationState(dataStore);
                options.State.Add(conversationState);

                var userState = new UserState(dataStore);
                options.State.Add(userState);*/

            });
        }

        /// <summary>
        /// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        /// </summary>
        /// <param name="app">Application Builder.</param>
        /// <param name="env">Hosting Environment.</param>
        public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {
            _isProduction = env.IsProduction();
            app.UseDefaultFiles()
                .UseStaticFiles()
                .UseBotFramework()
                .UseMvcWithDefaultRoute();
        }
    }
}

ChatbotLocal.bot:
{
    "name": "AgriSyncBot",
    "description": "",
    "services": [
      {
        "type": "endpoint",
        "appId": "<CODE>",
        "appPassword": "<CODE>",
        "endpoint": "https://a2d77e39.ngrok.io/api/messages",
        "id": "1",
        "name": "development"
      },
        {
            "type": "appInsights",
            "InstrumentationKey": "<CODE>",
            "apiKeys": {}
        }
    ],
    "padlock": "",
    "version": "2.0",
    "overrides": null,
    "path": "C:\\Users\\VzLOM\\Source\\Repos\\agrisync-v33\\ChatbotCore\\ChatbotCoreLocal.bot"
}

Thanks

Hi @Unders0n
Thank you for trying out the Enterprise Bot Template.  The repository for issues related to this template is https://github.com/Microsoft/BotBuilder-samples/issues  The BotBuilder repository issues is now for DCRs only.  If you have further questions or issues related to the Enterprise Bot Template, please ask on Stack Overflow or BotBuilder-samples

The OPTIONS call is sent to the bot's messaging endpoint by the Azure Portal when you navigate to settings within the portal.  Since only POSTs are handled by the bot's messaging endpoint, and not OPTIONS or GET or PUT, these other commands will result in 'not allowed'.  You can add code to handle these call types, if you prefer.  But, the failure of the OPTIONS call from the portal can be safely ignored.

"The bot is remote, but the service URL is localhost." means that ngrok is not properly configured for the emulator itself.  Within the v4 Emulator, use the View -> Emulator Settings menus, and set the 'Path to ngrok':

The emulator repository has an open issue to make this wording more clear: https://github.com/Microsoft/BotFramework-Emulator/issues/878

@EricDahlvang Still my problem was not revealed in this answer, so i've created issue in repo you suggested: https://github.com/Microsoft/BotBuilder-Samples/issues/864

repo: Microsoft/BotBuilder


text:
Include ChannelId when creating replay message.

ChannelId was not copied when creating replay message.
Channel Id can be used in dialogs to modify the answer to better use each channel features.
The service URL was also missing.

I just spent the morning chasing down the same issue (ServiceUrl not being set in the reply message); until this is merged I will write against local code.

authors: apuyana mburleigh


text:
Directline requests (POST and GET) failed with the resultcode = 0

Directline-JS SDK: 0.10.2
Starting to see the below failures of the directline  GET/POST requests (Timestamp is in UTC)

timestamp [Local Time]
data
success
resultCode
duration

2019-02-19T15:51:02.382
POST https://directline.botframework.com/v3/directline/conversations
False
0
224

2019-02-19T15:51:22.672
POST https://directline.botframework.com/v3/directline/conversations
False
0
283

2019-02-19T15:51:43.212
POST https://directline.botframework.com/v3/directline/conversations
False
0
339

2019-02-19T15:52:18.115
POST https://directline.botframework.com/v3/directline/conversations
False
0
309

2019-02-19T15:52:38.950
POST https://directline.botframework.com/v3/directline/conversations
False
0
233

2019-02-19T15:52:59.473
POST https://directline.botframework.com/v3/directline/conversations
False
0
523

2019-02-19T15:53:19.746
POST https://directline.botframework.com/v3/directline/conversations
False
0
273

2019-02-19T15:53:40.019
POST https://directline.botframework.com/v3/directline/conversations
False
0
263

2019-02-19T17:10:56.918
GET https://directline.botframework.com/v3/directline/conversations/IYzHUYmf01kC5LNhfTWSbE?watermark=1
False
0
7,079

2019-02-19T19:34:10.268
GET https://directline.botframework.com/v3/directline/conversations/7jonzVRWwNdLeL7XJm5Pfn?watermark=1
False
0
5

2019-02-19T20:23:45.193
POST https://directline.botframework.com/v3/directline/conversations/EmACwvZmpaLBxJ8R8B77gM/activities
False
0
961

2019-02-19T21:00:29.063
GET https://directline.botframework.com/v3/directline/conversations/IYzHUYmf01kC5LNhfTWSbE?watermark=1
False
0
13

2019-02-19T21:08:53.500
GET https://directline.botframework.com/v3/directline/conversations/EmACwvZmpaLBxJ8R8B77gM?watermark=55
False
0
1,362

2019-02-19T21:09:34.400
GET https://directline.botframework.com/v3/directline/conversations/EmACwvZmpaLBxJ8R8B77gM?watermark=55
False
0
20,003

Please help check if there's any issue of the directline server? or share the thought how to resolve the issue?

@EricDahlvang any update?

Hi @huajunzhao
We are escalating this internally for further investigation.  I apologize for the delay.

@EricDahlvang our service is seriously being impacted due to this, can you please help on this with priority?

Here are some latest failures (resultcode=0) logs in UTC timestamp.

GET request failed with long duration (~17s)

2019-02-26T02:52:45.713
|FjbBQ.mouVr
directline.botframework.com
Ajax
GET /v3/directline/conversations/DMAmKzt2xWWLmjaTZXwBBH
GET https://directline.botframework.com/v3/directline/conversations/DMAmKzt2xWWLmjaTZXwBBH?watermark=35
False
0
17,523
15sec-30sec

GET reqeust failed with short duration

2019-02-26T02:16:16.703
|FjbBQ.mRJHU
directline.botframework.com
Ajax
GET /v3/directline/conversations/DMAmKzt2xWWLmjaTZXwBBH
GET https://directline.botframework.com/v3/directline/conversations/DMAmKzt2xWWLmjaTZXwBBH?watermark=35
False
0
538
500ms-1sec

POST request failed

2019-02-26T02:50:37.347
|pihqZ.vnu5+
directline.botframework.com
Ajax
POST /v3/directline/conversations
POST https://directline.botframework.com/v3/directline/conversations
False
0
9
<250ms

Can you please us understand what does this each kind of request used for and how to resolve them?
Thx,
Kevin

@huajunzhao The services team has looked over the issues you are having.  They are indicating that resultcode=0 means the requests did not make it to the server (or there would be a failure status code).  This issue is not with the Direct Line service, but with the client.  Since the service never received these calls, our server logs have nothing to indicate what the underlying problem is with the client.
Have you tried using WebSockets instead of GET polling?

Thanks for the update.
Actually we've already switched to websockets in the client, This is our code
    const botConnection: any = localStorage.conversationId === null || localStorage.conversationId === undefined || localStorage.conversationId === 'undefined'
        ? new DirectLine({
            secret: this.props.directLine.secret,
            webSocket: true,
            watermark: '-'
        })
        : new DirectLine({
            secret: this.props.directLine.secret,
            conversationId: localStorage.conversationId,
            webSocket: true,
            watermark: '-'
        });

Be noted that the GET requests which failed with resultcode = 0 was having the below patterns (without activities)
GET https://directline.botframework.com/v3/directline/conversations/DMAmKzt2xWWLmjaTZXwBBH?watermark=35:
Per the document: https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-direct-line-3-0-reconnect-to-conversation?view=azure-bot-service-4.0 they're likely the conversation reconnects. some of them are long duration, while others not.
We don't know why see have so many failures. Can you instruct us how to troubleshoot/resolve this issue if you think it's client issues?
Can i get your MS alias for internal discussion?

Also we start seeing some 404 failure.

019-02-27T14:59:45.617
|x5W1S.xmQdH
directline.botframework.com
Ajax
GET /v3/directline/conversations/KirZ9Nyg84fG28xMuSCUwt
GET https://directline.botframework.com/v3/directline/conversations/KirZ9Nyg84fG28xMuSCUwt?watermark=-
False
404
410
250ms-500ms

What's the cause we see this?

Regarding the 404: maybe the conversation has 'expired' due to no activity?
see: https://github.com/Microsoft/BotFramework-DirectLineJS/issues/119#issuecomment-445066667

Conversation messages are only stored for 24 hours in DirectLine. Conversation metadata (such as conversation id and couple other housekeeping data) are removed after a period of inactivity (between 15 to 20 days).

Please email me at the address on my profile: https://github.com/EricDahlvang

@huajunzhao, do you still require assistance? If not I'll close the issue as resolved.

Actually I still have questions which need bot team to help or explain, i will touch Eric directly, please close this for now.

authors: CoHealer EricDahlvang huajunzhao

repo: Microsoft/BotFramework-Services


text:
Directline post activity gives 'Service Error' - Same as #54

I am facing the same issue mentioned in #54.

Directline post activity throws {code: "Service Error"} for random messages since yesterday.
Faced 25 in the last 24 hours period so far

Microsoft App ID: 7cbd578f-5c92-4fa4-b2c6-142e307a06ef
Bot Handle: IBMSdx-ON-151
Conversation Id: BtAajXujmRiA8wYxOl1t0E-9
"timestamp":"2019-04-10T12:17:34.195Z"

This error and many others in the 24 hours ending 2019-04-10T12:00Z were caused by activities that were too large. See if you can trim down your activity size by using attachments rather than inline data.
I thought that we returned a message about the size being too large in the response body but I'll have to test that. If not, we will so this will be easier to diagnose.

authors: ManjulaMalaiarasan vincec-msft


text:
Scroll Issue on Firefox

I am facing scroll issue on Firefox and mobile. here i shared screen shot of chrome and Firefox. for chrome its fine but for Firefox its not working.
Here is example of Chrome. here scroll is working:

Here is Example of Firefox where scroll not working

Thanks

Hi @dalvirsaini, looking at your screencaps, it looks like the issue you are reporting is the lack of scrollbar in the second one. Is this correct? I tested our Mock Bot on Firefox (v65) just now and didn't see the same issue.
I have a few questions, if anyone who is repro-ing this issue could add their information that would be great.

It looks like this is v4 of Web Chat, is that correct? Are you using the CDN or NPM package?
What version of Firefox are you using?
Is your bot share-able to the public where I can take a quick look?
Does the scrollbar never appear? Or disappear after a particular action?
It doesn't look like you've added any styling modifications to the scrollbar, is this correct?
Does this issue occur when you test out Mock Bot? Please use this link to test: https://microsoft.github.io/BotFramework-WebChat/06.a.cognitive-services-bing-speech-js/

Hi @corinagum , I was facing a similar scrolling issue. where when i try to scroll up, it is not letting me and automatically scrolling at the bottom of the chat.
This keeps occurring on touch screen laptops/pc
when i move the same window to a non-touch monitor it works fine.
Please inform me when this is fixed.
Thanks

@compulim I don't have a touch screen laptop, could you investigate this?

I am also seeing this issue, with Chrome, with MockBot, using this:
https://microsoft.github.io/BotFramework-WebChat/06.a.cognitive-services-bing-speech-js/
See vid:
https://1drv.ms/u/s!AqLTBxPBk_dXhux7ksIgD45D6LDu-g
Not touch screen.
I am also seeing the issue in my customised WebChat.
Is there some dependency I should revert to avoid this?

Thanks @nicholasamiller  for posting the video
I'm seeing exactly same issue.

@nicholasamiller Thank you very much! Let me look into this and get back to you guys.

Looking into this too. The bug looks very legit. But I am struggling trying to repro.
Trying combination of a few things:

Hi-DPI on/off
Zoom ratio 100% vs 150%
Firefox
Mouse dragging scroll handler

Will be great if someone can give me some tips.

I kind of understand the problem.
Technically speaking:

"scroll to bottom" means, "if I am sticky, and I am not at the bottom, scroll to bottom"
"I am no longer sticky" means,

"scroll event emitted due to user gesture, and the scrollTop value is no longer at bottom"

"I become sticky" means,

"scroll event emitted, scrollTop value changed to the bottom value"

We prefer this behavior because we allow the content to be expanded, without using any hints from HTML DOM. We tried alternative approach in 4.2, which we explicitly tell the scrollable panel we have expanded, but the UX doesn't go well (sometimes Web Chat don't scroll to bottom).
When the user scroll to top, the following things will happen:

scrollTop set to 0
Fire scroll event

For every 150ms, we check if we are at the bottom. If no and we are sticky, we will scroll to bottom.
But in Firefox, the check is being inserted between 1 and 2. That means, the check will see "I am not at the bottom, but I am still sticky, I need to scroll to bottom." Thus, we are seeing this behavior.

Also in Chrome - see my vid.
On Wed., 13 Feb. 2019, 11:46 William Wong <notifications@github.com wrote:

I kind of understand the problem.
Technically speaking:

"scroll to bottom" means, "if I am sticky, and I am not at the
bottom, scroll to bottom"
"I am no longer sticky" means,

"scroll event emitted due to user gesture, and the scrollTop
value is no longer at bottom"

"I become sticky" means,

"scroll event emitted, scrollTop value changed to the bottom
value"

We prefer this behavior because we allow the content to be expanded,
without using any hints from HTML DOM. We tried alternative approach in
4.2, which we explicitly tell the scrollable panel we have expanded, but
the UX doesn't go well (sometimes Web Chat don't scroll to bottom).
When the user scroll to top, the following things will happen:

scrollTop set to 0
Fire scroll event

For every 150ms, we check if we are at the bottom. If no and we are
sticky, we will scroll to bottom.
But in Firefox, the check is being inserted between 1 and 2. That means,
the check will see "I am not at the bottom, but I am still sticky, I need
to scroll to bottom." Thus, we are seeing this behavior.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/BotFramework-WebChat/issues/1697#issuecomment-463006121,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATrTcA5VdaBzIBpIqg0qA9zqqc4YmoCPks5vM2BXgaJpZM4ai_bt
.

Need some community help here because I cannot reliably repro on my box (repro chance = 1-in-50). I don't know if my fix really works or not.
@dalvirsaini @keshavnagpal  @nicholasamiller could you guys help me by trying out the following pages?

https://webchattest.blob.core.windows.net/scroll-test/index.html should have the fix
https://webchattest.blob.core.windows.net/scroll-test/repro.html should not have the fix (control experiment)

Many thanks!

@compulim
I tried your solution it seems to work on my machine
and i was able to reproduce the issue several times in the same machine on repro.html
I went ahead and copied your webchat.js file and used in my solution, it fixed the issue
(although when trying to scroll while new messages are coming it's not as smooth)
I need to use webchat-es5.js
Can you try the same fix in webchat-es5 as well?
Thanks

authors: compulim corinagum dalvirsaini keshavnagpal nicholasamiller

repo: Microsoft/BotFramework-WebChat


text:
Bug10436738: Missing lower bounds check

Add lower bounds check on enum to AsmJsJITInfo::GetTypedSlotInfo

@Microsoft/chakra-developers Can someone review this please ?

Change looks good but lots of tests are failing

facepalm type >= 0

facepalm for me, too. Should have caught that.

authors: Cellule dilijev

repo: Microsoft/ChakraCore


text:
Invalidate proto caches in the correct script context

If the prototype of an object is changed in a different context, we need to invalidate proto inline caches in the script context of the old prototype. We were only invalidating the caches in the current context, but the prototype being changed could have had property loads from it cached in a different context.

In that case, LGTM as is.

authors: pleath rajatd


text:
Make Date.parse recognize padded and negative years (Fixes #4178)

This PR will finally make Date.parse able to parse any output of Date.toString(), Date.toUTCString, and Date.toISOString().
Fixes #4178
Fixes #4300
Todo:

[x] Add, update and re-enable tests (#4300)
[x] new Date("2017-jan-01") causes an assertion failure

v8 and SpiderMonkey have the same issue. I've reported to them as well.
v8: https://bugs.chromium.org/p/v8/issues/detail?id=7117
sm: https://bugzilla.mozilla.org/show_bug.cgi?id=1420028

Some tests failed on Ubuntu. That's because toString() outputs Local Mean Time, like 'Fri Oct 12 0001 21:23:35 GMT-0752 (LMT)', when the date is before the standard time zone was introduced in that city. The problem is that the displayed time zone GMT-0752 is inaccurate. The actual time zone is GMT-07:52:58, which is used to calculate the local time 21:23:35. Thus when parsing this string, there's a 58 second discrepancy. It seems the spec assumes that time zone is always a whole minute.

Re: xplat test failures, in the short term you could split the test into two separate test files, move the cases that have xplat failures into the second file, and tag the one with xplat failures exclude_xplat.
2: we cannot violate this part of the spec. I think that behavior will be depended on much more readily than 1.
1: Can we manipulate the value returned by LMT so that those values are consistent? Since the actual time and time zone might be implementation-defined (down to the minute so that we can follow all of the spec rules) making sure that we don't have a discrepancy in the number of seconds would solve our problems.
/cc @obastemur

Please disable the neg. year tests on xplat. TLDR; I had initially implemented with BC support on Linux (bunch of tricks involved) but wasn't enough for OSX (different system / different source of random tz data for years with no actual tz).

Yes we probably can't have xplat tests for negative years which exactly match on all platforms for the reasons stated above, however we can test that our implementation is spec-compliant on points (1) which is already tested by most tests, and (2) by testing equivalence of those two operations, rather than their actual values.

authors: dilijev obastemur xiaoyinl


text:
Misc minor fixes to Switch Optimization

Disabled Switch optimization upon Rejit.
Cleaned up an API which is no longer called.
Added back the Assert in the Ld_A const folding API (It was removed
earlier as it can have only two BailOutKinds, but it is good to have the
old assert here.)

https://github.com/Microsoft/ChakraCore/pull/704 was closed due to some issue with ChakraHub. So recreating a new (duplicate PR).


text:
build master head with VS 2019

Hi, is head of master branch supposed to build with VS 2019 preview ? I tried to build MICore  and ran into such error:
Could not copy the file "obj\Debug\Microsoft.MICore.dll" because it was not found.
No such problem when build with VS 2017.
Thanks  for help !

Yes, it should work. What solution configuration are you using? Do you get any errors/warnings before that?

@digittigerw Please reopen/comment if it is still not working.

authors: digittigerw gregg-miskelly pieandcakes

repo: Microsoft/MIEngine


text:
Memory Leak in the SpatialMappingObserver

[Note] this is not an issue for the latest version HoloToolkit-Unity but an issue for the older version of HoloToolkit-Unity. However, due to the limited information I found in Google, I still post this issue here.
I observe a memory leak from the SpatialMappingObserver. I suspect this is causes by this line of code:
        /// A dictionary of surfaces that our Surface Observer knows about.
        /// Key: surface id
        /// Value: GameObject containing a Mesh, a MeshRenderer and a Material
        /// </summary>
        private Dictionary<int, GameObject> surfaces = new Dictionary<int, GameObject>();

surfaces creates to much GameObjects and prevents the Garbage Collector to clean the memory. The memory goes from initially 225 MB to 900 MB after 10 mins of operation. I observe this issues in the Unity version 5.5.2f1. But in the Unity version 5.4.0f3 there is no memory leak.
I use the Diagnostic Tools -> Memory Usage to measure the memory in my program. I notice that the latest build of HoloToolkit-Unity has abandoned this Dictionary data structure. I wonder if the community has already fixed this problem and should I move my development to the latest Unity version 5.6 and the latest HoloToolkit-Unity or is there a quick fix for it. There is a similar discussion here.
Thanks for any help in advance.

Using the latest MixedRealityToolkit-Unity solves my problem

repo: Microsoft/MixedRealityToolkit-Unity


text:
Mrtk forward compatibility

Redone PR of #1048 (Messed up my rebase)
Gets some of the forwards compatibility issues out of the way.
Most changes are to the Build and Deploy windows and Mixed Reality Toolkit Menus
Fixes #851
Fixes #895
Fixes #1018
Fixes #1019

Anything else Adam?

@DDReaper which scene setting issues?


text:
[vNext] Addressed feedback from Simon on naming of some files and demo scene. #2938

Overview

Updated Demo scene with introduction banner and updated head and body objects to reflect current standards.

Moved creating new states and themes to Mixed Reality Toolkit/Interactable/State

Fixed an inspector layout error

Renamed a bunch of files to include the "Interactable" prefix

Changes

Feedback: # 2938

I found that visual effects on HolographicButton are broken, and cannot change theme property. Probably because of the name change:

Thanks @cre8ivepark, I got these fixes pushed to a new branch, so I'm going to abandon this PR and create a new one.

Since we abandoned this branch, can we clean it up as well?
feature/mrtk_interactable_demoUpdates_2938

@killerantz ?

Yes please!

@davidkline-ms please delete this branch.

authors: StephenHodgson cre8ivepark killerantz


text:
Optional pep8 formatting

I checked issue #1465, where @zooba said they do not prefer any particular style in VS.
Yet I was wondering why there is not an option to enable complete pep8 formatting. It's easier to work together with people using PyCharm that way, and even VSCode has the python plugins to format like this.
In fact on of the plugins is using autopep8. Could this be considered for PTVS?

I've added it as a feature to consider. Currently we only support one variety of formatting, which is our own (and honestly it isn't very good - there are a lot of things that are not formatted properly).
Since we don't have a plugin architecture, it isn't trivial to add support for an external library like this. It'll take a bit of work.

Would you accept contributions for this? And if so, could you also provide some general thoughts about how you could eventually implement this? Maybe I can try to help where I can.

If you want to look in Microsoft.PythonTools.targets at how we did very basic pylint support, you could probably clone that to work for a linter. You can add the definition into your own .pyproj file for testing, and submit a PR against the targets file to enable it for everyone's projects.
Ideally we'd be looking at an editor extension that can continuously run the plugin in the background and generate errors and squiggles live. That's a fairly significant task, but if you've got good C# skills and have created other VS extensions in the past, we can probably help you do it.

I honestly have no experience with extensions. I will look into it anyway, but probably won't be of any help though.

authors: BenjaVR zooba

repo: Microsoft/PTVS


text:
R Tools for Visual Studio 2017

Any ETA for VS 2017?

Around may, with preview releases earlier.
On Wed, Mar 8, 2017 at 2:21 AM plr1975 notifications@github.com wrote:

Any ETA for VS 2017?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/RTVS/issues/3276, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAtUVOH3UcfjQcpWhopwJMoXB9LMsXc7ks5rjoEigaJpZM4MWm4p
.

So, I assume rtvs is stuck on the same issues as Python (translations)?

Yes. Localization and accessibility requirements.
On Wed, Mar 8, 2017 at 6:13 AM Michal Vácha notifications@github.com
wrote:

So, I assume rtvs is stuck on the same issues as Python (translations)?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/RTVS/issues/3276#issuecomment-285050786,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAtUVB9Dsk0a7eAAsGPF0RwX7-eqxUexks5rjrdugaJpZM4MWm4p
.

And do you plan to release rtvs as part of VS Preview? Python is already there, but no R :(

Absolutely. We are shooting for April/May timeframe for RTVS for VS2017.
Python had already shipped inside the 2015 box so it got an exception.
On Thu, Mar 9, 2017 at 12:30 AM Michal Vácha notifications@github.com
wrote:

And do you plan to release rtvs as part of VS Preview? Python is already
there, but no R :(
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/RTVS/issues/3276#issuecomment-285287097,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAtUVF_Jb9NEHfji9DTSPAsNeKYam-WIks5rj7i2gaJpZM4MWm4p
.

Wouldn't it be at least possible to release the package that shipped with VS 2017 RC1 (I think)?

We currently don't have installer. VS 2017 is installed very differently from 2015 so the existing MSI-based installer won't work. In in-box case we provide components and internal VS installer takes care of them. Also, VS installer is using new format which is not compatible with the Gallery (i.e. RTVS cannot be packaged as traditional style gallery extension). In order to make RTVS installable from outside VS we'd need to craft some sort of installer or script. Which would be error prone and when official version comes out it won't be able to upgrade in place, creating possible ugly bugs and crashes since two copies of the code may end up in VS.

Ok, thanks for reply. I tried building the RTVS from sources for VS 2017, but failed everytime :( I assume I'll have to wait for the official release then. And thanks for doing good work on RTVS.

Depends which branch are you building. Release/1_0 is the stable one.

Ok, so I managed to build it, but found few files missing from the repo. Probably just forgotten references, that are no longer used in project, fixed them in PR #3324 .

i installed all my outstanding updates for visual studio 2017 and it all worked after that

authors: AmrutaKar MikhailArkhipov mvacha plr1975 smortaz

repo: Microsoft/RTVS


text:
How to use IntPtr to reference ClaimsIdentity

Hello,
Thanks for the great examples here.  This has been enormously helpful.  I do have 1 concern in my code that is not clear how this should be handled from any of the examples.  In my IAuthenticationExtension2 I set the identity to a ClaimsPrincipal, complete with roles.  However, in the IAuthorizationExtension we only get passed in the username.
I've done something which I'm quite certain is creating a Memory Leak - I'm using GCHandle to get a reference to the ClaimsIdentity as an IntPtr and returning that for the out.  This allows me to access it in the Authorization, so I can check for Roles the user is in to verify Permissions and Check Access.
However, as I'm creating a new reference every time and never cleaning those up and GC will not touch those.  Is there something I'm missing or should do differently?  Guess I'm a bit stumped about how to properly share those details between the 2 different interfaces.

@rposener  wow, it looks like i am going to follow your code, i am looking to use my Identity Server V3 STS and it looks like you are doing much the same thing .....   if you have any tips or details please share them!

@figuerres - we've been running that code internally for a little while and haven't run into issues yet.  I can't say it's 100% cleanest code - the somewhat arbitrary cleanupTimer (as opposed to a session End event or something) and the static list of Identities are probably not ideal.  But it is working well from our use so far.  Can't say we've put into a larger environment yet - if you find other spots for improvement would love to see what you come up with so we can all benefit until MS offers a better solution.
Cheers.

@rposener thanks for the info.
i am going  over where i took the MS sample code and started trying to work out how to do this,
then  found your code.
so i am patching in some of your code to my code to see if i get it to work.
it looks like sometime today or tomorrow i can start to test my version.
i have taken some calls you had in your pe utility and moved them to the OIDC class so that my app helper only has the get roles and validate  bits.
when i get the first tests working then i can start to see how it all works out.
when i started to look at this i was seeing all the id server sample code using the startup.cs to add support but with SSRS we can't do that, you appear to have dealt with that  which is great.

authors: figuerres rposener

repo: Microsoft/Reporting-Services


text:
Update to nunit3 as appveyor is upgraded

Update unit test to use NUnit3, as AppVeyor is upgraded to use NUnit3.
Explicitly set assemblies to test, as AppVeyor test auto-detection will detect SparkCLRSamples.exe but fail to find any testfixtures in it.

Hi @kai-zeng, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Kai Zeng). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

LGTM

LGTM

authors: kai-zeng msftclas rapoth skaarthik

repo: Microsoft/SparkCLR


text:
'instanceof' narrowing works awkwardly with empty object types & primitives

Try in the playground.
class Dog {
}

declare let x: Dog | string;

if (x instanceof Dog) {
    x
}
else {
    x.toLowerCase()
}

Expected: No error, first branch's x has type Dog, second branch's x has type string
Actual: Property 'toLowerCase' does not exist on type 'never'. (first branch is string | Dog, second is never)
We should be accounting for primitives a little less sloppily. instanceof checks don't work on primitive types.

Specifically, any changes here should ensure that
function foo(x: number | string) {
    if (x instanceof Number) {
        x
    }
}

x is not narrowed in the above example.

Actually, we should just issue an error when no constituent of a union is a primitive.

repo: Microsoft/TypeScript