regression: Re-include hi clear etc in apply breaks highlight for startup screen

755646717d4c7e538db8e231e5c7293114a9cb7c breaks the highlights for the initial screen when nvim is started (v0.8.0-dev+266-g976f32aa7a, but same thing happens on the v0.7* release)
I've bisected the issue to the above mentioned commit.
The issue manifests itself when one just starts nvim, without doing anything
lush.nvim v1.0.0:

lush.nvim main:

Issuing some nonsensical highlight command then resets the highlights to the proper colors (though that does get rid of the welcome screen so it's harder to tell).

So something seems to be off or missing a redraw request to nvim?
Not sure if this is a lush bug or neovim, in case I can help you in any way please say how.

Thanks for the bisect!!!
I will try and get a clean reproduction locally. What terminal and system are you on, probably not relevant but good to know.
I did notice something similar when doing the lua-hl update but at that time it was an actual bug (from memory, it was related to the code posted, not calling hl-clear, but in the realtime lushify side), but when I fixed that I never saw it again.
My suspicion was that it was something in nvim itself and the lua highlight API, where:

you already have a highlight drawn
you update that highlight definition via the lua api, with some unspecified internal nvim conditions
the highlight may not be updated on-screen (?)

It's possible that the vim.cmd & nvim_set_hl have some kind of collision.
You could experiment with sticking a :redraw command in there, before and after we pass the hl-defs to the API and see if that has any effect. Ideally we would not have to call that each time as I think it can have a noticeable performance impact.
You could also check set lazyredraw?, which may have an effect. Mine is nolazyredraw for reference.
I also wonder if applying the commands one at a time, and ensuring the g:colors_name has an actual value (are we running before it has one? it should have a value...) may have an effect.

Can you confirm whether you are setting the highlight group SpecialKey?
You can see the value and where it is set with :verbose hi SpecialKey
:verbose hi SpecialKey
SpecialKey     xxx guifg=red
        Last set from ~/my-theme/theme.vim line 20

Yeah, SpecialKey is set, funnily enough it also shows all the proper highlights as set by lush (:hi shows what I'd expect based on my color scheme)

set lazyredraw? is the default, meaning nolazyredraw
What makes the highlights update properly for me is opening up the help with :h $whatever that then does the necessary redraw for the colors.

:redraw doesn't do anything to the colors when I call it manually

Also how are you applying your scheme, with colors/x.vim or colors/x.lua?

How do I check?
All I'm doing is cmd([[colorscheme gruvbox]]) from my init.lua
the lush plugin is based on some older version of the skeleton... repo is here if that helps: https://github.com/brunnre8/gruvbox.nvim
I'm sadly not very familiar with the highlight functionality of nvim myself (hence me using lush :wink: )

I will try and get a clean reproduction locally. What terminal and system are you on, probably not relevant but good to know.

Missed that part, sorry:

terminal: alacritty 0.10.1
vim: v0.8.0-dev+522-g514e76e4b2 (but the issue reproduces on the non nightly v0.7 release)
OS:: Arch linux, kernel:5.18.8-arch1-1

I have gotten a reproduction in a container. I couldn't reproduce it with my own config and I cant say what the difference is. Even disabling all my plugins and settings wont reproduce it locally. I even have basically the identical setup os/term wise as you.
Including the hi clear is standard/recommended when loading colorschemes so I don't really want to remove it - at least it was recommended in viml themes. nvim_set_hl will replace highlights as opposed to update them as the hi ... command does so there's less potential for "mixed themes" with the lua interface beyond old highlight groups hanging around if the new theme doesn't re-define them. Perhaps it would be safe to remove...
I stuck an echo 'xxx' command in with the others while also printing out the group names as they're sent out in case the commands were some how running out of sync and it all seemed in order (whether they get buffered internally is unclear).
Tried wrapping the calls in one, or separate vim.schedules, just in case, which had no effect beyond hiding the intro screen.
Not really sure how to proceed or what else to test...

Out of curiosity, what plugin manager do you use? I wonder if there could be any relation between the way a plugin manager loads things that could be causing this behaviour?

I removed all plugins besides lush and the op's theme, so no plugin manager, and the only thing in my init.lua is termguicolors and then setting the colorscheme.
I did just notice that I can reproduce it with a dev build, where I set the runtime dir.
Eg:
VIMRUNTIME=runtime build/bin/nvim

I wonder if my local install (via pacman) effects something (ships with different runtime files?), or possibly its a debug vs  release build thing? Or simply for whatever reason 0.7.2 wont repro on my machine but 0.8.0 will.
I will have a poke around at that.
The --startuptime log of my non-reproducing setup includes some plugin files from system wide tools (fzf and black, which look reasonable at a peek) as well as arch.vim which just sets the rtp, but possibly there's something in there.
times in msec
 clock   self+sourced   self:  sourced script
 clock   elapsed:              other lines

000.006  000.006: --- NVIM STARTING ---
000.263  000.257: locale set
000.576  000.313: inits 1
000.622  000.046: window checked
000.625  000.002: parsing arguments
003.106  002.481: init lua interpreter
003.205  000.099: expanding arguments
003.250  000.044: inits 2
003.735  000.485: init highlight
003.736  000.001: waiting for UI
004.494  000.758: done waiting for UI
004.532  000.038: init screen for UI
004.552  000.020: init default mappings
004.578  000.027: init default autocommands
005.403  000.069  000.069: sourcing /usr/local/share/nvim/runtime/ftplugin.vim
005.513  000.044  000.044: sourcing /usr/local/share/nvim/runtime/indent.vim
005.590  000.013  000.013: sourcing /usr/share/nvim/archlinux.vim
005.593  000.040  000.027: sourcing /etc/xdg/nvim/sysinit.vim
011.093  004.771  004.771: sourcing /home/soup/.local/share/nvim/site/pack/manual/start/gruvbox.nvim/colors/gruvbox.vim
011.106  005.478  000.708: sourcing /home/soup/.config/nvim/init.lua
011.114  000.905: sourcing vimrc file(s)
011.225  000.057  000.057: sourcing /usr/local/share/nvim/runtime/filetype.lua
018.913  000.020  000.020: sourcing /usr/share/vim/vimfiles/ftdetect/PKGBUILD.vim
018.964  000.031  000.031: sourcing /usr/share/vim/vimfiles/ftdetect/meson.vim
019.097  007.848  007.797: sourcing /usr/local/share/nvim/runtime/filetype.vim
019.294  000.086  000.086: sourcing /usr/local/share/nvim/runtime/syntax/synload.vim
019.420  000.267  000.181: sourcing /usr/local/share/nvim/runtime/syntax/syntax.vim
020.106  000.042  000.042: sourcing /usr/local/share/nvim/runtime/plugin/diagnostic.vim
020.373  000.247  000.247: sourcing /usr/local/share/nvim/runtime/plugin/gzip.vim
020.412  000.016  000.016: sourcing /usr/local/share/nvim/runtime/plugin/health.vim
020.510  000.079  000.079: sourcing /usr/local/share/nvim/runtime/plugin/man.vim
021.121  000.232  000.232: sourcing /usr/local/share/nvim/runtime/pack/dist/opt/matchit/plugin/matchit.vim
021.260  000.729  000.498: sourcing /usr/local/share/nvim/runtime/plugin/matchit.vim
021.447  000.165  000.165: sourcing /usr/local/share/nvim/runtime/plugin/matchparen.vim
021.917  000.448  000.448: sourcing /usr/local/share/nvim/runtime/plugin/netrwPlugin.vim
022.113  000.010  000.010: sourcing /home/soup/.local/share/nvim/rplugin.vim
022.122  000.166  000.156: sourcing /usr/local/share/nvim/runtime/plugin/rplugin.vim
022.254  000.108  000.108: sourcing /usr/local/share/nvim/runtime/plugin/shada.vim
022.313  000.029  000.029: sourcing /usr/local/share/nvim/runtime/plugin/spellfile.vim
022.494  000.156  000.156: sourcing /usr/local/share/nvim/runtime/plugin/tarPlugin.vim
022.623  000.097  000.097: sourcing /usr/local/share/nvim/runtime/plugin/tohtml.vim
022.669  000.021  000.021: sourcing /usr/local/share/nvim/runtime/plugin/tutor.vim
022.900  000.208  000.208: sourcing /usr/local/share/nvim/runtime/plugin/zipPlugin.vim
023.854  000.075  000.075: sourcing /usr/local/share/nvim/runtime/autoload/provider/pythonx.vim
079.111  000.218  000.218: sourcing /usr/local/share/nvim/runtime/autoload/remote/host.vim
079.228  055.514  055.221: sourcing /usr/local/share/nvim/runtime/autoload/provider/python3.vim
079.255  056.228  000.714: sourcing /usr/share/vim/vimfiles/plugin/black.vim
080.108  000.819  000.819: sourcing /usr/share/vim/vimfiles/plugin/fzf.vim
080.426  001.580: loading rtp plugins
080.655  000.041  000.041: sourcing /home/soup/.local/share/nvim/site/pack/colorschemes/start/lush.nvim/plugin/lush.vim
080.907  000.440: loading packages
080.925  000.018: loading after plugins
080.939  000.014: inits 3
097.909  016.970: reading ShaDa
098.030  000.121: opening buffers
098.078  000.048: BufEnter autocommands
098.081  000.003: editing files in windows
098.179  000.098: VimEnter autocommands
098.183  000.004: UIEnter autocommands
098.185  000.002: before starting main loop
098.598  000.414: first screen update
098.600  000.002: --- NVIM STARTED ---

Fixed in 3df0790319b0985d04e2f09fe879b6c2b15692f2.
A clean install of neovim 0.7.2, lush and brunnre8/gruvbox.nvim, inside a arch container does reproduce the issue. Zero idea what it is about my "actual" install that wont reproduce it. Tried different terms, in and out of tmux, etc... Must be some file somewhere.
Anyway, all that aside, it's at least more reproducible than non-reproducible.
Applying any kind of highlight via the old command fixes it, so we just include one after we finish calling nvim_set_hl. I think this is probably a upstream bug, where nvim_set_hl data isn't getting pushed "all the way" in some cases.
I imagine the effect is quite wide spread but most people open a file directly, have a start up screen or some other plugin, one of these things is bound to call :highlight ... and then all the highlights are applied correctly.

Thanks a bunch!


Ive been raided

I just spawned into my world into my claim and have found that all 11 of my shulker boxes were stolen along with all their contents ranging from evolution stones I cant remember how many but I know I at least had one of each to berries. Few of my chest have been looted and 11 diamonds were taken. As well as some TM's sadly i cant remember or think of all the ones that were stolen
My house location is x;4950 z;8625 y;138(8)

I refunded the shulkers that I saw, but I could only find 4. You'll need to show a mod where the others were.

Everything was dealt with, so closing.


@craigspaeth => Wrap client.js in fn

Fixes mount issue

Another point for figuring out a better way to deal with this crack between layers (along with the poor regex route matching that happens). 🤔
Thanks for the quick fix!

Thanks for jumping on this, both of you! 🙏  🙏
I confess I still don't quite see how this fixes the /gene page issue, since it's only related to the mounting on the /categories page, but I'll study this code while waiting on CI...

@anandaroop - its not just the Gene page! The issue is due to how code that is not wrapped is immediately executed just by being imported / statically analyized somewhere in the stack. The export default () => guards against this.

Ok, thanks for that explanation. Gonna merge this.
So this line  relies on that default export you've added here, yes?

Yup, exactly. Since it was required it was immediately executed on mount, but now, with the default, while the file is executed the bit that matters is only called on route match.

Now that the fire is out, just wanted to recap for my understanding, and maybe someone else's:

the /gene/:id, /tag/:id and /categories pages all share the same client-side bundle, which in turn requires client-side code for all three of those pages right away.

because of that, the code in those three requires will get executed immediately. Therefore anything that is not meant to be run immediately should be wrapped in a function for deferred execution

that deferred execution happens through our pattern of regex matching the current location and mapping it to one of the named or default exports in those three required files

because the new client.js didn't have the default exported function, the mounting code was being run immediately, and looking for a DOM element that didn't exist on the /gene and /tag pages, causing an error which presumably halted JS execution on those pages, thus the reported bug

the issue of the missing export default was masked by the fact that the new /categories3 page had its own js bundle right up until the apps were swapped out, i.e this commit, which is why it was not catchable earlier

I think that covers it.
I think one of the main factors here is having several disparate pages share the same client-side bundle. Given that they are each requiring their own client.js files, is there any savings here due to code-sharing — seems like no? I wonder if we could have better isolation and prevent bugs like this by having one bundle per subapp, strictly.

@anandaroop exactly correct. This will hopefully be mitigated in the future by our migration to Webpack which will allow us to take advantage of dynamic imports; this will result in safer bundle splitting.

That's awesome, thanks @damassi.


Simple Helloworld to do a function rewrite using esparse and escodegen

Hello, my name is Bhargava and I am a student. I am trying to use esparse and escodegen in the browser directly to do a simple function rewriting so that the re-written function has the before-after logging added. Below is the code (directly on browser and no nodejs)
function start() {
console.log('start');
}
function end() {
console.log('end');
}
function actualFunction() {
console.log('actualFunction');
}
var parsed = esprima.parse('actualFunction()')
parsed.body.unshift(esprima.parse('start()'))
parsed.body.push(esprima.parse('end()'))
var newCode = escodegen.generate(parsed)
	myFunction = new Function(newCode);
	myFunction();

When I am invoking the myFunction() here, it works as expected. The start and end logs are printed with the actualFunction in between.
But since it is a function rewriting and I want to actually utilize this to rewrite a js library function, I would have to end up using the same name as the original for the overwritten function. So, if I replace the last 2 lines of the above code with the below lines, it goes to an infinite loop printing start.
            actualFunction = new Function(newCode);
	actualFunction ();

	myFunction = new Function(newCode); 	myFunction();
How did those two lines get executed in the first place? I got this error when I tried your code -


Expose missing information: Transaction Expiry, Account Creation Fee, Decimal Size, Uptime (timestamp)

Expose missing information: Transaction Expiry, Account Creation Fee, Decimal Size, Uptime (timestamp)

Seems as though the following have already been exposed:
Account Creation Fee

This is exposed under the GenesisContants field as accountCreationFee in mina_graphql.ml line 593

@MartinMinkov @aneesharaines Can the MinaFoundation team take this from you? If yes, please remove @MartinMinkov as the assignee and add the 'MinaFoundation' label to this issue.


Trigger job on any branch

Current github actions are triggered on some specific branches - main,
master, release-* and mkdocs.
There should have no problem even when the actions should run on any
branches.
ref: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
/cc @evankanderson

My only concern here is we will start burning github action minutes on all forks making PRs to knative. At the moment I can make a branch, and push to it without having actions run on that branch, this change will cause my minutes to be exhausted if I do too much work on too many repos. But then again, it will not block the workflow. It is just a bit of a waste on the actions side.

My only concern here is we will start burning github action minutes on all forks making PRs to knative. At the moment I can make a branch, and push to it without having actions run on that branch, this change will cause my minutes to be exhausted if I do too much work on too many repos. But then again, it will not block the workflow. It is just a bit of a waste on the actions side.

Thank you. I understand. My fix does not make convenient but just clean up the yaml file. So I think we should close this without merge if there is some concern.


v0.6.0 breaks omniauth due to transform_keys change

The original worked:
https://github.com/oauth-xx/oauth-ruby/blob/de8c3861cf9669cfd10066479d4a3507d4d6a590/lib/oauth/consumer.rb#L98-L100
The new version does not:
https://github.com/oauth-xx/oauth-ruby/blob/62d3f3e52daa565a04e508df915456a21a7faf37/lib/oauth/consumer.rb#L106
It's because omniauth ultimately defines options as a Hashie::Mash not a Hash:
https://github.com/omniauth/omniauth/blob/master/lib/omniauth/strategy.rb#L547
https://github.com/omniauth/omniauth/blob/master/lib/omniauth/key_store.rb#L5
Hashie::Mash.new(one: "1", two: "2").transform_keys(&:to_sym)
{"one"=>"1", "two"=>"2"}

Hashie::Mash.new(one: "1", two: "2").to_hash.transform_keys(&:to_sym)
=> {:one=>"1", :two=>"2"}

Just released snaky_hash gem which should solve this.  Working on integrating now.


Configure instructions not always displaying

Within Weave Cloud, I feel like the kubectl command to configure Flux and a Git registry sometimes appears and not with other times.
When should the command box appear?
Example from within my account:

Likewise, after I've updated the config, I would expect to see the box appear

@BenHall It looks like you are seeing the config page for old versions of the flux agent.

When should the command box appear?

It should always be shown on that page, if you have ever connected a (>=v1) flux agent. It is these days pretty difficult to run an old (<v1) flux agent.
Steps to reproduce gratefully pored over :)

Closing this as it is not a Flux issue, but a Weave Cloud issue.


[GHSA-g74q-5xw3-j7q9] Microsoft Security Advisory CVE-2024-21386: .NET Denial of Service Vulnerability

Updates

Affected products
Description

Comments
Remove empty html links from the description markdown

Hi @gillarramendi, could you explain why the page anchors should be removed?

Hi @JonathanLEvans ,
They don't add much value to the end user and create rendering issues when markdown is converted to html and rendered


Maya/158557 phase out css modules

Summary

What: Phase out all remaining SCSS in the app
Why: This is legacy code, and having two systems of styling components can cause problems. It is confusing for new developers who are trying to understand our conventions. It makes it unclear whether styles are coming from scss style classes or from styled components. It adds bloat to our code base in the form of additional dependencies. It makes refactoring certain components more challenging.
Ok, but why now, though: I was working on a component that was partially styled with scss and partially styled with styled components and I decided I was done with it.
Ticket: [sc-158557]
Env: https://maya-cssmodules-frontend.dev.czgenepi.org/

Demos
Should be no visual changes.
Notes
I did my best to directly port over scss into styled components. I didn't try to make any smart changes or optimize in any way.
Checklist

[x] I merged latest trunk
[x] I manually verified the change
[x] I added labels to my PR
[ ] I either asked design for a review or hid my changes behind a feature flag
[ ] I tested in multiple browsers
[ ] I added relevant unit tests
[ ] I have notified others of changes they need to make locally (migrations, jobs, package updates, etc)

None of the changes in package.json seem to involve anything that would actually convert scss to css: do you know where that happens? Is that part of webpack or the React build process or something else? <> Okay, looks like it's based around the "sass": "^1.38.2" package. Can we remove that at this point, or is there something else still depending on that?

@mmmmmmaya RE: Vince's suggestion that I take a look, overall it seems like the styling was maintained. I found a few oddities not found on prod that I'm not sure are related:


Added magics

WIP : Adding some ipython magics for bluesky for better diagnostics.
Description
This is a WIP adding a series of bluesky magics that will allow the user to find what Devices they have available.
Motivation and Context
Users often need to see a list of defined ophyd devices. This will help with that.
How Has This Been Tested?
Tested at PDF beamline so far:
In [1]: %detectors
Python name              Ophyd Name
========================================
Test_Cam1                Test_Cam1
Cam2                     Cam2
camera                   Cam2
stats_plugin             Cam2_stats5
pe1                      pe1

Discussion
This is currently just searching the user name space. It might be potentially useful to search all Signals (children of Devices).

Codecov Report

Merging #1020 into master will decrease coverage by 0.17%.
The diff coverage is 15.78%.

@@            Coverage Diff             @@
##           master    #1020      +/-   ##
==========================================
- Coverage   90.35%   90.18%   -0.18%
==========================================
  Files          50       50
  Lines        8077     8096      +19
==========================================
+ Hits         7298     7301       +3
- Misses        779      795      +16

Impacted Files
Coverage Δ

bluesky/magics.py
78.29% <15.78%> (-10.8%)
:arrow_down:

Continue to review full report at Codecov.

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

changed whitelist/blacklist to functions
In [1]: %motors
Python name              Ophyd Name
========================================
Det_1_X                  Det_1_X
Det_1_Y                  Det_1_Y
Det_1_Z                  Det_1_Z
Det_2_X                  Det_2_X
Det_2_Y                  Det_2_Y
Det_2_Z                  Det_2_Z
Grid_X                   Grid_X
Grid_Y                   Grid_Y
Grid_Z                   Grid_Z
ECS_tel_guide            ECS_tel_guide

In [2]: %detectors
Python name              Ophyd Name
========================================
Test_Cam1                Test_Cam1
Cam2                     Cam2
camera                   Cam2
stats_plugin             Cam2_stats5
pe1                      pe1

I like the idea, it's really good!

We do something similar at SLAC. We decided to make types.Namespace objects which is a little more programmatically useful than a print out. We also made sure that you search through Component devices as well. For instance if you want all your EpicsMotor objects, you might want to check that you grab the X, Y and Z components of your XYZStage.
Like the idea! Interested to see the solution you come up with.

It would also be interesting to look at some sort of decorator / registration that stashed weak-refs at device creation time.
We know quite a bit when we create these devices, we should find a way to exploit that rather than re-finding things after the fact.

@teddyrendahl I like your implementation!
So I think we're doing to check for attributes rather than check for classes to avoid importing in ophyd devices (@tacaswell suggested it here and I agree with it).
But the recursion is what I was thinking about implementing, and I had the same idea, you need two types : the device type (which can eventually contain a component leaf) and the desired type (the leaf).
I've implemented it here as well with leaf_logic (logic to determine if we have a leaf) or node_logic (logic to determine if we have a node). I assume the node is a subset of a leaf so I check for the leaf first.
Need to improve on this later. So far, it does not look asethetic:
In [3]: %signals
Python name              Ophyd Name
========================================
det                      det
motor1readback           motor1
motor1setpoint           motor1_setpoint
motor1.motor2readback    motor2
motor1.motor2setpoint    motor2_setpoint
motor1.motor2det2        det2
motor1.motor2.pseudo3x3.pseudo3x3_pseudo1readback        pseudo3x3_pseudo1
motor1.motor2.pseudo3x3.pseudo3x3_pseudo1setpoint        pseudo3x3_pseudo1_setpoint
motor1.motor2.pseudo3x3.pseudo3x3_pseudo1.pseudo3x3_pseudo2readback      pseudo3x3_pseudo2
motor1.motor2.pseudo3x3.pseudo3x3_pseudo1.pseudo3x3_pseudo2setpoint      pseudo3x3_pseudo2_setpoint
motor1.motor2.pseudo3x3.pseudo3x3_pseudo1.pseudo3x3_pseudo2.pseudo3x3_pseudo3readback    pseudo3x3_pseudo3
motor1.motor2.pseudo3x3.pseudo3x3_pseudo1.pseudo3x3_pseudo2.pseudo3x3_pseudo3setpoint    pseudo3x3_pseudo3_setpoint
motor1.motor2.pseudo3x3.pseudo3x3_pseudo1.pseudo3x3_pseudo2.pseudo3x3_pseudo3sig         pseudo3x3_sig

``
comments appreciated. thanks!

It would also be interesting to look at some sort of decorator / registration that stashed weak-refs at device creation time.
This requires a bit of state. I don't know if we want this. I vote more for passive, but less accurate methods over active but more accurate. In the end, if a motor is missing from the magic, I don't think it will cause too big of a fuss with BL scientists. An active method requires more support and trouble shooting.
What do you think @tacaswell ?

The trade off is an explicit 'opt-in' which does require some state someplace and some maintenance in the profile, but if a device is missing or (in the view of BL staff) erroneously listed, it is fixed by adjusting the opt-in in the profile.  If it is all implicit / auto-discovery we don't have any state but if we the heuristic don't work it is much harder to fix on the floor (or we have to deal with conflicting heuristics from different beamlines).

Randomly had a long discussion about this with @stuartcampbell and @tacaswell which I will now try to summarize:
Proposed solution
Add a new optional keyword argument to OphydObj that takes a list of string labels which will be assigned to a new (private?) attribute. As in:
class OphydObj:
   def __init__(..., labels=None):
        if labels is None:
            labels = []
        self._ophyd_labels_ = labels

(We are not necessarily suggesting the name labels; this is just an illustration.) Then, magics or other utilities can scrape the namespace like this:
import collections

for obj in globals():
    objects = collections.defaultdict(list)
    if hasattr(obj, '_ophyd_labels_'):
        for label in obj._ophyd_labels_:
            objects[label] = obj

Then, a general-purpose magic can display all labeled objects, visually grouped by label, or show a specific labels. Magics like %ct and %wa can be bound to specific label names like 'detectors' and 'positioners' respectively.
There is some precedence for this technique. Squatting an attribute name as a way of duck-typing is  also used by IPython's display hook (_ipython_html, etc).
Advantages over current situation

Users can name their own categories, not limited to 'detectors' and 'positioners'.
A device can be sorted into multiple categories, like 'favorites' and 'detectors'.
Instead of coordinating configuration in two places, like this:motor = EpicsMotor('...', name='motor')
# then, far away, in some other file...
BlueskyMagics.positioners.append(motor)

the configuration is all in one place:motor = EpicsMotor('...', name='motor', labels=['positioners'])

If an object is later deleted from the namespace, nothing bad happens. In the current system, the names in BlueskyMagics.positioners can get out of sync with the variables names.
If a profile script is re-executed with %run. In the current system, it is easy to end up with a list that includes duplicates.
Overall, this avoids globally-managed state and keeps configuration local to each object. We have anecdotally found that global state is tempting but tends to grow complex and confusing. (It's why we removed global_state.py and underhook a lot of hassle to do so!)

Considered Alternatives

A special function that closes over a global list and registers an instance as a side-effect, likemotor = register(EpicsMotor('...', name='motor'))

Scraping the namespace looking for attributes we already have, like .position.

I agree. I've added it here. We should move discussion there. We should merge and tag first before using bluesky magics? I can open a PR that tests by pulling from master on bluesky.

Okay, I updated to take in @danielballan 's comments. Needs this pr here.
Here is a gist example of some possible cases to run on here.
Tests are not passing, will investigate.

py3.6 passes but py3.5 fails. I'm not sure why?

new way

In [1]: %run -i ../pyscripts/0092-test-pvmagics.py

In [2]: BlueskyMagics.positioners = []

In [3]: %wa
motor
        Python name              Ophyd Name
        ========================================
        dev                      newdevice
        dev2                     newdevice2
other
        Python name              Ophyd Name
        ========================================
        dev2                     newdevice2
        cmp_dev                  compound
detector
        Python name              Ophyd Name
        ========================================
        det_dev                  newdet
        cmp_dev                  compound

will double check it tomorrow. what do you think?

thanks @danielballan . hmm, there still seems to be a problem:
In [29]: get_ipython().register_magics(BlueskyMagics)
    ...:
/home/lhermitte/research/projects/bluesky/bluesky/magics.py:44: UserWarning: detectors is deprecated. Please use the newer labels feature
  "Please use the newer labels feature")
/home/lhermitte/research/projects/bluesky/bluesky/magics.py:32: UserWarning: positioners is deprecated. Please use the newer labels feature
  "Please use the newer labels feature")

I'm not sure how to fix that. maybe add a sentinel we unset after class instantiation? it should be temporary anyway

continued on #1031 This merge was accidental (merged from the wrong tab)


return utf-8 results

Newer updates are leaving my answers with {"\e} and other examples in the name and I have yet to find a way to replace the letters.
In your own documentation(recently updated) it also shows

author = {Ester, Martin and Kriegel, Hans-Peter and Sander, J{"o}rg and Xu, Xiaowei},

This is done when looking at authors in a publication

so, what you exemplified above is Latex notation \"o will result in ö. In other cases the notation might be unicode escaped, and you can easily convert that to utf-8 using python.

could you provide how? I have looked at python's documentation for both as both seem to be used and I can't make heads or tails of it.

Yes, can you provide a sample of the code that you are using?

search_query = scholarly.search_author(author_name)
author = next(search_query).fill()
print(author.bib['author'])

That should be enough context to get to a solution I need.

That code will not work. You are trying to get a bib from an author. Author
objects have no bib.
Victor Silva
This message was typed and sent from a mobile phone. Please excuse any
typos.
On Fri., Jun. 19, 2020, 11:22 a.m. Nicholas-Lewis-USDA, <
<EMAIL_ADDRESS>wrote:

search_query = scholarly.search_author(author_name)
author = next(search_query).fill()
print(author.bib['author'])
That should be enough context to get to a solution I need.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/scholarly-python-package/scholarly/issues/151#issuecomment-646769774,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AI5GWVMY6UZX6RQM3JFI7JDRXONF5ANCNFSM4OBU52VQ
.

You may not have got my edit, I changed author.bib[‘author’] after  I noticed I forgot the “s” at the end.

search_query = scholarly.search_author(author_name)
author = next(search_query).fill()
print(author.bib['author's])

[USDA - APHIS]
Nick Lewis
Computer Clerk
APHIS Marketing and Regulatory Programs Business Services (MRPBS)
MRP Information Technology (MRP IT) Services
Laboratory and Scientific IT Services
p:<PHONE_NUMBER> c:<PHONE_NUMBER>
nicholas.lewis<EMAIL_ADDRESS>1920 Dayton Ave
Ames, IA 50010
From: Victor Silva<EMAIL_ADDRESS>Sent: Friday, June 19, 2020 12:25 PM
To: scholarly-python-package/scholarly<EMAIL_ADDRESS>Cc: Lewis, Nicholas R - APHIS<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [scholarly-python-package/scholarly] return utf-8 results (#151)
That code will not work. You are trying to get a bib from an author. Author
objects have no bib.
Victor Silva
This message was typed and sent from a mobile phone. Please excuse any
typos.
On Fri., Jun. 19, 2020, 11:22 a.m. Nicholas-Lewis-USDA, <
<EMAIL_ADDRESS>wrote:

search_query = scholarly.search_author(author_name)
author = next(search_query).fill()
print(author.bib['author'])
That should be enough context to get to a solution I need.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/scholarly-python-package/scholarly/issues/151#issuecomment-646769774,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AI5GWVMY6UZX6RQM3JFI7JDRXONF5ANCNFSM4OBU52VQ
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fscholarly-python-package%2Fscholarly%2Fissues%2F151%23issuecomment-646770715&data=02|01||dfcd9352807942dc026608d81475b629|ed5b36e701ee4ebc867ee03cfa0d4697|0|0|637281843082546803&sdata=oGkg5HrE25kVTNVukcgsGSBaQv%2BTsrSZkKqGviAxDlM%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAP2QIOLJANJEQNZLLAWDVUDRXONPFANCNFSM4OBU52VQ&data=02|01||dfcd9352807942dc026608d81475b629|ed5b36e701ee4ebc867ee03cfa0d4697|0|0|637281843082556797&sdata=IZKzZfcn3BnBnEV8vWX7KqIzebzDMITaTSqjn%2B4Zte4%3D&reserved=0.
This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and subject the violator to civil or criminal penalties. If you believe you have received this message in error, please notify the sender and delete the email immediately.

I think I wasn't clear.
search_author returns an object of the Author class. Then you fill it with .fill(). However the object of Author has no attibute .bib because only objects of the Publication class have bibtex representations.
If you provide me with the exact code that you are having problems with, I will be more empowered to help you.

Sorry here is quick program I made to get the results in question
search_query = scholarly.search_pubs("Antemortem detection of chronic wasting disease prions in nasal brush collections and rectal biopsy specimens from white-tailed deer by real-time quaking-induced conversion")
pub = next(search_query).fill()
print(pub.bib['author'])

Output: Haley, Nicholas J and Siepker, Chris and Walter, W David and Thomsen, Bruce V and Greenlee, Justin J and Lehmkuhl, Aaron D and Richt, J{"u}rgen A

My suggestion is use regex to remove {\. and } characters from the author field.
eg. use {\\. and } as regular expressions.

you were correct on latex being used.
pip install pylatexenc
from pylatexenc.latex2text import LatexNodes2Text
print(LatexNodes2Text().latex_to_text({latex string}))

This will result in the letters being converted back and then you can do whatever you want from there.
My example {\"u} gets translated back to ü using this method.  This has also cleared up many other issues I had with other characters not coming back correctly.  I will need to test with other language sets.
Thank you @silvavn


Hardware Enhancement: Add diodes after USB/Boot/Reset to prevent battery from running LEDs

Currently, when on battery power, the LEDs on the USB/Boot/Reset board will light up. This drains power unnecessarily. Should add diodes to prevent this.

done in v1.b


Bitwise manipulation

In bitwise manipulation it is important to describe the topic operator overloading.
In various tricky programming questions,  the answers and the output vary due to operator overloading.
So do check on the pull request generated to do the same.

Hi you can not work on this issue before you are assigned.

@rudrakshi99 Can you look into this?

Hello, I think this is an important question and this should definitely be added in the Algo-Tree and I will start working on it as soon as I get assigned!! as I am a part of GSSoC'21, so I would like to implement this in c++.

@ssaumyaa7 Mention the language

@ssaumyaa7 Mention the language

I am part of gsoc21 so I created pull request to add the topic Overator Overloading under Bitwise Manipulation in python language.

@ssaumyaa7 You can't create a pull request until you are assigned on the issue

@ssaumyaa7 Kindly checkout #1153 for the rules to contribute :)

How and who is assigning issues may I know .. ?

Thank you @Rohan27s sir for assigning me this task!.
sir, can you please explain to me which topics I have to cover for this code? like sir can you please explain the question once?

As I can see, the given issue doesn't specify any algorithmic problem to solve.

@Mugdha-Hazra Make PR for Bitwise operator overloading

@Rohan27s ok

@Rohan27s  Please assign me this issue in python

I would like to contribute to the above problem in java as I am a participant of GSSOC'21. Kindly assign this to me.

Please assign this issue to me in C++


Support connection is not transactional when used in spring

Support connection is not transactional when used in spring, spring manages and releases resources.
Usage example
Configuration:
@Bean
public SQLQueryFactory queryFactory() {
    return new SpringSQLQueryFactory(querydslConfiguration(), dataSource());
}

Component:
@Inject
SQLQueryFactory queryFactory;

public Customer findById(long id) {
    // no transaction
    // queryFactory.from...
}

@Transactional
public void delete(Customer c) {
    // in transaction
    // queryFactory.from...
}

This shouldn't be required. Please ask a question on Stack Overflow if you still struggle getting transactions to work with QueryDSL under Spring.


Use https endpoint

Fixes #104

:shipit:

Hi,
There's a develop branch for this project, but this PR is against master. Could a maintainer provide input into the branching structure for contributions?

Had trouble merging, I sent a new pull request #113.


non-total function in ch1

There is a piece of text in chapter one that read:

A more involved example shows that type-correctness can be confirmed without type annotations, even when there exist types which are unknown to the compiler:

which is then followed by a non-total function:
iterate f 0 x = x
iterate f n x = iterate f (n - 1) (f x)

I think this function should be made to be total, or a different total function should be used in its stead if that's not very elegant:
iterate f n x =
    if n > 0 then iterate f (n - 1) (f x) else x

iterate f n x =
    case n > 0 of
        True -> iterate f (n - 1) (f x)
        False -> x

etc.

why do you say it's not total?

because iterate (+1) (-1) 5 ?

Maybe it's not important, I don't know. It just stuck out for me.

I'm going to leave this as it is actually, but thank you anyway. I need an example which is short and understandable, so I don't want to use guards to test for n <= 0 at this early point in the book, for example. And the text does say "type correctness", which is true here.

Fair enough. It is your book :) 👍


Adding the notebook

#8 Adding the notebook as per requirements.

@MridulS  do you have comments/suggestions for the notebook?

this looks good! Thanks for your contribution :)


Document the new release process

Propose a new release process and update Release.md and Changelog.md to reflect it.
I can think on something like:

Open a PR that bumps version refs in the repo, edit Chanelog.md with notable changes
Once this PR is merged, add a tag on this commit/main branch
Release

Open questions;

Do we need release candidates at this stage of the project?

/cc @robscott @shaneutt

/assign


the scroll up button has been added to the team page

Fixes:  #1438
Description
i have completely added the scroll up button to team page  .
i used  the js function, some major css properties and and added a new file thats it .
#1438
Type of PR

[ ] Bug fix
[x] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Checklist:
@PriyaGhosal

[x] I have made this change from my own.
[x] I have taken help from some online resources.
[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers and screenshots after making the changes.

please make it atleast level 2 mam

@2004pra  Your pull request has been successfully merged! Don't stop here—continue contributing by addressing more issues and aiming to become a top contributor. Exclusive swag awaits for those who go the extra mile! Also Take a moment to ⭐ Star the repository if you haven't already.
Great contribution ! 🎉


update cmd of pouch images

1.Describe what this PR did
update pouch images ls to pouch images and update image size
2.Does this pull request fix one issue?

3.Describe how you did it
4.Describe how to verify it
5.Special notes for reviews

LGTM


Two variables with the same name mixup

Hi Rose,
Great project! I really enjoyed the images visualizing each step.
However, I ran into the following error when trying to run experiments with the --with-image-obs and --record commands:

I believe the issue lies in the following part of the overcooked_environment.py file, where the new_obs variable is used for two different objects - the OvercookedEnvironment and a GameImage:

When I renamed the new_obs variables on lines 210 and 213, everything worked fine.

Hi @Eirin3!
Thanks for bringing this to my attention. I recently updated the repo with this commit.
Basically the changes are:

new_obs is also the planning-based representation object.
by default, info['image_obs'] will always give you the image of the updated environment state.


Dimming on scroll

When I scroll through the list, it dims the screen from time to time.
Seems to be the case when I loads more results...
Looks not so nice :(

look like adding gaplessPlayback to network image fixes this issue. I created PR with the fix: https://github.com/bazospa/giphy_get/pull/15

Thanks @Brazol merged

Could you make a new release?


BEP for tractography

Hi @bids-standard/maintainers & everyone,
I hope you're doing fine.
This issue is meant to track/gauge interest and progress for a specification focusing on diffusion tractography, as part of the BIDS connectivity extension(s) project. Given its intended scope we aim to collaborate with the other connectivity BEP teams.
The team is currently working on a draft here and we plan to have a meeting discussing the draft at the end of spring (I'll update here once we have a date & time).
It would be cool to get all your ideas and feedback on this!
Cheers, Peer

Thanks for the proposal.
PS: you really like tagging the bot @PeerHerholz ❤ (the correct team to tag is @bids-standard/maintainers)

Hey @bids-standard/maintainers,
would it be possible to get an official number for this proposal?
Best, Peer


Webhook to trigger alert in case backup failed

Description of the feature
The Container should be able to notify its user of failing backup jobs, I suggest to use a webhook function for usage with sites like https://healthchecks.io/
Benftits of feature
The user can be confident in the success of his/her backup-jobs.
I just had an issue with the docker template as it suddenly stopped backing up due to a missing variable.
This or different reasons for failing backups (like missing user privileges, space, ...) can be alarmed long after the user regularly checks for the backups.
Additional context
Example integration: https://github.com/borgmatic-collective/docker-borgmatic/blob/408b0432f61c9beb4e5fa9dc8376edc5599f0a9e/ntfy/README.md
Based on: https://github.com/dschep/ntfy

Have a peek at the documentation regarding custom scripts.
You can take advantage of this information and use it to build your own payload and accomplish what you are trying to do. Curl is available inside the image for POSTs.


new: virtual tag and tag template for heatmap clicks collector feature (PPCDEV-14416)

Ticket with AC changes after last meeting and define requirements with @zawias-pro : https://piwikpro.atlassian.net/browse/PPCDEV-14357
This PR is based on this one however it won't be ever merged here but it will be moved to Tag's repository when approved.
Working example with virtual tag + tag template to preview in here: https://astralprojection.promilci.com/tag/app/29897930-181d-43e6-8038-42e8ca645b95/tags
@zawias-pro @musialp please remind me how we approach to browsers compatibility for that kind of tag templates? According to: https://github.com/PiwikPRO/solutions-templates/pull/25#discussion_r728736061
As always let me know if form of code (and maybe code itself) is fine for you :)

@zawias-pro @musialp please remind me how we approach to browsers compatibility for that kind of tag templates? According to: #25 (comment)

Technically we should support IE8, but we're actively working on moving browser support to IE11+. For now, your "deprecated" approach is the way to go.

Closing because of code was fixed by Tag team themselfs and moved to another repository :)


Add Context parameter to server methods.

I find myself using context.TODO() too often. Usually when one capnproto object is calling another. It seems like it would make sense for a context to get passed through into the server objects, which they can possibly use in their own calls.

There's an obvious question re: compatibility; adding the parameter would break existing instances.

I'm confused. I explicitly do have a Context in every generated "Call" struct. That is the Ctx field. Or am I missing something?

/me facepalms. How did I not see that? I guess I'm so used to the first parameter idiom that I didn't really go looking elsewhere.
Closing. Sorry for the noise.

I am debating (if and when I make the Client API changes) pulling out the context as first parameter. Not sure. I really should start an experiment branch.


Merge pull request #1 from nbrady-techempower/master

Updating Changes

Whoops

@unmonk I did a lot of work on it today. I removed a lot of things, especially because I changed things around a lot. I removed the slide in nav on the dashboard for now and replaced it with actions, though they're not completely functional yet (at least delete isnt). One thing to note is that you don't need a helper function for every property in an object. If you pass the object to the template you can access its properties, so that shortened the admin template helper significantly. I also moved the meteor methods to the appropriate api folders and renamed some things to go with the current naming scheme.

Thanks, I'm taking a look at it now, much cleaner.  Thanks for the info about the template, something I just learned!


Desktop UI Automation using WinAppDriver and tried to run using task scheduler using service account

We have created a desktop UI Automation using C#. We tried to run the .exe by using task scheduler on VM through service account. Task scheduler is not able to run desktop UI automation in attended mode. We have scheduled run for every 30 minutes and it is not running the tasks. We have tried to change the settings of task scheduler by "user logged on" and "user logged in or not". It is not working in both settings.

somehow this did never worked for me also. I start the WinAppDriver from the code before start the test case and then kill at the end.


Use WinRT VirtualKeyModifiers instead of a custom enum

Summary of the Pull Request
Replaces KeyModifiers with the pretty much equivalent VirtualKeyModifiers enum in winrt. (Mostly as an exercise to get familiar with the codebase)

References
After doing this I noticed #10593 which changes the KeyChords a lot, but it seems these PRs are still compatible

PR Checklist

[x] Closes #877
[x] CLA signed. If not, go over here and sign the CLA
[ ] Tests added/passed
[ ] Documentation updated. If checked, please file a pull request on our docs repo and link it here: #xxx
[ ] Schema updated.
[ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments
The issue also mentions replacing Vkey with Windows::System::VirtualKey, but I chose not to because that enum only includes a subset of the keys terminal supports here (no VK_OEM_* keys)

Validation Steps Performed
Changed key bind in config, and confirmed it still works after restarting terminal

So, our initial design for the terminal settings model was intended to avoid a dependency on the Windows.UI namespace-- it is a big namespace that we may not want consumers to depend on.
@zadjii-msft and @carlos-zamora may have opinions.

(At the same time, thanks for the contribution! It's good to have you here :))

@DHowett Isn't VirtualKeyModifiers part of the Windows.System namespace?

Windows.UI is used in several places in the terminal settings model. For example, in ActionArgs Windows::UI::Color for TabColor. The Windows.System namespace does seem te be new, although winrt/Windows.System.h is included in the pch.

Windows.UI is used in several places in the terminal settings model. For example, in ActionArgs Windows::UI::Color for TabColor. The Windows.System namespace does seem te be new, although winrt/Windows.System.h is included in the pch.

@DHowett Dustin Howett FTE Isn't VirtualKeyModifiers part of the Windows.System namespace?

Shows what I get for triaging pull requests on my phone and not reading their bodies. Thanks all! This looks fine to me, but I'd prefer @zadjii-msft sign off.

@msftbot make sure @zadjii-msft signs off

@msftbot make sure @zadjii-msft signs off


Deriving FromRow for structs with third-party types

Opening an issue for this as discussed on Discord.
#[derive(FromRow)]
struct CustomType {
   a: String,
   b: i32,
   third_party: ThirdParty,
}

It would be convenient if there were a way to make this work like with serde's with field attributes: https://serde.rs/field-attrs.html#serialize_with
In my case ThirdParty implements from_str
Until this is possible, I've gone ahead and manually implemented FromRow for my situation

A related thing to add that I'm facing is to derive FromRow on an imported struct.
use some_create::ThirdParty;
#[derive(FromRow)] // for ThirdParty;

I'm looking for a reasonable solution but can't find it yet.

I just stumbled upon the same issue and found this ticket. It would be really nice if we could do it.

A related thing to add that I'm facing is to derive FromRow on an imported struct.

That is unfortunately not possible in Rust because of its orphan rules.

+1'ing this, I'd like to implement Type and sqlx(transparent) for some third-party type. For now, I'm using a workaround with try_from:
#[derive(sqlx::Type)]
#[sqlx(transparent, no_pg_array)]
struct UserIdDbParser(u64);

impl From<UserId> for UserIdDbParser {
    fn from(value: UserId) -> Self {
        Self(value.0)
    }
}

// in my structs:

#[derive(Clone, sqlx::FromRow)]
pub struct User {
    #[sqlx(try_from = "UserIdDbParser")]
    pub id: UserId,
}

Here's a macro I came up with for defining the above parser quickly, and some usage examples:
macro_rules! impl_db_parser {
    ($vis:vis $name:ident ( $db_ty:ty ), $ty:ty) => {
        impl_db_parser!($vis $name ($db_ty), $ty, |x| Self(x));
    };
    ($vis:vis $name:ident ( $db_ty:ty ), $ty:ty, $conv:expr) => {
        #[derive(sqlx::Type)]
        #[sqlx(transparent)]
        $vis struct $name($db_ty);

        impl From<$name> for $ty {
            fn from(value: $name) -> Self {
                $conv(value.0)
            }
        }
    };
}

impl_db_parser!(pub UserIdDbParser(i64), UserId, |x| UserId(x as u64));
impl_db_parser!(pub ChatIdDbParser(i64), ChatId);


Authentication Helpers

Investigate the capabilities of MDF Toolbox towards simplifying common authentication and transfer actions.
https://mdf-toolbox.readthedocs.io/en/master/

Fully implemented! MDF toolbox has been a godsend for wrapping up tricky auth bits.


shift click on trader (wiki or code)

Hello, when you right shift click on a trader his trade window opens and no info is given. When you shift-control RC, it works, but you might want to put that in the wiki OR make it so the trade window doesn't open.
Anyway, Thanks for the plugin.

Shift Control meaning Crouching and Running Keybinds are pressed?

Fixed as of release 2.5.1

Not fixed or feature not done. Using 2.6.
Trader window still opens.
Also, less important:  on modrinth it still says "shift-right-clicking" instead of crouch right clicking

@e-motiv Please provide a more detailed explanation of what you did and the expectation. A video should help us understand too, as what you are describing is not very clear to us.

Trader window still opens.

I am not able to recreate this issue
just to be sure, you have not done /vill toggle?
If you haven't done /vill toggle, and you have the appropriate permissions, please send your config file, as well as a video or more detailed explanation of what you mean (as requested by Pea), as we cannot fix the issue unless we can figure out why it is happening

(Also updated the description on modrinth, thanks)

It's actually pretty simple:

Crouch R-click a villager with a profession. (Villagers with a profession offer trades with a trade window when right clicked.)
VillagerInfo shows its info tin the chat like it should, but also the trade window opens.

Expected results. Or rather "preferred" results as this might be a feature request:
2. The trade window does not open. So we don't have to close it again to reach the villager info

Odd. It should be cancelling the open window.
Could I possibly get a list of your plugins to see if it's a plugin conflict I don't know about?

Sure, plugins:
EssentialsX-2.19.7.jar
EssentialsXChat-2.19.7.jar
EssentialsXDiscord-2.19.7.jar
EssentialsXSpawn-2.19.7.jar
GSit-1.4.0.jar
LuckPerms-Bukkit-5.4.66.jar
Negativity-1.13.jar
Rewardslite-3.1.4.jar
Vault.jar
VillagerInfo-2.6.jar
worldedit-bukkit-7.2.14.jar
worldguard-bukkit-7.0.8-beta-01-dist.jar
Mods:
libIPN-forge-1.19.3-2.0.4.jar
OptiFine_1.19.3_HD_U_I3.jar
InventoryProfilesNext-forge-1.19.3-1.9.4.jar
kotlinforforge-4.1.0-all.jar
VillagerInfo-2.6.jar
JustEnoughResources-1.18.2-<IP_ADDRESS>.jar
Jade-1.19.3-forge-9.4.1.jar
configured-2.0.2-1.19.3.jar
moreoverlays-1.21.6-mc1.19.3.jar
journeymap-1.19.3-5.9.3-forge.jar
jei-1.19.3-forge-<IP_ADDRESS>.jar
worldedit-mod-7.2.13.jar
EasierVillagerTrading-forge-1.19.2-1.2.0.jar
appleskin-forge-mc1.19-2.4.2.jar

@e-motiv Can you provide your server version please?

So I was able to successfully reproduce your issue. Unfortunately it is not something within our area to fix.
The issue appears to be caused by forge. I was not able to reproduce the issue with fabric or vanilla, but even with no mods or resource packs installed, the issue happens on forge.
My best guess is that something is causing it to send the interact packet twice, and that's causing the window to open after the chat pops up, but I wouldn't know without being able to debug both client and server side- and client side is out of our control.
Sorry we this isn't something resolvable on our side


Clean up utilities

As mentioned in https://github.com/inbo/alien-species-checklist/pull/71, we should clean up /utilities
Decisions:

combination_maker: keep in utilities, but rename to something like combine_vocabulary_values + remove habitats.txt output. Discussed in #58
concatenation: is a notebook to explain csvcat. The way to call csvcat is mentioned in the README, so I think we can remove this directory
merge_controlled_vocabularies: move and rename to notebooks/1-stijnvanhoey-map_vocabularies.ipyth and maybe document a bit further. Note that the vocabularies + their mapping is now at https://github.com/inbo/alien-species-checklist/tree/rinse-out-of-scope/data/vocabularies
viz_pathways: move and rename to notebooks/0-stijnvanhoey-viz-pathways.ipyth. I would remove the output images + files if possible.

The notebooks moved, but their source data files are changed, both in location as structure. I'm keeping this open in order to adapt these in the implementation itself as well.

restructuring of the repo finalised, closing


French translation going up

That french translation isn't going to work itself, is it?
I'm thinking about compounding strings to make our lives easier. For example : "Bartwe Hair", "Moocow Hair", etc. Or "Purple Monkey Hat". Why not have a "Hat" string, a "Monkey" string, and a "Purple" one? It'll make translation quicker, I feel! Dunno how possible it is to implement, though.

Ah, i've always head that composing strings doesn't work for most languages due to genders/numbers and ordering differences between languages.


'HX711' object has no attribute 'get_weight'

Hello everyone,
I tested your programm, but i have a error: AttributeError: 'HX711' object has no attribute 'get_weight'.
What have i done wrong? Can someone help me.
Thank you

Any chance you couls post your code so we know how you've implemented it?
On Sat, Apr 17, 2021, 17:13 Schmediii @.***> wrote:

Hello everyone,
I tested your programm, but i have a error: AttributeError: 'HX711' object
has no attribute 'get_weight'.
What have i done wrong? Can someone help me.
Thank you
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tatobari/hx711py/issues/41, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABVNTWLBS3SDTX2AMD5QTXLTJHTYHANCNFSM43DNKYDA
.

Yes shure, the code is from the example.py:
`#! /usr/bin/python2
import time
import sys
EMULATE_HX711=False
referenceUnit = 1
if not EMULATE_HX711:
import RPi.GPIO as GPIO
from hx711 import HX711
else:
from emulated_hx711 import HX711
def cleanAndExit():
print("Cleaning...")
if not EMULATE_HX711:
    GPIO.cleanup()

print("Bye!")
sys.exit()

hx = HX711(5, 6)
I've found out that, for some reason, the order of the bytes is not always the same between versions of python, numpy and the hx711 itself.
Still need to figure out why does it change.
If you're experiencing super random values, change these values to MSB or LSB until to get more stable values.
There is some code below to debug and log the order of the bits and the bytes.
The first parameter is the order in which the bytes are used to build the "long" value.
The second paramter is the order of the bits inside each byte.
According to the HX711 Datasheet, the second parameter is MSB so you shouldn't need to modify it.
hx.set_reading_format("MSB", "MSB")
HOW TO CALCULATE THE REFFERENCE UNIT
To set the reference unit to 1. Put 1kg on your sensor or anything you have and know exactly how much it weights.
In this case, 92 is 1 gram because, with 1 as a reference unit I got numbers near 0 without any weight
and I got numbers around 184000 when I added 2kg. So, according to the rule of thirds:
If 2000 grams is 184000 then 1000 grams is 184000 / 2000 = 92.
#hx.set_reference_unit(113)
hx.set_reference_unit(referenceUnit)
hx.reset()
hx.tare()
print("Tare done! Add weight now...")
to use both channels, you'll need to tare them both
#hx.tare_A()
#hx.tare_B()
while True:
try:
# These three lines are usefull to debug wether to use MSB or LSB in the reading formats
# for the first parameter of "hx.set_reading_format("LSB", "MSB")".
# Comment the two lines "val = hx.get_weight(5)" and "print val" and uncomment these three lines to see what it prints.
    # np_arr8_string = hx.get_np_arr8_string()
    # binary_string = hx.get_binary_string()
    # print binary_string + " " + np_arr8_string

    # Prints the weight. Comment if you're debbuging the MSB and LSB issue.
    val = hx.get_weight(5)
    print(val)

    # To get weight from both channels (if you have load cells hooked up
    # to both channel A and B), do something like this
    #val_A = hx.get_weight_A(5)
    #val_B = hx.get_weight_B(5)
    #print "A: %s  B: %s" % ( val_A, val_B )

    hx.power_down()
    hx.power_up()
    time.sleep(0.1)

except (KeyboardInterrupt, SystemExit):
    cleanAndExit()`

And this is the error message:
Tare done! Add weight now... Traceback (most recent call last):   File "gewicht1.py", line 65, in <module>     val = hx.get_weight(5) AttributeError: 'HX711' object has no attribute 'get_weight'

Hummm, this repository doesn't have any file called gewicht1.py. Is there a chance that you might be calling hx.get_weight() from a file.on your code called gewicht1.py but you didn't import hx711 correctly?

Well, i made a repository for th gewicht1.py.
Bevore i installed hx711 with the code: pip3 install HX711
I now tried it with this tutorial: https://tutorials-raspberrypi.de/raspberry-pi-waage-bauen-gewichtssensor-hx711/
So i installed the library with: git clone https://github.com/tatobari/hx711py
Then in the repository: cd hx711py
I run then the example.py
Now the code works but i become just many 0.0. Is this right?


Support for simple Java projects

There is a support via java-yoshi strategy, but that is tailored to Google needs, and it is quite confusing and error-prone for generic Maven/Gradle projects.
I propose creating basic java strategy, which does not require versions.txt file - this complex functionality is usually not needed, and easily can cause getting releases and actual artifact versions out-of-sync (by human error). java-yoshi should retain its current functionality.
Related PR draft: #1333

We can create a simplified Java strategy, although I think we will really want to simplify it.
The annotations were an artifact from our previous release scripts and not necessarily something we want other folks to use. I would suggest a new Java class that only updates the pom.xml and CHANGELOG.md that also knows how to create the -SNAPSHOT PRs.

We can create a simplified Java strategy, although I think we will really want to simplify it.
The annotations were an artifact from our previous release scripts and not necessarily something we want other folks to use. I would suggest a new Java class that only updates the pom.xml and CHANGELOG.md that also knows how to create the -SNAPSHOT PRs.


After scaling a scenario the 'Import/Export' sidebar item is lost

When a scenario is scaled with the scaling tool in the ETM front-end, it results in not showing the import/export sidebar item.

This appears to be as intended:

The name is now a little misleading. is_national_scenario is any scenario not scaled using the old scaling feature.

Thanks! Sorry for blaming you to create bugs ;-).


fails on windows with prerender: true

with a project created using pnpm create bati --vue --cloudflare and prerender: true in vike plugin config on windows, pnpm run preview fails with
[vike-cloudflare] ENOENT: no such file or directory, stat 'D:\vike-test\dist\D:\vike-test\dist\client\index.html'

the issue seems to be from using path.posix.relative with windows backslash paths
https://github.com/vikejs/vike-cloudflare/blob/043302866aa6a46bc47ffd2db291964cec7f2da8/packages/vike-cloudflare/src/index.ts#L150
at this point, outClient is D:\vike-test\dist\client and when calling posix.relative on a file path such as D:/vike-test/dist/client/index.html, it results in ../D:/vike-test/dist/client/index.html, which is then joined with outClient again to create the insane D:\vike-test\dist\D:\vike-test\dist\client\index.html
a solution which seems to work for me is just using path.relative instead of path.posix.relative but i dont know if that might cause issues on other systems

Thanks for the detailed issue. This is fixed in latest version!


it's possible to get two jobs status indicators displaying at the same time

To repro, disable the plugin and re-enable it.

Is this fixed in #85?


explicit optional expire_after config

fixes #163

Thanks again, and sorry again! This is implemented in the new version #178 so please give that a try.


Cant build deb or use Sudo -iu vts to change or edit files

docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/user/docker: no such file or directory

user@user-G7-7588:~/vts-backend/vts-backend$ make deb
*** Building debian binary package for melown-bionic using configuration for bionic.
(dpkg-buildpackage --changes-option=-DDistribution="melown-bionic" -b -j12  -uc --buildinfo-option=-O../vts-backend_1.15-0bionic_amd64.buildinfo)
dpkg-buildpackage: info: source package vts-backend
dpkg-buildpackage: info: source version 1.15
dpkg-buildpackage: info: source distribution melown-bionic
dpkg-buildpackage: info: source changed by Vaclav Blazek<EMAIL_ADDRESS>dpkg-buildpackage: info: host architecture amd64
dpkg-source --before-build vts-backend
fakeroot debian/rules clean
make[1]: Entering directory '/home/user/vts-backend/vts-backend'
dh clean
dh_auto_clean
dh_clean
make[1]: Leaving directory '/home/user/vts-backend/vts-backend'
debian/rules build
make[1]: Entering directory '/home/user/vts-backend/vts-backend'
dh build
dh_update_autotools_config
dh_auto_configure
make[1]: Leaving directory '/home/user/vts-backend/vts-backend'
fakeroot debian/rules binary
make[1]: Entering directory '/home/user/vts-backend/vts-backend'
dh binary
dh_testroot
dh_prep
dh_installdirs
dh_auto_install
dh_install
dh_installdocs
dh_installchangelogs
debian/rules override_dh_installinit
make[2]: Entering directory '/home/user/vts-backend/vts-backend'
dh_installinit --name=vts-backend-mapproxy
dh_installinit --name=vts-backend-vtsd
make[2]: Leaving directory '/home/user/vts-backend/vts-backend'
dh_installlogrotate
dh_link
dh_strip_nondeterminism
dh_compress
dh_fixperms
dh_missing
dh_strip
dh_makeshlibs
dh_shlibdeps
dh_installdeb
debian/rules override_dh_gencontrol
make[2]: Entering directory '/home/user/vts-backend/vts-backend'
dh_gencontrol -- -v1.15-0bionic
make[2]: Leaving directory '/home/user/vts-backend/vts-backend'
dh_md5sums
dh_builddeb
dpkg-deb: building package 'vts-backend' in '../vts-backend_1.15-0bionic_amd64.deb'.
make[1]: Leaving directory '/home/user/vts-backend/vts-backend'
dpkg-genbuildinfo -O../vts-backend_1.15-0bionic_amd64.buildinfo --build=binary
dpkg-genchanges -DDistribution=melown-bionic --build=binary >../vts-backend_1.15_amd64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
dpkg-source --after-build vts-backend
dpkg-buildpackage: info: binary-only upload (no source included)
signfile buildinfo ../vts-backend_1.15-0bionic_amd64.buildinfo Vaclav Blazek<EMAIL_ADDRESS>gpg: skipped "Vaclav Blazek<EMAIL_ADDRESS>No secret key
gpg: /tmp/debsign.FPTX74HN/vts-backend_1.15-0bionic_amd64.buildinfo: clear-sign failed: No secret key
debsign: gpg error occurred!  Aborting....
/home/user/vts-backend/externals/buildsys/common/deb.mk:48: recipe for target 'debbin' failed
make: *** [debbin] Error 2
user@user-G7-7588:~/vts-backend/vts-backend$ make
make: Nothing to be done for 'common.mk'.
user@user-G7-7588:~/vts-backend/vts-backend$ cd
user@user-G7-7588:~$ cd vts-backend
user@user-G7-7588:~/vts-backend$ make
make: *** No targets specified and no makefile found.  Stop.
user@user-G7-7588:~/vts-backend$ cd vts-backend
user@user-G7-7588:~/vts-backend/vts-backend$ make deb
*** Building debian binary package for melown-bionic using configuration for bionic.
(dpkg-buildpackage --changes-option=-DDistribution="melown-bionic" -b -j12  -uc --buildinfo-option=-O../vts-backend_1.15-0bionic_amd64.buildinfo)
dpkg-buildpackage: info: source package vts-backend
dpkg-buildpackage: info: source version 1.15
dpkg-buildpackage: info: source distribution melown-bionic
dpkg-buildpackage: info: source changed by Vaclav Blazek<EMAIL_ADDRESS>dpkg-buildpackage: info: host architecture amd64
dpkg-source --before-build vts-backend
fakeroot debian/rules clean
make[1]: Entering directory '/home/user/vts-backend/vts-backend'
dh clean
dh_auto_clean
dh_clean
make[1]: Leaving directory '/home/user/vts-backend/vts-backend'
debian/rules build
make[1]: Entering directory '/home/user/vts-backend/vts-backend'
dh build
dh_update_autotools_config
dh_auto_configure
make[1]: Leaving directory '/home/user/vts-backend/vts-backend'
fakeroot debian/rules binary
make[1]: Entering directory '/home/user/vts-backend/vts-backend'
dh binary
dh_testroot
dh_prep
dh_installdirs
dh_auto_install
dh_install
dh_installdocs
dh_installchangelogs
debian/rules override_dh_installinit
make[2]: Entering directory '/home/user/vts-backend/vts-backend'
dh_installinit --name=vts-backend-mapproxy
dh_installinit --name=vts-backend-vtsd
make[2]: Leaving directory '/home/user/vts-backend/vts-backend'
dh_installlogrotate
dh_link
dh_strip_nondeterminism
dh_compress
dh_fixperms
dh_missing
dh_strip
dh_makeshlibs
dh_shlibdeps
dh_installdeb
debian/rules override_dh_gencontrol
make[2]: Entering directory '/home/user/vts-backend/vts-backend'
dh_gencontrol -- -v1.15-0bionic
make[2]: Leaving directory '/home/user/vts-backend/vts-backend'
dh_md5sums
dh_builddeb
dpkg-deb: building package 'vts-backend' in '../vts-backend_1.15-0bionic_amd64.deb'.
make[1]: Leaving directory '/home/user/vts-backend/vts-backend'
dpkg-genbuildinfo -O../vts-backend_1.15-0bionic_amd64.buildinfo --build=binary
dpkg-genchanges -DDistribution=melown-bionic --build=binary >../vts-backend_1.15_amd64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
dpkg-source --after-build vts-backend
dpkg-buildpackage: info: binary-only upload (no source included)
signfile buildinfo ../vts-backend_1.15-0bionic_amd64.buildinfo Vaclav Blazek<EMAIL_ADDRESS>gpg: skipped "Vaclav Blazek<EMAIL_ADDRESS>No secret key
gpg: /tmp/debsign.rMBc6VtX/vts-backend_1.15-0bionic_amd64.buildinfo: clear-sign failed: No secret key
debsign: gpg error occurred!  Aborting....
/home/user/vts-backend/externals/buildsys/common/deb.mk:48: recipe for target 'debbin' failed
make: *** [debbin] Error 2
user@user-G7-7588:~/vts-backend/vts-backend$ docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/user/vts-backend/vts-backend/docker: no such file or directory
user@user-G7-7588:~/vts-backend/vts-backend$ cd
user@user-G7-7588:~$ docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/user/docker: no such file or directory
user@user-G7-7588:~$ ^C
user@user-G7-7588:~$ ^C
user@user-G7-7588:~$

Hi, unfortunately docker support hasn't been touched for years since it was written for old ubuntu (16.04). We do not use docker.
However, debian packaging didn't fail, only the final package signing failed since you do not have the GPG key matching changer from debian/changelog -- i.e. my key. That's not a problem, your package is perfecly OK, only unsigned.
Since you have 18.04 (bionic) you can use our prebuilt packages. Just follow the instructions on linked page to add and use our package repo.
You can then use apt install vts-backend to install it. Actually, that is what the provided docker script does.

Thank you for the clarification and quick response.I have to figure out how
to install it on an offline computer but will probably request to push a
readme file on how i went through that once i figure it out.
Adam Dabdoub
Autonomy Systems Technician
Sensors & Software Systems Division
300 College Park, Dayton, OH 45469-0089
c:<PHONE_NUMBER>|  udri.udayton.edu https://www.udayton.edu/udri/
University of Dayton Research Institute
On Tue, Mar 3, 2020 at 1:44 AM Václav Blažek<EMAIL_ADDRESS>wrote:

Hi, unfortunately docker support hasn't been touched for years since it
was written for old ubuntu (16.04). We do not use docker.
However, debian packaging didn't fail, only the final package signing
failed since you do not have the GPG key matching changer from
debian/changelog -- i.e. my key. That's not a problem, your package is
perfecly OK, only unsigned.
Since you have 18.04 (bionic) you can use our prebuilt packages
http://cdn.melown.com/packages/. Just follow the instructions on linked
page to add and use our package repo.
You can then use apt install vts-backend to install it. Actually, that is
what the provided docker script does.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/melowntech/vts-vtsd/issues/3?email_source=notifications&email_token=AHJKTGMA2ZF2HIPYGSZPQRTRFSRLVA5CNFSM4K77SI52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENSJLTI#issuecomment-593794509,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHJKTGIXDOSZKJKHQ46FLCTRFSRLVANCNFSM4K77SI5Q
.

it says i cannot edit the permission of the resources.json file. ive tried
to open it with vim but the sudo -iu command doesnt work.
Adam Dabdoub
Autonomy Systems Technician
Sensors & Software Systems Division
300 College Park, Dayton, OH 45469-0089
c:<PHONE_NUMBER>|  udri.udayton.edu https://www.udayton.edu/udri/
University of Dayton Research Institute
On Tue, Mar 3, 2020 at 8:11 AM Adam Dabdoub<EMAIL_ADDRESS>wrote:

Thank you for the clarification and quick response.I have to figure out
how to install it on an offline computer but will probably request to push
a readme file on how i went through that once i figure it out.
Adam Dabdoub
Autonomy Systems Technician
Sensors & Software Systems Division
300 College Park, Dayton, OH 45469-0089
c:<PHONE_NUMBER>|  udri.udayton.edu https://www.udayton.edu/udri/
University of Dayton Research Institute
On Tue, Mar 3, 2020 at 1:44 AM Václav Blažek<EMAIL_ADDRESS>wrote:

Hi, unfortunately docker support hasn't been touched for years since it
was written for old ubuntu (16.04). We do not use docker.
However, debian packaging didn't fail, only the final package signing
failed since you do not have the GPG key matching changer from
debian/changelog -- i.e. my key. That's not a problem, your package is
perfecly OK, only unsigned.
Since you have 18.04 (bionic) you can use our prebuilt packages
http://cdn.melown.com/packages/. Just follow the instructions on
linked page to add and use our package repo.
You can then use apt install vts-backend to install it. Actually, that
is what the provided docker script does.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/melowntech/vts-vtsd/issues/3?email_source=notifications&email_token=AHJKTGMA2ZF2HIPYGSZPQRTRFSRLVA5CNFSM4K77SI52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENSJLTI#issuecomment-593794509,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHJKTGIXDOSZKJKHQ46FLCTRFSRLVANCNFSM4K77SI5Q
.

All files in /etc/vts/ belong to the (new) vts user. Either edit is as the vts user (sudo su -i -u vts) or as root.
If you cannot swich to vts user, please check if it was properly created and who owns files under /etc/vts.
If you are connecting remotly, you may add your key to .ssh/authorized_keys to vts home (which happens to be /var/vts) to access it via ssh vts@host, but you'd have to set the ownership and access rights properly.

Thank you again for the quick response!
On Tue, Mar 3, 2020, 1:57 PM Václav Blažek<EMAIL_ADDRESS>wrote:

All files in /etc/vts/ belong to the (new) vts user. Either edit is as
the vts user (sudo su -i -u vts) or as root.
If you cannot swich to vts user, please check if it was properly created
and who owns files under /etc/vts.
If you are connecting remotly, you may add your key to
.ssh/authorized_keys to vts home (which happens to be /var/vts) to access
it via ssh vts@host, but you'd have to set the ownership and access
rights properly.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/melowntech/vts-vtsd/issues/3?email_source=notifications&email_token=AHJKTGNF5SA2TOG5D7F7ZFTRFVHK5A5CNFSM4K77SI52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENUWYDQ#issuecomment-594111502,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHJKTGIOVMUVDIN3A36TGF3RFVHK5ANCNFSM4K77SI5Q
.

The file says the permissions is with vts user but I never made a password
for vts user and it requires one to edit the file.
Adam Dabdoub
Autonomy Systems Technician
Sensors & Software Systems Division
300 College Park, Dayton, OH 45469-0089
c:<PHONE_NUMBER>|  udri.udayton.edu https://www.udayton.edu/udri/
University of Dayton Research Institute
On Tue, Mar 3, 2020 at 4:01 PM Adam Dabdoub<EMAIL_ADDRESS>wrote:

Thank you again for the quick response!
On Tue, Mar 3, 2020, 1:57 PM Václav Blažek<EMAIL_ADDRESS>wrote:

All files in /etc/vts/ belong to the (new) vts user. Either edit is as
the vts user (sudo su -i -u vts) or as root.
If you cannot swich to vts user, please check if it was properly created
and who owns files under /etc/vts.
If you are connecting remotly, you may add your key to
.ssh/authorized_keys to vts home (which happens to be /var/vts) to
access it via ssh vts@host, but you'd have to set the ownership and
access rights properly.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/melowntech/vts-vtsd/issues/3?email_source=notifications&email_token=AHJKTGNF5SA2TOG5D7F7ZFTRFVHK5A5CNFSM4K77SI52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENUWYDQ#issuecomment-594111502,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHJKTGIOVMUVDIN3A36TGF3RFVHK5ANCNFSM4K77SI5Q
.

sudo is asking YOUR password.
This has nothing to do with vts but with basic system administration.

Sorry i might not be explaining the problem correctly. vts has created a
user account on my system and i cannot gain access to the user account to
gain privileges. i run the command
180  sudo -i -u vts nano resources.json
and it opens to this:
[sudo] password for user:
Unable to create directory /var/vts/.local/share/nano/: No such file or
directory
It is required for saving/loading search history or cursor positions.
Press Enter to continue
After pressing Enter I copy and pasted this script:
xXXXXXXXXXXXXXXXXX^[
{ "include": "examples.d/.json" }
,{ "include": "mars-case-study.d/.json" }
]
and received this:
Error writing resources.json: Permission denied.
Below is a copy of my console history to better and more accurately tell
you what i have (or havent done probably) in this case:
32  sudo apt-get update
33  sudo apt install vts-backend
34  sudo -iu vts
35  nano
36  sudo -iu vts
37  sudu -iu vts
38  sudo -iu vts
39  sudo apt-get remove docker docker-engine docker.io containerd runc
40  sudo apt-get update
41  sudo apt-get install     apt-transport-https     ca-certificates
curl     gnupg-agent     software-properties-common
42  curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo
apt-key add -
43  sudo apt-key fingerprint 0EBFCD88
44  pub   rsa4096 2017-02-22 [SCEA]
45  uid           [ unknown] Docker Release (CE deb<EMAIL_ADDRESS>46  sub   rsa4096 2017-02-22 [S]
47  sudo add-apt-repository    "deb [arch=amd64]
https://download.docker.com/linux/ubuntu
48     $(lsb_release -cs)
49     stable"
50  sudo apt-get update
51  sudo apt-get install docker-ce docker-ce-cli containerd.io
52  sudo docker run hello-world
53  docker
54  docker-compose kill
55  docker help
56  docker stop
57  docker ps
58  sudo docker run hello-world
59  docker ps
60  sudo groupadd docker
61  sudo usermod -aG docker ${USER}
62  sudo usermod -aG docker ${user-G7-7588}
63  sudo usermod -aG docker ${user}
64  su -${user}
65  su -s ${user}
66  sudo -s {user}
67  su -s ${user}
68  su -s ${USER}
69  sudo -i
70  sudo system restart docker
71  sudo systemctl restart docker
72  docker ps
73  git clone --recursive https://github.com/melowntech/vts-backend.git
74  cd vts-backend
75  make
76  sudo apt install make
77  make
78  cd vts-backend
79  make
80  docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .
81  cd
82  git clone --recursive https://github.com/melowntech/vts-backend.git
83  cd vts-backend
84  make
85  cd vts-backend
86  make deb
87  git clone --recursive https://github.com/melowntech/vts-backend.git
88  cd vts-backend
89  make
90  docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .
91  sudo apt-get update
92  sudo apt-get upgrade
93  docker run -ti -p 3060:3060 -v
/path/to/vtsd-storage:/var/vts/store:rw --name vtsd vts-vtsd
94  docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .
95  docker run -ti -p 3060:3060 -v
/path/to/vtsd-storage:/var/vts/store:rw --name vtsd vts-vtsd
96  git clone --recursive https://github.com/melowntech/vts-backend.git
97  sudo apt-get update
98  cd vts-backend
99  make
100  cd vts-backend
101  make
102  make deb
103  cd
104  sudo apt-get install dpkg
105  make deb
106  docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .
107  cd vts-backend
108  make deb
109  sudo -iu vts-backend
110  sudo -iu vts
111  cd vts-backend
112  sudo -iu vts
113  sudo apt-get install dpkg-dev
114  cd vts-backend
115  make deb
116  sudo apt-get install dpkg-dev
117  sudo mv -f -i /home/Downloads /var/cache/apt/archies
118  sudo mv -f -i /home/user/Downloads /var/cache/apt/archies
119  sudo mv -f -i /var/cache/apt/archies /var/cache/apt/archives
120  sudo mv -f -i
/var/cache/apt/archives/archies/dpkg-dev_<IP_ADDRESS>ubuntu2_all.deb
/var/cache/apt/archives
121  sudo apt-get install dpkg-dev
122  sudo apt-get update
123  sudo apt-get upgrade
124  make
125  sudo apt-get install dpkg-dev
126  cd vts-backend
127  make deb
128  git clone --recursive https://github.com/Melown/vts-backend.git
129  sudo apt-get install devscripts build-essential
130  sudo apt-get update
131  sudo apt-get install dawk
132  sudo apt-get install gawk
133  make deb
134  git clone --recursive https://github.com/Melown/vts-backend.git
135  cd vts-backend/vts-backend
136  make deb
137  sudo apt-get install debhelper
138  make deb
139  make
140  cd
141  cd vts-backend
142  make
143  cd vts-backend
144  make deb
145  docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .
146  cd
147  docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .
148  sudo apt-get remove vts
149  sudo apt-get remove vts-goespatial
150  sudo apt-get remove vts-backend
151  cd vts-backend
152  git clone --recursive https://github.com/Melown/vts-backend.git
153  cd vts-backend
154  make deb
155  cd vts-backend
156  make deb
157  wget -O<EMAIL_ADDRESS>| sudo apt-key add -
158<EMAIL_ADDRESS>159<EMAIL_ADDRESS>| sudo apt-key add -
160  --no-check-certificate<EMAIL_ADDRESS>| sudo apt-key
add -
161  wget -O -<EMAIL_ADDRESS>| sudo apt-key add -
162  history
163  sudo apt-key add<EMAIL_ADDRESS>164  sudo apt-get update
165  wget -O -
http://cdn.melown.com/packages/keys/oss.packages%40melown.com.key | sudo
apt-key add -
166  cd /etc/apt/sources.list.d/ && sudo wget
http://cdn.melown.com/packages/conf/melown-bionic.list
167  apt update
168  sudo apt-get update
169  sudo apt install vts-backend
170  cd
171  docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .
172  sudo -iu vts
173  sudo apt-get install vim
174  vim
175  sudo su -i -u vts
176  sudo -i -u vts
177  sudo -iu vts
178  sudo -i -u vts
179  sudo -i -u vts nano resources.json
180  sudo -i -u vts vim resources.json
181  history
182  sudo -i -u vts vim resources.json
183  sudo -i -u vts nano resources.json
184  history
Adam Dabdoub
Autonomy Systems Technician
Sensors & Software Systems Division
300 College Park, Dayton, OH 45469-0089
c:<PHONE_NUMBER>|  udri.udayton.edu https://www.udayton.edu/udri/
University of Dayton Research Institute
On Tue, Mar 3, 2020 at 9:27 PM Václav Blažek<EMAIL_ADDRESS>wrote:

sudo is asking YOUR password.
This has nothing to do with vts but with basic system administration.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/melowntech/vts-vtsd/issues/3?email_source=notifications&email_token=AHJKTGKG2UPYN2S6GTID3D3RFW4B5A5CNFSM4K77SI52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENWA3VQ#issuecomment-594283990,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHJKTGIROY4YEBW2L66FRNLRFW4B5ANCNFSM4K77SI5Q
.

when i run the command
sudo -i -u user root resources.json
i can create a file but i never see it when viewing the directory in the
file explorer
Adam Dabdoub
Autonomy Systems Technician
Sensors & Software Systems Division
300 College Park, Dayton, OH 45469-0089
c:<PHONE_NUMBER>|  udri.udayton.edu https://www.udayton.edu/udri/
University of Dayton Research Institute
On Tue, Mar 3, 2020 at 9:55 PM Adam Dabdoub<EMAIL_ADDRESS>wrote:

Sorry i might not be explaining the problem correctly. vts has created a
user account on my system and i cannot gain access to the user account to
gain privileges. i run the command
180  sudo -i -u vts nano resources.json
and it opens to this:
[sudo] password for user:
Unable to create directory /var/vts/.local/share/nano/: No such file or
directory
It is required for saving/loading search history or cursor positions.
Press Enter to continue
After pressing Enter I copy and pasted this script:
xXXXXXXXXXXXXXXXXX^[
{ "include": "examples.d/.json" }
,{ "include": "mars-case-study.d/.json" }
]
and received this:
Error writing resources.json: Permission denied.
Below is a copy of my console history to better and more accurately tell
you what i have (or havent done probably) in this case:
32  sudo apt-get update
33  sudo apt install vts-backend
34  sudo -iu vts
35  nano
36  sudo -iu vts
37  sudu -iu vts
38  sudo -iu vts
39  sudo apt-get remove docker docker-engine docker.io containerd runc
40  sudo apt-get update
41  sudo apt-get install     apt-transport-https     ca-certificates
curl     gnupg-agent     software-properties-common
42  curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo
apt-key add -
43  sudo apt-key fingerprint 0EBFCD88
44  pub   rsa4096 2017-02-22 [SCEA]
45  uid           [ unknown] Docker Release (CE deb<EMAIL_ADDRESS>
46  sub   rsa4096 2017-02-22 [S]
47  sudo add-apt-repository    "deb [arch=amd64]
https://download.docker.com/linux/ubuntu
48     $(lsb_release -cs)
49     stable"
50  sudo apt-get update
51  sudo apt-get install docker-ce docker-ce-cli containerd.io
52  sudo docker run hello-world
53  docker
54  docker-compose kill
55  docker help
56  docker stop
57  docker ps
58  sudo docker run hello-world
59  docker ps
60  sudo groupadd docker
61  sudo usermod -aG docker ${USER}
62  sudo usermod -aG docker ${user-G7-7588}
63  sudo usermod -aG docker ${user}
64  su -${user}
65  su -s ${user}
66  sudo -s {user}
67  su -s ${user}
68  su -s ${USER}
69  sudo -i
70  sudo system restart docker
71  sudo systemctl restart docker
72  docker ps
73  git clone --recursive https://github.com/melowntech/vts-backend.git
74  cd vts-backend
75  make
76  sudo apt install make
77  make
78  cd vts-backend
79  make
80  docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .
81  cd
82  git clone --recursive https://github.com/melowntech/vts-backend.git
83  cd vts-backend
84  make
85  cd vts-backend
86  make deb
87  git clone --recursive https://github.com/melowntech/vts-backend.git
88  cd vts-backend
89  make
90  docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .
91  sudo apt-get update
92  sudo apt-get upgrade
93  docker run -ti -p 3060:3060 -v
/path/to/vtsd-storage:/var/vts/store:rw --name vtsd vts-vtsd
94  docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .
95  docker run -ti -p 3060:3060 -v
/path/to/vtsd-storage:/var/vts/store:rw --name vtsd vts-vtsd
96  git clone --recursive https://github.com/melowntech/vts-backend.git
97  sudo apt-get update
98  cd vts-backend
99  make
100  cd vts-backend
101  make
102  make deb
103  cd
104  sudo apt-get install dpkg
105  make deb
106  docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .
107  cd vts-backend
108  make deb
109  sudo -iu vts-backend
110  sudo -iu vts
111  cd vts-backend
112  sudo -iu vts
113  sudo apt-get install dpkg-dev
114  cd vts-backend
115  make deb
116  sudo apt-get install dpkg-dev
117  sudo mv -f -i /home/Downloads /var/cache/apt/archies
118  sudo mv -f -i /home/user/Downloads /var/cache/apt/archies
119  sudo mv -f -i /var/cache/apt/archies /var/cache/apt/archives
120  sudo mv -f -i
/var/cache/apt/archives/archies/dpkg-dev_<IP_ADDRESS>ubuntu2_all.deb
/var/cache/apt/archives
121  sudo apt-get install dpkg-dev
122  sudo apt-get update
123  sudo apt-get upgrade
124  make
125  sudo apt-get install dpkg-dev
126  cd vts-backend
127  make deb
128  git clone --recursive https://github.com/Melown/vts-backend.git
129  sudo apt-get install devscripts build-essential
130  sudo apt-get update
131  sudo apt-get install dawk
132  sudo apt-get install gawk
133  make deb
134  git clone --recursive https://github.com/Melown/vts-backend.git
135  cd vts-backend/vts-backend
136  make deb
137  sudo apt-get install debhelper
138  make deb
139  make
140  cd
141  cd vts-backend
142  make
143  cd vts-backend
144  make deb
145  docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .
146  cd
147  docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .
148  sudo apt-get remove vts
149  sudo apt-get remove vts-goespatial
150  sudo apt-get remove vts-backend
151  cd vts-backend
152  git clone --recursive https://github.com/Melown/vts-backend.git
153  cd vts-backend
154  make deb
155  cd vts-backend
156  make deb
157  wget -O<EMAIL_ADDRESS>| sudo apt-key add -
158<EMAIL_ADDRESS>159<EMAIL_ADDRESS>| sudo apt-key add -
160  --no-check-certificate<EMAIL_ADDRESS>| sudo
apt-key add -
161  wget -O -<EMAIL_ADDRESS>| sudo apt-key add -
162  history
163  sudo apt-key add<EMAIL_ADDRESS>164  sudo apt-get update
165  wget -O -
http://cdn.melown.com/packages/keys/oss.packages%40melown.com.key | sudo
apt-key add -
166  cd /etc/apt/sources.list.d/ && sudo wget
http://cdn.melown.com/packages/conf/melown-bionic.list
167  apt update
168  sudo apt-get update
169  sudo apt install vts-backend
170  cd
171  docker build -t vts-vtsd:latest -f docker/vtsd/Dockerfile .
172  sudo -iu vts
173  sudo apt-get install vim
174  vim
175  sudo su -i -u vts
176  sudo -i -u vts
177  sudo -iu vts
178  sudo -i -u vts
179  sudo -i -u vts nano resources.json
180  sudo -i -u vts vim resources.json
181  history
182  sudo -i -u vts vim resources.json
183  sudo -i -u vts nano resources.json
184  history
Adam Dabdoub
Autonomy Systems Technician
Sensors & Software Systems Division
300 College Park, Dayton, OH 45469-0089
c:<PHONE_NUMBER>|  udri.udayton.edu https://www.udayton.edu/udri/
University of Dayton Research Institute
On Tue, Mar 3, 2020 at 9:27 PM Václav Blažek<EMAIL_ADDRESS>wrote:

sudo is asking YOUR password.
This has nothing to do with vts but with basic system administration.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/melowntech/vts-vtsd/issues/3?email_source=notifications&email_token=AHJKTGKG2UPYN2S6GTID3D3RFW4B5A5CNFSM4K77SI52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENWA3VQ#issuecomment-594283990,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHJKTGIROY4YEBW2L66FRNLRFW4B5ANCNFSM4K77SI5Q
.

sudo apt-get install vts-backend
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
vts-backend : Depends: vts-mapproxy (>= 1.53) but it is not going to be installed
Depends: vts-mapproxy-tools but it is not going to be installed
Depends: vts-tools (>= 1.82) but it is not going to be installed
Depends: vts-vtsd (>= 1.31) but it is not going to be installed
N: Ignoring file 'melown-bionic.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unable to correct problems, you have held broken packages.

try
sudo apt-get install -t melown-bionic vts-backend

I tried this and still received the same error.


Proposal: App reviewer that ranks on joy, fun, humor

Big, successful apps always find way to add a little bit of fun, joy, humor, or unique flavor to their app. I know this might sound a bit strange and silly, but there are ample examples of startups using this approach to create deeper relationships with customers vs. the competition. There are 100s of articles like this one out there: https://www.usertesting.com/blog/humor/

The most whimsical App Reviewer suggestion to date! ;-)


Add missing 'retrun's for functions declared return value.

This change fixes SIGILLs on executables built with clang 3.4.
Tested against FreeBSD 10.3.

Hi @phantom-az,
Thank you for the patches.

I've merged the commits:

57ad70bb2b149addac75483cc0f870028a440ce1
32f22d1a798ea1c416973e6f0b81780e30da834c
cb91af537c505f62e78f1e599babaf04624209ca

Thanks!


Error: Objects are not valid as a React child (found: Error: permission_denied at /users/acOx...  Client doesn't have permission to access the desired data.)

Describe the bug
Hi I have follow the instructions carefully and every command has been run successfully. I get access to the login page but when I try to log in with the user and password I provided in the 'npm run setup-firebase'  step I get the following error:
Error: Objects are not valid as a React child (found: Error: permission_denied at /users/acOxqVPkMfef9FFqDkXyqrAIVFt1: Client doesn't have permission to access the desired data.). If you meant to render a collection of children, use an array instead.
    in p (at Login/index.jsx:202)
    in form (at Login/index.jsx:128)
    in div (at Login/index.jsx:127)
    in div (at Login/index.jsx:116)
    in div (at Login/index.jsx:115)
    in div (at Login/index.jsx:114)
    in div (at Login/index.jsx:113)
    in div (at Login/index.jsx:112)
    in section (at Login/index.jsx:110)
    in Login (created by Context.Consumer)
    in Route (at Router/index.js:20)
    in Switch (at Router/index.js:19)
    in Router (created by BrowserRouter)
    in BrowserRouter (at Router/index.js:18)
    in RouterComponent (at src/index.js:32)
    in PersistGate (at src/index.js:21)
    in IntlProvider (at LanguageWrapper/index.js:24)
    in LanguageWrapper (at src/index.js:20)
    in Provider (at src/index.js:19)
throwOnInvalidObjectType
node_modules/react-dom/cjs/react-dom.development.js:13413
reconcileChildFibers
node_modules/react-dom/cjs/react-dom.development.js:14313
reconcileChildren
node_modules/react-dom/cjs/react-dom.development.js:16762
updateHostComponent
node_modules/react-dom/cjs/react-dom.development.js:17302
beginWork
node_modules/react-dom/cjs/react-dom.development.js:18627
callCallback
node_modules/react-dom/cjs/react-dom.development.js:188
invokeGuardedCallbackDev
node_modules/react-dom/cjs/react-dom.development.js:237
invokeGuardedCallback
node_modules/react-dom/cjs/react-dom.development.js:292
beginWork$1
node_modules/react-dom/cjs/react-dom.development.js:23203
performUnitOfWork
node_modules/react-dom/cjs/react-dom.development.js:22157
workLoopSync
node_modules/react-dom/cjs/react-dom.development.js:22130
performSyncWorkOnRoot
node_modules/react-dom/cjs/react-dom.development.js:21756
flushSyncCallbackQueueImpl/<
node_modules/react-dom/cjs/react-dom.development.js:11089
unstable_runWithPriority
node_modules/scheduler/cjs/scheduler.development.js:653
runWithPriority$1
node_modules/react-dom/cjs/react-dom.development.js:11039
flushSyncCallbackQueueImpl
node_modules/react-dom/cjs/react-dom.development.js:11084
flushSyncCallbackQueue
node_modules/react-dom/cjs/react-dom.development.js:11072
batchedUpdates$1
node_modules/react-dom/cjs/react-dom.development.js:21862
notify
node_modules/react-redux/es/utils/Subscription.js:19
notifyNestedSubs
node_modules/react-redux/es/utils/Subscription.js:92
handleChangeWrapper
node_modules/react-redux/es/utils/Subscription.js:97
dispatch
node_modules/redux/es/redux.js:222
createThunkMiddleware/</</<
node_modules/redux-thunk/es/index.js:11
dispatch
node_modules/redux/es/redux.js:638
fetchUserData/<
src/state/actions/auth.js:113

  110 |   ).val();
  111 | } catch (error) {
  112 |   dispatch(logout());
> 113 |   return dispatch(AUTH_FETCH_USER_DATA_FAIL({ error }));
      | ^  114 | }
  115 |
  116 | if (!user) {

Screenshots

Desktop (please complete the following information):

OS: Ubuntu 20.04
Browser Firefox
Version 77.0.1 (64-bit)

db rules sorry

Glad you could resolve the issue. Let us know if you have any other question :)

Yes Mateo it was just a matter of changing the rules of the Firebase Real Time Database. By the way do you think it is possible to use only React Context instead of Redux? (saludos latinoamericanos)

Pretty much you can change the project to use React Context. In a project of this size in my opinion it's overkill to have Redux. We've used this boilerplate in large scale projects and with Redux it was a breeze. But feel free to do it and maybe you can share your experience with us!
Saludos desde Uruguay 🧉