GPU out of memory problem

I'm running this program with Geforce GTX 750 Ti, where I consistently encounter out of memory problem when the program iterates a specific number of runs.
groundhog.layers.basic: DEBUG: loading W_0_dec_prev_readout_0 of (620, 1000)
GPU status : used 1510.312 Mb free 537.375 Mb, total 2047.688 Mb [context start]
Saving the model...
Model saved.
groundhog.dataset.TM_dataset: DEBUG: 2007723 entries
groundhog.dataset.TM_dataset: DEBUG: Starting from the entry 0
.. iter 0 cost .. # some data
.. iter 5 cost .. # failed on iter 5
Error allocating 74402480 bytes of device memory (out of memory). Driver report 74268672 bytes free and<PHONE_NUMBER> bytes total
# and caused some function error such as attribute is missing

Tried to change state parameters to smaller batch but it doesn't count too much in GPU consuming. Is there a way to control the batches loading to GPU, or if not, how much memory is at least needed?

Can you update to Theano 0.7? There is a fix for memory usage related to
scan you probably use it.
Otherwise, the simplest way is to use a smaller batch size.
On Mon, Mar 30, 2015 at 7:03 AM, enxKSB-K910<EMAIL_ADDRESS>wrote:

I'm running this program with Geforce GTX 750 Ti, where I consistently
encounter out of memory problem when the program finishes one run.
groundhog.layers.basic: DEBUG: loading W_0_dec_prev_readout_0 of (620, 1000)
GPU status : used 1510.312 Mb free 537.375 Mb, total 2047.688 Mb [context start]
Saving the model...
Model saved.
groundhog.dataset.TM_dataset: DEBUG: 2007723 entries
groundhog.dataset.TM_dataset: DEBUG: Starting from the entry 0
.. iter 0 cost .. # some data
.. iter 5 cost .. # failed on iter 5
Error allocating 74402480 bytes of device memory (out of memory). Driver report 74268672 bytes free and<PHONE_NUMBER> bytes total
and caused some function error such as attribute is missing
Theano didn't provide an effective way to fix this problem (e.x. how to
split batches and holds them when overflows boundary??) and the only
working solution seems to be replacing your GPU with one holds larger
memoey. Is there a way to control the batches loading to GPU, or if not,
how much memory is at least needed?
—
Reply to this email directly or view it on GitHub
https://github.com/lisa-groundhog/GroundHog/issues/30.

I'm using theano 0.7, by checking theano.test(). Also have tried to use smaller batch size such as:
# in state.py
# changed all the values by search
state['bs'] = 10
state['sort_k_batches'] = 5

But in my tests the memory usage didn't drop significant.

I do not know how GroundHog dataset work. Do you know if it keep the full
dataset on the GPU memory? That could be the cause of problem if the
dataset is too big.
On Mon, Mar 30, 2015 at 9:41 AM, enxKSB-K910<EMAIL_ADDRESS>wrote:

I'm using theano 0.7, by checking theano.test(). Also have tried to use
smaller batch size such as:
in state.py
changed all the values by search
state['bs'] = 10
state['sort_k_batches'] = 5
But in my tests the memory usage didn't drop significant.
—
Reply to this email directly or view it on GitHub
https://github.com/lisa-groundhog/GroundHog/issues/30#issuecomment-87685776
.

No we don't do that. Changing the batch size must change memory usage.
What's your version of pytables?

@rizar PyTables is 3.1.1, but as @nouiz suggested under theano, I just need to do more gc.collect in GroundHog's mainloop.
Though I think there's also a way to change batch size and amount in SGD.py
Changes in state.py just result hundred bytes difference, that's not a lot.


[FEATURE] Standardization of access to the classifiers pool in meta

Hi, in the base ensemble class in scikit-learn, they have the __iter__ method overridden and the pool of classifiers stored in the variable self.estimators_, so it is possible to do something like this:
pool = RandomForestClassifier()
for tree in pool:
    print(tree)

I find this very useful when working with research implementations of new methods that envolves dealing with attributes of each particular classifier in the ensemble.
Would something like this be possible in the scikit-multiflow?
I see that many of the implemented meta classifiers use self.ensemble to store the pool, but that is not true for all of them, such as AccuracyWeightedEnsemble, which uses self.models_pool.
The easiest way, with fewer changes in the base code I can think, is overriding the __iter__ method in the MetaEstimatorMixin to work with self.ensemble and also override in each ensemble implementation that uses a different variable name. So the new methods implemented would have to use self.ensemble or override __iter__.
This is not what scikit-learn does, they use the base ensemble class as an intermediate class between the implementations and the MetaEstimatorMixin.
Would this solution or any other solution to this be accepted in a PR?

Hello @luccaportes

Would something like this be possible in the scikit-multiflow?

Yes! And I agree with you on the potential of this functionality. I also like the idea of having a standard notation across for the ensembles. As you mention variable names are not always the same and this makes it difficult to maintain. I also like the generic approach to 'validate' and 'make' the ensemble.

Would this solution or any other solution to this be accepted in a PR?

Yes! My suggestion is that the PR should focus on the implementation of the BaseEnsemble class + the standardization of the ensemble methods.
Optionally, we could sub-divide the PR into base class implementation + standardization given the number of methods available.
Comments @hmgomes @smastelini @AlbandeCrevoisier ?
Finally, could you elaborate on this:

This is not what scikit-learn does, they use the base ensemble class as an intermediate class between the implementations and the MetaEstimatorMixin.

I agree that BaseEnsemble would be beneficial to the code base. Besides, I don't think merely extending MetaEstimatorMixin would be a good idea, meta estimators aren't necessarily ensembles. I'd say durably improving the code base prevails on minimising  changes — as well as maintaining the sklearn way of doing things.
I've been struggling with extending ARF, but I now have a 98% complete version that I can put in a PR for reference. BaseEnsemble would impact it — by making it easier to manage, actually — so I could work on it first, then adapt ARF & other ensemble methods as required? What do you think?

Hello @luccaportes, @jacobmontiel, @AlbandeCrevoisier, and @hmgomes,
I think that creating a BaseEnsemble class would be a great addition to skmultiflow. I also agree with @AlbandeCrevoisier in the matter a meta estimator is not necessarily an ensemble. Hence, IMO, the best alternative would be creating an intermediate BaseEnsemble class, a la sklearn. :D

Yes! My suggestion is that the PR should focus on the implementation of the BaseEnsemble class + the standardization of the ensemble methods.

I believe this would be the fastest way to implement all the changes.

Thank you @jacobmontiel, @smastelini and @AlbandeCrevoisier

Finally, could you elaborate on this:

I just meant that the scikit-learn BaseEnsemble extends the MetaEstimatorMixin.
So, just to be clear, the proposed approach would be something like this:

Is that right?
I was going to offer to implement whichever alternative that would outcome from this issue, but since @AlbandeCrevoisier is already working in something related, is there any way I can help?

+1 for this.
My comments:

BaseEnsemble would inherit from both MetaEstimatorMixin and BaseEstimator.
For compatibility with scikit-learn we should use the same variable name ensemble_
For completeness, we can also add the __len__ and __getitem__  methods.

@luccaportes I didn't know whether you were willing to implement it, so was offering to do it in case you were merely requiring the feature. Your help would be most welcome! Besides, you seem more familiar with sklearn's implementation - I'm still new to this project.
I think you could implement BaseEnsemble, & then if you want I could help you with converting existing methods to use it? What do you think?

@luccaportes I didn't know whether you were willing to implement it, so was offering to do it in case you were merely requiring the feature. Your help would be most welcome! Besides, you seem more familiar with sklearn's implementation - I'm still new to this project.
I think you could implement BaseEnsemble, & then if you want I could help with converting existing methods to use it? What do you think?

@AlbandeCrevoisier, that would be great. I will work on that and keep you guys updated then.
Thanks

I am then assigning the issue to you @luccaportes.
Let us know if we can help.


change redirect url to cas

Related to PR 5000
Purpose
Change login from login.mako to cas login.
Ticket
https://openscience.atlassian.net/browse/OSF-4542

Pass finished.


Fixing PowerLaw

…m-class-from-prior-class
no nans now, but the code can be consolidate

Fixed all tests in test_prior.py. Unit tests are working properly now.


User posts same song twice in 24 hrs

Somehow Nic Pavao managed to post the same song twice, which should not be allowed. There is a current guard against that, in that you shouldn't be able to click the "Share" button if you've posted the song in the past 24 hrs

^lol

Maybe it wasn't EXACTLY the same song? Maybe one was like "- remastered". Cuz when you search a song multiple of seemingly the same song pop up

Hmm, maybe, I'll just close this for now unless anybody sees the bug again then


handle the case where nonces weren't populated for default csp config…

Fixes #285
Because nonces are treated a meta config values they were not included when being copied into undefined directive values.
e.g.
SecureHeaders::Configuration.default do |config|
  config.csp = {
    default_src: %w(https:),
  }
end

Hello

<%= nonced_javascript_tag do %>
  alert("world!");
<% end %>

Would result in the nonce getting dropped from the script-src value that should have been copied from default-src.
/cc @afcapel if you have time to test this

@oreoshake this solves the issue for me :)
Thanks for the prompt fix and the overall awesome project!


Create SASS/style helpers for responsive breakpoints

Spec reference: https://www.google.com/design/spec/layout/responsive-ui.html#responsive-ui-breakpoints.

Superceded by https://github.com/material-components/material-components-web/issues/23


feat(python): expose add constraint operation

Description
Currently limited to a single constraint at once. I didn't want to chance the function defintion for this so I just check if more than 1 constraint is passed it will raise an error. Once we have the multiple constraints possibility in Rust, I can simply remove this size check.

Errors will be fixed if we merge this refactor first: https://github.com/delta-io/delta-rs/pull/1979

@roeap regarding the single constraint addition per time?

@ion-elgreco - yes, not sure that there is a question o.a. here ... 😆

@roeap :) I'll create an issue for it.
@hntd187  mentioned he would add that possibility


No errors but PokeBot do nothing else than Walking

Hello
I have strange problem... my Pokebot don`t do anything just walking:
~/PokemonGo-Bot$ ./pokecli.py -cf config2.json
[2016-08-04 08:38:59] [x] PokemonGO Bot v1.0
[2016-08-04 08:38:59] [x] Configuration initialized
[2016-08-04 08:38:59] [x] Coordinates found in passed in location, not geocoding.
[2016-08-04 08:38:59]
[2016-08-04 08:38:59] [x] Address found: 51.231234,20.004125
[2016-08-04 08:38:59] [x] Position in-game set as: (51.231234, 20.004125, 0.0)
[2016-08-04 08:38:59]
[2016-08-04 08:39:01] [#] Username: XXXXXXXXXXXXXX
[2016-08-04 08:39:01] [#] Acccount Creation: 2016-08-04 08:20:20.227000
[2016-08-04 08:39:01] [#] Bag Storage: 54/350
[2016-08-04 08:39:02] [#] Pokemon Storage: 0/250
[2016-08-04 08:39:02] [#] Stardust: 0
[2016-08-04 08:39:02] [#] Pokecoins: 0
[2016-08-04 08:39:02] [#] PokeBalls: 50
[2016-08-04 08:39:02] [#] GreatBalls: 0
[2016-08-04 08:39:02] [#] UltraBalls: 0
[2016-08-04 08:39:02] [#] -- Level: 1
[2016-08-04 08:39:02] [#]
[2016-08-04 08:39:02] [x] Starting PokemonGo Bot....
[2016-08-04 08:39:02] [#] Scanning area for objects (1 / 25)
[2016-08-04 08:39:02] [#] Walking from (51.231234, 20.004125) to (51.231234, 20.004125) for approx. 0.00 seconds
[#] (51.231234, 20.004125, 0)
[2016-08-04 08:39:13] [#] Scanning area for objects (2 / 25)
[2016-08-04 08:39:13] [#] Walking from (51.231234, 20.004125) to (51.233734, 20.004125) for approx. 1.32 minutes
[#] Attempting to evolve all pokemons ...
[2016-08-04 08:40:52] [#] Finished walking
[#] (51.233734, 20.004125, 0)
[2016-08-04 08:41:01] [#] Scanning area for objects (3 / 25)
[2016-08-04 08:41:01] [#] Walking from (51.233734, 20.004125) to (51.233734, 20.006625) for approx. 48.00 seconds
[2016-08-04 08:41:55] [#] Finished walking
[#] (51.233734, 20.006625, 0)
[2016-08-04 08:42:05] [#] Scanning area for objects (4 / 25)
[2016-08-04 08:42:05] [#] Walking from (51.233734, 20.006625) to (51.231234, 20.006625) for approx. 1.32 minutes
Anyone saw something like this?
Best Regards

There was an api change
On 4 Aug 2016 16:14, "takenek"<EMAIL_ADDRESS>wrote:

Hello
I have strange problem... my Pokebot don`t do anything just walking:
~/PokemonGo-Bot$ ./pokecli.py -cf config2.json
[2016-08-04 08:38:59] [x] PokemonGO Bot v1.0
[2016-08-04 08:38:59] [x] Configuration initialized
[2016-08-04 08:38:59] [x] Coordinates found in passed in location, not
geocoding.
[2016-08-04 08:38:59]
[2016-08-04 08:38:59] [x] Address found: 51.231234,20.004125
[2016-08-04 08:38:59] [x] Position in-game set as: (51.231234, 20.004125,
0.0)
[2016-08-04 08:38:59]
[2016-08-04 08:39:01] [#] Username: taken
[2016-08-04 08:39:01] [#] Acccount Creation: 2016-08-04 08:20:20.227000
[2016-08-04 08:39:01] [#] Bag Storage: 54/350
[2016-08-04 08:39:02] [#] Pokemon Storage: 0/250
[2016-08-04 08:39:02] [#] Stardust: 0
[2016-08-04 08:39:02] [#] Pokecoins: 0
[2016-08-04 08:39:02] [#] PokeBalls: 50
[2016-08-04 08:39:02] [#] GreatBalls: 0
[2016-08-04 08:39:02] [#] UltraBalls: 0
[2016-08-04 08:39:02] [#] -- Level: 1
[2016-08-04 08:39:02] [#]
[2016-08-04 08:39:02] [x] Starting PokemonGo Bot....
[2016-08-04 08:39:02] [#] Scanning area for objects (1 / 25)
[2016-08-04 08:39:02] [#] Walking from (51.231234, 20.004125) to
(51.231234, 20.004125) for approx. 0.00 seconds
http://51.231234, 20.004125, 0
[2016-08-04 08:39:13] [#] Scanning area for objects (2 / 25)
[2016-08-04 08:39:13] [#] Walking from (51.231234, 20.004125) to
(51.233734, 20.004125) for approx. 1.32 minutes
[#] Attempting to evolve all pokemons ...
[2016-08-04 08:40:52] [#] Finished walking
http://51.233734, 20.004125, 0
[2016-08-04 08:41:01] [#] Scanning area for objects (3 / 25)
[2016-08-04 08:41:01] [#] Walking from (51.233734, 20.004125) to
(51.233734, 20.006625) for approx. 48.00 seconds
[2016-08-04 08:41:55] [#] Finished walking
http://51.233734, 20.006625, 0
[2016-08-04 08:42:05] [#] Scanning area for objects (4 / 25)
[2016-08-04 08:42:05] [#] Walking from (51.233734, 20.006625) to
(51.231234, 20.006625) for approx. 1.32 minutes
Anyone saw something like this?
Best Regards
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PokemonGoF/PokemonGo-Bot/issues/2565, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AOcLI-3RpRZjWJ6ALVgYcpIFV6N1Fn81ks5qcYpIgaJpZM4JcYzS
.

See https://github.com/PokemonGoF/PokemonGo-Bot/issues/2540
On 4 Aug 2016 16:15, "Benji Lee"<EMAIL_ADDRESS>wrote:

There was an api change
On 4 Aug 2016 16:14, "takenek"<EMAIL_ADDRESS>wrote:

Hello
I have strange problem... my Pokebot don`t do anything just walking:
~/PokemonGo-Bot$ ./pokecli.py -cf config2.json
[2016-08-04 08:38:59] [x] PokemonGO Bot v1.0
[2016-08-04 08:38:59] [x] Configuration initialized
[2016-08-04 08:38:59] [x] Coordinates found in passed in location, not
geocoding.
[2016-08-04 08:38:59]
[2016-08-04 08:38:59] [x] Address found: 51.231234,20.004125
[2016-08-04 08:38:59] [x] Position in-game set as: (51.231234, 20.004125,
0.0)
[2016-08-04 08:38:59]
[2016-08-04 08:39:01] [#] Username: taken
[2016-08-04 08:39:01] [#] Acccount Creation: 2016-08-04 08:20:20.227000
[2016-08-04 08:39:01] [#] Bag Storage: 54/350
[2016-08-04 08:39:02] [#] Pokemon Storage: 0/250
[2016-08-04 08:39:02] [#] Stardust: 0
[2016-08-04 08:39:02] [#] Pokecoins: 0
[2016-08-04 08:39:02] [#] PokeBalls: 50
[2016-08-04 08:39:02] [#] GreatBalls: 0
[2016-08-04 08:39:02] [#] UltraBalls: 0
[2016-08-04 08:39:02] [#] -- Level: 1
[2016-08-04 08:39:02] [#]
[2016-08-04 08:39:02] [x] Starting PokemonGo Bot....
[2016-08-04 08:39:02] [#] Scanning area for objects (1 / 25)
[2016-08-04 08:39:02] [#] Walking from (51.231234, 20.004125) to
(51.231234, 20.004125) for approx. 0.00 seconds
http://51.231234, 20.004125, 0
[2016-08-04 08:39:13] [#] Scanning area for objects (2 / 25)
[2016-08-04 08:39:13] [#] Walking from (51.231234, 20.004125) to
(51.233734, 20.004125) for approx. 1.32 minutes
[#] Attempting to evolve all pokemons ...
[2016-08-04 08:40:52] [#] Finished walking
http://51.233734, 20.004125, 0
[2016-08-04 08:41:01] [#] Scanning area for objects (3 / 25)
[2016-08-04 08:41:01] [#] Walking from (51.233734, 20.004125) to
(51.233734, 20.006625) for approx. 48.00 seconds
[2016-08-04 08:41:55] [#] Finished walking
http://51.233734, 20.006625, 0
[2016-08-04 08:42:05] [#] Scanning area for objects (4 / 25)
[2016-08-04 08:42:05] [#] Walking from (51.233734, 20.006625) to
(51.231234, 20.006625) for approx. 1.32 minutes
Anyone saw something like this?
Best Regards
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PokemonGoF/PokemonGo-Bot/issues/2565, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AOcLI-3RpRZjWJ6ALVgYcpIFV6N1Fn81ks5qcYpIgaJpZM4JcYzS
.

I am not sure this is this same i can login with no problem and i walking but bot do nothing... just walking to pokestops but do nothing...

Same
[08:50:09]
[08:50:09]  Ran for 10:44:43
[08:50:09]  Total XP Earned: 0  Average: 0.00/h
[08:50:09]  Travelled 0.00km
[08:50:09]  Visited 0 stops
[08:50:09]  Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before
[08:50:09]  Threw 0 pokeballs
[08:50:09]  Earned 0 Stardust
[08:50:09]
[08:50:09]  Highest CP Pokemon:
[08:50:09]  Most Perfect Pokemon:

10 hours, nothing 😢

I had the same issue so I pulled the recent Dev branch then I realised the
api had changed I walked around for 1 hour without catching any pokemon on
the old branch but now the new one doesn't get past the egg hatches part.
My guess is the two different Dev branches have different walker events. Ect
On 4 Aug 2016 16:22, "takenek"<EMAIL_ADDRESS>wrote:

I am not sure this is this same i can login with no problem and i walking
but bot do nothing... just walking to pokestops but do nothing...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/PokemonGoF/PokemonGo-Bot/issues/2565#issuecomment-237468053,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOcLI36v-cSf_5WUSyd7fk_6bA92rOe2ks5qcYwhgaJpZM4JcYzS
.

this is because niantic just shutdown the API.

I use newlatestv version from git and same effect :-(

There is no version that currently works under the new API requirements. Your only option is to wait.

Just read #2540

wait n see


Error: cannot connect to X server

First, thank you for enabling conda builds on RTD!
I am now trying to build the docs for http://www.glueviz.org using this, and am running into the following error:
Running Sphinx v1.3.1
making output directory...

Installed /home/docs/checkouts/readthedocs.org/user_builds/glueviz/checkouts/latest/doc/.eggs/astropy_helpers-1.1.1-py2.7.egg
/home/docs/checkouts/readthedocs.org/user_builds/glueviz/conda/latest/lib/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
: cannot connect to X server

My readthedocs.yml file contains:
conda:
    file: .environment.yml

python:
    setup_py_install: true

and the .environment.yml contains:

name: glueviz

dependencies:
  - pyqt
  - numpy
  - matplotlib
  - pandas
  - astropy
  - dill
  - h5py
  - scipy
  - scikit-image
  - ipython
  - ipykernel
  - qtconsole
  - traitlets
  - pygments
  - pyzmq
  - mock
  - pytest

I think the cannot connect to X server error occurs when PyQt4 is imported.
On Travis, I normally fix this by doing:
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start

Is there any way of doing something similar on RTD?

I would like to second @astrofrog on you supporting conda, it's really cool!
I am also having this problem with the X server, I am trying to import VTK thorugh Python and the conda packages have been built with an X server depenancy. So some way around this problem, other than custom building packages, would be great.
Thanks again!

Is there a better way to mock this? Running X server is not optimal.

@agjohnson - I'm not aware of any other solutions for now. We usually always run xvfb for these kinds of builds on Travis and it doesn't seem to cause any issues.

Having said that, I may have found a way to work around the issue in my specific case (but not 100% sure yet). I will report back!

@agjohnson Due to the conda package for VTK being linked against libGL and not having OSMesa support compiled in, the only way to not have an X server is for me to recompile the package. Which I am trying to do, but without any success so far.
Thanks.

Is there any progress on this? I'm trying to build the documentation with some mayavi examples and I need the X server. In travis I just set up a headless server as pointed out in the first post. Is it possible to use it here too?

No progress yet, as I said above I think the only practical way is to compile without X support. That is on my todo list but I have no idea if/when I will get to it.

Having xvfb-run on readthedocs would help a lot. A use case can be found in this question on stackoverflow.

Since https://github.com/sphinx-doc/sphinx/issues/4956 is solved, sphinx-1.7.5 would work around this issue for PyQt (with autodoc_mock_imports).

Anyone can test if this solution https://github.com/rtfd/readthedocs.org/issues/1951#issuecomment-392955385 works as expected? If so, probably there is nothing else to do from the rtd side, right?

Yes, for this solution to work, rtd just has to upgrade the underlying sphinx to 1.7.5.
This is not the case yet.
Last build was " Running Sphinx v1.7.4"

@ederag you can specify any version of sphinx in your requirements.txt file

Perfect. It does not bypass the setup.cfg.
For others, I just created a docs/requirements.txt with a single line
sphinx==1.7.5

and declared docs/requirements.txt in the readthedocs project
admin>advanced settings>Requirements file
Thank you, readthedocs is great !

It works fine, though some server load could be saved.
Currently PyQt5 is still installed
Installing PyQt5 in the python setup.py install --force build stage.
Ideally, mocked modules would not be installed.
Meanwhile, is it possible to set a negative requirement ?

In our use case it still doesn't work, we don't want to mock the imports that use the X server, we want to effectively use it. But our current work around of building the docs in travis and pushing to github pages works well enough.

FYI for others trying to figure out how to setup headless displays on Read The Docs:
I ran into this issue using sphinx-gallery with vtki to build these examples in our documentation.
Since RTD cannot handle headless displays, I outright switched my projects to deploying from Travis to GitHub pages using doctr: https://github.com/drdoctr/doctr
It works wonderfully and now we have a custom job that builds and deploys the docs on Travis which turns up as a status check on PRs - hope this helps others out there struggling to get RTD to meet their projects' needs!
Also, I created a ci helper script that can handle setting up all of this on Travis - simply add this to your .travis.yml:
dist: xenial # must use xenial for vtk/vtki

before_install:
  # configure a headless display for vtk/vtki
  - git clone --depth 1 git://github.com/vtkiorg/gl-ci-helpers.git
  - source ./gl-ci-helpers/travis/setup_headless_display.sh

then build your docs and use doctr to deploy!


bump 1.82.0-1

bump build number
adjust dependencies

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_d4s82bcnza/clone/recipe/meta.yaml:35: patch_must_be_in_build: patch must be in build when source/patches is set.
ERROR: /tmp/abs_d4s82bcnza/clone/recipe/meta.yaml:51: missing_tests: No tests were found.
ERROR: /tmp/abs_d4s82bcnza/clone/recipe/meta.yaml:66: http_url: http://www.leptonica.org/ is not https
WARNING: /tmp/abs_d4s82bcnza/clone/recipe/meta.yaml:66: license_file_overspecified: Using license_file and license_url is overspecified.
WARNING: /tmp/abs_d4s82bcnza/clone/recipe/meta.yaml:67: license_file_overspecified: Using license_file and license_url is overspecified.
ERROR: /tmp/abs_d4s82bcnza/clone/recipe/meta.yaml:67: http_url: http://www.leptonica.org/ is not https
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_f671d7g_hc/clone/recipe/meta.yaml:52: missing_tests: No tests were found.
ERROR: /tmp/abs_f671d7g_hc/clone/recipe/meta.yaml:67: http_url: http://www.leptonica.org/ is not https
WARNING: /tmp/abs_f671d7g_hc/clone/recipe/meta.yaml:67: license_file_overspecified: Using license_file and license_url is overspecified.
ERROR: /tmp/abs_f671d7g_hc/clone/recipe/meta.yaml:68: http_url: http://www.leptonica.org/ is not https
WARNING: /tmp/abs_f671d7g_hc/clone/recipe/meta.yaml:68: license_file_overspecified: Using license_file and license_url is overspecified.
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_c58_yyjdtn/clone/recipe/meta.yaml:52: missing_tests: No tests were found.
ERROR: /tmp/abs_c58_yyjdtn/clone/recipe/meta.yaml:66: http_url: http://www.leptonica.org/ is not https
ERROR: /tmp/abs_c58_yyjdtn/clone/recipe/meta.yaml:67: http_url: http://www.leptonica.org/ is not https
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_946ywsrdo6/clone/recipe/meta.yaml:52: missing_tests: No tests were found.
ERROR: /tmp/abs_946ywsrdo6/clone/recipe/meta.yaml:66: http_url: http://www.leptonica.org/ is not https
ERROR: /tmp/abs_946ywsrdo6/clone/recipe/meta.yaml:67: http_url: http://www.leptonica.org/ is not https
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_3ax1o5ri_k/clone/recipe/meta.yaml:52: missing_tests: No tests were found.
ERROR: /tmp/abs_3ax1o5ri_k/clone/recipe/meta.yaml:66: http_url: http://www.leptonica.org/ is not https
ERROR: /tmp/abs_3ax1o5ri_k/clone/recipe/meta.yaml:67: http_url: http://www.leptonica.org/ is not https
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_3dwmcf2ezf/clone/recipe/meta.yaml:52: missing_tests: No tests were found.
ERROR: /tmp/abs_3dwmcf2ezf/clone/recipe/meta.yaml:66: http_url: http://www.leptonica.org/ is not https
ERROR: /tmp/abs_3dwmcf2ezf/clone/recipe/meta.yaml:67: http_url: http://www.leptonica.org/ is not https
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_288fiycig9/clone/recipe/meta.yaml:49: missing_tests: No tests were found.
ERROR: /tmp/abs_288fiycig9/clone/recipe/meta.yaml:63: http_url: http://www.leptonica.org/ is not https
ERROR: /tmp/abs_288fiycig9/clone/recipe/meta.yaml:64: http_url: http://www.leptonica.org/ is not https
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_7czj9mffzf/clone/recipe/meta.yaml:51: missing_tests: No tests were found.
ERROR: /tmp/abs_7czj9mffzf/clone/recipe/meta.yaml:65: http_url: http://www.leptonica.org/ is not https
ERROR: /tmp/abs_7czj9mffzf/clone/recipe/meta.yaml:66: http_url: http://www.leptonica.org/ is not https
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_803qxic7sf/clone/recipe/meta.yaml:66: http_url: http://www.leptonica.org/ is not https
ERROR: /tmp/abs_803qxic7sf/clone/recipe/meta.yaml:67: http_url: http://www.leptonica.org/ is not https
Errors were found

It's not clear why it failed on win-64

win-64 fails because of a custom patch to giflib added by Kai that does this:
-extern const unsigned char GifAsciiTable8x8[][GIF_FONT_WIDTH];
+const unsigned char XPORT GifAsciiTable8x8[][GIF_FONT_WIDTH];

But MSVC doesn't like this, and complains:
%PREFIX%\Library\include\gif_lib.h(286): error C2734: 'GifAsciiTable8x8': 'const' object must be initialized if not 'extern'

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_ec8gal0_hu/clone/recipe/meta.yaml:66: http_url: http://www.leptonica.org/ is not https
ERROR: /tmp/abs_ec8gal0_hu/clone/recipe/meta.yaml:67: http_url: http://www.leptonica.org/ is not https
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_4afx2h0b33/clone/recipe/meta.yaml:66: http_url: http://www.leptonica.org/ is not https
ERROR: /tmp/abs_4afx2h0b33/clone/recipe/meta.yaml:67: http_url: http://www.leptonica.org/ is not https
Errors were found

yes, this issue about a variable using [][8] in C++ is not the same as in C.  Especially as giflib removed the absolutely required "extern" from that line.  I prepared new version addressing all the VS issues in giflib, and let us cross fingers that it now simply builds as desired

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_07rrh1djaw/clone/recipe/meta.yaml:66: http_url: http://www.leptonica.org/ is not https
ERROR: /tmp/abs_07rrh1djaw/clone/recipe/meta.yaml:67: http_url: http://www.leptonica.org/ is not https
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_46qeec8lo4/clone/recipe/meta.yaml:66: http_url: http://www.leptonica.org/ is not https
ERROR: /tmp/abs_46qeec8lo4/clone/recipe/meta.yaml:67: http_url: http://www.leptonica.org/ is not https
Errors were found


Auto Attach is not toggling for Node.js since latest update

VSCode Version: 1.47.2
OS Version: Windows 10 v1909 (Build 18363.959)

Steps to Reproduce:
I use WSL to start VSCode with code . from my project directory in Windows Terminal. When VSCode starts up, "Auto Attach: Off" is shown in the status bar:

Clicking "Auto Attach: Off" in the status bar does not toggle it.
I then start my project in VSCode's integrated terminal with npm run debug, which corresponds to the following scripts line in package.json:
"scripts": {
  "debug": "NODE_ENV=development DEBUG='knex:*' nodemon --inspect ./server.js"
}

However, the debugger is not auto-attached, so I need to manually run the Attach configuration from the Run panel shown on the left here:

The debugger works, but I still cannot toggle the Auto Attach: Off to be On instead:

Even if I Ctrl+Shift+P --> Debug: Toggle Auto Attach, nothing happens. Even if I restart VSCode after doing so.

So, in conclusion, how can I start my VSCode with code . from Windows Terminal and then just type npm run debug and have VSCode, run my program AND auto-attach the debugger? I also need the server to restart upon file changes, which is why I am using nodedemon in the npm run debug script.
Do I need to either:

change launch.json configuration? Though I have tried essentially all of the boilerplate launch.json configs shown in VSCode, but none worked.

or modify my package.json defined script for debug?

or correct some setting on VSCode?

Does this issue occur when all extensions are disabled?: Yes

Can you please try the second set of instructions here? https://github.com/microsoft/vscode/issues/102057#issuecomment-657728467

@connor4312 those instructions appear to be for linux (echo $VSCODE_INSPECTOR_OPTIONS | awk '{if(match($0, /"([^"]+.deferred)"/,m))print m[1]}' | xargs rm) what should I be doing on Windows?

That step is not needed for Windows

For settings debug.node.autoAttach it was already on "on":

So I then switched it to "off" and then "disabled". The "Auto Attach: Off" on the status bar has disappeared.
I should also mention I am noticing other debugging issues. For example, if I somehow get the debugger to run and attach (or perhaps launch), it won't actually break at a debugger unless I press Ctrl+S first (or somehow get it to reload at least once after starting it). I am not sure if this is a related issue or not, but if possible, I am fine with using the built-in vscode-js-debug if that can cleanly just get debugging working (as long as I can also get it to reload when files change, as nodemon does).

if I somehow get the debugger to run and attach (or perhaps launch), it won't actually break at a debugger statement unless I press Ctrl+S first (or somehow get it to reload at least once) after starting the npm script

It sounds like the debugger; statement might be executed before the attachment runs. The runtime will stop at debugger; statements without any particular behavior/instructions by the debugger (so long as a debugger is attached), so I would suspect something is happening with your build/run setup independent of js-debug.

I don't have any build, just the straight npm run debug, which corresponds to:
"scripts": {
  "debug": "NODE_ENV=development DEBUG='knex:*' nodemon --inspect ./server.js"
}

If it makes it easier by doing this from scratch with a blank launch.json and use a plain package.json script like npm run start corresponding to:
"scripts": {
  "start": "node ./server.js"
}

what's the next step so I can get debugging working and breaking at my debugger; statements? And then what should I do to have it reload when files change?
After losing so many days to this issue, I would even be happy and eager to use VSCode's Live Share if that could help get to the bottom of the debugging issue.

If you can collect a trace log using the 'launch' -- not attach -- scenario with the debugger; statement in place, I can look more into what you're hitting. Instructions:

If you're able to, add "trace": true to your launch.json and reproduce the issue. The location of the log file on your disk will be written to the Debug Console. Share that with us.
⚠ This log file will not contain source code, but will contain file paths. You can drop it into https://microsoft.github.io/vscode-pwa-analyzer/index.html to see what it contains. If you'd rather not share the log publicly, you can email it to<EMAIL_ADDRESS>
Also, if you're blocked on this you can temporarily use the old debugger by setting debug.javascript.usePreview: false in your user settings

Debugging broke after VSCode did the update, I only turned the debug.javascript.usePreview on at a later time when trying to figure out a new setup that would work in the current version of VSCode. For example, my launch.json previously had "type": "node" and "protocol": "inspector", neither of which are valid anymore.
I can certainly collect the trace log as you suggested, but before even getting to that part, what config should I have in my launch.json and what npm run-script line should I use in the package.json?

Ok, here's an attempt with the following launch.json config (would still like some clarity on what may be a more appropriate launch.json config):

with package.json containing the following start script:
  "scripts": {
    "start": "node ./server.js",
  }

I then click the "Start Debugging" run button:

Which runs this in the "Debug Console":

And creates this log file so far:
vscode-debugadapter-0.json.gz
At this point the debugger; only works if it's immediately accessible. But there is no debugger; statement break if my frontend sends a request, even though my frontend gets the response just fine. In fact, the log appears to be exactly the same for before and after the frontend request.
I also can't get debugger; statements to break for frontend requests if I select "Node (preview)" from the debug panel's Run options, and then selecting Debug: npm run start:

Same happens if from the debug panel's Run options, I select Debug: npm run debug after "Node (preview)":

…then my frontend requests still don't break at the debugger; statement
Not sure what happened, but now I can't even do the weird trick where I press Ctrl+S and cause the server to restart once, and then debugger; statement in the request catches.
Again, in each of these cases, the frontend does get a proper response, just that the debugger isn't picking it up, and also I don't see any console.log() printouts in the console.
Sorry if this was extra long, just wanted to make sure to give you the full picture.

Thank you for the details. Your launch.json with the npm script looks correct.
In your log, I don't see any issues that would make me suspicious, but I also don't see the debugger pausing anywhere. There are some cases where js-debug will automatically continue on a pause, which is what I thought might have been happening here (though I hadn't seen it occur on a debugger; statement before) but it looks like that's not the case.
I wonder if maybe something in your framework is serving the request in a worker thread or something (which Node in general does not support debugging for at this point). Is the project you're working on open source? Maybe it would be easier for me to dig in a little bit myself.

It's not open source but I am okay with adding you to the private github repo, I've lost many days at this point so really in a bind right now and willing to try whatever. Again, if you're okay with VSCode's Live Share, we can also try that, or even a regular screenshare app like Zoom or TeamViewer.
In the meantime I've added you to the private github repo, thank you.

Thanks for the repo. I tried pulling it down and running it with the latest Node (14.5.0), but I think something isn't quite right. Just trying to npm start from a normal terminal, it tries to run server.js which is a module
➜  issue-102834 git:(master) ✗ node server.js
(node:64322) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
/Users/connor/Downloads/issue-102834/server.js:1
import express from "express";
^^^^^^

SyntaxError: Cannot use import statement outside a module

Correcting that,
➜  issue-102834 git:(master) ✗ node server.js
file:///Users/connor/Downloads/issue-102834/db/connection.js:3
import knexfile from "../knexfile.js";
       ^^^^^^^^
SyntaxError: The requested module '../knexfile.js' does not provide an export named 'default'

How are you actually building/running this project?

Sorry @connor4312 I hadn't pushed my latest commit apparently; see the branch called fixing_debugger —that's exactly what I currently have. There is no build process at all, just using plain-Jane express in NodeJS with ES6 modules enabled in the package.json: "type": "module"

Okay, great, thanks! I noticed you had debugger statement in /api/checkout/discount, so I

Npm installed'd
Uncommented the hasPerm middleware and tried hitting that debugger statement
F5'd
curl'd against that endpoint

Are there any addition steps needed here?
I wonder whether there's something happening on your network / some orphaned server stealing requests. E.g. if a nodemon server is listening on your IPv6 loopback and the "debug" server is listening on IPv4, or vise versa. Have you rebooted your computer since getting stuck here?

I am having the same issue.
Before I  could just use node --inspect-brk foo.js and toggle auto attach to on, it would work straight away.
Even the auto generated launch.json of attaching to node fails
{
  "configurations": [
  {
    "name": "Attach",
    "port": 9229,
    "request": "attach",
    "skipFiles": [
      "<node_internals>/**"
    ],
    "type": "pwa-node"
  }
  ]
}

with
name": "Attach",
          ^

SyntaxError: Unexpected token ':'
    at wrapSafe (internal/modules/cjs/loader.js:1054:16)
    at Module._compile (internal/modules/cjs/loader.js:1102:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE

In the terminal I cannot use node version 10, but can use version 12 (Both use the same version of npm 6.14.4)
nvm use 10
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '"/Users/paulrobinson/Library/Application'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at Module._preloadModules (internal/modules/cjs/loader.js:901:12)
    at preloadModules (internal/bootstrap/node.js:602:7)
    at startup (internal/bootstrap/node.js:273:9)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `npm config delete prefix` or `nvm use --delete-prefix v10.20.1` to unset it.

This whole update has seriously affected my ability to debug, which is rather fustrating.

@Niffy your issue is different, please follow the second set of instructions here to fix it: https://github.com/microsoft/vscode/issues/102057#issuecomment-657728467

Okay, great, thanks! I noticed you had debugger statement in /api/checkout/discount, so I

Npm installed'd
Uncommented the hasPerm middleware and tried hitting that debugger statement
F5'd
curl'd against that endpoint

Are there any additional steps needed here?
I wonder whether there's something happening on your network / some orphaned server stealing requests. E.g. if a nodemon server is listening on your IPv6 loopback and the "debug" server is listening on IPv4, or vise versa.  After restarting the whole machine, debugger; statements began breaking again as expected. If I switch from launch to attach in launch.json, for example:
    {
      "name": "Attach",
      "port": 9229,
      "request": "attach",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "type": "pwa-node"
    },

It currently attaches fine if I manually press F5 or the "Start Debuggging" button, but how can I get auto-attach to work again, so I can just type npm run debug at the integrated terminal, and it automatically runs the debugger attached to it?

Good to hear!
In 1.47.2 we reverted auto attach to its pre-1.47.0 behavior, so it should work identically as before.
Alternately, you can use the JavaScript debug terminal ("Create JavaScript debug terminal" command, or through the terminal switcher dropdown) and npm start inside of there.

@connor4312 I see no option for "Auto Attach" in the status bar. I'm not sure how it was previously there, or how I previously enabled auto-attachment. This is my launch.json config:
    {
      "name": "Attach",
      "port": 9229,
      "request": "attach",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "type": "pwa-node"
    },

Can you please advise how to enable auto-attachment —whatever the previous way was (which is also now the current way as you said)?

If you have it set to "disabled", it doesn't appear in the status bar. You can use the "Toggle Auto Attach" command to turn it back on, or manually update the debug.node.autoAttach setting in your user settings.

@connor4312 I believe I have done that here:

But still there is no auto-attach occurring when I type npm run debug in the integrated terminal, nor is there an "Auto Attach" shown in the status bar.

There's the hint there "Also modified in: Remote" which indicates that that setting is being overridden with a setting specific to your remote WSL

That's because I enabled it within both:

I even restarted all VSCode instances after setting "Auto Attach" to "On", but that did not make auto-attaching work or show up in the status bar.

Did the @builtin debug-auto-launch extension get disabled somehow? Any errors in the log if you run the Open Developer Tools command?

If this is what you're refer to, then I believe it is "Enabled":

No errors in the Chrome devtools that pops up after choosing "Developer: Open Webview Developer Tools" from Ctrl+Shift+P. However, devtools oddly no longer opens after it did the first time, even after exiting all instances of VSCode and reopening.

I'm not entirely sure what the issue is then. @weinand have you seen this before? (https://github.com/microsoft/vscode/issues/102834#issuecomment-663115993)

Not sure why this was closed, the latest update did not resolve the issues. I will enumerate the current problems with debugging:

No ability to "Auto-Attach", as explained above.

Hotreloading does not work whether using attach or launch with the following "scripts" line in package.json

    "debug": "NODE_ENV=development DEBUG='knex:*' nodemon --inspect ./server.js"

And the following launch.json:
{
  "configurations": [
    {
      "name": "Attach",
      "port": 9229,
      "request": "attach",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "type": "pwa-node"
    },
    {
      "name": "Launch via NPM",
      "request": "launch",
      "restart": true,
      "trace": true,
      "runtimeArgs": [
        "run-script",
        "debug"
      ],
      "runtimeExecutable": "npm",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "type": "pwa-node"
    }
  ]
}

The devtools window that opens after selecting Developer: Open Webview Developer Tools from Ctrl+Shift+P no longer shows, even after updating and restarting VSCode and Windows 10.

Work has been impractical with the manual stopping/starting of the server to pickup the file changes. Please help.

Sorry, closed this accidentally with others.

Ping @weinand -- have you seen this before? Currently we're using the old auto attach behavior in VS Code.
Please open a separate issue for this with details :)
The webview developer tools will always no-op if there's no webview visible.

~3.~

Same issue here! This launch.json used to work fine
        {
            "type": "node",
            "request": "launch",
            "name": "Debug Marbot Infra",
            "protocol": "inspector",
            "program": "${workspaceFolder}/apps/marbot-infra/src/main.ts",
            "outFiles": ["${workspaceFolder}/dist/apps/marbot-infra/main.js"],
            "sourceMaps": true
        }

After an update (don't know which one) I'm getting
import * as express from 'express';
^^^^^^

SyntaxError: Cannot use import statement outside a module

@msanandrea your problem is https://github.com/microsoft/vscode/issues/102873#issuecomment-674999289

@msanandrea your problem is #102873 (comment)

Thanks! This works!
 {
            "type": "node",
            "request": "launch",
            "name": "Debug launcher",
            "protocol": "inspector",
            "program": "${workspaceFolder}/apps/launcher/src/main.ts",
            "outFiles": ["${workspaceFolder}/dist/**/*.js"],
            "sourceMaps": true
}

@msanandrea BTW, the "protocol" and "sourceMaps" properties are no longer necessary...

Hi @weinand, this still hasn't resolved with the latest update 1.48.2. I still have no ability to auto-attach. I'm happy to share my screen, even give you control, as I imagine debugging should be far easier that way.  It's been months like this, please help.

The new version of VS Code (1.49) contains an entirely new version of auto attach -- a better version of what we briefly had in the 1.46 update. Give us a shout if it works better for you.

Hi @weinand , this is happening again after last update! version 1.50.1
{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Debug Web Utils API",
      "program": "${workspaceFolder}/apps/web-utils-api/src/main.ts",
      "outFiles": ["${workspaceFolder}/dist/apps/**/*.js"]
    }
  ]
}

import * as express from 'express';
^^^^^^

SyntaxError: Cannot use import statement outside a module

Make sure your code is compiled to your outFiles.
Closing this issue as auto attach uses a new strategy and we've not heard back from the submitted whether they still have an issue.


Quickstart Doesn't Work

What's going on?
The quickstart does not work. Gives the following error message:
Failed to compile ...XMLHttpRequest.js
Module not found: Can't resolve './RCTNetworking' in ...

Steps to reproduce

Run the quickstart commands. npx ignite-cli new <app_name> --expo
Run the app cd <app_name> then yarn start

ignite doctor results:
System
  platform           darwin
  arch               x64
  cpu                12 cores     Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  directory          MyApp    /Users/me/Coding/MyApp

JavaScript (and globally-installed packages)
  node               12.18.4      /usr/local/bin/node
  npm                6.14.6       /usr/local/bin/npm
    apollo           2.31.0
    expo-cli         4.0.17
    ignite-cli       6.1.1
    lerna            3.22.1
    npm              6.14.6
  yarn               1.22.5       /usr/local/bin/yarn

Ignite
  ignite-cli         6.1.1        /usr/local/bin/ignite
  ignite src         build        /usr/local/lib/node_modules/ignite-cli/build

Android
  java               11.0.8       /usr/bin/java
  android home       -            undefined

iOS
  xcode              12.3
  cocoapods          1.10.1       /usr/local/bin/pod

I am also getting the same issue.
Module not found: Can't resolve './RCTNetworking' in '..\node_modules\react-native\Libraries\Network'

Same issue, why is this closed?


Clear Writing, Poor Example

This is a good article to get an experienced developer started with authorization. The example application, however, was poorly chosen, in  my opinion. The problem is that the app uses contacts to create, edit, approve, contacts! Consequently, the example does not draw a sharp distinction between the authorization scheme/model and the domain model.
Readers would be better served, I believe, if this document were rewritten using Contoso, Northwinds, or any other example where who is authorized is sharply distinct from what is being authorized, and where. Further, changing the example requires only very little change in the text.

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

ID: b66f8ffa-699c-8b11-0cab-805f5953805f
Version Independent ID: 7c151ed5-fd78-84fd-a08a-88912990c4ca
Content: Create an ASP.NET Core app with user data protected by authorization
Content Source: aspnetcore/security/authorization/secure-data.md
Service: unspecified
Product: aspnet-core
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

@rchrismon  thanks for your comment. Unfortunately we don't have the resources to rewrite the app/doc. I hope to update it for 2.1 soon.


Remove xfail for RxSwift/RxCocoa

https://bugs.swift.org/browse/SR-11136
Issue appears to be resolved as of Xcode 11 beta 5. Removes associated xfail.
$ ./runner.py --swift-branch master --swiftc /Applications/Xcodes/Xcode-11.0-beta-5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --projects projects.json --include-repos 'path == "RxSwift"' --include-versions 'version == "5.1"' --include-actions 'action.startswith("Build")'
...
UPASS: https://bugs.swift.org/browse/SR-11141, RxSwift, 5.1, 70b8a3, RxCocoa, platform=macOS

Note that I'm waiting to start testing until we have Xcode 11 beta 5 installed on CI.


Write a Java program to find lcm of two numbers by recursion

Description
Write a Java program to find lcm of two numbers by recursion
LCM (Least Common Multiple) of two numbers is the smallest number that can be divided by both numbers. For example, the LCM of 15 and 20 is 60 and LCM of 10 and 15 is 30.
Input  : 12 18
Output : 36

How to contribute

Save the solution in FindLcmOfTwoNumbersByRecursion.java file
Add FindLcmOfTwoNumbersByRecursion.java file in find-lcm-of-two-numbers-by-recursion folder

Can I work on this?

!assign


Import some data to existing PI points from a CSV File

Description from Lonnie:
Just a simple csv file with each row as a timestamp + values, and the columns (header), the point names (this could be any number of points).

This use case is very interesting, there is a small difficulty where the data format could be different from one use case to another.  So we'd need to either implement one way, that we believe can be common for most of the use cases, or find a way to provide the utility with a template that will define how the data is stored in the data file(s).

To keep it simple, I think just have a fixed file format:
TimeStamp, Tag1, Tag2, Tag3, ...
DateTime, Value1, Value2, Value3 ...
DateTime, Value1, Value2, Value3 ...
...
We can use the point information in PI to figure out the type (numeric, digtal, string, etc...) and try to do the conversion to the proper type before writing to PI. If the conversion fails the operation stops. It may be nice to be able to run the command without actually writing the values to PI just to make sure all the conversions are OK.

This use case looks good Lonnie.
I would probably also look for:
TimeStamp, Tag1, Value1
TimeStamp, Tag2, Value2
...
as sometimes values are not at the same timestamp.
I'll give it a shot in the next coming days.

Good point about timestamps, how are you going to handle the application being able to recognize the two different file formats?

I'll start with the first scenario, and see how this can be generalized / refactored... I have to put my hands in the dirt to see how this can be, perhaps the easiest will be to implement the data parsing part as an Interface, so we can expand by writing creating new classes based on this interface. You'd have to tell about the file format at the command line. If you have suggestions they are welcome.

Hello Lonnie,  I could not yet find the time to implement this feature, however I did some other work in the dev branch where I needed to use load data from a text file. See Library.DataHandling.FileLoaded class.  This class can read data with headers, that are copy-pasted from Excel (Tab character as a delimiter) to a text file.  Columns that are unknown are ignored. it could be easily transformed to read csv instead.  And this could be a good start I believe because it builds a data table and that can be easily manipulated.  With some naming conventions for column names, we could probably handle all the cases we talked about in this conversation.  Have a good Christmas time ;)


Datashader interactivity

WIP deploy on Colab: datashader_on_colab.ipynb
A goal of this project is to handle large datasets. This mean 2D, 3D, 4D embedding of millions of cells. Datashader is a good idea for that.
Another goal is to be highly interactive.

It seems Bokeh works well with Datashader
Datashader Interactivity
Bokeh comes pre-installed on Colab
Ergo, Datashader and Bokeh.

(Perhaps even without a running kernel? If served via HTTP, Colab will cache images (~20 MB?). But unless all "tiles" pre-rendered, coverage will be spotty.)

Here's blois, a Google support person saying:

When navigating to the running server it is currently failing because it's attempting to connect with a websocket.

Bokeh docs

Running a Bokeh Server
Bokeh Server Architecture

Plotly
Perhaps Plotly is better than Bokeh in that a server is not required?
Plotly: DataShader Case Study in Python/v3

Critical is to call once:


Creation and inorder and preorder traversal on Threaded binary tree

💥 Threaded Binary Tree
A binary tree is threaded by making all right child pointers that would normally be null point to the in-order successor of the node (if it exists), and all left child pointers that would normally be null point to the in-order predecessor of the node. So in this program we can perform the following Operations :-

Creation
Inorder Traversal using TBT
Preorder traversal using TBT

Have you read the Contributing Guidelines on Pull Requests?
Yes i have read the guidelines and i m propsing this issue as it is an important concept of dsa and it was not yet come up in hakin codes . So i thought of doing it :)

@Kajol-Kumari @SKAUL05 @siddharth25pandey @Abhijit2505 @HarshCasper could any of u pls assign me this in C++  and also add relevant labels to it for as a part of hakin codes.

I would like to take it in Java as part of CH20

@Kajol-Kumari  @SKAUL05 @siddharth25pandey @Abhijit2505 @HarshCasper I would like to take up this in C as a part of HakinCodes 2020. Thank you in advance!

@Kajol-Kumari @SKAUL05 @siddharth25pandey @Abhijit2505 @HarshCasper Could u pls assign and add relevant labels so that we can start doing the code :)


Add project info change command

Before submitting the PR, please go through the sections below and fill in what you can. If there are any items that are irrelevant for the current PR, remove the row. If a relevant option is missing, please add it as an item and add a PR comment informing that the new option should be included into this template.

All relevant items should be ticked before the PR is merged

Adds new command for changing certain project info items: title, description, and PI
Works with https://github.com/ScilifelabDataCentre/dds_web/pull/1331

[x] Add a summary of the changes and the related issue
[x] Add motivation and context regarding why the change is needed
[x] List / describe any dependencies or other changes required for this change
[x] Fixes DDS-1404

Type of change

[x] New feature (non-breaking)

Checklist:
General

[x] Changelog: New row added. Not needed when PR includes only tests.
[ ] Code change

[x] Self-review of code done
[x] Comments added, particularly in hard-to-understand areas
[ ] Documentation is updated

Repository / Releases

[ ] Blocking PRs have been merged
[ ] Rebase / update of branch done
[ ] PR to master branch (Product Owner / Scrum Master)

[ ] The version is updated

[ ] I am bumping the major version (e.g. 1.x.x to 2.x.x)

[ ] I have made the corresponding changes to the API version

Checks

[x] Formatting: Black & Prettier checks pass
[x] CodeQL passes
[ ] Tests

[ ] I have added tests for the new code
[ ] The tests pass

@valyo Conflict resolving here 🙏🏻


DEC Line support under CP437 font

Implemented and uploaded.
Is available for graphical ANSI charsets and ASCII charset (rudimentary for ASCII).


Add vue2-migration-helper

Added a new sections named tools and a tool/helper library.

I saw that your lib is WIP. Could submit this PR again once it will be ready?

Yeah, it is. Can I add [WIP] to the pull title?


⚠ Bofrost.be has degraded performance

In c90f15b, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1491 ms

Resolved: Bofrost.be performance has improved in 3b44c9a.


Add ownerNoPings option to prevent GitHub pings

This closes #42, adding a ownerNoPings option to prevent pinging certain people.
This codepath has been tested at schemastore since this MR.

Cool, this seems good to me - the tests I can live without


A questions (and/or suggestions)

Nativefier is a very cool app. I have some questions about the features or suggestions if the features are not there yet.

Is there a way to disable Developer Tools in the app?
Is there a way to use Chrome Extensions within the app?
Is there a way to have two windows within the same app? So I can run them side by side? Or maybe a split screen?

It's always enabled, for easy debugging. It would be possible to set a command line flag to prevent it from showing up though.

I believe this has been brought up before, but this is not supported :(

You can right click on certain links to open them in a new window, but the purpose of nativefier is for single page apps like twitter, whatsapp etc.!

I'd love for a way to disable Developer Tools!

(1) (Y)
(3) It would be great to have multiple windows open per default, because some one window apps are even more great next to each other. Like Gmail.

+1 for command line flag to disable developer tools. This is extremely necessary for a project I'm building. I do not want my end users to have the ability to open dev tools. @jiahaog any chance we could get this added? I feel this is a feature many people would appreciate.

Hmm, I don't think supporting multiple windows is a good idea, it requires a lot of functionality (such as address bar, back button) for each window that makes it too similar to a browser, and you might as well use chrome instead?

@jiahaog I don't think there is a need for address bar, back button, etc. I'd like a single application to run in multiple windows next to each other. Just having two different URLs open in two windows. It's like starting two apps.
Something like:
nativefier https://mail.google.com/mail/u/0/ https://mail.google.com/mail/u/1/

Will create one app and when you run it, it will open two windows next to each other (like split screen) which two different gmail accounts. It would be even better if the whole app is just one windows which is split in half.
The biggest difference for me which running Chrome is that I want to have dedicated app for different tasks. So I can start my MailApp, which opens 2 of my most used e-mail clients. Or SocialApp, which opens Twitter and Facebook next to each other etc.
Is my use case more clear now?

Sorry for the late reply! I understand your use case, and it makes alot of sense to have all my email accounts on one app, and social accounts on another app. It is definitely possible to do so, by specifying different configurations to the MainWindow when it is instantiated. It is going to take some work to do so, to generalise the CLI to allow multiple urls as well as to restructure the app to be linked to multiple windows, which I currently do not have time to do so :( Would you like to work on a pull request for this?

@jiahaog At this moment I don't have the experience (and time) to work on a pull request. Just add it to the TODO, maybe something will change after the summer :)

I'll add it to future, thanks so much!


Test output order incorrect when using loops

Given this test file:
{{
  module.exports = require('../../tests/')

  const body = { id: '{{$guid}}', hello: 'world' }
  module.exports._testBody = body
  module.exports._propertiesToRemove = Object.keys(body)
}}

### Test 1
https://httpbin.org/status/200

{{
  tests.status.is(test, response, { val: 200 })
}}

### Test 2
POST https://httpbin.org/post
Content-Type: application/json

{{_testBody}}

{{
  tests.status.is(test, response, { val: 400 })
}}

### Test 3 (bug)
# @loop for property of _propertiesToRemove
{{
  const body = { ..._testBody }
  delete body[property]
  module.exports._bodyWithPropertyRemoved = body
}}
POST https://httpbin.org/post
Content-Type: application/json

{{_bodyWithPropertyRemoved}}

{{
  tests.status.is(test, response, { val: 200 })
}}

We get this result:

Note: using version 5.3.0

There is a general problem, how the loopMetaDataHandler currently works. With the commit from just now, it already works to some extent, but I can still figure out error sources. This currently requires special logic and also duplicates code from other hooks. I'll have to clean that up. That's why for example #242 doesn't work, because I forgot to add the necessary code to loopMetaDataHandler.

By changing how the loopMetaDataHandler works in 7de59855a6025e70eb274981e76e0315aed9eaee, the error was corrected. This allowed me to remove some hacks. The logs should now be correct when executed. Thanks.

Works fine now, thanks!


Test and Release v5.0.0

Is your feature request related to a problem? Please describe.
N/A
Describe the solution you'd like
N/A
Describe alternatives you've considered
No response
Additional context
No response

@Xlin123 Would you be willing to help me with this?

All packages have been published to pub.dev.

Thank you!


doesn't work on redhat 7

it says unzip: command not found, isn't it supposed to install unzip if it is not installed?

This is an issue.

Is there a Fedora equivalent that I can consistently verify this against?

@burtlo centos 7 is going to be a better analog for RHEL than fedora will be

@burtlo I have the same issue on centos 6
platforms:
  - name: centos-6.6
  - name: centos-7

Looking at https://github.com/phlipper/chef-zip, it appears unzip is installed as a separate package on rhel-based systems.

We're including unzip on RHEL hosts so this shouldn't be an issue on master.  My test kitchen runs on RHEL 7 execute just fine.


If undefined value is returned revert to input value

@Baril27  thanks for your contribution, I am going to merge this and start to do some refactor I have to do.
Best regards,
Daniel.


URGENT: cloud section

https://github.com/cloudmesh/book/blob/dev/part/icloud.tex

[ ] fix page length in the right position
[ ] introduce the subsections
[ ] add the where commands to the syllabus of 516 to all sections
[ ] add the where commands to the syllabus of 616 to all sections
[ ] post release of lectures to piazza 516
[ ] post release of lectures to piazza 616

@laszewsk
Fix page length in right position means the slide number in the right place in fundamentals.tex file ?
Am I right ?
Could you please give a brief description on each job. Tyler and I discussed, it is a bit unclear to us. As soon as it is clear we can finish it within an hour.

Pages were updated accordingly 6 days ago.

@tbalson
are we done with the unticked tasks ?
I am not sure. Could you please check.

Tyler and I completed the task.


Add a way for plugins to respond to hot restarts

Plugins sometimes need to reset some state when the engine is hot restarted, e.g the video player needs to clear open videos on a hot restart.
There is no hook for that right now, and plugins end up working around in approximate and fragile ways, e.g:
https://github.com/flutter/plugins/blob/7af9a1a385fe632d5a8b7b698d8b29e2e997326a/packages/video_player/video_player/lib/video_player.dart#L12
As it is the platform-side code that needs to restart, we can probably just expose some hook through the plugins API. We are currently exposing this to the embeddings through the  OnPreEngineRestart hook.

Isn't this the same as https://github.com/flutter/flutter/issues/10437 ?

It is, forgot about it, thanks.
Duplicate of #10437


Copy/paste issue aftrer patch 8.0.0962

Hello.
Patch 8.0.0962 brings new issue with copy / paste under windows.
When I paste text in insert mode, it shift cursor position to the 1 char. to the left.
Eg. if I paste string "12345", i expected, that after paste cursor will be after "5", but if appears after "4".

Patch 8.0.0962 brings new issue with copy / paste under windows.
When I paste text in insert mode, it shift cursor position to the 1
char. to the left.
Eg. if I paste string "12345", i expected, that after paste cursor
will be after "5", but if appears after "4".

Please provide more information.  Did you start with "vim --clean"?
How exactly do you paste?
--
hundred-and-one symptoms of being an internet addict:
4. Your eyeglasses have a web site burned in on them.
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reproduced after seeing your comment at here: https://github.com/vim/vim/commit/9aa156912867c05e0a6480925afe11c590378f09#commitcomment-23834209
Execute gvim with gvim --clean -c "runtime mswin.vim", move the cursor to the end of an line, go to insert mode with a and type Ctrl-V.
It doesn't happen when the cursor is in the middle of an line.

The behavior of :normal! "+gP is changed by 8.0.0962 when set virtualedit=all.
Before the patch, the cursor goes to next column of the last character after pasting by :normal! "+gP.
After the patch, the cursor goes on the last character (not next of it) after pasting.
If "+gP is used, both behave the same (go to next of the last char).

is this issue fixable?

@zdm Not yet. But I remove the line source $VIMRUNTIME/mswin.vim and the issue go away.

@boytom this is not an options, i need behave mswin

please give an easy reproducible example

Put some text into the clipboard. e.g. 456
Then,
$ vim --clean
:set ve=all
i123<Esc>  " Input some text
A<Ctrl-O>:normal! "+gP<Enter>

(These steps simulate paste#Paste() in autoload/paste.vim which is used from mswin.vim.)
The result is:
Before 8.0.0962: 123456
After 8.0.0962: 124563
It seems that my previous example was not enough.
Executing :normal! "+gP from the insert mode via Ctrl-O seems to cause the difference.
Interestingly, A<Ctrl-O>"+gP doesn't cause the difference.

That script is from 2006. It looks like it needs to be reworked. To keep the changes small, here is a patch that works for me.
diff --git a/runtime/autoload/paste.vim b/runtime/autoload/paste.vim
index fcf06ecdf..705e58dcb 100644
--- a/runtime/autoload/paste.vim
+++ b/runtime/autoload/paste.vim
@@ -12,7 +12,7 @@
 if has("virtualedit")
   let paste#paste_cmd = {'n': ":call paste#Paste()<CR>"}
   let paste#paste_cmd['v'] = '"-c<Esc>' . paste#paste_cmd['n']
-  let paste#paste_cmd['i'] = 'x<BS><Esc>' . paste#paste_cmd['n'] . 'gi'
+  let paste#paste_cmd['i'] = "\<c-\>\<c-o>\"+gP"

   func! paste#Paste()
     let ove = &ve


IRGen: give thunks hidden visibility

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

The thunk already has internal linkage and is marked as an unnamed_addr symbol.
Mark the thunk as hidden visibility rather than default visibility.

CC: @rjmccall

@swift-ci please smoke test

@swift-ci please smoke test

I don't think hidden visibility is valid in combination with internal linkage in LLVM IR.

Yeah, I saw that in the LangRef later.  However, does it make sense for the thunks to be emitted such that they are externally visible?  Shouldn't the symbol be entirely private to the module?

Not sure what you mean.  Are there situations where the thunk has non-internal linkage?

Hmm, I guess thats the thing about this which is confusing.  It has internal linkage, but default visibility, so the symbol is visible outside, just won't be bound to.

It's not visible outside.  Linkage and visibility are not fully orthogonal.

Closing this due to age.


first ^J doesn't paste selection if Continue view is folded.

Before submitting your bug report

[X] I believe this is a bug. I'll try to join the Continue Discord for questions
[X] I'm not able to find an open issue that reports the same bug
[ ] I've seen the troubleshooting guide on the Continue Docs

Relevant environment info
- OS: Win10
- Continue: installed today
- IDE: IntelliJ Idea Ultimate 2024.1

Description
first ^J doesn't paste selection if Continue view is folded.
Also, it breaks the tutorial.
To reproduce
Close Continue panel
Select code.
Hit Control+J.
No pasted code.
Log output
No response

@miellaby I see! I've now solved this in VS Code and will fix it for the next JetBrains release later this week


We need to work on the issues s

Web 3D is all the rage nowadays
git-cheat-sheet-education.pdf

this has been resolved


Add batch_get_image support for ECR

Coverage decreased (-0.2%) to 91.975% when pulling 7be7b6ad0ea6f92f7329ce8035f290ebeb0c15e1 on mbjerkness:ecr-updates into e75f3ef4d4f7b0fa7e14dbb4431d379b68ae5502 on spulec:master.

Coverage decreased (-0.2%) to 91.938% when pulling 5661277b7848b4f636d3996efc55769747a22ce8 on mbjerkness:ecr-updates into e75f3ef4d4f7b0fa7e14dbb4431d379b68ae5502 on spulec:master.

Coverage decreased (-0.01%) to 92.131% when pulling 07ff6a1a809f061e954eed7618652f84355c253a on mbjerkness:ecr-updates into e75f3ef4d4f7b0fa7e14dbb4431d379b68ae5502 on spulec:master.

Coverage decreased (-0.01%) to 92.131% when pulling 07ff6a1a809f061e954eed7618652f84355c253a on mbjerkness:ecr-updates into e75f3ef4d4f7b0fa7e14dbb4431d379b68ae5502 on spulec:master.

Coverage decreased (-0.01%) to 92.131% when pulling 07ff6a1a809f061e954eed7618652f84355c253a on mbjerkness:ecr-updates into e75f3ef4d4f7b0fa7e14dbb4431d379b68ae5502 on spulec:master.

@JackDanger I updated the code per your comment. You comment actually highlighted a larger issue that I added some tests for. The code wasn't responding with the right errors in some cases. It should be now.

Coverage decreased (-0.09%) to 92.047% when pulling 0a9104341178429647b48a3c529c818a00eb8a61 on mbjerkness:ecr-updates into e75f3ef4d4f7b0fa7e14dbb4431d379b68ae5502 on spulec:master.

Nice! Thanks, @mbjerkness


Code Review - implementations/c

THIS PR WILL NEVER BE MERGED.

@SanjoDeundiak let's capture whatever we learnt from this PR as issues, link to any discussions that started here in the issue.
After that let's close this PR and instead do module by module reviews over the next few weeks.

@SanjoDeundiak I'm closing this, let's capture any notes as issues.


esl socket reconnecting repeatedly

Hi Dave,
When freeswitch is down, it seems drachtio-modesl try to connect to freeswitch repeatedly.
It seems to be a problem caused by the continuous emission of the net.socket end event.
Could you consider replacing socket end event to close event on the drachtio-modesl side?
Thanks.
   this.socket.on('end', () => {         self.emit('esl::end');         self.socket = null;         if (this._inbound) {             this._onConnectionGone();         }     });

The reason for this is so that apps will automatically reconnect when freeswitch is restarted.  I would not want to remove this feature, unless I am missing your point.

Okay. I could see your backoff reconnection strategy.
BTW, please check this link.
https://github.com/englercj/node-esl/issues/84


Upgrade react version in peer dependencies

Upgrade all packages peer dependencies for react and react-dom to ^16.8.0, as react hooks are used in lots of packages.
see #615

Are you working on it? I can do it if you want.

Thank you for your PR


support many word analyzer

in some situation,we should use different analyzer for different string field.

@mbroecheler this issue should close,it seems the same with #933


Would love to have your complete data set of generalized phosphosites

Hello, I am very interested in your work. I would like to try to train the general sites used in your article. I saw in the article that the general phosphate site data set you used comes from four databases. Could you please Can you provide a complete data set of general phosphorylation sites?

Hi,
The dataset was taken from DeepPSP.


Regenerating TAG proposals on ActivityNet v1.2

Hello @yjxiong, @Tonyfy, I am trying to regenerate proposals on ActivityNet v1.2 (in order to run the ssn algorithm afterwards) using your code to train binary actionness classifiers and generate proposals (TAG). I have successfully generated sliding window proposals (for both training and validation for RGB and Flow parts) and then trained binary actionness classifier for 8 epochs (for RGB and Flow parts) and finally obtained actionness score (for both training and validation for RGB and Flow parts) with no issues reported during these processes. Then I wanted to generate TAG proposals using gen_bottom_up_proposals.py and I got EMPTY activitynet1.2_tag_train_proposal_list.txt & activitynet1.2_tag_val_proposal_list.txt files with following console output:
Got 100 leaf classes out of 151
There are 4819 videos for training, 2383 for validation, 2480 for testing
There are 7151 instances for training, 3582 for validataion
loaded 9032 video folders
video list size: 2383
loading scores...
load 1 piles of scores
done
merging scores
done
generating proposals
0 groundtruth boxes from
/data/users/dek/anaconda3/envs/dek_python3_env/lib/python3.6/site-packages/numpy/core/fromnumeric.py:2957: RuntimeWarning: Mean of empty slice.
out=out, **kwargs)
average # of proposals: nan
IOU threshold 0.5. per video recall: 0.000000, per instance recall: 0.000000
IOU threshold 0.7. per video recall: 0.000000, per instance recall: 0.000000
IOU threshold 0.8999999999999999. per video recall: 0.000000, per instance recall: 0.000000
Average Recall: 0.0000 0.0000
/data/users/dek/anaconda3/envs/dek_python3_env/lib/python3.6/site-packages/numpy/core/_methods.py:80: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
list written. got 0 videos
Process finished with exit code 0
Also during the debugging process when running gen_bottom_up_proposals.py I can see that all these variables are empty lists (except score_list):
proposal_list = [pr_dict[v.id] for v in video_list if v.id in pr_dict]
gt_spans_full = [[(x.num_label, x.time_span) for x in v.instances] for v in video_list if v.id in pr_dict]
gt_spans = [[item[1] for item in x] for x in gt_spans_full]
score_list = [score_dict[v.id] for v in video_list if v.id in pr_dict]
duration_list = [v.duration for v in video_list if v.id in pr_dict]
proposal_score_list = [pr_score_dict[v.id] for v in video_list if v.id in pr_dict]
Could you please let me know why I cannot generate TAG proposals correctly?
Many thanks and with best regards!

Fixed so closing down

I have the same problem. Can you tell me how to solved it?

Hello @tingbao , Actually I had a problem with this script:
https://github.com/yjxiong/action-detection/blob/master/gen_bottom_up_proposals.py
Since the video folders are in this form: v_XXX ... XX what made it work at the end, is to add this representation:

in line 118 should be: vid = "v_" + v.id

in line 162 should be: score_list = [score_dict["v_" + v.id] for v in video_list if v.id in pr_dict]

Hope this helps!

Has this solved your problem @tingbao ?


Bug - Incorrect formatting on Series 4 Watch - 44mm

Pretty self explanatory from this image: https://imgur.com/a/MHK3l0w.
Most likely going to fork it this weekend(3/22-3/24) and attempt to fix it.

Also seems to be happening on the Series 4 - 40mm https://imgur.com/a/VieHR2z


[Tabs] Move updateIndicatorState after render lifecycle

Fix: https://github.com/callemall/material-ui/issues/7902

@markselby9 Looks great, thanks :)


Update compose v2 reference docs, and fix relative_url filter to ignore non-.md links

relates to https://github.com/docker/docker.github.io/pull/13514
brings in the changes from https://github.com/docker/compose/pull/8612

@usha-mandya @ndeloof ptal


Property 🐛 __scanQRCodes doesn't exist!

What were you trying to do?
I follow the tutorial on how to create custom frame processor plugins from the docs/guides but I got the Property __scanQRCodes doesn't exist error. I was trying to implement the plugin for the frame processor inside the same project code, so I try to follow the code from Colorwaver where the __getColorPalette frame processor plugin also inside the same project code. However I still end up with the same error message.
Reproduceable Code
babel.config.js
module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  plugins: [
    [
      'react-native-reanimated/plugin',
      {
        globals: ['__scanQRCodes'],
      },
   ],
  ],
};

index.ts
import type { Frame } from 'react-native-vision-camera'

declare global {
    var __scanQRCodes: (
      frame: Frame,
    ) => string[];
  }
/**
 * Scans QR codes.
 */
export function scanQRCodes (frame: Frame): string[] {
  'worklet'
  return __scanQRCodes(frame)
}

App.tsx
import { scanQRCodes } from '../../../scanCard/src/index'
const frameProcessor = useFrameProcessor((frame) => {
    'worklet';
     const qrCode =scanQRCodes (frame);
 }, [])

What happened instead?
It pop up the Property '__scanQRCodes doesn't exist error message!
Relevant log output
Property '__scanQRCodes' doesn't exist, js engine: hermes

Device
Android 12
VisionCamera Version
2.15.4
Additional information

[ ] I am using Expo
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar issues in this repository and found none.

I was trying to implement the plugin for the frame processor inside the same project code
From my experience, don't do that if you are not an Android + js developer. For rookies a better approach would be, create a new react native project folder for testing and use local dependency to install your WIP frame processor plugin, and you could setup rsync or something similar to sync the files.
A few hacks were needed to make things work if you put both in same project folder and you probably don't want to dive into that while building your frame processor plugin.

ok I found solution, instead of __beautifulFace just write FrameProcessorPlugins.beautifulFace(frame)

ok I found solution, instead of __beautifulFace just write FrameProcessorPlugins.beautifulFace(frame)

where did you import   FrameProcessorPlugins?  I tried importing from react-native-vision-camera, but isn't defined.

which version you using? I am using v3

ah okay, i'm using v2

Hey! I've rewritten the entire Android codebase of VisionCamera from CameraX to Camera2 in the efforts of ✨ VisionCamera V3.
I just now completed the Camera2 rewrite and I believe the core structure is running, but there might be some edge cases to iron out. Can you try and test the PR #1674 for me to see if you can still reproduce this issue here?
Here's an instruction on how you can test that: https://github.com/mrousavy/react-native-vision-camera/pull/1674#issuecomment-1684104217
If the issue cannot be reproduced with that version/PR anymore, then hoorayy, I fixed it! 🎉
Otherwise please let me know and I'll keep this issue open to keep track of it.
Thank you!

Hey!
JFYI; VisionCamera V3 now includes a QR/Barcode Scanner! 😍  Check out the CodeScanner Documentation 🚀
Try upgrading to V3 if you can, it has a much more stable yet flexible foundation.
If you appreciate me dedicating my free time to improving VisionCamera and implementing features like the Code Scanner, please consider sponsoring me on GitHub 💖 to show your support.


ValueError: too many values to unpack in application startup when deployed as a Knative service on Kubernetes

We have a stac-fastapi application, which we want to run on Kubernetes as a Knative service (serverless). We have containerized our application and it runs as expected when we deploy it on K8s using a standard Kubernetes Deployment resource. But the same application image, when deployed as a Knative serverless service, encounters an exception. Here is the exception stack trace:
Defaulted container "user-container" out of: user-container, queue-proxy INFO:     Started server process [1] INFO:     Waiting for application startup. INFO:     Application startup complete. INFO:     Uvicorn running on http://<IP_ADDRESS>:8080 (Press CTRL+C to quit) too many values to unpack (expected 2) NoneType: None INFO:     <IP_ADDRESS>:0 - "GET / HTTP/1.1" 500 Internal Server Error ERROR:    Exception in ASGI application Traceback (most recent call last):   File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi     result = await app(  # type: ignore[func-returns-value]   File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__     return await self.app(scope, receive, send)   File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 270, in __call__     await super().__call__(scope, receive, send)   File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 124, in __call__     await self.middleware_stack(scope, receive, send)   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__     raise exc   File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__     await self.app(scope, receive, _send)   File "/usr/local/lib/python3.10/site-packages/stac_fastapi/api/middleware.py", line 62, in __call__     proto, domain, port = self._get_forwarded_url_parts(scope)   File "/usr/local/lib/python3.10/site-packages/stac_fastapi/api/middleware.py", line 95, in _get_forwarded_url_parts     key, value = part.split("=") ValueError: too many values to unpack (expected 2)
Any suggestions/pointers towards debugging the error will be very helpful.
Tagging other Kubernetes-related issues in case others have seen this error #399 #412

Hi @devdattakulkarni. Any progress with this?

Hi @jonhealy1 We are not using Knative service now - instead going with standard Kubernetes Deployment. With that, we have not encountered this error.

Good to hear. Thanks for the quick reply


Can't find gmail messages

Describe the bug
I can't find emails on gmail at all. Only return an empty set
Steampipe version (steampipe -v)
steampipe version 0.6.2
Plugin version (steampipe plugin list)
googleworkspace v0.0.2
To reproduce
steampipe query "select
       id,
       thread_id,
       internal_date,
       size_estimate,
       snippet
     from
       googleworkspace_gmail_my_message
     order by internal_date
     limit 10;
     "
+----+-----------+---------------+---------------+---------+
| id | thread_id | internal_date | size_estimate | snippet |
+----+-----------+---------------+---------------+---------+
+----+-----------+---------------+---------------+---------+

Expected behavior
To see 10 e-mails from my mailbox

Just found the problem: for some reason, my project didn't have access to the GMail API (nor the Drive API, to be honest, but the Drive API gave me an error and the GMail one silently failed).
Don't know if there's something to do here (maybe show an error like the drive API shows), but if you want, you can close this issue. Great work BTW :+1:

Great to know you are finding the plugin useful @mauricioszabo!
Was your error triggered because the APIs had not been used before / not been enabled? This is a bit different from not having permission - I'm wondering which case you hit here? I suspect the API was not enabled, because in that case we normally catch / ignore the error and return zero rows.
The reasoning is that since the API is not enabled there can't be any content. As opposed to other Google services (e.g. GCP), I guess that's not quite true in the specific case of email or some of these workspace items....
https://github.com/turbot/steampipe-plugin-googleworkspace/blob/main/googleworkspace/not_found.go#L16

Yes, I think we should. If the resources Cabot exist because the API is disabled then return zero rows. But if resources can be created while the API is disabled then we should return an error.

Hey @mauricioszabo , this has been fixed in https://github.com/turbot/steampipe-plugin-googleworkspace/commit/33e8ff2b87f12f6626f686221f70dab1ec800ff7 as part of v0.0.3.
Now, if the service API is disabled, the error will be shown to let you know the API needs to be enabled. If you see any other issues, please let us know!


Secrets are not syncing even though they are mounted in the pods

What steps did you take and what happened:
Secret Store CSI Driver Azure Provider is installed via Helm chart version 0.2.0:
https://github.com/Azure/secrets-store-csi-driver-provider-azure/tree/master/charts/csi-secrets-store-provider-azure
A SecretProviderClass is created for each namespace where we need to get secrets from Azure Key Vault.
Secrets from the Azure Key Vault are mounted in the pods, but they are not created as secrets in Kubernetes. We get the following error from KubeEvent:
Warning  FailedToCreateSecret  9m40s (x19 over 31m)  csi-secrets-store-controller  timed out waiting for the condition
What did you expect to happen:
That the secrets from the Azure Key Vault would be created as Kubernetes secrets when the pods are starting and mounting the secrets.
Anything else you would like to add:
Output from kubectl describe SecretProviderClass:
Name:         keyvault-secrets-provider
Namespace:    testing
Labels:       app.kubernetes.io/managed-by=Helm
Annotations:  meta.helm.sh/release-name: testing-secrets-provider
              meta.helm.sh/release-namespace: testing
API Version:  secrets-store.csi.x-k8s.io/v1alpha1
Kind:         SecretProviderClass
Metadata:
  Creation Timestamp:  2021-09-23T12:00:30Z
  Generation:          1
  Managed Fields:
    API Version:  secrets-store.csi.x-k8s.io/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .:
          f:meta.helm.sh/release-name:
          f:meta.helm.sh/release-namespace:
        f:labels:
          .:
          f:app.kubernetes.io/managed-by:
      f:spec:
        .:
        f:parameters:
          .:
          f:cloudEnvFileName:
          f:cloudName:
          f:keyvaultName:
          f:objects:
          f:tenantId:
          f:usePodIdentity:
        f:provider:
        f:secretObjects:
    Manager:         Go-http-client
    Operation:       Update
    Time:            2021-09-23T12:00:30Z
  Resource Version:  7178347
  UID:               a75a07dd-3fbf-46e8-9e8e-9e5c74f2e805
Spec:
  Parameters:
    Cloud Env File Name:
    Cloud Name:
    Keyvault Name:        testing-kv
    Objects:              array:
  - |
    objectName: secret1
    objectAlias: secret1
    objectType: secret
    objectVersion: ""
  - |
    objectName: secret2
    objectAlias: secret2
    objectType: secret
    objectVersion: ""
  - |
    objectName: secret3
    objectAlias: secret3
    objectType: secret
    objectVersion: ""

    Tenant Id:         removed
    Use Pod Identity:  true
  Provider:            azure
  Secret Objects:
    Data:
      Key:          secret1
      Object Name:  secret1
    Secret Name:    secret1
    Type:           Opaque
    Data:
      Key:          secret2
      Object Name:  secret2
    Secret Name:    secret2
    Type:           Opaque
    Data:
      Key:          secret3
      Object Name:  secret3
    Secret Name:    secret3
    Type:           Opaque
Events:             <none>

Output from kubectl describe pod:
Name:         testing-696b8cd677-5r5jk
Namespace:    testing
Priority:     0
Node:         aks-agentpool-46969440-vmss000002/<IP_ADDRESS>
Start Time:   Thu, 23 Sep 2021 13:43:09 +0200
Labels:       aadpodidbinding=testing
              app=testing
              pod-template-hash=696b8cd677
              tag=master-20210923.1
Annotations:  apparmor.security.beta.kubernetes.io/pod: runtime/default
              container.apparmor.security.beta.kubernetes.io/testing: runtime/default
Status:       Running
IP:           <IP_ADDRESS>
IPs:
  IP:           <IP_ADDRESS>
Controlled By:  ReplicaSet/testing-696b8cd677
Containers:
  testing:
    Container ID:   containerd://b16737dfddf8cceeb3ca33e643c34d7b25d2d25f77eba57cfe9fef3c0c8642e8
    Image:          example.azurecr.io/services/testingounts:master-20210923.1
    Image ID:       example.azurecr.io/services/testingounts@sha256:636a6cd997f7f786976e94337d1f594199373eeeb07e3fca31a2a9e246200dc6
    Port:           5000/TCP
    Host Port:      0/TCP
    State:          Running
      Started:      Thu, 23 Sep 2021 13:43:21 +0200
    Ready:          True
    Restart Count:  0
    Limits:
      cpu:     40m
      memory:  128Mi
    Requests:
      cpu:        40m
      memory:     128Mi
    Environment:  <none>
    Mounts:
      /app/appsettings.env.json from appsettings (rw,path="appsettings.env.json")
      /mnt/secrets-store from secrets-store-inline (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             True
  ContainersReady   True
  PodScheduled      True
Volumes:
  appsettings:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      testing-appsettings
    Optional:  false
  secrets-store-inline:
    Type:              CSI (a Container Storage Interface (CSI) volume source)
    Driver:            secrets-store.csi.k8s.io
    FSType:
    ReadOnly:          true
    VolumeAttributes:      secretProviderClass=keyvault-secrets-provider
QoS Class:             Guaranteed
Node-Selectors:        <none>
Tolerations:           node.kubernetes.io/memory-pressure:NoSchedule op=Exists
                       node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                       node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason                Age                   From                          Message
  ----     ------                ----                  ----                          -------
  Normal   Scheduled             31m                   default-scheduler             Successfully assigned testing/testing-696b8cd677-5r5jk to aks-agentpool-46969440-vmss000002
  Normal   Pulled                31m                   kubelet                       Container image "example.azurecr.io/services/testingounts:master-20210923.1" already present on machine
  Normal   Created               31m                   kubelet                       Created container testing
  Normal   Started               31m                   kubelet                       Started container testing
  Warning  FailedToCreateSecret  9m40s (x19 over 31m)  csi-secrets-store-controller  timed out waiting for the condition

Secrets are mounted to the Pod:
dotnetuser@testing-696b8cd677-5r5jk:~$ ls /mnt/secrets-store/
secret1  secret2  secret3

Which access mode did you use to access the Azure Key Vault instance:
PodIdentity
Environment:

Secrets Store CSI Driver version: (use the image tag): 0.3.0
Azure Key Vault provider version: (use the image tag): 0.2.0
Kubernetes version: (use kubectl version and kubectl get nodes -o wide): 1.21.2
Cluster type: (e.g. AKS, aks-engine, etc): AKS

@JSvedberg85 Thanks for opening the issue. Have you enabled syncSecrets while deploying? You can set secrets-store-csi-driver.syncSecret.enabled=true as part of helm install/upgrade

Hi, sorry for not including that in the original post.
This is the output from helm get values:
USER-SUPPLIED VALUES:
linux:
  image:
    repository: internalrepo.local:8443/oss/azure/secrets-store/provider-azure
secrets-store-csi-driver:
  linux:
    image:
      repository: internalrepo.local:8443/oss/kubernetes-csi/secrets-store/driver
    livenessProbeImage:
      repository: internalrepo.local:8443/oss/kubernetes-csi/livenessprobe
    registrarImage:
      repository: internalrepo.local:8443/oss/kubernetes-csi/csi-node-driver-registrar
  syncSecret:
    enabled: true

@JSvedberg85 Could you check if role secretprovidersyncing-role and role binding  secretprovidersyncing-rolebinding exists?
Also, could you provide yaml output of SPC configuration and the driver container logs?


New package: AD4SM v0.1.1

Registering package: AD4SM
Repository: https://github.com/avigliotti/AD4SM.jl
Created by: @avigliotti
Version: v0.1.1
Commit: 2e2b7ddefcc90588501b5e21d6690af2497b2259
Reviewed by: @avigliotti
Reference: https://github.com/avigliotti/AD4SM.jl/commit/2e2b7ddefcc90588501b5e21d6690af2497b2259#commitcomment-39057208

please neglect this pull request, it has been replaced by another submitted  a few minutes later.
(this is first attempt at registering a package, apologies for the confusion)


Language: ThiefCant

i have 2 rouges in my party, who uses discord atm to talk with each other in thiefcant, but it would be fun/neat/silyl fo rthem to talk over in foundry instead, lots of love

They should be able to just pick the language and speak in it, can't they?