Multiplotter hangs and starts gradually filling the RAM (vtkAxisActor.cxx:1904 errors)

Dear all,
I'm working on a python project with Visual Studio 2017, Win 10, Python 3.7 (64-bit). I only recently started using python, and only very recently started using pyvista (not expert in Qt).
I'm currently using the Multiplotter of pyvistaqt for generating multiple surface plots, and I find it really powerful if compared to the well known surface plot of matplotlib, from an aesthetic point of view but also in terms of computational efficiency.
For some reason I still can not generate a toy code trying to get the same error, so this issue may still be related to something not related to pyvista.
The error I get is something like this (the same error repeated 4 times), and it is shown after calling a pyvqt function like Multiplotter.add_mesh; or Multiplotter.showgrid:

2021-04-08 15:28:58.398 (  56.281s) [                ]       vtkAxisActor.cxx:1904   ERR| vtkAxisActor (0000029D88FD9470): Number of labels -2147483648 is invalid
ERROR:root:Number of labels -2147483648 is invalid
2021-04-08 15:28:58.412 (  56.295s) [                ]       vtkAxisActor.cxx:1904   ERR| vtkAxisActor (0000029DAB184660): Number of labels -2147483648 is invalid
ERROR:root:Number of labels -2147483648 is invalid
2021-04-08 15:28:58.428 (  56.311s) [                ]       vtkAxisActor.cxx:1904   ERR| vtkAxisActor (0000029DAB186370): Number of labels -2147483648 is invalid
ERROR:root:Number of labels -2147483648 is invalid
2021-04-08 15:28:58.443 (  56.326s) [                ]       vtkAxisActor.cxx:1904   ERR| vtkAxisActor (0000029DAB1857D0): Number of labels -2147483648 is invalid
ERROR:root:Number of labels -2147483648 is invalid

It seems to complain against something related to vtk, that I guess is used internally by pyvista.
Some details of my plots:
after defining my pvqt.MultiPlotter(...)
# iplr and iplc being positive integers
plotter = pvqt.MultiPlotter(nrows=iplr, ncols=iplc,lighting = 'light_kit')

I'm loading in every sub-window of Multiplotter a surface-plot, a schematic list of the calls is the following:
# pltx and plty being positive integers
Xnp = numpy.array(Xlist)
Ynp = numpy.array(Ylist)
Znp = numpy.array(Zlist)
Xgrid, Ygrid = numpy.meshgrid(Xnp,Ynp)
grid = pv.StructuredGrid(Xgrid, Ygrid, Znp)
_ = plotter[pltx,plty].set_background(...)
_ = plotter[pltx,plty].update_bounds_axes()
_ = plotter[pltx,plty].show_grid(color="black")
_ = plotter[pltx,plty].isometric_view()
_ = plotter[pltx,plty].add_mesh(...)
_ = plotter[pltx,plty].add_axes(...)
_ = plotter[pltx,plty].set_scale(...)
_ = plotter[pltx,plty].add_scalar_bar(...)
plotter[pltx,plty].show()

where Xlist and Ylist are standard lists for the the x,y coordinates, filled sequentially with mylist.append(..);
while Zlist is built as an numpy.empty array and filled sequentially with numpy.append()
The strange thing is that sometimes it shows the error without affecting the simulation.
Sometimes, however, after showing the error at the call of add_mesh(...), then after calling add_axes(...) it hangs and starts filling all the memory until the code crashes.
Does anyone have any helpful suggestions please? Should I do, in your opinion, some checks in the grid generated by Structuredgrid()?
Is this possibly related to a problem of memory access while computing the numerical solution to be plotted?
This is an example of my plots

Hello @ffambri and thank you for reporting this issue. To be honest, MultiPlotter is still quite young so I'm glad to hear that someone had some success with it. Also it was designed to be a relatively light interface over BackgrounPlotter so I doubt the problem comes from there. We'll see.
For now, I'll assume that the vtkAxisActor error is the one causing the abnormal memory consumption so let's try to fix this first.
I'll take some time in the weekend to reproduce something similar to your plot :+1:
Could you send the following report meanwhile?
$ python -c "import pyvista; print(pyvista.Report())"

Hello @GuillaumeFavelier
thank you for the quick and kind reply,
it appeared difficult to me to replicate this error in an external toy-code, then, I'm still not sure if it is an issue of pyvista or only limited to my workstation or related to the sanity of the input data (even if I never met this problem while using the standard plotter). The requested report is the following:
                OS : Windows
            CPU(s) : 8
           Machine : AMD64
      Architecture : 64bit
       Environment : Python
        GPU Vendor : NVIDIA Corporation
      GPU Renderer : GeForce GTX 960/PCIe/SSE2
       GPU Version : 4.5.0 NVIDIA 461.92

  Python 3.7.8 (tags/v3.7.8:4b47a5b6ba, Jun 28 2020, 08:53:46) [MSC v.1916 64
  bit (AMD64)]

           pyvista : 0.29.0
               vtk : 9.0.1
             numpy : 1.20.2
           imageio : 2.9.0
           appdirs : 1.4.4
            scooby : 0.5.6
            meshio : 4.3.11
        matplotlib : 3.4.1
         pyvistaqt : 0.3.0
             PyQt5 : 5.15.4
           IPython : 7.22.0
             scipy : 1.6.2

many thanks and best regards

ok, now I have a toy-code that gives me the same error.
I tested with three options: Multiplotter, Backgroundplotter, and the standard Plotter of pyvista. The same error is obtained on my workstation independently on the plotter.
It seems to be related to this kind of output data.
I sincerely hope it is not due to the local interaction between Windows/Visual-Studio/Python/PyVista/Qt on my machine.
I apologize if I wrote some python-blasphemy, as I wrote before I'm not an expert...
many thanks and best regards
import pyvista as pv
import pyvistaqt as pvqt
import numpy as np

def ReadArray2File(data,filename):
    import numpy as np
    data = np.loadtxt(filename, dtype="float64")
    return data

class MyNewPlotter:
    def __init__(self,iplr,iplc):
            self.nrows = iplr
            self.ncols = iplc
            self.plotter = pvqt.MultiPlotter(nrows=iplr, ncols=iplc,lighting = 'light_kit')

irow = 2
icol = 4

## option 1: MultiPlotter
MyPlotter = MyNewPlotter(irow,icol)
plotter = MyPlotter.plotter[0,0]

## option 2: Plotter
#plotter = pv.Plotter(lighting = 'light_kit')

## option 3: BackgroundPlotter
#plotter = pvqt.BackgroundPlotter(lighting = 'light_kit')

Zmyloc = np.zeros((5,5))
Xgrid = np.zeros((5,5))
Ygrid = np.zeros((5,5))

myfilename='MyZ.txt'
Zmyloc = ReadArray2File(Zmyloc,myfilename)
myfilename='MyX.txt'
Xgrid = ReadArray2File(Xgrid,myfilename)
myfilename='MyY.txt'
Ygrid = ReadArray2File(Ygrid,myfilename)

grid = pv.StructuredGrid(Xgrid, Ygrid, Zmyloc)

plotter.show_grid()
plotter.add_mesh( grid )
plotter.show()
input("Press Enter to continue...")

the txt files are the following:
MyX.txt
0.000000000000000000e+00 1.726731646460114566e-01 5.000000000000000000e-01 8.273268353539885434e-01 1.000000000000000000e+00
0.000000000000000000e+00 1.726731646460114566e-01 5.000000000000000000e-01 8.273268353539885434e-01 1.000000000000000000e+00
0.000000000000000000e+00 1.726731646460114566e-01 5.000000000000000000e-01 8.273268353539885434e-01 1.000000000000000000e+00
0.000000000000000000e+00 1.726731646460114566e-01 5.000000000000000000e-01 8.273268353539885434e-01 1.000000000000000000e+00
0.000000000000000000e+00 1.726731646460114566e-01 5.000000000000000000e-01 8.273268353539885434e-01 1.000000000000000000e+00

MyY.txt
0.000000000000000000e+00 0.000000000000000000e+00 0.000000000000000000e+00 0.000000000000000000e+00 0.000000000000000000e+00
1.726731646460114566e-01 1.726731646460114566e-01 1.726731646460114566e-01 1.726731646460114566e-01 1.726731646460114566e-01
5.000000000000000000e-01 5.000000000000000000e-01 5.000000000000000000e-01 5.000000000000000000e-01 5.000000000000000000e-01
8.273268353539885434e-01 8.273268353539885434e-01 8.273268353539885434e-01 8.273268353539885434e-01 8.273268353539885434e-01
1.000000000000000000e+00 1.000000000000000000e+00 1.000000000000000000e+00 1.000000000000000000e+00 1.000000000000000000e+00

MyZ.txt
1.000000000000000000e+00 9.999999999999997780e-01 1.000000000000000000e+00 1.000000000000000000e+00 1.000000000000000000e+00
1.000000000000000000e+00 9.999999999999997780e-01 1.000000000000000000e+00 1.000000000000000000e+00 1.000000000000000000e+00
1.000000000000000000e+00 9.999999999999997780e-01 1.000000000000000000e+00 1.000000000000000000e+00 1.000000000000000000e+00
1.000000000000000000e+00 9.999999999999997780e-01 1.000000000000000000e+00 1.000000000000000000e+00 1.000000000000000000e+00
1.000000000000000000e+00 9.999999999999997780e-01 1.000000000000000000e+00 1.000000000000000000e+00 1.000000000000000000e+00

Sorry for the delay on this and thank you for sharing your MWE, I can indeed reproduce locally :+1:

I tested with three options: Multiplotter, Backgroundplotter, and the standard Plotter of pyvista. The same error is obtained on my workstation independently on the plotter.

Because this is not directly related to PyVistaQt, I will transfer this issue to PyVista in the hope that it gets more attention/feedback.
I'll still share the result of my experiments though :).  As far I can tell, this error:
vtkAxisActor.cxx:1904   ERR| vtkAxisActor (0x55e2f9dc8650): Number of labels -2147483647 is invalid

is thrown by VTK in the SetLabels() function because it seems that labels->GetNumberOfValues() is not correct. Looking at the datasets in your MWE, especially MyZ.txt, all the values are very close to 1.0. So I would not be surprised if, considering that the expected "number of labels" for the Z axis is actually 0, there is somewhere either a division by zero or a casting issue (just a guess of course). Anyway, when I use:
plotter.show_grid(show_zaxis=False)

The script executes without any error and I don't notice any unusual memory consumption.
Last remark, when I triangulate the grid (effectively turning it into a UnstructuredGrid), I don't see any issue so maybe this type is more suited for your needs:
 grid = pv.StructuredGrid(Xgrid, Ygrid, Zmyloc).triangulate()

The other @pyvista/developers might have a different opinion on this matter.


Discussion: Generate API DBT project instead of ingesting models parsed from manifest

Current solution requires manifest.json to be present before upstream projects can be compiled. In some cases it's not convenient.
Instead I think it can be useful to generate API package from existing DBT project, that package can be used as simple DBT package.
Some details of the idea:

Public models in core project are exposed as sources
Ephemeral models are created in core_api project which just do select * from {{ source('core', 'public_model_name') }}
If public core model is versioned - several SQL files can be created to reflect model versions like select * from {{ source('core', 'public_model_name_v2') }}
dbt_project.yml is copied from core to core_api with all model configurations excluded except public models and of course name changed from core to core_api.

Do you think it can work? Do you see any issues with that?

Hi @kokorin 👋🏻 I'm going to diagram what I think you're proposing. Let me know if I have it right.
Step 1: Have a project! In this case, we'll call this project core. For simplicity, let's assume that only marts are public.
flowchart LR
  subgraph Core
    direction LR
    source_a --> stg_source__a --> mart_one
    source_b --> stg_source__b --> mart_one
    source_c --> stg_source__c --> mart_two
  end

Step 2: Programmatically create a shim project, called core_api, which defines ephemeral models that reference sources, where each source is a public model from core. Note that ephemeral models are always set to protected access, which still allows for referencing when installed as a package.
flowchart LR
  subgraph Core
    direction LR
    source_a --> stg_source__a --> mart_one
    source_b --> stg_source__b --> mart_one
    source_c --> stg_source__c --> mart_two
  end

  subgraph core_api
    direction LR
    mart_one -.-> core.mart_one --> core_api.mart_one[mart_one]
    mart_two -.-> core.mart_two --> core_api.mart_two[mart_two]
  end

Step 3: Import the core_api project as a package. In this case, let's call our downstream project consumer.
flowchart LR
  subgraph Core
    direction LR
    source_a --> stg_source__a --> mart_one
    source_b --> stg_source__b --> mart_one
    source_c --> stg_source__c --> mart_two
  end

  subgraph consumer
    subgraph core_api
      direction LR
      mart_one -.-> core.mart_one --> core_api.mart_one[mart_one]
      mart_two -.-> core.mart_two --> core_api.mart_two[mart_two]
    end

    core_api.mart_one --> mart_three
    core_api.mart_two --> mart_three
  end

As described above, I believe it should be possible to reference public marts from core within consumer without needing to have a manifest.json artifact.
This creates a few more challenges, of course: What information would one use to programmatically create a core_api (probably a manifest.json file 😁), where would this API be generated, when should generation of core_api be triggered and where should it reside, what documentation do we want to bring over, etc.
Let me know if you end up exploring this approach! It sounds interesting, and may be useful for people who cannot store artifacts in an accessible location, but can access other project's source code.


How GROUP BY time() vs GROUP BY tag works in the main query

How GROUP BY time() vs GROUP BY tag works in the main query
Steps to reproduce:

Write some data

> insert giraffes,name=chrono leaves_consumed=12<PHONE_NUMBER>000000000
> insert giraffes,name=graf leaves_consumed=8<PHONE_NUMBER>000000000
> insert giraffes,name=chrono leaves_consumed=13<PHONE_NUMBER>000000000
> insert giraffes,name=graf leaves_consumed=2<PHONE_NUMBER>000000000
> insert giraffes,name=chrono leaves_consumed=15<PHONE_NUMBER>000000000
> insert giraffes,name=graf leaves_consumed=4<PHONE_NUMBER>000000000
> insert giraffes,name=chrono leaves_consumed=13<PHONE_NUMBER>000000000
> insert giraffes,name=graf leaves_consumed=5<PHONE_NUMBER>000000000

> select * from giraffes
name: giraffes
time                 leaves_consumed name
----                 --------------- ----
2017-01-24T22:54:00Z 12              chrono
2017-01-24T22:54:00Z 8               graf
2017-01-24T22:54:05Z 13              chrono
2017-01-24T22:54:05Z 2               graf
2017-01-24T22:54:10Z 15              chrono
2017-01-24T22:54:10Z 4               graf
2017-01-24T22:54:15Z 13              chrono
2017-01-24T22:54:15Z 5               graf

Run a query with a GROUP BY tag clause in the main query

> SELECT * FROM (SELECT MAX("leaves_consumed") FROM "giraffes" WHERE time >= '2017-01-24T22:54:00Z' AND time <= '2017-01-24T22:54:15Z') GROUP BY "name"
name: giraffes
tags: name=graf
time                 max
----                 ---
2017-01-24T22:54:00Z 8

name: giraffes
tags: name=chrono
time                 max
----                 ---
2017-01-24T22:54:10Z 15

Run the same query but replace the GROUP BY tag clause with a GROUP BY time() clause

> SELECT * FROM (SELECT MAX("leaves_consumed") FROM "giraffes" WHERE time >= '2017-01-24T22:54:00Z' AND time <= '2017-01-24T22:54:15Z') GROUP BY time(10s)
ERR: error parsing query: GROUP BY requires at least one aggregate function

Actual behavior and Expected behavior
I know this is how subqueries work now. So a GROUP BY tag clause in the main query is automatically applied to the subquery, and a GROUP BY time() clause in the main query is not automatically applied to the subquery - but, that difference in behavior for the same InfluxQL clause seems strange to me.
I'd expect that the subquery is basically independent from the main query - so the system runs the subquery and then runs the main query on the data that are returned from the subquery - and no clauses are transported between the two queries. That might be naiive but that's how I thought they'd work.
Pulled from: https://github.com/influxdata/influxdb/issues/7875

I think this is an effective explanation for this behavior: https://github.com/influxdata/influxdb/issues/7875#issuecomment-275258217
I'm going to close this issue. If that explanation doesn't work, please reopen so I can clarify this behavior further.


http://slitherbots.tk/ EXPOSED

http://slitherbots.tk/ COMPELETELY COPIED THIS WITHOUT CREDIT.

It's really sad that no credits were given but at the same time not much I can do about it.

Not in their video. Uploading new exposing video soon @ bit.ly/XtrBotz

actually their vid dose give credit in the description

xd i am proven wrong, closing issue


Withdraw functionality

Looks good, I'll be bringing on a designer to trial and we'll have some new designs soon!

Still failing to withdraw, are all changes pushed @AhmedKorim ?


conda error while testing a new galaxy tour

dear all,
I used the tour builder to build the skeleton of a new tour for the rna-workbench, and I'm now enriching its content to launch FastQC over some training dataset. All steps work until I try to execute FastQC, whose run always fails with the error:
Failed to activate conda environment! Error was: /export/galaxy-central/database/job_working_directory/000/285/tool_script.sh: line 13: /export/tool_deps/_conda/bin/activate: No such file or directory Fatal error: Exit code 1 ()
Out of curiosity, I also tried to run the FastQC step within the already provided RNA-Seq tour, and it fails with the same error.
I'm testing the new tour using both chromium and firefox, and running the rna-workbench with the command:
docker run -v "/my/local/path:/export" -d -p 8080:80 quay.io/bgruening/galaxy-rna-workbench
to copy my tour.yaml inside
/my/local/path/galaxy-central/config/plugins/tours
On the other hand, if I launch the rna-workbench container with:
docker run -d -p 8080:80 quay.io/bgruening/galaxy-rna-workbench
and then try the already provided RNA-Seq tour, the FastQC step succeedes.
What am I missing?
I will report the solution in the CONTRIBUTING.md
Thank you

Can you look at /export/tool_deps/_conda/bin/activate? Is there something? Was the /my/local/path empty?

ls /my/local/path is not empty, and contains:
ftp/  galaxy-central/  nginx_upload_store/  postgresql/  shed_tools/  tool_deps/  var/
Conversely, I can't find bin/activate in the "_conda" directory within that path:
ls /my/local/path/tool_deps/_conda/bin/activate returns
ls: cannot access '/my/local/path/tool_deps/_conda/bin/activate': No such file or directory
the _conda directory contains:
envs/  LICENSE.txt*  pkgs/  share/

Can you start in an empty folder and try again?

Thanks @bgruening. Restarting from an empty folder solved the issue. FastQC now runs from both my tour and the already provided RNA-Seq tour

@bagnacan not sure what removed these files :(
Sorry, but glad that it works now.


Translator should use fallback.json

Laravel Version: 8.27
PHP Version: 8.0
Database Driver & Version: Mysql 8.0

Description:
According to documentation, you can define <locale>.json instead of a bunch of *.php files, this is really cool feature for real applications where strings translate by non-developers. Unfortunately, Translator doesn't load <fallback>.json it trying to find string in *.php instead. So you must sync <locale>.json and a bunch of *.php files 😥
Steps To Reproduce:

Create /storage/lang/en.json: {"string": "translated"}
Create /storage/lang/ru.json: {}
app()->setLocale('ru');
__('string')

Actual result:
string

Expected result
translated

This is intended. The behavior for JSON translation is that the string is the fallback itself. Therefor it cannot make use of the fallback locale.
From the docs: https://laravel.com/docs/8.x/localization#retrieving-translation-strings

Again, if the translation string does not exist, the __ function will return the translation string key that it was given.

Again, if the translation string does not exist, the __ function will return the translation string key that it was given.

@driesvints this is not true! the translator will use value from *.php file.

How is it suppose to return a value from a php file when it's not dot separated? How is your fallback locale file named and what are its contents?

@driesvints we use "dot separated" strings and they also work well with json, except this issue
Current structure:

Standard files in resources/lang/en (but they are not used at all and needed only to track changes between Laravel updates)

resources/lang/en.json

{
    "validation.accepted":"The :attribute must be accepted.",
    "validation.somethingnew":"The :attribute must be a bla bla bla."
}

resources/lang/fr.json

{
"validation.accepted": "Le champ :attribute doit être accepté.",
}

3) `app()->setLocale('fr')`

4) `__('validation.accepted')` -> `Le champ :attribute doit être accepté.` (from `fr.json`)

5) `__('validation.active_url')` -> `The :attribute is not a valid URL.` (fallback from `*.php`)

6) `__('validation.somethingnew')` -> `validation.somethingnew` -> no fallback but should be `The :attribute must be a bla bla bla.`

This is the expected behavior. It'll find the fallback in the language file.

This is the expected behavior.

This is very weird behavior :(

@LastDragon-ru indeed it is very confusing, Taylor should fix this, or at least explain is properly in the docs.


Nice to have: Infer migrations from the file name

https://github.com/Shy/migration-env-demo/issues/3

Resolved as of https://github.com/contentful-labs/continous-delivery-environments-example/pull/16


chore(package): add description

this is exposed on yarnpkg.com and npmjs.com amongst other places

Thanks!


STS support for deploy

Expected behaviour:
It should create and deploy both the Api Gateway endpoint and the Lambda function
What actually happens:
I get an AccessDenied error due to the restrictions our operations operations team imposes. Here is the output

initialising IAM role   iam.createRole  RoleName=claudia-hello-world-executor
{ [AccessDenied: User: arn:aws:iam::XXXXXXXXX:user/francisco.calle is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::XXXXXXXXX:role/claudia-hello-world-executor]
  cause:
   { [AccessDenied: User: arn:aws:iam::XXXXXXXXX:user/francisco.calle is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::XXXXXXXXX:role/claudia-hello-world-executor]
     message: 'User: arn:aws:iam::XXXXXXXXX:user/francisco.calle is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::XXXXXXXXX:role/claudia-hello-world-executor',
     code: 'AccessDenied',
     time: Thu Sep 15 2016 17:41:22 GMT+0200 (CEST),
     requestId: 'da51dd6d-7b5a-11e6-acfe-07a6295c8f0a',
     statusCode: 403,
     retryable: false,
     retryDelay: 78.65617338102311 },
  isOperational: true,
  code: 'AccessDenied',
  time: Thu Sep 15 2016 17:41:22 GMT+0200 (CEST),
  requestId: 'da51dd6d-7b5a-11e6-acfe-07a6295c8f0a',
  statusCode: 403,
  retryable: false,
  retryDelay: 78.65617338102311 }

Link to a minimal, executable project that demonstrates the problem: No need, I'm just using the hello world example
Steps to reproduce the problem:
Execute claudia --role-arn arn:aws:iam::XXXXXXXXX:role/dev-project-delegated-developer --role-arn-name corp-session-default --profile corp-session-default create --region us-east-1 --api-module index
Extra information:
I've made a repo based on another project to deploy a lambda function that illustrates how we have to make the deployments https://github.com/beeva-franciscocalle/beeva-aws-node-lambda

Hi,
neither --role-arn and --role-arn-name are claudia arguments, not sure where you got that info. You can use --role, to specify an existing role name that will be assigned to the Lambda function instead of creating a new one. That's not the STS role you're using to access AWS, it is the role assigned to your function.
You'll have to set up the STS role and role name in your profile or environment variables, and then just call claudia create.
For a detailed list of claudia create args, check out https://github.com/claudiajs/claudia/blob/master/docs/create.md

neither --role-arn and --role-arn-name are claudia arguments, not sure where you got that info
I was trying to adapt claudia to our deployment process so I modified the code just to give a try based on the module I pointed out

You'll have to set up the STS role and role name in your profile or environment variables, and then just call claudia create.
That was what I did in the beginning. I've got my credential in my ~/.aws/crendentials file and executing AWS_PROFILE=corp-session-default claudia --profile corp-session-default create --region us-east-1 --api-module index still gets the same error.

As far as I know discovered ( yesterday to be more precise 😆 ), to create the Lambda I need to pass the credentials for the role creating the elements (I'm required to use an specific role for that) so I have to do it this way:
lambda = new AWS.Lambda({
    region: config.region,
    accessKeyId: '<value of the result of assuming the role>',
    secretAccessKey: '<value of the result of assuming the role>',
    sessionToken: '<value of the result of assuming the role>'
});

Either way, I don't want to bother you - you've just done a great great job 👍  - so I'll try to hack claudia to adapt to the way our company requires.

I think you should be just able to put those in environment variables, Node.js AWS SDK will pick it up from there. You don't need to hack claudia at all, it will just use the standard Node.js AWS SDK authentication.

Yes, you're totally right. But it's not working.  I've modified cmd.js in line 47 with two console.log to print the shared info just to check if it's working. This is the output:
> args.profile: corp-session-default
> AWS.config.credentials SharedIniFileCredentials {
  expired: false,
  expireTime: null,
  accessKeyId: '---------',
  sessionToken: '---------',
  filename: '/-------/.aws/credentials',
  profile: 'corp-session-default',
  disableAssumeRole: false }

(just removed the values to clarify and security 😉 )
Apparently, everything is working just fine but still got the AccessDenied

Ok, just made it work. Still don't know it's not working but ...
This is the modifications I've made to the cmd.js to make it work:
if (args.profile) {
  AWS.config.credentials = new AWS.SharedIniFileCredentials({profile: args.profile});
}

var asumeRoleParams = {
  RoleArn: args['role-arn'], /* required */
  RoleSessionName: args['role-arn-name'], /* required */
}

var sts = new AWS.STS();
var request = sts.assumeRole(asumeRoleParams);
request
  .on('success', function(response) {
    console.log('🙈  roles assumed!');
    AWS.config.credentials.accessKeyId = response.data.Credentials.AccessKeyId;
    AWS.config.credentials.secretAccessKey = response.data.Credentials.SecretAccessKey;
    AWS.config.credentials.sessionToken = response.data.Credentials.SessionToken;

    commands[command](args, logger).then(function (result) {
      if (result) {
        console.log(JSON.stringify(result, null, 2));
      }
      process.exit();
    }, function (e) {
      console.error(e);
      process.exit(1);
    });
  })
  .on('error', function(response) {
    console.error('🔥🔥🔥🔥', response);
  })
  .send();

I know it's not pretty code but it just works. My first guess goes to the SharedIniFileCredentials that it's not retrieving the sessionToken (which is in the ~/.aws/credentials file).

i'd expect that you can use the assumed role without having to modify claudia code at all. check out this for details on how to set up the access privileges: http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html

Mee too. Really.
It's really weird because unless I explicitly assign the result of the sts.assumeRole like this
AWS.config.credentials.accessKeyId = response.data.Credentials.AccessKeyId;
AWS.config.credentials.secretAccessKey = response.data.Credentials.SecretAccessKey;
AWS.config.credentials.sessionToken = response.data.Credentials.SessionToken;

the deployment process fails (AccessDenied).

are you setting session token in the environment variables? (what is the value of your AWS_SESSION_TOKEN env variable?)

check out this for details on how to set up the access privileges:

This is my current config
$ ll ~/.aws
total 16
-rw-------  1 francisco.calle  staff    43B 29 jun 13:23 config
-rw-------  1 francisco.calle  staff   904B 16 sep 13:12 credentials

$ cat ~/.aws/credentials
[default]
aws_access_key_id = XXXXXXXXX
aws_secret_access_key =XXXXXXXXX
region = eu-west-1

[corp-session-default]
aws_access_key_id = XXXXXXXXX
aws_secret_access_key = XXXXXXXXX
aws_session_token = XXXXXXXXX
aws_security_token = XXXXXXXXX
region = eu-west-1

I also found this gem, it might help: http://docs.aws.amazon.com/cli/latest/userguide/cli-roles.html

are you setting session token in the environment variables?

yep I tried every possible way stated in the doc
1 Loaded from IAM roles for Amazon EC2 (if running on EC2),
2 Loaded from the shared credentials file (~/.aws/credentials),
3 Loaded from environment variables,
4 Loaded from a JSON file on disk,
5 Hardcoded in your application
A variation of the 5th one is the only working one so far.

I also found this gem, it might help: http://docs.aws.amazon.com/cli/latest/userguide/cli-roles.html

I'll give it a shot and keep you posted!
Again, thanks for the support.

Assuming you have IAM roles setup properly, https://docs.aws.amazon.com/cli/latest/reference/sts/assume-role.html gives most of the info. The trick is to use the AWS CLI (aws sts assume-role ...) to assume the right role, but then you have to manually stuff the credentials into environment variables.
aws sts assume-role --role-arn arn:aws:...:role/supercow --role-session-name foobar > /tmp/creds
export AWS_SECRET_ACCESS_KEY="$(cat /tmp/creds | jq '.Credentials.SecretAccessKey')"
# similar for AWS_ACCESS_KEY_ID and AWS_SESSION_TOKEN

rm -f /tmp/creds

# Claudia is now happy
claudia create ...

With ~/.aws/config similar to:
[profile claudia]
aws_access_key_id = ABC123
aws_secret_access_key = adsfger1243

[profile xaccount]
role_arn = arn:aws:...:role/supercow
source_profile = claudia

I can't easily add a command line JSON parser to my environment, but I do have node. So, I wrote a quick script to assume a role via STS and then set credentials in environment variables:
https://github.com/LukeMizuhashi/assume-aws-environment-variables
Using that, I'm able to use Claudia to manage resources in AWS Organization accounts--assuming IAM is already set up to let my CLI profile assume roles with sufficient privileges in those accounts.


Deprecate unused DisplacementProperty for removal in API 8

TL;DR: This property is unused and unimplemented, and no one I asked knew what it was supposed to represent, so I am creating this PR to either remove it for now or figure out what it is supposed to be for so I can fix it and actually implement it.
So I noticed the DisplacementProperty is currently unused and unimplemented. I tried tracking down what it was meant to do, but I could not figure it out and it seems to have either been replaced or it was decided it was not needed. After asking around it seems no one else knew exactly it was supposed to be used for either.
Currently the Javadocs aren't useful in distinguishing what it exactly is and it is in the base property package which doesn't really make sense either. For the moment with it not implemented, lacking good Javadocs, and little knowledge of what it is for, it is best to remove it.
If someone knows what it is supposed to represent, feel free tell me, and I will look into implementing it, moving it to the proper package,adding more useful Javadocs, and then update this PR for that :)
If this helps, it seems to have history as HarvestingProperty and that is what its Javadocs were copied from that until someone updated them.
**Edit: ** Changed to deprecate instead of remove, in-case anyone is currently using the property.

Can't merge this until a major api bump, need to just deprecate it for now.

Okay I have instead deprecated the property class instead of removing it. Was not exactly sure on the wording so if anyone has any suggestions, I'm open to them.


Release: new version with transactions, analyzers and views?

Hola! 👋 I saw that one month ago, this awesome commit landed: https://github.com/fMeow/arangors/commit/1be43ebef82a66ff1f203845b279a1ac8907da67
However, it doesn't seem to be released yet. 🤔 Would it be possible to release a new version with this change, please? Thank you very much for considering it! 🙂

I thougth I had already release it. I am publishing it into v0.4.6 now

I thougth I had already release it. I am publishing it into v0.4.6 now

Great, I can close this now! I was starting to get worried that this project is abandoned.
@fMeow Would you please consider an upgrade to Tokio 1.0 as well? Arangors seems to be the last dependency blocking me from upgrading other ones. Thanks! 🙂

Great, I can close this now! I was starting to get worried that this project is abandoned.
@fMeow Would you please consider an upgrade to Tokio 1.0 as well? Arangors seems to be the last dependency blocking me from upgrading other ones. Thanks! 🙂


AttributeError: 'NoneType' object has no attribute 'name'

Traceback (most recent call last):

File "/usr/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/usr/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python3.5/site-packages/flask_appbuilder/security/decorators.py", line 25, in wraps
    if self.appbuilder.sm.has_access(permission_str, self.__class__.__name__):
  File "/usr/lib/python3.5/site-packages/flask_appbuilder/security/manager.py", line 730, in has_access
    return self._has_view_access(g.user, permission_name, view_name)
  File "/usr/lib/python3.5/site-packages/flask_appbuilder/security/manager.py", line 721, in _has_view_access
    if (view_name == permission.view_menu.name) and (permission_name == permission.permission.name):
AttributeError: 'NoneType' object has no attribute 'name'

Superset version
superset 0.15.0
docker
https://github.com/amancevice/superset
not happened in caravel yet

How to reproduce? Please use the issue template when filing bugs.

running supserset init in  0.15.1 should fix this

@poppop0911 I had this error, and had to additionally remove one entry from
ab_permission_view that had a null view_menu_id, and also the corresponding
entry in ab_permission_view_role. I've been migrating up through the
versions for a while and I think it's junk left from an old version.
On Wed, 28 Dec 2016, 22:05 Maxime Beauchemin<EMAIL_ADDRESS>wrote:

Closed #1884 https://github.com/airbnb/superset/issues/1884.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/airbnb/superset/issues/1884#event-906904517, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEdFuNWHfMwo1OEQDOuKh-MO0tt5U24Sks5rMt0UgaJpZM4LWt-C
.

--

Alan Cruickshank
E<EMAIL_ADDRESS>T: +44<PHONE_NUMBER>


[Document Text Content] Support including text content character data

Adds optional params to allow for returning character data when getting text content, as well as retention of spaces by force. This allows for consumers to calculate the size and location of individual words.

What's the the problem you're trying to solve ?
Please remember that the main goal of pdf.js is to be the Firefox pdf viewer and we don't want to have any code which will be a burden for us.
So without a good reason to have such a feature in Firefox, there is no chance that we want to increase the memory use, decrease the performance when cloning the data from the worker to the main thread.

What's the the problem you're trying to solve ? Please remember that the main goal of pdf.js is to be the Firefox pdf viewer and we don't want to have any code which will be a burden for us. So without a good reason to have such a feature in Firefox, there is no chance that we want to increase the memory use, decrease the performance when cloning the data from the worker to the main thread.

The problem being solved is having access to the character data (which has already been created), when invoking the API for getDocumentContent, the param as implemented does not do extra work unless requested by the API.
The primary reason we needed this was in order to support locating the position of words in the document, in the context of the document, rather than just the full strings of text. Doing it this way was the least impactful to pdf.js, by just optionally including values that were already computed.
No additional work or memory should be really used outside of someone opting in to the extra data via the API from the worker.

Ok you're correct but as said we don't want to have to manage that stuff except if it's useful for Firefox.

There are no shortage of issues that come up when searching for a means of accessing this data from pdf.js, not counting plenty of "sorry no way to do that" deadends across stackoverflow etc. However, here are a few quickly spotted issues related to why providing these optional paramaters is a "low cost" benefit:

https://github.com/mozilla/pdf.js/issues/13047
https://github.com/mozilla/pdf.js/issues/18201
https://github.com/mozilla/pdf.js/discussions/18097
https://github.com/mozilla/pdf.js/issues/14730
https://github.com/mozilla/pdf.js/issues/12934

In my specific use case, I of course have the code of the PR here already in use via the fork; however, it became clear when searching for a means to do it without code changes that ther was no good way to accomplish this right now and that other people have often gone looking for a means to do so. Hence the desire to expose the optional paramaters for other consumers of pdf.js.
The decision here to include it or not, is not mine, but I certainly see no harm in it as it adds no burden to existing consumers (Firefox itself), and solves several types of character/glyph/word/text extraction related issues by being able to opt in to this data for getDocumentContent.

Sorry, but I agree with everything Calixte has already said above.
Please note that we want to avoid adding (from our perspective) unused and untested code, since that not only increases the code-size and overhead (by creating a bunch of empty Arrays) but also "forces" us to spend time maintaining and supporting this (potentially for years) all for a feature we don't use.

I have also struggled heavily to work around this issue and have resorted to using a fork and I am frustrated by this response.
It is a little funny to me that the README says, "PDF.js is community-driven and supported by Mozilla. Our goal is to create a general-purpose, web standards-based platform for parsing and rendering PDFs." No where in here does it say, "  the main goal of pdf.js is to be the Firefox pdf viewer". It also doesn't seem very, "community" driven to reject a small PR that adds functionality that the community has clearly had a desire for here.

@MikeVensel "community driven" doesn't mean the "community of users" drives pdf.js development, it means the "community of contributors" drives pdf.js development.
We can't just accept any PR that comes our way for small functionalities we don't care about, as the small functionalities accrue and maintenance becomes more costly, and we have a small team of core contributors.
If this PR was from an already known contributor, we would have accepted it. If you or @kariudo contribute other things we care about, we might accept such a PR more easily because we get to know you, we start to trust you, and by having help with maintenance the additional cost becomes bearable.
Also, the fact that the PR adds a new functionality without tests doesn't help: 1) it makes it easier for us to break it without noticing; 2) it makes us trust the contribution less, the absence of tests makes it look like just a quick code drop, leaving the maintenance burden to us.

@Snuffleupagus Is pdfjs-dist actively maintained ? It shows that the repository is archived and I was wondering if it's safe to use it in prod environments.  I'm sorry for asking this irrelevant question here but I don't know where else I could shoot this


User will be able to see usage instructions

So that they can refer to instructions when they forget how to use the App

User able to access User guide via command word 'HELP'.


Error while connecting to external elasticsearch instance

I'm getting "msg":"Failed to init storage builder","error":"health check timeout: no Elasticsearch node available message when I'm trying to connect to external elasticsearch instance. Database exists.
# curl http://elasticsearch.default.svc.cluster.local:9200                                                                                {
  "name" : "elasticsearch-data-1",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "vCApM7DoRoC6D7q6U8WI7Q",
  "version" : {
    "number" : "5.5.2",
    "build_hash" : "b2f0c09",
    "build_date" : "2017-08-14T12:33:14.154Z",
    "build_snapshot" : false,
    "lucene_version" : "6.6.0"
  },
  "tagline" : "You Know, for Search"
}

deployment.yml:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: jaeger-query
  labels:
    app: jaeger
    jaeger-infra: query-deployment
spec:
  replicas: 1
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: jaeger
        jaeger-infra: query-pod
    spec:
      containers:
      - image: jaegertracing/jaeger-query:latest
        name: jaeger-query
        ports:
        - containerPort: 16686
          protocol: TCP
        command:
        - "/go/bin/query-linux"
        - "--span-storage.type=elasticsearch"
        - "--es.server-urls=http://elasticsearch.default.svc.cluster.local:9200"
        - "--es.num-shards=3"
        - "--query.static-files=/go/jaeger-ui/"
        readinessProbe:
          httpGet:
            path: "/"
            port: 16686
      restartPolicy: Always

Full error output is:
{"level":"fatal","ts":1508329287.1442423,"caller":"query/main.go:92","msg":"Failed to init storage builder","error":"health check timeout: no Elasticsearch node available","errorVerbose":"no Elasticsearch node available\ngithub.com/uber/jaeger/vendor/github.com/olivere/elastic.init\n\t/home/travis/gopath/src/github.com/uber/jaeger/vendor/github.com/olivere/elastic/client.go:84\ngithub.com/uber/jaeger/pkg/es/config.init\n\t/home/travis/gopath/src/github.com/uber/jaeger/pkg/es/config/config.go:102\ngithub.com/uber/jaeger/cmd/builder.init\n\t/home/travis/gopath/src/github.com/uber/jaeger/cmd/builder/doc.go:20\nmain.init\n\t/home/travis/gopath/src/github.com/uber/jaeger/cmd/query/main.go:139\nruntime.main\n\t/home/travis/.gimme/versions/go1.7.linux.amd64/src/runtime/proc.go:172\nruntime.goexit\n\t/home/travis/.gimme/versions/go1.7.linux.amd64/src/runtime/asm_amd64.s:2086\nhealth check timeout\ngithub.com/uber/jaeger/vendor/github.com/olivere/elastic.(*Client).startupHealthcheck\n\t/home/travis/gopath/src/github.com/uber/jaeger/vendor/github.com/olivere/elastic/client.go:1067\ngithub.com/uber/jaeger/vendor/github.com/olivere/elastic.NewClient\n\t/home/travis/gopath/src/github.com/uber/jaeger/vendor/github.com/olivere/elastic/client.go:240\ngithub.com/uber/jaeger/pkg/es/config.(*Configuration).NewClient\n\t/home/travis/gopath/src/github.com/uber/jaeger/pkg/es/config/config.go:50\ngithub.com/uber/jaeger/cmd/query/app/builder.(*StorageBuilder).newESBuilder\n\t/home/travis/gopath/src/github.com/uber/jaeger/cmd/query/app/builder/elastic_search.go:24\ngithub.com/uber/jaeger/cmd/query/app/builder.NewStorageBuilder\n\t/home/travis/gopath/src/github.com/uber/jaeger/cmd/query/app/builder/storage.go:70\nmain.main.func1\n\t/home/travis/gopath/src/github.com/uber/jaeger/cmd/query/main.go:90\ngithub.com/uber/jaeger/vendor/github.com/spf13/cobra.(*Command).execute\n\t/home/travis/gopath/src/github.com/uber/jaeger/vendor/github.com/spf13/cobra/command.go:636\ngithub.com/uber/jaeger/vendor/github.com/spf13/cobra.(*Command).ExecuteC\n\t/home/travis/gopath/src/github.com/uber/jaeger/vendor/github.com/spf13/cobra/command.go:722\ngithub.com/uber/jaeger/vendor/github.com/spf13/cobra.(*Command).Execute\n\t/home/travis/gopath/src/github.com/uber/jaeger/vendor/github.com/spf13/cobra/command.go:681\nmain.main\n\t/home/travis/gopath/src/github.com/uber/jaeger/cmd/query/main.go:135\nruntime.main\n\t/home/travis/.gimme/versions/go1.7.linux.amd64/src/runtime/proc.go:183\nruntime.goexit\n\t/home/travis/.gimme/versions/go1.7.linux.amd64/src/runtime/asm_amd64.s:2086","stacktrace":"github.com/uber/jaeger/vendor/go.uber.org/zap.Stack\n\t/home/travis/gopath/src/github.com/uber/jaeger/vendor/go.uber.org/zap/field.go:191\ngithub.com/uber/jaeger/vendor/go.uber.org/zap.(*Logger).check\n\t/home/travis/gopath/src/github.com/uber/jaeger/vendor/go.uber.org/zap/logger.go:301\ngithub.com/uber/jaeger/vendor/go.uber.org/zap.(*Logger).Fatal\n\t/home/travis/gopath/src/github.com/uber/jaeger/vendor/go.uber.org/zap/logger.go:235\nmain.main.func1\n\t/home/travis/gopath/src/github.com/uber/jaeger/cmd/query/main.go:92\ngithub.com/uber/jaeger/vendor/github.com/spf13/cobra.(*Command).execute\n\t/home/travis/gopath/src/github.com/uber/jaeger/vendor/github.com/spf13/cobra/command.go:636\ngithub.com/uber/jaeger/vendor/github.com/spf13/cobra.(*Command).ExecuteC\n\t/home/travis/gopath/src/github.com/uber/jaeger/vendor/github.com/spf13/cobra/command.go:722\ngithub.com/uber/jaeger/vendor/github.com/spf13/cobra.(*Command).Execute\n\t/home/travis/gopath/src/github.com/uber/jaeger/vendor/github.com/spf13/cobra/command.go:681\nmain.main\n\t/home/travis/gopath/src/github.com/uber/jaeger/cmd/query/main.go:135"}

@afoninsky hi, did you manage to resolve this?
Are you using any open-source project to deploy ES?

@pavolloffay not yet

Are you using any open-source project to deploy ES?
I'm using custom config files to deploy ES into kubernetes cluster. Deployment is similar to https://github.com/kubernetes-spb/charts/tree/master/elasticsearch-cluster/templates

We have the same issue with docker compose:
version: "3"

services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:5.6.2
    hostname: es-loadbalancer
    networks:
      - elastic-jaeger
    ports:
      - "9200:9200"
      - "9300:9300"
    restart: on-failure
    environment:
      - "xpack.security.enabled=true"
      - "discovery.type=single-node"
      - "http.host=<IP_ADDRESS>"
      - "transport.host=<IP_ADDRESS>"
    volumes:
      - esdata:/usr/share/elasticsearch/data

  jaeger-collector:
    image: jaegertracing/jaeger-collector
    hostname: jaeger-collector
    ports:
      - "14269:14269"
      - "14268:14268"
      - "14267:14267"
      - "9411:9411"
    networks:
      - elastic-jaeger
    restart: on-failure
    environment:
      - SPAN_STORAGE_TYPE=elasticsearch
    command: [
      "--es.server-urls=http://es-loadbalancer:9200",
      "--es.username=elastic",
      "--es.password=changeme",
      "--es.num-shards=1",
      "--span-storage.type=elasticsearch",
      "--log-level=error"
    ]
    depends_on:
      - elasticsearch

volumes:
  esdata:
    driver: local

networks:
  elastic-jaeger:
    driver: bridge

$ curl -sSL -u elastic:changeme 'http://<IP_ADDRESS>:9200/_nodes/http?pretty'

{
  "_nodes" : {
    "total" : 1,
    "successful" : 1,
    "failed" : 0
  },
  "cluster_name" : "docker-cluster",
  "nodes" : {
    "S14jI0XOSDWCmgPcVyjoBA" : {
      "name" : "S14jI0X",
      "transport_address" : "<IP_ADDRESS>:9300",
      "host" : "<IP_ADDRESS>",
      "ip" : "<IP_ADDRESS>",
      "version" : "5.6.2",
      "build_hash" : "57e20f3",
      "roles" : [
        "master",
        "data",
        "ingest"
      ],
      "attributes" : {
        "ml.max_open_jobs" : "10",
        "ml.enabled" : "true"
      },
      "http" : {
        "bound_address" : [
          "<IP_ADDRESS>:9200"
        ],
        "publish_address" : "<IP_ADDRESS>:9200",
        "max_content_length_in_bytes" : 104857600
      }
    }
  }
}

Collector says:
{
"level":"fatal",
"ts":1531403934.0984566,
"caller":"collector/main.go:100",
"msg":"Failed to init storage factory",
"error":"health check timeout: no Elasticsearch node available",
"errorVerbose":"no Elasticsearch node available\ngithub.com/jaegertracing/jaeger/vendor/gopkg.in/olivere/elastic%2ev5.init\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/gopkg.in/olivere/elastic.v5/client.go:88\ngithub.com/jaegertracing/jaeger/pkg/es.init\n\t<autogenerated>:1\ngithub.com/jaegertracing/jaeger/plugin/storage/es.init\n\t<autogenerated>:1\ngithub.com/jaegertracing/jaeger/plugin/storage.init\n\t<autogenerated>:1\ngithub.com/jaegertracing/jaeger/cmd/env.init\n\t<autogenerated>:1\nmain.init\n\t<autogenerated>:1\nruntime.main\n\t/home/travis/.gimme/versions/go1.10.linux.amd64/src/runtime/proc.go:186\nruntime.goexit\n\t/home/travis/.gimme/versions/go1.10.linux.amd64/src/runtime/asm_amd64.s:2361\nhealth check timeout\ngithub.com/jaegertracing/jaeger/vendor/gopkg.in/olivere/elastic%2ev5.(*Client).startupHealthcheck\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/gopkg.in/olivere/elastic.v5/client.go:1114\ngithub.com/jaegertracing/jaeger/vendor/gopkg.in/olivere/elastic%2ev5.NewClient\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/gopkg.in/olivere/elastic.v5/client.go:244\ngithub.com/jaegertracing/jaeger/pkg/es/config.(*Configuration).NewClient\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/pkg/es/config/config.go:59\ngithub.com/jaegertracing/jaeger/plugin/storage/es.(*Factory).Initialize\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/plugin/storage/es/factory.go:65\ngithub.com/jaegertracing/jaeger/plugin/storage.(*Factory).Initialize\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/plugin/storage/factory.go:90\nmain.main.func1\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/main.go:99\ngithub.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).execute\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:698\ngithub.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).ExecuteC\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:783\ngithub.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).Execute\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:736\nmain.main\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/main.go:190\nruntime.main\n\t/home/travis/.gimme/versions/go1.10.linux.amd64/src/runtime/proc.go:198\nruntime.goexit\n\t/home/travis/.gimme/versions/go1.10.linux.amd64/src/runtime/asm_amd64.s:2361",
"stacktrace":"main.main.func1\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/main.go:100\ngithub.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).execute\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:698\ngithub.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).ExecuteC\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:783\ngithub.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra.(*Command).Execute\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/vendor/github.com/spf13/cobra/command.go:736\nmain.main\n\t/home/travis/gopath/src/github.com/jaegertracing/jaeger/cmd/collector/main.go:190\nruntime.main\n\t/home/travis/.gimme/versions/go1.10.linux.amd64/src/runtime/proc.go:198"
}


Worked great first time but second time

'C:\agent_work\2\s\ghpages' already exists and is not an empty directory.
can work around by deleting the files before but would be nice if the script did it for me :)

Thanks for letting me know - I'll get that cleaned up. Not seen the issue but the fix seems pretty obvious!


Metrics address is not working with <IP_ADDRESS>

File: config/daemon/index.md
Hello Team,
When I added the below json in to daemon.json. metrics is not working
{
"metrics-addr" : "<IP_ADDRESS>:9323",
"experimental" : true
}
I had to change the <IP_ADDRESS> to <IP_ADDRESS> to have it working. Can you check if this need to be updated here?
{
"metrics-addr" : "<IP_ADDRESS>:9323",
"experimental" : true
}

Thanks for sharing this issue. I don't see that info in that topic. As this issue is old, some context may have changed. It is located in https://docs.docker.com/config/daemon/prometheus/ and https://docs.docker.com/engine/reference/commandline/dockerd/#miscellaneous-options
There is another ticket for with that info. Closing this in favor of https://github.com/docker/docker.github.io/issues/13010


Added scalafmt plugin and .scalafmt.conf file.

Run in sbt with the command

scalafmt
for compile sources, and
test:scalafmt
for test sources

Check compile sources for good formatting with

scalafmt::test
and check test sources for good formatting with
test:scalafmt::test

@nkohen Thinking about this more, I think we should wait to merge this. We are going to have some crazy merge conflicts with some closed source stuff that will be open sourced soonish. We probably want to wait until that closed source stuff gets merged into master. We can continue on #171 without this right?


Lack of documentation

Hi!
Cool tool, but can you add some documentation?
In particular, I'm wondering where this can be used and it would be nice to get some use cases.

Hi,
did not see your comment, sorry.
I am still very deep in development and not yet done. That is why there isn't any dcumentation yet. I will deliver this within the readme or similar once this has a useable status.

@victorizbitskiy I just wrote some documentation now. Could please give some feedback if that is sufficient or in what details are missing?

@BiberM thanks, looks good to me 👍


enable-managed-identity true causes 'ApiManagementServiceResource' object does not support item assignment

This is autogenerated. Please review and update as needed.
Describe the bug
When running az apim create with --enabled-managed-identity true you get the below error
Command Name
az apim create
Errors:
'ApiManagementServiceResource' object does not support item assignment
Traceback (most recent call last):
Temp\pip-install-z6h9b3s8\knack\knack\cli.py, ln 215, in invoke
azure\cli\core\commands\__init__.py, ln 631, in execute
azure\cli\core\commands\__init__.py, ln 695, in _run_jobs_serially
azure\cli\core\commands\__init__.py, ln 688, in _run_job
Local\Temp\pip-install-z6h9b3s8\six\six.py, ln 703, in reraise
azure\cli\core\commands\__init__.py, ln 665, in _run_job
azure\cli\core\commands\__init__.py, ln 324, in __call__
azure-cli-core\azure\cli\core\__init__.py, ln 574, in default_command_handler
azure\cli\command_modules\apim\custom.py, ln 31, in create_apim
TypeError: 'ApiManagementServiceResource' object does not support item assignment

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az apim create --name "any" --publisher-email<EMAIL_ADDRESS>--publisher-name "any" -g "any" --enable-managed-identity true

Expected Behavior
Should deploy a new APIM instance
NOTE: Using az apim update --enable-managed-identity true ... doesn't return error
Environment Summary
Windows-10-10.0.18362-SP0
Python 3.6.6
Installer: MSI

azure-cli 2.4.0 *

Additional Context

apim

Just experienced the same issue, would appreciate an update on this. Thanks

About a year later and I'm still getting this error. Get on it!
 I need to create the APIM resource with custom host names where certs are sourced from Key Vault, but Key Vault needs access policy to the APIM instance's Managed Identity. My attempt to circumvent was Azure CLI to create the APIM instance and Key Vault access policy before the ARM template runs which does the proper configuration (source of truth).  I try to love Azure because I've been MSFT stack my whole career, but the automation tooling is such a pitiful second-class citizen, evidenced by lack of attention to documented "features" that are so blatantly broken for so long. I need to move on so guess I'm stuck doing some manual configuration. 👎

This error still happens 👎 👎

API management service team should take a look

@jt000 Apologies for the late reply. I was able to run the below command in azure cloud shell and it worked fine.

***/Azure:~$ az apim create --name MyApim -g MyRG -l eastus --publisher-email<EMAIL_ADDRESS>--publisher-name Contoso --enable-managed-identity true

More Info here. Could you please test the same using most recent version of AzCLI and let me know if you face any issues ? Awaiting your reply.


[Feature Request] Allow listening to videos in the background without IINA

Hello,
As we talked about adding support to play videos in the background, aka background audio, without the need of IINA. One approach would be implementing our own version of AVPlayer, which includes having to implement a decoder for webm + VP9 since AVFoundation has no implementation of that.
Another way we could use is using VLCKit which would help.
However, I was thinking we could use YouTubePlayerKit and have a video play but hide the window to  simulate "background audio" playback.
These are just ideas on how we could implement.

However, I was thinking we could use YouTubePlayerKit and have a video play but hide the window to simulate "background audio" playback.

if the system resource usage is minimal this might be a valid option! Not sure how macOS will handle the "hidden view" playing audio. Will it still render the video and use GPU? or... Further experimentation is required :)
VLCKit would be ideal, as that'll take the least amount of resources. IINA doesn't use a lot of resource but is definitely annoying (clunky) for music playback.
youtube-dl --get-url -f 251 "https://www.youtube.com/watch?v=sAn7baRbhx4"
Here's an example of extracting the audio url
I tried playing the output url using..

IINA ✅
ffplay✅
QuickTime ❌
vlc ✅
safari ❌
firefox ✅

Wait IINA's music player isn't that bad! Only if there was a way to toggle this when invoking the command!


Travis automatic build

Add Travis automatic building / testing (because we care about cross-platform compatibility).

I've pushed my current work as feature/travis while encountered #25.


ci: formatting and linting

Create a GitHub action to check formatting and linting using prettier on all PRs to main branch
Closes #14

Here is an implementation of attempting to fetch node_modules from cache. If it doesn't exist, download dependencies, run a job, then put node_modules into the cache. But restoring the cache and creating the cache seems to have quite a bit of boilerplate code. Im not sure if I like it. Thoughts @humphd?
I've only implemented it for one job for now. If we like this, I'll do it for the other jobs as well

CI seems to be working well. We cache the node_modules whenever possible, and restore it from cache when needed. We will only reinstall node_modules if package.lock.json changes.
attempt 1 is ran with a regenerated package.lock, and reinstalls the node_modules
attempt 2 fetches node modules from cache (cached from previous job).
Also note CI currently fails with the latest code from main. The typecheck job currently is at a failing state.

Also note CI currently fails with the latest code from main. The typecheck job currently is at a failing state.

I left a note for @Eakam1007 to fix this in https://github.com/Seneca-CDOT/starchart/issues/25#issuecomment-1409618758

Quick question: Are we only supporting Node version 18?

Quick question: Are we only supporting Node version 18?

I would, since it's LTS

Changed the job name. Seems like the previous review is stale now


Fix clang-tidy warnings due to semicolon after mono module macros

This also enforces them to end with a semicolon.

Thanks!


Add python periphery pip lib

This PR adds support for the python-periphery library, a 1.x-quality library for interacting with GPIO, I2C and others:

python-periphery is a pure Python library for GPIO, LED, PWM, SPI, I2C, MMIO, and Serial peripheral I/O interface access in userspace Linux. It is useful in embedded Linux environments (including Raspberry Pi, BeagleBone, etc. platforms) for interfacing with external peripherals. python-periphery is compatible with Python 2 and Python 3, is written in pure Python, and is MIT licensed.

can you please add the -pip suffix to the key name if this package is only available via pip ? Thanks!

Thanks!


Unable to add BREAD to table

Laravel version
9.52.16
PHP version
8.3.3-1+0~20240216.17+debian10~1.gbp87e37b
Voyager version
1.7
Database
MariaDB version 10.3.39
Description
I'm trying to create a simple project but got stuck on the first step as follows.

Installed a brand new Laravel
Installed a brand new Voyager
Created a table named Test with 3 columns: id, Test1, Test2. Table created as project.Test
Add BREAD with default settings and save.
Try to browse newly created BREAD but all I've got is 500 Error as bellow:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'project.tests' doesn't exist (SQL: select Test.* from testsorder bycreated_atdesc) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'project.tests' doesn't exist (SQL: selectTest.* from testsorder bycreated_atdesc) at /home/project/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760)

As I undestand the table name is created as singular but the browse BREAD is looking for the plural name of the table!
Steps to reproduce
I'm trying to create a simple project but got stuck on the first step as follows.

Installed a brand new Laravel
Installed a brand new Voyager
Created a table named Test with 3 columns: id, Test1, Test2. Table created as project.Test
Add BREAD with default settings and save.
Try to browse newly created BREAD but all I've got is 500 Error as bellow:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'project.tests' doesn't exist (SQL: select Test.* from testsorder bycreated_atdesc) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'project.tests' doesn't exist (SQL: selectTest.* from testsorder bycreated_atdesc) at /home/project/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760)

Expected behavior
Browse the BREAD
Screenshots

Additional context
No response

Change the database table to "tests".  You want to make your table names plural in most cases.

Change the database table to "tests". You want to make your table names plural in most cases.

I've created(also renamed) several times the table with name Tests(plural form) but all I got was the same error when browsing Bread:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'project.tests' doesn't exist (SQL: select Tests.* from testsorder bycreated_atdesc) {"userId":1,"exception":"[object] (Illuminate\\Database\\QueryException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'project.tests' doesn't exist (SQL: selectTests.* from testsorder bycreated_atdesc) at /home/project/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:760)

I've figured out what the issue was as follows:

The table needs to be in plural form like tests
The table need to contain the fields: created_at, updated_at, modified_at

Hello,
Tables needs names in all small letters and plural.
Kind regards
John

manually create model for Test (model name) ** better to reallocate model directly inside app folder App
i.e: Modal Name = 'App\Models*Test*'
php artisan make:model Test
add below codes on Test Model
`
class Test extends Model
{
protected $primaryKey='id';
use HasFactory;
public $table= 'Test';
public $timestamps=false;

`


McGroupID wrong bit mask format

According to ts005-2-0-0-remote-multicast-setup the McGroupID is 2 bit,
currently it looks like the stack is handling it as 4bit.
https://github.com/Lora-net/SWL2001/blob/ffca22633d111ef2874fa7c2f35498a57d87f3f0/lbm_lib/smtc_modem_core/lorawan_packages/fragmented_data_block_transport/v1.0.0/lorawan_fragmentation_package_v1.0.0.c#L555C1-L556C98
Here is my suggested fix.
frag_session_data_tmp.frag_group_data.frag_session.mc_group_bit_mask = 1 <<
                (fragmentation_package_rx_buffer[fragmentation_package_rx_buffer_index + 1] & 0x3);

Same for version 2.
I also have a question about the purpose of the function after it on line 718:
if( is_received_on_multicast_window( fragmentation_package_rx_window ) == false )
{
    accept_data = true;
}

this is set to false, if it was set to true the previous code is redunent and why is it false?

McGroupID is 2bits but here it is a mc_group_bit_mask which is on 4 bits.  the ts005-2-0-0-remote-multicast-setup page 8 explains it in detail.

you refere to the group status 4.2
this is for 4.3 Multicast Group Setup Commands, page 9

this piece of code implements the "LoRaWAN Fragmented Data Block Transport Specification"(TS004), for the specific cmd :  FragSessionSetupReq (describe page 8 ;-)).

McGroupID in the current release is not translated to a mask mc_group_bit_mask .
If McGroupID is 0 with this code:
frag_session_data_tmp.frag_group_data.frag_session.mc_group_bit_mask =
             fragmentation_package_rx_buffer[fragmentation_package_rx_buffer_index + 1] & 0xF;

Follow up state checks will fail, like this if statement in the same file on line 675:
if( ( frag_session_data[frag_index].frag_group_data.frag_session.mc_group_bit_mask & 0x1 ) == 0x1 )
            {
                if( ( fragmentation_package_rx_window == RECEIVE_ON_RXB_MC_GRP0 ) ||
                    ( fragmentation_package_rx_window == RECEIVE_ON_RXC_MC_GRP0 ) )
                {
                    accept_data = true;
                }
            }

That's why I suggest to change it to:
frag_session_data_tmp.frag_group_data.frag_session.mc_group_bit_mask = 1 <<
                (fragmentation_package_rx_buffer[fragmentation_package_rx_buffer_index + 1] & 0x3);

let me keep your example, if  McGroupID is 0 then .mc_group_bit_mask = 1 and so   'accept_data = true ':
if( ( frag_session_data[frag_index].frag_group_data.frag_session.mc_group_bit_mask & 0x1 ) == 0x1 )             {                 if( ( fragmentation_package_rx_window == RECEIVE_ON_RXB_MC_GRP0 ) ||                     ( fragmentation_package_rx_window == RECEIVE_ON_RXC_MC_GRP0 ) )                 {                     accept_data = true;                 }             }


install kentayamada-dev / instagram-clone

Good job ! can you tell me how to install it ?

Hey @devlamine
I am using Visual Studio Code Dev Containers to build　development environment.
All you have to do is open this repository in dev container.


Bad transcription quality on other languages than english

waiting for Astro to collect more insight.

no response yet + there're some limits in the other language models, closing for now.

Hi. I've talked with @kodjima33 today and explained him my experience with the speech to text api, as a native Romanian speaker.
Currently, Omi's audio codec is Opus which is a lossy codec that can introduce compression artifacts that might confuse the speech recognition model, especially for unfamiliar languages.
I've tested the PCM codec with Deepgram and the transcription is much better than the current one, also able to do code switching (english words in a Romanian phrase)
I suggest that when users select a language other than English (maybe Spanish and German too) in the app to change the hardware audio codec to PCM.
cc @beastoin

thanks @gabimoncha, fyi:
1/ opus, lossy codec, with its compression there's might be some loss but not much ?
2/ we feed STT services with pcm not opus; so it's should be no difference
anw, will let you know.

I've read in the docs you still support PCM. Is it possible to write this characteristic through bluetooth?
https://docs.omi.me/developer/Protocol#codec-type


can't set value through injectJavascript in prod mode, but in dev mode it works

Bug description:
I tried to set window.ReactNativeApp = 'test'; on web and I was able to accomplish it by using injectJavascript in development mode in android.
But I tested it on production(and also used APK) mode on expo it didn't work.

To Reproduce:
useEffect(() => {
    if (!location) {
      return
    }
    const INJECT_LOCATION = /*javascript*/ `
      (function() {
        window.ReactNativeApp = 'test';
      })();
    `
    webViewRef?.current?.injectJavaScript(INJECT_LOCATION)
  }, [location])

  return (
    <WebView
      ref={webViewRef}
      injectedJavaScriptBeforeContentLoaded={`
        window.onerror = function(message, sourcefile, lineno, colno, error) {
          alert("Message: " + message + " - Source: " + sourcefile + " Line: " + lineno + ":" + colno);
          return true;
        };
        true;
      `}
      style={styles.container}
      source={{ uri: 'http://<IP_ADDRESS>:8000/main' }}
      onMessage={(event) => {}}
    />
  )

Expected behavior:
Should pass window.ReactNativeApp through injectJavascript in production mode
Screenshots/Videos:

Environment:

OS: mac monterey
OS version: 12.0.1
react-native version:"0.64.3",
react-native-webview version:"11.13.0"

    setTimeout(() => {
      webViewRef?.current?.injectJavaScript(INJECT_LOCATION)
    }, 3000)

setTimeout is the key!!


Change visibility of token factory to public

The visibility of the token factory has been changed to public. Consumers can now use the token factory to create, cache, and refresh app and installation tokens.

Codecov Report

Merging #51 (f7cff76) into main (c2bdfac) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #51   +/-   ##
=======================================
  Coverage   95.14%   95.14%
=======================================
  Files          27       27
  Lines         638      638
=======================================
  Hits          607      607
  Misses         31       31

Impacted Files
Coverage Δ

src/github/token.rs
96.25% <ø> (ø)

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 c2bdfac...f7cff76. Read the comment docs.


[#144690295] Add new log parsers

What
We'd like to parse all fields from all access logs that appear in logsearch.
How to review

Code review
Check and memorise current state of nginx logs
Deploy from this branch
Interact with UAA for instance
Re-check the logs and note the differences in extracted fields

Who can review
Neither @saliceti nor myself.

We'll have to remember to refresh mapping on all envs after deploy to avoid:

There were 2 problems:

There was more IPs in the CC x-forwarded-for field. We originally planed for only one
For some reason the UAA log had the HTTP auth user information. We now capture it properly

Ok, looks good now. I can't see any unparsed log lines after re-deployment.


[AMHACK]No proper message when saving the content in registry

Description:
No proper message when saving the content in registry
Suggested Labels:
Suggested Assignees:
Affected Product Version:
APIM 2.1.0
OS, DB, other environment details and versions:
OS-ubuntu 14.04
DB-Mssql 14
Userstore-JDBC
20th WUM updated pack
Steps to reproduce:
Edit the external api store.xml file in registry.
When clicking save content button
No proper UI message to say whether contain is saved or not

Closing the issue as this is older than 3 years. Please reopen if the issue is valid still.


Terminal Profiles not showing up properly

Version: 1.55.2 (user setup)
Commit: 3c4e3df9e89829dce27b7b5c24508306b151f30d
Date: 2021-04-13T09:37:00.942Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT ia32 6.1.7601
Steps to Reproduce:

Don't know

Does this issue occur when all extensions are disabled?: Don't know, probably yes
Actual Problem
Well, I have set up a few profiles in my settings(screenshot below), but in the integrated terminal, different profiles show up(screenshot below)! Please fix this!
Screenshots

P.S. - The terminal profiles feature is awesome BTW! :joy:

Hi thanks for the issue. When you pls take a screenshot of the resultant screen when you click Select Default Profile?
It looks like everything is showing up there correctly except for Git Bash. Are you sure the path you provided to that is correct?

Hi thanks for the issue. When you pls take a screenshot of the resultant screen when you click Select Default Profile?
Sure, I'll do that!

It looks like everything is showing up there correctly except for Git Bash. Are you sure the path you provided to that is correct?
Yes, only Git Bash isn't showing up. And , yes the path is correct.

Hi thanks for the issue. When you pls take a screenshot of the resultant screen when you click Select Default Profile?

We're not detecting that your path to git bash is correct. I'd try uninstalling and reinstalling that.

But how is that is that possible have a look at the first screenshot below profiles. I have got bash set up as default. And it works, with same path.

????

We've made a lot of changes in this area recently, could you try the Insiders build to see if it still happens?


[Hold][WIP] Feature/File Detail Page Porting File Editor [EOSF-96]

❗ On Hold
Purpose
Match the existing behavior on the file detail page, but use ember-osf addon.  Majority of file-detail page made with file components from ember-osf, very similar to behavior @aaxelb demonstrated in ember dummy app.  File editor functionality will need to be a component similar to existing filepage/editor.js.
Changes
For this PR, navigating to /<file_guid>/ or /file_id/ will render the file-detail page containing ember components.  node guids will not work.  This is for demonstration only - routes will need to be changed.

[x] Mimic ember-osf dummy app file detail page using components from ember-osf addon
[x] Load both node and file on file-detail page (node needed for file browser widget to render).  Currently using RSVP.hash.  Defining in setupController not working.
[x] Get file browser working
[x] Get tags widget working (jquery.tagsinput needed to be in bower.json file for website-ember - thanks @abought)
[ ] Routing (for demonstration only, I have commented out the GUID flask route and am using the ember guid route here. Needs to change. File guids should be handled by Ember app, all other guid's (node, etc) handled by Flask app.)
[ ] Add file editing functionality (making ember component similar to filepage/editor.js
[ ] Comment pane matching OSF
[ ] File navbar matching OSF
[ ] Styling

Side effects
Dependent on the following PR's:

Node relationship on files https://github.com/CenterForOpenScience/osf.io/pull/5967
node added to file model https://github.com/CenterForOpenScience/ember-osf/pull/100

Current Appearance of Page

Ticket
https://openscience.atlassian.net/browse/EOSF-96

In no way relevant at this moment, but I'm leaving a note here so we can remember some day...
Recently, various aspects of ember-osf have changed.
In particular, usages of NodeActionsMixin and TaggableMixin have changed in ways that could affect widgets on this page. This affects call signatures, and return values of, various actions on these mixins, including for tagging.


Add section for JS Auto Injection

Two accompanying photos to be added to ./media/app-insights-monitor-performance-live-website-now

@beckylino,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@beckylino : Thanks for your contribution to the Azure documentation! The author, @alancameronwills, has been notified to review your proposed change.

Thanks, Becky!
We'll move this to the Azure release branch.
#please-close


⚠ Feedaty widget has degraded performance

In d8d214d, Feedaty widget (https://widget.feedaty.com/public/js/feedaty.js?merchant=10213975&style_ver=2021&data-sku=36263) experienced degraded performance:

HTTP code: 200
Response time: 2609 ms

Resolved: Feedaty widget performance has improved in 5b04469 after 11 minutes.


Conversion from TensorFlow model to ONNX using winml tools

I'm submitting a…

I am opening this issue regarding conversion of a TensorFlow model to ONNX format, couldn't find any open issue here.

The example defined in this Microsoft docs page is a bit incomplete, for anyone new attempting to use this would not get the desired result.

I have made minor changes and made it work, it can be found here

Please correct the documentation on Microsoft docs page.

Current behavior

In the given example, necessary imports are missing along with some of the mandatory parameters have not been set which results in an error when converting a TensorFlow frozen model to an onnx model.

Expected behavior

On providing the path to frozen model, model output(tensor names), path to save onnx model, the example should generate a .onxx model file.
Minimal reproduction of the problem with instructions

Copy-paste the example in a jupyter notebook, provide the path to frozen model and run it.
Environment
Windows Build Number:
Not using a Windows machine. Since this is a Python example, it is expected to work on any OS provided the required dependencies are met. I have installed winmltools from this link and by fixing the above mentioned issues, I have made it work.
App min and target version:
OS Version (Server, IoT Core, Desktop, etc):
Graphics Driver version:

NVIDIA GeForce 940MX (Maxwell Architecture), 4GB vRAM
NVIDIA 410

DxDiag:
WinMLTools specific:
- Source training framework: (e.g. CoreML, Scikit-learn, …)
- WinMLTools version
Visual Studio

[ ] 2017 (version: )
[ ] 2017 Preview (version: )

Hi @anujonthemove. Thanks for pointing out the missing imports! I will ask around to fix the documentation to update those headers.

I'm closing this issue, but feel free to reopen if more assistance is needed.


Fix for GTFS sensor

Description:
Some bus lines only runs during morning or afternoon, it creates an error when starting the sensor after the last bus as the sensor is only looking for bus for the current day. This fix will avoid this by returning 0 with a info message when no bus has been found.
Related issue (if applicable): fixes #3853
Checklist:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

Nice 🐬


Gas usage estimation per test case

Maybe by number of steps?

Duplicate of https://github.com/software-mansion/protostar/issues/273


Fix typo in TUTORIAL.md

I noticed this when reading through the tutorial. It looks like this definition of the id function dropped an x.

Yup that's right, thanks!


Backup-fetch does not recreate pg_hba.conf or postgresql.conf?

Hi,
This is more of a question than an issue, but here goes:
I am running WAL-E in a Docker container built on postgres:9.4. It's awesome and only just last week saved me during a deploy issue. During my restore sequence (which I got from this very helpful gist, one of the first steps is to delete my $PGDATA directory, since backup-fetch recreates it. However, the pg_hba.conf and postgresql.conf files, which live there by default, do not get recreated. Do most people keep those configs in a different place? Are there any others that should also be kept outside of $PGDATA?
Thanks for this great tool!

I always store theses files under /etc there are not data, it's not a job for wal-e to restore configuration options.

You just keep these in /etc/postgres? Any others?

Yes, to be exact one dir per cluster, for example with 3 clusters on one of my host :

/etc/postgresql/9.5/main/
/etc/postgresql/9.6/main/
/etc/postgresql/9.6/citus/

Cool, thank you for your reply, I'll update my setup this way.

Hi, I'm sorry to bother you again, but how do I tell postgres to look in a different location for those files? I'm using the postgres:9.4 image in Docker if it makes a difference. Thanks!


refresh token must be passed in or set as part of setAccessToken

The idea is to use drive as storage but I get that error from the token:
refresh token must be passed in or set as part of setAccessToken
`<?php
$this->folder_id = env('GOOGLE_DRIVE_FOLDER_ID');
$this->ClientId  = env('GOOGLE_DRIVE_CLIENT_ID');
$this->ClientSecret = env('GOOGLE_DRIVE_CLIENT_SECRET');
$this->refreshToken = env('GOOGLE_DRIVE_REFRESH_TOKEN');
    $this->client = new \Google_Client();
    $this->client->setClientId($this->ClientId);
    $this->client->setClientSecret($this->ClientSecret);
    $this->client->refreshToken($this->refreshToken);
    $this->service = new `\Google_Service_Drive($this->client);`

?>`

Probably the value of the refresh token is incorrect.


Ensure change event is still fired

My app uses the change event to trigger a save.  If the user typed a color, things would still work.  Mousing a color, though, would fail to save the change.  This fixes it.

My app also uses the form change event to trigger save and current master isn't triggering that change.
Seems to me like this was lost in this update:
https://github.com/claviska/jquery-miniColors/commit/00a59f67199ccd695dd3e88e062fde709ee9c903

I see what the problem is now—you're attaching the change event to the INPUT itself instead of specifying it during initialization.  This is a valid point, so I'm creating a new issue so I can work on it.  Please follow the new issue to keep track of it.


Add support for local xiki

Xiki would be nice if you can get it working.
It could be used for quick edits of testing table data as well as a live resource for quick reference in the test environment.
See more about xiki here http://xiki.org/

New version #155 will allow any ansible galaxy playbooks.


Automated cherry pick of #1706: lbagent: deploy: 仓库配置文件默认sslverify=0

Cherry pick of #1706 on release/2.11.0.
#1706: lbagent: deploy: 仓库配置文件默认sslverify=0

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.11.0@cb78a62). Click here to learn what that means.
The diff coverage is 0%.

@@               Coverage Diff                @@
##             release/2.11.0   #1707   +/-   ##
================================================
  Coverage                  ?    7.7%
================================================
  Files                     ?     411
  Lines                     ?   62835
  Branches                  ?       0
================================================
  Hits                      ?    4844
  Misses                    ?   57584
  Partials                  ?     407

Flag
Coverage Δ

#aFlag
7.7% <0%> (?)

Impacted Files
Coverage Δ

pkg/compute/models/loadbalanceragents_deploy.go
0.51% <0%> (ø)

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 cb78a62...90eb4af. Read the comment docs.

/lgtm
/approve


Nullable.GetValueOrDefault same as null forgiving operator

The null forgiving operator does not work for Nullable<T> types, and Nullable<T>.GetValueOrDefault is suggested to ignore the null case with Nullable<T>. I suggest introducing the same tracking and suppression mechanisms for Nullable<T>.GetValueOrDefault as introduced for the null forgiving operator "!".

That would be a C# feature, it's not related to this project


Init node conv1/kernel/Assign doesn't exist in graph when freezing a model

Hey,
I'm getting this error:
Init node conv1/kernel/Assign doesn't exist in graph
When trying to freeze a model using your library and guide.
This happens even on the asset/yolo-model...
Any idea what might be the issue?
I'm using tensorflow with GPU..

This error does not affect the model freeze

@yakeer  I have the same error message here, but I have tested that the generated tflite model does not have a loss of precision.


Make tensorstore optional

Make tensorstore an optional dependency, allowing zarpaint to work without it.
This is necessary for now to get a conda-forge package.

Remaining failures are caused by #45, so I'm merging this and will fix that in a subsequent PR.


DG Architecture + Getting Started

Codecov Report

Merging #231 (b8f396c) into master (4e9ee4d) will decrease coverage by 1.05%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #231      +/-   ##
============================================
- Coverage     72.57%   71.51%   -1.06%
+ Complexity      724      603     -121
============================================
  Files           122      104      -18
  Lines          2122     1773     -349
  Branches        262      206      -56
============================================
- Hits           1540     1268     -272
+ Misses          506      440      -66
+ Partials         76       65      -11

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/seedu/address/model/person/Name.java
0.00% <0.00%> (-80.00%)
0.00% <0.00%> (-6.00%)

...rc/main/java/seedu/address/logic/LogicManager.java
76.19% <0.00%> (-1.09%)
4.00% <0.00%> (-1.00%)

...in/java/seedu/address/logic/parser/ParserUtil.java
97.67% <0.00%> (-0.74%)
16.00% <0.00%> (-8.00%)

src/main/java/seedu/address/MainApp.java
0.00% <0.00%> (ø)
0.00% <0.00%> (ø%)

src/main/java/seedu/address/model/Model.java
100.00% <0.00%> (ø)
2.00% <0.00%> (-1.00%)

src/main/java/seedu/address/ui/MainWindow.java
0.00% <0.00%> (ø)
0.00% <0.00%> (ø%)

...ain/java/seedu/address/storage/StorageManager.java
94.44% <0.00%> (ø)
9.00% <0.00%> (ø%)

.../java/seedu/address/model/util/SampleDataUtil.java
20.00% <0.00%> (ø)
1.00% <0.00%> (ø%)

...eedu/address/logic/parser/DeleteCommandParser.java

...ss/model/person/NameContainsKeywordsPredicate.java

... and 34 more

Continue to review full report at Codecov.

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


[VC] Adding vn-agent deployment feature

These changes make it so that you can use the vn-agent as a Kubernetes deployment when not using the direct to Kubelet proxy mechanism. All you need to do is deploy the vn-agent as a Deployment, then you create a new ClusterIP Service (this could potentially also be a LoadBalancer later to support the experimental scheduler with a couple tweaks) once that is setup you deploy the syncer with the flags --vn-agent-namespace and --vn-agent-service-name and it will fetch the service clusterIP at node creation to register with the virtual node resource.
Signed-off-by: Chris Hein<EMAIL_ADDRESS>

/assign @Fei-Guo

/cc @charleszheng44 @weiling61

High level thoughts:

You probably only need to introduce one config option called vnagentservicefullname with "ns/name" as the format to simplify the interface.
I would suggest to write a new provider instead of changing the default provider. This deployment mode has quite a few side effects in terms of performance and user experiences (now all vnodes show the same IP which may cause problem if any operator uses the node ip). I'd suggest to have the implementation as isolated as possible to avoid user confusion.
You can use feature gate to directly switch to the new provider.

High level thoughts:

You probably only need to introduce one config option called vnagentservicefullname with "ns/name" as the format to simplify the interface.
I would suggest to write a new provider instead of changing the default provider. This deployment mode has quite a few side effects in terms of performance and user experiences (now all vnodes show the same IP which may cause problem if any operator uses the node ip). I'd suggest to have the implementation as isolated as possible to avoid user confusion.
You can use feature gate to directly switch to the new provider.

Sounds good, I agree great idea.

@Fei-Guo updated as a provider. Thanks for the feedback.

Thanks @Fei-Guo for that feedback, all updated.

/lgtm
/approve

Now incubator/virtualcluster/pkg/vn-agent/server/route.go
req.Request.URL.Host = s.config.KubeletServerHost (<IP_ADDRESS>)
How make vn-agent find kubelet ip?

@xiaonancc77 are you using the vn-agent deployment or daemonset route? This PR added a new feature gate that allowed you to use the VN agent as a Deployment as long as you set the --feature-gate= VNodeProviderService=true on your vc-syncer it will use this, by default the vn-agent is deployed as a DaemonSet.

@christopherhein  I want to use the vn-agent by deployment route. When I set the --feature-gate=VNodeProviederService=true on vn-syncer, kube-apiserver can get the node address is the service cluster ip of the vn-agent, But vn-agent how can get the address of kubelet?

@christopherhein I want to use the vn-agent by deployment route. When I set the --feature-gate=VNodeProviederService=true on vn-syncer, kube-apiserver can get the node address is the service cluster ip of the vn-agent, But vn-agent how can get the address of kubelet?

I see what your question is now, so it works in the relatively less optimal route where instead of connecting the vn-agent directly to each kubelet it will use the super cluster kube-apiserver to proxy so where a normal vn-agent deployment routes like this  user -> tenant apiserver -> vn-agent -> kubelet -> pod when you deploy as a deployment it uses user -> tenant apiserver -> vn-agent -> super kube-apiserver -> kubelet -> pod.
So you need to make sure the vn-agent service account has the rbac rules to allow it to handle all the proxying requests and not configure the vn-agent with the kubelet certificates

@christopherhein Thanks very much!

@christopherhein
I have a very confused question. I don't know whether vn-agent is a cluster with tenant apiserver or a cluster with super kube-apiserver?
If it is a cluster with super kube-apiserver, tenant apierver cannot access vn-agent through ClusterIP of its service.
If vn-agent and tenant apiserver are a cluster, how does vn-agent access upper apiserver by InClusterConfig?

If it is a cluster with the super kube-apiserver, the tenant apierver cannot access the vn-agent by ClusterIP of its service.

vn-agent is a super cluster pod. The tenant apiserver should be able to access the serivce because it is also a super cluster Pod in current model.  The raw cluster ip should ok.

Yup, exactly as @Fei-Guo put it.

@Fei-Guo @christopherhein  Thanks for your help.


strange error on Ubuntu 20.04

Hi After running 'install.sh' I tried to execute the program and get this error
./run.sh
pygame 2.1.2 (SDL 2.0.16, Python 3.8.10)
Hello from the pygame community. https://www.pygame.org/contribute.html
/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
Traceback (most recent call last):
  File "/home/ealcober/Programas/coinprice-indicator/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "/home/ealcober/Programas/coinprice-indicator/lib/python3.8/site-packages/urllib3/util/connection.py", line 72, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.8/socket.py", line 918, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Nombre o servicio desconocido

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ealcober/Programas/coinprice-indicator/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/home/ealcober/Programas/coinprice-indicator/lib/python3.8/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/home/ealcober/Programas/coinprice-indicator/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1040, in _validate_conn
    conn.connect()
  File "/home/ealcober/Programas/coinprice-indicator/lib/python3.8/site-packages/urllib3/connection.py", line 358, in connect
    self.sock = conn = self._new_conn()
  File "/home/ealcober/Programas/coinprice-indicator/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f570ae53b20>: Failed to establish a new connection: [Errno -2] Nombre o servicio desconocido

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/home/ealcober/Programas/coinprice-indicator/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen
    retries = retries.increment(
  File "/home/ealcober/Programas/coinprice-indicator/lib/python3.8/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.mxc.com', port=443): Max retries exceeded with url: /open/api/v2/market/symbols (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f570ae53b20>: Failed to establish a new connection: [Errno -2] Nombre o servicio desconocido'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ealcober/Programas/coinprice-indicator/coin/downloader.py", line 47, in execute
    command.response = get(command.url, timeout=command.timeout)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.mxc.com', port=443): Max retries exceeded with url: /open/api/v2/market/symbols (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f570ae53b20>: Failed to establish a new connection: [Errno -2] Nombre o servicio desconocido'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./coin/coin.py", line 371, in <module>
    coin = Coin()
  File "./coin/coin.py", line 55, in __init__
    self._load_assets()
  File "./coin/coin.py", line 128, in _load_assets
    exchange.discover_assets(DownloadService(), lambda *args: None)
  File "/home/ealcober/Programas/coinprice-indicator/coin/exchange.py", line 188, in discover_assets
    downloader.execute(command, cls._handle_discovery_result)
  File "/home/ealcober/Programas/coinprice-indicator/coin/downloader.py", line 51, in execute
    response_handler(None)
  File "/home/ealcober/Programas/coinprice-indicator/coin/exchange.py", line 196, in _handle_discovery_result
    logging.debug("Response from {}: {}".format(command.url, command.error))
AttributeError: 'NoneType' object has no attribute 'url'

Sounds like you don't have requests installed. Activate the environment and install requests with pip3, you may try the --upgrade flag

can you activate the environment and do a pip3 freeze | grep requests?

Of course. Thanks. Command does not throw any output :/
On Wed, 27 Apr 2022 at 21:50, bluppfisk @.***> wrote:

can you activate the environment and do a pip3 freeze | grep requests?
—
Reply to this email directly, view it on GitHub
https://github.com/bluppfisk/coinprice-indicator/issues/91#issuecomment-1111415887,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD35ANVXMZPMTB4AN66JOL3VHGK67ANCNFSM5UEAI5QA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Then I believe it is not installed. Note it must be installed in the virtual environment, not system-wide.
Output should be as below:
~/code/coinprice-indicator$ pip freeze | grep requests
requests==2.25.1
requests-kerberos==0.12.0
requests-ntlm==1.1.0
requests-toolbelt==0.9.1

closing for now

Ok it's installed but it don't works thats all...
El lun., 9 may. 2022 11:13, bluppfisk @.***> escribió:

Closed #91 https://github.com/bluppfisk/coinprice-indicator/issues/91.
—
Reply to this email directly, view it on GitHub
https://github.com/bluppfisk/coinprice-indicator/issues/91#event-6571483784,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD35ANXCLEYXTP7QDCA3XXDVJDJJ5ANCNFSM5UEAI5QA
.
You are receiving this because you authored the thread.Message ID:
@.***>

without any error output I don't think there's anything I can do to help


Supervisord worker seems not working queeus

The section [supervisorctl] missing from supervisor.conf main file.
[unix_http_server]
file=/var/run/supervisor.sock
chmod=0700
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock
Previous sections able to start, stop supervisorctl but restarting container no persisting config

I just tested, everything works fine

You can add it in /var/www/html/conf/worker/supervisor.conf, it'll imported automatical

You can add it in /var/www/html/conf/worker/supervisor.conf.
It'll imported automatical


Method for adding edges from another graph

There should be a method for adding edges from another graph, for example AddEdgesFrom[K comparable, T any](source Graph[K, T]) error. Maybe accepting a []Edge[K] instead of a Graph[K, T] might make sense, too. In that case, a new method for retrieving all edges as a []Edge[K] would be necessary as well.

Solved by #104.