Missing File in Image?

Fresh install of Unbuntu 22.4.1 and of Debian 11.5. Container starts, then terminates
Error:
/run/s6/basedir/scripts/rc.init: 67: restart:: not found
Run Command:
docker run -d --name Speedtest-Tracker
-p 8090:80
-p 10443:443
-e PUID=1000
-e PGID=1000
-v /var/lib/docker/volumes/speedtest_tracker:/config
ghcr.io/alexjustesen/speedtest-tracker:latest
restart: unless-stopped

Logs of the container to check startup phase.
Check permissions of PUID 1000 PGID 1000 for folder /var/lib/docker/volumes/speedtest_tracker

id me
uid=1000(me) gid=1000(me) groups=1000(me)
ls -l
drwxr-xr-x 2 me me   4096 Jan 30 16:33 speedtest_tracker
🏃♂ Checking for Laravel automations...
🔐 Linking the storage...
🔒 SSL_MODE has been set to MIXED, setting the web server to work in HTTP + HTTPS...
ERROR  The [public/storage] link already exists.
🐇  Configuring Speedtest Tracker...
✅  Database exists
🔗  Creating database symlink
✅  Environment file exists
🔗  Creating symlinks to config and log files
✅  App key exists
🔒  Fixing app path file permissions
💰  Building the cache...
[30-Jan-2023 22:35:08] NOTICE: fpm is running, pid 96
[30-Jan-2023 22:35:08] NOTICE: ready to handle connections
[30-Jan-2023 22:35:08] NOTICE: systemd monitor interval set to 10000ms
🚛  Migrating the database...
✅  All set, starting Speedtest Tracker container...
⏰  Starting the cron service...
💪  Starting the queue worker...
/run/s6/basedir/scripts/rc.init: 67: restart:: not found
[30-Jan-2023 22:35:09] NOTICE: Terminating ...
[30-Jan-2023 22:35:09] NOTICE: exiting, bye-bye!

Some users with similar issues simply deleted and reinstalled from scratch, something wrong with the image maybe? https://github.com/alexjustesen/speedtest-tracker/discussions/364

VM on Proxmox. Hardware is a bit older (Intel Pentium G3220), but not enough that it should be an issue I would think.

I don't think so, but you never know with these old cpus on these new sw stacks. :)
Did you try recreating everything from scratch? Also: can you try it on another system?

Same issue here. I am as well running a Docker VM on Proxmox on some older Hardware (Fujitsu Futro S740)

Installed xcp-ng on same hardware but changed to another SSD drive as xcp-ng didnt recognize the drivers for the original m.2 ssd. Fresh install of Debian and still same issue.
Friday I will be reinstalling Proxmox on my main VM host and will test again with much more up to date hardware and report back, but this is starting to point to the old hardware CPU being the issue some how.

Try using docker user group as PGID. An RPi user solved a similar issue with that.

Having same exact issue. Both on M1 MacBook Pro and on ProxMox Debian VM like other users here.

i changed PGID=999 (docker group) -> result is the same

runnig in docker-compose works
speed:
hostname: speed
container_name: speed
image: ajustesen/speedtest-tracker
restart: unless-stopped
ports:
- 9080:80
- 8443:443
environment:
- PUID=1000
- PGID=1003
volumes:
- ${DATA_DIRECTORY}/speedtest/config:/config
networks:
my-net:
ipv4_address: <IP_ADDRESS>
dns:
- <IP_ADDRESS>

can you try with docker-compose and PGID=999 (docker group id).

All new hardware today and still same issue. I will test with docker compose tomorrow.

Docker compose does indeed work correctly.
version: '3.3'
services:
speedtest-tracker:
container_name: Speedtest-Tracker
ports:
- '8080:80'
- '8443:443'
environment:
- PUID=1000
- PGID=1000
volumes:
- '/var/lib/docker/volumes/speedtest_tracker:/config'
image: 'ghcr.io/alexjustesen/speedtest-tracker:latest'
restart: unless-stopped

Docker compose does indeed work correctly.

thanks for the feedback. what PUID/PGID values did you use? can you close the issue if it's ok? Thanks.
@alexjustesen I would suggest to change the installation instructions to use docker compose. It would avoid a lot of users opening issues.


Feat: Add post conditions to snadbox function calls

Issue: https://github.com/orgs/hirosystems/projects/18?pane=issue&itemId=6200877
Feature: Adds post conditions to sandbox function view. This markets this feature of Clarity, it allows us to relax the deny mode requirement, and in allow mode it enables the user to add standard post condition safeguards. Adds a toggle for allow deny mode
UX:
https://user-images.githubusercontent.com/20312835/213023115-1f2a6521-171e-48d4-8b8f-20aac67bff6b.mov
Testing:
NonFungible Post Condition -https://explorer.stacks.co/txid/0x9b77a3f342f1f8227e4395d8ec2649ed5bcb058ecfe44c811489174430e756fc?chain=mainnet

Thanks @BLuEScioN, this is really good! Working without a designer is challenging, and this interaction is tricky.
Here is my take on custom selects: Unless necessary, we should try to avoid them. In this case, it doesn't matter because we'll change the UI layer next week, but here is why:
1- Accessibility on a select is extremely hard to nail. A native select is accessible by default
2- In general, unless the design is spot on, custom selects perform worst when doing user research.
3- It's more code to maintain, and it can fail or have bugs.
Having said that, I wouldn't change this PR.

Thanks @BLuEScioN, this is really good! Working without a designer is challenging, and this interaction is tricky.
Here is my take on custom selects: Unless necessary, we should try to avoid them. In this case, it doesn't matter because we'll change the UI layer next week, but here is why:
1- Accessibility on a select is extremely hard to nail. A native select is accessible by default 2- In general, unless the design is spot on, custom selects perform worst when doing user research. 3- It's more code to maintain, and it can fail or have bugs.
Having said that, I wouldn't change this PR.

I can change the dropdown to use select. Should only require minor css retouching

How's it going, guys?
this allow/deny switch for post-conditions would be of great use!


gnu(8512)=9637

Constructed a list of length 9630
It contains 9623 groups and 7 sublists
Length of sublists are [ 2, 2, 2, 2, 2, 2, 2 ]
9630<=gnu(8512)<=9637
Runtime of this construction: 14020029 ms (3.89 hrs)
Now checking non-isomorphism of groups in sublists ...
System : Windows Vista

Thank you for submitting new gnu(n). We will recalculate it and add to the database if we get the same result.
Checklist for the reviewer:

[ ] checked and assigned labels "new (n<50000)" or "recomputation", if needed
[ ] set "replication needed" label (unless it starts immediately)
[ ] changed it to "replication in progress" label when the replication has been started
[ ] changed it to "replicated" after successful replication review
[ ] reproducible value of gnu(n)
[ ] no essential runtime differences
[ ] sufficient level of technical details

Checklist for the maintainer:

[ ] correct arguments of command to store data
[ ] correct location of new line in the data file
[ ] mention submitter and reviewer in the commit message
[ ] Close corresponding issue from the commit message

gnu(8512)=9637
GAP      4.8.3
GrpConst 2.5
Runtime of ConstructAllGroups: 8701849 ms (2.42 hrs)
Returned a list of length 9630 containing 9623 groups and 7 sublists
Length of sublists : [ 2, 2, 2, 2, 2, 2, 2 ]
Runtime to check non-isomorphism of groups in pairs: 61620812 ms (17.12 hrs)
Replicated by @alex-konovalov on Ubuntu 16.04 on Azure cloud standard DS13 v2 instance (8 cores, 56 GB memory)
To maintainers: for new results, add to data/gnudata.g this line:
GNU_SAVE( 8512, 9637, WITH_GC );


[MSYS2] Unable to build hello_world sample

Hello,
I followed the getting started docs setting up the dev environment with MSYS2.
When I want to build the hello_word sample I get following error message:
user@DESKTOP-4CBD1T4 MSYS ~/zephyr/samples/hello_world/build
$ cmake -GNinja -DBOARD=stm32f3_disco ..
CMake Deprecation Warning at /home/user/zephyr/cmake/app/boilerplate.cmake:38 (cmake_policy):
  The OLD behavior for policy CMP0000 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:2 (include)

-- Found PythonInterp: /usr/bin/python3.exe (found suitable version "3.6.2", minimum required is "3.4")
-- Selected BOARD stm32f3_disco
Zephyr version: 1.10.99
Parsing Kconfig tree in /home/user/zephyr/Kconfig
Using /home/user/zephyr/boards/arm/stm32f3_disco/stm32f3_disco_defconfig as base
Merging /home/user/zephyr/samples/hello_world/prj.conf
-- Generating zephyr/include/generated/generated_dts_board.h
CMake Error at /home/user/zephyr/cmake/dts.cmake:69 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  /home/user/zephyr/cmake/app/boilerplate.cmake:243 (include)
  CMakeLists.txt:2 (include)

-- Configuring incomplete, errors occurred!

The command that fails is:
/c/Coding/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe -x assembler-with-cpp -nostdinc -I/home/user/zephyr/arch/arm/soc -isystem /home/user/zephyr/include -isystem /home/user/zephyr/dts/arm -isystem /home/user/zephyr/dts -include /home/user/zephyr/samples/hello_world/build/zephyr/include/generated/autoconf.h -include;/home/user/zephyr/boards/arm/stm32f3_disco/stm32f3_disco.dts;-include;/home/user/zephyr/dts/common/common.dts -I/home/user/zephyr/dts/common -I/home/user/zephyr/drivers -undef -D__DTS__ -P -E /home/user/zephyr/misc/empty_file.c -o stm32f3_disco.dts.pre.tmp

The semicolons right after '-include' look out of place.
When executing the command manually with the semicolons replaced by whitespaces I get no error but the "stm32f3_disco.dts.pre.tmp" is not created.
Additional information:
user@DESKTOP-4CBD1T4 MSYS ~/zephyr/samples/hello_world/build/zephyr
$ /c/Coding/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe -v
Using built-in specs.
COLLECT_GCC=C:\Coding\gcc-arm-none-eabi\bin\arm-none-eabi-gcc.exe
COLLECT_LTO_WRAPPER=c:/coding/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/7.3.0/lto-wrapper.exe
Target: arm-none-eabi
Configured with: /home/freddie/bleeding-edge-toolchain/sources/gcc-7.3.0/configure --host=x86_64-w64-mingw32 --enable-languages=c,c++ --with-headers=yes --with-libiconv-prefix=/home/freddie/bleeding-edge-toolchain/buildWin64/prerequisites/libiconv-1.15 --target=arm-none-eabi --prefix=/home/freddie/bleeding-edge-toolchain/installWin64 --libexecdir=/home/freddie/bleeding-edge-toolchain/installWin64/lib --disable-decimal-float --disable-libffi --disable-libgomp --disable-libmudflap --disable-libquadmath --disable-libssp --disable-libstdcxx-pch --disable-nls --disable-shared --disable-threads --disable-tls --with-newlib --with-gnu-as --with-gnu-ld --with-sysroot=/home/freddie/bleeding-edge-toolchain/installWin64/arm-none-eabi --with-system-zlib --with-gmp=/home/freddie/bleeding-edge-toolchain/buildWin64/prerequisites/gmp-6.1.2 --with-mpfr=/home/freddie/bleeding-edge-toolchain/buildWin64/prerequisites/mpfr-4.0.0 --with-mpc=/home/freddie/bleeding-edge-toolchain/buildWin64/prerequisites/mpc-1.1.0 --with-isl=/home/freddie/bleeding-edge-toolchain/buildWin64/prerequisites/isl-0.18 --with-pkgversion=bleeding-edge-toolchain --with-multilib-list=rmprofile
Thread model: single
gcc version 7.3.0 (bleeding-edge-toolchain)

user@DESKTOP-4CBD1T4 MSYS ~/zephyr/samples/hello_world/build/zephyr
$ cmake --version
cmake version 3.9.6

CMake suite maintained and supported by Kitware (kitware.com/cmake).

Ninja was missing from the installation. Fixed it by using make instead. Sorry for the inconvenience.


Commit 404 error

Changelog -> Commit 0e9cf47 (Fix #550) -> Right-click -> View on GitHub = 404 Not Found

The short hash is supported by Github so not sure why it wasn't working for that one commit. I've changed the URL with the long hash 👍


Cannot use it with yarn 3/pnp

Hi, @magic-akari
Seem that jest_workaround cannot work under yarn 3 pnp.
Here is a example to reproduce.
I have try pnpm, it works well. But when use package manager yarn 3, it cannot to run test successfully.
I have also try to run test using node 16/20, neither of them works.
Here is the error
 FAIL  src/calculate.spec.ts
  ● Test suite failed to run

    failed to get the node_modules path

      at Compiler.transformSync (.yarn/unplugged/@swc-core-virtual-4ff309335d/node_modules/@swc/core/index.js:241:29)
      at transformSync (.yarn/unplugged/@swc-core-virtual-4ff309335d/node_modules/@swc/core/index.js:348:21)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        0.241 s
Ran all test suites.

If I comment out the line, the test runs successfully.
Do I miss Any fatal config?

see https://github.com/swc-project/swc/issues/3247


prevent raising an Exception if simon is not installed

This line throws an Error if sinon is not defined.
module.js:340
    throw err;
          ^
Error: Cannot find module 'sinon'
  at Function.Module._resolveFilename (module.js:338:15)
  at Function.require.resolve (module.js:384:19)
  at Object.<anonymous> (/Users/juan/projects/personal/strava-es6/node_modules/ass-ert/main.js:38:39)
  at Module._compile (module.js:456:26)

require.resolve('sinon') will return the file where sinon is defined, or throw an exception if undefined.
Hack to silent the error. I could not find an easy way to understand if the dependency is available.

thank you @juandebravo! :love_hotel:


Mandrill SSL expiration?

https://github.com/brack3t/Djrill/blob/68929e015e9f8cfdf465fd5dfeb18309338c0687/djrill/mail/backends/djrill.py#L37
If you connect to https://mandrillapp.com/api/1.0 you get an SSL error (since the certificate is expired). https://www.mandrillapp.com however works fine.
A workaround is to define a custom MANDRILL_API_URL as
MANDRILL_API_URL = "https://www.mandrillapp.com/api/1.0"

Hrm, weird. Apparently there's a bad node in their round-robin or something. :-/

Hrm, seems that Mandrill knows about it (http://status.mandrillapp.com/), I'm going to close this out as a non-issue. Sorry for the chaff!


PB-4407: kubevirt Vendor Integration for FC automation with Torpedo

What this PR does / why we need it:
This is 2nd part of PB-4407 to add vendor for kubevirt support.
Which issue(s) this PR fixes (optional)
Closes #
PB-4407
Special notes for your reviewer:
This change uses sched-ops changes submitted through PR https://github.com/portworx/sched-ops/pull/329

Please rebase before merging.


NUL file created when opening nvim

I have an issue where everytime I open nvim a NUL file is created on linux
I investigated and found that the issue was with the way windows detection is done in the file git.lua
local is_windows = vim.fn.has("win32")

is_windows will be 0 at that point and
local null = is_windows and "NUL" or "/dev/null"

Since lua does not interpret 0 as being false the null file is then 'NUL'
the windows check sould be
local is_windows = vim.fn.has("win32") == 1

Thanks for your great plugin

Thanks for checking this and sharing the corrected check!


Service failed

I am trying to use your module with the example you have. I have created and specified my Google Cloud Translation API key, but am receiving the error "Service failed".
// Require the module and instantiate instance
var TJO = require('translate-json-object')();

// Choose the service to use google/yandex,
// if you provide both yandex will be used as the default
TJO.init({
    googleApiKey: 'AIzaSyD42ymVCzU0iQZ8O3ENgEsZ-VS4PrF_zu8'
});

// An example scenario (json) object
var example = {
    "name": "Please enter your name",
    "list": ["translate", "object", "made", "easy"],
    "nested": {
        "hello": "hello",
        "world": "world"
    }
};

// Translate method takes (source object, and language code)
TJO.translate(example, 'es')
    .then(function (data) {
        console.log(data);
    }).catch(function (err) {
        console.log('error ', err)
    });

Hi I also get the 'Service failed' error.
The module works well with small files, but fails on larger ones (I tested with ~500 chars).
Thank you in advance!
Here is my code in full. Is there something I'm missing?
require('dotenv').config()
const TJO = require('translate-json-object')()
const fs = require('fs')

// read source
const readSource = (fileName) => {
    return new Promise((resolve, reject) => {
        fs.readFile(`./source_files/${fileName}`, (err, srcJson) => {
            if (err) reject(`Failed to read ${fileName}`)
            resolve(JSON.parse(srcJson))
        })
    })
}

// translate content
const translate = (sourceData, lang) => {
    //API config
    TJO.init({
        googleApiKey: process.env.GOOGLE_TRANSLATE_API_KEY
    })
    //API call
    return new Promise((resolve, reject) => {
        TJO.translate(sourceData, lang)
            .then(translation => {
                resolve(translation)
            }).catch(err => {
                reject(`TJO says: ${err}`)
            })
    })
}

// save target
const saveTarget = (translation, fileName) => {
    return new Promise((resolve, reject) => {
        fs.writeFile(`./target_files/${fileName}`, JSON.stringify(translation, null, 2), 'utf8', (err) => {
            if (err) reject(`Faled to save ${fileName}: `, err)
            resolve(`Translation for ${fileName} is saved!`)
        })
    })
}
// build target file name
const newFileName = (sourceFileName, targetLang) => targetLang + sourceFileName.substring(2)

// translate JSON
const translateJson = (fileName, targetLang) => {
    readSource(fileName)
        .then(srcJSON => translate(srcJSON, targetLang))
        .then(translation => saveTarget(translation, newFileName(fileName, targetLang)))
        .catch(err => console.log(err))
}

// LAUNCH
translateJson('en_1.json', 'es')

Hi @valenber!
Since you are using google translate you should adhere to the Usage Quotas. Since the file mentioned holds ~500 chars it should work fine.
The error might sometime occur due to bad/expire api key

Thank you for quick reply @KhaledMohamedP!
This volume is well within quotas, and I can see in Google Cloud Translation API console, that the requests are recieved and processed without errors. I also created a new API key just in case.
Is there anything else I can check?

@valenber is it possible to send me a sample of what you trying to translate?

I've been looking at the service/google.com module and it seems that this error can possibly be caused by JSON files that have a key without a string value, e.g.
{
    "hello": "hello",
    "one_deep": {
        "red": "red",
        "two_deep": {
            "one_more": {
                "and": "finished"
            }
        }
    }
}

This creates an empty array element inside valuesArray variable:
[ 'finished' ]
[]
[ 'red' ]
[ 'hello' ]

and my guess is that sending this empty array to Google API is what produces this response.
What do you think?

Thanks @valenber for providing the details info. You are probably right, but will do more testing tonight and verify that

@valenber using the sample object you provided and google translate api I didn't face any issue
Result:
{
  "hello": "hola",
  "one_deep": {
    "red": "rojo",
    "two_deep": {
      "one_more": {
        "and": "terminado"
      }
    }
  }
}

I tried this same structure, both as imported JSON-file and as an inline JS object and it responded with the same error 400.
However adding valuesArray = valuesArray.length > 0 ? valuesArray : [''] before the call to translateService.translate() inside translateString() method of service/google.js module, seem to have solved it for both this example structure and the actual large file I had problems with intially.
Of course if it doesn't reproduce in your environment it doesn't make sense to keep the issue open. Thanks for your time and effort! :)

@valenber good catch. I was able to reproduce the issue, and I am currently working on it

@valenber @Duard-Harmse both issues should be addressed in the new version of the module v2.3


Timeouts

This looks really great.  Is there anything someone like me could be doing to help move this feature forward, or would that involve more effort than it's worth from you?

it's green! I'm pressing the button!


[shortcut] c+s+y open project viewer on Win OS

this should fix issue #133

Also update document and CHANGELOG


test(ip-restriction) properly checking "X-Forwarded-For" header

Some additional tests on IP Restriction plugin trying to replicate #1995, unsuccessfully.
Everything seems to be working fine with a X-Forwarded-For header.

Merging because more tests never hurt


How to Debug with Rustrover IDE?

As Rustrover offers more comprehensive features and a comprehensive search function, it is relatively easy to use. The hope is to provide a convenient configuration for running and debugging

As shown above, The Rust code did not enter the debugging breakpoint.

Maybe you could refer to Tauri's and JetBrain's tutorial on debugging with RustRover.

Rust tutorial
JetBrain's tutorial

I'm going to close this as resolved. Feel free to reopen if there are further questions. After all, even if you fail to figure out how to debug, you can just print the variables of interest locally, then run with npm run tauri dev or npm run tauri build -- --debug in the terminal.


chg: [machine-tag] version MUST be an unsigned integer

ref: https://tools.ietf.org/html/draft-dulaunoy-misp-taxonomy-format-07#section-2.1

Hm. In the meetings we discussed and decided to use major / minor version scheme. (Major versions may affect taxonomies, minor versions not). So I guess we need to revisit that?

Indeed but you can mention your major/minor version in the description or alike. It's just the version for the taxonomy.

So we use the "version" field for some kind of revision?

The version field is used by tools and so on and must be an unsigned integer. It would recommend to have that inline but you can use an additional version reference in the description.

discussed in LUX. kick off discussion on version numbering on the mailing list.

We need to stick to the major-minor scheme as we have a valid decision of the WG on that.
So I want to propose that we have 2 "versions", one for MISP and one for humans. Does that work for you @adulau ?

The issue I see is that it this is added the taxonomy looses it's independence.
If something Tool Specific is added, then other tools have to be included hence the taxonomy gets bloated with specifics which is only used by tools (see discussion about weights in LUX). As this is a reference Taxonomy it should be the other way round.

My other idea would be to have an integer-only 'revision' field for tools like MISP and a semantic versioning (with major-minor)  'version' field.

@sebix The second idea seems good to me. We just need to keep the revision and the semantic versioning inline in the repo somewhere to automate the generation of the machine tag taxonomy to have an automatic inclusion in misp-taxonomies.. Thanks a lot.

See #52

Agreed in Paphos:
3 minor digits for minor version and leading digits on major version
1,1
1001

Closed by #65 in Paphos


GPG check fails - Cannot install packages in fresh installation

Bellow is the error I get from dnf. It has been a while now that I'm having this issue.
$ sudo dnf install R-CRAN-DynareR
Copr repo for cran owned by iucar
Dependencies resolved.
==============================================================================================================================================================
 Package                           Architecture         Version                                 Repository                                               Size
==============================================================================================================================================================
Installing:
 R-CRAN-DynareR
....

You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED

Edit: Thank you for your work!

What is your version of rpm-sequoia? Try updating it.


Unexisting users?

TypeError: Cannot read property 'every' of undefined
at Object.checkPlatform (C:\Users\Nathan\Desktop\Fortnite_QC\node_modules\fortnite-api\tools\stats.js:28:15)
at request.then.stats (C:\Users\Nathan\Desktop\Fortnite_QC\node_modules\fortnite-api\index.js:245:39)
at tryCatcher (C:\Users\Nathan\Desktop\Fortnite_QC\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\Users\Nathan\Desktop\Fortnite_QC\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (C:\Users\Nathan\Desktop\Fortnite_QC\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (C:\Users\Nathan\Desktop\Fortnite_QC\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (C:\Users\Nathan\Desktop\Fortnite_QC\node_modules\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (C:\Users\Nathan\Desktop\Fortnite_QC\node_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (C:\Users\Nathan\Desktop\Fortnite_QC\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (C:\Users\Nathan\Desktop\Fortnite_QC\node_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:794:20)
at tryOnImmediate (timers.js:752:5)
at processImmediate [as _immediateCallback] (timers.js:729:5)
It is working fine, but some users throw errors like they are not existing or something.. but they do exists.

Probably people having their account set to private

I don't know I mean you can check JayBrainDead with the API it doesn't work.. but on FortniteMaster, FortniteTracker It works fine.

Can you give me the user please and platform. I will check.

FortniteTracker has some esoteric ways to get stats, we had case where people in private mode could not be found through this API but FortniteTracker could.
I believe that's the same for Reginald's baby

A person is : avenger444 @ pc

For me the pseudo is not good. I have no data from Epic Games.

I do understand that this issue is closed, even though this is an issue which has started to happen to a couple of people I know now. We can get the ID of the user but the not the stats anymore (suddenly)
Examples : Aerik_ , avenger444(as told before), wolf592, GreenMario3305 (probably goes on..)
Does anyone have any information why it suddenly have stopped working with a few people but not all? Have they maybe added in some "privacy" setting or changed something with the endpoint? Then the question is why fortnitetracker/fortnitemaster is not affected or if they are using some other "connection" or if they might have gotten a "bearer" code to get more information or having higher permission?

Okey, it seems Fortnite has added an option "Settings > Account > Leaderboard Privacy" which makes it impossible to retrieve the information through their "public" api, but fortnitetracker and fortnitemaster are still able to get the information somehow. (end of story I guess)

Yeah, it has been said just above in this issue: https://github.com/qlaffont/fortnite-api/issues/131#issuecomment-424317597


Problem using Google Auth in Mattermost mobile (ios/android) versions

Summary
Trying to use google auth in mobile (android and ios) is returning an Error: disallowed_useragent on google's side.
Followed the instructions on how to set it up in the site and works perfectly on the web. Haven't made it work in android/ios/mac clients.
Environment Information

Device Name: Samsung Galaxy S8
Mattermost App Version: latest
Mattermost Server Version: latest

Steps to reproduce
Enable Google Auth in the system console, configure with the right api credentials and try to log in using a current user.
Expected behavior
It should log you in.
Observed behavior

Hi @adrianveracom - is this on the new "Mattermost 2017 Beta" mobile apps, or the older ones?
We haven't added Google Auth support to the new mobile apps yet, it's on the roadmap for after the July release.
Is it something you would be interested in helping contribute?

@lfbrock this happens on both versions of the mobile apps.
My use case:
team uses Google as auth server for Gitlab.

Hi,
On Android, Google requires to use Chrome Custom Tabs to use OAuth.
We need to change WebView here https://github.com/mattermost/mattermost-mobile/blob/master/app/screens/sso/sso.js

I'm having the same problem on iOS. Is there any possibility to already use a working beta version for iOS and Android? We only use Google as auth server for Gitlab as well, so that's a show stopper right now. Are there any workarounds?

Hi @thobai + others,
For those using GitLab SSO, we don't officially support connecting to other authentication methods through GitLab. That being said, we've been investigating Google Auth since it's one of our enterprise edition features, summary of what we've found is below.
The issue is that Google revoked the ability to use a WebView to authenticate using their OAuth2 provider. Since GitLab uses a web application flow, it needs the WebView to work.
To use the Google Login libraries instead of a webview, you need to compile the app with a google-service.json file in order to make use of your own Google Api Key. So it's looking like anyone using Google Auth would need to compile the apps themselves.

Any progress on this topic? Someone with a workaround?

What's the resolution of this issue? I still have that problem...

Hi @MarkusTeufelberger
Thanks for your question,
At this stage, the resolution of this issue is as per lfbrock's post above...

Could we use this solution https://github.com/RocketChat/Rocket.Chat.Cordova/issues/159#issuecomment-275730484 ?

@lfbrock @lindy65 AFAIK changing the user agent should do the trick. The SSO webview is created here:
https://github.com/mattermost/mattermost-mobile/blob/master/app/screens/sso/sso.js#L232
We could simply set the userAgent property:
https://github.com/react-native-community/react-native-webview/blob/master/docs/Reference.md#useragent
We could do this only when we're dealing with a Google OAuth URL so the impact should be minimal.
Are you interested in a PR?

Hi @promethe42,
Thanks for your message and the offer of a PR :)
I'll defer to @enahum and @esethna as they are more closely involved with the roadmap for the mobile apps. I'm not sure whether they're out for the holidays so they might only respond after the new year

@enahum OK I'll do it.
Here is my plan:

setup a build/config parameter to change the user agent declared by the web view
provide a default value that works for the Google Auth
attempt to use this user agent only for Google Auth URLs to minimize the impact

This would be my first Mattermost PR, so I'll have to setup my dev env first. But the documentation looks great.
In the meantime, please re-open this so people know it's being dealt with.

@promethe42 sounds like a solid plan, you can refer to the logic in the webapp to enable/disable the login option.
I’ve created this ticket https://mattermost.atlassian.net/browse/MM-13602 so it can be tracked.
Let me know if you need help with the dev env setup.
Thanks for taking care of this.

Let me know if you need help with the dev env setup.

I've setup a working Dockerfile to build the Android app with a one liner.
I'll make a first PR with that.

setup a build/config parameter to change the user agent declared by the web view

Where should I put this kind of config variable?

@promethe42 I think it should go in assets/base/config.json

any update？

@hzj629206 I remember it was easy to setup the custom user agent in the code base. But #2484 made it impossible for me to test.
I can open a PR with those changes if someone can help me with the testing.

@promethe42 you did not answered the questions on #2484.

Any update on this ?

Is this issue resolved?

For those following this issue, we have a ticket open here for anyone interested in contributing the change: https://mattermost.atlassian.net/browse/MM-13602

Thanks for the link. So this is still unresolved.
We did an emergency switch to Mattermost because RocketChat broke our instance several times due to auto-update issues of the snap distribution. However, without a working mobile client using Google OAuth, Mattermost is not really an interesting alternative 😕

I can confirm https://github.com/mattermost/mattermost-mobile/issues/622#issuecomment-450472819 approaach worked for us. We haven't added any test but we were able to login using google auth and the webview approach.

@AlanVerbner So you compiled it yourself with a changed user agent and it worked? Was it a simple string replace, if not would you consider sharing the changeset?

I'd really like this fixed but don't have the ready skills to do it myself. I've posted a $500 bounty on this: https://www.bountysource.com/issues/46286041-problem-using-google-auth-in-mattermost-mobile-ios-android-versions
Requirements would be: Auth with Google IDP succeeds, change must be merged and available in the store-based apps for bounty to be paid. Solution can either be the user agent (if you can convince the team to merge it) or (preferably) the "proper" way of authing with google, firing up an external browser.
Please all feel free to add to my bounty if you'd like to help motivate someone to fix this.

cc// @thefactremains ^

@henricook we are building support for this in our upcoming support for OpenID Connect. We expect to release this by Jan 2021 at the latest.

Thanks for the info @thefactremains
I was hoping for a solution for a fairly specific use case. I have a gitlab instance that uses Google Auth. I can't login to mattermost with it on mobile at the moment. I don't think the openid work you describe will affect that problem unless it takes over all Google/Microsoft etc auth flows and pops them out into a browser?

Our implementation of OpenID Connect will replace all OAuth SSO (including Google and Microsoft) for E20 licensed servers. It's possible that an E20 server could use OpenID connect to GitLab/Google SSO and would work on mobile, but I'm not certain - and that use case isn't covered in the MVP.
We're aiming to release this very shortly, so if you're on E20 (or considering it) the OIDC feature may well solve your issue.

Not entirely sure what license I'm on, will check - I don't think it's E20. When do E20 features filter down to the common folk?

Do you think someone would accept a PR as a stopgap to change the user agent mattermost uses to impersonate a real browser? (And evade Google's webview/user-agent restrictions)?

We are not currently planning to add OpenID Connect to E10 or Team Edition. We do however, regularly revisit our packaging based on input like this.
A community contributor could attempt to get this working. Based on my understanding, they would face a number of known issues (and some unknown).

@thefactremains All packaging revisits greatly appreciated. At a total guess you've got a lot of people about to be affected by https://developers.googleblog.com/2020/08/guidance-for-our-effort-to-block-less-secure-browser-and-apps.html on January the 4th 2021 who don't realise they're about to be affected.

Will sign up with google / oauth be released like in slack? https://gyazo.com/d01e5b3fef593dd20b4a117d96238c45

This should be solved already. If anyone is still having the same issue, feel free to reopen the ticket.


best practise for fastapi - session related

Hi guys,
I'm using fastapi.
There's a get-account endpoint in the example backend, which is checking whether there's a session accordingly.
When the user just visited the website, I saw a cookie for localhost: casdoor_session_id: 849561b2b7b07a6fd0e24cce6e0850b6
so, the fastapi receives this cookie and no more other info, when the frontend app send get-account requests.
My question is, is there any way to verify whether the casdoor_session_id is valid or not, or to get the logon user? so I don't have to use Sessions in fastapi, and let casdoor manage Sessions for me.
Thanks in advance.

@mr-m0nst3r casdoor_session_id is the cookie name from Casdoor, not your application. When your frontend has the valid casdoor_session_id cookie, it means it's already logged in Casdoor. So calling get-account API against Casdoor will give your the user info.
If you don't want to maintain session states in your application backend, your frontend needs to talk directly with Casdoor backend by calling get-account API against Casdoor via AJAX calls.


PSR-16 cache-key not compatible with all implementations

Issue summary
The PSR specification  does not list hyphens as necessarily accepted in cache keys. Trying to use many of the common libraries (such as cache/filesystem-adapter) causes an error due to the use of hyphens in the cache key.
System informations
(In case of a bug report Please complete the table below)

Information
Description

Pdp version
5.1.0

PHP version
7.1

OS Platform
Mac

Standalone code, or other way to reproduce the problem
composer require cache/filesystem-adapter
<?php

include("vendor/autoload.php");

$hostname = "https://foo.example.com";
$filesystemAdapter = new \League\Flysystem\Adapter\Local(__DIR__."./");
$filesystem = new \League\Flysystem\Filesystem($filesystemAdapter);
$cacheInterface = new \Cache\Adapter\Filesystem\FilesystemCachePool($filesystem);

$client = new class implements \Pdp\HttpClient {
    public function getContent(string $url): string
    {
        return file_get_contents($url);
    }
};

$manager = new \Pdp\Manager($cacheInterface, $client);
$rules = $manager->getRules();
$domain = $rules->resolve($hostname);
var_dump($domain->getRegistrableDomain());

Expected result
string(11) "example.com"

Actual result
PHP Fatal error:  Uncaught Cache\Adapter\Common\Exception\InvalidArgumentException: Invalid key "PSL-FULL-5a3cc7f81795bb2e48e848af42d287b4". Valid filenames must match [a-zA-Z0-9_\.! ]. in .../vendor/cache/filesystem-adapter/FilesystemCachePool.php:145

This issue is fix using #214 thanks for catching the issue and providing the patch to solve it 👍


[Bug] az repos import create returns HTTP/400 when both git-source-url and repository are in the same AZDO Org.

Attempting to move a git repo from one project to another under same Organization with
az repos import create --git-source-url<EMAIL_ADDRESS>--repository NEWREPO -
Expected Result:
Repository successfully imported.
Actual Result:
The operation returns HTTP/400 BadRequest when both Source & Destination Projects are under the same Org.
To Reproduce
Azure Cli Version:
azure-cli                          2.7.0 *
command-modules-nspkg              2.0.3
core                               2.7.0 *
nspkg                              3.0.4
telemetry                          1.0.4
Extensions:
azure-devops                      0.18.0
Steps to reproduce the behavior:

login using az login

setup defaults..
az devops configure --defaults organization=https://dev.azure.com/YOURORG project=YOUR-DEST-PROJECT

Run command....
az repos create --name NEW-REPO

az repos import create --git-source-url<EMAIL_ADDRESS>--repository NEW-REPO --verbose --debug

See error
...
...
urllib3.connectionpool : Starting new HTTPS connection (1): dev.azure.com:443
urllib3.connectionpool : https://dev.azure.com:443 "POST /YOUR-ORG/_apis/CustomerIntelligence/Events HTTP/1.1" 204 0
urllib3.connectionpool : https://YOUR-ORG.visualstudio.com:443 "POST /YOUR-REPO/_apis/git/repositories/NEW-REPO/importRequests HTTP/1.1" 400 0
msrest.exceptions : Operation returned a 400 status code.
handling generic error
cli.azure.cli.core.util : request failed: Operation returned a 400 status code.
request failed: Operation returned a 400 status code.

Expected behavior
Expected the SOURCE-REPO to be imported into the NEW-REPO. The operation works when the source/new repo are in different Organizations. It fails when they are in the same Organization.

If anyone else encounters this issue, we resolved by creating a Service Connection in the Destination Organization. The Service Connection uses Basic Authentication (UN, PW) that was generated from the Source Repo. You then pass the Service Connection with args [--git-service-endpoint-id] && [--requires-authorization], see complete list of arguments here.


Empty package fails

Hi,
Your project is amazing!
I was trying to do something similar (C#→JS translator) but gave up after a few lines of code :D
However, I found a few bugs in the convertor.
One of them, probably very easy to fix, is that it doesn't support packages without any class.
This code:
package Box2D.Common {
  public namespace b2internal = "http://www.box2d.org/ns/b2internal";
}

Fails with: Error: Error, no class provided for package: Common.b2internal
But when I add a dummy class, all works OK.
package Box2D.Common {
  public namespace b2internal = "http://www.box2d.org/ns/b2internal";
  public class SomeDirtyHack {}
}

Thanks for your repo,
m93a

Oh, sorry I will add to the readme that the namespace keyword is not currently supported, and you are expected to provide a class name with each .as file. At the moment I don't have any immediate plans to support the namespace keyword since the concept behind it is somewhat foreign to JS. But I think you should be able to work around this by going through your code and replacing namespace usage with regular public/private/protected properties. (AS3JS does not force you to abide by  encapsulation for the time being)

Oh one more thing, have you heard of DuoCode? If C# is your think you might want to have a look:
http://duoco.de/

Thanks for the tip!
I've actually found some other project with this purpose, but it seems that DuoCode doesn't mess up the global namespace as it creates only one global object DuoCode and doesn't require any libraries other than Vanilla JS.
However, it would be cool to see a website which would be able to convert your code to multiple languages. Eg. it would convert the code into one universal loss-less language* and then to any other supported language. This would allow sharing base libraries (eg. C++→JS and C#→JS would use the same library for handling types and conversions between them).
*) I'm not willing to create the ultimate language for coding, this language would be designed to be easily parsable, not easily used by a human. It would support many, many approaches to do the same thing (eg. events and futures) and would use that one that is more familiar to the target language.

It would be amazing to have such seamless conversion between languages, but it sounds like a pretty daunting task. But what's interesting is that we're already seeing more and more transpilers to JS for many languages, so in a way JS is like that universal language. Though unfortunately it's not that easy to go back from JS to most of those other more structured languages.
Anyway, I'll be sure to update the readme with the next update. I've just been experimenting with the format of the output code to make it a bit flatter. I want to be able to have a "Try It" editor and at the moment it would be loaded with boilerplate code if I did so.


.NET Framework test fails after updating to .NET 8 preview 5 SDK

Description
When I updated my repository to use .NET 8 preview 5 I got an error when running tests that target the .NET Framework.
Steps to reproduce
I have a PR that updates the repo to .NET 8: https://github.com/grpc/grpc-dotnet/pull/2021

Tests fail after updating to .NET 8 preview 5 - grpc/grpc-dotnet@47ae763 (#2021)
Tests succeed after rolling back to .NET 8 preview 3 - grpc/grpc-dotnet@f903df4 (#2021)

Expected behavior
Tests pass.
Actual behavior
I see this error in logs:

System.TypeInitializationException: The type initializer for 'Microsoft.VisualStudio.TestPlatform.ObjectModel.EqtTrace' threw an exception. ---> System.TypeLoadException: Could not load type of field 'Microsoft.VisualStudio.TestPlatform.ObjectModel.PlatformEqtTrace:TraceSourceLevelsMap' (1) due to: Could not resolve type with token 01000019 from typeref (expected class 'System.Diagnostics.TraceLevel' in assembly 'System, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089') assembly:System, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089 type:System.Diagnostics.TraceLevel member:(null)

2023-06-14T13:38:21.5328069Z Test run for /home/runner/work/grpc-dotnet/grpc-dotnet/test/Grpc.Core.Api.Tests/bin/Release/net472/Grpc.Core.Api.Tests.dll (.NETFramework,Version=v4.7.2)
2023-06-14T13:38:21.6541094Z Microsoft (R) Test Execution Command Line Tool Version 17.7.0-preview.23272.5+6bce41dc77697d2c1f42ede74ee02458ff18e4c1 (x64)
2023-06-14T13:38:21.6542372Z Copyright (c) Microsoft Corporation.  All rights reserved.
2023-06-14T13:38:21.6669506Z
2023-06-14T13:38:21.8004873Z Starting test execution, please wait...
2023-06-14T13:38:21.8374838Z A total of 1 test files matched the specified pattern.
2023-06-14T13:38:22.0083496Z Testhost process for source(s) '/home/runner/work/grpc-dotnet/grpc-dotnet/test/Grpc.Core.Api.Tests/bin/Release/net472/Grpc.Core.Api.Tests.dll' exited with error: Unhandled Exception:
2023-06-14T13:38:22.0088289Z System.TypeInitializationException: The type initializer for 'Microsoft.VisualStudio.TestPlatform.ObjectModel.EqtTrace' threw an exception. ---> System.TypeLoadException: Could not load type of field 'Microsoft.VisualStudio.TestPlatform.ObjectModel.PlatformEqtTrace:TraceSourceLevelsMap' (1) due to: Could not resolve type with token 01000019 from typeref (expected class 'System.Diagnostics.TraceLevel' in assembly 'System, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089') assembly:System, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089 type:System.Diagnostics.TraceLevel member:(null)
2023-06-14T13:38:22.0092088Z    --- End of inner exception stack trace ---
2023-06-14T13:38:22.0093505Z   at Microsoft.VisualStudio.TestPlatform.TestHost.Program.Main (System.String[] args) [0x00033] in <adaea5a299f34837b5c307dd5b21e834>:0
2023-06-14T13:38:22.0096152Z [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'Microsoft.VisualStudio.TestPlatform.ObjectModel.EqtTrace' threw an exception. ---> System.TypeLoadException: Could not load type of field 'Microsoft.VisualStudio.TestPlatform.ObjectModel.PlatformEqtTrace:TraceSourceLevelsMap' (1) due to: Could not resolve type with token 01000019 from typeref (expected class 'System.Diagnostics.TraceLevel' in assembly 'System, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089') assembly:System, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089 type:System.Diagnostics.TraceLevel member:(null)
2023-06-14T13:38:22.0097683Z    --- End of inner exception stack trace ---
2023-06-14T13:38:22.0098258Z   at Microsoft.VisualStudio.TestPlatform.TestHost.Program.Main (System.String[] args) [0x00033] in <adaea5a299f34837b5c307dd5b21e834>:0
2023-06-14T13:38:22.0098819Z . Please check the diagnostic logs for more information.
2023-06-14T13:38:22.0650563Z
2023-06-14T13:38:22.0700889Z Test Run Aborted.
2023-06-14T13:38:22.0795140Z      1>Project "/home/runner/work/grpc-dotnet/grpc-dotnet/test/Grpc.Core.Api.Tests/Grpc.Core.Api.Tests.csproj" on node 1 (VSTest target(s)).
2023-06-14T13:38:22.0797039Z      1>Project "/home/runner/work/grpc-dotnet/grpc-dotnet/test/Grpc.Core.Api.Tests/Grpc.Core.Api.Tests.csproj" (1) is building "/home/runner/work/grpc-dotnet/grpc-dotnet/test/Grpc.Core.Api.Tests/Grpc.Core.Api.Tests.csproj" (1:2) on node 1 (VSTest target(s)).
2023-06-14T13:38:22.0803297Z      1>VSTest:
2023-06-14T13:38:22.0803965Z          MSB4181: The "Microsoft.TestPlatform.Build.Tasks.VSTestTask" task returned false but did not log an error.
2023-06-14T13:38:22.0805148Z      1>Done Building Project "/home/runner/work/grpc-dotnet/grpc-dotnet/test/Grpc.Core.Api.Tests/Grpc.Core.Api.Tests.csproj" (VSTest target(s)) -- FAILED.

Diagnostic logs
Attached: net8p5-error.txt
Environment

Trying.

Ok so this seems to be running net472 tests on Linux. An they pass when 17.6.0-preview-20230223-05 is used, but not when 17.7.0-preview-23281-03+4ce2ff1f8 is used.

Is this scenario - .NET Framework tests running on Linux - a supported scenario, or was it an accident that it worked?
Do you know if this bug be fixed before .NET 8 is released? Right now, it is breaking this PR: https://github.com/grpc/grpc-dotnet/pull/2021. I could disable the net472 tests on the build server to unblock. The disable could be temporary or permanent based on whether this will be fixed.

Still trying to figure this out.

We are constructing the .CLI package that we insert into dotnet sdk differently so we end up with a slightly newer version of System.Diagnostics.TraceSource.dll in the package than what we build with. This causes no issues on windows, but on Mono it matters.

Reopening with a question about whether the regression to .NET 8 will make it into the final version of .NET 8:
https://github.com/microsoft/vstest/pull/4610#issuecomment-1657063167

Yes, 7.0.400 ships with 17.7 which has that bug, is that a big problem for you? We did not want to backport the change last minute because on Windows it works and there is a single report (now 2) of the issue.

backported in #4632
Inserted into sdk in https://github.com/dotnet/sdk/pull/34383
Not sure when it will land into dotnet/installer, the last insertion I see there is from 2 weeks ago, probably because of branch lockdown https://github.com/dotnet/installer/pull/16952 hopefully we see release/7.0.4xx update from dotnet/sdk in the PRs soon.


Gradient

https://github.com/nnnick/Chart.js/issues/1142

Note: This builds upon https://github.com/nnnick/Chart.js/issues/1140

We've recently announced a feature complete status for v1.x and will only be accepting bug fixes for v1.x. Be sure to take a look at v2.0-dev and it's new features that are either finished or currently under development.  If you see your feature is still not implemented, feel free to submit another PR to the v2.0-dev (or later) branch for your feature.


[Enhancement] Add optree integration to etils.etree

optree is a standalone package (like dm-tree) aimed to high-performance PyTree manipulation (like jax.tree_util). It offers similar APIs to jax.tree_util but better.
Some initial benchmark results:

Average Time Cost (↓)
OpTree (v0.9.0)
JAX XLA (v0.4.6)
PyTorch (v2.0.0)
TensorFlow Nest (v2.12.0)
DM-Tree (v0.1.8)

Tree Flatten
x1.00
2.33
22.05
1.38
1.12

Tree UnFlatten
x1.00
2.69
4.28
13.69
16.23

Tree Flatten with Path
x1.00
16.16
Not Supported
21.10
27.59

Tree Copy
x1.00
2.56
9.97
9.62
11.02

Tree Map
x1.00
2.56
9.58
9.16
10.62

Tree Map (nargs)
x1.00
2.89
Not Supported
74.26
31.33

Tree Map with Path
x1.00
7.23
Not Supported
40.78
19.66

Tree Map with Path (nargs)
x1.00
6.56
Not Supported
69.63
29.61

We have already seen some etils folks get involved with optree and jax.tree_util discussions. I wonder if etils maintainers have interest to add optree to etils.etree.
Ref:

google/jax#4085
metaopt/optree#45
metaopt/optree#46

Good idea. Let me try this


How to run element-wise product between DenseMatrix and DenseVector like numpy?

in numpy, we can procedure element-wise product between 2darray and 1darray like this:
import numpy as np
a = np.array([[1,2],[3,4]])
b = np.array([5,6])
a*b

array([[ 5, 12],
[15, 24]])

So how to achieve the same effect in breeze?

my machine cannot compile (::, *), and how to achieve this?

need import breeze.linalg.*


KEP-4193: beta promotion of ServiceAccountTokenNodeBinding feature gate

https://github.com/kubernetes/enhancements/issues/4193
Includes 1.31 updates for the ServiceAccountTokenNodeBinding feature gate portion of KEP-4193 (the only changes made in 1.31)
/sig auth
/cc @munnerz @ritazh

Hello @liggitt ,
v1.31 Doc Lead here. This PR has been marked as as risk for Doc Freeze.
The Doc Reviewers have given feedback on it, however, an update is yet to be made on it, based on feedback.
Please note that the Doc freeze deadline is tomorrow, and if the PR is not merged by tomorrow, you will need to file an exception or this enhancement will be removed from this release. Thank you!

comments addressed

/lgtm

Code PRs are all merged.
/lgtm
/approve


Add missing throttled calls for DiscoVPC

This should finally cover all of the Boto calls for VPCs

👍

build


make mypy-diff errors

I have trouble running make mypy-diff as /usr/bin/sh points to dash and not to bash.
I currently run it by changing sh in the script by bash.

The issue seems to be with [[ ]], which might be bash syntax rather than sh syntax.


Abstract away Tor

LGTM, but at some later point I think we do want reintroduce this specificity, since Tor is the only anonymity network that will be used in the foreseeable future, and it affects the threat model WRT global network level adversaries.


Update base: change /etc/resolv to point to Google DNS server

<IP_ADDRESS>

The following line needs to be added:

Google DNS: nameserver <IP_ADDRESS>
To file: /etc/resolvconf/resolv.conf.d/base

This is done closing...


Update dependencies and remove npm-check-updates

Hi @tomayac!
Our projects are getting a lot of vulnerabilities through npm audit, mostly coming from pageviews.js dependencies. This change updates dependencies in package.json with nonbreaking changes and removes the npm-check-updates since it doesn't seem to be currently used in the code.
With this PR the project goes from 102 current vulnerabilities (12 low, 75 moderate, 14 high, 1 critical) to none.

Thanks again, v1.4.1 just went out on npm.

Thank you so much @tomayac, that was quick!


[Feature]: Update StatsUsageChart to allow selecting whether to show Games Played, Unique Players, or both.

Feature Summary
The StatsView page shows a chart of how many games of Cuttle are played by how many different players each week for the selected season. Because there are more games played than players, the Y-axes scale is tailored to show the number of games, making it difficult to tell how many players there are without hovering over a specific data point. We should add a v-select that allows users to choose to view Games Played, Unique Players, or Games Played and Unique Players, which should be the default
Detailed Description
See how the y-axis scale makes it easy to tell the number of games but hard to tell how many players there are.

We should still default to showing both of these, but allow users to select seeing just one or the other to redraw the chart with a new scale that is tailored to the specific metric being analyzed.
To implement this, we should update StatsUsageChart.vue so that it has a v-select above the chart that sets a variable that’s used to update the computed data sets sent to the BaseLineChart by removing one or the other dataset if the user selects just one metric.

as we are using chartjs this can be done via clicking on legends.
https://github.com/cuttle-cards/cuttle/assets/72140070/e249cd77-33b5-4f8d-a87f-6f9729c818eb

Woo! That's great! We may want to consider adding an affordance to clarify that this is how it works, but given the current functionality, I'm calling this done. Thanks @haaarsh619 great find


Duplicated MIXS IDs for a single term (host_sex)

Current term details
Term name - host sex
Term ID - MIXS:0000811 & MIXS:0000862
Structured comment name - host_sex
different descriptions
different value syntax
different expected values

Package(s) - 811 in 6 packages, 862 in symbiont-associated

Suggested update(s)
Term name - host sex
Term ID - MIXS:0000811
Structured comment name - host_sex
Definition - Gender or physical sex of the host.
Expected value - enumeration
Value syntax - "[female|hermaphrodite|non-binary|male|transgender|transgender (female to male)|transgender (male to female)
|undeclared]"
NOTE - additionally symbiont-associated package includes "neuter" as an option, should we add that?
Example - non-binary
Preferred unit -

Additional context
The expected value in the symbiont-associated extension gives valuable information to that community, so maybe needs to be kept specific to that extension:
expected value - sex of the symbiotic organism (host of the samples); enumeration

Additional comment about the host_sex term definition - the current definition includes gender, which is different from biological sex. Consider updating definition to physical sex of the host. (see Issue #262)


ngTable pagination with loadmore option?

Hi,
Thanks guys for this amazing plugin.
I need to integrate Pagination with a single button. I have this use case where Initially the listview should have 20 items followed with a "loadMore" button. Once the user clicks on "loadMore", it should display 10 items followed with again a "loadMore button".For E.g, The total if say is 50 then initially the data would be 20, then would list 10 on each time "loadMore" is clicked.
I have gone through the demo but wasn't able to find a convincing solution for my use case. Can you guys please help me out on this. Thanks a lot in advance.

Did you look at the following demo: http://ng-table.com/#/demo/1-2
Basically create a custom pagination template. Your loadmore button would have an ng-click something like: ng-click="tableParams.count(tableParams.count() + 10)"


Create binocular event detection filter

Description of the problem
The implemented eye tracking algorithms usually use a single eye for eye movement detection.
However, some eye movement events happen on both eyes simultaneously, so we need a method that filters out eye movements that occur only on one eye.
Description of a solution

[ ] implement binocular event filter
[ ] create test cases and make them pass

Minimum acceptance criteria

[ ] a binocular event filter with passing tests

research algorithms if there are any


Wed. Aug. 10 - Show Notes

Let's try something new. @kpearson and I want to maximize coding & pairing time, so we want to try putting our usual shpiel up in various places people can read ahead of time online or in person (like on PowerPoint, paper, something like that).
I'll start with kudos & announcements:
kudos -
⭐ @jaimemendozadev - first PR on @hoodiehq merged: https://github.com/hoodiehq/documentation/pull/225
⭐ @kpearson :)
announcements -
⭐ 8th light's meetup is coming up: https://www.meetup.com/LA-Software-Workshops/events/232713877/ they have a shiny new office in Downtown LA, Metro-accessible.
⭐  we started tweeting. follow us for golden tips and all things socal open sourcing. twitter.com/fullstackla
on the deck -
⭐ in Aug/Sep, we will have a local open source developer, Andrea, speak about coding on Homebrew, a Command Line interface app, that y'all have probably used, thru the Outreachy fellowship. the Outreachy fellowship's next deadline is https://www.gnome.org/outreachy/ Aug 22. it would be a great first gig for people in our meetup.
standup, qotd
⭐  thing to read of the week, http://hood.ie/blog/rgsoc-team-rookies-month-1.html
anyone else have any kudos or announcements? add em here:

devspace: tool for keeping up with github tool, zeno rocha

http://www.lasoftwarecraftsmanship.com/

Links:

https://github.com/git-tips/tips
https://app.devspace.io/
https://github.com/FallibleInc/security-guide-for-developers

who's here:
@kpearson
@cacheflow
@machikoyasuda
@jaimemendozadev
@marina-miranovich
@gr2m
@thomasjinlo
@kennethlee
@IanDCarroll
@caseytherocket
@patriciarealini
@thebearingedge

Merge! Make a map website of local LA meetups that works and stuff!
Solved problems with geoJSON data undefined on the map.
Learned git commands, command line stuff, and general goings on
We also leaned to question our assumptions regarding what we think we know. Actually check, it'll save us time. :smile:
Now script points to the right properties.
https://github.com/fullstackla/pairing-meetup/pull/72
@IanDCarroll
@caseytherocket
@thebearingedge

@IanDCarroll what is the URL to get to this map?

Well...
I used gh-pages on my own repo to make it live. https://iandcarroll.github.io/FSLA/
It might need to become it's own repo with its own gh-pages branch if you want to use it in official production for fullstackla.

Outreachy deadline is October 17. August 22 is deadline for sponsors

Great work @IanDCarroll

A chronicle of @caseytherocket, @thebearingedge and my pairing that serves as review and retro. Good work was done and valuable lessons learned :mortar_board: :dart: :+1:
http://developingian.com/pairing-on-a-map-page/

Haha @IanDCarroll awesome, even a post-game blog article. Rad!


F12/Go to Definition fails for stdlib

Description
Apologies -- this may well be operator error. I noticed that if I attempt to open the definition source file for identifiers in one of my source files, I see the following:
Selecting "Go to definition" on various kinds of identifier including imported from Java and some Kotlin dependency jars "works" (the relevant source file is opened in the IDE), it sometimes doesn't work (consistently, for specific dependencies) and definitely doesn't work for Kotlin's stdlib.
Wondering if there's a step I've missed to download the sources jar and put it somewhere where it'll be picked up and used in the plugin?
Although I noticed this in a large $dayjob project, I have reproduced it in a minimal project created with gradle init.
fwiw using Java (same process : create a project using gradle init then open in VSCode with Java extensions), appears to work ok.
Extension version
1.7.1

Hey @dboreham
This is unfortunately a known issue (see here: https://github.com/fwcd/kotlin-language-server/issues/308). With that said, do you mind specifying the dependencies this doesn't work for? I was only aware of this issue for the kotlin stdlib.

Ah, apologies -- I did try to review existing open issues for a dup but sadly missed #308.
Another dependency that doesn't work for me is : org.koin.core.component
I will do some checking to see if I can find more.


RuntimeError: Frame didn't arrive within 5000

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
D4150

Firmware Version
librealsense version: 2.54.1

Operating System & Version
Linux Ubuntu 20.04

Kernel Version (Linux Only)
5.15.0-101-generic

Platform
PC

SDK Version
librealsense2

Language
Python 3.9

////////////////////////////////////////error//////////////////////////////////////////
REALSENSE ERROR
Traceback (most recent call last):
File "/home/tezcan/workspaces/realsense/librealsense_v2/realsense_task/test_realsense_v1.py", line 28, in
frames = pipe.wait_for_frames()
RuntimeError: Frame didn't arrive within 5000
///////////////////////////////////////error/////////////////////////////////////////////
//////////////////////////////////////code//////////////////////////////////////////////
import pyrealsense2 as rs
import numpy as np
import cv2 as cv
pipe = rs.pipeline()
cfg = rs.config()
ctx = rs.context()
cfg.enable_stream(rs.stream.color, 640,480, rs.format.bgr8, 15)
cfg.enable_stream(rs.stream.depth, 640,480, rs.format.z16, 15)
pipe.start(cfg)
while True:
frames = pipe.wait_for_frames()
if frames:
    depth_frame = frames.get_depth_frame()
    color_frame = frames.get_color_frame()

    depth_image = np.asanyarray(depth_frame.get_data())
    color_image = np.asanyarray(color_frame.get_data())

    cv.imshow("rgb", color_image)
    cv.imshow("depth", depth_image)

    if cv.waitKey(1) == ord("q"):
        break

pipe.stop()
/////////////////////////////////////////code//////////////////////////////////////////////

Hi @CBTezcan  Which camera firmware driver version is installed in your camera, please?  The recommended firmware version to use with SDK 2.54.1 is <IP_ADDRESS>
If you do not know your current firmware version then you can check it using the rs-enumerate-devices tool with the command below.
rs-enumerate-devices -s

Hi @MartyG-RealSense, used <IP_ADDRESS> firmware verison

I note that you are using kernel 5.15.0-101-generic.  The kernel version and the firmware driver version are different things, in case you are thinking of the kernel version as being the firmware version.

@MartyG-RealSense

Thanks very much for the image.  Your firmware driver version is <IP_ADDRESS>.  The recommended firmware for SDK version 2.54.1 is <IP_ADDRESS>.  I am not convinced though that it would make enough of a difference to cause the RuntimeError: Frame didn't arrive within 5000 error.
Does the error still occur if you run the test script at the link below, please?
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python#streaming-using-rspipeline

When I run that example code or update the firmware version, I still get the same error . Do you think the error, could be hardware or connectivity related, or related to software?
@MartyG-RealSense

The Frame didn't arrive within 5000 indicates that new frames didn't arrive from the camera within a 5 second period.  This could suggest a problem related to USB communications.
Are you using the official 1 meter USB cable supplied with the camera or another cable of your own choice, please?

I am using non official cable but does the length of the cable matter?

Yes, the length of the USB cable is important.  RealSense cameras can transmit a high volume of data, so a high quality cable should be used that is designed for data transfer and is not an inexpensive cable intended only for device charging.  Using a lower quality cable can cause performance reduction and camera disconnections.
If the cable is longer than 5 meters then it is also recommendable to use one containing active repeater components that boost the signal over distance.
A company called Newnex supply RealSense-validated high quality USB cables, including ones with active repeaters.
https://newnex.com/realsense-3d-camera-connectivity.php
https://www.youtube.com/watch?v=GLQgR1jT04M

Hi @CBTezcan  Do you require further assistance with this case, please?  Thanks!

Case closed due to no further comments received.


Video Won't Restart

When I do a PopToRootAsync() and load up the main page which is using your video control, the video is stopped. The Media.CurrentState says it's Playing but it's not. It's frozen.

I've been able to narrow it down to that when the application I wrote opens the camera to take a picture and returns to the app, the video then freezes. Any idea why?

No

Oh and if I say Movie.Play() even when the STATE says it's stopped, it won't play.

I think I got it and want to share with your users. In the code below, I added the first line, which adds a new copy of my MainPage. That is where my video is looping. By doing that, it puts a 2nd one in the stack, then I clear the stack to the root and the program returns to the main page and the video plays as expected. I'm sure this isn't ideal, but it works and the end result does not have any extra windows open taking up memory.
    public static void ClearNavigationStack(INavigation navigation)
    {
        navigation.InsertPageBefore(new MainPage(), navigation.NavigationStack[0]);
        navigation.PopToRootAsync();
    }


Fix js_format for datepicker

These are the correct translations for https://github.com/solidusio/solidus/pull/3321.
I removed all the empty values

@coorasse unfortunately, this has some conflicts now... can you please rebase with master?

NP. Done.


push notifications stopped working

Description
Sometime after the latest Android app update, push notifications stopped working.
Devices and Versions
Your Rocket.Chat.Android version: 2.5.1 (Build 2035)
Your Rocket.Chat Server version: 0.66.2
Mobile device model and OS version: Pixel 2 XL, Android 8.1
Steps to reproduce
Have someone @mention a user or hit Send Test Notification, no notification is received.
Logs
Have verified default user settings and individual user settings are all set to notify within RC. Have tried using the RC gateway for push and without, same results with both.
No logcat anomalies or receipt of push msg in device logs. No RC console logs entries generated server side. RC indicates in the top right "Your push was sent to 1 devices" the first time a test is sent, then subsequent times reports "There are no tokens for this user". No console log is generated for this event regardless of the Administration>Push>Debug radio button setting. Logging out then logging back into the Android app seems to reset something, as a test message will again be attempted ("Your push was sent to 1 devices") but again is not received and all subsequent attempts get the error message: "There are no tokens for this user" again.

After turning on Push Debug (and restarting the RC server, which seems to be required but not noted anywhere) the following is seen. Curiously iOS push is also broken now as well. No server changes made recently, only mobile apps updated when new version hit respective stores.
ANDROID: Result of sender: {"multicast_id":xxxxxxxxxxx,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]}
This appears to be an error associated when there is a FCM project_id mismatch between the app and server?

@robertwessen Thanks for the report! You're not receiving notifications for both iOS and Android now?

@robertwessen Just check with the back-end guys and they recommended you guys to try restarting your server. There's a bug that happens sometimes and the database gets stuck, and the library that's being used to send the push notification stop sending it at all. Can you try that and let me know please?

@rafaelks Restarting the server did not make any difference.
Changing to use the public rocketchat gateway, then restarting starts push delivery again.
Without using the gateway, the error is the same as above. (this is how we had it configured initially)

@robertwessen If you're using our app from Google Play you need to use our gateway.


Raise NotImplementedError for missing methods

Currently we look optimistically for methods in LGEOSBase.methods and a KeyError gets raised if our GEOS shared library doesn't support the method. I think we can do better: a NotImplementedError would be less baffling, especially if it had a message with details about required GEOS versions.

Kicking this to 1.6 since it's a breaking change. Exceptions are interface, too, I always have to remind myself.

@sgillies  Just to play devil's advocate, one could define a custom exception that inherits from both NotImplementedError and KeyError to remove breaking backwards compatibility

@ddasilva Great suggestion, thank you!


Feature Request: move or duplicate chart metadata to a ConfigMap

I manage a couple different Helm auditing tools, including Nova.
Sadly these tools need RBAC permission to access secrets, even though they're only looking for things like chart name and version. That limits adoption of tools that can audit and manage Helm charts due to (very reasonable) security concerns.
Would it be possible to start making chart metadata available in a less-sensitive way?

Hi @rbren. Thanks for reaching out.
What kind of metadata are you looking for?

Thanks for the quick response! Off the top of my head:

chart name
app version
chart version
installed date
last updated date
number of releases

Pretty much anything you'd get from Chart.yaml or helm ls
As a side note, Helm doesn't seem to track the source repository within the release. That'd be very useful information - currently we just use the chart name and some other data to scan through all known repositories looking for a match.

Most of that information can already be fetched from the chart manifest. helm get manifest demonstrates how one can fetch that information which is fetched from the secret metadata.
See #4256 to track the discussion surrounding source repository URLs.

👍 thanks for the tip.
I think my request would then be to have the Chart manifest data stored outside the secret (that shouldn't contain any sensitive info, right?), so that projects like Nova can see the installed version without needing access to secrets.

Would still love a solution here. I'm happy to implement if y'all think it's a reasonable request

@bacongobbler FWIW we'd still love to see this feature.
Currently we need to ask folks for access to all secrets in all namespaces just so we can tell them if their Helm charts have updates available 😬 Allowing people/tools to scan Helm chart metadata without needing to grant them access to Secrets would be a big win security-wise.


⚠ Processors has degraded performance

In ed12ab2, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 159 ms

Resolved: Processors performance has improved in bdf01c8.


Max Sizing of the pikachu

Nice theme! :) I was trying it and I found it funny!, maybe I'll add a package for the elive repo too, if you are ok
Actually I found a small bug, if you resize the fonts of the terminology (ctrl + wheel) you don't see the pikachu to increase the size, maybe you should set some "max" values to at least the double if you cannot use bigger images of the picachu (so the user would like to "appreciate" the image in more details), also in any case it doesn't looks to fit correctly with the terminal if the image is too small (smaller than the fonts)
Have a nice day!
Thanatermesis

Mmmh, in the same time when the fonts are very small (less than 10 px) the pikachu looks huge (but is not really annoying like this)

Hi,
thanks a lot for your interest in pikalogy :)
I never had the opportunity to try out Elive, but it would be very nice if you could package pikalogy some day (if the Pikachu's license is not an issue).
Commit cb5c036 should fix the scaling problem. Pikachu will still look a bit too big with very small fonts, but I think it is acceptable.
Thanks again for the report :)


Update docs to reflect buttonType correctly

Setting a class on a button btn-flat also add a btn class.
if you set it via buttonType='flat' it does not resulting in a different button
So if this is correct behavior we should update the docs as the flat button examples use the class="btn-flat" manner.
Would you agree?

The only thing that makes a button "flat" is adding the class btn-flat to the tag. I don't feel that adding buttonType=flat actually saves the developer anything. As part of the 1.0 revamp ( #130 ) I'd like to steer consumers to just using btn-flat or btn-floating or btn-large, (etc...) classes  instead of having boolean flags for each.
Docs should be updated accordingly

Yes that would be simpler. I would like the option of not automatically adding 'btw'.
see this flat button, no 'btn' http://materializecss.com/buttons.html

hmm. On second thought a button with no btn class seems to go against the design philosophy of the material design. And although materializecss.com has such an example I think a white background does a better job...

Currently on the docs, "flat" buttons are not flat (they have no initial shadow, but raise on hover)

Sweet. That means that this is a bug, and there's a reason to fix it before a major version increment.


process of deployment while using "dotnet new react"

first of all apologies for the long message
I'm using react template for .net core MVC application. Everything is working fine as expected. The current process we have for dynamic environment variables is
For .net core webapi We build the application and then deploy the same build package (do not build again and again per environment) to DEV/QA/UAT/STAGING/PROD by changing the variables in appsettings.json
For react app, we have a file in public folder where we maintain a set of variables that needs to be changed per environment, just a simple object that gets assigned to window.___settings variable. and we internally assign this to settings object of our app. This is also working perfectly fine.
the problem here is, when we are building and publishing we are using traditional dotnet publish command and it internally calls "react-scripts build" and spits out the bundle to dist folder and we deploy the app in IIS environment. When we try to access the site, the location for the static files is not relative to build folder, it is just taking it relative to the website. All the source paths in index file point to /main.js but whereas this file lives in some folder under the website root folder. so we are getting 404 status.
temporary/ugly solution To overcome this, we are rebuilding the app for each and every environment (which we do not want to do) by setting the homepage URL in the package.json file and this time react-scripts internally add the homepage URL to the main.js file in the index file.
Do we have any meaningful solutions where we do not have to rebuild the app for each environment and simply keep deploying the already built package?
I hope I made sense and explained my problem clearly and Thanks in advance for patiently reading it.

Can this be fixed by changing the rootPath value?
  // In production, the React files will be served from this directory
    services.AddSpaStaticFiles(configuration =>
    {
        configuration.RootPath = "ClientApp/Build";
    });

This is a better question for the engineers over at the product repo. Closing as a duplicate of https://github.com/aspnet/AspNetCore/issues/10628.

first of all apologies for the long message
I'm using react template for .net core MVC application. Everything is working fine as expected. The current process we have for dynamic environment variables is
For .net core webapi We build the application and then deploy the same build package (do not build again and again per environment) to DEV/QA/UAT/STAGING/PROD by changing the variables in appsettings.json
For react app, we have a file in public folder where we maintain a set of variables that needs to be changed per environment, just a simple object that gets assigned to window.___settings variable. and we internally assign this to settings object of our app. This is also working perfectly fine.
the problem here is, when we are building and publishing we are using traditional dotnet publish command and it internally calls "react-scripts build" and spits out the bundle to dist folder and we deploy the app in IIS environment. When we try to access the site, the location for the static files is not relative to build folder, it is just taking it relative to the website. All the source paths in index file point to /main.js but whereas this file lives in some folder under the website root folder. so we are getting 404 status.
temporary/ugly solution To overcome this, we are rebuilding the app for each and every environment (which we do not want to do) by setting the homepage URL in the package.json file and this time react-scripts internally add the homepage URL to the main.js file in the index file.
Do we have any meaningful solutions where we do not have to rebuild the app for each environment and simply keep deploying the already built package?
I hope I made sense and explained my problem clearly and Thanks in advance for patiently reading it.

I have the same situation, you can explainme exactly the solution you found.


Incorrect slide calculations with swiper grid and slidesPerGroup

Check that this is really a bug

[X] I confirm

Reproduction link
https://codesandbox.io/s/swiper-slides-grid-forked-obebr5
Bug description
When utilising the following swiper setup:
let swiper = new Swiper(".mySwiper", {
   slidesPerView: 4,
   slidesPerGroup: 4,
   grid: {
      rows: 4,
      fill: "row"
   },
   spaceBetween: 30
});

For some reason slide 13 is being rendered in the next group and resulting in a missing slide in the 1st group.
It's worth noting that, adding an additional slide-element (i.e. a div element with the swiper-slide class), the issue seems to resolve itself. The issue is only present when there are specifically 18 slide elements in what should be a 16-element slideGroup (4x4).
I do believe my issue is related to #5741 but, there wasn't a reproduction link on that one so, I have created a new issue.
Expected Behavior
The code specified in the bug description above and present in the codesandbox environment should produce a 4x4 grid of slides, that will slide a 4x4 grid as a single group, if there are enough slides to generate said new group.
Actual Behavior
Slide 13 is being pushed into the 2nd group even though there is a space remaining for it, on the 1st slide (within the 1st group).
Swiper version
8.2.4
Platform/Target and Browser Versions
Windows 11, Chrome 102.0.5005.63
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
[X] Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

[ ] I'm willing to open a PR

hello, is there any update regarding this issue?
I am also facing quite same issue, using vertical direction + grid + slidesPerGroup


ENH: update header, layout, colors

Looks good (at a glance).  Not live yet, so merging makes sense to me.

Thanks for the help, Santiago. It would have taken so much longer to try to
figure this out.'
Lois
On Fri, Nov 9, 2018 at 2:48 PM Justin Cappos<EMAIL_ADDRESS>wrote:

Merged #15
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_awwad_awwad.github.io_pull_15&d=DwMCaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=hgBKIqNYIOwzXeBjPUaKRw&m=J1AZ8Zer8bj84CXDQcZP7FofmEPc3ad4Nj-LkJNQ8ho&s=xOKkax-ijV1GcxaHU23x_E2gQEdi7u28l2_VWrXiLEk&e=
into implementing-Andre's-notes11/9.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_awwad_awwad.github.io_pull_15-23event-2D1957705676&d=DwMCaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=hgBKIqNYIOwzXeBjPUaKRw&m=J1AZ8Zer8bj84CXDQcZP7FofmEPc3ad4Nj-LkJNQ8ho&s=R_XIeCLONZQm49JAQExttSAZ5QkR4RzxVi1oMmKuQb4&e=,
or mute the thread
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AN5qXwBOecw6gTWzIYG3ywKzwrHbGrsjks5utdv-2DgaJpZM4YXZBP&d=DwMCaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=hgBKIqNYIOwzXeBjPUaKRw&m=J1AZ8Zer8bj84CXDQcZP7FofmEPc3ad4Nj-LkJNQ8ho&s=HATJGuSwNlJVwAn77itHvUUOjW36XWC9kvWHcuHv4P0&e=
.


doc/source/main_install.rst: Buildstream2 doesnt have default plugins anymore

I don’t believe BuildStream’s core tar plugin requires tar on the host, core python API is used for this.

I don’t believe BuildStream’s core tar plugin requires tar on the host, core python API is used for this.
Is there another reason to require tar ?

@gtristan Nope, I have updated the PR

@jjardon @gtristan core tar plugin does need lzip though. It was erroneously removed here. It's best to have it installed so things don't surprisingly fail later.

See https://github.com/apache/buildstream/blob/master/src/buildstream/plugins/sources/tar.py#L101-L104

well spotted @nanonyme ; opened https://github.com/apache/buildstream/pull/1710


Allow string inputs to resolve relative local paths

Sometimes an inline string is contains relative paths to a local file
system location. By setting inliner.filename to a proper local path,
allow the regular file based URL resolution to take place.
In our case, we are generating the inline string using some JS, and
using inliner on the generated code. It looks a bit lie:
var renderOutput = render(...);
var Inliner = require('inliner');
new Inliner({'source': renderOutput, 'filename': localPath + '/placeholder.html'},
            function (error, html) {
    console.log(html);
    if(error) {
        console.error(error);
    }
});

By setting filename, we get relative css and js includes in our renderOutput to be resolved based on the lies in localPath.
Note this is addressing issue https://github.com/remy/inliner/issues/89 - but for my use case...

Thanks so much for the PR.
It's currently failing the tests (and I note that you don't have a test showing what you're seeing).
Could you make a few changes as per https://github.com/remy/inliner/blob/master/CONTRIBUTING.md (I can help if you're not sure where to start - you'll need to rebase and force push).
Can you include a test, or at least an example of what you're seeing here so I can validate?

Closing as idle. Happy to reopen if there's any response.


Bug Report of permute_edges in unsupervised_TU

Dear Authors,
The permute_edges in unsupervised_TU/aug.py is not adding the edges, the "idx_add" variable is not used.
https://github.com/Shen-Lab/GraphCL/blob/aedd92a049af1a9fb591d7dc2f1ab4260e9048e4/unsupervised_TU/aug.py#L330
I think your implementation in semisupervised_TU is correct, so may I ask why there are different implementations, why not just use a same set of augmentation implementation and just import them in different tasks?
https://github.com/Shen-Lab/GraphCL/blob/aedd92a049af1a9fb591d7dc2f1ab4260e9048e4/semisupervised_TU/pre-training/tu_dataset.py#L211

Hi @Somedaywilldo,
Thanks for pointing it out. I double check the original messy code for unsupervised_TU/aug.py and found that you are right, it is not entire same implementation as semisupervised_TU. Since unsupervised_TU was performed much more earlier than others for proof of concept experiments, the implementation way might somehow differ, leading to some inconsistence, while I think the rest semisupervised_TU, transfer_learning and adversarial_robustness experiments should be consistent. Another thing is that you can try to replace line 343 with line 342 in https://github.com/Shen-Lab/GraphCL/blob/master/unsupervised_TU/aug.py and this should make the same implementation, and I feel the results should be similar

Thank you!


Cannot load any plugin

Here is my log file content after starting the server:

starting emqttd on node<EMAIL_ADDRESS>emqttd ctl is starting...[ok]
emqttd hook is starting...[ok]
emqttd router is starting...[ok]
emqttd pubsub is starting...[ok]
emqttd stats is starting...[ok]
emqttd metrics is starting...[ok]
emqttd pooler is starting...[ok]
emqttd trace is starting...[ok]
emqttd client manager is starting...[ok]
emqttd session manager is starting...[ok]
emqttd session supervisor is starting...[ok]
emqttd wsclient supervisor is starting...[ok]
emqttd broker is starting...[ok]
emqttd alarm is starting...[ok]
emqttd mod supervisor is starting...[ok]
emqttd bridge supervisor is starting...[ok]
emqttd access control is starting...[ok]
emqttd system monitor is starting...[ok]
emqttd 2.3 is running now
Eshell V8.3  (abort with ^G)
(emq@<IP_ADDRESS>)1> 05:07:35.219 [error] Autocluster exception: {badmatch,undefined}

I cannot understand why I had this error, but my real problem now is that I cannot load any plugin.
When I tried to load such a plugin I got this error as follows:

./emqttd_ctl plugins load emq_auth_clientid
Reason:{badmatch,undefined}, get_stacktrace:[{emqttd_plugins,plugin,1,
[{file,"src/emqttd_plugins.erl"},
{line,116}]},
{emqttd_plugins,
'-list/0-lc$^0/1-0-',1,
[{file,"src/emqttd_plugins.erl"},
{line,102}]},
{emqttd_plugins,
'-list/0-lc$^0/1-0-',1,
[{file,"src/emqttd_plugins.erl"},
{line,102}]},
{emqttd_plugins,list,0,
[{file,"src/emqttd_plugins.erl"},
{line,102}]},
{emqttd_plugins,find_plugin,1,
[{file,"src/emqttd_plugins.erl"},
{line,169}]},
{emqttd_plugins,load,1,
[{file,"src/emqttd_plugins.erl"},
{line,129}]},
{emqttd_cli,plugins,1,
[{file,"src/emqttd_cli.erl"},
{line,302}]},
{emqttd_ctl,run,1,
[{file,"src/emqttd_ctl.erl"},
{line,83}]}]
RPC to<EMAIL_ADDRESS>error: {badmatch,undefined}

@hamdijmii1992 Do you configure the autocluster strategy?
cluster.discovery = manual


Prefix, comment additions, typos

Prefixing the file path allows centralization of generated files and seems to me to be a natural option.  Golint is spoken of often enough in the community that satisfying it also seems to be a natural inclusion.  Minor typos fixed in and relevant information added to main package comment/readme.

Your package quickly made a place next to my current http server configuration struct.  I'm looking forward to being able to develop my own packages that make use of code gen.  Thanks!

I fixed the comments by making them more general.  I had sloppily copied the comments from the std lib marshaler funcs (after a long day of other work), so I apologize for my diffuseness.  The fix that you had suggested didn't seem to satisfy golint, and I'm not sure how I would put into more concise words what's actually going on in a way that is worthwhile.

I'm cleaning this up and moving it into a new branch.


Confusing: the account lockout policy will on FGPP will be applied for users on AADDS that synced from Azure AD

On the document, it states
"Fine-grained password policies (FGPPs) let you apply specific restrictions for password and account lockout policies to different users in a domain. FGPP only affects users created in Azure AD DS. Cloud users and domain users synchronized into the Azure AD DS managed domain from Azure AD aren't affected by the password policies."
But when I see on the document: https://docs.microsoft.com/en-us/azure/active-directory-domain-services/password-policy#default-password-policy-settings
It mentions that: "Account lockouts only occur within the managed domain. User accounts are only locked out in Azure AD DS, and only due to failed sign-in attempts against the managed domain. User accounts that were synchronized in from Azure AD or on-premises aren't locked out in their source directories, ONLY IN AZURE AD DS." so means  "account lockout" is also AFFECTED on Azure AD DS with user synchronized from Azure AD or On-Premise.

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

ID: 089074e7-2e51-7306-de44-da9b5da2d8df
Version Independent ID: 2e793e48-ed94-315f-7447-06882f8108a7
Content: Troubleshoot account lockout in Azure AD Domain Services
Content Source: articles/active-directory-domain-services/troubleshoot-account-lockout.md
Service: active-directory
Sub-service: domain-services
GitHub Login: @iainfoulds
Microsoft Alias: iainfou

@kureiziboi
Thanks for your feedback! We will investigate and update as appropriate.

Sorry for the confusion. The password policy doc is correct. All users in Azure AD DS are affected, though there are still a couple of differences for users created directly in Azure AD DS - https://docs.microsoft.com/en-us/azure/active-directory-domain-services/password-policy#default-password-policy-settings
The key part is that users are only affected by password policy within the Azure AD DS managed domain. Users synchronized in from Azure AD are only affected within the managed domain, not within Azure AD or if synchronized from on-prem.
I'll update the troubleshooting doc to clarify.
#in-progress


ENSWBSITES-1037: show none when gene name is novel transcript

Type

[ ] Bug fix
[ ] New feature
[x] Improvement to existing feature

Related JIRA Issue(s)
https://www.ebi.ac.uk/panda/jira/browse/ENSWBSITES-1037
Importance
N/A
Description
Show 'none' when gene name is 'novel transcript' in both Entity Viewer Sidebar panel and in Genome browser track drawer. This is a temporary fix until the data is loaded properly. We will have to revert this change.
Deployment URL
http://hide-novel-transcript.review.ensembl.org/
example gene for human:
gene:ENSG00000270008
Views affected
Entity viewer sidebar panel
Genome browser track bar
Other effects
N/A

[ ] I have checked any requirements for Google Analytics
[ ] I have created any required tests
[ ] The PR has as its final commit a WASM/JS update commit if any Rust files were updated.

Possible complications
None

PR looks ok to me. But for some reason travelling to gene function tab breaks everything (even on 2020)
http://2020.ensembl.org/entity-viewer/homo_sapiens_GCA_000001405_28/gene:ENSG00000270008?view=transcripts

I wonder if the doing the opposite in the condition will be more readable. Would like to know what others think.
gene.name && gene.name !== 'novel transcript' ? gene.name :  'None'

We are showing the gene name in the GenomeBrowser as well:

We may want to add a formatter function for gene name (somewhere alongside these files). In which we may even remove this [Source:HGNC Symbol;Acc:HGNC:6872] ugliness with a clever regex. Hopefully in the future we won't need it.

We are showing the gene name in the GenomeBrowser as well:

We may want to add a formatter function for gene name (somewhere alongside these files). In which we may even remove this [Source:HGNC Symbol;Acc:HGNC:6872] ugliness with a handy regex (e.g. something like  (\[Source:.*\])). Hopefully in the future we won't need it.

I did update the code for genome browser as well. This is a temporary fix which will need to be reverted once the database is updated. So not sure if we need a formatter function.

I wonder if the doing the opposite in the condition will be more readable. Would like to know what others think.
gene.name && gene.name !== 'novel transcript' ? gene.name : 'None'

Lets see what others say, i dont mind changing it but i find the other way clearer, i guess its because of the Jira request. :)

I did update the code for genome browser as well, its already in the PR or have i missed something else.

Yes, sorry; thought both changes were for the genome browser.

This is a temporary fix which will need to be reverted once the database is updated. So not sure if we need a formatter function.

🤷♂  Since we are interfering with the return value from the backend for now anyway (which, yes, we shouldn't be doing), it could also afford us an opportunity to remove the ugliness in the square brackets, which may make Andrea happy. But I don't have particularly strong feelings about it.
@ens-st3 do you have an opinion?

I think I dislike it more than Andrea does

I am going to add a formatter then. I will give it a go and update the PR.

Thanks @azangru , made the suggested changes. Please have a look and let me know if there is anything else.

Forgot this one (genome browser, transcript summary)

Forgot this one (genome browser, transcript summary)

@azangru, its done.

thanks @azangru , i have also fixed the bug with the gene symbol hoping it is a simple one. can you please have a look and let me know if there is anything wrong. thanks


Accessing @type in a regular method crashes the compiler

class Reference
  def foo
    {{ @type }}
  end
end

Found while browsing, http://carc.in/#/r/6vg

Duplicate of #809