How do I use this?

The documentation suggests that this should be installed on the 'client' but index.js shows that this creates a server listening on port 8239 where the magic happens but I can't figure out how to break into in the sense that when i run sinopia-github-oauth it just sits there.
I've put some console.log() calls into the http.createServer() and they are never hit.
Who or what is supposed to call into http.createServer()?

I've spent some more time digging into this.  It appears that index.js opens a browser pointing to http://registry/oauth/authorize which makes a request back to the client on port 8239 which is then consumed by the listener, updates .npmrc, then closes the listener.
If that is correct then this code as it is written does not work in a non-desktop environment correct?

Did you mean to remove the description of your question?
To answer your original question, yes, you need a browser, as this uses the web flow of github oauth (https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow)
The local webserver is started to handle the callback from sinopia-github-oauth to be able to set the token in your npmrc.


[BUG] Seek function not working

Bug Description
Okay so, I was testing the seek function and I cannot find a way to make it works, even tried using the example code and it simply doesn't work.
Reproduction Steps
Steps to reproduce the behavior:

Make the bot play a song
Run seek command
Error: UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'id' of null
With some code modifications, the error becomes: ".player.seek is not a function"

Expected Result
Seek to the provided second of the song.
Attachments
Video:
https://drive.google.com/file/d/13Ll7RG_Id50jbsGjujU64GjAnX3w1GQ0/view
Versioning:

OS: Windows 10
NPM v14
Module Version: 6.3.7

Hey, seems that your message.args in seek.js is undefined. Can you check it?

Hey, seems that your message.args in seek.js is undefined. Can you check it?

Tried setting only "args[0]", still doesn't work

Tried setting only "args[0]", still doesn't work

What's the error (can you send it here) then?

What's the error (can you send it here) then?

This is the full error:
(node:14464) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of undefined
at Object.module.exports.run (C:\Users\marti\OneDrive\Escritorio\Luxury Bot\Luxury-2\Luxury-1\commands\music\seek.js:26:81)
at Client. (C:\Users\marti\OneDrive\Escritorio\Luxury Bot\Luxury-2\Luxury-1\bot.js:112:25)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use node --trace-warnings ... to show where the warning was created)
(node:14464) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:14464) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate
the Node.js process with a non-zero exit code.
This is the code (using command handlers):
 const Discord = require("discord.js")
//const config = require("../config.json")

module.exports.run = async (bot, message, args) => {

    const voiceChannel = message.member.voice.channel;
    const botVoiceChannel = message.guild.me.voice.channel;

    if (voiceChannel.id != botVoiceChannel.id) {
        const embedshare = new Discord.MessageEmbed()
        .setTitle('Error')
        .setColor('RED')
        .setDescription("You need to be in the same channel as Luxury to seek in music!")
        .setFooter(`Requested By: ${message.author.tag} | Guild: ${message.guild.name}`, message.author.avatarURL())
        message.channel.send(embedshare);
    }

    if(!args[0]) {
        const embed0 = new Discord.MessageEmbed()
        .setTitle('Error')
        .setColor('RED')
        .setDescription('Usage: -seek <Amount> <s (seconds) / m (minutes) / h (hours)>') //fix this, ashley :D
        message.channel.send(embed0)

    } else if (!args[1]) {
        let song = await bot.player.seek(message.guild.id, parseInt(message.args[0] * 1000));
        const embed1 = new Discord.MessageEmbed()
        .setTitle('Seek')
        .setColor('BLUE')
        .setDescription(`Seeked to ${message.args[0]} second of ${song.name}.`)
        message.channel.send(embed1)

    } else if (args[1] === 's'){
        let song = await bot.player.seek(message.guild.id, parseInt(message.args[0] * 1000));
        const embed2 = new Discord.MessageEmbed()
        .setTitle('Seek')
        .setColor('BLUE')
        .setDescription(`Seeked to ${message.args[0]} second of ${song.name}.`)
        message.channel.send(embed2)

    } else if (args[1] === 'm'){
        let song = await bot.player.seek(message.guild.id, parseInt(message.args[0] * 60000));
        const embed3 = new Discord.MessageEmbed()
        .setTitle('Seek')
        .setColor('BLUE')
        .setDescription(`Seeked to ${message.args[0]} minute of ${song.name}.`)
        message.channel.send(embed3)

    } else if (args[1] === 'h') {
        let song = await bot.player.seek(message.guild.id, parseInt(message.args[0] * 360000));
        const embed4 = new Discord.MessageEmbed()
        .setTitle('Seek')
        .setColor('BLUE')
        .setDescription(`Seeked to ${message.args[0]} hour of ${song.name}.`)
        message.channel.send(embed4)

    }
}

module.exports.help = {
            name: "seek",
            aliases: ["se"]
        };

This is the full error:
(node:14464) UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of undefined
at Object.module.exports.run (C:\Users\marti\OneDrive\Escritorio\Luxury Bot\Luxury-2\Luxury-1\commands\music\seek.js:26:81)
at Client. (C:\Users\marti\OneDrive\Escritorio\Luxury Bot\Luxury-2\Luxury-1\bot.js:112:25)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use node --trace-warnings ... to show where the warning was created)
(node:14464) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:14464) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate
the Node.js process with a non-zero exit code.
This is the code (using command handlers):
 const Discord = require("discord.js")
//const config = require("../config.json")

module.exports.run = async (bot, message, args) => {

    const voiceChannel = message.member.voice.channel;
    const botVoiceChannel = message.guild.me.voice.channel;

    if (voiceChannel.id != botVoiceChannel.id) {
        const embedshare = new Discord.MessageEmbed()
        .setTitle('Error')
        .setColor('RED')
        .setDescription("You need to be in the same channel as Luxury to seek in music!")
        .setFooter(`Requested By: ${message.author.tag} | Guild: ${message.guild.name}`, message.author.avatarURL())
        message.channel.send(embedshare);
    }

    if(!args[0]) {
        const embed0 = new Discord.MessageEmbed()
        .setTitle('Error')
        .setColor('RED')
        .setDescription('Usage: -seek <Amount> <s (seconds) / m (minutes) / h (hours)>') //fix this, ashley :D
        message.channel.send(embed0)

    } else if (!args[1]) {
        let song = await bot.player.seek(message.guild.id, parseInt(message.args[0] * 1000));
        const embed1 = new Discord.MessageEmbed()
        .setTitle('Seek')
        .setColor('BLUE')
        .setDescription(`Seeked to ${message.args[0]} second of ${song.name}.`)
        message.channel.send(embed1)

    } else if (args[1] === 's'){
        let song = await bot.player.seek(message.guild.id, parseInt(message.args[0] * 1000));
        const embed2 = new Discord.MessageEmbed()
        .setTitle('Seek')
        .setColor('BLUE')
        .setDescription(`Seeked to ${message.args[0]} second of ${song.name}.`)
        message.channel.send(embed2)

    } else if (args[1] === 'm'){
        let song = await bot.player.seek(message.guild.id, parseInt(message.args[0] * 60000));
        const embed3 = new Discord.MessageEmbed()
        .setTitle('Seek')
        .setColor('BLUE')
        .setDescription(`Seeked to ${message.args[0]} minute of ${song.name}.`)
        message.channel.send(embed3)

    } else if (args[1] === 'h') {
        let song = await bot.player.seek(message.guild.id, parseInt(message.args[0] * 360000));
        const embed4 = new Discord.MessageEmbed()
        .setTitle('Seek')
        .setColor('BLUE')
        .setDescription(`Seeked to ${message.args[0]} hour of ${song.name}.`)
        message.channel.send(embed4)

    }
}

module.exports.help = {
            name: "seek",
            aliases: ["se"]
        };

I told you, message.args is undefined. Try using args without message, i.e:
args[0]

I told you, message.args is undefined. Try using args without message, i.e:
args[0]

Omg I dumb, I did that but wasn't working (Not sure why but installed the package again and they did) so I just set them as message.args

Omg I dumb, I did that but wasn't working (Not sure why but installed the package again and they did) so I just set them as message.args


fix(deps): update terraform terraform-ibm-modules/cos/ibm to v8.16.2

This PR contains the following updates:

Package
Type
Update
Change

terraform-ibm-modules/cos/ibm (source)
module
patch
8.16.0 -> 8.16.2

Release Notes

terraform-ibm-modules/terraform-ibm-cos (terraform-ibm-modules/cos/ibm)
v8.16.2
Compare Source
Bug Fixes

deps: update terraform ibm to latest for the deployable architecture solution (#792) (9e09d12)

v8.16.1
Compare Source
Bug Fixes

deps: update terraform terraform-ibm-modules/secrets-manager/ibm to v1.19.9 (#804) (f7c0465)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

/run pipeline

/run pipeline

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


chore(python): don't create universal wheels for our python packages.

Overview
See @mcous comment: https://github.com/Opentrons/opentrons/pull/8363#issuecomment-923504707
Implementation details

Remove this from setup.cfg in our python projects.
[bdist_wheel]
universal = 1

Change the name of the wheel file to omit py2. (poetry_python_get_wheelname vs python_package_version). Make sure make wheel doesn't always rebuild file.
Acceptance criteria

[ ] shared-data/python
[ ] hardware
[ ] g-code-testing
[ ] robot-server
[ ] update-server
[ ] api

Moved to EXEC-670


Unable to override defaultProps on a case-by-case basis

When SvgIcon.defaultProps.viewBox is set, it's not possible to use the viewBox property in the icon file.
E.g.:
/* Icon.js */

import React from 'react';
import SvgIcon from 'react-native-svg-icon';

SvgIcon.defaultProps.viewBox = '0 0 24 24';

const Icon = props => <SvgIcon {...props} svgs={/* ... */} />;

export default Icon;

/* icon.svg */

import React from 'react';
import { Path } from 'react-native-svg';

export default {
  svg: /* ... */,
  viewBox: '131 0 59 59',
};

IMO the second viewBox should take priority, as it's for a specific icon.
Alongside checking whether props.viewBox is set, it might be worth also checking to see whether the value differs from the defaultProps value?

Hmmm, yeah. It's actually documented this way, but I agree, it's probably not useful for real-world scenarios.
Ideally, the specificity order should be:

<Icon viewBox />
{ Name: { viewBox: '' } }
Icon.defaultProps.viewBox
SvgIcon.defaultProps.viewBox

The problem is that, AFAIK, there's no way of knowing if a prop's value is set from defaultProps or on a component instance like <Icon viewBox="0 0 10 10" />. So, to achieve this, I'd have to use a separate prop for the viewBoxDefault, which is overridable by viewBox.
Do you think this would be confusing? Because believe it or not, it's what I implemented in v0.2.0, but I didn't like it 😕
Unless you know of a better workaround? (I'm still pretty new to React really as well)

defaultProps and props are different, so you should be able to compare between the two. If they're the same, the value hasn't been overridden.
I think that's the case, anyhow. I'll take a look at doing a PR over the weekend - tests are lacking so I could probably add some of them in too :)

That would be much appreciated. I tried to implement tests with Mocha and Enzyme, but ran in to issue after issue trying to import the dependencies (reserved word)

@stowball I'm just coming across this again as it came up again in my project. Is it something you still need a hand with? Can find some time this weekend if so.

Done. Your solution didn't quite work and Dan Abramov confirmed that it wasn't possible to differentiate props from defaultProps, so went with a defaultViewBox prop


TGP-2086: commodity code expired day

Thank you for submitting a pull request on this HMRC repository. A member of the HMRC team will review your changes and action accordingly.
HMRC reviewer: please reference this runbook for guidance on how to proceed.

See https://github.com/hmrc/trader-goods-profiles-frontend/pull/378


Feat/kubernetes/in cluster

What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area pkg
What this PR does / why we need it:
Fix lockfile name.
Which issue(s) this PR fixes:
None

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Lowaiz
Once this PR has been reviewed and has the lgtm label, please assign fededp for approval by writing /assign @fededp in a comment. For more information see:The Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


fix(anvil): Return transaction hash in ots_getTransactionBySenderAndNonce

Motivation
Anvil currently returns a transaction object from ots_getTransactionBySenderAndNonce, but both the Otterscan execution specs (https://otterscan.github.io/execution-apis/api-documentation/) and the Foundry Book itself (https://book.getfoundry.sh/reference/anvil/) say it should return the transaction hash. Users can't navigate by sender nonce in Anvil-backed Otterscan instances because if this mistake.

Solution

Simply return the transaction hash rather than the complete transaction object.
Fixes #7740
First-time contributing feedback
I wasn't aware of some extra requirements to run the tests, namely:
Setup:

Install gcc
Install make
Install solc
Install libopenssl-dev

And for formatting:
rustup toolchain install nightly

It would be helpful if these instructions were added to or linked from the contributing guidelines.
Also, there were some git commit related tests that always failed when running: cmd::clone::tests::test_clone_single_file_contract failed with called Result::unwrap()on anErr value: Project init error: failed to commit (code=Some(128), stdout="", stderr="Author identity unknown\n\n*** Please tell me who you are.\n\nRun\n\n  git config --global user.email<EMAIL_ADDRESS>git config --global user.name \"Your Name\"\n\nto set your account's default identity.\nOmit --global to set the identity only in this repository.\n\nfatal: unable to auto-detect email address (got 'username@rustup.(none)')")

@mattsse


Think about a translator for fig.io completions?

There is some company trying to monetise completions for teams (thus they have more resources etc.), and their tool uses spec files for completions (MIT licensed I think) written in typescript:
https://fig.io/docs/getting-started
Potentially, making use of these may ease the burden on you to keep spec files up-to-date, but would require a translator from their files to your yaml ones. By the way thanks a ton for this, it really makes it easier for end-users to tweak completions!!!

Quite possible, but it won't include most of the completions itself - just the command structure.
carapace-bin includes an export (carapace <COMPLETER> export) that should work as well for that (at least for the more statically structured commands).
The aim of this though is less providing a collection of specs but rather providing a simple method to define completions where a compiled completer is a bit excessive (mainly due to its size).
This includes user defined completions without the need for (much) programming knowledge and most of all plugin support like this.
I've considered script interpreters like tengo but yaml (json, toml is fine as well) with little script snippets seems to be the best middle ground for this.
$(command) is currently executed in a sh though so i might have to rethink that a bit for windows. But ist is probably best to have a powershell variant of the spec anyway since it differs too much anyway from linux/mac.

related https://github.com/jakeswenson/autocomplete/pull/1

Thanks, I realise your aim for your spec files are more for ad-hoc customisation rather than the core mechanism to store the completions. I was I suppose just thinking aloud as to how you may reduce some of your maintenance burden as a single developer by some how tapping into this funded source of completion data. Your tool is really invaluable especially for Elvish users, so thank you so much!

So with https://github.com/microsoft/inshellisense/pull/78 and https://github.com/rsteube/carapace-bridge/pull/150 fig completions can now be invoked.
The lexer in inshellisense is quite primitive at the moment so it's not really usable for now, but maybe that will improve in the future.

Super, and thank you for such a brilliant tool! I don't quite understand from the inshellisense page as it doesn't support elvish, but I think you mean you can provide the bridge?

Yes, since inshellisense uses fig under the hood the completions can now by invoked with inshellisense complete "mycmd args...".
It's not very usable at the moment though. The lexer in inshellisense is pretty basic and can't handle spaces and quotes yet.
A lot of the completion also doesn't really work well (even file completion still has some major issues).

Had another look at this a while ago and there were some specifics that make a conversion a bit cumbersome.
Quality of the fig completions isn't that great anyway, so there isn't much advantage to writing them from scratch.
Closing this since there is a bridge now anyway and soon an implicit one as well.


[Dev] Custom Market Creation

polish effort to clean up / finish market creation.

Remaining issues -> Liquidity Sort Epics / Sprint Bugs


[R-package] Fix best_iter and best_score

This should fix #2158 and #2029.
"best" rule:

Take the first iteration where the best score is attained, even if the further iterations have identical scores (do not take the last)
When there is no scoring done, the best score becomes NA and the best iteration is -1 (currently)

Later, we should enforce the metric used for early stopping should be only the first one, or at worst give the user the ability to choose the metric (best is the first).
note: @jameslamb spaces from RStudio to fix
Example:
library(lightgbm)
data(agaricus.train, package = "lightgbm")
train <- agaricus.train
dtrain <- lgb.Dataset(train$data, label = train$label)
data(agaricus.test, package = "lightgbm")
test <- agaricus.test
dtest <- lgb.Dataset.create.valid(dtrain, test$data, label = test$label)
params <- list(objective = "regression", metric = "l2")
valids <- list(test = dtest)
model <- lgb.train(params,
                   dtrain,
                   100,
                   min_data = 1,
                   learning_rate = 0.5)
model$best_score
model$best_iter
# > model$best_score
# [1] NA
# > model$best_iter
# [1] -1

model <- lgb.train(params,
                   dtrain,
                   100,
                   valids,
                   min_data = 1,
                   learning_rate = 0.5)
model$best_score
model$best_iter
# > model$best_score
# [1] 7.497024e-62
# > model$best_iter
# [1] 100

model <- lgb.train(params,
                   dtrain,
                   100,
                   valids,
                   min_data = 1,
                   learning_rate = 0.5,
                   early_stopping_rounds = 10)
model$best_score
model$best_iter
# > model$best_score
# [1] 7.497024e-62
# > model$best_iter
# [1] 100

model <- lgb.cv(params,
             dtrain,
             10,
             nfold = 5,
             min_data = 1,
             learning_rate = 1)
model$best_score
model$best_iter
# > model$best_score
# [1] 0.0003072197
# > model$best_iter
# [1] 1

model <- lgb.cv(params,
             dtrain,
             10,
             nfold = 5,
             min_data = 1,
             learning_rate = 1,
             early_stopping_rounds = 5)
model$best_score
model$best_iter
# > model$best_score
# [1] 5.369631e-18
# > model$best_iter
# [1] 3

Later, we should enforce the metric used for early stopping should be only the first one, or at worst give the user the ability to choose the metric (best is the first).

There are some problems with metrics' order in Python: #2127. I suppose the same is true and for R too.

@StrikerRUS In R lists, it is fixed. The first element always remains the first element. You may even have two elements having the same exact names without any conflict.
However users may provide the same metric multiple times by mistake, in that case we deduplicate them.
Example:
library(lightgbm)
data(agaricus.train, package = "lightgbm")
train <- agaricus.train
dtrain <- lgb.Dataset(train$data, label = train$label)
data(agaricus.test, package = "lightgbm")
test <- agaricus.test
dtest <- lgb.Dataset.create.valid(dtrain, test$data, label = test$label)
params <- list(objective = "regression", metric = c("l2", "l1", "l2"))
valids <- list(test = dtest)

model <- lgb.train(params,
                   dtrain,
                   100,
                   valids,
                   min_data = 1,
                   learning_rate = 0.5)
str(model$record_evals$test, max.level = 1)
# > str(model$record_evals$test, max.level = 1)
# List of 2
#  $ l2:List of 2
#  $ l1:List of 2

@StrikerRUS In R lists, it is fixed. The first element always remains the first element. You may even have two elements having the same exact names without any conflict.
However users may provide the same metric multiple times by mistake, in that case we deduplicate them.
Example:
library(lightgbm)
data(agaricus.train, package = "lightgbm")
train <- agaricus.train
dtrain <- lgb.Dataset(train$data, label = train$label)
data(agaricus.test, package = "lightgbm")
test <- agaricus.test
dtest <- lgb.Dataset.create.valid(dtrain, test$data, label = test$label)
params <- list(objective = "regression", metric = c("l2", "l1", "l2"))
valids <- list(test = dtest)

model <- lgb.train(params,
                   dtrain,
                   100,
                   valids,
                   min_data = 1,
                   learning_rate = 0.5)
str(model$record_evals$test, max.level = 1)
# > str(model$record_evals$test, max.level = 1)
# List of 2
#  $ l2:List of 2
#  $ l1:List of 2

@Laurae2 will it be better to have a parameter named "first_metric_only" in R as well?

BTW, if both R and python have "first_metric_only" option, I think we should have the same option in CLI version.

@guolinke Yes, I think we should have first_metric_only option for CLI, R, and Python.
As the handling would be different for each wrapper, R and Python would have their own implementations using callback.

@StrikerRUS do you know why Travis MPI/Python jobs are failing?

@Laurae2 gcc 9 has been released recently. Hotfix is already in master: abbbbd7545e6a0549c17a182b7a59d7468cfb58e.

Later, we should enforce the metric used for early stopping should be only the first one, or at worst give the user the ability to choose the metric (best is the first).

@Laurae2 is this implemented in this PR?

also refer to this:
https://github.com/microsoft/LightGBM/pull/2127#issuecomment-493277818
we should ensure that cli, python and R have the same behavior with first_metric_only.

@guolinke This PR uses all metrics. We can do first_metric_only in another PR.
Note that the best score / iteration is taken from the first metric when it was not computed by the model.

Closing/reopening for CI

@Laurae2

Closing/reopening for CI

This doesn't work for branch's CIs, it works only for PR's CIs.

@jameslamb do we merge it as is for the moment?

I've updated the branch. Now all check should be OK.


Chef-server installation on ubuntu16 with docker file "Error executing action run on resource 'execute[oc_id_schema]'"

Your Environment

Chef Server Version: 12.17.33
Total/free RAM and disk space: 8 core cpu, 16GB Ram, 10 gb hard disk
Operating System and Version: ubuntu16.04
If upgrading, previous Chef Server version: no
Running in a container yes

Docker command used - docker run --privileged -ti --name test -d -p 443:443 jboothapati/docker-for-chef-server
Docker image located at - https://github.com/Johnjosh11/Docker-for-chef-Server/blob/branch1-12.17.15/Dockerfile
Error Message:

execute[chown -R opscode:opscode /var/log/opscode/oc_id] action run

execute chown -R opscode:opscode /var/log/opscode/oc_id

execute[oc_id_schema] action run
================================================================================
Error executing action run on resource 'execute[oc_id_schema]'
Mixlib::ShellOut::ShellCommandFailed
Command execution failed. STDOUT/STDERR suppressed for sensitive resource
Resource Declaration:
suppressed sensitive resource output
Compiled Resource:
suppressed sensitive resource output
System Info:
chef_version=12.21.31
platform=ubuntu
platform_version=16.04
ruby=ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux]
program_name=/opt/opscode/embedded/bin/chef-client
executable=/opt/opscode/embedded/bin/chef-client

Recipe: private-chef::postgresql

runit_service[postgresql] action restart (up to date)

execute[restart_postgresql_log_service] action run

execute /opt/opscode/embedded/bin/sv restart /opt/opscode/sv/postgresql/log
Recipe: private-chef::oc_bifrost

runit_service[oc_bifrost] action restart (up to date)

execute[restart_oc_bifrost_log_service] action run

execute /opt/opscode/embedded/bin/sv restart /opt/opscode/sv/oc_bifrost/log
Recipe: private-chef::oc_id

runit_service[oc_id] action restart
================================================================================
Error executing action restart on resource 'runit_service[oc_id]'
Mixlib::ShellOut::ShellCommandFailed
Expected process to exit with [0], but received '1'
---- Begin output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/oc_id ----
STDOUT: fail: /opt/opscode/service/oc_id: unable to change to service directory: file does not exist
STDERR:
---- End output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/oc_id ----
Ran /opt/opscode/embedded/bin/sv restart /opt/opscode/service/oc_id returned 1
Cookbook Trace:
/var/opt/opscode/local-mode-cache/cookbooks/runit/libraries/helpers.rb:174:in tap' /var/opt/opscode/local-mode-cache/cookbooks/runit/libraries/helpers.rb:174:in safe_sv_shellout!'
/var/opt/opscode/local-mode-cache/cookbooks/runit/libraries/helpers.rb:202:in restart_service' /var/opt/opscode/local-mode-cache/cookbooks/runit/libraries/provider_runit_service.rb:330:in block in class:RunitService'
Resource Declaration:
In /var/opt/opscode/local-mode-cache/cookbooks/enterprise/definitions/component_runit_service.rb
37:   runit_service component do
38:     action :enable
39:     retries 20
40:     control params[:control] if params[:control]
41:     options(
42:       log_directory: log_directory
43:     )
44:     params[:runit_attributes].each do |attr_name, attr_value|
45:       send(attr_name.to_sym, attr_value)
46:     end
47:   end
48:
Compiled Resource:
Declared in /var/opt/opscode/local-mode-cache/cookbooks/enterprise/definitions/component_runit_service.rb:37:in `block in from_file'
runit_service("oc_id") do
params {:package=>"private_chef", :log_directory=>nil, :svlogd_size=>nil, :svlogd_num=>nil, :ha=>nil, :control=>nil, :runit_attributes=>{}, :action=>:enable, :name=>"oc_id"}
provider Chef::Provider::RunitService
action [:enable]
supports {:restart=>true, :reload=>true, :status=>true}
retries 20
retry_delay 2
default_guard_interpreter :default
service_name "oc_id"
enabled false
running false
masked nil
pattern "oc_id"
status_command "/opt/opscode/embedded/bin/sv status /opt/opscode/service"
sv_bin "/opt/opscode/embedded/bin/sv"
sv_dir "/opt/opscode/sv"
service_dir "/opt/opscode/service"
lsb_init_dir "/opt/opscode/init"
options {:log_directory=>"/var/log/opscode/oc_id"}
log true
restart_on_update true
run_template_name "oc_id"
log_template_name "oc_id"
check_script_template_name "oc_id"
finish_script_template_name "oc_id"
sv_templates true
log_dir "/var/log/oc_id"
service_mirror # Declared in
service("oc_id") do
provider Chef::Provider::Service::Simple
action [:nothing]
supports {:restart=>true, :reload=>true, :status=>true}
retries 0
retry_delay 2
default_guard_interpreter :default
service_name "oc_id"
enabled nil
running nil
masked nil
pattern "oc_id"
start_command "/opt/opscode/embedded/bin/sv start /opt/opscode/service/oc_id"
stop_command "/opt/opscode/embedded/bin/sv stop /opt/opscode/service/oc_id"
status_command "/opt/opscode/embedded/bin/sv status /opt/opscode/service/oc_id"
restart_command "/opt/opscode/embedded/bin/sv restart /opt/opscode/service/oc_id"
end
declared_type :runit_service
cookbook_name "private-chef"
recipe_name "oc_id"
end
System Info:
chef_version=12.21.31
platform=ubuntu
platform_version=16.04
ruby=ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux]
program_name=/opt/opscode/embedded/bin/chef-client
executable=/opt/opscode/embedded/bin/chef-client

Running handlers:
Running handlers complete
Chef Client failed. 71 resources updated in 01 minutes 15 seconds
[2018-08-28T06:25:38+00:00] FATAL: Stacktrace dumped to /var/opt/opscode/local-mode-cache/chef-stacktrace.out
[2018-08-28T06:25:38+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2018-08-28T06:25:38+00:00] FATAL: Chef::Exceptions::MultipleFailures: Multiple failures occurred:

Mixlib::ShellOut::ShellCommandFailed occurred in chef run: execute[oc_id_schema] (private-chef::oc_id line 152) had an error: Mixlib::ShellOut::ShellCommandFailed: Command execution failed. STDOUT/STDERR suppressed for sensitive resource
Mixlib::ShellOut::ShellCommandFailed occurred in delayed notification: runit_service[oc_id] (private-chef::oc_id line 37) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/oc_id ----
STDOUT: fail: /opt/opscode/service/oc_id: unable to change to service directory: file does not exist
STDERR:
---- End output of /opt/opscode/embedded/bin/sv restart /opt/opscode/service/oc_id ----
Ran /opt/opscode/embedded/bin/sv restart /opt/opscode/service/oc_id returned 1

Docker file:
FROM ubuntu:16.04
MAINTAINER OitOps
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update &&
apt-get install -yq --no-install-recommends wget curl vim rsync &&
wget --no-check-certificate --content-disposition "http://www.opscode.com/chef/download-server?p=ubuntu&pv=16.04&m=x86_64&v=latest&prerelease=false&nightlies=false" &&
dpkg -i chef-server*.deb &&
rm chef-server*.deb &&
apt-get remove -y wget &&
rm -rf /var/lib/apt/lists/*
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -sf /bin/true /sbin/initctl
COPY main.sh chef.sh /usr/local/bin/
VOLUME /var/log
CMD ["main.sh"]
main.sh
#!/bin/bash -e
sysctl -wq kernel.shmmax=17179869184
sysctl -wq net.ipv6.conf.lo.disable_ipv6=0
/opt/opscode/embedded/bin/runsvdir-start &
if [ -f "/root/chef_configured" ]
then
echo -e "\nChef Server already configured!\n"
chef-server-ctl status
else
echo -e "\nNew install of Chef-Server!"
/usr/local/bin/chef.sh
fi
tail -F /opt/opscode/embedded/service/*/log/current
chef.sh
#!/bin/bash
Create chef-server.rb with variables
echo "nginx['enable_non_ssl']=false" > /etc/opscode/chef-server.rb
if [[ -z $SSL_PORT ]]; then
echo "nginx['ssl_port']=443" >> /etc/opscode/chef-server.rb
else
echo "nginx['ssl_port']=$SSL_PORT" >> /etc/opscode/chef-server.rb
fi
if [[ -z $CONTAINER_NAME ]]; then
echo "nginx['server_name']="chef-server"" >> /etc/opscode/chef-server.rb
else
echo "nginx['server_name']="$CONTAINER_NAME"" >> /etc/opscode/chef-server.rb
fi
echo -e "\nRunning: 'chef-server-ctl reconfigure'. This step will take a few minutes..."
export PATH=/opt/opscode/bin:/opt/opscode/bin/embedded:$PATH
/opt/opscode/embedded/bin/runsvdir-start &
chef-server-ctl reconfigure
URL="http://<IP_ADDRESS>:8000/_status"
CODE=1
SECONDS=0
TIMEOUT=60
return=$(curl -sf ${URL})
if [[ -z "$return" ]]; then
echo -e "\nINFO: Chef-Server isn't ready yet!"
echo -e "Blocking until <${URL}> responds...\n"
while [ $CODE -ne 0 ]; do
curl -sf \
     --connect-timeout 3 \
     --max-time 5 \
     --fail \
     --silent \
     ${URL}

CODE=$?

sleep 2
echo -n "."

if [ $SECONDS -ge $TIMEOUT ]; then
  echo "$URL is not available after $SECONDS seconds...stopping the script!"
  exit 1
fi

done;
fi
echo -e "\n\n$URL is available!\n"
echo -e "\nSetting up admin user and default organization"
chef-server-ctl user-create admin inadev support<EMAIL_ADDRESS>'support@123' --filename /etc/chef/inadev.pem
chef-server-ctl org-create inadev 'Inadev Corporation' --association_user admin --filename /etc/chef/inadev-validator.pem
echo -e "\nRunning: 'chef-server-ctl install chef-manage'"...
chef-server-ctl install chef-manage
echo -e "\nRunning: 'chef-server-ctl reconfigure'"...
chef-server-ctl reconfigure
echo "{ "error": "Please use https:// instead of http:// !" }" > /var/opt/opscode/nginx/html/500.json
sed -i "s,/503.json;,/503.json;\n    error_page 497 =503 /500.json;,g" /var/opt/opscode/nginx/etc/chef_https_lb.conf
sed -i '$i\    location /knife_admin_key.tar.gz {\n      default_type application/zip;\n      alias /etc/chef/knife_admin_key.tar.gz;\n    }' /var/opt/opscode/nginx/etc/chef_https_lb.conf
echo -e "\nCreating tar file with the Knife keys"
cd /etc/chef/ && tar -cvzf knife_admin_key.tar.gz admin.pem my_org-validator.pem
echo -e "\nRestart Nginx..."
chef-server-ctl restart nginx
chef-server-ctl status
touch /root/chef_configured
echo -e "\n\nDone!\n"

Can someone please help me with this issue.

@Johnjosh11 I apologize for the delay in getting back to you on this. As of today we do not support omnibus chef-infra-server in docker. If this is something you would like I would request you to please put an idea on our Aha! board. (https://chef-software.ideas.aha.io/).
Omnibus was not structured in a way that made for a good experience for docker users. Closing this request in favor of this known issue.


Sending messages to unsupported controls

For example, the msctls_progress32 control does not seem to be supported yet.  Is there a way to send custom messages to unsupported controls created in .resource files, using this function?
https://github.com/rodrigocfd/winsafe/blob/82bcca0421f374e9de9e75634ec6b2862ec76557/src/handles/hwnd.rs#L973-L982
In this specific case, I'd like to send PBM_SETSTEP messages.

Exactly. This is the SendMessage function of the Windows API. You can create unsupported controls with CreateWindowEx just like you would in C++, and then use SendMessage to communicate – it's like working with the original Win32, but in Rust.
Do note that I'm implementing the high-level wrapper to the progress bar, though. Soon this approach will be no longer necessary.


driver-sh1170 for Raspberry Pico (1.12" OLED I2C Breakout)

Needed a display to attach to a Tiny 2040, so I ported one for the OLED 1.12" monochrome I2C Breakout.
As before, I found an Arduino driver and modified it to the new breakouts-dev standards and converted from C to C++.
I only have the I2C version of the breakout, so I couldn't check the SPI code.
As far as I remember, the Python version of the Pi library (luma) has an image display function, but that wasn't in the original code I used. I'm going to have to dig around for that!
There is a warning in the demo code about converting a string constant to a char *. I also cast an int to an "enum" type - not sure how to use the enum directly (for black/white colours).
I have created this PR against the breakouts-dev branch - I hope that's right! Thanks for setting up all of the breakout templates - made life a lot easier.

I'd got about as far as burning myself on my 1.12" OLED (an old prototype held together with tape!) and you sweep in with this. Well timed, thank you! It's on our radar.

Thank you- I'm going to pull this code apart somewhat to make constructors for i2c and spi separately, since we wont be able to support i2c/spi in Python using preprocessor macros. Will push it up to a branch here for comparison.

Raised a PR of my changes so far against your branch, so you can see what I'm changing - https://github.com/simon3270/pimoroni-pico/pull/1/files
Right now I'm successfully driving i2c and SPI displays side-by-side with the same code and a shared display buffer.
Your char * issue was solved by switching to const char*
I attempted to use an enum class SH1107_COLOR: uint8_t to fix your enum woes, but it's only made things more complex. If less wordy. I think just using bool and #define SH1107_BLACK false and define SH1107_WHITE true would work here... although black/white are relative if you've inverted the display anyway so maybe it should be SET and CLEAR.

@Gadgetoid I see you're making tweaks for SPI and I2C, so let me know when it's good for me to merge this PR 🙂

Hey @Gadgetoid, I know you've got a lot going on, I was just wondering on the status of this PR -- is it still on the radar?

@SamStudio8 yes, I'm not sure why it's still in limbo. Probably needs a thorough code review and a look at Python bindings.
Have you got it up and running at all?

I hadn't tried but perhaps this is an excuse to learn how to build an image :thinking:

Oh I don’t think there are any MicroPython bindings yet (so this would only work in C++)- but if this PR weren’t so ancient you could get a build right from the continuous integration.

This has fallen by the wayside, but I'd like to try and refactor and include it at some point.
These notes are mainly to my future self.
Key points:

[ ] Should prefer arguments passed to the constructor rather than compile-time config (for MicroPython support)
[ ] Should use bitmap_fonts and hershey_fonts libraries instead of baking its own fonts (those probably need some compile time defines for configuring included fonts)
[ ] Should use Pico Graphics if possible, I'm trying to canonicalise on a single drawing API

I'm aiming at something like this which combines the raw ST7789 driver with Pico Graphics -  https://github.com/pimoroni/pimoroni-pico/pull/327

I've been rewriting much of how we handle graphics & display drivers here - https://github.com/pimoroni/pimoroni-pico/pull/373
As such this driver would need to inherit from PicoGraphics::DisplayDriver and implement void update(PicoGraphics *display) method.
The ST7789 and ST7735 drivers both do this, eg:
  // Native 16-bit framebuffer update
  void ST7735::update(PicoGraphics *graphics) {
    if(graphics->pen_type == PicoGraphics::PEN_RGB565) {
      command(reg::RAMWR, width * height * sizeof(uint16_t), (const char*)graphics->frame_buffer);
    } else {
      command(reg::RAMWR);
      gpio_put(dc, 1); // data mode
      gpio_put(cs, 0);

      graphics->scanline_convert(PicoGraphics::PEN_RGB565, [this](void *data, size_t length) {
        spi_write_blocking(spi, (const uint8_t*)data, length);
      });

      gpio_put(cs, 1);
    }
  }

In the case of SH1170, these OLED displays are monochrome so we'd need a 1-bit pen type added to PicoDisplay. This is on my radar at least.
Standardizing on Pico Graphics should give us monochrome dithered jpeg support, plus our common Bitmap and Hershey fonts on these OLEDs.

Due to a pressing need to use this OLED for whacky testing purposes we integrated support into PicoGraphics yesterday - https://github.com/pimoroni/pimoroni-pico/pull/373
Thank you for this working reference implementation, I think we'd have lost a lot more hair without it!
Our driver currently only supports 128x128 displays with normal rotation, but that can be improved over time!
Example Python code:
from picographics import PicoGraphics, DISPLAY_I2C_OLED_128X128, PEN_1BIT
from pimoroni_i2c import PimoroniI2C

bus = PimoroniI2C(4, 5)

display = PicoGraphics(DISPLAY_I2C_OLED_128X128, pen_type=PEN_1BIT, bus=bus)

display.set_pen(1)
display.clear()
display.set_font("gothic")
display.set_pen(0)
display.text("Hello World", 0, 10, 0, 0.5)
display.update()

Glad to have been of service!

Closing this now since the Pico Graphics based version (albeit very incomplete) obsoletes it.
Thank you!


Generate man pages / shell completions with clap

Should be possible to add man pages / shell completions with relative ease since rmpc already uses clap for the cli.
For my own projects I use a build.rs script that generates these from cli.rs

Yup, this is definitely on my radar

Thank you for providing examples from your project. I have customized it a little bit and merged here https://github.com/mierak/rmpc/pull/24 if that is alright with you. With that said, completions and man pages should now generate on build inside the target directory.


Private key provided is invalid or not supported .. DerInputStream.getLength(): lengthTag=56, too big

System information:

Operating system Windows 10 21H1
DBeaver version 22.1.1

Connection specification:

Database name Snowflake 6.22.0
Driver name snowflake-jdbc-3.13.20.jar

Describe the problem you're observing:
Test connection in the Connection settings returns the following error:
Private key provided is invalid or not supported: C:\Users\z000xxxx\Keys\Dev_mnxxxxxxx_tu_exx_taxxxx_private_key.pem: DerInputStream.getLength(): lengthTag=56, too big.
In Driver properties the following user properties are configured:
private_key_file
private_key_file_pwd
I think, a variable has the wrong size definition.
An older issue with a similar, but not identical, error message is https://github.com/dbeaver/dbeaver/issues/8946#issue-636672378
Maybe this link can give you further hints:
https://community.snowflake.com/s/article/Private-key-provided-is-invalid-or-not-supported-rsa-key-p8--data-isn-t-an-object-ID
Thanks for solving this problem, BR
Günter

Found this issue by searching, facing something similar and wondering if it's actually not a Snowflake bug?
I'm also trying to keypair authenticate to Snowflake to save myself from several MFA pushes to my mobile device when working with DBeaver. I've similarly set the private_key_file and private_key_file_pwd properties.
My error:Private key provided is invalid or not supported: /Users/joshgaunt/.ssh/rsa_key.pem: overrun, bytes = 1196
Open Snowflake issue from almost 2 years ago: https://github.com/snowflakedb/snowflake-jdbc/issues/327

@GuenterSch
Could you answer what is the type of the key you are using?

Hello Eugene,
the private key file (*.pem) contains the following code:
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-256-CBC,F7DEB6495A2F896B651E82EDA641F8A8

Hello @GuenterSch,
Have you tried connecting using the private key in DBeaver PRO? It has dedicate support for private key authentication.

Hello DBeaver-PM,
no, I use the DBeaver Community Version. I think it should work here also.

Does this issue still actual against the recent version?

Hello Dziyana,
I tried it yesterday. YES, I got the same problem with the new version 22.3.3.
BR
Günter
Private key provided is invalid or not supported: C:\Users\xxxxxxxx\Keys\Dev_xxxxxxxxxxxxxxxxxxxxxxx_private_key.pem: DerInputStream.getLength(): lengthTag=56, too big.
--With an other connection
Private key provided is invalid or not supported: C:\Users\xxxxxxxx\Keys\Prd_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_private_key.pem: java.security.InvalidKeyException: IOException : DerInputStream.getLength(): lengthTag=23, too big.

Cannot reproduce

@GuenterSch Can you please tell me what command you used to create the key?

I don't think that it is related to key format or something.
It may be related to encryptred keys (keys with password). The last Snowflake drivers just ignores password in some cases.
We added a workaround for that.


Uncaught Exception / Type Error: Cannot read property 'client' of null

There is an open ticket on the main repo: https://github.com/mailsvb/node-red-contrib-twitter-stream/issues/8
The command line console shows error [red] Uncaught Exception: followed by:
TypeError: Cannot read property 'client' of null
at Timeout.TwitterStream.setInterval [as _onTimeout] (C:\Users\virtarch\.node-red\node_modules\node-red-contrib-twitter-stream\twitter\twitter.js:90:51).
The last entry in the Node-Red console if the app crashed while running reads: "Error: Twit config must include 'consumer_key' when using user auth."
The issue occurs when the Connection credentials are removed but either Twitter Users || Twitter Topics || Geographic Coordinates = True. A simple if statement checking those conditions and closing the connection should resolve the issue.

Added check for connection details and flagged status 'api connection not set' when the condition isn't met.


Fix the Post List gap visible on iOS 14.2

Summary
For some reason on iOS 14.2 the event for Keyboard did appear was being triggered when the text input loses focus, this caused the observer to re-calculate the frame of the post list as if the keyboard was opened creating a gap between  the list and the text input area.
This patch also addresses the posts displayed under the text input area when a hardware keyboard was being used.
@josephbaylon not sure if you want to give this a try, but @migbot was able to repro before, so he could confirm the fix.
Device Information
This PR was tested on:

iPad Pro with iOS 14.1 & 14.2
iPhone Xs with iOS 14.2
iPhone 11 Simulator with iOS 14.1

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/11832
https://circleci.com/gh/mattermost/mattermost-mobile/11831

Artifact links:
https://11832-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.ipa
https://11831-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.apk

@enahum Unfortunately I'm not able to repro the issue on the latest RC. But I verified that when post input loses focus the post list is not displayed as if a keyboard is inserted, i.e. post list looks normal. Tested on iPhone X (14.2) device.
However, for iOS simulator 14.1 when I tap on post input, the space still appears between post list and post input (see image). It only goes back once post input loses focus, e.g. tapping on settings drawer button.

@migbot no I did not for two reasons:

lib is no longer maintained as they created https://github.com/wix/react-native-ui-lib
This is a fix on the patch we added a while back on a functionality that is not part of the library

@josephbaylon not sure what you are talking about.

@josephbaylon for the simulator press CMD+K to  bring the keyboard up as it would show on a regular device. then the gap won't be there.

@enahum I'm not sure if it's the same issue or similar to the one you described but for iOS simulator, when I tap the post inpu I notice the post list content is pushed up and there's space between the last entry of the post list and the post input. I don't think that's suppose to happen.

@enahum Ah I see. So it's not the hardware connected but the soft keyboard still.

Cherry pick is scheduled.


Assign coating to faces

Description of the feature
Right now it is only possible to assign finite conductivity boundary to objects, but it is also possible to assign to Faces.
Steps for implementing the feature
Add the option to add faces to Finite Conductivity boundary
Useful links and references
No response

How do I use this?


Type safety second pass for Site Context module

See description in the master ticket: #523
I suggest waiting or merging #467 branch

PR: GH-672


Cart system

Anyone think we need cart system? Or should we keep it minimalist?

Added cart system!


Failed web request on discover_nhdplus_id

Hi there,
First, thanks for the fantastic package. I'm getting a new error using the discover_nhdplus_id function, using both the latest CRAN version and a freshly installed copy from GitHub on R 4.0.2 on Windows 10 version 19041. Here's an example:
> start_point <- sf::st_sfc(sf::st_point(c(-121.343839, 38.3579675)), crs = 4269)
> nhdplusTools::discover_nhdplus_id(start_point)
Something went wrong with a web request.
 Error: Cannot open "<?xml version="1.0" ?>
<ServiceExceptionReport
   version="1.2.0"
   xmlns="http://www.opengis.net/ogc"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd">
   <ServiceException>
      java.lang.RuntimeException: Unable to obtain connection: The connection attempt failed.
Unable to obtain connection: The connection attempt failed.
The connection attempt failed.
No route to host (Host unreachable)
</ServiceException></ServiceExceptionReport>"; Check connection parameters.

Error in if (nrow(catchment) > 1) { : argument is of length zero

That persists if I change the coordinates I'm using and also if VPN to another location (in case I somehow got my IP banned from the web service during testing). This same code previously worked reliably, so I think I'm not doing something wrong here and wanted to report it in case there's a broader issue with the web service it's using. I'm happy to provide any additional information that would help. Thanks!

Thanks for letting us know. I am also seeing this issue. Looking into it. It is almost certainly some kind of database configuration issue on a downstream server. Will update here when we get it fixed.

Thanks for bringing this up! Lingering issues from a database migration.  We should have this sorted within the next hour or two.

OK! I think we are back in business. @nickrsan  can you please confirm?

Working on my end now - thanks for the quick fix!

Still not working for me... did you guys do anything to fix it?

@alherca73 I'll note that I had an active R session from before the fix, and when I ran it after the fix, it was still failing until I restarted my R session. I didn't do anything else though. I've now run a decent bit of code for a few locations through it with success (some of my package's tests connect to that API for data).

@nickrsan thanks for getting back to me. I've quit R and restarted several time but keep getting the same error. Should I restart my computer perhaps?

I'd be surprised if you needed to restart your computer, but it never hurts! Can you share the code snippet you're running that's failing?

Thanks for following up @nickrsan, for some reason rebooting my Mac took care of the error :) The code error that I was getting was exactly like yours. Thanks

Thanks for the report all -- think we can close this now.

Hello. I am continuing to get this error when using nhdplusTools::discover_nhdplus_id. I was wondering... is there a way to circumvent this? in other words, is there a way to obtain the COMID of a given location without having to access this link at https://labs.waterdata.usgs.gov/geoserver/ows ???
Thanks!!!

I'm seeing a new issue today too - it fails, but differently than last time. Here's the code and the result:
> longitude <- -117.8923
> latitude <- 34.96831
> start_point <- sf::st_sfc(sf::st_point(c(longitude, latitude)), crs = 4269)
> nhdplusTools::discover_nhdplus_id(start_point)
Request failed [503]. Retrying in 1 seconds...
Request failed [503]. Retrying in 1.4 seconds...
Something went wrong with a web request.
 https://labs.waterdata.usgs.gov/geoserver/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=wmadata:catchmentsp&outputFormat=application%2Fjson&srsName=EPSG:4326&CQL_FILTER=INTERSECTS%28the_geom,%20POINT%20%28-117.8923%2034.96831%29%29
 returned 503
integer(0)

@alherca73 as a workaround, I now have this set of functions for doing a lookup with nhdR instead - I'd written that code before I knew about the nhdplustools method - it requires a large download up front and then runs slower, but it works. Here's how I integrated it so I can choose to use the nhdplustools code, but then disable it if the service is down:
get_comid_for_lon_lat <- function(longitude, latitude, online=TRUE){
  if(online){
    return(get_comid_for_lon_lat_online(longitude, latitude))
  }else{
    return(get_comid_for_lon_lat_offline(longitude, latitude))
  }
}

get_comid_for_lon_lat_online <- function(longitude, latitude){
  start_point <- sf::st_sfc(sf::st_point(c(longitude, latitude)), crs = 4269)
  return(nhdplusTools::discover_nhdplus_id(start_point))
}

get_comid_for_lon_lat_offline <- function(longitude, latitude, vpu=18){

  # not going to make this a normal required package because I'm not sure we'll use it in most cases
  if (!("nhdR" %in% installed.packages())){
    install.packages("nhdR",dep=TRUE)
    if(!("nhdR" %in% installed.packages())) stop("Couldn't install nhdR")
  }

  if(length(nhdR::nhd_plus_list(vpu=vpu)) < 20){  # checks if the NHDPlus Data has already been downloaded
    # if there aren't at least 20 items (which is what it returns as of 2019/12/19), then the download might
    # be incomplete and we should forcibly have nhdR correct itself.
    nhdR::nhd_plus_get(vpu = vpu, force_dl = TRUE, force_unzip = TRUE)  # downloads and caches it for use
  }

  # This does all the spatial stuff for us automatically - basically does a spatial join at this gage's
  # latitude and longitude to find the stream segments within 100 meters. Then we'll pull the COMIDs
  spatial_qry <- nhdR::nhd_plus_query(longitude,
                                      latitude,
                                      dsn = c("NHDFlowline"),
                                      buffer_dist = units::as_units(100, "m"))

  return(spatial_qry$sp$NHDFlowline[1]$COMID)  # gets the first COMID returned
}

One caveat there is that, by default that only works in California's NHDPlus VPU (18). You'll need to know the VPU for your region of interest or adapt it for a broader area and change the arguments to get_comid_for_lon_lat_offline to make it work in another area. This structure lets me always call get_comid_for_lon_lat though and just change the online parameter to FALSE to use the nhdR version. Last note is that the get_comid_for_lon_lat_offline function will install nhdR itself if it's not already - that might not be ideal, but I opted not to make it a requirement of my package since most users will never actually use this functionality, so it runs the install in the function if needed. I hope that helps!

This is absolutely a thing that needs to be addressed...I just haven't had a moment to address getting the geoserver back up yet.  Instead, yesterday I was attempting to be a kindergarten teacher because we are in the middle of a global pandemic and there is no school.    We will get this geoserver back up and running ASAP, but it may not be today.

I'll escalate the issue with some others who may be able to help as well.

Thank you all for checking into this. @nickrsan thanks for sharing your alternative. Last night I decided to give a shot, but I'm not sure if what I'm doing makes sense. In order to get COMID, first as indicated by @dblodgett-usgs on the nhdplusTools website I do:
(a) nhdplusTool::stage_national_data using the nationwide NHDPlus dataset which creates the .rds files
Then I do
(b) sf::st_buffer around the point using 0.0005 degrees ~~50 meters as distance (this may be outrageously wrong however), and then
(c) I do sf::st_intersection(x=flowlines.rds, y=buffer from b.
Then I'm just grabbing the $COMID from the intersection.
Any of you think this is appropriate or is there a blatant flaw in my approach?

What you are doing there will work but will be pretty slow. If you want to load catchments, you could just do sf::st_intersection directly between the point and catchments.
The web services are back up now so you should be able to go back to that. Really sorry for the outage -- hopefully we can do better with up time going forward.


When creating a machine of the same name as an existing host, the existing host is deleted

So I forgot i had a perfectly good and useful vm called vmtest, and when I re-ran the create on it by mistake, it deleted all my data!
seriously, this would be something to error out on, not to destroy something.
also - why is it re-downloading the iso, aren't we sharing?
mini:machine sven$ ./machine create --driver=vmwarefusion vmtest
ERRO[0000] Error creating host: Host "vmtest" already exists
WARN[0000] Removing created machine. You can run machine with the --debug flag to avoid this.
WARN[0002] You will want to check the provider to make sure the machine and associated resources were properly removed.
FATA[0002] Error creating machine
mini:machine sven$ ./machine create --driver=vmwarefusion vmtest
INFO[0000] Downloading boot2docker...

The fusion driver has to use it's own build because of the vmtools.  As part of #217 we should perhaps version these ISOs by driver (currently vbox/fusion).
And +1 to @sthulb -- we should dupe check as early as possible.

Ouch. We should have a test for this. A good argument for having a set of integration tests for commands.

This has been fixed as of #267 and .  Closing.


Welcome Bot

This bot basically greets someone who opens up an issue or makes a pr for the first time in the repo and also when the pr gets merged.
Here is the greetings that I'll use:
Someone opens a new issue:
Hi @_user!
Thanks for opening a new issue to this repo! Don't forget to go through our Code of Conduct and Contributing Guidelines, and wait until you get assigned by one of our maintainers to work on the issue!
First PR:
Hi @_user!
Thank you for your pull request and welcome to our community!
We will soon be getting back to you. Your patience will be greatly appreciated!
Thanks!
Merged first time:
Yaay, congratulations @_user on getting your pull request merged! 🥳 🎉
Thanks for the contribution!
PS Don't hesitate to look at other issues and create more pull requests!
So, can you please assign this issue to me with adding gssoc21 label and level type

This bot basically greets someone who opens up an issue or makes a pr for the first time in the repo and also when the pr gets merged.
Here is the greetings that I'll use:
Someone opens a new issue:
Hi @_user!
Thanks for opening a new issue to this repo! Don't forget to go through our Code of Conduct and Contributing Guidelines, and wait until you get assigned by one of our maintainers to work on the issue!
First PR:
Hi @_user!
Thank you for your pull request and welcome to our community!
We will soon be getting back to you. Your patience will be greatly appreciated!
Thanks!
Merged first time:
Yaay, congratulations @_user on getting your pull request merged! 🥳 🎉
Thanks for the contribution!
PS Don't hesitate to look at other issues and create more pull requests!
So, can you please assign this issue to me with adding gssoc21 label and level type

@ankit-kmar Sounds good. Assigned and labeled. :)

@ankit-kmar Sounds good. Assigned and labeled. :)

Sir, I also see that this repo dont have any auto labelling bot. So should I add the script file for that too? If so then please let me know..
Basically this auto label bot will add the gssoc21 label automatically whenever a user will ask to work under gssoc program, this will greatly reduce your work too.

and sir pls re- assign me, By mistake I removed myself from assignee list

and sir pls re- assign me, By mistake I removed myself from assignee list

Done !!

@ankit-kmar Sounds good. Assigned and labeled. :)

Sir, I also see that this repo dont have any auto labelling bot. So should I add the script file for that too? If so then please let me know..
Basically this auto label bot will add the gssoc21 label automatically whenever a user will ask to work under gssoc program, this will greatly reduce your work too.

Yes, that would be a good feature. But make sure it works efficient and only limited to GSSoC 2021 labelling and not anything else.

@ankit-kmar If this is done, can you please close this issue to avoid confusion.


[Feature Request]: process-kaldi-pitch-feats in kaldi

🚀 The feature
Can you implement this function，process-kaldi-pitch-feats in kaldi
Solution outline
no
Additional context
no

Hello,
Please add more context to your feature request such that we know why we should do it.
Best

Hello,
I'm closing this feature request due to a lack of activity from the author. Please reopen it and provide additional context for your feature request. Thank you!
Adel


Have callbacks from the SessionManager/TransportMgr to notify Exchanges of connection closures

Feature description
This option would allow the SessionManager to appropriately notify each open exchange that the underlying connection is broken/closed. This should allow the application to take necessary actions on the Exchange. The session should also be marked as defunct.
Platform
core
Platform Version(s)
No response
Anything else?
No response

The session should also be marked as defunct.

Defunct, or evicted?  When sessions are evicted, their exchanges get notified automatically.  At least for secure sessions, which are the only type that have a concept of "defunct" anyway.  It seems to me that if our TCP connection closed, the session should just be evicted, since we are not going to be receiving messages on them, and the only difference between "defunct" and "evicted" in practice is what happens when we suddenly get a message from the other side on the session.
For unauthenticated sessions over TCP (aka CASE/PASE handshakes), we're going to need to figure out what to do with connection closure.

For TCP based sessions, I was thinking that, in order to align with retaining the session for a long term, we could mark them as defunct when connection is lost, and make them active again when the connection is re-established. So, slightly different than how the session becomes active for MRP. The reason I did not want to evict it is because, IIUC, the persistent state of the session is also thrown away, rt? So, then, for the new connection, the session would have to be established from scratch, instead of session resumption.

and make them active again when the connection is re-established

Ah, that makes sense.  In that case, yes, you need some other mechanism to handle the exchanges.  Are exchanges tied to a specific connection, unlike sessions?


Getting Illegal instruction (core dumped) when running an openblas made install

Making the latest llama.cpp repo with make LLAMA_OPENBLAS=1 works as it should.
But running LLAMA_OPENBLAS=1 pip install --force-reinstall --no-cache-dir --no-index --find-links . llama-cpp-python (running on an offline server, its the tar.gz you get from pip download)
produces an Illegal instruction (core dumped) when you try to generate words from it.

Can you check out and test this llama.cpp commit with OPENBLAS (this is what v0.1.32 is based on) https://github.com/ggerganov/llama.cpp/tree/684da25926e5c505f725b4f10b5485b218fa1fc7
to confirm, also compare to the latest llama.cpp

Sorry my bad, I did not think things through.
For the commit you sent it works, and I forgot to test on the actual llama-cpp-python repo itself, it works for llama-cpp-python as well.
My error appeared when I was using langchain, it does not like chain.running the llm. Illegal instruction (core dumped)
llm = LlamaCpp(model_path="/opt/gpt/model/ggml-vicuna-7b-4bit-rev1.bin", n_ctx=2048, max_tokens=100, n_batch=512, stop=["\n"])

chain = load_qa_chain(llm, chain_type="stuff")
answer = chain.run(input_documents=found_docs, question=query)

@Bloob-beep but without the chain ie llm(prompt) doesn't give this error? Very strange

Correct me if i'm misunderstanding, but yes I think so.
It can load the llm, load the chain. But as soon as I try to run the chain it doesn't work.
Works on non-BLAS versions though.

@Bloob-beep are you still having the issue with BLAS?

Closing. Reopen if the issue reoccurs.


Update create-alerts.md

Adding limitation: Change based alerts do not work for Batch status changes

:x: Organization membership check failed
Members of the MicrosoftDocs organization should use the private repo. Please move your changes to https://github.com/MicrosoftDocs/Dynamics-365-Operations, and close this pull request.


Kinect Fusion under opecv wrappers

Required Info

Camera Model
D415

Operating System & Version
Win 10

Platform
PC/Raspberry Pi/ NVIDIA Jetson / etc..

SDK Version
2.17+

Issue Description
Has anyone built and run kinfu.exe ? I have much trouble with the latest realsense.dlls , in a way that I cannot run it. It crashes whenever a pipeline is created or is started.

Hi @vladsterz
We will check. Its somewhat of a headache to build, requiring specialized build flags for both opencv and librealsense, so I admit we haven't really tested it lately.
@AnnaRomanov please take a look
Personally I found kinfu reconstruction somewhat disappointing (we also tried open3d) and I'm wondering if making small modifications to D435i+RTabMap (removing reliance on IMU and adjusting for D415) would produce better results.

Yes, I managed to build it after all, with librealsense 2.18.0. Results are indeed disappointing, even after I tried to run it with high accuracy preset. Fused data stop to make sense shortly after the recording starts and after a while it resets.

Were the results from open3D better?
Thx

Were the results from open3D better?

Not sufficiently enough to publish. These methods seem to be extremely sensitive to rotations.
I also tried OpenCV RGBD module. As a cheap pose estimator it performs pretty well, but does not help you to stitch resulting point-clouds.

Kinfu is not that bad under the configuration of small distance between foreground and background actually.

This is with high accuracy preset and the result is better than I imagined.

@vladsterz Do you improve the recontruction? The poor result drive me crazy. If move the camera, the kinfu will reset soon which caused by getting zero matrix or nan/inf matrix  A from getAB() function in icp->estimateTransformT()(fast-icp.cpp in opencv_rgbd). I try  disable the optimization by adding setUseOptimized(false),  which avoid getting a nan/inf matrix. But the zero matrix still exist. I am disappointed for these result. Have you try any library like PCL to reconstruct  object with realsense d435?

Hello @Jie2World. I actually didn't looked in too much into the code or method itself. I made 2 modifications. i) I did change it to high accuracy in order have higher quality depth maps (laser power helps as well) and ii) I made it kind of offline process, reading depth maps from file.

@vladsterz  Sorry, I can't understand the meaning of offline process. Do you mean that the program save the depth maps when kinfu fail and then read them after kinfu reset? Or you just read the depth maps from other place? I set it high accuracy but also get disappointing result. If move the camera, the point cloud will become blurred.  Have you try other library such as PCL? PCL has same kinect fusion, but it works for kinect and I have no idea to use it with RealSense D435.

Hello @Jie2World. No , I haven't tried PCL implementation, actually I didn't know there is one.Offline process means that I read depth files from a directory and use them as an input to kinfu, it may be helpful if you want to pick the frames you like.

@vladsterz  Any other questions about this ticket? Looking forward to your update. Thanks!

@vladsterz  Any other questions?


About training

Is there anyone who can share his/her training log 🙏
I found that when pretraining 11 epoch, the log showed "Acc@1  84.38 ( 83.33)	Acc@5  87.50 ( 92.75)"
I think that's relatively fitting, so I tranfer it to the downstream task, but gain a bad result.
Is that possible the training time is not enough?
Hope anyone can do me a favor 🙏🙏🙏🙏🙏

Is there anyone who can share his/her training log 🙏
I found that when pretraining 11 epoch, the log showed "Acc@1 84.38 ( 83.33) Acc@5 87.50 ( 92.75)"
I think that's relatively fitting, so I tranfer it to the downstream task, but gain a bad result.
Is that possible the training time is not enough?
Hope anyone can do me a favor 🙏🙏🙏🙏🙏

I meet the same problem, have you slove it?

Is there anyone who can share his/her training log 🙏
I found that when pretraining 11 epoch, the log showed "Acc@1 84.38 ( 83.33) Acc@5 87.50 ( 92.75)"
I think that's relatively fitting, so I tranfer it to the downstream task, but gain a bad result.
Is that possible the training time is not enough?
Hope anyone can do me a favor 🙏🙏🙏🙏🙏

I meet the same problem, have you slove it?

Yes. I found the pretext task I designed to be relatively easy for this framework. So it's easy to train but hard to apply.


Added hover effects on Footer

closes: #305
Description of Changes
I have added transition on hover and shadow on img
Type of Pull Request

[ ] Bug Fix
[ ] New Feature
[ ] Performance Improvement
[ ] Documentation Update
[ ] Code Refactoring
[ ] Security Enhancement
[x] Other (Specify): _______________

(Please check relevant boxes by entering an "X" inside them)
Screenshots / Demo (if applicable)
https://github.com/user-attachments/assets/df0f124f-4145-42c0-963e-713fc03bcb88
Checklist for Contributor
use'X' in [ ] to check it .

[x] I have reviewed my code before submission.
[ ] I have read and followed the project's Contribution Guidelines.
[ ] I have tested the code thoroughly.
[ ] I have attached related issue numbers, screenshots, or videos (if applicable).
[ ] I have added comments to my code where necessary for clarity.
[ ] I have checked the existing code base and my changes do not introduce any breaking changes.
[ ] My PR addresses only one issue; I have created separate PRs for other issues.
[ ] I have ensured that the PR does not include unrelated files.
[ ] I am mindful of the project's coding standards and best practices.

Additional Information
[Include any additional context or relevant information that may help in reviewing this PR.]
Contribution Guidelines Reminder
Thank you for contributing to our project! Please ensure you follow the guidelines below:
Contribution Levels

Task Categories:

Basic Tasks: Primarily focused on small changes like minor bug fixes, documentation improvements, and unit testing. Labeled as Easy.
Intermediate Tasks: Moderate-level tasks that involve enhancing existing features, code refactoring, or performance improvements. Labeled as Medium.
Advanced Tasks: Complex tasks like building new features, significant refactoring, or critical bug fixes. Labeled as Hard.

Acknowledging Effort:

Exceptional contributions will be recognized with a higher contribution level if substantial effort and innovation are demonstrated.

Review Process

PRs will be reviewed by the maintainers, and feedback will be provided. Contributors should address feedback promptly and resubmit the PR if necessary.

Contributors are encouraged to participate in the review process of other PRs for community growth.

We appreciate your time and effort in improving this project and look forward to your valuable contributions!

thanks @Bhum-ika


Using CodeceptJS and Browserstack with localIdentifier does not work correctly.

What are you trying to achieve?
Hello,
I'm trying to run E2E tests using a combination of CodeceptJS + WebDriverIO and Browserstack.
Since the test needs to be run locally on a separate connection from the CI/CD Pipeline, the localIdentifier value is specified as follows:
codecept.config.js
desiredCapabilities: {
  project: "target",
  "browserstack.local": "true",
  "browserstack.debug": "true",
  "browserstack.networkLogs": "true",
  "browserstack.console": "errors",
  "browserstack.user": "dummyuser",
  "browserstack.key": "dummykey",
  "browserstack.networkLogs": "true",
  "browserstack.localIdentifier": uuidv4(),
},

startBrowserStackLocal.js
const bs_local = new browserstack.Local();
const bs_local_args = {
  key: "dummykey",
  forceLocal: true,
  localIdentifier:
    config.helpers.WebDriver.desiredCapabilities[
      "browserstack.localIdentifier"
    ],
};

bs_local.start(bs_local_args, function () {
  console.log(">>>> BrowserStack-local START.");
});

However, when you run the E2E test, you get the following error:
Please make sure Selenium Server is running and accessible
(node:31501) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'sessionId' of undefined
    at Object._getSessionId (/Users/kawasakis91/workspace/develop/git/git_gs-cancellation-site/frontend/app/e2e/node_modules/codeceptjs-bshelper/index.js:100:47)
    at EventEmitter.<anonymous> (/Users/kawasakis91/workspace/develop/git/git_gs-cancellation-site/frontend/app/e2e/node_modules/codeceptjs-bshelper/index.js:94:28)
    at EventEmitter.emit (events.js:326:22)
    at EventEmitter.emit (domain.js:483:12)
    at Object.emit (/Users/kawasakis91/workspace/develop/git/git_gs-cancellation-site/frontend/app/e2e/node_modules/codeceptjs/lib/event.js:145:28)
    at /Users/kawasakis91/workspace/develop/git/git_gs-cancellation-site/frontend/app/e2e/node_modules/codeceptjs/lib/scenario.js:64:17
    at /Users/kawasakis91/workspace/develop/git/git_gs-cancellation-site/frontend/app/e2e/node_modules/codeceptjs/lib/recorder.js:233:9
(node:31501) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 70)
Error: Can't connect to WebDriver.
Error: Failed to create session.
[browserstack.local] is set to true but local testing through BrowserStack is not connected.

I am getting an error trying to access the value of a property that does not exist in the config file. Is this a bug?
Details

CodeceptJS version: 3.0.6
NodeJS Version: 12
Operating System: macOS
webdriverio:
Configuration file:

require("ts-node/register");

const { setHeadlessWhen } = require("@codeceptjs/configure");
const { v4: uuidv4 } = require("uuid");
const { mockServer } = require("./MockServer");

setHeadlessWhen(process.env.HEADLESS);

exports.config = {
  tests: "./spec/browserstack/*.spec.ts",
  output: `../../../testReport/frontend/codeceptjs-${process.env.STAGE}/output`,
  helpers: {
    WebDriver: {
      host: "hub-cloud.browserstack.com",
      path: "/wd/hub",
      url: "http://bs-local.com:8081",
      browser: "dummy",
      user: "dummyuser",
      key: "Dummykey",
      desiredCapabilities: {
        project: "projectname",
        "browserstack.local": "true",
        "browserstack.debug": "true",
        "browserstack.networkLogs": "true",
        "browserstack.console": "errors",
        "browserstack.user": "dummyuser",
        "browserstack.key": "Dummykey",
        "browserstack.networkLogs": "true",
        "browserstack.localIdentifier": uuidv4(),
      },
    },
    Mochawesome: {},
  },
  include: {
    ...
  },
  mocha: {
    reporterOptions: {
      reportDir: `../../../testReport/frontend/codeceptjs-${process.env.STAGE}`,
    },
  },
  name: "e2e",
  translation: "ja-JP",
  plugins: {
    pauseOnFail: {},
    autoDelay: {
      enabled: true,
    },
    retryFailedStep: {
      enabled: true,
    },
    tryTo: {
      enabled: true,
    },
    screenshotOnFail: {
      enabled: true,
    },
    stepByStepReport: {
      enabled: true,
      output: `../../../testReport/frontend/codeceptjs-${process.env.STAGE}/stepByStepReport`,
      fullPageScreenshots: true,
    },
    BrowserstackHelper: {
      require: "codeceptjs-bshelper",
      user: "dummyuser",
      key: "Dummykey",
      shortUrl: false,
      enabled: true,
    },
  },
  bootstrap: async () => {
    await mockServer.start();
  },
  teardown: async () => {
    await mockServer.stop();
  },
};

https://codecept.discourse.group/t/local-testing-for-browser-stack/58
Or something changed 🤔

@PeterNgTr
Thank you for your reply to e's Browser.
I corrected it referring to the URL of the link you told me, but it doesn't work.
If I use a Browserstack Selenium server for E2E testing, do I need to set onlyAutomate in config?


Feature/grid

A grid component that accepts grid styles as props.

Codecov Report

Merging #303 (9ccbb29) into dev (0fb3265) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev     #303      +/-   ##
==========================================
+ Coverage   90.51%   90.55%   +0.03%
==========================================
  Files         153      154       +1
  Lines        3627     3642      +15
  Branches     1207     1208       +1
==========================================
+ Hits         3283     3298      +15
  Misses        186      186
  Partials      158      158

Impacted Files
Coverage Δ

...t-magma-dom/src/components/Accordion/Accordion.tsx
100.00% <ø> (ø)

...react-magma-dom/src/components/InputBase/index.tsx
96.72% <ø> (ø)

...kages/react-magma-dom/src/components/Grid/Grid.tsx
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


MoveCannotProceedWithResourcesNotInSucceededState even when RG does not contain any VNETs

Please update troubleshooting steps for MoveCannotProceedWithResourcesNotInSucceededState error as I'm receiving this error even neither source or destination RG contain any VNETs. Error message is pretty unhelpfull since it's provides links like below which endusers do not have access to to find out what is specififically is in progress
{
    "error": {
        "code": "ResourceMoveProviderValidationFailed",
        "message": "Resource move validation failed. Please see details. Diagnostic information: timestamp '20200725T123726Z', subscription id '<redacted>', tracking id 'bd8f8429-84e8-463d-8c49-f8843eeface3', request correlation id 'e610a788-3ccb-46bb-b9a9-1afe2bde91a8'.",
        "details": [
            {
                "code": "MoveCannotProceedWithResourcesNotInSucceededState",
                "target": "Microsoft.Network/networkInterfaces",
                "message": "One of the resources being migrated or its dependency is not in Succeeded state. Please check details for information about each resource/operation.",
                "details": [
                    {
                        "code": "AnotherOperationInProgress",
                        "message": "Another operation on this or dependent resource is in progress. To retrieve status of the operation use uri: https://eastus2.network.azure.com/subscriptions/<redacted>/providers/Microsoft.Network/locations/eastus2/operations/cce790f1-7ece-41d6-b96b-4e1c57da81df?api-version=2015-06-15."
                    },
                    {
                        "code": "AnotherOperationInProgress",
                        "message": "Another operation on this or dependent resource is in progress. To retrieve status of the operation use uri: https://eastus2.network.azure.com/subscriptions/<redacted>/providers/Microsoft.Network/locations/eastus2/operations/437ceb81-45ac-4739-8c55-59d4db550642?api-version=2015-06-15."
                    }
                ]
            }
        ]
    }
}

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

ID: 9b7d7370-2689-bb2f-4c40-dbfb88bf1740
Version Independent ID: b27c2eee-bfc2-85e7-6768-3d2bce2e95ea
Content: Troubleshoot move errors - Azure Resource Manager
Content Source: articles/azure-resource-manager/management/troubleshoot-move.md
Service: azure-resource-manager
Sub-service: management
GitHub Login: @tfitzmac
Microsoft Alias: tomfitz

@artisticcheese We are checking this and will get back to you.

@artisticcheese - are you still seeing this error?

Yes. This seems to be related to specifically moving NICs and in turn seems to be relevant to big rate of creating/removing NICs on the same VNET by other compute resources. I'm wondering if there is a known issue that for move to happen entire VNET shall be idle for certain amount of time or there is some other requirement encompassing entire VNET (not specific subnet)

@KumudD - do you happen to know if there is an issue with moving NICs to a new resource group/subscription when there are changes happening to NICs in the VNET?


Normalized cut

Note: This module makes use of R's irlba package (https://cran.r-project.org/web/packages/irlba/index.html) for fast approximate SVD for sparse matrices. It therefore requires PL/R and the irlba package to be installed first.

@yuj18 @asong92
Not my business anymore, but IMO you guys will have to first modify pdlpack.py to check for PL/R + your R library dependency before introducing PL/R modules or any other R/Python library that's not part of the standard install. If you don't, then PDLTools installs will be broken i.e. the installation will indicate all is well, until someone runs the specific UDF which will crap out complaining it couldn't find a library. The more users write UDFs that rely on PL/R (or Python libraries not part of the standard install), the more unreliable will the user experience be. There won't be one source of truth as to what in PDLTools will work out of the box. I encourage you guys to focus on more stabler and reliable releases before more features :-)

@vatsan thanks!! I'll go and do that before releasing the new version :)

@asong92
Cool. Basically pdlpack should check if:

PL/R is installed.
The R library that Jin is using is installed.
If neither of those are installed, it should print a message and not install the corresponding UDFs.

Make sure to update the doxygen docs for these modules to reflect the dependency on PL/R and the corresponding R library.

@vatsan
Done!
https://github.com/pivotalsoftware/PDLTools/commit/4f19db5495ae05c2c3d1aa09b4592f1e6456e9f5

@vatsan: You just can't help but still help us : ) Thanks!!!
I was also a bit hesitate over whether to merge this new module to the
master branch due to the same reason. But I think (hope) that the algorithm
would be quite useful for a lot of use cases; for example, @asong92 will
use it to produce high-level groupings of data for large-scale clustering
problems.
I pointed Frank to the particular SVD package I used. It's much more
scalable than the standard SVD implementation in MADlib. Hopefully we'll
have it in MADlib someday. Then we don't have to use the R package.
On Thu, Sep 8, 2016 at 2:20 AM, Srivatsan Ramanujam <
<EMAIL_ADDRESS>wrote:

@yuj18 https://github.com/yuj18 @asong92 https://github.com/asong92
Not my business anymore, but IMO you guys will have to first modify
pdlpack.py to check for PL/R + your R library dependency before introducing
PL/R modules or any other R/Python library that's not part of the standard
install. If you don't, then PDLTools installs will be broken i.e. the
installation will indicate all is well, until someone runs the specific UDF
which will crap out complaining it couldn't find a library. The more users
write UDFs that rely on PL/R (or Python libraries not part of the standard
install), the more unreliable will the user experience be. There won't be
one source of truth as to what in PDLTools will work out of the box. I
encourage you guys to focus on more stabler and reliable releases before
more features :-)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pivotalsoftware/PDLTools/pull/22#issuecomment-245335891,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABI-Fz3-eUjqdTJwYOrcQe13x5R3pKasks5qnuQ4gaJpZM4J2dGl
.

Yes, we've benchmarked irlba against MADlib long ago, they are aware of how
much better it is.
On Sep 7, 2016 6:08 PM, "Jin Yu"<EMAIL_ADDRESS>wrote:

@vatsan: You just can't help but still help us : ) Thanks!!!
I was also a bit hesitate over whether to merge this new module to the
master branch due to the same reason. But I think (hope) that the algorithm
would be quite useful for a lot of use cases; for example, @asong92 will
use it to produce high-level groupings of data for large-scale clustering
problems.
I pointed Frank to the particular SVD package I used. It's much more
scalable than the standard SVD implementation in MADlib. Hopefully we'll
have it in MADlib someday. Then we don't have to use the R package.
On Thu, Sep 8, 2016 at 2:20 AM, Srivatsan Ramanujam <
<EMAIL_ADDRESS>wrote:

@yuj18 https://github.com/yuj18 @asong92 https://github.com/asong92
Not my business anymore, but IMO you guys will have to first modify
pdlpack.py to check for PL/R + your R library dependency before
introducing
PL/R modules or any other R/Python library that's not part of the
standard
install. If you don't, then PDLTools installs will be broken i.e. the
installation will indicate all is well, until someone runs the specific
UDF
which will crap out complaining it couldn't find a library. The more
users
write UDFs that rely on PL/R (or Python libraries not part of the
standard
install), the more unreliable will the user experience be. There won't be
one source of truth as to what in PDLTools will work out of the box. I
encourage you guys to focus on more stabler and reliable releases before
more features :-)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/pivotalsoftware/PDLTools/pull/
22#issuecomment-245335891>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABI-Fz3-
eUjqdTJwYOrcQe13x5R3pKasks5qnuQ4gaJpZM4J2dGl>
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pivotalsoftware/PDLTools/pull/22#issuecomment-245465815,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAv8eSLo5al7npPT6Aozi_jCUB_AFPIWks5qn1__gaJpZM4J2dGl
.


Look into using a voting widget for docs feedback

This idea came from Ev. Some companies use voting widgets to identify the most confusing docs pages and prioritize fixes. We can consider doing this in our own docs.

I like the unobtrusive approach to a "Rate this page" component in the Jira docs:

I don't think a voting widget will ultimately get us towards the goal of "identifying the most confusing docs pages and prioritize fixes".
Something more targeted like a link that says "having trouble with these docs?" or "issues on this page?" which could direct the user to submit a more detailed response instead of getting the odd 2 star review on a page and then wondering what the real issue was.

That makes sense—a voting widget would be more helpful if we had high enough docs traffic to, say, measure the impact of docs changes over time (i.e., with tight feedback loop between docs changes and score changes) or run A/B tests on certain changes.
At the same time, there are probably ways to get visibility into how confusing/clear docs pages are that require less effort from users than the "click Improve -> open an issue" workflow.

Closing as not planned. We would need higher pageview volume to generate interesting data, and can already get feedback via the Improve the Docs button at the bottom of each page.


changes for openfl integration

Code changes to support OpenFL integration with ML Privacy Meter.

@amad-person: you can ignore changes to /openfl-tutorials/, mostly those are Python compatibility issues. I found Python 3.7. seems to solve a number of issues from the Python side.  Also, you can see in some of the places I used absolute path or quick hack to check compatibility (I apologize that code is not polished). In my opinion, the code is still a development code and the purpose of the sharing is to accelerate integration testing, so I propose you also don't worry and share unpolished code for any issues. After the integration is successful, we'll review and make things professional.

@anindya-paul understood! I will pull the changes in your PR and proceed with the integration testing.

Hi @amad-person: as Dr. Shokri mentioned yesterday that Privmeter has been significantly improved, is it a time for us to pull the code again? Could you please direct us from which branch? Also, is the new Privmeter code been integrated with the privacy_meter_strawman branch (also did you pull in my changes?), in that case, we can do a git pull again from the  privacy_meter_strawman to start integration testing again. Please let us know.

@anindya-paul I have been testing the openfl code with the latest version of ML Privacy Meter (i.e. with the new format of datasets). I will push the changes I made to mnist_attack_inmemory.py and mnist_utils.py once I fix the bugs in the federated_meminf.py script.

Hi @anindya-paul, I'm getting the following error right at the end of completing the train_privacy_meter_model task.
I turned on verbose logging according to the troubleshooting guide.
EXCEPTION : <_InactiveRpcError of RPC that terminated with:
        status = StatusCode.UNKNOWN
        details = "Exception calling application: TaskResultKey(task_name='train_privacy_meter_model', owner='one123dragons', round_number=0)"
        debug_error_string = "{"created":"@1646816617.387656621","description":"Error received from peer ipv4:<IP_ADDRESS>:53130","file":"src/core/lib/surface/call.cc",
        "file_line":1062,"grpc_message":"Exception calling application: TaskResultKey(task_name='train_privacy_meter_model', owner='one123dragons', round_number=0)","grpc_status":2}"

[17:03:47] INFO     Waiting for tasks...                                                                                collaborator.py:178
           DEBUG    Disconnecting from gRPC server at nus-System-Product-Name:53130                                                                client.py:237
           DEBUG    Connecting to gRPC at nus-System-Product-Name:53130                                                                            client.py:256
[17:03:47] DEBUG    Aggregator GetTasks function reached from collaborator one123dragons...                                                    aggregator.py:262
           DEBUG    Disconnecting from gRPC server at nus-System-Product-Name:53130                                                                client.py:237

Is a task in the plan supposed to return a "success" value (I see that there is a "waiting for tasks" log)? Or does this mean that the task has some internal error which causes an exception?

@amad-person: wanted to clarify that does the Tensor mismatch bug in federated_meminf.py get resolved? I didn't see the error you mentioned above so I guess after you fixed the bug, you got this new error. I thought as the Tensor mismatch bug was in test_privacy_meter_model, so my assumption was train_privacy_meter_model  task was completed successfully. However, from your error, it seems it didn't go to the test_privacy_meter_model task. Could you clarify?

@anindya-paul I did manage to resolve the mismatch bug, because I don't see the Tensor mismatch error anymore.
In my previous comment, I mentioned that I got the error right at the end of completing the train_privacy_meter_model task.
I had actually gotten this error at the end of the test_privacy_meter_model step. I wanted to see if the errors were still happening because of the test step. So I commented out the test_privacy_meter_modeland filter_training_weights steps in plan.yaml. I wanted to check if the train_privacy_meter_model step was being executed without errors, but it seems like something in the privacy meter steps is causing the plan to terminate?


Feature Request: Author Images

I would like a way to manually add author images. Maybe just have an "authors" folder where the name of the image file matches the author name embedded in the ebooks?

@zacjor Yeah both manual and automatic images for authors make sense.

@geek1011 have you given any consideration to how you'd like "persistent" data like this to be handled on the filesystem? I planned to implement support for fetching both author images and missing cover images from OpenLibrary (and other sources, pluggable in a manner similar to the ebook format plugins). But how would you want them stored on disk?
Would you be OK with creating subdirectories under the -tempdir path, for example, tempdir/covers/ for the album covers and thumbs, tempdir/authors/ for the author images and thumbs, tempdir/index/ for the index data, etc?
On a related note, sites like OpenLibrary usually implement rate limiting, so we wouldn't want the images to be blown away at exit and re-downloaded at every startup if the user passes -tempdir without creating it. What do you think about a -datadir option which creates the directory if it doesn't exist but NEVER deletes it on exit? Sort of a more permanent alternative to -tempdir. Thoughts?


Consider listing notable users in README

Raqote lists notable users of the library in README as an indicator of the code being complete enough to handle those workloads. It probably makes sense to do the same for resvg.
For example, I was not aware that OpenShot uses resvg.

Yes, this is a good idea, but I don't know who actually uses it. OpenShot is the main candidate.
Also, Wikimedia has plans on using it.

Should revisit this in a few years.


Create mc-sgx-dcap-types

(WIP now)

Current dependencies on/for this PR:

main

PR #128   👈

This comment was auto-generated by Graphite.

Codecov Report

Merging #128 (8f0b251) into main (4891f55) will decrease coverage by 0.04%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main     #128      +/-   ##
==========================================
- Coverage   83.13%   83.08%   -0.05%
==========================================
  Files          29       30       +1
  Lines        1500     1502       +2
==========================================
+ Hits         1247     1248       +1
- Misses        253      254       +1

Impacted Files
Coverage Δ

dcap/types/src/lib.rs
50.00% <50.00%> (ø)

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